/* ==========================================================================
   亿兆中文站 · 共享样式 /assets/site.css
   §1 变量与重置  §2 中文排版  §3 布局工具  §4 通用组件
   §5 页头  §6 页脚  §7 动态元素  §8 响应式与动效偏好
   ========================================================================== */

/* §1 变量与重置 ---------------------------------------------------------- */
:root{
  --yz-paper:#F7F4EE;
  --yz-mist:#4A90A4;
  --yz-teal:#2F6574;
  --yz-amber:#E8A33D;
  --yz-ink:#1F2B30;
  --yz-fog:#DCE9EC;
  --yz-clay:#B85C4A;
  --yz-grey:#7C8788;
  --yz-white:#FFFFFF;

  --yz-line:rgba(31,43,48,.14);
  --yz-line-strong:rgba(31,43,48,.28);
  --yz-line-inv:rgba(247,244,238,.16);
  --yz-rule:1px solid var(--yz-line);

  --yz-wrap:1240px;
  --yz-gutter:clamp(18px,4vw,56px);
  --yz-ease:cubic-bezier(.22,.61,.36,1);

  --font-sans:"HarmonyOS Sans SC","Noto Sans SC","Source Han Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"JetBrains Mono","IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;
}

*,*::before,*::after{box-sizing:border-box;}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}

body{
  margin:0;
  background:var(--yz-paper);
  color:var(--yz-ink);
  font-family:var(--font-sans);
  font-size:17px;
  font-weight:400;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

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

button{font:inherit;color:inherit;}

h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd{margin:0;}

ul,ol{margin:0;padding:0;list-style:none;}

a{color:var(--yz-teal);text-decoration:none;}
a:hover{text-decoration:underline;text-underline-offset:3px;}

:focus-visible{
  outline:2px solid var(--yz-teal);
  outline-offset:3px;
}

::selection{background:rgba(232,163,61,.42);color:var(--yz-ink);}

/* §2 中文排版 ------------------------------------------------------------ */
h1,h2,h3,h4{
  font-family:var(--font-sans);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.16;
  color:var(--yz-ink);
}

h1{font-size:clamp(30px,4.6vw,54px);line-height:1.1;}
h2{font-size:clamp(24px,3.2vw,36px);}
h3{font-size:clamp(19px,2.1vw,24px);font-weight:700;letter-spacing:-.012em;}
h4{font-size:17px;font-weight:700;letter-spacing:0;}

strong,b{font-weight:700;}

small{font-size:13px;}

code,kbd,samp,time,.yz-mono{
  font-family:var(--font-mono);
  font-size:.92em;
  letter-spacing:.04em;
}

/* §3 布局工具 ------------------------------------------------------------ */
.yz-wrap{
  width:100%;
  max-width:var(--yz-wrap);
  margin-inline:auto;
  padding-inline:var(--yz-gutter);
}

.yz-section{
  padding-block:clamp(40px,6vw,88px);
}

.yz-stack > * + *{margin-top:var(--yz-gap,16px);}

.yz-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:clamp(16px,2.2vw,28px);
}

.yz-band{position:relative;}
.yz-band--paper{background:var(--yz-paper);}
.yz-band--fog{background:var(--yz-fog);}
.yz-band--ink{background:var(--yz-ink);color:var(--yz-paper);}
.yz-band--ink h1,.yz-band--ink h2,.yz-band--ink h3{color:var(--yz-paper);}
.yz-band--mist{background:linear-gradient(135deg,var(--yz-fog) 0%,var(--yz-paper) 78%);}

.yz-prose{max-width:72ch;}
.yz-prose p + p{margin-top:1.05em;}
.yz-prose ul,.yz-prose ol{margin-top:1em;padding-left:1.15em;list-style:disc;}
.yz-prose li + li{margin-top:.4em;}

.yz-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--yz-mist);
}
.yz-eyebrow::before{
  content:"";
  width:16px;
  height:2px;
  background:var(--yz-amber);
  display:block;
  flex:none;
}

.yz-title{max-width:20ch;}
.yz-lede{
  max-width:60ch;
  font-size:clamp(16px,1.4vw,18px);
  line-height:1.72;
  color:rgba(31,43,48,.78);
}
.yz-band--ink .yz-lede{color:rgba(247,244,238,.78);}

