/* ASH Group NYC — shared styles (v5). Font: Archivo variable, self-hosted (SIL OFL, see /fonts/LICENSE-OFL.txt). */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-variable.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --green: #163a2c;        /* NYC construction-fence green */
  --green-deep: #0e281e;
  --green-line: rgba(255,255,255,0.14);
  --paper: #f4f3ec;
  --white: #ffffff;
  --ink: #121614;
  --text-2: #47504b;
  --brass: #c9a24b;
  --brass-hi: #dbb963;
  --brass-ink: #72540f;
  --on-green: #dfe7e1;
  --on-green-dim: #b4c4ba;
  --rule: rgba(18,22,20,0.14);
  --nav-h: 64px; --bar-h: 60px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --r: 5px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
svg { display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
abbr { text-decoration: none; }
h1, h2, h3 { font-weight: 750; font-stretch: 82%; line-height: 1.02; letter-spacing: -0.012em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }
.light :focus-visible, .on-paper :focus-visible { outline-color: var(--green); }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 600; background: var(--brass); color: var(--ink); padding: 12px 18px; font-weight: 650; text-decoration: none; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 56px); margin-inline: auto; }

/* Old eyebrow labels from earlier versions are not shown in this design */
.page-hero .code, .content section > .code, .gcode { display: none; }
.code { display: block; font-size: 0.9rem; font-weight: 650; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; font-family: var(--font); font-size: 1.02rem; font-weight: 650; text-decoration: none; border: 2px solid transparent; border-radius: var(--r); cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--brass); color: var(--ink); }
.btn-gold:hover { background: var(--brass-hi); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-ink { background: var(--green); color: var(--white); }
.btn-ink:hover { background: var(--green-deep); }
.btn-line { border-color: var(--green); color: var(--green); background: transparent; }
.btn-line:hover { background: var(--green); color: var(--white); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 300; height: var(--nav-h); background: var(--green-deep); border-bottom: 1px solid var(--green-line); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; color: var(--white); }
.brand svg { width: 26px; height: 26px; }
.brand-name { font-size: 1.3rem; font-weight: 750; font-stretch: 80%; line-height: 1; white-space: nowrap; letter-spacing: 0.005em; }
.brand-name i { font-style: normal; font-weight: 450; color: var(--brass-hi); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-size: 0.98rem; font-weight: 550; color: var(--on-green); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:not(.btn):hover { color: var(--white); border-color: var(--brass); }
.nav-links .btn { min-height: 42px; padding: 0 16px; font-size: 0.98rem; }
.menu-btn { display: none; width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.menu-panel { display: none; position: fixed; z-index: 290; inset: var(--nav-h) 0 auto; background: var(--green-deep); border-bottom: 2px solid var(--brass); padding: 6px 28px 26px; max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
.menu-panel.open { display: block; }
.menu-panel a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--green-line); font-size: 1.3rem; font-weight: 650; font-stretch: 85%; line-height: 1.15; color: var(--white); text-decoration: none; }
.menu-panel a small { display: none; }
.menu-panel .btn { width: 100%; margin-top: 22px; }

/* Fence-green surfaces: faint panel seams, like the plywood fence around a NYC job site */
.dark, .fence { background-color: var(--green); color: var(--white); background-image: repeating-linear-gradient(90deg, transparent 0 239px, rgba(0,0,0,0.13) 239px 240px, rgba(255,255,255,0.035) 240px 241px); }

/* Inner page hero */
.page-hero { padding: calc(var(--nav-h) + 36px) 0 52px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.92rem; color: var(--on-green-dim); margin-bottom: 22px; }
.crumbs a { color: var(--on-green); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--white); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--on-green-dim); }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); margin-bottom: 20px; max-width: 16em; }
.page-hero .lede { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--on-green); max-width: 38em; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner page body */
.body { padding-block: clamp(48px, 6vw, 84px); }
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.content, .body-grid > * { min-width: 0; }
.content h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 18px; }
.content section + section { margin-top: clamp(40px, 5vw, 60px); padding-top: clamp(36px, 4.5vw, 52px); border-top: 1px solid var(--rule); }
.content p { color: var(--text-2); margin-bottom: 14px; max-width: 42em; }
.content p strong { color: var(--ink); font-weight: 650; }
.content a:not(.btn) { color: var(--green); font-weight: 550; text-decoration: underline; text-decoration-color: rgba(22,58,44,0.4); text-underline-offset: 3px; }
.content a:not(.btn):hover { text-decoration-color: var(--green); }
.ticks li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--rule); color: var(--text-2); max-width: 44em; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 13px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.ticks li strong { color: var(--ink); font-weight: 650; }
.steps { counter-reset: step; border-top: 2px solid var(--green); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 700; font-size: 1rem; }
.steps h3 { font-size: 1.35rem; margin-bottom: 6px; line-height: 1.1; }
.steps p { margin: 0; }
.note { margin-top: 22px; padding: 18px 20px; background: var(--white); border-left: 4px solid var(--brass); color: var(--text-2); font-size: 0.98rem; max-width: 44em; border-radius: 0 var(--r) var(--r) 0; }
.note strong { color: var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--green); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font-size: 1.18rem; font-weight: 650; font-stretch: 90%; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; font-weight: 500; color: var(--green); flex: none; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 18px; margin: 0; }
.fine { font-size: 0.9rem; color: var(--text-2); margin-top: 26px; max-width: 44em; }

