:root{
  --brand:#B9473F;
  --brand-dark:#92362F;
  --amber:#D89A45;
  --ink:#1E2026;
  --text:#2B2D31;
  --muted:#6F706F;
  --paper:#F7F4EF;
  --soft:#EEE9E2;
  --accent:#E06A3B;
  --line:#D8D1C7;
  --line-dark:#3B3E46;
  --white:#FFFFFF;
  --shadow:0 18px 48px rgba(30,32,38,.10);
  --radius:20px;
  --radius-sm:12px;
  --container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Noto Sans SC","Microsoft YaHei","PingFang SC","Hiragino Sans GB",Arial,sans-serif;
  color:var(--text);
  background:var(--paper);
  line-height:1.75;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
body.modal-open,body.menu-open{overflow:hidden}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration-thickness:.08em;text-underline-offset:.18em}
button,input{font:inherit}
button{cursor:pointer}
code{
  padding:.14rem .36rem;
  border-radius:6px;
  background:var(--soft);
  color:var(--brand-dark);
  font-size:.92em;
}
.container{
  width:min(calc(100% - 40px),var(--container));
  margin-inline:auto;
}
.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:-120px;
  z-index:2000;
  padding:10px 16px;
  border-radius:8px;
  background:var(--ink);
  color:#fff;
}
.skip-link:focus{top:16px}
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(247,244,239,.96);
  border-bottom:1px solid rgba(216,209,199,.85);
  backdrop-filter:blur(16px);
}
.header-accent{height:4px;background:var(--brand)}
.header-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  gap:26px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-right:auto;
  text-decoration:none;
}
.brand img{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:12px;
  background:var(--soft);
}
.brand-copy{display:flex;flex-direction:column;line-height:1.15}
.brand-copy strong{font-size:1rem;letter-spacing:.02em}
.brand-copy small{margin-top:5px;color:var(--muted);font-size:.72rem}
.primary-nav{
  display:flex;
  align-items:center;
  gap:4px;
}
.primary-nav a{
  padding:10px 11px;
  border-radius:9px;
  color:#404248;
  font-size:.91rem;
  font-weight:650;
  text-decoration:none;
  white-space:nowrap;
}
.primary-nav a:hover,.primary-nav a[aria-current="page"]{
  color:var(--brand-dark);
  background:#F1E3DF;
}
.search-trigger{
  flex:0 0 auto;
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 15px;
  background:transparent;
  color:var(--ink);
  font-weight:700;
}
.search-trigger:hover{border-color:var(--brand);color:var(--brand)}
.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:10px;
  background:transparent;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
}
.menu-toggle>span:not(.sr-only){width:18px;height:2px;background:var(--ink);border-radius:2px}
.site-main{min-height:65vh}
.hero{
  padding:64px 0 70px;
  border-bottom:1px solid var(--line);
}
.hero-grid,.page-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);
  gap:68px;
  align-items:center;
}
.hero-copy h1,.page-hero h1,.compact-hero h1{
  margin:.2rem 0 1.2rem;
  color:var(--ink);
  font-size:clamp(2.45rem,5vw,4.6rem);
  line-height:1.08;
  letter-spacing:-.045em;
}
.page-hero h1{font-size:clamp(2.2rem,4.5vw,3.8rem)}
.compact-hero h1{max-width:900px}
.eyebrow{
  margin:0 0 .55rem;
  color:var(--brand);
  font-size:.79rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.hero-lead{
  max-width:820px;
  margin:0;
  color:#55575D;
  font-size:1.12rem;
  line-height:1.85;
}
.button-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
.button-row.centered{justify-content:center}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:10px 18px;
  border:1px solid transparent;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  line-height:1.25;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.button:hover{transform:translateY(-1px)}
.button.primary{background:var(--brand);color:#fff}
.button.primary:hover{background:var(--brand-dark)}
.button.secondary{background:var(--ink);color:#fff}
.button.secondary:hover{background:#343740}
.button.ghost{border-color:var(--line);background:transparent;color:var(--ink)}
.button.ghost:hover{border-color:var(--brand);color:var(--brand)}
.button.light{background:#fff;color:var(--ink)}
.hero-notes{
  display:grid;
  gap:6px;
  margin:26px 0 0;
  padding:0;
  list-style:none;
  color:var(--muted);
  font-size:.9rem;
}
.hero-notes li::before{content:"—";margin-right:9px;color:var(--amber)}
.hero-media{
  margin:0;
  background:var(--ink);
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.hero-media img{width:100%;aspect-ratio:4/3;object-fit:cover}
.hero-media figcaption{
  padding:16px 20px 18px;
  color:#D7D9DF;
  font-size:.86rem;
}
.page-hero{
  padding:52px 0 60px;
  border-bottom:1px solid var(--line);
}
.page-hero-accent{background:#F2E8E4}
.compact-hero{padding:46px 0 50px}
.page-hero-grid>img{
  width:100%;
  border-radius:24px;
  aspect-ratio:4/3;
  object-fit:cover;
  box-shadow:var(--shadow);
}
.domain-card{
  width:min(100%,560px);
  margin-top:26px;
  padding:20px 22px;
  border-left:4px solid var(--brand);
  background:#fff;
  box-shadow:0 10px 30px rgba(30,32,38,.06);
}
.domain-card span,.domain-card small{display:block}
.domain-card span{color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.08em}
.domain-card strong{display:block;margin:3px 0;font-size:1.45rem;color:var(--ink)}
.domain-card small{color:var(--muted)}
.section{padding:78px 0}
.section-muted{background:var(--soft)}
.section-dark{background:var(--ink);color:#ECEEF2}
.section-dark .eyebrow{color:#F4B260}
.section-dark h2,.section-dark h3{color:#fff}
.section-dark p{color:#C5C7CD}
.section-heading{max-width:780px;margin-bottom:34px}
.section-heading h2,.feature-copy h2,.two-column h2,.route-grid h2,.editorial-band h2{
  margin:.15rem 0 .75rem;
  color:var(--ink);
  font-size:clamp(1.8rem,3.4vw,2.85rem);
  line-height:1.15;
  letter-spacing:-.03em;
}
.section-dark .section-heading h2,.section-dark .feature-copy h2,.section-dark .two-column h2,.section-dark .editorial-band h2{color:#fff}
.section-heading p:not(.eyebrow),.feature-copy p,.two-column>div>p,.route-grid>div>p,.editorial-band p{
  color:#5F6166;
}
.section-dark .section-heading p:not(.eyebrow),.section-dark .feature-copy p,.section-dark .two-column>div>p,.section-dark .editorial-band p{color:#C5C7CD}
.split-heading{
  max-width:none;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:end;
}
.split-heading>p{margin:0}
.intent-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  background:var(--line-dark);
  border:1px solid var(--line-dark);
}
.intent-grid.two-up{grid-template-columns:repeat(2,minmax(0,1fr));background:var(--line)}
.intent-card{
  min-height:280px;
  padding:28px;
  background:#25272D;
  color:#fff;
  text-decoration:none;
  transition:background .18s ease;
}
.intent-grid.two-up .intent-card{background:#fff;color:var(--text)}
.intent-card:hover{background:#2E3138}
.intent-grid.two-up .intent-card:hover{background:#FAF7F2}
.intent-card.static:hover{background:#fff}
.intent-card .card-index{
  display:block;
  margin-bottom:46px;
  color:#D9A568;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.14em;
}
.intent-card h3{margin:0 0 12px;font-size:1.25rem;line-height:1.35}
.intent-card p{margin:0 0 20px;color:#C6C8CE;font-size:.94rem}
.intent-grid.two-up .intent-card p{color:var(--muted)}
.text-link{
  display:inline;
  color:var(--brand);
  font-weight:800;
  text-decoration-thickness:1px;
}
.section-dark .text-link,.intent-card .text-link{color:#F2B26E}
.feature-split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);
  gap:64px;
  align-items:center;
}
.feature-split.reverse{grid-template-columns:minmax(360px,.9fr) minmax(0,1fr)}
.feature-split>img{
  width:100%;
  border-radius:22px;
  aspect-ratio:1.45;
  object-fit:cover;
  box-shadow:var(--shadow);
}
.feature-copy p{font-size:1.01rem}
.comparison-table-wrap{overflow:auto;border:1px solid var(--line);background:#fff}
.comparison-table{width:100%;border-collapse:collapse;min-width:720px}
.comparison-table th,.comparison-table td{padding:18px 20px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.comparison-table th{background:#E6DED4;color:var(--ink);font-size:.84rem;letter-spacing:.04em}
.comparison-table tr:last-child td{border-bottom:0}
.section-cta{margin:26px 0 0}
.editorial-band{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:48px;
  align-items:center;
  padding:36px 40px;
  border-left:5px solid var(--accent);
  background:#fff;
}
.section-dark .editorial-band{background:#25272D}
.article-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.article-card{
  display:flex;
  flex-direction:column;
  min-height:300px;
  padding:26px;
  border:1px solid var(--line);
  background:#fff;
}
.section-dark .article-card{border-color:var(--line-dark);background:#25272D}
.article-card h3{margin:0 0 12px;font-size:1.2rem;line-height:1.45}
.article-card h3 a{text-decoration:none}
.article-card p:not(.eyebrow){margin:0 0 22px;color:var(--muted)}
.section-dark .article-card p:not(.eyebrow){color:#BABDC4}
.article-card .text-link{margin-top:auto}
.two-column{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(300px,.75fr);
  gap:70px;
  align-items:start;
}
.note-panel,.check-panel{
  padding:28px;
  border:1px solid var(--line);
  background:#fff;
}
.note-panel h3,.check-panel h3{margin:0 0 14px;color:var(--ink)}
.note-panel ol,.note-panel ul,.check-panel ul{margin:0;padding-left:1.2rem}
.note-panel li,.check-panel li{margin:.5rem 0}
.dark-note{border-color:var(--line-dark);background:#25272D}
.dark-note h3{color:#fff}
.dark-note p{color:#C5C7CD}
.check-list{margin:18px 0 0;padding:0;list-style:none}
.check-list li{
  position:relative;
  margin:10px 0;
  padding-left:25px;
}
.check-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.68em;
  width:10px;
  height:10px;
  border:2px solid var(--brand);
  border-radius:50%;
}
.section-dark .check-list li::before{border-color:var(--amber)}
.faq-preview{border-top:1px solid var(--line)}
.faq-preview details,.faq-list details{border-bottom:1px solid var(--line)}
.faq-preview summary,.faq-list summary{
  position:relative;
  padding:20px 44px 20px 0;
  color:var(--ink);
  font-size:1.04rem;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}
.faq-preview summary::-webkit-details-marker,.faq-list summary::-webkit-details-marker{display:none}
.faq-preview summary::after,.faq-list summary::after{
  content:"+";
  position:absolute;
  right:4px;
  top:17px;
  font-size:1.4rem;
  color:var(--brand);
}
.faq-preview details[open] summary::after,.faq-list details[open] summary::after{content:"−"}
.faq-preview details p{margin:-4px 0 22px;max-width:900px;color:var(--muted)}
.route-grid{
  display:grid;
  grid-template-columns:minmax(320px,.78fr) minmax(0,1.1fr);
  gap:64px;
  align-items:center;
}
.route-grid figure{margin:0}
.route-grid img{width:100%;border-radius:22px;aspect-ratio:4/3;object-fit:cover}
.breadcrumbs{padding:20px 0 4px}
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;color:var(--muted);font-size:.84rem}
.breadcrumbs li:not(:last-child)::after{content:"/";margin-left:8px;color:#AAA39A}
.breadcrumbs a{text-decoration:none}
.breadcrumbs a:hover{color:var(--brand)}
.scenario-list{border-top:1px solid var(--line)}
.scenario-list article{
  display:grid;
  grid-template-columns:70px 1fr;
  gap:24px;
  padding:26px 0;
  border-bottom:1px solid var(--line);
}
.scenario-list article>span{color:var(--amber);font-weight:900;letter-spacing:.1em}
.scenario-list h3{margin:0 0 5px;font-size:1.2rem}
.scenario-list p{margin:0;color:var(--muted)}
.permission-grid,.principle-grid,.safety-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.permission-grid article,.principle-grid article,.safety-grid article{
  padding:24px;
  border:1px solid var(--line-dark);
  background:#25272D;
}
.permission-grid h3,.principle-grid h3,.safety-grid h3{margin:0 0 8px}
.permission-grid p,.principle-grid p,.safety-grid p{margin:0;color:#BFC1C7}
.safety-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.safety-grid article{border-color:var(--line);background:#fff}
.safety-grid article>span{display:block;margin-bottom:24px;color:var(--amber);font-weight:900;letter-spacing:.1em}
.safety-grid h3{color:var(--ink)}
.safety-grid p{color:var(--muted)}
.steps,.guide-timeline{
  margin:0;
  padding:0;
  list-style:none;
  border-top:1px solid var(--line);
}
.steps li,.guide-timeline li{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:24px;
  padding:26px 0;
  border-bottom:1px solid var(--line);
}
.steps li>span,.guide-timeline li>span{color:var(--brand);font-size:1.1rem;font-weight:900;letter-spacing:.08em}
.steps h3,.guide-timeline h3{margin:0 0 6px;color:var(--ink);font-size:1.22rem}
.steps p,.guide-timeline p{margin:0;color:var(--muted)}
.guide-timeline a{display:inline-block;margin-top:10px;color:var(--brand);font-weight:800}
.link-list{border-top:1px solid var(--line)}
.link-list>a{
  display:grid;
  grid-template-columns:minmax(220px,.55fr) 1fr;
  gap:40px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
}
.link-list>a:hover strong{color:var(--brand)}
.link-list strong{color:var(--ink)}
.link-list span{color:var(--muted)}
.inline-search,.search-page-form{margin-top:24px}
.inline-search{display:flex;gap:10px}
.inline-search input,.search-row input{
  width:100%;
  min-width:0;
  min-height:48px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  outline:none;
}
.inline-search input:focus,.search-row input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(185,71,63,.12)}
.tag-links{display:flex;flex-wrap:wrap;gap:9px}
.tag-links.centered{justify-content:center}
.tag-links a,.tag-row span{
  display:inline-flex;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:#56585D;
  font-size:.82rem;
  text-decoration:none;
}
.tag-links a:hover{border-color:var(--brand);color:var(--brand)}
.article-index{border-top:1px solid var(--line)}
.article-index-item{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 230px;
  gap:28px;
  align-items:center;
  padding:28px 0;
  border-bottom:1px solid var(--line);
}
.article-number{align-self:start;color:var(--amber);font-weight:900;letter-spacing:.1em}
.article-index-body h2{margin:0 0 8px;font-size:1.45rem;line-height:1.35}
.article-index-body h2 a{text-decoration:none}
.article-index-body h2 a:hover{color:var(--brand)}
.article-index-body>p:not(.eyebrow){margin:0 0 14px;color:var(--muted)}
.article-index-item>img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}
.tag-row{display:flex;flex-wrap:wrap;gap:7px}
.article-header{padding:44px 0 52px;border-bottom:1px solid var(--line)}
.article-header-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.82fr);
  gap:64px;
  align-items:center;
}
.article-header h1{
  margin:.15rem 0 1rem;
  color:var(--ink);
  font-size:clamp(2.2rem,4.3vw,3.65rem);
  line-height:1.1;
  letter-spacing:-.04em;
}
.article-deck{margin:0 0 18px;color:#5B5D63;font-size:1.1rem}
.article-header img{width:100%;border-radius:22px;aspect-ratio:4/3;object-fit:cover}
.article-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  gap:80px;
  padding-top:60px;
  padding-bottom:70px;
}
.article-content{max-width:780px}
.article-content section+section{margin-top:44px}
.article-content h2{margin:0 0 14px;color:var(--ink);font-size:1.65rem;line-height:1.3}
.article-content p{margin:0 0 18px;font-size:1.04rem;line-height:1.9}
.sticky-card{
  position:sticky;
  top:118px;
  padding:22px;
  border:1px solid var(--line);
  background:#fff;
}
.sticky-card h2{margin:0 0 12px;color:var(--ink);font-size:1rem}
.sticky-card a{
  display:block;
  padding:10px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  text-decoration:none;
  font-size:.9rem;
}
.sticky-card a:hover{color:var(--brand)}
.faq-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  gap:70px;
}
.faq-list details{background:#fff}
.faq-list summary{padding:22px 50px 22px 20px}
.faq-list summary>span{display:inline-block;width:38px;color:var(--amber);font-size:.77rem;letter-spacing:.06em}
.faq-answer{padding:0 20px 22px 58px;color:var(--muted)}
.faq-answer p{margin:0}
.policy-content{max-width:900px}
.policy-content>section{
  padding:30px 0;
  border-bottom:1px solid var(--line);
}
.policy-content>section:first-child{padding-top:0}
.policy-content h2{margin:0 0 10px;color:var(--ink);font-size:1.45rem}
.policy-content p{margin:0 0 12px;line-height:1.9}
.number-list{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.number-list li{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:26px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
.number-list strong{color:var(--ink)}
.number-list span{color:var(--muted)}
.search-page-form{max-width:760px}
.search-page-form label,.search-form label{display:block;margin-bottom:7px;font-size:.86rem;font-weight:800}
.search-row{display:flex;gap:10px}
.results-head{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:24px}
.results-head h2{margin:0;color:var(--ink)}
.results-head p{margin:0;color:var(--muted)}
.search-results{border-top:1px solid var(--line)}
.search-results article{padding:26px 0;border-bottom:1px solid var(--line)}
.search-results h2{margin:0 0 8px;font-size:1.32rem}
.search-results h2 a{text-decoration:none}
.search-results h2 a:hover{color:var(--brand)}
.search-results p:not(.eyebrow){margin:0 0 10px;color:var(--muted)}
.empty-state{
  max-width:760px;
  margin:20px auto;
  padding:50px 28px;
  text-align:center;
  border:1px solid var(--line);
  background:#fff;
}
.empty-state h2{margin:.2rem 0 .8rem;color:var(--ink)}
.empty-state p{color:var(--muted)}
.error-panel{
  margin:56px 0 80px;
  padding:54px;
  border-left:5px solid var(--brand);
  background:#fff;
}
.error-panel h1{margin:.2rem 0 1rem;color:var(--ink);font-size:2.5rem;line-height:1.15}
.error-panel p{max-width:760px;color:var(--muted)}
.site-footer{
  padding:62px 0 24px;
  background:#181A1F;
  color:#D2D4D9;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(3,1fr);
  gap:48px;
}
.footer-grid h2{margin:0 0 16px;color:#fff;font-size:.95rem}
.footer-grid p{margin:0;max-width:420px;color:#AEB1B8;font-size:.9rem}
.footer-grid nav{display:flex;flex-direction:column;align-items:flex-start}
.footer-grid nav a{
  margin:5px 0;
  color:#BFC2C9;
  font-size:.88rem;
  text-decoration:none;
}
.footer-grid nav a:hover{color:#fff}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-top:46px;
  padding-top:20px;
  border-top:1px solid #30333A;
  color:#858991;
  font-size:.82rem;
}
.footer-bottom p{margin:0}
.back-top{text-decoration:none;color:#D89A45;opacity:0;pointer-events:none;transition:opacity .18s ease}
.back-top.is-visible{opacity:1;pointer-events:auto}
.search-modal[hidden]{display:none !important}
.search-modal{
  position:fixed;
  inset:0;
  z-index:2000;
  display:grid;
  place-items:start center;
  padding:9vh 20px 20px;
}
.search-backdrop{position:absolute;inset:0;background:rgba(12,13,16,.72)}
.search-dialog{
  position:relative;
  z-index:1;
  width:min(720px,100%);
  padding:28px;
  border-radius:18px;
  background:var(--paper);
  box-shadow:0 30px 90px rgba(0,0,0,.35);
}
.search-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
.search-dialog-head h2{margin:0;color:var(--ink);font-size:1.35rem}
.icon-button{
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--ink);
  font-size:1.4rem;
  line-height:1;
}
.search-form{margin-top:24px}
.form-help{margin:10px 0 0;color:var(--muted);font-size:.82rem}

@media (max-width:1100px){
  .primary-nav{gap:0}
  .primary-nav a{padding-inline:8px;font-size:.86rem}
  .header-inner{gap:14px}
  .hero-grid,.page-hero-grid{gap:42px}
  .intent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .safety-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:1024px){
  .menu-toggle{display:flex;order:2}
  .search-trigger{order:3}
  .primary-nav{
    position:fixed;
    left:20px;
    right:20px;
    top:88px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    max-height:calc(100vh - 120px);
    overflow:auto;
    padding:14px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--paper);
    box-shadow:var(--shadow);
  }
  .primary-nav.is-open{display:flex}
  .primary-nav a{padding:12px 14px;font-size:.95rem}
  .hero-grid,.page-hero-grid,.article-header-grid{grid-template-columns:1fr}
  .hero-media,.page-hero-grid>img,.article-header img{max-width:760px}
  .feature-split,.feature-split.reverse,.route-grid{grid-template-columns:1fr;gap:36px}
  .feature-split.reverse>img{order:2}
  .route-grid figure{max-width:680px}
  .two-column{gap:40px}
  .permission-grid,.principle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .article-layout,.faq-layout{grid-template-columns:1fr;gap:40px}
  .article-aside,.faq-aside{display:none}
  .article-content{max-width:860px}
  .article-index-item{grid-template-columns:54px minmax(0,1fr) 190px}
  .footer-grid{grid-template-columns:1.4fr 1fr 1fr}
  .footer-grid>nav:last-child{grid-column:2/4}
}

@media (max-width:768px){
  .container{width:min(calc(100% - 28px),var(--container))}
  .header-inner{min-height:70px}
  .brand img{width:38px;height:38px}
  .brand-copy small{display:none}
  .search-trigger{padding:8px 11px;font-size:.82rem}
  .primary-nav{left:14px;right:14px;top:79px}
  .hero,.page-hero{padding:40px 0 44px}
  .section{padding:58px 0}
  .hero-copy h1,.page-hero h1,.compact-hero h1{font-size:clamp(2.05rem,10vw,3.35rem)}
  .hero-lead{font-size:1rem}
  .split-heading{grid-template-columns:1fr;gap:8px}
  .intent-grid,.intent-grid.two-up{grid-template-columns:1fr}
  .intent-card{min-height:0}
  .intent-card .card-index{margin-bottom:24px}
  .two-column{grid-template-columns:1fr}
  .editorial-band{grid-template-columns:1fr;padding:28px;gap:20px}
  .article-grid{grid-template-columns:1fr}
  .safety-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .article-index-item{grid-template-columns:44px 1fr}
  .article-index-item>img{grid-column:2;max-width:320px}
  .article-layout{padding-top:42px}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-grid>section{grid-column:1/-1}
  .footer-grid>nav:last-child{grid-column:auto}
  .footer-bottom{align-items:flex-start;flex-direction:column}
  .search-dialog{padding:22px}
  .search-row,.inline-search{flex-direction:column}
}

@media (max-width:600px){
  .brand-copy strong{font-size:.9rem}
  .search-trigger{display:none}
  .menu-toggle{margin-left:auto}
  .button-row{flex-direction:column;align-items:stretch}
  .button{width:100%}
  .hero-media{border-radius:18px}
  .section-heading h2,.feature-copy h2,.two-column h2,.route-grid h2,.editorial-band h2{font-size:1.9rem}
  .comparison-table-wrap{margin-inline:-14px;border-left:0;border-right:0}
  .scenario-list article,.steps li,.guide-timeline li{grid-template-columns:48px 1fr;gap:14px}
  .permission-grid,.principle-grid,.safety-grid{grid-template-columns:1fr}
  .link-list>a{grid-template-columns:1fr;gap:4px}
  .article-index-item{grid-template-columns:1fr}
  .article-number,.article-index-item>img{grid-column:1}
  .article-index-item>img{max-width:none}
  .number-list li{grid-template-columns:1fr;gap:3px}
  .results-head{align-items:flex-start;flex-direction:column;gap:4px}
  .footer-grid{grid-template-columns:1fr}
  .footer-grid>nav:last-child{grid-column:auto}
  .search-modal{padding:20px 12px;place-items:center}
  .error-panel{padding:34px 22px}
}

@media (max-width:375px){
  .container{width:min(calc(100% - 22px),var(--container))}
  .brand-copy strong{font-size:.84rem}
  .brand{gap:8px}
  .menu-toggle{width:40px;height:40px}
  .hero-copy h1,.page-hero h1,.compact-hero h1{font-size:2rem}
  .hero-lead{font-size:.96rem}
  .section{padding:50px 0}
  .intent-card,.article-card{padding:22px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