.yz-slat{
  height:8px;
  border:0;
  background:repeating-linear-gradient(115deg,transparent 0 9px,rgba(74,144,164,.34) 9px 10px);
}

/* §4 通用组件 ------------------------------------------------------------ */
/* 4.1 按钮 */
.yz-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 22px;
  border:1px solid transparent;
  background:transparent;
  font-family:var(--font-sans);
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.01em;
  text-decoration:none;
  cursor:pointer;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
  transition:background-color .18s var(--yz-ease),color .18s var(--yz-ease),border-color .18s var(--yz-ease),transform .18s var(--yz-ease);
}
.yz-btn:hover{text-decoration:none;}
.yz-btn:focus-visible{outline:2px solid var(--yz-teal);outline-offset:-4px;}
.yz-btn--solid{background:var(--yz-amber);color:var(--yz-ink);}
.yz-btn--solid:hover{background:#f2b459;}
.yz-btn--ghost{border-color:var(--yz-ink);color:var(--yz-ink);}
.yz-btn--ghost:hover{background:var(--yz-fog);}
.yz-btn--link{
  padding:6px 0;
  clip-path:none;
  color:var(--yz-teal);
  border-bottom:2px solid var(--yz-mist);
}
.yz-btn--link:hover{border-bottom-color:var(--yz-amber);color:var(--yz-ink);}
.yz-band--ink .yz-btn--link{color:var(--yz-fog);border-bottom-color:var(--yz-amber);}

/* 4.2 标签与版本号 */
.yz-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border:1px solid var(--yz-mist);
  color:var(--yz-teal);
  background:rgba(255,255,255,.6);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:500;
  letter-spacing:.1em;
  line-height:1.4;
}
.yz-ver{
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  background:var(--yz-amber);
  color:var(--yz-ink);
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.04em;
  line-height:1.4;
}
.yz-ver--old{background:rgba(184,92,74,.16);color:var(--yz-clay);border:1px solid rgba(184,92,74,.4);}

/* 4.3 切角面板与资料卡 */
.yz-panel{
  position:relative;
  padding:clamp(20px,3vw,32px);
  background:var(--yz-white);
  border:1px solid var(--yz-line);
  clip-path:polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,20px 100%,0 calc(100% - 20px));
}
.yz-panel > * + *{margin-top:14px;}
.yz-panel:hover{border-color:var(--yz-line-strong);}
.yz-panel--fog{background:var(--yz-fog);}
.yz-panel--tint{background:rgba(74,144,164,.07);}

/* 4.4 图片容器（响应式，页面阶段放入图片占位） */
.yz-media{
  --ratio:16 / 9;
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:var(--ratio);
  overflow:hidden;
  background:linear-gradient(140deg,var(--yz-fog) 0%,var(--yz-paper) 64%,rgba(232,163,61,.14) 100%);
  border:1px solid var(--yz-line);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 26px),calc(100% - 26px) 100%,0 100%);
}
.yz-media > img,
.yz-media > picture > img,
.yz-media > svg{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.yz-media::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:34%;
  background:linear-gradient(180deg,rgba(74,144,164,0) 0%,rgba(74,144,164,.16) 100%);
  pointer-events:none;
}
.yz-media--wide{--ratio:21 / 9;}
.yz-media--square{--ratio:1 / 1;}
.yz-media--portrait{--ratio:4 / 5;}

/* 4.5 面包屑 */
.yz-crumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:500;
  letter-spacing:.06em;
  color:var(--yz-grey);
}
.yz-crumbs a{color:var(--yz-teal);text-decoration:none;}
.yz-crumbs a:hover{text-decoration:underline;text-underline-offset:3px;}
.yz-crumbs li + li::before{
  content:"/";
  margin-right:8px;
  color:var(--yz-grey);
  opacity:.7;
}

/* 4.6 章节目录 */
.yz-toc{
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:14.5px;
}
.yz-toc-link{
  display:block;
  padding:9px 0 9px 14px;
  border-left:2px solid var(--yz-line);
  color:rgba(31,43,48,.72);
  text-decoration:none;
  transition:color .16s var(--yz-ease),border-color .16s var(--yz-ease),padding-left .16s var(--yz-ease);
}
.yz-toc-link:hover{color:var(--yz-teal);border-left-color:var(--yz-mist);}
.yz-toc-link[aria-current="true"]{
  color:var(--yz-ink);
  font-weight:700;
  border-left-color:var(--yz-amber);
  padding-left:18px;
}