/* Call card (aside + contact) */
.aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.call-card { background: var(--green); color: var(--white); padding: 26px; border-radius: var(--r); background-image: none; }
.call-card .code { color: var(--on-green-dim); margin-bottom: 6px; font-weight: 550; }
.call-card .big { display: block; font-size: 2.1rem; font-weight: 750; font-stretch: 80%; line-height: 1.05; text-decoration: none; padding: 5px 0; margin-bottom: 14px; white-space: nowrap; }
.call-card .big:hover { color: var(--brass-hi); }
.call-card .btn { width: 100%; }
.call-card .btn + .btn { margin-top: 10px; }
.call-card p:not(.code) { color: var(--on-green); font-size: 0.96rem; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--green-line); }
.call-card p a { color: var(--white); font-weight: 650; text-underline-offset: 3px; }
.related { margin-top: 16px; border: 1px solid var(--rule); background: var(--white); padding: 20px 22px; border-radius: var(--r); }
.related .code { color: var(--text-2); margin-bottom: 6px; }
.related a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 1.08rem; font-weight: 650; font-stretch: 90%; line-height: 1.25; color: var(--green); }
.related a:last-child { border-bottom: 0; }
.related a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Closing band */
.close-band { background: var(--white); border-top: 1px solid var(--rule); padding-block: clamp(44px, 5.5vw, 72px); }
.close-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.close-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.close-band p { color: var(--text-2); margin-top: 10px; max-width: 34em; }

/* Footer */
.footer { background: var(--green-deep); color: var(--on-green); padding-block: 44px 40px; }
.tb { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 0.9fr 0.8fr; gap: 32px; }
.tb .k { display: block; font-size: 0.9rem; font-weight: 650; color: var(--on-green-dim); margin-bottom: 8px; }
.tb a { color: var(--white); text-decoration: none; }
.tb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tb ul li { padding: 3px 0; }
.tb .brand-name { font-size: 1.5rem; color: var(--white); }
.tb small { display: block; font-size: 0.9rem; margin-top: 6px; color: var(--on-green-dim); }
.sticky-bar { display: none; }

/* Guides */
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.92rem; color: var(--on-green-dim); margin-top: -4px; margin-bottom: 22px; }
.meta-line b { color: var(--on-green); font-weight: 550; }
.toc { border: 1px solid var(--rule); background: var(--white); padding: 20px 24px; margin-bottom: 36px; max-width: 44em; border-radius: var(--r); }
.toc .code { margin-bottom: 8px; color: var(--text-2); }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; padding: 4px 0; }
.toc li::before { content: counter(toc) ". "; color: var(--text-2); font-weight: 550; }
.table-wrap { overflow-x: auto; margin: 8px 0 18px; max-width: 46em; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 520px; background: var(--white); }
.cmp caption { text-align: left; font-size: 0.92rem; font-weight: 650; color: var(--text-2); padding-bottom: 10px; background: var(--paper); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.cmp thead th { background: var(--green); color: var(--white); font-size: 0.92rem; font-weight: 650; border-bottom: 0; }
.cmp tbody th { font-weight: 650; color: var(--ink); width: 26%; }
.cmp td { color: var(--text-2); }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 28px 0 4px; padding: 22px 24px; background: var(--green); color: var(--white); max-width: 46em; border-radius: var(--r); }
.inline-cta p { color: var(--on-green); margin: 0; max-width: 28em; font-size: 1rem; }
.inline-cta p strong { color: var(--white); }
.inline-cta .btn { min-height: 48px; }
.sources { font-size: 0.94rem; color: var(--text-2); max-width: 46em; }
.sources li { padding: 4px 0; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-grid a, .content .guide-grid a:not(.btn) { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 400; transition: border-color .15s; }
.guide-grid a:hover { border-color: var(--green); }
.guide-grid h3 { font-size: 1.4rem; line-height: 1.1; }
.guide-grid p { color: var(--text-2); font-size: 0.98rem; margin: 0; }
.guide-grid .more { margin-top: auto; padding-top: 6px; font-size: 0.96rem; font-weight: 650; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .body-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .wrap { width: calc(100% - 48px); }
  .tb { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .sticky-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; z-index: 280; inset: auto 0 0; height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--green-deep); border-top: 1px solid var(--green-line); }
  .sticky-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; text-align: center; line-height: 1.2; font-size: 1rem; font-weight: 650; text-decoration: none; min-height: var(--bar-h); }
  .sticky-bar svg { width: 18px; height: 18px; flex: none; }
  .sticky-bar .sb-call { background: var(--brass); color: var(--ink); }
  .sticky-bar .sb-form { color: var(--white); }
}
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .wrap { width: calc(100% - 40px); }
  .menu-panel { padding-inline: 20px; }
  .cta-row .btn { flex: 1 1 100%; }
  .tb { grid-template-columns: 1fr; gap: 24px; }
  .close-band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Tools (round 2) ---- */
