*,
*::before,
*::after {
    box-sizing: border-box;
}
:root {
    --bg: #0C0B0A;
    --bg-deep: #161311;
    --panel: #1C1916;
    --panel-2: #26221D;
    --paper: #F3E6D2;
    --title: #FFF8F0;
    --text: #EDE4D8;
    --muted: #B7A898;
    --soft: #8A7B6C;
    --red: #E11D2E;
    --red-hot: #FF4A4F;
    --wine: #8B1E2D;
    --rust: #E25A2A;
    --amber: #E2B14A;
    --border: rgba(226, 177, 74, 0.16);
    --border-strong: rgba(225, 29, 46, 0.40);
    --shadow: 0 18px 44px rgba(0,0,0,0.46);
    --footer: #080706;
    --footer-text: #D8CBBA;
    --max: 1280px;
}
html {
    background: var(--bg);
    color-scheme: dark;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    min-width: 0;
    background:
        radial-gradient(circle at 90% 0%, rgba(139,30,45,0.12), transparent 34rem),
        linear-gradient(180deg, #0C0B0A 0%, #11100E 54%, #0C0B0A 100%);
    color: var(--text);
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
img,
svg {
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--title);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}
button,
input,
summary {
    font: inherit;
}
button {
    cursor: pointer;
}
.wrap {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
    min-width: 0;
}
.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--paper);
    color: #231A14;
    border-radius: 6px;
}
.skip-link:focus {
    top: 12px;
}
.site-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--border);
    background: rgba(12, 11, 10, 0.96);
}
.header-row {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}
.brand-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: min(220px, 48vw);
    object-fit: contain;
    object-position: center;
}
.brand-text-logo {
    color: var(--title);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.brand-en {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.16em;
    white-space: nowrap;
}
.header-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
}
.header-links a:hover,
.header-links a:focus-visible,
.header-links a.is-current {
    color: var(--title);
    border-color: var(--border-strong);
    background: rgba(225,29,46,0.08);
}

.tool-zone {
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.tool-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    padding-block: 10px;
}
.site-tool {
    min-width: 0;
}
.site-tool > summary {
    list-style: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    background: var(--panel);
    user-select: none;
    cursor: pointer;
}
.site-tool > summary::-webkit-details-marker {
    display: none;
}
.site-tool > summary::after {
    content: "+";
    color: var(--amber);
    font-weight: 800;
}
.site-tool[open] > summary::after {
    content: "−";
}
.tool-panel {
    width: min(100%, 980px);
    margin-top: 10px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.tool-directory {
    display: none;
}
.tool-directory[open],
.tool-search[open] {
    flex: 1 1 100%;
}
.tool-directory[open] .tool-panel,
.tool-search[open] .tool-panel {
    width: 100%;
}
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.directory-group {
    min-width: 0;
}
.directory-group h2 {
    margin: 0 0 8px;
    color: var(--amber);
    font-size: 14px;
    letter-spacing: 0.08em;
}
.directory-group ul,
.search-results,
.side-group ul,
.footer-directory ul,
.related-links,
.clean-list,
.topic-list,
.check-points,
.read-path,
.status-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.directory-group li + li {
    margin-top: 6px;
}
.directory-group a {
    display: block;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid transparent;
}
.directory-group a:hover,
.directory-group a:focus-visible,
.directory-group a.is-current {
    background: var(--panel-2);
    border-color: var(--border-strong);
}
.directory-group strong,
.directory-group span {
    display: block;
}
.directory-group strong {
    color: var(--title);
    font-size: 15px;
}
.directory-group span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.tool-close {
    min-height: 44px;
    margin-top: 16px;
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
}
.tool-close:hover {
    background: rgba(225,29,46,0.10);
}
.site-search-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--title);
    font-weight: 700;
}
.search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}
.search-controls input {
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #100E0D;
    color: var(--title);
}
.search-controls button {
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg,#FF4A4F 0%,#E11D2E 46%,#E25A2A 100%);
    color: #FFF8F0;
    font-weight: 700;
}
.search-controls .button-secondary {
    background: var(--paper);
    color: #2B2119;
}
.search-note {
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 13px;
}
.search-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.search-result {
    min-width: 0;
}
.search-result[hidden] {
    display: none !important;
}
.search-result a {
    display: block;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-deep);
}
.search-result a:hover,
.search-result a:focus-visible,
.search-result a.is-current {
    border-color: var(--border-strong);
    background: var(--panel-2);
}
.search-result strong,
.search-result span {
    display: block;
}
.search-result strong {
    color: var(--title);
}
.search-result span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.search-empty {
    margin: 12px 0 0;
    color: var(--paper);
}