/* 4.7 显现 */
.js .yz-reveal{
  opacity:0;
  transform:translateY(8px);
  transition:opacity .24s var(--yz-ease),transform .24s var(--yz-ease);
}
.js .yz-reveal[data-shown="true"]{opacity:1;transform:none;}

/* §5 页头 ---------------------------------------------------------------- */
.skip-link{
  position:absolute;
  left:12px;
  top:-72px;
  z-index:999;
  padding:12px 18px;
  background:var(--yz-ink);
  color:var(--yz-paper);
  font-size:14px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  transition:top .16s var(--yz-ease);
}
.skip-link:focus{top:12px;text-decoration:none;}

.site-header{
  position:relative;
  z-index:60;
  background:var(--yz-paper);
  border-bottom:1px solid var(--yz-line);
}

/* 5.1 档案脊 */
.header-rail{
  background:var(--yz-ink);
  color:var(--yz-fog);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.rail-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:34px;
}
.rail-mark{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--yz-fog);
  white-space:nowrap;
}
.rail-dot{
  width:7px;
  height:7px;
  flex:none;
  background:var(--yz-amber);
  transform:rotate(45deg);
}
.rail-note{
  color:#93A7AC;
  letter-spacing:.14em;
  white-space:nowrap;
}

/* 5.2 品牌与导航 */
.header-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(16px,3vw,48px);
  padding-block:clamp(16px,2.4vw,26px);
}

.brand-block{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}
.brand{
  display:inline-flex;
  align-items:baseline;
  gap:12px;
  color:var(--yz-ink);
  text-decoration:none;
}
.brand:hover{text-decoration:none;}
.brand-mark{
  font-size:clamp(24px,2.6vw,30px);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1;
}
.brand-divider{
  display:block;
  width:1px;
  height:20px;
  background:var(--yz-amber);
  transform:translateY(1px) skewX(-12deg);
  flex:none;
}
.brand-sub{
  font-size:15px;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--yz-teal);
  line-height:1;
}
.brand-tagline{
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:500;
  letter-spacing:.04em;
  line-height:1.4;
  color:var(--yz-grey);
}

.site-nav{
  display:flex;
  align-items:center;
  gap:clamp(14px,2.2vw,32px);
}
.nav-list{
  display:flex;
  align-items:center;
  gap:clamp(10px,1.6vw,24px);
}
.nav-link{
  position:relative;
  display:inline-block;
  padding:8px 2px;
  color:var(--yz-ink);
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:.01em;
  text-decoration:none;
  transition:color .16s var(--yz-ease);
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height:3px;
  background:var(--yz-mist);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .2s var(--yz-ease),background-color .2s var(--yz-ease);
}
.nav-link:hover{color:var(--yz-teal);text-decoration:none;}
.nav-link:hover::after{transform:scaleX(1);}
.nav-link[aria-current="page"]{color:var(--yz-teal);}
.nav-link[aria-current="page"]::after{
  transform:scaleX(1);
  background:var(--yz-amber);
}

.nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  background:var(--yz-amber);
  color:var(--yz-ink);
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.02em;
  white-space:nowrap;
  text-decoration:none;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 11px),calc(100% - 11px) 100%,0 100%);
  transition:background-color .18s var(--yz-ease),color .18s var(--yz-ease);
}
.nav-cta:hover{background:var(--yz-ink);color:var(--yz-paper);text-decoration:none;}
.nav-cta:focus-visible{outline:2px solid var(--yz-teal);outline-offset:-4px;}

/* 5.3 移动抽屉按钮 */
.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  border:1px solid var(--yz-line-strong);
  background:var(--yz-white);
  color:var(--yz-ink);
  font-size:14px;
  font-weight:700;
  line-height:1;
  letter-spacing:.04em;
  cursor:pointer;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);
  transition:background-color .16s var(--yz-ease),color .16s var(--yz-ease);
}
.nav-toggle:hover{background:var(--yz-fog);}
.nav-toggle[aria-expanded="true"]{background:var(--yz-ink);color:var(--yz-paper);border-color:var(--yz-ink);}
.nav-toggle:focus-visible{outline:2px solid var(--yz-teal);outline-offset:-4px;}

