/* ==========================================================================
   Finance Co — "Peak" design (matches the FINANCE CO peak logo)
   Calm and precise: ivory and navy, thin lines, flat cards, Jost headings.
   Loaded after style.css; only overrides looks, not layout or behaviour.
   ========================================================================== */

:root {
    color-scheme: dark;
    --navy: #16213A; --navy-2: #22305a; --sea: #2c8f86; --sea-hi: #5fc9bd;
    --bg: #0c1424;
    --ink: #eef1f6;
    --text: #b8c0d0;
    --muted: #8590a6;
    --accent: #7fd3c8;
    --line: rgba(238, 241, 246, .12);
    --line-strong: rgba(238, 241, 246, .28);
    --surface: #111b30;
    --surface-2: #15213a;
    --header-bg: rgba(12, 20, 36, .92);
    --menu-bg: #111b30;
    --field-bg: #0f1829; --field-focus: #121d33;
    --btn-bg: #eef1f6; --btn-ink: #16213A;
    --map-filter: invert(.9) hue-rotate(180deg) grayscale(.6) brightness(.9);
    --shadow: 0 20px 50px -30px rgba(0, 0, 0, .8);
    --head-font: "Jost", "Noto Sans Armenian", system-ui, sans-serif;
    --radius: 6px;
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f6f2; --ink: #16213A; --text: #3c4558; --muted: #6c7487; --accent: #1f7a71;
    --line: rgba(22, 33, 58, .13); --line-strong: rgba(22, 33, 58, .35);
    --surface: #ffffff; --surface-2: #fbfaf7;
    --header-bg: rgba(247, 246, 242, .94); --menu-bg: #ffffff;
    --field-bg: #ffffff; --field-focus: #ffffff;
    --btn-bg: #16213A; --btn-ink: #ffffff;
    --map-filter: grayscale(.5) contrast(.95); --shadow: 0 20px 50px -30px rgba(22, 33, 58, .35);
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --bg: #f7f6f2; --ink: #16213A; --text: #3c4558; --muted: #6c7487; --accent: #1f7a71;
        --line: rgba(22, 33, 58, .13); --line-strong: rgba(22, 33, 58, .35);
        --surface: #ffffff; --surface-2: #fbfaf7;
        --header-bg: rgba(247, 246, 242, .94); --menu-bg: #ffffff;
        --field-bg: #ffffff; --field-focus: #ffffff;
        --btn-bg: #16213A; --btn-ink: #ffffff;
        --map-filter: grayscale(.5) contrast(.95); --shadow: 0 20px 50px -30px rgba(22, 33, 58, .35);
    }
}

/* ---------- Base ---------- */
body { background: var(--bg); }
h1, h2, h3, h4 { font-family: var(--head-font); font-weight: 500; letter-spacing: 0; }
html[lang="hy"] h1, html[lang="hy"] h2, html[lang="hy"] h3 { font-weight: 600; letter-spacing: 0; }
.bg-aurora, .bg-grid, .cta-aurora { display: none; }
.grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); animation: none; }
:focus-visible { outline-color: var(--accent); }

/* Surfaces: flat, thin border, no glow */
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.glass::before, .spot::after { display: none; }
.card:hover, .calc-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.orb { width: 48px; height: 48px; border-radius: 4px; background: transparent; color: var(--ink); box-shadow: none; border: 1px solid var(--line-strong); }
.orb .icon { width: 22px; height: 22px; stroke-width: 1.5; }

/* Buttons: solid navy / outline, slightly squared */
.btn { border-radius: 4px; font-weight: 600; letter-spacing: .02em; }
.btn-glow { color: var(--btn-ink); background: var(--btn-bg); box-shadow: none; }
.btn-glow:hover { color: var(--btn-ink); box-shadow: 0 10px 24px -14px rgba(22, 33, 58, .7); }
.btn-glass { color: var(--ink); background: transparent; border: 1px solid var(--line-strong); backdrop-filter: none; }
.btn-glass:hover { background: var(--surface); border-color: var(--ink); }

