/* ============================================================================
 * TAX MONKEY Counsel — boutique chambers token system
 * ----------------------------------------------------------------------------
 * The LIGHT, ink-on-cream identity for the law & accounting office work tool —
 * reworked 2026-06-22 from "stern corporate" toward a Park Avenue / Mayfair /
 * Rive Gauche boutique chambers feel: warm ivory paper, a literary serif, a
 * brass hairline as the signature detail, generous breathing room. Still the
 * deliberate opposite of the premium dark "dev surface": paper not glass, serif
 * letterhead not a monospace wordmark, fine rules not teal glow. It should read
 * like stationery a senior partner would sign, and it must print clean.
 *
 * WHITE-LABEL LAW: exactly TWO tokens are tenant-swappable
 *     --firm-tenant-accent-color   (and its on-ink companion)
 *     --firm-tenant-logo-url
 * EVERYTHING ELSE IS LOCKED. The lock is the credibility guarantee: status
 * colours, typography, spacing and the citation/audit layout never change per
 * tenant, so "verified" looks and means the same in every firm's instance.
 * The build-time generator (firm/tools/build-firm-tenant-pages.mjs) is the only
 * thing allowed to override the two tenant tokens, and only for enterprise tier.
 * ========================================================================== */

:root{
  /* ---- surfaces (LOCKED) — warm ivory paper, not cold white ------------- */
  --firm-surface-paper-canvas:#F7F2EA;          /* warm ivory page — exact opener --wb-paper */
  --firm-surface-card-white:#FFFDFA;            /* warm card, not pure white — exact opener --wb-card */
  --firm-surface-subtle-fill:#EFE6D8;           /* warm parchment fill — exact opener --wb-band */
  --firm-surface-rail-deep-ink:#1A2230;         /* navy Counsel band — the house signature, matches the opener (was espresso #241F1A) */
  --firm-surface-rail-hover-ink:#242E3E;        /* navy, one step lighter for hover */
  --firm-surface-rail-active-ink:#2E3A4E;       /* navy, lighter still for the active item */

  /* ---- ink / text (LOCKED) — warm near-black, never cool ---------------- */
  --firm-text-primary-ink:#2A2420;              /* warm ink — exact opener --wb-ink */
  --firm-text-secondary-ink:#6E6356;            /* warm taupe-grey — exact opener --wb-ink2 */
  --firm-text-faint-ink:#9C8F7E;                /* exact opener --wb-ink3 */
  --firm-text-on-rail-primary:#ECEFF4;          /* cool near-white on navy, matches the opener band */
  --firm-text-on-rail-muted:#9CA8B8;            /* muted blue-grey on navy */

  /* ---- rules / borders (LOCKED) — warm hairlines ----------------------- */
  --firm-border-hairline:#E5DCCD;               /* exact opener --wb-hair */
  --firm-border-card-edge:#E8E0D2;              /* exact opener --wb-edge */
  --firm-border-strong-edge:#D8CDBB;

  /* ---- the signature DETAIL: a fine brass rule (LOCKED) ----------------
     The one luxe flourish — a hairline of antique brass under section titles
     and on dividers. It is a fixed house detail, never tenant-swappable, so the
     boutique character is the same in every instance. Distinct from the
     interactive accent (which a tenant may recolour). */
  --firm-detail-brass:#A07E3A;
  --firm-detail-brass-soft:#C7AE7B;
  --firm-accent-warm:#C26A3C;                   /* the opener's warm accent — hover + the line under the navy band (exact opener --wb-accent2) */
  --firm-accent-soft:#F4E7DC;                   /* the opener's soft accent wash (exact opener --wb-accent-soft) */

  /* ---- semantic status (LOCKED — must mean the same in every firm) ------ */
  --firm-status-verified-ink:#2E6A4F;
  --firm-status-verified-fill:#EAF3EE;
  --firm-status-caution-amber-ink:#8A5E10;
  --firm-status-caution-amber-fill:#FBF3E2;
  --firm-status-flag-red-ink:#9B2C2C;
  --firm-status-flag-red-fill:#FBEBEB;
  --firm-status-unverified-violet-ink:#5E469A;
  --firm-status-unverified-violet-fill:#F1ECF8;

  /* ---- typography (LOCKED) — a warm literary serif over a clean sans ---- */
  --firm-font-serif-heading:"Iowan Old Style",Georgia,"Times New Roman",serif;   /* exact opener --wb-serif */
  --firm-font-sans-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --firm-font-tabular-numeric:"SF Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  /* ---- geometry (LOCKED) — crisp letterpress edges, warm soft shadow ---- */
  --firm-radius-card:5px;
  --firm-radius-control:4px;
  --firm-radius-pill:999px;
  --firm-shadow-card:0 1px 2px rgba(40,32,18,.05);
  --firm-shadow-raised:0 10px 34px rgba(40,32,18,.13);
  --firm-workspace-rail-width:252px;
  --firm-space-unit:8px;

  /* ---- THE TWO TENANT-SWAPPABLE TOKENS (white-label) -------------------
     Default accent is the warm boutique TERRACOTTA, so EVERY Counsel page shares
     one identity (the storefront already used it; the work pages used to fall back
     to a cold slate-teal, which is what made the firm feel haphazard). Unified here. */
  --firm-tenant-accent-color:#A6552E;           /* default: warm boutique terracotta */
  --firm-tenant-accent-color-ink-on:#FFFFFF;    /* readable ink ON the accent */
  --firm-tenant-logo-url:none;                  /* default: our Counsel wordmark renders instead of an image */
}