.nav-toggle-bars{
  position:relative;
  display:block;
  width:18px;
  height:2px;
  flex:none;
  background:currentColor;
  transition:background-color .18s var(--yz-ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:currentColor;
  transition:transform .2s var(--yz-ease);
}
.nav-toggle-bars::before{top:-6px;}
.nav-toggle-bars::after{top:6px;}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars{background:transparent;}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before{transform:translateY(6px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after{transform:translateY(-6px) rotate(-45deg);}

.nav-toggle-label{display:inline-block;}

/* §6 页脚 ---------------------------------------------------------------- */
.site-footer{
  position:relative;
  background:var(--yz-ink);
  color:#DDE5E7;
}

.footer-ridge{
  position:relative;
  height:64px;
  background:var(--yz-paper);
  overflow:hidden;
}
.footer-ridge::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:100%;
  background:rgba(74,144,164,.26);
  clip-path:polygon(0 62%,12% 44%,24% 58%,38% 30%,52% 54%,66% 36%,80% 60%,92% 42%,100% 56%,100% 100%,0 100%);
}
.footer-ridge::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:100%;
  background:var(--yz-ink);
  clip-path:polygon(0 82%,14% 66%,28% 78%,44% 58%,58% 76%,74% 60%,88% 78%,100% 68%,100% 100%,0 100%);
}

.footer-inner{
  padding-block:clamp(34px,5vw,62px) clamp(18px,3vw,30px);
}

.footer-main{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(28px,5vw,72px);
  align-items:start;
}

.footer-brand-mark{
  display:inline-block;
  color:var(--yz-paper);
  font-size:clamp(22px,2.3vw,27px);
  font-weight:800;
  letter-spacing:-.015em;
  line-height:1.2;
  text-decoration:none;
}
.footer-brand-mark span{
  color:var(--yz-mist);
  font-weight:600;
  letter-spacing:.02em;
}
.footer-brand-mark:hover{text-decoration:none;color:var(--yz-amber);}
.footer-brand-mark:hover span{color:var(--yz-amber);}

.footer-lede{
  margin-top:14px;
  max-width:36ch;
  font-size:15.5px;
  line-height:1.75;
  color:#A9BABD;
}

.contact-list{
  display:grid;
  gap:10px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--yz-line-inv);
}
.contact-item{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  font-size:14.5px;
}
.contact-key{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.12em;
  color:#7E9296;
  text-transform:uppercase;
  line-height:1.5;
}
.contact-val{
  color:#E7EEEF;
  font-family:var(--font-mono);
  font-size:13.5px;
  letter-spacing:.03em;
  line-height:1.6;
  overflow-wrap:anywhere;
}
.contact-item:last-child .contact-val{
  font-family:var(--font-sans);
  font-size:14.5px;
  letter-spacing:0;
}

.copy-btn{
  padding:6px 9px;
  border:1px solid rgba(247,244,238,.28);
  background:transparent;
  color:#A9BABD;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.08em;
  line-height:1;
  cursor:pointer;
  transition:background-color .16s var(--yz-ease),color .16s var(--yz-ease),border-color .16s var(--yz-ease);
}
.copy-btn:hover{border-color:var(--yz-amber);color:var(--yz-amber);}
.copy-btn[data-copied="true"]{
  background:var(--yz-amber);
  border-color:var(--yz-amber);
  color:var(--yz-ink);
}

.contact-note{
  margin-top:16px;
  max-width:44ch;
  font-size:13px;
  line-height:1.7;
  color:#8FA3A7;
}

.footer-cols{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(20px,3vw,36px);
}
.footer-col-title{
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:1px solid var(--yz-line-inv);
  color:var(--yz-mist);
  font-family:var(--font-mono);
  font-size:11.5px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  line-height:1.4;
}
.footer-links{
  display:grid;
  gap:10px;
}
.footer-link{
  position:relative;
  display:inline-block;
  padding-left:14px;
  color:#CFDBDD;
  font-size:15px;
  line-height:1.6;
  text-decoration:none;
  transition:color .16s var(--yz-ease),padding-left .16s var(--yz-ease);
}
.footer-link::before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:7px;
  height:2px;
  background:var(--yz-mist);
  transition:width .16s var(--yz-ease),background-color .16s var(--yz-ease);
}
.footer-link:hover{color:var(--yz-amber);padding-left:18px;text-decoration:none;}
.footer-link:hover::before{width:11px;background:var(--yz-amber);}