.content-frame {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-block: 28px 56px;
}
.side-index {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(22,19,17,0.92);
    padding: 14px;
}
.side-index.can-stick {
    position: sticky;
    top: 20px;
}
.side-home,
.full-directory-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 5px;
}
.side-home {
    color: var(--title);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.side-home.is-current,
.side-home:hover,
.side-home:focus-visible {
    background: rgba(225,29,46,0.10);
}
.side-group {
    margin-top: 16px;
}
.side-group h2 {
    margin: 0 0 6px;
    color: var(--soft);
    font-size: 12px;
    letter-spacing: 0.18em;
}
.side-group a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 9px 6px 17px;
    color: var(--muted);
    border-radius: 5px;
}
.side-group a::before {
    content: "";
    position: absolute;
    left: 7px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: transparent;
    pointer-events: none;
}
.side-group a:hover,
.side-group a:focus-visible,
.side-group a.is-current {
    color: var(--title);
    background: rgba(225,29,46,0.09);
}
.side-group a.is-current::before {
    background: var(--red);
}
.full-directory-link {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--amber);
}
.site-main {
    min-width: 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
}
.breadcrumb a {
    color: var(--paper);
}
.page-head,
.home-intro {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}
.page-kicker,
.section-kicker,
.eyebrow {
    color: var(--red-hot);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
h1,
h2,
h3 {
    color: var(--title);
    line-height: 1.35;
    overflow-wrap: anywhere;
}
h1 {
    margin: 6px 0 12px;
    font-size: clamp(28px, 4vw, 32px);
}
h2 {
    font-size: clamp(21px, 3vw, 25px);
}
h3 {
    font-size: 18px;
}
.page-lead,
.lead {
    margin: 0;
    max-width: 800px;
    color: var(--paper);
    font-size: 17px;
}
.page-body {
    max-width: 790px;
}
.page-body.wide {
    max-width: none;
}
.article-section,
.home-section {
    margin-top: 48px;
}
.article-section > h2,
.home-section .section-head h2 {
    margin-top: 0;
}
.article-section p,
.page-body > p {
    margin: 0 0 16px;
}
.article-section p:last-child {
    margin-bottom: 0;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}
.section-head h2 {
    margin: 4px 0 0;
}
.section-head > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}
.text-link {
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: rgba(225,29,46,0.7);
    text-underline-offset: 4px;
}
.text-link:hover {
    color: var(--title);
}
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 800;
}
.btn-primary {
    background: linear-gradient(135deg,#FF4A4F 0%,#E11D2E 46%,#E25A2A 100%);
    color: #FFF8F0;
}
.btn-secondary {
    background: var(--paper);
    color: #2B2119;
}
.btn:hover {
    filter: brightness(1.05);
}
.media-frame {
    margin: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #14110F;
}
.media-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}
.media-cover img {
    max-height: 300px;
}
.media-horizontal img {
    max-height: 240px;
}
.media-app img {
    max-height: 420px;
}
.media-mark img {
    max-width: 72px;
    max-height: 72px;
}
.media-fallback {
    width: 100%;
    min-height: 150px;
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(139,30,45,0.86), rgba(28,25,22,0.94)),
        #1C1916;
    color: var(--paper);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 20px;
}
.media-app .media-fallback,
.media-mark .media-fallback {
    min-height: 120px;
}
.hero-grid,
.media-copy,
.two-editor,
.reading-bands,
.response-grid,
.mobile-read-grid {
    display: grid;
    gap: 24px;
    align-items: center;
    min-width: 0;
}
.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hero-copy .hero-line {
    margin: 8px 0 14px;
    color: var(--title);
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.35;
    font-weight: 800;
}
.hero-copy p {
    margin: 0;
}
.read-path {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.read-path a {
    display: block;
    min-height: 104px;
    padding: 14px;
    border-top: 2px solid var(--red);
    border-bottom: 1px solid var(--border);
    background: rgba(28,25,22,0.78);
}
.read-path strong,
.read-path span {
    display: block;
}
.read-path strong {
    color: var(--title);
    font-size: 17px;
}
.read-path span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
.digest-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
    align-items: start;
}
.digest-list {
    display: grid;
    gap: 12px;
}
.digest-item {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.digest-item h3 {
    margin: 0 0 6px;
}
.digest-item p {
    margin: 0 0 6px;
    color: var(--muted);
}
.focus-layout {
    display: grid;
    gap: 18px;
}
.focus-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
    gap: 22px;
}
.focus-copy > article p {
    margin: 0;
}
.short-notes {
    display: grid;
    gap: 10px;
}
.short-note {
    padding: 12px 14px;
    border-left: 3px solid var(--rust);
    background: var(--panel);
}
.short-note strong,
.short-note span {
    display: block;
}
.short-note span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}
.two-editor {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    align-items: start;
}
.editor-unit {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    background: rgba(28,25,22,0.74);
}
.editor-unit h3 {
    margin: 14px 0 8px;
}
.editor-unit p {
    margin: 0 0 12px;
}
.mini-points {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.mini-point {
    padding-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}
.media-copy {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.analysis-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.analysis-item {
    padding: 12px;
    border-top: 2px solid var(--amber);
    background: var(--panel);
}
.analysis-item strong,
.analysis-item span {
    display: block;
}
.analysis-item span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
}
.reading-bands {
    gap: 18px;
}
.reading-band {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    gap: 22px;
    align-items: center;
    padding-block: 18px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.reading-band h3 {
    margin-top: 0;
}
.four-checks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}
.four-checks div {
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
}
.four-checks strong,
.four-checks span {
    display: block;
}
.four-checks span {
    color: var(--muted);
    font-size: 13px;
}
.response-grid {
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
}
.paper-compare {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.paper-compare article {
    min-width: 0;
    padding: 16px;
    background: var(--paper);
    color: #2A211A;
    border-radius: 6px;
}
.paper-compare h3 {
    margin: 0 0 8px;
    color: #2A211A;
}
.paper-compare p {
    margin: 0;
    color: #4A3C31;
}
.track-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    counter-reset: track;
}
.track-points article {
    counter-increment: track;
    position: relative;
    padding: 40px 12px 12px;
    border-top: 1px solid var(--border-strong);
    background: var(--panel);
}
.track-points article::before {
    content: counter(track, decimal-leading-zero);
    position: absolute;
    top: 10px;
    left: 12px;
    color: var(--red-hot);
    font-size: 12px;
    font-weight: 800;
}
.track-points h3 {
    margin: 0 0 6px;
    font-size: 16px;
}
.track-points p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.status-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    background: var(--panel);
}
.status-card strong,
.status-card span {
    display: block;
}
.status-card strong {
    color: var(--title);
}
.status-card span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}
.theme-index {
    border-top: 1px solid var(--border);
}
.theme-row {
    display: grid;
    grid-template-columns: minmax(170px, .42fr) minmax(0, 1.58fr);
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.theme-row h3 {
    margin: 0;
}
.theme-row p {
    margin: 0 0 8px;
}
.observation-stack {
    display: grid;
    gap: 14px;
}
.observation-home {
    margin-top: 24px;
}
.observation-card {
    padding: 18px;
    border-left: 3px solid var(--wine);
    background: var(--panel);
}
.observation-label {
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
}
.clue-band {
    padding: 20px 0 20px 20px;
    border-left: 2px solid var(--red);
}
.clue-band .media-frame {
    margin-bottom: 16px;
}
.mobile-read-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
}
.mobile-images {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 12px;
    align-items: end;
}
.final-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.final-three article {
    min-width: 0;
    padding: 18px;
    border-top: 2px solid var(--red);
    background: rgba(28,25,22,0.68);
}
.final-three h3 {
    margin-top: 0;
}
.final-three p {
    margin-bottom: 10px;
    color: var(--muted);
}

