:root {
    --brand: #B93A4A;
    --brand-soft: #D9828D;
    --ink: #2B2528;
    --text: #332D2F;
    --muted: #756B6E;
    --bg: #FFF9F7;
    --bg-soft: #F6ECEB;
    --accent: #E45B4F;
    --line: rgba(43, 37, 40, 0.13);
    --line-strong: rgba(43, 37, 40, 0.22);
    --white: #fff;
    --shadow: 0 18px 50px rgba(64, 40, 45, 0.08);
    --shadow-small: 0 10px 28px rgba(64, 40, 45, 0.06);
    --radius: 22px;
    --radius-small: 14px;
    --container: 1180px;
    --header-h: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(228, 91, 79, 0.35);
    outline-offset: 3px;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
figure {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    margin-bottom: 18px;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    margin-bottom: 12px;
}

p {
    margin-bottom: 1.05em;
}

code {
    padding: 0.12em 0.38em;
    border-radius: 6px;
    background: var(--bg-soft);
    color: var(--brand);
    font-family: Consolas, Monaco, monospace;
    font-size: 0.92em;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section-shell {
    padding: 88px 0;
}

.section-shell.compact-top {
    padding-top: 42px;
}

.compact-hero {
    padding-top: 60px;
    padding-bottom: 72px;
}

.tone-soft {
    background: var(--bg-soft);
}

.tone-dark {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.83);
}

.tone-dark h1,
.tone-dark h2,
.tone-dark h3,
.tone-dark strong {
    color: #fff;
}

.tone-dark .eyebrow {
    color: #f0a3ac;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 9px;
    background: var(--ink);
    color: #fff;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: var(--header-h);
    border-bottom: 1px solid rgba(185, 58, 74, 0.09);
    background: rgba(255, 249, 247, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px 13px 13px 5px;
    display: inline-grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.brand-mark.small {
    width: 34px;
    height: 34px;
    border-radius: 10px 10px 10px 4px;
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.08rem;
    color: var(--ink);
}

.brand-text small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.72rem;
}

.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    padding: 9px 11px;
    border-radius: 10px;
    color: #51484b;
    font-size: 0.91rem;
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    background: var(--bg-soft);
    color: var(--brand);
}

.search-trigger {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 9px 15px;
    background: transparent;
    color: var(--ink);
    white-space: nowrap;
}

.search-trigger:hover {
    border-color: var(--brand-soft);
    color: var(--brand);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 9px;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 3px;
    background: var(--ink);
}

.search-modal[hidden] {
    display: none !important;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: start center;
    padding: 11vh 24px 24px;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 24, 27, 0.66);
    backdrop-filter: blur(5px);
}

.search-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    padding: 40px;
    border-radius: 24px;
    background: var(--bg);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

.search-panel h2 {
    margin-bottom: 24px;
}

.search-close {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
}

.search-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.search-row {
    display: flex;
    gap: 10px;
}

.search-row input,
.mini-search input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    padding: 13px 15px;
    background: #fff;
    color: var(--text);
}

.search-row input:focus,
.mini-search input:focus {
    border-color: var(--brand);
}

.search-row button,
.mini-search button {
    border: 0;
    border-radius: 13px;
    padding: 12px 19px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.search-hint {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero {
    padding-top: 74px;
    overflow: hidden;
}

.hero-grid,
.page-hero-grid,
.feature-split,
.mobile-feature,
.topic-spotlight,
.closing-grid,
.article-head-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 64px;
    align-items: center;
}

.hero-copy {
    max-width: 690px;
}

.hero-copy h1 {
    max-width: 820px;
}

.hero-lead {
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(1.03rem, 1.3vw, 1.19rem);
    line-height: 1.85;
}

.tone-dark .hero-lead {
    color: rgba(255, 255, 255, 0.74);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 750;
    line-height: 1.2;
}

.button.primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 9px 22px rgba(185, 58, 74, 0.18);
}