.footer-legal{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px 28px;
  margin-top:clamp(28px,4vw,48px);
  padding-top:20px;
  border-top:1px solid var(--yz-line-inv);
}
.legal-fine{
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.03em;
  line-height:1.7;
  color:#8FA3A7;
}
.icp{color:#A9BABD;}
.legal-links{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}
.legal-link{
  color:#C3D2D5;
  font-size:13.5px;
  line-height:1.6;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .16s var(--yz-ease),border-color .16s var(--yz-ease);
}
.legal-link:hover{color:var(--yz-amber);border-bottom-color:var(--yz-amber);text-decoration:none;}

/* §7 动态元素 ------------------------------------------------------------ */
.scroll-meter{
  position:fixed;
  inset:0 0 auto 0;
  height:3px;
  z-index:200;
  background:rgba(74,144,164,.16);
  pointer-events:none;
}
.scroll-meter-fill{
  height:100%;
  width:100%;
  background:var(--yz-amber);
  transform:scaleX(0);
  transform-origin:0 50%;
  transition:transform .08s linear;
}

.to-top{
  position:fixed;
  right:clamp(14px,2.4vw,32px);
  bottom:clamp(14px,2.4vw,32px);
  z-index:190;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:12px 16px;
  border:0;
  background:var(--yz-ink);
  color:var(--yz-paper);
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  line-height:1;
  cursor:pointer;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .2s var(--yz-ease),transform .2s var(--yz-ease),background-color .2s var(--yz-ease),visibility .2s;
}
.to-top::before{
  content:"";
  display:block;
  width:8px;
  height:8px;
  border-left:2px solid currentColor;
  border-top:2px solid currentColor;
  transform:rotate(45deg);
}
.to-top[data-visible="true"]{opacity:1;visibility:visible;transform:none;}
.to-top:hover{background:var(--yz-teal);}
.to-top:focus-visible{outline:2px solid var(--yz-teal);outline-offset:-4px;}

/* §8 响应式与动效偏好 ---------------------------------------------------- */
@media (max-width:1180px){
  .nav-list{gap:12px;}
  .nav-link{font-size:14.5px;}
}

@media (max-width:960px){
  .nav-toggle{display:inline-flex;}

  .header-inner{align-items:center;}

  .site-nav{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    z-index:70;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:14px var(--yz-gutter) 24px;
    background:var(--yz-white);
    border-top:3px solid var(--yz-mist);
    opacity:0;
    visibility:hidden;
    transform:translateY(-6px);
    transition:opacity .2s var(--yz-ease),transform .2s var(--yz-ease),visibility .2s;
    clip-path:polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%);
  }
  .site-nav[data-open="true"]{
    opacity:1;
    visibility:visible;
    transform:none;
  }

  .nav-list{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    width:100%;
  }
  .nav-item{border-bottom:1px solid var(--yz-line);}
  .nav-link{
    display:block;
    padding:16px 2px;
    font-size:16px;
  }
  .nav-link::after{display:none;}
  .nav-link[aria-current="page"]::before{
    content:"";
    display:inline-block;
    width:14px;
    height:3px;
    margin-right:10px;
    vertical-align:middle;
    background:var(--yz-amber);
  }
  .nav-cta{
    width:100%;
    margin-top:20px;
    padding:15px 18px;
  }

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

@media (max-width:880px){
  .yz-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
  .rail-note{display:none;}
}

@media (max-width:620px){
  body{font-size:16px;}
  .yz-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .brand-divider{height:17px;}
  .brand-sub{font-size:13.5px;}
  .brand-tagline{font-size:11.5px;}
  .footer-cols{grid-template-columns:1fr;gap:22px;}
  .footer-ridge{height:48px;}
  .contact-item{
    grid-template-columns:minmax(0,1fr) auto;
    row-gap:2px;
  }
  .contact-key{grid-column:1 / -1;}
  .footer-legal{flex-direction:column;align-items:flex-start;}
  .legal-links{gap:14px;}
  .to-top{padding:11px 13px;font-size:12px;}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .js .yz-reveal{opacity:1;transform:none;}
  .to-top{transition:none;}
}