/* ---- base reset + page ------------------------------------------------- */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--firm-surface-paper-canvas);
  color:var(--firm-text-primary-ink);
  font-family:var(--firm-font-sans-body);
  font-size:15px;line-height:1.62;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
h1,h2,h3,h4{font-family:var(--firm-font-serif-heading);font-weight:600;color:var(--firm-text-primary-ink);margin:0 0 .45em;
  font-feature-settings:"liga" 1,"onum" 1,"kern" 1}
h1{font-size:34px;line-height:1.14;letter-spacing:-.015em}
h2{font-size:22px;line-height:1.24;letter-spacing:-.008em}
h3{font-size:17px;line-height:1.32}
p{margin:0 0 1em}
a{color:var(--firm-tenant-accent-color);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:2px}
.firm-numeric{font-family:var(--firm-font-tabular-numeric);font-variant-numeric:tabular-nums;letter-spacing:-.01em}

/* ---- the eyebrow: a small letterspaced label, a quiet boutique signature - */
.firm-eyebrow{display:block;font-family:var(--firm-font-sans-body);font-size:11px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:var(--firm-text-faint-ink);margin:0 0 10px}

/* ---- the heading rule: a fine BRASS hairline beneath section titles, the
        one signature flourish of the chambers identity --------------------- */
.firm-section-title{position:relative;padding-bottom:13px;margin-bottom:20px}
.firm-section-title::after{content:"";position:absolute;left:0;bottom:0;width:46px;height:2px;
  background:linear-gradient(90deg,var(--firm-detail-brass),var(--firm-detail-brass-soft));border-radius:2px}

/* ---- a full-width hairline divider with the brass tint ----------------- */
.firm-rule{height:1px;border:0;background:var(--firm-border-hairline);margin:24px 0}
.firm-rule-brass{height:1px;border:0;background:linear-gradient(90deg,var(--firm-detail-brass-soft),transparent);margin:22px 0}

/* ---- cards ------------------------------------------------------------ */
.firm-card{
  background:var(--firm-surface-card-white);
  border:1px solid var(--firm-border-card-edge);
  border-radius:var(--firm-radius-card);
  box-shadow:var(--firm-shadow-card);
}
.firm-card-padded{padding:26px 30px}

/* ---- buttons: accent only on the PRIMARY action, refined weight -------- */
.firm-button-primary{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--firm-tenant-accent-color);color:var(--firm-tenant-accent-color-ink-on);
  border:1px solid var(--firm-tenant-accent-color);
  font-family:var(--firm-font-sans-body);font-size:14px;font-weight:600;letter-spacing:.005em;
  padding:10px 20px;border-radius:var(--firm-radius-control);cursor:pointer;
  box-shadow:0 1px 1px rgba(40,32,18,.10);
  transition:filter .15s ease,transform .15s ease,box-shadow .15s ease}
