/* TaxQuill — core styles
   masthead, hero, article cards, footer, cookie notice.
   Component-heavy pieces (tables, calculator, forms) live in pages.css.
   Newsreader for headlines, Public Sans for everything else.
   — started Jan 2026, kg */

/* ---- design tokens ---- */
/* repainted Jan 2026 — moved off the teal/amber scheme to a financial-press
   palette: salmon-pink newsprint paper + claret ink accent. Kept the old
   --pine / --marigold variable names so the redesign stayed a token swap
   instead of a find-replace across two files. */
:root {
  --paper: #fdeede;        /* salmon newsprint (FT-ish) */
  --paper-2: #f8e2cd;      /* sunk panels */
  --paper-3: #f1d6bd;
  --ink: #20180f;          /* warm near-black, like printer's ink */
  --ink-soft: #5b5046;
  --ink-faint: #8d7e6e;
  --line: #ecd6bf;         /* warm hairline rules */
  --line-strong: #d8bc9d;

  --pine: #9c2b27;         /* claret — brand / links (name is legacy) */
  --pine-deep: #771f1c;
  --pine-wash: #f5dcd2;
  --marigold: #b8472f;     /* sienna-claret — deadlines, urgency */
  --marigold-wash: #f6ddcf;
  --oxblood: #a8322d;      /* "you owe" / warnings */
  --pos: #2f6b4c;          /* refund / good */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --radius: 4px;           /* sharp, document-like */
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(24,22,16,.05), 0 8px 24px -16px rgba(24,22,16,.25);
}

/* ---- reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
img { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 1.3rem + 4vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1rem; }
b, strong { font-weight: 700; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-weight: 700; font-size: .95rem; line-height: 1; padding: 13px 20px; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .08s ease; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-deep); color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; }
.btn svg { width: 18px; height: 18px; }

/* ---- masthead (newspaper style, single tier + dateline + countdown) ---- */
.masthead { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 60; }
.mast-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0 12px; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 1.72rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; align-self: center; }
.brand i { font-style: normal; color: var(--pine); }
.dateline { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5px 0; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.dateline .vol { color: var(--ink-soft); }

/* the live tax-day countdown pill sits top-right of the masthead */
.mast-count { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 40px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.mast-count b { font-variant-numeric: tabular-nums; color: #fff; font-size: 1rem; }
.mast-count .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 0 rgba(224,147,10,.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,147,10,.55);} 70%{ box-shadow: 0 0 0 7px rgba(224,147,10,0);} 100%{ box-shadow: 0 0 0 0 rgba(224,147,10,0);} }

/* nav row */
.mast-nav { border-top: 1px solid var(--line); display: flex; align-items: stretch; gap: 2px; }
.mast-nav nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.mast-nav a.navlink { font-size: .86rem; font-weight: 600; letter-spacing: .01em; color: var(--ink-soft); padding: 12px 13px; border-bottom: 2px solid transparent; }
.mast-nav a.navlink:hover { color: var(--ink); text-decoration: none; background: var(--paper-2); }
.mast-nav a.navlink.active { color: var(--pine-deep); border-bottom-color: var(--pine); }
.mast-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: none; background: transparent; color: var(--ink-soft); cursor: pointer; border-radius: var(--radius); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }

/* search drops under masthead */
.mast-search { display: none; border-top: 1px solid var(--line); padding: 14px 0; }
.mast-search.open { display: block; }
.mast-search form { display: flex; gap: 8px; position: relative; }
.mast-search input { flex: 1; font: inherit; font-size: 1.05rem; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.mast-search input:focus { outline: none; border-color: var(--pine); }
.mast-search .sico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); width: 20px; height: 20px; }
.search-results { margin-top: 10px; display: none; }
.search-results.show { display: block; }
.search-results .sr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.search-results .sr:hover { background: var(--paper-2); text-decoration: none; }
.search-results .sr span { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.search-results .sr small { color: var(--ink-faint); font-size: .8rem; }
.search-results .none { color: var(--ink-faint); padding: 8px 12px; }

/* mobile drawer */
.mobile-menu { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: 8px 0 14px; }
.mobile-menu a { padding: 11px 4px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.mobile-menu a:hover { color: var(--ink); text-decoration: none; }

/* ---- page hero (interior pages) ---- */
.page-hero { padding: clamp(34px, 5vw, 64px) 0 26px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pine); margin-bottom: 14px; }
.page-hero p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 64ch; margin-top: .3em; }
.crumbs { font-size: .8rem; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--pine); }