.button.primary:hover {
    background: #a83241;
}

.button.secondary {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--ink);
}

.tone-dark .button.secondary,
.safety-band .button.secondary {
    border-color: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.button.full {
    width: 100%;
}

.text-link,
.card-link,
.intent-card > a,
.path-card > a,
.inline-links a,
.related-links a,
.guide-group a,
.article-row h2 a,
.topic-row h2 a {
    color: var(--brand);
    font-weight: 750;
}

.text-link:hover,
.card-link:hover,
.intent-card > a:hover,
.path-card > a:hover,
.inline-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-notes li {
    position: relative;
    padding-left: 15px;
}

.hero-notes li::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: 0;
    top: 0.75em;
    border-radius: 50%;
    background: var(--brand-soft);
}

.media-frame {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}

.media-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.media-frame figcaption {
    padding: 13px 16px 15px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
}

.media-frame.landscape img,
.media-frame.wide img {
    aspect-ratio: 16 / 10;
}

.media-frame.portrait img {
    aspect-ratio: 4 / 5;
}

.media-frame.square img,
.small-image img {
    aspect-ratio: 1;
}

.section-heading {
    margin-bottom: 36px;
    max-width: 860px;
}

.section-heading > p:not(.eyebrow) {
    color: var(--muted);
}

.split-heading {
    max-width: none;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
}

.split-heading > div {
    max-width: 720px;
}

.split-heading > p,
.split-heading > a {
    max-width: 350px;
}

.intent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.intent-card {
    position: relative;
    min-height: 280px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.52);
    display: flex;
    flex-direction: column;
}

.intent-card:hover {
    transform: translateY(-2px);
    border-color: rgba(185, 58, 74, 0.28);
    box-shadow: var(--shadow-small);
}

.intent-index,
.topic-number {
    color: var(--brand-soft);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.intent-card h3 {
    margin-top: 36px;
}

.intent-card p {
    color: var(--muted);
}

.intent-card > a {
    margin-top: auto;
}

.feature-split.reverse > :first-child {
    order: 2;
}

.feature-split.reverse > :last-child {
    order: 1;
}

.feature-copy p:not(.eyebrow) {
    color: var(--muted);
}

.tone-dark .feature-copy p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.74);
}

.check-list {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin: 10px 0;
    padding-left: 28px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand);
    font-weight: 900;
}

.tone-dark .check-list li::before {
    color: #f09ca6;
}

.editorial-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: stretch;
}

.editorial-image img {
    height: 100%;
    min-height: 360px;
}

.editorial-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.editorial-list a {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: start;
    padding: 26px 4px;
    border-bottom: 1px solid var(--line);
}

.editorial-list a span {
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
}

.editorial-list a strong {
    font-size: 1.15rem;
    line-height: 1.5;
}

.editorial-list a:hover strong {
    color: var(--brand);
}

.mobile-feature {
    grid-template-columns: 1.15fr 0.75fr;
}

.mobile-feature p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.75);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 24px;
}

.tone-dark .inline-links a {
    color: #f4a8b1;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.article-card {
    padding: 25px;
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #fff;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    margin-top: 18px;
}

.article-card h3 a:hover {
    color: var(--brand);
}

.article-card p {
    color: var(--muted);
}

.article-card .card-link {
    margin-top: auto;
}

.tag {
    display: inline-flex;
    width: max-content;
    align-items: center;
    min-height: 27px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(185, 58, 74, 0.09);
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 800;
}

.tone-dark .tag {
    background: rgba(255, 255, 255, 0.1);
    color: #f5b4bc;
}

.topic-spotlight {
    grid-template-columns: 1fr 0.9fr;
}

.device-compare {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 50px;
    align-items: start;
}

.compare-intro p {
    color: var(--muted);
}

.compare-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.compare-columns article {
    padding: 28px;
    border-radius: var(--radius-small);
    background: var(--bg-soft);
}