/* Chip: small capitals with a small peak instead of the pulsing dot */
.chip { border-radius: 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 6px 2px; color: var(--muted);
    font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.chip i { width: 0; height: 0; border-radius: 0; background: none; animation: none; box-shadow: none;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--accent); }

/* Section titles get a thin line with a small peak under them (the logo motif) */
.head h2::after, .page-hero h1::after {
    content: ""; display: block; width: 92px; height: 14px; margin: 18px auto 0;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 14'%3E%3Cpolyline points='0,13 38,13 46,2 54,13 92,13' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 14'%3E%3Cpolyline points='0,13 38,13 46,2 54,13 92,13' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.head-sm h2::after, .group-label h2::after { display: none; }
.head-sm h2 .t { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.head-sm h2::before, .head-sm h2 .t::before, .head-sm h2 .t::after { background: var(--line-strong) !important; }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.site-header.scrolled, .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-nav ul { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; gap: 2px; }
.site-nav ul a { border-radius: 0; color: var(--text); font-weight: 500; position: relative; }
.site-nav ul a:hover { background: transparent; color: var(--ink); }
.site-nav ul a[aria-current="page"] { background: transparent; color: var(--ink); font-weight: 600; }
.site-nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--accent); }
.lang-switch { border-radius: 2px; }
.lang-switch a { border-radius: 2px; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.icon-btn { border-radius: 4px; background: transparent; border-color: var(--line-strong); }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 1180px) {
    .site-nav { border-radius: var(--radius); }
    .site-nav ul a[aria-current="page"]::after { left: 16px; right: auto; width: 28px; bottom: 6px; }
}

/* ---------- Home ---------- */
.hero h1 { font-weight: 400; }
html[lang="hy"] .hero h1 { font-weight: 600; }
.kpis.stats .kpi { background: var(--surface); }
.kpi.featured { background: var(--surface-2); }
.kpis.stats .kpi b .grad { color: var(--ink); font-family: var(--head-font); font-weight: 400; }
.stat-clients .av { border-radius: 4px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); box-shadow: none; }
.stat-clients .av.more { background: var(--ink); color: var(--bg); box-shadow: none; }
.stat-years .tl::before { background: var(--line-strong); }
.stat-years .tl i { background: var(--ink); }
.stat-years .tl i:last-child { background: var(--accent); animation: none; border-radius: 0; width: 0; height: 0;
    border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--accent); background: none; }
.stat-ontime .months i { border-radius: 2px; background: transparent; border-color: var(--line-strong); color: var(--accent); }
.marquee { background: transparent; border-color: var(--line); }
.track span { font-weight: 500; }
.idx { -webkit-text-stroke: 0; color: var(--line-strong); font-family: var(--head-font); font-weight: 300; }
.timeline::before { background: var(--line-strong); opacity: 1; }
.dot { border-radius: 2px; color: var(--ink); background: var(--bg); border: 1px solid var(--ink); box-shadow: none; font-family: var(--head-font); font-weight: 500; }
.bento .b0, .cta-tile, .services-cta { background: var(--surface-2); }
.check-list .icon { color: var(--accent); }

/* ---------- Inner pages ---------- */
.page-hero .breadcrumbs { border-radius: 2px; background: transparent; border-color: var(--line); }
.page-hero h1 { font-weight: 400; }
html[lang="hy"] .page-hero h1 { font-weight: 600; }
.hero-line { display: none; }
.service-nav a { border-radius: 2px; background: transparent; border-color: var(--line-strong); }
.service-nav a:hover { background: var(--surface); }
.svc-box { border-radius: 4px; background: var(--surface-2); }
.story { background: var(--surface); border-radius: var(--radius); }
.story::before { display: none; }
.story .check-list li { border-radius: 2px; background: transparent; border-color: var(--line); }
.story-quote::before { background: var(--ink); }
.story-quote .q-mark { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); }
.story p:not(.lead) { border-left-color: var(--accent); }
.line { background: var(--accent); }