.js-only { display: none !important; }
.js .js-only { display: block !important; }
.js .tool-form.js-only { display: grid !important; }
.tool-form { display: grid; gap: 10px; max-width: 30rem; margin: 6px 0 18px; }
.tool-form label { font-weight: 650; font-size: 0.98rem; }
.tool-form select, .tool-form input { min-height: 48px; padding: 10px 12px; font: inherit; border: 1.5px solid var(--green); border-radius: var(--r); background: var(--white); color: var(--ink); width: 100%; }
.tool-form select:focus-visible, .tool-form input:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.tool-result { border: 1px solid var(--rule); border-left: 5px solid var(--brass); background: var(--white); padding: 16px 20px; border-radius: var(--r); max-width: 46em; margin: 0 0 18px; }
.tool-result p { margin: 6px 0; }
.dist-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 8px; list-style: none; padding: 0; margin: 10px 0 18px; }
.dist-list a { display: block; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rule); background: var(--white); border-radius: var(--r); text-decoration: none; font-weight: 650; color: var(--green); }
.dist-list a span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--text-2); }
.dist-list a:hover { border-color: var(--green); }
.answers .tools-h { margin: 34px 0 10px; font-size: 1.3rem; }

/* Monitoring quote band */
.quote-band { padding-block: clamp(44px, 6vw, 80px); background: var(--white); border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--nav-h) + 12px); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.quote-grid h2 { margin-bottom: 14px; }
.quote-grid p { max-width: 52ch; margin-bottom: 12px; }
.quote-band .form-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(20px, 3vw, 32px); }
.quote-band .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-band .field { margin-bottom: 16px; }
.quote-band .field label { display: block; font-weight: 650; margin-bottom: 6px; }
.quote-band .field .opt { font-weight: 400; color: var(--text-2); }
.quote-band .field input[type="text"], .quote-band .field select, .quote-band .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #8b938e; border-radius: var(--r); }
.quote-band .field textarea { min-height: 96px; resize: vertical; }
.quote-band .field input:focus, .quote-band .field select:focus, .quote-band .field textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.quote-band .field [aria-invalid="true"] { border-color: #a3261b; border-width: 2px; }
.quote-band .chk label { display: flex; align-items: center; gap: 12px; font-weight: 500; min-height: 44px; }
.quote-band .chk input { width: 22px; height: 22px; accent-color: var(--green); }
.quote-band .form-actions .btn { min-height: 56px; padding: 0 30px; font-size: 1.08rem; }
.quote-band .form-error { display: none; margin-top: 16px; padding: 14px 16px; background: #fbeceb; border-left: 4px solid #a3261b; color: #5c140e; border-radius: 0 var(--r) var(--r) 0; }
.quote-band .form-error.show { display: block; }
.quote-band .form-error a { color: inherit; font-weight: 650; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } .quote-band .form-actions .btn { width: 100%; } }

/* v6 pass: monitoring band, tidy grids, hub jump links */
.watch { background: var(--brass); color: var(--ink); padding-block: clamp(48px, 6.5vw, 88px); scroll-margin-top: var(--nav-h); }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.watch h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1; margin-bottom: 18px; max-width: 13em; }
.watch p { font-size: 1.14rem; max-width: 34em; margin-bottom: 24px; }
.watch .cta-row { align-items: center; gap: 14px 26px; }
.watch .btn-ink { min-height: 58px; padding: 0 30px; font-size: 1.1rem; }
.watch-more { color: var(--ink); font-weight: 650; text-underline-offset: 3px; padding: 12px 0; }
.watch ul { border-top: 3px solid var(--ink); }
.watch li { padding: 16px 0; border-bottom: 1px solid rgba(18,22,20,0.35); font-size: 1.06rem; }
.watch li strong { font-weight: 700; }
.svc { display: flex; flex-direction: column; align-items: flex-start; }
.svc ul { align-self: stretch; margin-bottom: auto; }
.svc h3 { align-self: stretch; }
.svc.ask { align-self: stretch; justify-content: center; }
.guide-grid a:last-child:nth-child(odd), .content .guide-grid a:not(.btn):last-child:nth-child(odd) { grid-column: 1 / -1; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.jump a, .content .jump a:not(.btn) { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; background: var(--white); border: 1.5px solid var(--green); border-radius: 999px; color: var(--green); font-weight: 650; text-decoration: none; }
.jump a:hover { background: var(--green); color: var(--white); }
.content section[id], .content h2[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.content .jump + section { margin-top: 0; padding-top: 0; border-top: 0; }
.quote-grid h2 { font-size: clamp(2rem, 4vw, 3rem); }
.quote-grid .steps { margin: 22px 0 18px; max-width: 30em; }
@media (max-width: 960px) { .watch-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .tb { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tb { grid-template-columns: 1fr; } .watch .btn-ink { width: 100%; } }