/* ---- home hero: editorial split with countdown ---- */
.lede-hero { padding: clamp(30px, 4vw, 56px) 0 clamp(34px, 4vw, 60px); border-bottom: 1px solid var(--line); }
.lede-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.lede-grid .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--pine); }
.lede-grid h1 { margin: 16px 0 .4em; }
.lede-grid h1 em { font-style: italic; color: var(--pine-deep); }
.lede-grid p { font-size: 1.18rem; color: var(--ink-soft); max-width: 52ch; }
.lede-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* big countdown block */
.countdown-card { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 26px 24px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.countdown-card::after { content: "1040"; position: absolute; right: -8px; bottom: -26px; font-family: var(--serif); font-size: 6rem; font-weight: 600; color: rgba(255,255,255,.05); letter-spacing: -.04em; pointer-events: none; }
.countdown-card .cc-label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--marigold); font-weight: 700; }
.countdown-card h2 { color: #fff; font-size: 1.5rem; margin: 6px 0 16px; }
.cc-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cc-clock .seg { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 12px 4px; text-align: center; }
.cc-clock .seg b { display: block; font-size: 1.85rem; font-variant-numeric: tabular-nums; color: #fff; line-height: 1; }
.cc-clock .seg span { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.countdown-card .cc-foot { margin-top: 15px; font-size: .85rem; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 8px; }
.countdown-card .cc-foot a { color: var(--marigold); }

/* ---- section scaffolding ---- */
.sec { padding: clamp(40px, 5vw, 68px) 0; }
.sec-tight { padding: clamp(28px, 4vw, 46px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sec-head .kicker { font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--pine); display: block; margin-bottom: 8px; }
.sec-head h2 { margin: 0; }
.see-all { font-weight: 700; font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.see-all svg { width: 16px; height: 16px; }
.alt-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- article cards (editorial, asymmetric) ---- */
.feature-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.story { background: var(--paper); padding: 24px 22px; display: flex; flex-direction: column; }
.story .cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--marigold); }
.story.lead .cat { color: var(--pine); }
.story h3 { margin: 10px 0 8px; font-size: 1.24rem; }
.story.lead h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.05rem); }
.story p { font-size: .96rem; color: var(--ink-soft); margin-bottom: 14px; }
.story .read { margin-top: auto; font-weight: 700; font-size: .85rem; color: var(--pine); }
.story:hover h3 a { color: var(--pine); }
.story .meta { font-size: .76rem; color: var(--ink-faint); margin-bottom: 4px; }

/* simpler 3-up list of guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.guide { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 20px; background: var(--paper); transition: border-color .18s ease, transform .18s ease; }
.guide:hover { border-color: var(--line-strong); transform: translateY(-2px); }
/* .gi is a <span> — needs an explicit display or the inline box ignores the
   40px and the SVG balloons to its default size (was rendering ~208x353) */
.guide .gi { display: grid; place-items: center; width: 40px; height: 40px; color: var(--pine); margin-bottom: 12px; }
.guide .gi svg { display: block; }
.guide .gi svg { width: 100%; height: 100%; }
.guide h3 { font-size: 1.18rem; }
.guide p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 12px; }
.guide a.more { font-weight: 700; font-size: .85rem; }