.firm-button-primary:hover{filter:brightness(1.07);transform:translateY(-1px);box-shadow:var(--firm-shadow-raised);text-decoration:none}
.firm-button-primary:active{transform:translateY(0);box-shadow:0 1px 1px rgba(40,32,18,.10)}
.firm-button-secondary{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--firm-surface-card-white);color:var(--firm-text-primary-ink);
  border:1px solid var(--firm-border-strong-edge);
  font-size:14px;font-weight:600;padding:10px 18px;border-radius:var(--firm-radius-control);cursor:pointer;
  transition:background .15s ease,border-color .15s ease}
.firm-button-secondary:hover{background:var(--firm-surface-subtle-fill);border-color:var(--firm-detail-brass-soft);text-decoration:none}

/* ---- inputs / selects ------------------------------------------------- */
.firm-input,.firm-select{
  font-family:var(--firm-font-sans-body);font-size:14px;color:var(--firm-text-primary-ink);
  background:var(--firm-surface-card-white);
  border:1px solid var(--firm-border-strong-edge);border-radius:var(--firm-radius-control);
  padding:9px 12px;width:100%}
.firm-input:focus,.firm-select:focus{outline:none;border-color:var(--firm-tenant-accent-color);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--firm-tenant-accent-color) 16%,transparent)}
.firm-field-label{display:block;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:var(--firm-text-faint-ink);margin-bottom:7px}

/* ---- status pills: the audit vocabulary (LOCKED colours) -------------- */
.firm-status-pill{display:inline-flex;align-items:center;gap:6px;
  font-size:11.5px;font-weight:600;letter-spacing:.02em;
  padding:3px 10px;border-radius:var(--firm-radius-pill);border:1px solid transparent}