/* Calculators */
.calc-out { border-radius: 4px; background: var(--surface-2); border-color: var(--line); }
.calc-row.total { border-radius: 2px; background: transparent; border: 1px solid var(--line-strong); }
.calc-row.total dd { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); font-family: var(--head-font); }
.calc-out h3 { color: var(--muted); }
.seg { border-radius: 4px; background: transparent; border-color: var(--line-strong); }
.seg span { border-radius: 2px; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.calc-tile .more, .more { color: var(--ink); }
.calc-tile .more .icon, .more .icon { color: var(--accent); }
.calc-disclaimer { border-radius: 4px; border-style: solid; border-color: var(--line); }
.tax-cal li { border-radius: 2px; background: transparent; }
.tax-cal .when { color: var(--ink); }

/* Forms and dropdowns */
.field input, .field select, .field textarea, .cselect-btn { border-radius: 4px; border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 122, 113, .18); }
.cselect-btn, .cselect.is-open .cselect-btn { background: var(--field-bg) !important; }
.cselect-list { border-radius: 4px; background: var(--menu-bg) !important; border-color: var(--line-strong); }
.cselect-list li { border-radius: 2px; }
.cselect-list li.is-active { background: rgba(31, 122, 113, .1); }
.cselect-list li[aria-selected="true"]::before { border-color: var(--accent) !important; }
.money span { color: var(--muted); }
.info-list .orb { border-radius: 4px; }