.compare-columns p {
    color: var(--muted);
}

.compare-columns a {
    color: var(--brand);
    font-weight: 750;
}

.safety-band {
    background: linear-gradient(180deg, var(--ink), #241f21);
    color: rgba(255, 255, 255, 0.78);
}

.safety-band h2,
.safety-band h3,
.safety-band strong {
    color: #fff;
}

.safety-band .eyebrow {
    color: #f0a3ac;
}

.safety-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 42px;
    align-items: center;
}

.safety-grid .media-frame {
    box-shadow: none;
}

.faq-preview {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 52px;
    align-items: start;
}

.small-image {
    width: 130px;
    margin-bottom: 24px;
}

.faq-preview-intro p:not(.eyebrow),
.faq-mini-list p {
    color: var(--muted);
}

.faq-mini-list details,
.large-faq details {
    border-top: 1px solid var(--line);
}

.faq-mini-list details:last-child,
.large-faq details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-mini-list summary,
.large-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 19px 34px 19px 0;
    color: var(--ink);
    font-weight: 760;
    position: relative;
}

.faq-mini-list summary::-webkit-details-marker,
.large-faq summary::-webkit-details-marker {
    display: none;
}

.faq-mini-list summary::after,
.large-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 1.4rem;
}

.faq-mini-list details[open] summary::after,
.large-faq details[open] summary::after {
    content: "−";
}

.faq-mini-list details p {
    padding-right: 30px;
}

.search-cta {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.search-cta > div > p:not(.eyebrow) {
    color: var(--muted);
}

.tone-dark .search-cta > div > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.72);
}

.inline-search label {
    color: inherit;
}

.closing-grid {
    align-items: start;
}

.page-hero-grid.text-wide,
.article-head-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.breadcrumbs {
    margin-bottom: 24px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.79rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: var(--brand-soft);
}

.breadcrumbs a:hover {
    color: var(--brand);
}

.tone-dark .breadcrumbs,
.tone-dark .breadcrumbs a {
    color: rgba(255, 255, 255, 0.62);
}

.prose-layout,
.article-layout,
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 68px;
    align-items: start;
}

.prose-main,
.article-body,
.prose-narrow {
    font-size: 1.03rem;
}

.prose-main h2,
.article-body h2,
.prose-narrow > h2 {
    margin-top: 2em;
}

.prose-main h2:first-child,
.article-body section:first-child h2,
.prose-narrow > h2:first-child {
    margin-top: 0;
}

.prose-main p,
.article-body p,
.prose-narrow p {
    color: #51494b;
}

.prose-narrow {
    max-width: 860px;
}

.wide-prose {
    max-width: 980px;
}

.prose-aside,
.article-aside {
    min-width: 0;
}

.sticky-card {
    position: sticky;
    top: calc(var(--header-h) + 28px);
}

.aside-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #fff;
    box-shadow: var(--shadow-small);
}

.aside-card h2 {
    font-size: 1.45rem;
}

.aside-card > a:not(.button) {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--brand);
    font-weight: 700;
}

.aside-card > a:not(.button):last-child {
    border-bottom: 0;
}

.aside-card hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.key-values {
    margin: 18px 0 24px;
}

.key-values > div {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.key-values dt {
    color: var(--muted);
    font-size: 0.78rem;
}

.key-values dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 700;
}

.info-panel,
.article-note {
    margin: 36px 0;
    padding: 26px 28px;
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    background: var(--bg-soft);
}

.number-list {
    padding-left: 22px;
}

.number-list li {
    margin: 10px 0;
}