.firm-status-pill .firm-status-dot{width:7px;height:7px;border-radius:50%}
.firm-status-verified{color:var(--firm-status-verified-ink);background:var(--firm-status-verified-fill);border-color:#CFE6D9}
.firm-status-verified .firm-status-dot{background:var(--firm-status-verified-ink)}
.firm-status-caution{color:var(--firm-status-caution-amber-ink);background:var(--firm-status-caution-amber-fill);border-color:#EEDFBC}
.firm-status-caution .firm-status-dot{background:var(--firm-status-caution-amber-ink)}
.firm-status-flag{color:var(--firm-status-flag-red-ink);background:var(--firm-status-flag-red-fill);border-color:#EFCFCF}
.firm-status-flag .firm-status-dot{background:var(--firm-status-flag-red-ink)}
.firm-status-unverified{color:var(--firm-status-unverified-violet-ink);background:var(--firm-status-unverified-violet-fill);border-color:#DED2F0}
.firm-status-unverified .firm-status-dot{background:var(--firm-status-unverified-violet-ink)}

/* ---- the inline source citation: the trust signal that reads like an audit,
        not a marketing badge. e.g. "26.375% · §43 EStG · verified 2026-06-01" -- */
.firm-source-citation{font-size:11.5px;color:var(--firm-text-faint-ink);line-height:1.5}
.firm-source-citation .firm-source-verified-tick{color:var(--firm-status-verified-ink);font-weight:700}
.firm-source-citation .firm-source-sep{color:var(--firm-border-strong-edge);margin:0 5px}

/* ---- matter deliverable status chips ---------------------------------- */
.firm-deliverable-status{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.firm-deliverable-status-draft{color:var(--firm-text-faint-ink)}
.firm-deliverable-status-ready{color:var(--firm-status-verified-ink)}
.firm-deliverable-status-shared{color:var(--firm-tenant-accent-color)}

/* ---- the locked product mark used when a tenant has NO logo (single-seat
        offices and our own default): our name, never hidden ---------------- */
.firm-product-wordmark{font-family:var(--firm-font-serif-heading);font-weight:600;letter-spacing:.01em}
.firm-product-wordmark .firm-product-wordmark-counsel{font-style:italic}

/* ---- THE MEMORANDUM: client-ready work product, set like a printed letter
        with room to breathe. The scope block is rendered as a lead line plus a
        spaced list of exclusions, never a single grey wall of text. ---------- */
.firm-memo-prose{max-width:680px;font-size:15.5px;line-height:1.72;color:var(--firm-text-primary-ink)}
.firm-memo-prose h2{margin-top:30px}
.firm-memo-prose p{margin:0 0 1.15em}

.firm-scope-block{background:var(--firm-surface-subtle-fill);border:1px solid var(--firm-border-card-edge);
  border-left:3px solid var(--firm-detail-brass);border-radius:var(--firm-radius-control);
  padding:22px 26px;margin:22px 0}
.firm-scope-block .firm-scope-eyebrow{font-family:var(--firm-font-sans-body);font-size:11px;font-weight:700;
  letter-spacing:.15em;text-transform:uppercase;color:var(--firm-detail-brass);margin:0 0 12px;display:block}
.firm-scope-block .firm-scope-lead{font-size:14.5px;line-height:1.6;color:var(--firm-text-primary-ink);margin:0 0 14px}
.firm-scope-list{list-style:none;margin:0;padding:0}
.firm-scope-list li{position:relative;padding:0 0 0 20px;margin:0 0 11px;
  font-size:13.5px;line-height:1.62;color:var(--firm-text-secondary-ink)}
.firm-scope-list li:last-child{margin-bottom:0}
.firm-scope-list li::before{content:"";position:absolute;left:0;top:9px;width:6px;height:6px;
  background:var(--firm-detail-brass-soft);border-radius:50%}
.firm-scope-list li b,.firm-scope-block b{color:var(--firm-text-primary-ink);font-weight:600}

/* ---- THE PAGE BAND (LOCKED, additive) --------------------------------------
   The deep navy corporate band is the shared Counsel signature. It debuted on the
   opener cover (op-rail) and now lives here so EVERY page can carry it the same
   way — full and tall on a cover, or a slim header strip on a work page. Cream +
   terracotta lettering on navy. NOT tenant-swappable: the band is house identity,
   the same in every firm's instance. Values mirror opener.html exactly. */
:root{
  --firm-band-navy:#1A2230;
  --firm-band-on-navy:#ECEFF4;
  --firm-band-cream:#FFFFFF;
  --firm-band-eyebrow-tan:#CBB89C;       /* warm tan caps on navy */
  --firm-band-lede-blue:#B6C0CE;         /* muted blue-grey body on navy */
  --firm-band-hairline:rgba(255,255,255,.10);
}
.firm-page-band{background:var(--firm-band-navy);color:var(--firm-band-on-navy);padding:20px 30px}
.firm-page-band-eyebrow{font-family:var(--firm-font-tabular-numeric);font-size:11px;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;color:var(--firm-band-eyebrow-tan);margin:0 0 8px}
.firm-page-band-wordmark{font-family:var(--firm-font-serif-heading);font-size:22px;font-weight:600;color:var(--firm-band-cream);line-height:1.1}
.firm-page-band-wordmark .firm-page-band-counsel{font-style:italic}
.firm-page-band-tagline{font-size:13px;color:var(--firm-band-lede-blue);margin-top:5px}
.firm-page-band a{color:var(--firm-band-cream)}

/* ---- THE WARM CONTENT HERO (additive) --------------------------------------
   The sand banner at the top of a rail page's content (to the right of the navy
   rail), exactly as on index/settings. Terracotta eyebrow, serif title, optional
   lede, finished with the signature brass hairline. One shared class so every
   work page wears the same flair instead of inventing its own. */
.firm-hero{background:#EFE6D8;border-bottom:1px solid var(--firm-border-hairline)}
.firm-hero-inner{max-width:1060px;margin:0 auto;padding:52px 32px 44px}
.firm-hero-eyebrow{font-family:var(--firm-font-tabular-numeric);font-size:11px;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;color:var(--firm-tenant-accent-color);margin:0 0 16px}
.firm-hero-title{font-family:var(--firm-font-serif-heading);font-size:clamp(38px,4.6vw,54px);line-height:1.03;
  letter-spacing:-.02em;font-weight:600;color:var(--firm-text-primary-ink);margin:0}
.firm-hero-title .firm-hero-em{font-style:italic;color:var(--firm-tenant-accent-color)}
.firm-hero-brass{height:2px;width:54px;background:var(--firm-detail-brass);margin:18px 0 0;border:0}
.firm-hero-lede{font-size:16px;line-height:1.62;color:var(--firm-text-secondary-ink);max-width:660px;margin:18px 0 0}
@media(max-width:760px){.firm-hero-inner{padding:36px 22px 30px}}

@media print{
  .firm-page-band{background:#1A2230 !important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .firm-workspace-left-rail,.firm-no-print{display:none !important}
  body{background:#fff}
  .firm-card{box-shadow:none;border-color:#ddd}
  .firm-scope-block{background:#faf9f5}
}
