/* E-Invoice information portal — olive green on off-white.
   Used by the portal home, all guides and the about/contact/privacy pages.
   The invoice generator (/invoice-generator/) keeps its own styles.css theme. */
:root {
  --bg: #f7f5ee;          /* off-white */
  --bg2: #efece1;
  --card: #ffffff;
  --ink: #1f2614;         /* deep olive-black text */
  --muted: #5d6450;
  --line: #e2ddcc;
  --line2: #d3cdb7;
  --olive: #556b2f;       /* primary olive */
  --olive-d: #3f5022;
  --olive-l: #e6ebd6;
  --moss: #8a9a5b;
  --gold: #b08d3a;
  --warn: #b7791f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 38, 20, .06), 0 8px 24px -12px rgba(31, 38, 20, .18);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--olive); }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.bg-fx { display: none; }
.grad { color: var(--olive); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--olive); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }

/* ---------- top bar ---------- */
.utility { background: var(--olive-d); color: #e9eddc; font-size: 13px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.utility a { color: #fff; font-weight: 600; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility b { color: #fff; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(247, 245, 238, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--moss), var(--olive-d)); color: #fff; display: grid; place-items: center; font: 700 18px "Space Grotesk", Inter, sans-serif; box-shadow: 0 4px 14px -6px var(--olive-d); }
.brand-name { font: 700 20px "Space Grotesk", Inter, sans-serif; }
.brand-name b { color: var(--olive); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a, .nav-top { white-space: nowrap; text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 9px; font: 500 15px Inter, system-ui, sans-serif; }
.nav a:hover, .nav-top:hover { background: var(--olive-l); color: var(--olive-d); }
.nav a[aria-current="page"], .nav-group.is-current > .nav-top { background: var(--olive-l); color: var(--olive-d); font-weight: 600; }
.nav a.nav-cta { background: var(--olive); color: #fff; font-weight: 600; margin-left: 8px; padding: 9px 15px; }
.nav a.nav-cta:hover { background: var(--olive-d); color: #fff; }

/* dropdown groups (js/site.js handles click + keyboard; hover/focus works without JS) */
.nav-group { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.nav-top svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-sub { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 290px; padding: 10px; margin-top: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(31, 38, 20, .35); flex-direction: column; gap: 2px; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.nav-sub a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; font-weight: 600; }
.nav-sub a small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub, .nav-group.open .nav-sub { display: flex; }
.nav-group:hover .nav-top svg, .nav-group.open .nav-top svg { transform: rotate(180deg); }
.nav-group.esc .nav-sub { display: none; }

.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .topbar-in { position: static; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 24px 16px; box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  /* on phones the groups are simply listed open */
  .nav-top { width: 100%; justify-content: space-between; padding: 12px 12px 4px; font: 700 12px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); cursor: default; background: none !important; }
  .nav-top svg { display: none; }
  .nav-sub { display: flex; position: static; min-width: 0; margin: 0 0 6px; padding: 0 0 0 8px; border: 0; border-left: 2px solid var(--olive-l); border-radius: 0; box-shadow: none; background: none; }
  .nav-sub::before { display: none; }
  .nav-sub a { padding: 9px 12px; font-weight: 500; }
  .nav-sub a small { display: none; }
}
/* ---------- buttons, cards ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 11px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn-glow, .btn-primary { background: var(--olive); color: #fff; }
.btn-glow:hover, .btn-primary:hover { background: var(--olive-d); }
.btn-ghost { background: transparent; color: var(--olive-d); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--olive); background: var(--olive-l); }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { display: inline-block; font: 700 12px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }

/* ---------- article layout (guides) ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 26px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--olive); text-decoration: underline; }
.a-hero { padding: 22px 0 6px; }
.a-hero .lead { max-width: 880px; }
.a-hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 12px 0 14px; }
.lead { font-size: 18.5px; color: var(--muted); line-height: 1.6; }
.a-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.a-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; margin-top: 28px; }
.a-layout > * { min-width: 0; }
.toc { position: sticky; top: 90px; padding: 18px; font-size: 14px; }
.toc h2 { font: 700 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--olive); text-decoration: underline; }
.toc .btn { width: 100%; margin-top: 16px; }

.prose { font-size: 17px; line-height: 1.75; max-width: 760px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 31px); margin-top: 2em; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; margin-top: 1.6em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--olive); text-underline-offset: 3px; font-weight: 500; }
.prose a:hover { color: var(--olive-d); }
.prose a.btn { color: #fff; }
.prose a.btn-ghost { color: var(--olive-d); }
.prose code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .9em; background: var(--olive-l); padding: 1px 6px; border-radius: 6px; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 700 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-d); background: var(--olive-l); }
.tbl tr:last-child td { border-bottom: 0; }

.callout { border: 1px solid var(--line); border-left: 4px solid var(--olive); background: var(--card); border-radius: 12px; padding: 14px 18px; font-size: 15.5px; }
.callout.warn { border-left-color: var(--warn); background: #fffaf0; }
.callout.key { border-left-color: var(--gold); }
.callout > b:first-child { display: block; margin-bottom: 4px; font-family: "Source Serif 4", Georgia, serif; font-size: 17px; }

.tldr { padding: 20px 24px; background: var(--olive-l); border-color: #d6dfbf; box-shadow: none; }
.tldr h2 { font-size: 19px !important; margin: 0 0 8px !important; }
.tldr ul { margin: 0; }

.timeline { list-style: none; padding: 0 !important; }
.timeline li { position: relative; padding: 0 0 18px 30px; margin: 0 !important; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: -6px; width: 2px; background: var(--line2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 4px var(--olive-l); }
.timeline b { display: block; font-family: "Source Serif 4", Georgia, serif; }

.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { margin: 0 !important; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.checklist li::before { content: "✓"; width: 22px; height: 22px; border-radius: 6px; background: var(--olive); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }

.cta-box { padding: 28px; text-align: center; margin-top: 2.4em !important; background: var(--olive-d); border-color: var(--olive-d); color: #eef1e3; }
.cta-box h2 { margin: 0 0 8px !important; font-size: 25px !important; color: #fff; }
.cta-box p { color: #d9dfc6; margin: 0 auto 16px; max-width: 540px; }
.cta-box .btn-glow, .prose .cta-box a.btn { background: #fff; color: var(--olive-d); }
.cta-box .btn-glow:hover { background: var(--olive-l); }

.disclaimer { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

.faq { display: grid; gap: 10px; }
.faq details { padding: 0; box-shadow: none; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--olive); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- cards & grids ---------- */
.related { margin-top: 56px; }
.related h2 { font-size: 26px; margin-bottom: 16px; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.g-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.g-card:hover { transform: translateY(-2px); border-color: var(--olive); }
.g-card .tag { font: 700 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--olive); }
.g-card h3 { font-size: 20px; }
.g-card p { margin: 0; color: var(--muted); font-size: 15px; }
.g-card .more { margin-top: auto; padding-top: 6px; color: var(--olive); font-weight: 600; font-size: 14px; }

.hub-hero { text-align: center; padding: 40px 0 10px; }
.hub-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 12px auto; max-width: 820px; }
.hub-hero .lead { max-width: 720px; margin: 0 auto; }
.block { padding: 56px 0; }
.block.narrow { max-width: 900px; margin: 0 auto; }
.block-head { max-width: none; margin: 0 auto 26px; text-align: center; }
.block-head p { max-width: 760px; margin-left: auto; margin-right: auto; }
/* sized so the longest homepage heading stays on one line from tablet width up */
.block-head h2 { font-size: clamp(26px, calc(4.2vw - 4px), 48px); margin: 10px 0 10px; }
@media (min-width: 720px) { .block-head h2 { white-space: nowrap; } }
.block-head p { color: var(--muted); font-size: 17px; }
.page-narrow { max-width: 840px; margin: 0 auto; padding-bottom: 20px; }

/* deadline cards (js/deadlines.js) */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.prose .dl-grid { margin-top: 1.2em; }
.dl-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.dl-card .dl-date { font: 700 22px "Source Serif 4", Georgia, serif; }
.dl-card .dl-what { font-weight: 600; font-size: 15px; line-height: 1.4; }
.dl-card .dl-who { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 0; }
.dl-card .dl-left { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--olive); }
.dl-card.is-next { border: 2px solid var(--olive); }
.dl-card.is-next::before { content: "Next deadline"; position: absolute; top: -11px; right: 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--olive); color: #fff; }
.dl-card.is-past { opacity: .6; }
.dl-card.is-past .dl-left { color: var(--muted); }
.dl-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.block .dl-note { text-align: center; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 1.4em; }
.contact-grid .card { padding: 20px; }
.contact-grid h3 { margin: 0 0 6px; font-size: 19px; }
.contact-grid p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }

/* ---------- portal home ---------- */
.p-hero { padding-top: 14px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.p-hero > div:first-child { padding-top: 34px; }
.p-hero > div { max-width: 900px; }
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; max-width: 520px; margin-left: auto; }

/* The Brief: running news line (pure CSS marquee; pauses on hover/focus, static list for reduced motion) */
.ticker { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: stretch; background: var(--olive-d); color: #e9eddc; }
.ticker-label { background: var(--olive); color: #e6ebd6; padding: 10px 20px; display: flex; flex-direction: column; justify-content: center; }
.ticker-label span { font: 700 10.5px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ticker-label h2 { font-size: 19px; color: #fff; margin-top: 1px; }
.ticker-viewport { display: flex; overflow: hidden; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { list-style: none; margin: 0; padding: 0; display: flex; flex: none; animation: ticker 55s linear infinite; }
.ticker-viewport:hover .ticker-track, .ticker-viewport:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track li { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 9px 28px; border-right: 1px solid #56693a; white-space: nowrap; }
.ticker-track time { font: 700 10px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #c9d4a5; }
.ticker-track a { color: #fff; text-decoration: none; font: 600 15px "Source Serif 4", Georgia, serif; }
.ticker-track a:hover { text-decoration: underline; color: #e6ebd6; }
.ticker-all { display: flex; align-items: center; padding: 0 20px; color: #c9d4a5; font: 700 12px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-left: 1px solid #56693a; }
.ticker-all:hover { color: #fff; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-track[aria-hidden="true"] { display: none; }
  .ticker-viewport { overflow-x: auto; }
}
@media (max-width: 760px) {
  .ticker { grid-template-columns: minmax(0, 1fr); }
  .ticker-label { flex-direction: row; align-items: baseline; gap: 10px; padding: 8px 16px; }
  .ticker-label h2 { font-size: 17px; }
  .ticker-all { padding: 8px 16px; border-left: 0; border-top: 1px solid #56693a; justify-content: center; }
}
.p-hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin: 10px 0 16px; }
.p-hero h1 em { font-style: italic; color: var(--olive); }
.p-hero .lead { max-width: 600px; }
.p-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.brief { padding: 22px; }
.brief h2 { font: 700 12px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 12px; }
.brief ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.brief li { padding: 12px 0; border-top: 1px solid var(--line); }
.brief li:first-child { border-top: 0; padding-top: 0; }
.brief a { color: var(--ink); text-decoration: none; font-weight: 600; font-family: "Source Serif 4", Georgia, serif; font-size: 17px; line-height: 1.35; display: block; }
.brief a:hover { color: var(--olive); }
.brief time, .brief small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; font-family: Inter, sans-serif; }

.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.dark { background: var(--olive-d); border: 0; color: #eef1e3; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark .eyebrow { color: #c9d4a5; }
.band.dark .block-head p { color: #d9dfc6; }

.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.path-card { padding: 24px 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: transform .15s, border-color .15s; }
.path-card:hover { transform: translateY(-3px); border-color: var(--olive); }
.path-card .num { font: 700 italic 30px "Source Serif 4", Georgia, serif; color: var(--moss); }
.path-card h3 { font-size: 21px; }
.path-card p { color: var(--muted); font-size: 15px; }
.path-card .more { margin-top: auto; color: var(--olive); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.quote { font: italic 600 clamp(22px, 2.8vw, 32px)/1.4 "Source Serif 4", Georgia, serif; max-width: 880px; margin: 0 auto; text-align: center; color: #fff; }

.tool-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 34px; }
.tool-card h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 12px; }
.tool-card ul { margin: 16px 0 0; padding-left: 1.2em; color: var(--muted); }
.tool-card li + li { margin-top: 6px; }
.tool-preview { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 20px; font-size: 14px; }
.tool-preview .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line2); }
.tool-preview .row:last-child { border-bottom: 0; font-weight: 700; color: var(--olive-d); }
.tool-preview .hd { font: 700 18px "Source Serif 4", Georgia, serif; margin-bottom: 8px; }

.src-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.src-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.src-item:hover { border-color: var(--olive); }
.src-item .ic { flex: none; width: 38px; height: 38px; border-radius: 9px; background: var(--olive-l); color: var(--olive-d); display: grid; place-items: center; font: 700 11px Inter, sans-serif; }
.src-item b { display: block; font-size: 15px; line-height: 1.35; }
.src-item small { color: var(--muted); font-size: 13px; }

/* ---------- ASP directory + scorecard (js/asp.js) ---------- */
.asp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 1.2em; }
.asp-tools input { flex: 1 1 260px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card); font: inherit; color: var(--ink); }
.asp-tools .count { font-size: 14px; color: var(--muted); }
.asp-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.asp-list li { margin: 0 !important; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; font-size: 15px; line-height: 1.4; }
.asp-list li b { display: block; }
.asp-list li a { font-size: 13px; word-break: break-all; }
.asp-list li[hidden] { display: none; }
.score-wrap { overflow-x: auto; }
.score { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.score th, .score td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: middle; }
.score th { font: 700 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--olive-d); background: var(--olive-l); }
.score input[type="text"] { width: 100%; min-width: 110px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2); font: inherit; }
.score select { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line2); font: inherit; background: #fff; }
.score tfoot td { font-weight: 700; color: var(--olive-d); }
.score .w { color: var(--muted); font-size: 12.5px; }

/* ---------- services page ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin-top: 28px; align-items: stretch; }
.svc-card { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.svc-card h2 { font-size: 24px; }
.svc-card .btn { margin-top: auto; align-self: flex-start; }
.svc-card.featured { border: 2px solid var(--olive); }
.svc-tag { position: absolute; top: -12px; left: 22px; background: var(--olive); color: #fff; font: 700 11px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.svc-list { margin: 4px 0 14px; padding-left: 1.2em; color: var(--ink); font-size: 15px; display: grid; gap: 6px; }
.enq { padding: 22px; display: grid; gap: 14px; margin-top: 1em; }
.enq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.enq label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.enq input, .enq select, .enq textarea { font: inherit; font-weight: 400; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--ink); width: 100%; }
.enq textarea { resize: vertical; }
.enq-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.enq-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
@media (max-width: 640px) { .enq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.footer { margin-top: 72px; background: var(--olive-d); color: #d9dfc6; padding: 48px 0 30px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer .brand { color: #fff; }
.footer .brand-name b { color: #c9d4a5; }
.footer .brand-mark { background: #fff; color: var(--olive-d); box-shadow: none; }
.footer .muted { color: #c3cbaa; }
.foot-links, .foot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; margin: 4px 0; }
.foot-links a, .foot-legal a { color: #eef1e3; text-decoration: none; }
.foot-links a:hover, .foot-legal a:hover { text-decoration: underline; }
.foot-legal { font-size: 13px; }
.foot-contact { margin: 4px 0; font-size: 14px; }
.foot-contact a { color: #fff; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .a-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; order: -1; }
  .p-hero { padding-top: 20px; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .p-hero > div:first-child { padding-top: 0; }
  .hero-art img { max-width: 420px; margin: 0 auto; }
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 10px 16px 16px; }
  .prose { font-size: 16px; }
  .path-grid { grid-template-columns: minmax(0, 1fr); }
  .block { padding: 40px 0; }
  .cta-box { padding: 22px 16px; }
  .utility .wrap { justify-content: center; text-align: center; padding-top: 6px; padding-bottom: 6px; }
}
@media print {
  .topbar, .utility, .toc, .cta-box, .related, .footer { display: none !important; }
  body { background: #fff; }
}