/* ---------- Call-to-action band and footer: navy in both themes ---------- */
.cta { border-radius: var(--radius); background: var(--navy); border: 0; }
.cta h2 { font-weight: 400; color: #fff; }
html[lang="hy"] .cta h2 { font-weight: 600; }
.cta p { color: #c8d0de; }
.btn-light { border-radius: 4px; color: var(--navy); }
.btn-ghost-light { border-radius: 4px; }
.site-footer { margin-top: 0; border-top: 1px solid var(--line); }
.site-footer h3 { font-family: var(--head-font); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
html[lang="hy"] .site-footer h3 { letter-spacing: .04em; }
.footer-contact .icon { color: var(--ink); }

/* ---------- Motion: calmer ---------- */
.js .reveal { transform: translateY(14px); }

/* ==========================================================================
   Finance Co: refinements: bands, navy footer, solid icon tiles
   ========================================================================== */
:root { --band: #101a2e; --foot-bg: #080e1a; --cta-bg: #16213A; --orb-bg: #eef1f6; --orb-ink: #16213A; }
:root[data-theme="light"] { --band: #ffffff; --foot-bg: #16213A; --cta-bg: #1f3157; --orb-bg: #16213A; --orb-ink: #ffffff; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) { --band: #ffffff; --foot-bg: #16213A; --cta-bg: #1f3157; --orb-bg: #16213A; --orb-ink: #ffffff; }
}
:root { --peak-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpolyline points='0,200 330,200 470,130 560,170 720,20 880,170 970,130 1110,200 1440,200' fill='none' stroke='black' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3Cpolygon points='706,58 720,38 734,58' fill='black'/%3E%3C/svg%3E"); }

/* Header: a thin accent rule on top, like the logo's underline */
.site-header { box-shadow: inset 0 2px 0 var(--accent); }

/* Typography: tighter, more editorial */
.hero h1 { line-height: 1.08; letter-spacing: -.01em; }
.head h2, .page-hero h1 { line-height: 1.12; }
.lead, .head p { color: var(--muted); }

.page-hero::before { display: none; }

/* Stats: lighter, larger numbers; featured card gets an accent cap */
.kpis.stats .kpi b { font-size: clamp(2.8rem, 4.6vw, 3.6rem); }
.kpis.stats .kpi b .grad { font-weight: 300; }
.kpis.stats .kpi { box-shadow: var(--shadow); }
.kpis.stats .kpi.featured { box-shadow: inset 0 3px 0 var(--accent), var(--shadow); }

/* Alternating full-width bands give the long pages a rhythm */
/* breathing room on both sides of each band: the band itself, and the section just before it */
main > .sec ~ .sec:nth-of-type(odd), main > .sec:has(+ .sec:nth-of-type(odd)) { padding-bottom: 120px; }
@media (max-width: 720px) { main > .sec ~ .sec:nth-of-type(odd), main > .sec:has(+ .sec:nth-of-type(odd)) { padding-bottom: 76px; } }
main > .sec ~ .sec:nth-of-type(odd) { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
main > .sec ~ .sec:nth-of-type(odd) .glass { background: var(--bg); }
main > .sec ~ .sec:nth-of-type(odd) .bento .b0, main > .sec ~ .sec:nth-of-type(odd) .cta-tile { background: var(--surface-2); }

/* Cards: solid icon tiles, accent cap on hover */
.orb { background: var(--orb-bg); color: var(--orb-ink); border: 0; }
.card, .calc-tile { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover, .calc-tile:hover { box-shadow: inset 0 3px 0 var(--accent), var(--shadow); }
.idx { color: var(--accent); opacity: .55; }

/* Buttons */
.btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }

/* Process steps: small navy squares like the logo's triangle tiles */
.dot { background: var(--orb-bg); color: var(--orb-ink); border-color: var(--orb-bg); }

/* Calculators: the result reads as the answer */
.calc-row.total { background: var(--orb-bg); border-color: var(--orb-bg); }
.calc-row.total dt, .calc-row.total dd { color: var(--orb-ink) !important; }

/* Call to action overlaps into the footer */
.cta-band { padding-top: 110px; background: linear-gradient(var(--bg) 58%, var(--foot-bg) 58%); }
.cta { background: var(--cta-bg); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: #7fd3c8; opacity: .3; pointer-events: none;
    -webkit-mask: var(--peak-line) center / 100% 100% no-repeat; mask: var(--peak-line) center / 100% 100% no-repeat; }
.cta .btn-light { background: #fff; color: var(--navy); }
.cta .btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.cta .btn-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* Footer: navy in both themes, white logo */
.site-footer { --ink: #eef1f6; --text: #b8c0d0; --muted: #8a95ab; --line: rgba(238, 241, 246, .12); --accent: #7fd3c8;
    background: var(--foot-bg); color: var(--text); border-top: 0; padding-top: 70px; }
.site-footer .logo-on-dark { display: block !important; }
.site-footer .logo-on-light { display: none !important; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: #fff; }
.footer-contact .icon { color: var(--accent); }
.foot-bottom { border-top-color: var(--line); color: var(--muted); }

/* ---------- Frequently asked questions ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.12rem; line-height: 1.4; color: var(--ink); }
.faq-item summary:hover h3 { color: var(--accent); }
.faq-mark { position: relative; flex: none; width: 14px; height: 14px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--accent); transition: transform .2s ease; }
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0deg); }
.faq-item p { margin: -6px 0 0; padding: 0 40px 24px 4px; color: var(--text); max-width: 760px; }
.faq-sec .head .sub { max-width: 680px; margin-left: auto; margin-right: auto; }

/* Form: suggested email fix ("Did you mean …?") */
.error-fix { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.error-fix:hover { color: var(--ink); }

/* ---------- Contact links page (links.php, opened from the business card QR) ---------- */
.links-page { max-width: 480px; margin: 0 auto; padding: 22px 18px 48px; }
.links-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.links-top .brand img.brand-logo { height: 34px; width: auto; }
.links-top .logo-on-light { display: none; }
:root[data-theme="light"] .links-top .logo-on-dark { display: none; }
:root[data-theme="light"] .links-top .logo-on-light { display: block; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .links-top .logo-on-dark { display: none; }
    :root:not([data-theme="dark"]) .links-top .logo-on-light { display: block; }
}
.links-tools { display: flex; align-items: center; gap: 8px; }
.links-tools .lang-switch { display: flex; }
.links-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px 26px; text-align: center; box-shadow: var(--shadow, none);
    border-top: 3px solid var(--accent); }
.links-card .chip { font-size: .66rem; letter-spacing: .12em; }
.links-card h1 { font-size: 2rem; margin: 14px 0 8px; line-height: 1.15; }
.links-lead { color: var(--muted); margin: 0 auto 22px; max-width: 340px; font-size: .98rem; }
.links-call { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 18px; font-size: 1.02rem; }
.links-call b { font-weight: 700; white-space: nowrap; }
.links-label { margin: 24px 0 10px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="hy"] .links-label { letter-spacing: .05em; }
.links-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.links-app { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg); color: var(--ink); font-weight: 600; font-size: .9rem; transition: transform .2s ease, border-color .2s ease; }
.links-app svg { width: 34px; height: 34px; flex: none; }
.links-app:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.links-list { margin: 22px 0 18px; border-top: 1px solid var(--line); text-align: left; }
.links-list a { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
.links-list a > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.links-list b { font-weight: 600; font-size: .98rem; }
.links-list small { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.links-list .orb { width: 40px; height: 40px; flex: none; }
.links-list .orb .icon { width: 19px; height: 19px; }
.links-list .go { width: 18px; height: 18px; color: var(--accent); flex: none; transition: transform .2s ease; }
.links-list a:hover .go { transform: translateX(3px); }
.links-save { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; }
.links-hint { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.links-hours { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; font-size: .9rem; color: var(--text); }
.links-hours b { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.page-links main { min-height: 100vh; }

/* ---------- Calculators: three-way switch, hints ---------- */
.seg.seg-3 { flex-wrap: wrap; }
.calc-hint { margin: -4px 0 14px; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.calc-warn { color: var(--ink); border-left: 3px solid var(--accent); padding-left: 10px; }
.icon.flip { transform: scaleX(-1); }

/* ---------- Working calendar ---------- */
.workcal .wc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 20px; }
.workcal .wc-stats > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg); }
.workcal .wc-stats b { display: block; font-family: var(--head-font); font-size: 1.9rem; font-weight: 400; color: var(--ink); line-height: 1.1; }
.workcal .wc-stats span { font-size: .84rem; color: var(--muted); }
.wc-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .84rem; color: var(--text); }
.wc-legend li { display: flex; align-items: center; gap: 8px; }
.wc-k { width: 18px; height: 18px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.wc-k.k-work { background: var(--surface); }
.wc-k.k-off { background: var(--line); }
.wc-k.k-holoff { background: var(--accent); border-color: var(--accent); }
.wc-k.k-hol { background: var(--surface); box-shadow: inset 0 -3px 0 var(--accent); }
.wc-k.k-pre { background: var(--surface); position: relative; }
.wc-k.k-pre::after { content: "*"; position: absolute; top: -3px; right: 2px; color: var(--accent); font-weight: 700; font-size: .8rem; }
.wc-k.k-moved { background: var(--surface); border: 2px dashed var(--accent); }
.wc-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wc-month { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.wc-month header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.wc-month h3 { margin: 0; font-size: 1.05rem; }
.wc-month header span { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.wc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.wc-wd { font-size: .66rem; text-align: center; color: var(--muted); padding-bottom: 3px; text-transform: uppercase; letter-spacing: .02em; }
.wc-d { position: relative; display: grid; place-items: center; aspect-ratio: 1; font-size: .82rem; border-radius: 3px; color: var(--ink); background: var(--surface); border: 1px solid transparent; }
.wc-d.is-off { background: var(--line); color: var(--muted); }
.wc-d.is-hol { box-shadow: inset 0 -3px 0 var(--accent); font-weight: 600; cursor: help; }
.wc-d.is-holoff { background: var(--accent); color: var(--bg); font-weight: 700; cursor: help; }
.wc-d.is-pre::after { content: "*"; position: absolute; top: -2px; right: 3px; color: var(--accent); font-weight: 700; font-size: .78rem; }
.wc-d.is-moved { border: 2px dashed var(--accent); cursor: help; }
.wc-hols { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: .78rem; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.wc-hols b { display: inline-block; min-width: 20px; color: var(--muted); font-weight: 600; }
.wc-hols li.off b { color: var(--accent); }
.wc-table-title { margin: 30px 0 12px; font-size: 1.2rem; }
.wc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.wc-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.wc-table th, .wc-table td { padding: 8px 9px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.wc-table thead th { background: var(--bg); color: var(--muted); font-weight: 600; font-size: .76rem; text-align: center; white-space: normal; line-height: 1.3; }
.wc-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.wc-table tr.sum th, .wc-table tr.sum td { background: var(--bg); font-weight: 600; }
.wc-table tr.strong th, .wc-table tr.strong td { color: var(--accent); }
.wc-table tr.total th, .wc-table tr.total td { background: var(--orb-bg); color: var(--orb-ink); font-weight: 700; border-bottom: 0; }
@media (max-width: 1100px) { .wc-months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .wc-months { grid-template-columns: 1fr; }
    .workcal .wc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tax calendar ---------- */
.taxcal-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.tc-chip { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: .84rem; cursor: pointer; }
.tc-chip:hover { border-color: var(--ink); color: var(--ink); }
.tc-chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.taxcal-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start; }
.taxcal-month { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); }
.tc-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tc-nav h3 { margin: 0; font-size: 1.15rem; }
.tc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tc-wd { text-align: center; font-size: .7rem; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.tc-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; padding: 0; }
.tc-day.we { color: var(--muted); }
.tc-day:hover { border-color: var(--line-strong); }
.tc-day.has { font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.tc-day .c { position: absolute; top: 2px; right: 3px; font-size: .6rem; font-weight: 700; color: var(--accent); }
.tc-day.is-today { border-color: var(--accent); }
.tc-day.is-sel { background: var(--ink); color: var(--bg); }
.tc-day.is-sel .c { color: var(--bg); }
.tc-legend { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.tc-dot { width: 16px; height: 16px; border-radius: 3px; background: var(--surface); box-shadow: inset 0 -3px 0 var(--accent); border: 1px solid var(--line); }
.taxcal-day { min-width: 0; }
.tc-date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tc-date b { font-family: var(--head-font); font-size: 2.6rem; font-weight: 400; line-height: 1; color: var(--ink); }
.tc-date span { color: var(--text); font-weight: 600; }
.tc-date em { font-style: normal; margin-left: auto; font-size: .8rem; color: var(--accent); font-weight: 600; }
.tc-list { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.tc-empty { color: var(--muted); margin: 8px 0; }
.tc-item { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.tc-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tc-cat, .tc-per { font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.tc-cat { background: var(--ink); color: var(--bg); }
.tc-per { border: 1px solid var(--line-strong); color: var(--muted); }
.tc-item h4 { margin: 0 0 6px; font-size: .98rem; line-height: 1.4; color: var(--ink); }
.tc-item details summary { cursor: pointer; font-size: .82rem; color: var(--accent); font-weight: 600; }
.tc-item details p { margin: 6px 0 0; font-size: .86rem; color: var(--text); line-height: 1.55; }
.tc-base { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.tc-base b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .taxcal-body { grid-template-columns: 1fr; } .tc-list { max-height: none; } }

/* Six menu items: a little less space between them on mid-size screens so everything fits on one line */
@media (min-width: 1181px) and (max-width: 1720px) { .site-nav ul a { padding-left: 11px; padding-right: 11px; } }

/* Calendars hub: two cards, centred */
.calc-hub.cal-hub { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
@media (max-width: 720px) { .calc-hub.cal-hub { grid-template-columns: 1fr; } }