.link-tiles {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.link-tiles.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.link-tiles.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.link-tiles a {
    display: grid;
    gap: 7px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #fff;
}

.link-tiles a:hover {
    border-color: var(--brand-soft);
}

.link-tiles span {
    color: var(--muted);
    font-size: 0.88rem;
}

.symptom-grid,
.mobile-paths,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.symptom-grid article,
.path-card,
.contact-grid article {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #fff;
}

.symptom-grid p,
.path-card p,
.contact-grid p {
    color: var(--muted);
}

.symptom-grid a,
.path-card a {
    color: var(--brand);
    font-weight: 750;
}

.status-dot {
    display: block;
    width: 13px;
    height: 13px;
    margin-bottom: 34px;
    border-radius: 50%;
    background: var(--brand-soft);
    box-shadow: 0 0 0 8px rgba(217, 130, 141, 0.14);
}

.timeline {
    margin-top: 36px;
}

.timeline article,
.question-stack article {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.timeline article:last-child,
.question-stack article:last-child {
    border-bottom: 1px solid var(--line);
}

.timeline article > span,
.question-stack article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.timeline h3,
.question-stack h3 {
    margin-bottom: 6px;
}

.timeline p,
.question-stack p {
    margin-bottom: 0;
    color: var(--muted);
}

.compare-table-wrap .text-link {
    display: inline-block;
    margin-top: 24px;
}

.compare-table {
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    overflow: hidden;
    background: #fff;
}

.compare-row {
    display: grid;
    grid-template-columns: 0.65fr 1fr 1fr;
}

.compare-row > div {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.compare-row:last-child > div {
    border-bottom: 0;
}

.compare-row > div:last-child {
    border-right: 0;
}

.compare-row.head {
    background: #efe0df;
    font-weight: 800;
    color: var(--ink);
}

.related-panel {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 48px;
    align-items: start;
}

.related-links {
    display: grid;
}

.related-links a {
    display: grid;
    gap: 3px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.related-links a:last-child {
    border-bottom: 1px solid var(--line);
}

.related-links strong {
    color: var(--ink);
}

.related-links span {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.9rem;
}

.related-links a:hover strong {
    color: var(--brand);
}

.path-card.highlighted {
    border-color: rgba(185, 58, 74, 0.28);
    box-shadow: var(--shadow-small);
}

.warning-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.warning-panel > div {
    max-width: 760px;
}

.guide-index {
    display: grid;
    gap: 64px;
}

.guide-group {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 42px;
}

.guide-group-title {
    display: flex;
    gap: 13px;
    align-items: start;
}

.guide-group-title span {
    width: 28px;
    height: 3px;
    margin-top: 0.82em;
    background: var(--brand);
}

.guide-group-title h2 {
    font-size: 1.35rem;
}

.guide-group-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.guide-group-list article {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
}

.guide-group-list article h3 {
    margin-top: 16px;
}

.guide-group-list article p {
    color: var(--muted);
    font-size: 0.92rem;
}

.guide-group-list article .card-link {
    margin-top: auto;
}

.topic-strip {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 52px;
    align-items: start;
}

.topic-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-pill-list a {
    padding: 9px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
    font-size: 0.9rem;
}

.topic-pill-list a:hover {
    border-color: var(--brand-soft);
    color: var(--brand);
}

.content-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.content-toolbar > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.content-toolbar strong {
    color: var(--brand);
    font-size: 1.8rem;
}

.content-toolbar span {
    color: var(--muted);
}

.mini-search {
    display: flex;
    gap: 8px;
    width: min(100%, 390px);
}

.mini-search input {
    width: 100%;
}

.mini-search button {
    white-space: nowrap;
}

.article-list-layout,
.topic-list {
    display: grid;
}

.article-row,
.topic-row {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 48px;
    gap: 28px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.article-row:first-child,
.topic-row:first-child {
    border-top: 1px solid var(--line);
}

.article-row-meta {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.article-row-meta time {
    color: var(--muted);
    font-size: 0.8rem;
}

.article-row h2,
.topic-row h2 {
    margin-bottom: 9px;
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
}

.article-row p,
.topic-row p {
    margin-bottom: 12px;
    color: var(--muted);
}

.keyword-line,
.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.keyword-line span,
.keyword-cloud span {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.74rem;
}

.arrow-link {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--brand);
    font-size: 1.2rem;
}

.article-row:hover .arrow-link,
.topic-row:hover .arrow-link {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.article-hero {
    padding-top: 54px;
    padding-bottom: 52px;
}

.article-head-grid {
    align-items: end;
}

.article-head-grid h1 {
    font-size: clamp(2.15rem, 4.4vw, 4rem);
}

.article-meta {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.82rem;
}

.article-cover img {
    aspect-ratio: 16 / 11;
}

.article-body-shell {
    padding-top: 46px;
}

.article-body section {
    margin-bottom: 46px;
}

.article-body section h2 {
    margin-bottom: 18px;
}

.article-note strong {
    color: var(--brand);
}

.article-note p {
    margin: 6px 0 0;
}

.related-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.65);
}

.related-card-grid article h3 {
    margin-top: 15px;
}

.related-card-grid article p {
    color: var(--muted);
    font-size: 0.9rem;
}

.related-card-grid article a:hover {
    color: var(--brand);
}

.dark-cards article {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.dark-cards article p {
    color: rgba(255, 255, 255, 0.65);
}

.dark-cards article a {
    color: #fff;
}

.section-step {
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
}

.topic-body section {
    padding-left: 26px;
    border-left: 2px solid var(--bg-soft);
}

.topic-row {
    grid-template-columns: 90px minmax(0, 1fr) 48px;
}

.topic-number {
    padding-top: 6px;
    font-size: 1rem;
}

.faq-layout {
    grid-template-columns: 250px minmax(0, 1fr);
}

.faq-nav .aside-card a {
    color: var(--text);
}

.large-faq summary {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 24px 40px 24px 0;
    font-size: 1.08rem;
}

.large-faq summary > span {
    color: var(--brand-soft);
    font-size: 0.8rem;
}

.faq-answer {
    padding: 0 42px 24px 58px;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 34px 0 56px;
}

.principle-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.58);
}

.principle-grid article > span {
    color: var(--brand-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.principle-grid h3 {
    margin-top: 24px;
}

.principle-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.safety-rules {
    display: grid;
}

.safety-rules article {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 34px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.safety-rules article:last-child {
    border-bottom: 1px solid var(--line);
}

.safety-rules article > span {
    color: var(--brand-soft);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.safety-rules p {
    max-width: 850px;
    margin-bottom: 0;
    color: var(--muted);
}

.warning-matrix {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.warning-matrix ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.warning-matrix li {
    position: relative;
    padding: 16px 0 16px 28px;
    border-top: 1px solid var(--line);
}

.warning-matrix li:last-child {
    border-bottom: 1px solid var(--line);
}

.warning-matrix li::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 16px;
    color: var(--accent);
    font-weight: 900;
}

.contact-grid {
    grid-template-columns: repeat(2, 1fr);
}

.contact-grid article {
    min-height: 420px;
}

.contact-grid h2 {
    margin-top: 22px;
}

.feedback-template {
    max-width: 900px;
}

.template-box {
    margin: 26px 0 18px;
    padding: 24px;
    border: 1px dashed rgba(185, 58, 74, 0.3);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.6);
}

.template-box p {
    margin: 7px 0;
    color: #554c4f;
}

.copy-status {
    min-height: 1.5em;
    margin: 10px 0 0;
    color: var(--brand);
    font-size: 0.88rem;
}

.search-page-hero .container {
    max-width: 920px;
}

.page-search {
    max-width: 700px;
    margin-top: 26px;
}

.search-results {
    max-width: 940px;
}

.result-count {
    margin-bottom: 20px;
    color: var(--muted);
}

.result-count strong {
    color: var(--brand);
    font-size: 1.35rem;
}

.result-list {
    display: grid;
}

.result-list article {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.result-list article:last-child {
    border-bottom: 1px solid var(--line);
}

.result-list h2 {
    margin: 11px 0 8px;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.result-list h2 a:hover {
    color: var(--brand);
}

.result-list p {
    color: var(--muted);
}

.empty-state {
    padding: 46px 0;
}

.empty-state > p {
    color: var(--muted);
}

.not-found {
    min-height: 70vh;
    display: grid;
    align-items: center;
}

.not-found-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.error-code {
    margin-bottom: 12px;
    color: var(--brand-soft);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.not-found-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.not-found-links a {
    display: grid;
    gap: 7px;
    min-height: 160px;
    align-content: end;
    padding: 22px;
    border-radius: var(--radius-small);
    background: var(--bg-soft);
}

.not-found-links a:hover {
    background: #efdfdf;
}

.not-found-links span {
    color: var(--muted);
    font-size: 0.86rem;
}

.site-footer {
    padding: 64px 0 24px;
    background: #211d1f;
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.8fr);
    gap: 44px;
}

.footer-grid section h2 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.footer-grid section > a {
    display: block;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.footer-grid section > a:hover {
    color: #fff;
}

.footer-brand {
    padding-right: 30px;
}

.footer-brand-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #fff;
}

.footer-brand p {
    max-width: 420px;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a:hover {
    color: #fff;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 9px 25px rgba(185, 58, 74, 0.2);
}

.back-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    :root {
        --container: 1080px;
    }

    .header-inner {
        gap: 16px;
    }

    .primary-nav a {
        padding-inline: 8px;
        font-size: 0.86rem;
    }

    .hero-grid,
    .page-hero-grid,
    .feature-split,
    .mobile-feature,
    .topic-spotlight,
    .closing-grid,
    .article-head-grid {
        gap: 46px;
    }

    .guide-group {
        grid-template-columns: 170px 1fr;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 70px;
    }

    .container {
        width: min(calc(100% - 38px), var(--container));
    }

    .section-shell {
        padding: 72px 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .primary-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--bg);
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .primary-nav a {
        padding: 12px;
        font-size: 0.95rem;
    }

    .search-trigger {
        padding: 8px 13px;
    }

    .hero-grid,
    .page-hero-grid,
    .feature-split,
    .mobile-feature,
    .topic-spotlight,
    .closing-grid,
    .article-head-grid,
    .editorial-band,
    .device-compare,
    .faq-preview,
    .search-cta,
    .related-panel,
    .topic-strip,
    .warning-matrix,
    .not-found-grid {
        grid-template-columns: 1fr;
    }

    .feature-split.reverse > :first-child,
    .feature-split.reverse > :last-child {
        order: initial;
    }

    .hero-copy,
    .section-heading,
    .prose-narrow {
        max-width: none;
    }

    .hero-media,
    .page-hero-grid .media-frame,
    .article-cover {
        width: min(100%, 720px);
    }

    .page-hero-grid.reverse-mobile > :first-child {
        order: 1;
    }

    .page-hero-grid.reverse-mobile > :last-child {
        order: 2;
    }

    .intent-grid,
    .article-grid,
    .symptom-grid,
    .mobile-paths,
    .related-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guide-group-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .prose-layout,
    .article-layout,
    .faq-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 42px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 26px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .section-shell {
        padding: 58px 0;
    }

    .compact-hero {
        padding-top: 42px;
        padding-bottom: 54px;
    }

    .brand-text small {
        display: none;
    }

    .search-trigger {
        font-size: 0;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .search-trigger::before {
        content: "⌕";
        font-size: 1.35rem;
        color: var(--ink);
    }

    .search-panel {
        padding: 34px 24px 26px;
    }

    .split-heading {
        display: grid;
        gap: 10px;
        align-items: start;
    }

    .split-heading > p,
    .split-heading > a {
        max-width: none;
    }

    .intent-grid,
    .article-grid,
    .symptom-grid,
    .mobile-paths,
    .related-card-grid,
    .guide-group-list,
    .compare-columns,
    .principle-grid,
    .contact-grid,
    .not-found-links {
        grid-template-columns: 1fr;
    }

    .intent-card,
    .article-card,
    .guide-group-list article {
        min-height: auto;
    }

    .editorial-list a {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .safety-grid {
        grid-template-columns: 110px 1fr;
        gap: 24px;
    }

    .prose-layout,
    .article-layout,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .prose-aside,
    .article-aside,
    .faq-nav {
        order: -1;
    }

    .sticky-card {
        position: static;
    }

    .aside-card {
        box-shadow: none;
    }

    .link-tiles.two-col,
    .link-tiles.three-col {
        grid-template-columns: 1fr;
    }

    .compare-table {
        overflow-x: auto;
    }

    .compare-row {
        min-width: 680px;
    }

    .article-row,
    .topic-row {
        grid-template-columns: 1fr 44px;
        gap: 12px 18px;
    }

    .article-row-meta,
    .topic-number {
        grid-column: 1 / -1;
    }

    .article-row > div:nth-child(2),
    .topic-row-copy {
        grid-column: 1;
    }

    .article-row .arrow-link,
    .topic-row .arrow-link {
        grid-column: 2;
        align-self: center;
    }

    .content-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .mini-search {
        width: 100%;
    }

    .large-faq summary {
        grid-template-columns: 36px 1fr;
    }

    .faq-answer {
        padding-left: 50px;
    }

    .warning-panel {
        display: grid;
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 26px), var(--container));
    }

    body {
        font-size: 15.5px;
    }

    .section-shell {
        padding: 50px 0;
    }

    .header-inner {
        min-height: 66px;
        gap: 8px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 1rem;
    }

    .primary-nav {
        left: 13px;
        right: 13px;
        grid-template-columns: 1fr !important;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .hero {
        padding-top: 52px;
    }

    .hero-grid,
    .page-hero-grid,
    .feature-split,
    .mobile-feature,
    .topic-spotlight,
    .closing-grid,
    .article-head-grid {
        gap: 34px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .hero-notes {
        display: grid;
        gap: 8px;
    }

    .intent-card,
    .article-card,
    .path-card,
    .symptom-grid article,
    .contact-grid article {
        padding: 22px;
    }

    .safety-grid {
        grid-template-columns: 1fr;
    }

    .safety-grid .media-frame {
        width: 110px;
    }

    .search-row,
    .mini-search {
        display: grid;
        grid-template-columns: 1fr;
    }

    .search-row button,
    .mini-search button {
        width: 100%;
    }

    .search-panel {
        padding: 34px 18px 22px;
        border-radius: 18px;
    }

    .timeline article,
    .question-stack article {
        grid-template-columns: 40px 1fr;
        gap: 14px;
    }

    .timeline article > span,
    .question-stack article > span {
        width: 36px;
        height: 36px;
        font-size: 0.78rem;
    }

    .info-panel,
    .article-note {
        padding: 22px;
    }

    .article-row,
    .topic-row {
        padding: 24px 0;
    }

    .large-faq summary {
        grid-template-columns: 30px 1fr;
        gap: 8px;
        padding-right: 32px;
    }

    .faq-answer {
        padding-left: 38px;
        padding-right: 16px;
    }

    .safety-rules article {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        display: grid;
        gap: 8px;
    }
}

@media (max-width: 375px) {
    .container {
        width: min(calc(100% - 20px), var(--container));
    }

    h1 {
        font-size: 2.05rem;
    }

    h2 {
        font-size: 1.62rem;
    }

    .site-header {
        min-height: 62px;
    }

    .brand {
        gap: 7px;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
    }

    .menu-toggle,
    .search-trigger {
        width: 39px;
        height: 39px;
    }

    .search-modal {
        padding: 8vh 10px 10px;
    }

    .intent-card,
    .article-card,
    .path-card,
    .symptom-grid article,
    .contact-grid article {
        padding: 19px;
    }

    .article-body,
    .prose-main,
    .prose-narrow {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
