* {
    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-hi: #FF4A4F;
    --wine: #8B1E2D;
    --rust: #E25A2A;
    --amber: #E2B14A;
    --border: rgba(226,177,74,0.16);
    --border-red: rgba(225,29,46,0.40);
    --shadow: 0 18px 44px rgba(0,0,0,0.46);
    --header-h: 80px;
}
html {
    background: var(--bg);
    color-scheme: dark;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    min-width: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
a {
    color: inherit;
    text-decoration: none;
}
a, button, input, summary {
    -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(255,74,79,0.75);
    outline-offset: 3px;
}
button, input {
    font: inherit;
}
button {
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
figure {
    margin: 0;
}
h1, h2, h3 {
    margin-top: 0;
    color: var(--title);
    line-height: 1.28;
    letter-spacing: -0.02em;
    scroll-margin-top: 104px;
}
h1 {
    font-size: clamp(1.65rem, 2.3vw, 2rem);
    margin-bottom: 18px;
}
h2 {
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    margin-bottom: 14px;
}
h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}
p {
    margin: 0 0 1em;
}
ul, ol {
    margin-top: 0;
}
.wrap {
    width: min(1280px, calc(100% - 40px));
    margin-inline: auto;
    min-width: 0;
}
.prose {
    width: min(790px, 100%);
}
.prose-wide {
    width: min(980px, 100%);
}
.skip-link {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    background: var(--paper);
    color: #241b15;
    padding: 10px 14px;
    border-radius: 6px;
}
.skip-link:focus {
    transform: translateY(0);
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(12,11,10,0.98);
    border-bottom: 1px solid var(--border-red);
    box-shadow: 0 8px 26px rgba(0,0,0,0.20);
}
.header-row {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 44px;
}
.brand-logo {
    height: 34px;
    width: auto;
    max-width: min(220px, 44vw);
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
}
.brand-copy {
    min-width: 0;
    display: grid;
    line-height: 1.1;
}
.brand-copy strong {
    color: var(--title);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}
.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}
.desktop-actions, .mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.mobile-actions {
    display: none;
}
.header-link, .header-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.header-link:hover, .header-button:hover {
    border-color: var(--border);
    background: var(--panel);
}
.channel-bar {
    position: relative;
    z-index: 10;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
}
.desktop-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.channel-group {
    min-width: 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 22px;
    border-right: 1px solid var(--border);
}
.channel-group:first-child {
    padding-left: 0;
}
.channel-group:last-child {
    border-right: 0;
    padding-right: 0;
}
.channel-group-title {
    color: var(--amber);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}
