body { padding-bottom: 0; }
.top {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(242, 238, 229, 0.91);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  backdrop-filter: blur(14px) saturate(110%);
}
.nav { width: min(calc(100% - 40px), var(--page)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 30px; }
.brand { flex: 0 0 auto; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -0.035em; text-decoration: none; }
.brand em { color: var(--copper); font-weight: 500; }
.links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.links a { color: var(--ink-soft); font-size: 13px; font-weight: 650; text-decoration: none; }
.links a:hover { color: var(--copper-deep); text-decoration: underline; }
.links .btn { color: var(--paper-light); }
.skip { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-180%); padding: 10px 14px; color: var(--paper-light); background: var(--ink); }
.skip:focus { transform: none; }

.btn { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid var(--rule-strong); border-radius: 2px; font-size: 14px; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; }
.btn.primary { color: var(--paper-light); background: var(--ink); border-color: var(--ink); }
.btn.accent { color: white; background: var(--copper-deep); border-color: var(--copper-deep); }
.btn.secondary { color: var(--ink); background: transparent; }
.btn.small { min-height: 40px; padding: 8px 13px; font-size: 12px; }
.btn:hover { border-color: var(--copper-deep); }

.hero { border-bottom: 1px solid var(--rule-strong); background: var(--paper); }
.hero-in { width: min(calc(100% - 40px), var(--page)); margin: auto; padding: clamp(75px, 10vw, 130px) 0 75px; }
.crumb { margin-bottom: 30px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; }
.crumb a { color: inherit; }
.eyebrow, .kicker { display: block; margin-bottom: 24px; color: var(--copper-deep); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { max-width: 1000px; margin: 0; font-family: var(--serif); font-size: clamp(48px, 7.2vw, 92px); font-weight: 500; line-height: 0.98; letter-spacing: -0.05em; }
.hero h1 em { color: var(--copper); font-weight: 500; }
.lead { max-width: 830px; margin: 29px 0 0; color: var(--ink-soft); font-size: clamp(18px, 2vw, 22px); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.trust, .note { margin-top: 16px; color: var(--muted); font-size: 12px; }

.layout { width: min(calc(100% - 40px), var(--page)); margin: auto; padding: 75px 0 110px; display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 280px); gap: clamp(45px, 8vw, 100px); align-items: start; }
.article { min-width: 0; }
.article h2 { margin: 2.25em 0 0.62em; color: var(--ink); font-family: var(--serif); font-size: clamp(34px, 4.7vw, 53px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 1.8em 0 0.45em; color: var(--ink); font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.article p, .article li { color: var(--ink-soft); }
.article p { margin: 0 0 18px; }
.article li { margin: 8px 0; }
.article a { color: var(--copper-deep); }
.quick { margin-bottom: 35px; padding: 25px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); font-size: 18px; }
.quick b { display: block; margin-bottom: 9px; color: var(--copper-deep); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

.grid2, .grid3 { display: block; margin: 27px 0; border-top: 1px solid var(--rule-strong); }
.card { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(260px, 2fr); gap: 25px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.card .num { grid-column: 1 / -1; margin-bottom: -12px; color: var(--copper-deep); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.card h3 { margin: 0; font-family: var(--serif); font-size: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.callout { margin: 33px 0; padding: 28px; color: var(--paper-light); background: var(--ink); }
.callout h3 { margin-top: 0; color: white; }
.callout p { color: rgba(255,255,255,0.68); }
.callout a { color: #f1b39f; }

.code-wrap { position: relative; margin: 25px 0; }
.code-label { padding: 11px 115px 11px 16px; color: rgba(255,255,255,0.66); background: #263129; border-bottom: 1px solid rgba(255,255,255,0.15); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.copy { position: absolute; z-index: 2; top: 6px; right: 7px; padding: 6px 11px; color: white; background: transparent; border: 1px solid rgba(255,255,255,0.34); border-radius: 0; font-size: 11px; cursor: pointer; }
.code { max-width: 100%; overflow-x: auto; margin: 0; padding: 22px; color: #e9e3d8; background: var(--ink); font: 12px/1.72 var(--mono); white-space: pre; }
.table-wrap { overflow-x: auto; margin: 27px 0; border-top: 1px solid var(--rule-strong); }
.article table { width: 100%; min-width: 620px; border-collapse: collapse; }
.article th, .article td { padding: 15px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.article th { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.yes, .no { color: var(--ink); font-weight: 700; }
.figure { display: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0; margin: 23px 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.pill { flex: 1 1 180px; padding: 12px; color: var(--ink-soft); background: transparent; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 12px; }
.check { padding-left: 1.25em; }
.check li { padding-left: 4px; }
.check li::before { content: none; }
.faq { margin-top: 24px; border-top: 1px solid var(--rule-strong); }
.faq details { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.faq summary { color: var(--ink); font-weight: 750; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.side { position: sticky; top: 100px; }
.side-card { margin-bottom: 30px; padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.side-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.side-card p { color: var(--muted); font-size: 13px; }
.side-card .btn { width: 100%; margin-top: 8px; }
.toc { padding: 0; margin: 0; list-style: none; }
.toc li { margin: 10px 0; }
.toc a { color: var(--muted); font-size: 12px; text-decoration: none; }
.toc a:hover { color: var(--copper-deep); text-decoration: underline; }

.related { padding: 80px 0; background: var(--paper-light); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.related-in { width: min(calc(100% - 40px), var(--page)); margin: auto; }
.related h2 { margin: 0 0 28px; font-family: var(--serif); font-size: 43px; font-weight: 500; }
.resource-grid { border-top: 1px solid var(--rule-strong); }
.resource { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(260px, 1.7fr); gap: 25px; padding: 21px 0; color: var(--ink); border-bottom: 1px solid var(--rule); text-decoration: none; }
.resource b { font-family: var(--serif); font-size: 21px; }
.resource span { color: var(--muted); font-size: 13px; }
.resource:hover b { color: var(--copper-deep); text-decoration: underline; }
.bottom-cta { padding: 90px max(20px, calc((100vw - var(--page)) / 2)); color: var(--paper-light); background: var(--copper-deep); text-align: left; }
.bottom-cta h2 { max-width: 880px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.bottom-cta p { max-width: 680px; color: rgba(255,255,255,0.72); }
.bottom-cta .hero-actions { justify-content: flex-start; }
.bottom-cta .btn { color: var(--paper-light); border-color: rgba(255,255,255,0.5); }
.bottom-cta .btn.accent { color: var(--ink); background: var(--paper-light); border-color: var(--paper-light); }
.footer { padding: 34px 0; color: var(--paper-light); background: #101813; }
.footer-in { width: min(calc(100% - 40px), var(--page)); margin: auto; display: flex; justify-content: space-between; gap: 25px; flex-wrap: wrap; }
.footer p { margin: 0; color: rgba(255,255,255,0.58); font-size: 12px; }
.footer a { color: rgba(255,255,255,0.78); }
.buybar { display: none; }

@media (max-width: 850px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .links { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
}
@media (max-width: 620px) {
  .nav { width: min(calc(100% - 28px), var(--page)); padding: 12px 0; align-items: flex-start; flex-direction: column; }
  .links { margin: 0; justify-content: flex-start; }
  .links a:nth-child(-n+2) { display: none; }
  .hero-in, .layout, .related-in, .footer-in { width: min(calc(100% - 28px), var(--page)); }
  .card, .resource { grid-template-columns: 1fr; gap: 8px; }
  .card .num { grid-column: auto; margin: 0; }
  .bottom-cta { padding: 70px 14px; }
}