.toc {
    margin: 24px 0 0;
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--panel);
}
.toc strong {
    display: block;
    color: var(--title);
    margin-bottom: 8px;
}
.toc ul {
    margin: 0;
    padding-left: 20px;
}
.toc a {
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: rgba(226,177,74,.4);
    text-underline-offset: 3px;
}
.info-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.info-compare article {
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--panel);
}
.info-compare h3 {
    margin-top: 0;
}
.note-box,
.paper-box,
.rule-box {
    padding: 16px 18px;
    border-radius: 6px;
}
.note-box {
    border-left: 3px solid var(--rust);
    background: var(--panel);
}
.paper-box {
    background: var(--paper);
    color: #2B2119;
}
.paper-box h2,
.paper-box h3 {
    color: #2B2119;
}
.paper-box p,
.paper-box li {
    color: #493A2F;
}
.rule-box {
    border: 1px solid var(--border);
    background: rgba(22,19,17,.86);
}
.rule-list {
    margin: 0;
    padding-left: 20px;
}
.rule-list li + li {
    margin-top: 8px;
}
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}
.article-table th,
.article-table td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.article-table th {
    color: var(--title);
    background: var(--panel-2);
}
.article-table td {
    color: var(--text);
    background: var(--panel);
}
.longform-article {
    max-width: 760px;
}
.longform-article + .longform-article {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border-strong);
}
.longform-article .observation-label {
    margin-bottom: 8px;
}
.brief-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.brief-card {
    min-width: 0;
    padding: 16px;
    border-top: 2px solid var(--red);
    background: var(--panel);
}
.brief-card h3 {
    margin: 0 0 6px;
}
.brief-card p {
    margin: 0 0 8px;
    color: var(--muted);
}
.faq-list details {
    border-top: 1px solid var(--border);
    padding: 4px 0;
}
.faq-list details:last-child {
    border-bottom: 1px solid var(--border);
}
.faq-list summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--title);
    font-weight: 800;
    list-style-position: inside;
}
.faq-list p {
    margin: 0 0 18px;
    max-width: 800px;
    color: var(--muted);
}
.related-block {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--border-strong);
}
.related-block h2 {
    margin: 0 0 10px;
    font-size: 19px;
}
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.related-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--paper);
}
.related-links a:hover,
.related-links a:focus-visible {
    border-color: var(--border-strong);
    background: var(--panel);
}