.channel-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
}
.channel-links a, .mobile-channel-grid a {
    min-height: 34px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--muted);
    font-size: 0.92rem;
}
.channel-links a:hover, .mobile-channel-grid a:hover {
    color: var(--title);
}
.channel-links a.is-current::before, .mobile-channel-grid a.is-current::before,
.footer-group a.is-current::before, .mobile-nav a.is-current::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    margin-right: 7px;
    box-shadow: 0 0 0 3px rgba(225,29,46,0.13);
    flex: 0 0 auto;
    pointer-events: none;
}
.channel-links a.is-current, .mobile-channel-grid a.is-current {
    color: var(--title);
    font-weight: 700;
}
.mobile-channel-grid {
    display: none;
}
main {
    min-width: 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--soft);
    font-size: 0.9rem;
    padding-top: 22px;
}
.breadcrumb a {
    color: var(--muted);
}
.breadcrumb a:hover {
    color: var(--title);
}
.page-hero, .home-hero {
    padding: 48px 0 36px;
}
.home-hero {
    padding-top: 56px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--red);
    pointer-events: none;
}
.lead {
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.9;
}
.sublead {
    color: var(--muted);
    font-size: 1rem;
}
.hero-statement {
    color: var(--paper);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 750;
    margin: -4px 0 18px;
}
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 750;
    border: 1px solid transparent;
}
.btn-primary {
    color: #fffaf4;
    background: linear-gradient(135deg,#FF4A4F 0%,#E11D2E 46%,#E25A2A 100%);
    box-shadow: 0 12px 30px rgba(225,29,46,0.18);
}
.btn-secondary {
    color: #241b15;
    background: var(--paper);
}
.btn:hover {
    transform: translateY(-1px);
}
.section {
    padding: 44px 0;
    border-top: 1px solid var(--border);
}
.section:first-of-type {
    border-top: 0;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.section-head p {
    max-width: 620px;
    color: var(--muted);
    margin-bottom: 0;
}
.section-kicker {
    color: var(--red-hi);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    margin-bottom: 7px;
}
.content-media {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #100e0d;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}
.content-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    object-position: center;
}
.cover-media img {
    max-height: 300px;
}
.app-media img {
    max-height: 420px;
}
.mark-media img {
    max-height: 72px;
}
.cover-fallback {
    border: 1px solid var(--border-red);
    background: linear-gradient(135deg, var(--wine), #13100f 60%, var(--bg));
    padding: 28px;
    border-radius: 8px;
    margin-top: 28px;
}
.cover-fallback strong {
    color: var(--title);
    font-size: 1.25rem;
}
.cover-fallback span {
    display: block;
    color: var(--muted);
    margin-top: 7px;
}
.hero-media-wrap {
    margin-top: 30px;
}
.split-grid, .media-copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 30px;
    align-items: start;
    min-width: 0;
}
.split-grid > :only-child, .media-copy-grid > :only-child {
    grid-column: 1 / -1;
}
.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.six-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.guide-unit {
    min-width: 0;
    padding: 22px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.guide-unit .tag, .tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 8px;
    border: 1px solid var(--border-red);
    border-radius: 999px;
    color: var(--red-hi);
    font-size: 0.76rem;
    font-weight: 750;
    margin-bottom: 9px;
}
.guide-unit p, .muted {
    color: var(--muted);
}
.editor-card, .soft-card, .paper-card, .status-card, .service-card {
    min-width: 0;
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 8px;
    padding: 22px;
}
.editor-card .content-media, .soft-card .content-media {
    margin-bottom: 18px;
}
.editor-card p, .soft-card p {
    color: var(--muted);
}
.paper-card {
    background: var(--paper);
    color: #2c2119;
    border-color: rgba(243,230,210,0.24);
}
.paper-card h2, .paper-card h3, .paper-card a {
    color: #2c2119;
}
.link-list, .plain-list, .check-list, .topic-list, .timeline-list, .directory-list, .reading-list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.link-list li, .plain-list li, .check-list li, .topic-list li, .reading-list li {
    border-top: 1px solid var(--border);
    padding: 13px 0;
}
.link-list li:first-child, .plain-list li:first-child, .check-list li:first-child, .topic-list li:first-child, .reading-list li:first-child {
    border-top: 0;
    padding-top: 0;
}
.link-list a {
    color: var(--paper);
    font-weight: 700;
}
.link-list a:hover {
    color: var(--red-hi);
}
.topic-list strong, .check-list strong, .reading-list strong {
    color: var(--title);
    display: block;
    margin-bottom: 4px;
}
.topic-list span, .check-list span, .reading-list span {
    color: var(--muted);
}
.timeline-list {
    position: relative;
    padding-left: 20px;
}
.timeline-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--border-red);
    pointer-events: none;
}
.timeline-list li {
    position: relative;
    padding: 0 0 24px 16px;
}
.timeline-list li::before {
    content: "";
    position: absolute;
    left: -19px;
    top: 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px var(--bg);
    pointer-events: none;
}
.timeline-list strong {
    color: var(--title);
    display: block;
}
.timeline-list span {
    color: var(--muted);
}
.fact-opinion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.fact-opinion-grid > div {
    background: var(--panel);
    padding: 22px;
}
.fact-opinion-grid h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fact-opinion-grid h3::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    pointer-events: none;
}
.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}
.status-card {
    position: relative;
    padding-top: 26px;
}
.status-card::before {
    content: attr(data-code);
    position: absolute;
    top: 9px;
    right: 12px;
    color: var(--soft);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    pointer-events: none;
}
.status-card strong {
    display: block;
    color: var(--title);
    margin-bottom: 6px;
}
.status-card span {
    color: var(--muted);
    font-size: 0.93rem;
}
.status-card.status-supported { border-left: 4px solid #d7c07a; }
.status-card.status-partial { border-left: 4px solid var(--amber); }
.status-card.status-limited { border-left: 4px solid var(--soft); }
.status-card.status-changed { border-left: 4px solid var(--rust); }
.status-card.status-misleading { border-left: 4px solid var(--red-hi); }
.status-card.status-pending { border-left: 4px solid var(--wine); }
.note-box {
    border-left: 3px solid var(--amber);
    background: var(--panel);
    padding: 18px 20px;
    color: var(--muted);
}
.note-box strong {
    color: var(--title);
}
.wine-band {
    background: linear-gradient(120deg, #5a151f, #271311 60%, #161311);
    border: 1px solid var(--border-red);
    border-radius: 8px;
    padding: 28px;
}
.wine-band p {
    color: #eadccd;
}
.anchor-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0 0;
}
.anchor-menu a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
}
.anchor-menu a:hover {
    color: var(--title);
    border-color: var(--border-red);
}
.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}
.topic-tags span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--muted);
    font-size: 0.84rem;
}
.prose-section {
    padding: 24px 0;
    border-top: 1px solid var(--border);
}
.prose-section:first-child {
    border-top: 0;
}
.prose-section p, .prose-section li {
    color: var(--text);
}
.prose-section .muted {
    color: var(--muted);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.related-link {
    min-height: 96px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--panel);
}
.related-link strong {
    color: var(--title);
    display: block;
    margin-bottom: 4px;
}
.related-link span {
    color: var(--muted);
    font-size: 0.9rem;
}
.related-link:hover {
    border-color: var(--border-red);
    background: var(--panel-2);
}
.table-like {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: clip;
}
.table-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
    border-top: 1px solid var(--border);
}
.table-row:first-child {
    border-top: 0;
}
.table-row > * {
    padding: 14px 16px;
}
.table-row strong {
    color: var(--title);
    background: var(--panel-2);
}
.table-row span {
    color: var(--muted);
    background: var(--panel);
}
.faq-list {
    display: grid;
    gap: 12px;
}
.faq-list details {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 8px;
    padding: 0 18px;
}
.faq-list summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--title);
    font-weight: 750;
}
.faq-list details p {
    color: var(--muted);
    padding: 0 0 18px;
    margin: 0;
}
.site-footer {
    background: #080706;
    border-top: 2px solid var(--red);
    color: #D8CBBA;
    margin-top: 48px;
}
.footer-brand-row {
    padding: 34px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    border-bottom: 1px solid var(--border);
}
.footer-brand-row p {
    max-width: 680px;
    color: #b9aa99;
    margin: 0;
}
.footer-directory {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}
.footer-group {
    min-width: 0;
}
.footer-group h2 {
    color: #f0e3d1;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.footer-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-group li {
    margin: 5px 0;
}
.footer-group a {
    color: #9f9182;
    font-size: 0.88rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}
