/* GENERATED by tools/build-css.php from assets/css/src/*.css - do not edit this file. */
/* 13-offline.css (rules used here) */
.sv-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 30px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: transparent; color: var(--text); font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t); }
.sv-btn:hover { border-color: var(--text); background: var(--surface-2); }
.sv-btn .icon { width: 14px; height: 14px; color: var(--signal-ink); }
.sv-btn.is-saved { border-color: color-mix(in srgb, var(--moss) 55%, var(--border)); background: color-mix(in srgb, var(--moss) 10%, var(--surface)); color: var(--moss-ink); }
.sv-btn.is-saved .icon { color: currentColor; }
.sv-btn.is-saved .icon path { d: path("M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"); }
@media (pointer: coarse) {
.sv-btn { min-height: 40px; padding: 6px 14px; }
}
@media print {
.sv-btn { display: none !important; }
}
.sv-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.sv-link { flex: 1; min-width: 0; display: grid; gap: 2px; color: var(--text); text-decoration: none; }
.sv-link strong { font: 700 1.05rem/1.3 var(--head); }
.sv-link small { color: var(--text-muted); font-size: .85rem; }
.sv-link:hover strong { color: var(--link-hover); }
.sv-remove { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted); font: 600 .85rem var(--body); cursor: pointer; }
.sv-remove:hover { color: var(--text); border-color: var(--text-muted); background: var(--surface-2); }
/* 14-test.css (rules used here) */
.sk-src { display: inline-block; margin-left: 4px; font-weight: 600; }
.sk-reread-h { margin: 14px 0 4px; font-weight: 700; }
.sk-reread { margin: 0 0 16px; padding-left: 1.2em; }
/* 15-season.css */
.hm-season-head .section-title { display: flex; align-items: center; gap: 12px; }
.hm-season-icon { flex: none; display: inline-flex; color: var(--accent-ink); }
.hm-season-icon .icon { width: 30px; height: 30px; }
.hm-season-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (min-width: 1000px) { .hm-season-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-season-more { margin: 24px 0 0; }
/* 20-home.css */
.home .hm-sec { padding: clamp(48px, 6.5vw, 88px) 0; }
.home .hm-band { background: var(--surface-2); border-block: 1px solid var(--rule); }
.home .hm-head {
display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(20px, 4vw, 64px); align-items: end;
margin: 0 0 clamp(24px, 3vw, 36px); padding-top: 18px; border-top: 2px solid var(--rule-ink);
}
.home .hm-head .sec-num { grid-column: 1 / -1; }
.home .hm-head .section-title { grid-column: 1; margin: 0; max-width: 18em; }
.home .hm-head .section-lead { grid-column: 2; margin: 0; max-width: 34em; font-size: 1rem; line-height: 1.55; color: var(--text-muted); }
.home .hm-cta { margin: 28px 0 0; }
@media (max-width: 760px) {
.home .hm-head { grid-template-columns: 1fr; }
.home .hm-head .section-lead { grid-column: 1; margin-top: 12px; }
}
.home .hm-hero { padding: clamp(40px, 6vw, 88px) 0 0; border-bottom: 1px solid var(--rule); }
.home .hm-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.home .hm-kicker { display: flex; align-items: center; gap: 10px; color: var(--text-soft); margin: 0; }
.home .hm-kicker .fs-code { padding: 4px 6px 3px; background: var(--text); color: var(--bg); border-radius: var(--r-sm); }
.home .hm-hero h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.2rem); line-height: .98; letter-spacing: -.02em; margin: .32em 0 .34em; max-width: 11em; }
.home .hm-hero .lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); max-width: 33em; margin: 0; }
.home .hm-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }
.home .hm-hero-fig { margin: 0; }
.home .hm-hero-fig .fig-img { padding: clamp(10px, 1.6vw, 18px); }
.home .hm-hero-fig .fig-img img { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.home .hm-hero-fig .fig-cap a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--signal) 70%, transparent); }
.home .hm-fig-src { color: var(--text-soft); }
.home .hm-stats {
list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--rule);
}
.home .hm-stats li { padding: 16px 20px 18px; border-left: 1px solid var(--rule); display: flex; flex-direction: column-reverse; gap: 4px; }
.home .hm-stats li:first-child { border-left: 0; padding-left: 0; }
.home .hm-stats strong { font: 700 clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem)/1 var(--head); color: var(--text); font-variant-numeric: tabular-nums; }
.home .hm-stats span { font: 500 var(--fs-xs)/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
@media (max-width: 860px) {
.home .hm-hero-grid { grid-template-columns: 1fr; }
.home .hm-hero-fig { max-width: 560px; }
}
@media (max-width: 600px) {
.home .hm-stats { grid-template-columns: 1fr 1fr; }
.home .hm-stats li { padding: 14px 14px 16px; }
.home .hm-stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
.home .hm-stats li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 420px) { .home .hm-hero .actions .btn { width: 100%; justify-content: center; } }
.home .hm-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.home .hm-area {
position: relative; display: flex; flex-direction: column; margin: 0; padding: 20px 22px 18px;
border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent;
transition: background-color var(--t);
}
.home .hm-area::before { content: ""; position: absolute; left: -1px; top: -1px; width: 40px; height: 4px; background: var(--accent); }
.home .hm-area:hover { background: var(--surface); }
.home .hm-area:focus-within { box-shadow: inset 0 0 0 2px var(--ring-c); }
.home .hm-area-code { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0 16px; }
.home .hm-area-code .fs-code { color: var(--text); }
.home .hm-area h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 700 1.6rem/1.1 var(--head); }
.home .hm-area-icon { color: var(--accent-ink); display: inline-flex; }
.home .hm-area-icon .icon { width: 26px; height: 26px; }
.home .hm-area-link { color: var(--text); text-decoration: none; }
.home .hm-area-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.home .hm-area-link:focus-visible { box-shadow: none; }
.home .hm-area:hover .hm-area-link { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.home .hm-area-desc { margin: 0 0 16px; color: var(--text-muted); font-size: .94rem; line-height: 1.5; }
.home .hm-area-topics { list-style: none; margin: 0 0 4px; padding: 0; border-top: 1px solid var(--rule); }
.home .hm-area-topics li { border-bottom: 1px solid var(--rule); }
.home .hm-area-topics a {
position: relative; z-index: 1; display: flex; align-items: center; min-height: 38px; padding: 6px 0;
color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.3;
}
.home .hm-area-topics a:hover { color: var(--signal-ink); text-decoration: underline; }
.home .hm-area-more { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.home .hm-area-more .icon { width: 15px; height: 15px; color: var(--accent-ink); }
.home .hm-area:hover .hm-area-more { color: var(--text); }
.home .hm-area-tools { background: var(--signal-soft); }
.home .hm-area-tools:hover { background: color-mix(in srgb, var(--signal) 14%, var(--surface)); }
@media (max-width: 1100px) { .home .hm-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
.home .hm-areas { grid-template-columns: 1fr; border-left: 0; }
.home .hm-area { border-right: 0; padding: 18px 0 14px; }
.home .hm-area:hover { background: transparent; }
.home .hm-area-tools { padding-inline: 14px; margin-inline: -14px; }
.home .hm-area-topics a { min-height: 44px; }
.home .hm-area-topics li:nth-child(n+3) { display: none; }
.home .hm-area-desc { margin-bottom: 10px; }
}
.home .hm-paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.home .hm-path {
position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 18px;
background: var(--surface); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
color: var(--text); text-decoration: none; transition: background-color var(--t);
}
.home .hm-path::before { content: ""; position: absolute; left: -1px; top: -1px; width: 40px; height: 4px; background: var(--accent); }
.home .hm-path:hover { background: var(--bg); color: var(--text); }
.home .hm-path:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.home .hm-path:focus-visible { box-shadow: inset 0 0 0 2px var(--ring-c); border-radius: 0; }
.home .hm-path-top { display: flex; justify-content: space-between; gap: 10px; }
.home .hm-path-top .fs-code { color: var(--text); }
.home .hm-path strong { display: flex; align-items: center; gap: 9px; font: 700 1.25rem/1.2 var(--head); margin-top: 6px; }
.home .hm-path-icon { display: inline-flex; color: var(--accent-ink); }
.home .hm-path-icon .icon { width: 22px; height: 22px; }
.home .hm-path-lead { color: var(--text-muted); font-size: .92rem; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home .hm-path small { display: block; padding-top: 10px; border-top: 1px solid var(--rule); font-size: var(--fs-xs); }
.home .hm-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.home .hm-guide { position: relative; margin: 0; display: flex; flex-direction: column; }
.home .hm-guide-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); }
.home .hm-guide .gl-frame { position: relative; line-height: 0; background: transparent; }
.home .hm-guide .gl-frame img, .home .hm-guide .gl-frame svg { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; background: transparent; }
.home .hm-guide .gl-frame b { position: absolute; left: 4px; top: 4px; width: auto; height: auto; padding: 3px 5px 2px; border-radius: var(--r-sm); background: #16181a; color: #f4f2ee; font: 500 .68rem/1 var(--mono); box-shadow: none; }
.home .hm-guide-body { padding: 12px 2px 0; }
.home .hm-guide-body .mono-label { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.home .hm-guide h3 { margin: 0; font: 600 1.15rem/1.25 var(--head); }
.home .hm-guide h3 a { color: var(--text); text-decoration: none; }
.home .hm-guide h3 a::after { content: ""; position: absolute; inset: 0; }
.home .hm-guide:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.home .hm-guide:hover .hm-guide-strip { border-color: var(--border-strong); }
.home .hm-guide:focus-within .hm-guide-strip { box-shadow: var(--ring); }
.home .hm-guide h3 a:focus-visible { box-shadow: none; }
@media (max-width: 1100px) and (min-width: 760px) { .home .hm-guides { grid-template-columns: 1fr 1fr; } }
.home .hm-kit { background: none; padding-top: clamp(24px, 3vw, 40px); }
.home .hm-kit-panel { border: 1px solid var(--border-strong); border-top: 2px solid var(--rule-ink); border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--surface); }
.home .hm-kit-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--rule); }
.home .hm-kit-bar .icon { width: 16px; height: 16px; vertical-align: -3px; color: var(--signal); }
.home .hm-kit-bar > span:last-child { color: var(--signal-ink); }
.home .hm-kit .teaser-grid { gap: clamp(24px, 4vw, 64px); padding: clamp(22px, 4vw, 48px); }
.home .hm-kit h2 { margin: 0 0 .4em; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.home .hm-kit-text > p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.55; max-width: 32em; margin: 0 0 24px; }
.home .hm-kit .teaser-mock { display: grid; gap: 10px; max-width: 440px; width: 100%; justify-self: end; padding: 18px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r); box-shadow: none; transform: none; text-decoration: none; }
.home .hm-kit .teaser-mock:hover { color: var(--text); border-color: var(--border-strong); }
.home .hm-kit .tm-row em { font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.home .hm-kit .tm-seg { gap: 0; padding: 0; background: none; border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; }
.home .hm-kit .tm-seg i { min-width: 44px; height: 34px; border-radius: 0; color: var(--text-muted); font: 500 .9rem/1 var(--mono); border-left: 1px solid var(--border); }
.home .hm-kit .tm-seg i:first-child { border-left: 0; }
.home .hm-kit .tm-seg i .icon { width: 18px; height: 18px; }
.home .hm-kit .tm-seg i.on { background: var(--text); color: var(--bg); }
.home .hm-kit .tm-result { margin-top: 4px; display: flex; gap: 8px; align-items: center; padding: 12px 0 10px; background: none; color: var(--text); border-top: 2px solid var(--rule-ink); border-radius: 0; font: 500 var(--fs-sm)/1.3 var(--body); }
.home .hm-kit .tm-result .icon { color: var(--moss-ink); }
.home .hm-kit .tm-result b { margin-left: auto; font: 700 1.6rem/1 var(--head); color: var(--text); }
.home .hm-kit .tm-bars { gap: 5px; }
.home .hm-kit .tm-bars i { height: 6px; border-radius: 0; background: linear-gradient(90deg, var(--text) calc(var(--v) * 100%), var(--surface-3) 0); }
.home .hm-kit .tm-bars i:first-child { background: linear-gradient(90deg, var(--signal) calc(var(--v) * 100%), var(--surface-3) 0); }
@media (max-width: 800px) { .home .hm-kit .teaser-mock { justify-self: stretch; max-width: none; } }
.home .hm-tools .tool-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.home .hm-tools .tool-card { display: flex; flex-direction: column; border-radius: 0; box-shadow: none; background: transparent; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: visible; transition: background-color var(--t); }
.home .hm-tools .tool-card:hover { background: var(--surface); box-shadow: none; }
.home .hm-tools .tool-card:focus-within { box-shadow: inset 0 0 0 2px var(--ring-c); }
.home .hm-tools .tool-card .tool-card-media { display: none; }
.home .hm-tools .tool-card .card-body { display: flex; flex-direction: column; padding: 18px 20px 20px; background: transparent; flex: 1; }
.home .hm-tools .tool-card .tool-card-kicker { margin: 0; }
.home .hm-tools .tool-card .card-icon { position: static; width: auto; height: auto; color: var(--accent-ink); background: none; border: 0; box-shadow: none; border-radius: 0; }
.home .hm-tools .tool-card .card-icon .icon { width: 22px; height: 22px; }
.home .hm-tools .tool-card .kind { display: block; margin: 0; font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.home .hm-tools .tool-card h3 { margin: 12px 0 6px; font: 600 1.15rem/1.25 var(--head); }
.home .hm-tools .tool-card h3 a { color: var(--text); text-decoration: none; }
.home .hm-tools .tool-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.home .hm-tools .tool-card h3 a:focus-visible { box-shadow: none; }
.home .hm-tools .tool-card p.tool-card-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.5; -webkit-line-clamp: unset; display: block; }
@media (max-width: 1100px) { .home .hm-tools .tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
.home .hm-tools .tool-cards { grid-template-columns: 1fr; border-left: 0; }
.home .hm-tools .tool-card { border-right: 0; }
.home .hm-tools .tool-card .card-body { padding: 14px 0 16px; }
.home .hm-tools .tool-card p.tool-card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.home .hm-news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-auto-flow: dense; column-gap: clamp(20px, 4vw, 56px); }
.home .hm-news-item { position: relative; grid-column: 2; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.home .hm-news-item:nth-child(2) { border-top: 1px solid var(--rule); }
.home .hm-news-lead { grid-column: 1; grid-row: 1 / span 5; padding: 0; border: 0; }
.home .hm-news-lead > img, .home .hm-news-ph { width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); }
.home .hm-news-ph { display: grid; place-items: center; color: var(--accent-ink); }
.home .hm-news-lead .hm-news-body { padding: 14px 0 0; }
.home .hm-news-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 4px; font: 400 var(--fs-xs)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.home .hm-news-meta time { color: var(--text); font-variant-numeric: tabular-nums; }
.home .hm-news-sec { display: inline-flex; align-items: center; gap: 7px; }
.home .hm-news h3 { margin: 0; font: 600 1.2rem/1.25 var(--head); }
.home .hm-news-lead h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 700; }
.home .hm-news h3 a { color: var(--text); text-decoration: none; }
.home .hm-news h3 a::after { content: ""; position: absolute; inset: 0; }
.home .hm-news-item:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.home .hm-news h3 a:focus-visible { box-shadow: none; }
.home .hm-news-item:focus-within { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ring-c); }
.home .hm-news-desc { margin: 8px 0 0; color: var(--text-muted); font-size: .97rem; line-height: 1.55; }
.home .hm-latest .more-link { margin: 22px 0 0; text-align: left; }
.home .hm-latest .more-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 500 var(--fs-sm)/1.3 var(--mono); }
@media (max-width: 860px) {
.home .hm-news { grid-template-columns: 1fr; }
.home .hm-news-item, .home .hm-news-lead { grid-column: 1; grid-row: auto; }
.home .hm-news-lead { padding-bottom: 18px; }
}
@media (max-width: 759px) {
.home .hm-guides.hm-scroller {
grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(80%, 1fr); gap: 14px;
overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: thin;
}
.home .hm-guides.hm-scroller > * { scroll-snap-align: start; }
.home .hm-paths.hm-scroller {
grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr);
overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 14px; scroll-padding-inline: var(--gutter); border-left: 0;
}
.home .hm-paths.hm-scroller > * { scroll-snap-align: start; border-left: 1px solid var(--rule); }
}
@media print {
.home .hm-guides, .home .hm-tools .tool-cards { display: block; overflow: visible; }
}
/* 30-hubs.css (rules used here) */
[style*="--accent"], :root { --hb-on-panel: color-mix(in srgb, var(--accent, var(--signal)) 72%, #16181a); }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.card.hb-card {
position: relative; display: flex; flex-direction: column; overflow: visible;
background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: none;
transition: border-color var(--t);
}
.card.hb-card::before { content: ""; position: absolute; left: -1px; top: -1px; z-index: 2; width: 32px; height: 4px; background: var(--accent); border-top-left-radius: var(--r); }
.card.hb-card:hover { border-color: var(--border-strong); box-shadow: none; transform: none; }
.card.hb-card:focus-within { box-shadow: var(--ring); }
.hb-card-media { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--border); border-radius: var(--r) var(--r) 0 0; }
.hb-card .card-img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: none; }
.hb-card:hover .card-img { transform: none; }
.hb-card .card-body { position: static; display: flex; flex-direction: column; flex: 1; padding: 14px 16px 14px; background: transparent; }
.hb-card .hb-card-kicker { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 8px; font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); }
.hb-card-code { color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-card-sec { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-card-kicker .card-icon { color: var(--accent-ink); }
.hb-card-kicker .card-icon .icon { width: 15px; height: 15px; }
.hb-card .card-body h3 { margin: 0 0 6px; font: 600 1.22rem/1.2 var(--head); letter-spacing: 0; }
.hb-card .card-body h3 a { color: var(--text); text-decoration: none; }
.hb-card:hover .card-body h3 a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.hb-card .card-body h3 a:focus-visible { box-shadow: none; outline: none; }
.card-body p.hb-card-desc { margin: 0 0 14px; color: var(--text-muted); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .hb-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font: 400 var(--fs-xs)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.hb-dot { color: var(--border-strong); }
.hb-card .badge { align-self: flex-start; margin-top: auto; padding: 3px 7px; background: var(--surface-3); color: var(--text-muted); }
@media (max-width: 560px) {
.cards { gap: 12px; }
.card.hb-card { flex-direction: row; align-items: stretch; }
.hb-card-media { flex: 0 0 34%; aspect-ratio: auto; min-height: 104px; border-bottom: 0; border-right: 1px solid var(--border); border-radius: var(--r) 0 0 var(--r); }
.hb-card .card-body { padding: 10px 12px 10px; min-width: 0; }
.hb-card .card-body h3 { font-size: 1.08rem; margin-bottom: 4px; }
.hb-card .hb-card-kicker { margin-bottom: 4px; font-size: .68rem; }
.hb-card-sec { display: none; }
.card-body p.hb-card-desc { font-size: .86rem; margin-bottom: 8px; }
.card-body .hb-card-meta { padding-top: 6px; font-size: .68rem; }
}
.gl-chip, .test-page .gl-chip {
min-height: 40px; padding: 7px 12px; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--r-sm); box-shadow: none;
color: var(--text); font: 500 .9rem/1.2 var(--body); transition: background-color var(--t), border-color var(--t), color var(--t);
}
.gl-chip .icon { width: 16px; height: 16px; color: var(--accent-ink); }
.gl-chip small { font: 400 var(--fs-xs)/1 var(--mono); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.gl-chip:hover { border-color: var(--text); background: var(--surface); color: var(--text); }
.gl-chip[aria-current], .gl-chip[style][aria-current], .test-page .gl-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.gl-chip[aria-current] .icon, .gl-chip[aria-current] small, .test-page .gl-chip[aria-pressed="true"] .icon, .test-page .gl-chip[aria-pressed="true"] small { color: var(--bg); }
@media (max-width: 640px) {
.gl-chip { flex: none; min-height: 44px; scroll-snap-align: start; }
}
.gl-group { margin: clamp(44px, 5vw, 64px) 0 10px; padding-top: 16px; border-top: 2px solid var(--rule-ink); scroll-margin-top: 80px; }
.gl-frame { background: transparent; }
.gl-frame b { left: 4px; top: 4px; width: auto; height: auto; padding: 3px 5px 2px; border-radius: var(--r-sm); background: #16181a; color: #f4f2ee; font: 500 .68rem/1 var(--mono); box-shadow: none; }
.lp-step { grid-template-columns: 44px 120px minmax(0, 1fr); gap: 18px; margin: 0; padding: 14px 0; }
.lp-step::after { content: ""; position: absolute; left: 62px; right: 0; bottom: 0; height: 1px; background: var(--rule); }
.lp-done-label { color: var(--moss-ink); }
@media (max-width: 640px) {
.lp-step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.lp-step::after { left: 54px; }
}
.gl-chip:focus-visible, .az a:focus-visible, .hb-jump:focus-visible, .hb-groups-nav a:focus-visible { box-shadow: var(--ring); }
/* 40-article.css (rules used here) */
:root {
--ar-measure: 68ch;
--ar-head-top: 76px;
--ar-ok: var(--moss-ink);
--ar-ok-soft: color-mix(in srgb, var(--moss) 12%, var(--surface));
}
.article > section, .article > .table-wrap { scroll-margin-top: var(--ar-head-top); }
section[id], h2[id], h3[id] { scroll-margin-top: calc(var(--ar-head-top) + 8px); }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 0 -1.4em; padding: 0; font: 400 .8125rem/1.5 var(--mono); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ar-meta > span { white-space: nowrap; }
.ar-meta > span::before { content: "·"; display: inline-block; width: 1.4em; text-align: center; color: var(--border-strong); }
.ar-meta a { color: var(--text); }
.ar-meta time { color: var(--text-muted); }
.ar-meta .sv-btn { margin-left: auto; }
.ar-meta > span:last-of-type { margin-right: 1.4em; }
.article .ar-sec > .sec-num, .article .box > .sec-num { margin-bottom: 12px; }
.toc a.active { color: var(--text); font-weight: 500; }
.article .bar { background: var(--surface-3); border-radius: 0; }
.article .bar i { background: var(--text); border-radius: 0; }
.article .table-wrap { margin: 2em 0; border-radius: 0; }
.article table { width: 100%; border-collapse: collapse; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; font-size: .94rem; line-height: 1.5; }
.article caption { text-align: left; }
.article th, .article td { padding: 10px 14px 10px 0; vertical-align: top; text-align: left; }
.article th:last-child, .article td:last-child { padding-right: 0; }
.article thead th { background: var(--bg); white-space: nowrap; }
.article tbody th { color: var(--text); font-weight: 600; }
.article tbody tr:hover > * { background: var(--signal-soft); }
@media (min-width: 900px) {
.article .table-wrap:not(:has(> figure)) { overflow: visible; }
.article .table-wrap:not(:has(> figure)) thead th { position: sticky; top: 61px; z-index: 2; }
}
@media (max-width: 600px) {
.article .table-wrap { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
.article th, .article td { padding: 9px 12px 9px 0; }
.article thead th { white-space: normal; }
}
.article .box { padding: 18px 0 0; background: none; border: 0; border-top: 1px solid var(--rule-ink); border-radius: 0; box-shadow: none; }
.article .box h2 { display: block; margin: 0 0 10px; font-size: 1.6rem; line-height: 1.15; color: var(--text); }
.article .box ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-ink); }
.article .box li { position: relative; margin: 0; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--rule); line-height: 1.55; }
.article .box li:last-child { border-bottom: 0; }
.article .box .checklist li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 14px; border: 1.5px solid var(--text-muted); border-radius: var(--r-sm); background: none; -webkit-mask: none; mask: none; }
.article .box .checklist li::after { content: none; }
.article .quiz { margin: 72px 0 0; padding: 22px 24px 24px; background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--rule-ink); border-radius: 0 0 var(--r) var(--r); box-shadow: none; }
.article .quiz-q { padding: 16px 0 14px; background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.article .quiz-q:last-child { border-bottom: 0; }
.article .quiz-n { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .08em; color: var(--text-soft); }
.article .quiz-q.q-right .quiz-n { color: var(--ar-ok); }
.article .quiz-q.q-wrong .quiz-n { color: var(--signal-ink); }
.article .quiz-text { font: 600 1.1rem/1.35 var(--head); }
.article .quiz-ctx { background: var(--surface-2); color: var(--text); border-left: 2px solid var(--rule-ink); border-radius: 0; }
.article .quiz-opt { min-height: 46px; border: 1px solid var(--field-line); background: var(--surface); color: var(--text); border-radius: var(--r); transition: border-color var(--t), background-color var(--t); }
.article .quiz-opt:hover:not(:disabled) { border-color: var(--text); background: var(--surface-2); }
.article .quiz-opt:focus-visible { box-shadow: var(--ring); }
.article .quiz-opt.is-right { border-color: var(--moss); background: var(--ar-ok-soft); }
.article .quiz-opt.is-right::before { color: var(--ar-ok); }
.article .quiz-opt.is-wrong { border-color: var(--signal); background: var(--signal-soft); }
.article .quiz-opt.is-wrong::before { color: var(--signal-ink); }
.article .q-right .quiz-fb { color: var(--ar-ok); }
.article .q-wrong .quiz-fb { color: var(--signal-ink); }
.article .quiz-score { font: 600 1.15rem var(--head); }
.article-side { top: var(--ar-head-top); max-height: calc(100vh - var(--ar-head-top) - 16px); margin-top: 32px; padding: 0 4px 0 0; }
.side-toc { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.side-toc ol { border: 0; border-top: 2px solid var(--rule-ink); }
.side-toc li { margin: 0; }
.side-toc a { position: relative; display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; margin: 0; padding: 7px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; color: var(--text-muted); font-size: .86rem; line-height: 1.35; text-decoration: none; transition: color var(--t); }
.side-toc a:hover { color: var(--text); background: none; }
.side-toc a.active { color: var(--text); font-weight: 500; background: none; border-left: 0; }
.side-toc a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 2px; background: var(--signal); }
.side-toc a:focus-visible { box-shadow: var(--ring); }
.guided { background: var(--forest2); color: var(--on-dark); }
.guided::after { content: none; }
.gd-top { gap: 14px; }
.gd-bar { height: 2px; background: rgba(255,255,255,.16); border-radius: 0; }
.gd-bar i { background: var(--ember2); border-radius: 0; }
.gd-x { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r); color: var(--on-dark); font: 400 1rem/1 var(--mono); transition: background-color var(--t), border-color var(--t); }
.gd-x:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.gd-x:focus-visible { box-shadow: 0 0 0 2px var(--forest2), 0 0 0 4px var(--ember2); border-radius: var(--r); }
.gd-kicker { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .12em; color: var(--ember2); }
.gd-body h2 { color: var(--on-dark); font-family: var(--head); letter-spacing: -.01em; }
.gd-text { color: #d3d5d7; }
.gd-num { width: auto; height: auto; padding: 0; background: none; border-radius: 0; box-shadow: none; color: var(--ember2); font: 500 clamp(3rem, 10vw, 5rem)/1 var(--mono); }
.gd-img { background: var(--panel); border-radius: var(--r); box-shadow: none; border: 1px solid rgba(255,255,255,.12); }
.gd-done { color: var(--ember2); font-family: var(--mono); }
.gd-gear label { border-bottom: 1px solid rgba(255,255,255,.12); padding: 8px 0; }
.gd-gear input { accent-color: var(--ember2); }
.gd-nav .btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: var(--on-dark); }
.gd-nav .btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.08); border-color: var(--on-dark); color: var(--on-dark); }
.gd-nav .btn:focus-visible { box-shadow: 0 0 0 2px var(--forest2), 0 0 0 4px var(--ember2); }
.article sup.cite { margin-left: 1px; font: 500 .72em/0 var(--mono); vertical-align: super; }
.article sup.cite a { color: var(--signal-ink); text-decoration: none; }
.article sup.cite a:hover { text-decoration: underline; }
.article sup.cite a:focus-visible { box-shadow: var(--ring); border-radius: 2px; }
@media (max-width: 600px) {
.ar-meta { font-size: .78rem; }
.ar-meta .sv-btn { margin-left: 1.4em; }
.article .quiz { padding: 18px 14px; }
}
@media print {
.article thead th { position: static !important; background: none; }
.article tbody tr:hover > * { background: inherit; }
}
/* 50-tools.css (rules used here) */
.card.tool-card {
position: relative; display: flex; flex-direction: column; overflow: visible;
background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: none;
transition: border-color var(--t);
}
.card.tool-card::before { content: ""; position: absolute; left: -1px; top: -1px; z-index: 2; width: 32px; height: 4px; background: var(--accent); border-top-left-radius: var(--r); }
.card.tool-card:hover { border-color: var(--border-strong); box-shadow: none; transform: none; }
.card.tool-card:focus-within { box-shadow: var(--ring); }
.tool-card-media { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--border); border-radius: var(--r) var(--r) 0 0; }
.tool-card .card-img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transform: none; transition: none; }
.tool-card .card-body { position: static; display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; background: transparent; }
.tool-card .tool-card-kicker { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 8px; font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); }
.tool-card-code { color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tool-card-sec { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.tool-card .card-icon { color: var(--accent-ink); }
.tool-card .card-icon .icon { width: 15px; height: 15px; }
.tool-card .kind { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.tool-card .card-body h3 { margin: 0 0 6px; font: 600 1.22rem/1.2 var(--head); letter-spacing: 0; }
.tool-card .card-body h3 a { color: var(--text); text-decoration: none; }
.tool-card:hover .card-body h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.tool-card .card-body h3 a:focus-visible { box-shadow: none; outline: none; }
.tool-card .card-body p.tool-card-desc { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
.card.tool-card { flex-direction: row; align-items: stretch; }
.tool-card-media { flex: 0 0 34%; aspect-ratio: auto; min-height: 96px; border-bottom: 0; border-right: 1px solid var(--border); border-radius: var(--r) 0 0 var(--r); }
.tool-card .card-body { padding: 10px 12px; min-width: 0; }
.tool-card .card-body h3 { font-size: 1.08rem; margin-bottom: 4px; }
.tool-card .tool-card-kicker { margin-bottom: 4px; font-size: .68rem; }
.tool-card .card-body p.tool-card-desc { font-size: .86rem; }
}
