:root{
  --paper:#F6F1E5;
  --ink:#1A1D21;
  --navy:#0E2A47;
  --navy-deep:#081726;
  --gold:#C2A24A;
  --red:#B83A2E;
  --sand:#E2DDD2;
  --ivory:#FDFBF7;
  --white:#ffffff;
  --container:1440px;
  --gutter:clamp(16px, 4vw, 64px);
  --border-thin:1px solid var(--sand);
  --shadow:0 8px 24px rgba(8,23,38,.08);
  --font-body:"Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-mono:"Roboto Mono", SFMono-Regular, Menlo, monospace;
  --font-head:"Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius:0px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.7;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--navy);text-decoration-color:var(--gold);text-underline-offset:4px}
a:hover{color:var(--gold);text-decoration-color:var(--red)}
a:focus-visible,button:focus-visible,.nav-link:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:2px;
  border-radius:0;
}
::selection{background:var(--gold);color:var(--ink)}
.skip-link{
  position:fixed;
  top:-100px;
  left:16px;
  z-index:2000;
  background:var(--navy);
  color:var(--white);
  padding:12px 20px;
  font-family:var(--font-head);
  font-size:14px;
  letter-spacing:.12em;
  transition:top .2s ease;
}
.skip-link:focus{top:12px;outline:3px solid var(--gold)}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  margin:-1px;
  padding:0;
  border:0;
}
.site-container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.site-header{
  position:relative;
  background:var(--navy);
  border-bottom:3px solid var(--gold);
  color:var(--white);
  z-index:100;
}
.header-inner{
  display:flex;
  align-items:stretch;
  min-height:78px;
  gap:24px;
  flex-wrap:nowrap;
}
.brand-wordmark{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--white);
  font-family:var(--font-head);
  font-weight:700;
  letter-spacing:.04em;
  padding-block:12px;
}
.brand-wordmark:hover{color:var(--gold)}
.brand-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  background:var(--gold);
  color:var(--navy-deep);
  font-size:24px;
  line-height:1;
  position:relative;
  border-radius:0;
}
.brand-dot{
  position:absolute;
  top:-4px;
  right:-4px;
  width:12px;
  height:12px;
  background:var(--red);
  border:2px solid var(--navy);
}
.brand-text{
  font-size:1.2rem;
  text-transform:uppercase;
  white-space:nowrap;
}
.header-index-line{
  display:flex;
  align-items:center;
  gap:14px;
  color:rgba(255,255,255,.72);
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.08em;
  margin-left:auto;
  padding-inline:8px;
  border-left:1px solid rgba(255,255,255,.2);
}
.index-rule{
  display:inline-block;
  width:64px;
  height:1px;
  background:var(--gold);
}
.main-nav{
  display:flex;
  align-items:center;
}
.nav-list{
  display:flex;
  list-style:none;
  gap:2px;
}
.nav-link{
  display:inline-block;
  color:var(--white);
  font-family:var(--font-head);
  font-size:.95rem;
  font-weight:500;
  letter-spacing:.08em;
  padding:28px 12px;
  text-decoration:none;
  border-bottom:3px solid transparent;
  position:relative;
}
.nav-link:hover{
  color:var(--gold);
  background:rgba(255,255,255,.05);
}
.nav-link[aria-current="page"]{
  color:var(--gold);
  border-bottom-color:var(--red);
}
.nav-link[aria-current="page"]::after{
  content:"";
  position:absolute;
  right:12px;
  bottom:6px;
  left:12px;
  height:4px;
  background:var(--red);
}
.mobile-nav-toggle{
  display:none;
  margin-left:auto;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:6px;
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.4);
  background:transparent;
  cursor:pointer;
  align-self:center;
}
.toggle-bar{
  display:block;
  width:22px;
  height:2px;
  background:var(--white);
  transition:transform .3s ease, opacity .2s ease;
}
.page-main{
  display:block;
  min-height:60vh;
}
.section-panel{
  background:var(--ivory);
  border:1px solid var(--sand);
  box-shadow:var(--shadow);
  padding:clamp(24px, 4vw, 48px);
  margin-bottom:48px;
  position:relative;
}
.section-panel::before{
  content:"";
  position:absolute;
  top:-1px;left:0;
  width:120px;height:4px;
  background:var(--gold);
}
.btn-link{
  display:inline-block;
  background:var(--navy);
  color:var(--white);
  border:1px solid var(--navy);
  padding:12px 28px;
  font-family:var(--font-head);
  font-size:.95rem;
  letter-spacing:.08em;
  text-decoration:none;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
  border-radius:0;
}
.btn-link:hover{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--navy-deep);
}
.grid-cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:24px;
}
.grid-toc{
  display:grid;
  gap:1px;
  background:var(--sand);
  border:1px solid var(--sand);
}
.grid-toc > *{
  background:var(--paper);
  padding:20px;
}
.site-footer{
  background:var(--navy-deep);
  color:rgba(255,255,255,.82);
  font-size:.95rem;
  margin-top:80px;
}
.site-footer a{
  color:rgba(255,255,255,.8);
  text-decoration-color:rgba(194,162,74,.5);
}
.site-footer a:hover{
  color:var(--gold);
  text-decoration-color:var(--red);
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1.4fr 1.2fr;
  gap:clamp(24px, 5vw, 60px);
  padding-block:60px 48px;
}
.footer-brand-link{
  color:var(--white);
  margin-bottom:18px;
}
.footer-trust{
  max-width:320px;
  font-size:.9rem;
  color:rgba(255,255,255,.66);
  margin-top:18px;
  border-left:3px solid var(--gold);
  padding-left:14px;
}
.footer-heading{
  font-family:var(--font-head);
  font-size:1rem;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--gold);
  margin-bottom:20px;
  text-transform:uppercase;
}
.footer-nav-list,.footer-legal-list{
  list-style:none;
}
.footer-nav-list li,.footer-legal-list li{
  margin-bottom:10px;
}
.footer-nav-list a,.footer-legal-list a{
  text-decoration:none;
  padding-block:2px;
}
.footer-nav-list a:hover,.footer-legal-list a:hover{
  text-decoration:underline;
}
.footer-address{
  font-style:normal;
  line-height:1.9;
  margin-bottom:12px;
}
.footer-note{
  font-size:.85rem;
  color:rgba(255,255,255,.55);
  border-left:2px solid var(--red);
  padding-left:10px;
}
.footer-cert-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  background:var(--gold);
  color:var(--navy-deep);
  font-family:var(--font-head);
  font-weight:700;
  font-size:12px;
  letter-spacing:.1em;
  margin-right:10px;
}
.cert-text{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:.9rem;
  color:rgba(255,255,255,.75);
}
.footer-legal-list{
  margin-top:18px;
}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding-block:20px;
  background:rgba(0,0,0,.18);
}
.footer-bottom-inner{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px;
}
.fine-print{
  font-family:var(--font-mono);
  font-size:.8rem;
  color:rgba(255,255,255,.6);
}
.scroll-progress{
  position:fixed;
  top:0;left:0;
  height:3px;
  width:0%;
  background:linear-gradient(90deg,var(--gold),var(--red));
  z-index:3000;
  pointer-events:none;
  transition:width .1s linear;
}
@media (max-width: 1100px){
  .header-index-line{display:none}
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width: 860px){
  .site-header{
    position:sticky;
    top:0;
  }
  .header-inner{
    flex-wrap:wrap;
    min-height:64px;
    padding-block:8px;
  }
  .mobile-nav-toggle{
    display:flex;
    order:3;
  }
  .brand-wordmark{
    order:1;
    padding-block:4px;
  }
  .main-nav{
    order:4;
    flex-basis:100%;
    display:grid;
    grid-template-rows:0fr;
    transition:grid-template-rows .4s ease;
  }
  .main-nav .nav-list{
    display:flex;
    flex-direction:column;
    gap:0;
    overflow:hidden;
  }
  .main-nav[data-open]{
    grid-template-rows:1fr;
  }
  .nav-link{
    border-bottom:1px solid rgba(255,255,255,.12);
    padding:16px 8px;
    width:100%;
  }
  .nav-link[aria-current="page"]::after{
    content:none;
  }
  .nav-link[aria-current="page"]{
    background:rgba(194,162,74,.12);
    border-left:4px solid var(--red);
  }
  .mobile-nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1){
    transform:translateY(8px) rotate(45deg);
  }
  .mobile-nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2){
    opacity:0;
  }
  .mobile-nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
  }
  .footer-grid{
    grid-template-columns:1fr;
    gap:36px;
  }
}
@media (max-width: 480px){
  .brand-text{
    font-size:1rem;
  }
  .brand-mark{
    width:32px;
    height:32px;
    font-size:20px;
  }
  .footer-grid{
    padding-block:40px 32px;
  }
}
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