.footer-group a:hover, .footer-group a.is-current {
    color: #f4e7d6;
}
.footer-note {
    padding: 24px 0 34px;
    color: #8f8275;
    font-size: 0.86rem;
}
.footer-note p:last-child {
    margin-bottom: 0;
}
.site-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0,0,0,0.72);
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events: none;
}
.site-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}
.modal-shell[hidden], .site-overlay[hidden] {
    display: none !important;
    pointer-events: none !important;
}
.modal-shell.is-open {
    pointer-events: auto;
}
.modal-card {
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #171310;
    border: 1px solid var(--border-red);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: translateY(8px);
    opacity: 0;
    transition: transform 160ms ease, opacity 160ms ease;
}
.modal-shell.is-open .modal-card {
    transform: translateY(0);
    opacity: 1;
}
.search-card {
    width: min(720px, 100%);
}
.modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 72px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #171310;
    border-bottom: 1px solid var(--border);
}
.modal-head strong {
    color: var(--title);
    display: block;
    font-size: 1.04rem;
}
.modal-head small {
    color: var(--soft);
    display: block;
    margin-top: 3px;
}
.modal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-logo {
    height: 30px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.modal-wordmark {
    color: var(--title);
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.modal-close {
    min-width: 54px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--panel);
    cursor: pointer;
}
.modal-close:hover {
    border-color: var(--border-red);
}
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
}
.directory-group {
    min-width: 0;
    background: #171310;
    padding: 20px;
}
.directory-group h2 {
    font-size: 0.92rem;
    color: var(--amber);
    letter-spacing: 0.05em;
}
.directory-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.directory-group li + li {
    border-top: 1px solid var(--border);
}
.directory-group a {
    display: block;
    padding: 12px 0;
}
.directory-group a strong {
    color: var(--title);
    display: flex;
    align-items: center;
    gap: 7px;
}
.directory-group a.is-current strong::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    pointer-events: none;
}
.directory-group a span {
    color: var(--soft);
    font-size: 0.84rem;
    line-height: 1.55;
    display: block;
    margin-top: 3px;
}
.search-form-area {
    padding: 20px 20px 12px;
}
.search-form-area label {
    display: block;
    color: var(--title);
    font-weight: 700;
    margin-bottom: 7px;
}
.search-form-area input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border-red);
    border-radius: 7px;
    background: #0f0d0c;
    color: var(--text);
    padding: 9px 12px;
}
.search-form-area p {
    color: var(--soft);
    font-size: 0.84rem;
    margin: 8px 0 0;
}
.search-status {
    margin: 0;
    padding: 0 20px 10px;
    color: var(--amber);
    font-size: 0.85rem;
}
.search-results {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.search-result {
    min-width: 0;
    min-height: 90px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--panel);
}
.search-result strong {
    color: var(--title);
    display: block;
}
.search-result span {
    color: var(--soft);
    display: block;
    margin-top: 3px;
    font-size: 0.85rem;
    line-height: 1.55;
}
.search-result:hover {
    border-color: var(--border-red);
}
.mobile-nav {
    display: none;
}
@media (max-width: 1100px) {
    .footer-directory {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .channel-group {
        grid-template-columns: 58px minmax(0, 1fr);
        padding-inline: 14px;
    }
}
@media (max-width: 900px) {
    .wrap {
        width: min(1280px, calc(100% - 32px));
    }
    :root { --header-h: 68px; }
    .desktop-actions, .desktop-channel-grid {
        display: none;
    }
    .mobile-actions, .mobile-channel-grid {
        display: flex;
    }
    .mobile-channel-grid {
        padding-block: 10px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }
    .mobile-channel-grid a {
        justify-content: center;
        min-height: 42px;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: rgba(255,255,255,0.01);
    }
    .split-grid, .media-copy-grid {
        grid-template-columns: 1fr;
    }
    .three-col, .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .six-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .app-media img {
        max-height: 390px;
    }
}
@media (max-width: 640px) {
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
    }
    .wrap {
        width: min(1280px, calc(100% - 32px));
    }
    .brand-logo {
        height: 30px;
        max-width: 135px;
    }
    .brand-copy strong {
        font-size: 0.96rem;
    }
    .brand-copy small {
        font-size: 0.58rem;
    }
    .header-row {
        gap: 10px;
    }
    .mobile-actions {
        gap: 4px;
    }
    .header-button {
        padding-inline: 9px;
        min-width: 50px;
    }
    .mobile-channel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-hero, .page-hero {
        padding-top: 34px;
        padding-bottom: 28px;
    }
    .section {
        padding: 34px 0;
    }
    .section-head {
        display: block;
    }
    .section-head p {
        margin-top: 8px;
    }
    .two-col, .three-col, .status-grid, .related-grid {
        grid-template-columns: 1fr;
    }
    .six-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .guide-unit {
        padding: 17px;
    }
    .content-media {
        padding: 8px;
    }
    .content-media img {
        max-height: 220px;
    }
    .cover-media img {
        max-height: 300px;
    }
    .app-media img {
        max-height: 360px;
    }
    .fact-opinion-grid {
        grid-template-columns: 1fr;
    }
    .table-row {
        grid-template-columns: 1fr;
    }
    .footer-brand-row {
        display: block;
    }
    .footer-brand-row p {
        margin-top: 16px;
    }
    .footer-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }
    .footer-note {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }
    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(8,7,6,0.98);
        border-top: 1px solid var(--border-red);
        box-shadow: 0 -10px 28px rgba(0,0,0,0.35);
    }
    .mobile-nav a {
        min-width: 0;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        font-size: 0.83rem;
        position: relative;
    }
    .mobile-nav a.is-current {
        color: var(--title);
        font-weight: 800;
    }
    .modal-shell {
        align-items: flex-end;
        padding: 0;
    }
    .directory-card {
        width: 100%;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: 12px 12px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }
    .search-shell {
        align-items: stretch;
    }
    .search-card {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }
    .directory-grid {
        grid-template-columns: 1fr;
    }
    .search-results {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 360px) {
    .wrap {
        width: min(1280px, calc(100% - 32px));
    }
    .header-brand.has-logo .brand-copy {
        display: none;
    }
    .header-brand .brand-logo {
        max-width: 125px;
    }
    .brand-copy small {
        display: none;
    }
    .six-grid, .footer-directory {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