/* pull quote / tip callout reused across pages */
.callout { border-left: 3px solid var(--marigold); background: var(--marigold-wash); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.callout.pine { border-color: var(--pine); background: var(--pine-wash); }
.callout p:last-child { margin-bottom: 0; }
.callout .ct { font-weight: 700; font-family: var(--serif); font-size: 1.05rem; display: block; margin-bottom: 4px; }

/* tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 30px; border: 1px solid var(--line-strong); color: var(--ink-soft); background: var(--paper); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--pine); border-color: var(--pine); color: #fff; }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.badge.fed { background: var(--pine-wash); color: var(--pine-deep); }
.badge.state { background: var(--paper-3); color: var(--ink-soft); }
.badge.due { background: var(--marigold-wash); color: #8a5a06; }

/* prose blocks on guide pages */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: 1.22rem; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--pine); }
.layout-2 { display: grid; grid-template-columns: 1fr 300px; gap: 46px; align-items: start; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: var(--paper-2); position: sticky; top: 150px; }
.aside-card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.aside-card li:last-child { border-bottom: none; }
.aside-card a { color: var(--ink-soft); }
.aside-card a:hover { color: var(--pine); }

/* ---- newsletter / deadline reminder ---- */
.remind { background: var(--pine-deep); color: #eafaf6; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.remind h2 { color: #fff; }
.remind p { color: rgba(255,255,255,.8); margin-bottom: 0; }
.remind form { display: flex; gap: 10px; flex-wrap: wrap; }
.remind input { flex: 1; min-width: 180px; font: inherit; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid transparent; background: rgba(255,255,255,.95); color: var(--ink); }
.remind input:focus { outline: 2px solid var(--marigold); }
.remind .ok { font-weight: 600; color: #fff; }
.remind small { display: block; margin-top: 10px; color: rgba(255,255,255,.55); font-size: .78rem; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #c9ccd2; padding: 52px 0 26px; margin-top: 60px; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand .brand { color: #fff; font-size: 1.5rem; }
.foot-brand .brand i { color: var(--marigold); }
.foot-brand p { font-size: .9rem; color: #9499a2; margin-top: 12px; max-width: 34ch; }
.foot-col h4 { color: #fff; font-family: var(--ui); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { color: #b6bac1; font-size: .9rem; }
.foot-col a:hover { color: #fff; }
.foot-disclaimer { font-size: .78rem; color: #82868f; border-top: 1px solid #2c2f36; margin-top: 36px; padding-top: 20px; line-height: 1.65; }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid #2c2f36; margin-top: 18px; padding-top: 18px; font-size: .82rem; color: #82868f; }
.foot-bottom nav { display: flex; gap: 16px; }
.foot-bottom a { color: #b6bac1; }

/* ---- cookie: corner "filing notice" card, bottom-left ---- */
.cookie-note { position: fixed; left: 20px; bottom: 20px; max-width: 360px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 0 18px 50px -12px rgba(20,18,12,.4); padding: 18px 18px 16px; z-index: 120; transform: translateY(140%); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.cookie-note.show { transform: translateY(0); }
.cookie-note .cn-head { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin-bottom: 7px; }
.cookie-note .cn-head svg { width: 20px; height: 20px; color: var(--pine); }
.cookie-note p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 13px; }
.cookie-note .cn-btns { display: flex; gap: 8px; }
.cookie-note .cn-btns .btn { padding: 9px 14px; font-size: .85rem; flex: 1; justify-content: center; }

/* small utilities */
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.mt0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); border: none; margin: 34px 0; }
.note-sm { font-size: .8rem; color: var(--ink-faint); }
.is-hidden { display: none !important; }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .lede-grid { grid-template-columns: 1fr; gap: 30px; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row .story.lead { grid-column: 1 / -1; }
  .layout-2 { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .remind { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .mast-nav nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .mast-count { display: none; }       /* countdown moves into the hero on small screens */
  .mobile-menu.open { display: flex; }
  .feature-row { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot-cols { grid-template-columns: 1fr; }
  .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