.site-footer {
    border-top: 2px solid var(--red);
    background: var(--footer);
    color: var(--footer-text);
}
.footer-inner {
    padding-block: 38px 34px;
}
.footer-brand {
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.brand-footer {
    align-items: center;
}
.footer-brand p {
    margin: 0;
    color: #BFAF9E;
}
.footer-directory {
    padding-top: 24px;
}
.footer-home a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--paper);
    font-weight: 800;
}
.footer-groups {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-top: 14px;
}
.footer-groups h2 {
    margin: 0 0 8px;
    color: var(--amber);
    font-size: 14px;
}
.footer-groups a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: #BFAF9E;
}
.footer-groups a:hover,
.footer-groups a:focus-visible,
.footer-groups a.is-current {
    color: var(--title);
}
.copyright {
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: #9F9182;
    font-size: 14px;
}
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1099px) {
    .tool-row {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .tool-directory {
        display: block;
    }
    .content-frame {
        display: block;
        padding-top: 22px;
    }
    .side-index {
        display: none;
    }
    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .wrap {
        width: min(calc(100% - 32px), var(--max));
    }
    .header-row {
        min-height: 64px;
        gap: 10px;
    }
    .brand {
        gap: 8px;
    }
    .brand-logo {
        height: 30px;
        max-width: 46vw;
    }
    .brand-text-logo {
        font-size: 21px;
    }
    .brand-en {
        font-size: 10px;
        letter-spacing: .1em;
    }
    .header-links {
        gap: 2px;
    }
    .header-links a {
        padding: 0 8px;
        font-size: 14px;
    }
    .tool-row {
        gap: 8px;
    }
    .site-tool > summary {
        padding-inline: 12px;
    }
    .tool-panel {
        padding: 14px;
    }
    .directory-grid,
    .search-results {
        grid-template-columns: 1fr;
    }
    .search-controls {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .search-controls .button-secondary {
        grid-column: 1 / -1;
    }
    .content-frame {
        padding-bottom: 36px;
    }
    h1 {
        font-size: clamp(24px, 8vw, 28px);
    }
    .page-lead,
    .lead {
        font-size: 16px;
    }
    .article-section,
    .home-section {
        margin-top: 32px;
    }
    .section-head {
        display: block;
    }
    .section-head > p {
        margin-top: 8px;
    }
    .hero-grid,
    .digest-layout,
    .focus-copy,
    .two-editor,
    .media-copy,
    .reading-band,
    .response-grid,
    .mobile-read-grid,
    .theme-row {
        grid-template-columns: 1fr;
    }
    .hero-grid .hero-copy {
        order: 1;
    }
    .hero-grid .media-frame {
        order: 2;
    }
    .read-path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .read-path a {
        min-height: 118px;
    }
    .analysis-list,
    .paper-compare,
    .track-points,
    .status-grid,
    .four-checks,
    .final-three,
    .brief-grid,
    .info-compare {
        grid-template-columns: 1fr;
    }
    .media-cover img {
        max-height: 260px;
    }
    .media-horizontal img {
        max-height: none;
    }
    .media-app img {
        max-height: 360px;
    }
    .media-fallback {
        min-height: 110px;
        max-height: 140px;
    }
    .mobile-images {
        grid-template-columns: 1fr;
    }
    .media-mark {
        max-width: 88px;
        justify-self: start;
    }
    .footer-brand {
        grid-template-columns: 1fr;
    }
    .footer-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-table,
    .article-table tbody,
    .article-table tr,
    .article-table td {
        display: block;
        width: 100%;
    }
    .article-table thead {
        display: none;
    }
    .article-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--border);
    }
    .article-table td {
        border: 0;
        border-bottom: 1px solid var(--border);
        padding-left: 44%;
        position: relative;
        min-height: 48px;
    }
    .article-table td:last-child {
        border-bottom: 0;
    }
    .article-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        top: 12px;
        width: 38%;
        color: var(--amber);
        font-weight: 800;
    }
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        min-height: calc(56px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--border-strong);
        background: rgba(8,7,6,.98);
    }
    .mobile-bottom-nav a {
        min-width: 0;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 3px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 700;
        text-align: center;
    }
    .mobile-bottom-nav a.is-current {
        color: var(--title);
        box-shadow: inset 0 3px 0 var(--red);
        background: rgba(225,29,46,.08);
    }
    .footer-inner {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 430px) {
    .faq-head-link {
        display: none !important;
    }
    .brand-en {
        display: none;
    }
    .footer-groups {
        grid-template-columns: 1fr 1fr;
        gap: 16px 12px;
    }
}

@media (max-width: 360px) {
    .wrap {
        width: min(calc(100% - 32px), var(--max));
    }
    .header-links a {
        padding-inline: 6px;
        font-size: 13px;
    }
    .read-path {
        grid-template-columns: 1fr 1fr;
    }
    .read-path strong {
        font-size: 15px;
    }
    .read-path span {
        font-size: 13px;
    }
}
