/* VEDD Accounting & Taxation Services — site styles */

/* Dollar sign: Montserrat (the logo typeface) draws a single bar straight through the S; Manrope and Newsreader don't.
   The 1 kB subset below contains only "$" and, through unicode-range, is used for every dollar sign on the site in
   both the sans and serif stacks. Regenerated from brand/Montserrat-variable.ttf (see documentation A3). */
@font-face { font-family: "VEDD Dollar"; src: url("/fonts/montserrat-dollar.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0024; }

:root {
  --red: #de6264;        /* brand — matches the logo */
  --red-deep: #de6264;   /* buttons and band — same as brand */
  --red-darker: #c94e50; /* hover */
  --red-wash: #fdf1f1;
  --red-line: #f3cfd0;
  --ink: #1c1f22;
  --ink-soft: #4a5057;
  --ink-mute: #7a8089;
  --navy: #1A2C5B;           /* logo navy */
  --paper: #efe9e9;      /* brand background */
  --white: #ffffff;
  --paper-2: #e5dcdc;    /* image placeholders, hover fills */
  --rule: #ddd3d3;

  --serif: "VEDD Dollar", "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "VEDD Dollar", "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1232px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::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;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--red-darker); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Header */
.topbar {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  padding: 7px var(--gutter);
}
.topbar a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.55); }
.topbar a:hover { border-color: #fff; color: #fff; }
@media (max-width: 600px) { .topbar .long { display: none; } }

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 88px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 48px; width: auto; }
@media (max-width: 760px) { .brand img { height: 40px; } }
.brand-fallback {
  font-family: var(--serif); font-weight: 600; font-size: 1.6rem;
  color: var(--red); letter-spacing: .04em;
}
.brand .wordmark { display: none; }
@media (min-width: 1024px) {
  .brand .wordmark {
    display: block; font-size: .95rem; line-height: 1.2; color: var(--ink-soft);
    border-left: 1px solid var(--rule); padding-left: 12px;
  }
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 10px 14px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 6px;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red-deep); }
.nav .cta a { background: var(--red-deep); color: #fff; }
.nav .cta a:hover { background: var(--red-darker); }

.menu-btn {
  display: none; background: var(--white); border: 2px solid var(--red-deep); color: var(--red-deep);
  padding: 8px 14px; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.menu-btn:hover, .menu-btn:focus-visible, .menu-btn[aria-expanded="true"] { background: var(--red-wash); color: var(--red-deep); }
/* Phones and tablets (up to 1100px): links collapse behind the Menu button */
@media (max-width: 1100px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px 10px; font-size: 1.05rem; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 1rem; line-height: 1;
  border: 2px solid var(--red-deep); background: var(--red-deep); color: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--red-darker); border-color: var(--red-darker); color: #fff; }
.btn.ghost { background: transparent; color: var(--red-deep); }
.btn.ghost:hover { background: var(--red-wash); color: var(--red-deep); }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--white); }
.section.wash { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.hero h1 { max-width: 15ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .meta { margin-top: 28px; color: var(--ink-mute); font-size: .95rem; }
.hero figure { margin: 0; }
.hero figure img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 10px;
  background: var(--red-wash);
}

/* Ledger — the service index. Rows rule like a ledger, right column carries the cadence. */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.ledger .name { font-family: var(--serif); font-size: 1.3rem; }
.ledger .when { color: var(--ink-mute); font-size: .95rem; text-align: right; white-space: nowrap; }
@media (max-width: 520px) {
  .ledger li { grid-template-columns: 1fr; gap: 2px; }
  .ledger .when { text-align: left; }
}

/* Two-up statement blocks */
.pair { display: grid; gap: 40px; }
@media (min-width: 820px) { .pair { grid-template-columns: 1fr 1fr; gap: 64px; } }
.pair h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.pair p { font-size: 1.1rem; color: var(--ink-soft); }

/* Three strengths — photo above, short text below */
.trio { display: grid; gap: 32px; }
@media (min-width: 720px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (max-width: 719px) { .trio img { aspect-ratio: 3 / 2; } }
.trio figure { margin: 0; }
.trio img {
  aspect-ratio: 5 / 4; object-fit: cover; width: 100%; border-radius: 8px;
  background: var(--paper-2); margin-bottom: 18px;
}
.trio h3 { margin-bottom: .35em; }
.trio p { color: var(--ink-soft); margin: 0; }

/* Key dates */
.dates { display: grid; gap: 20px; }
@media (min-width: 640px) { .dates { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .dates { grid-template-columns: repeat(4, 1fr); } }
.date {
  background: var(--white); border: 1px solid var(--red-line); border-radius: 8px;
  padding: 22px 22px 20px;
}
.date .day { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--red); }
.date .label { font-weight: 700; margin-top: 10px; }
.date .note { color: var(--ink-soft); font-size: .95rem; margin: 4px 0 0; }
.fineprint { color: var(--ink-mute); font-size: .9rem; margin-top: 20px; max-width: 70ch; }

/* Service groups (services page) */
.group { display: grid; gap: 32px; padding: clamp(40px, 6vw, 72px) 0; border-top: 3px solid var(--red); }
@media (min-width: 860px) { .group { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } }
.group img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 8px; background: var(--paper-2); }
.group h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.group .intro { color: var(--ink-soft); font-size: 1.1rem; }
.items { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--navy); }
.items li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.items strong { display: block; font-weight: 700; margin-bottom: 2px; }
.items span { color: var(--ink-soft); }

/* CPA badge */
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.badge img.cpa { width: 144px; height: 144px; }
.badge img.tpb { height: 144px; width: auto; }
.badge p { color: var(--ink-soft); font-size: .9rem; margin: 10px 0 0; }
.site-footer .who { display: flex; gap: 20px; align-items: center; }
.site-footer .who img.cpa { width: 119px; height: 119px; flex: none; }
.site-footer .who img.tpb { height: 119px; width: auto; flex: none; }
.site-footer .who > a { display: flex; flex: none; }
.site-footer .who img { max-width: none; object-fit: contain; }
.badge img { max-width: none; object-fit: contain; }

/* About */
.bio { display: grid; gap: 40px; }
@media (min-width: 860px) { .bio { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } }
.bio img.portrait { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 10px; background: var(--paper-2); margin-bottom: 24px; }
.bio .creds { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); position: sticky; top: 96px; }
.bio .creds li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.bio .creds li strong { display: block; }
.bio .creds li span { color: var(--ink-soft); }
.prose p { font-size: 1.1rem; color: var(--ink-soft); }
.prose p:first-child { font-size: 1.3rem; color: var(--ink); }
.industries { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.industries li {
  border: 1px solid var(--red-line); background: var(--white); color: var(--red-deep);
  padding: 6px 12px; border-radius: 999px; font-size: .95rem; font-weight: 600;
}

/* Contact */
.contact { display: grid; gap: 40px; }
@media (min-width: 860px) { .contact { grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; } }
.contact-head .wrap { display: grid; gap: 28px; align-items: end; }
@media (min-width: 860px) { .contact-head .wrap { grid-template-columns: 4fr 8fr; gap: 56px; } }
.contact-head img { width: 100%; height: auto; border-radius: 10px; }
@media (min-width: 860px) { .contact-head img { justify-self: end; } }
.contact-head .lede { max-width: 42ch; }
.contact img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 10px; background: var(--paper-2); }
.channels { list-style: none; padding: 0; margin: 32px 0 0; border-top: 2px solid var(--ink); }
.channels li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.channels .k { color: var(--ink-mute); font-size: .95rem; }
.channels .v { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin-top: 4px; }
.channels .v a { color: var(--ink); text-decoration: none; }
.channels .v a:hover { color: var(--red); }
.channels .h { color: var(--ink-soft); margin-top: 6px; }

/* CTA band */
.band { background: var(--red-deep); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.band .wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .band .wrap { grid-template-columns: 1fr auto; } }
.band h2 { color: #fff; margin: 0; max-width: 22ch; }
.band p { color: rgba(255,255,255,.85); margin: 8px 0 0; font-size: 1.1rem; }
.band .btn { background: #fff; color: var(--red-deep); border-color: #fff; }
.band .btn:hover { background: var(--red-wash); border-color: var(--red-wash); color: var(--red-deep); }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); padding: 40px 0 32px; color: var(--ink-soft); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer .who strong { color: var(--ink); display: block; font-size: 1.05rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--red); }
.site-footer .legal { color: var(--ink-mute); margin-top: 22px; grid-column: 1 / -1; }

/* Long-form (privacy) */
.doc { max-width: 72ch; }
.doc h2 { font-size: 1.5rem; margin-top: 2.2em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; }
.doc .updated { color: var(--ink-mute); font-size: .95rem; }

/* Page intro */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { max-width: 18ch; }

/* 404 */
.notfound { padding: 120px 0; text-align: left; }

/* Engagement form */
.eform, .done { max-width: 760px; }
[hidden] { display: none !important; }
.eform fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.eform legend { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-bottom: 14px; padding: 0; width: 100%; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.eform .hint { color: var(--ink-soft); margin: 0 0 16px; }
.eform .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.eform .span1 { grid-column: span 1; }
.eform .span2 { grid-column: span 2; }
.eform .half { grid-column: span 1; }
@media (max-width: 600px) { .eform .grid { grid-template-columns: 1fr 1fr; } .eform .span1 { grid-column: span 2; } }
.eform label > span, .eform .radios > span, .eform .lbl { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.eform label > span em { font-weight: 500; color: var(--ink-mute); font-style: normal; }
.eform input:not([type="checkbox"]):not([type="radio"]), .eform select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--white); color: var(--ink);
}
.eform input:focus, .eform select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.eform input:user-invalid { border-color: var(--red-deep); }
.eform small { display: block; color: var(--ink-mute); font-size: .85rem; margin-top: 6px; }
.eform .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; margin-top: 8px; cursor: pointer; }
.eform .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.eform .check span { font-weight: 500; margin: 0; }
.eform .radios label { display: inline-flex; gap: 8px; align-items: center; margin-right: 22px; font-weight: 500; cursor: pointer; }
.eform .radios input { accent-color: var(--red); width: 18px; height: 18px; }
.eform .terms { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 18px 22px; margin-bottom: 18px; max-height: 260px; overflow-y: auto; }
.eform .terms h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.eform .terms p { color: var(--ink-soft); font-size: .95rem; }
.eform .terms p:last-child { margin-bottom: 0; }
.sigbox { background: var(--white); border: 1px dashed var(--ink-mute); border-radius: 8px; overflow: hidden; }
.sigbox canvas { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.btn.small { padding: 10px 16px; font-size: .9rem; margin-top: 10px; }
.eform .error { background: #fdecec; border: 1px solid var(--red-line); color: var(--red-darker); padding: 12px 16px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.done { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 40px; max-width: 640px; }
.done h2 { font-size: 1.8rem; }

.stepnum { color: var(--red-deep); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.done .eform { margin-top: 24px; }
.done .eform .btn.ghost { margin-left: 8px; }
.eform input[type="file"] { width: 100%; font: inherit; padding: 10px; border: 1px dashed var(--ink-mute); border-radius: 8px; background: var(--white); }

/* Contact form */
.cform { background: #fbf4f4; border: 1px solid var(--red-line); border-radius: 12px; padding: 34px 36px; }
.cform input, .cform select, .cform textarea { border-color: var(--red-line) !important; }
.cform .formtitle { color: var(--red-deep); }
.cform .grid { gap: 18px 22px; }
.cform .formtitle { font-size: 1.6rem; margin: 0 0 20px; }
.cform input:not([type="checkbox"]), .cform select, .cform textarea { padding: 15px 16px; font-size: 1.05rem; }
.cform .btn { padding: 16px 24px; font-size: 1.05rem; }
.eform textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--white); color: var(--ink); resize: vertical; }
.eform textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.cform .btn { width: 100%; text-align: center; margin-top: 6px; }
.contact .done { margin-top: 206px; max-width: none; width: 100%; background: #fbf4f4; border: 1px solid var(--red-line); padding: 44px 36px; text-align: center; }
.contact .done h2 { color: var(--red-deep); }
@media (max-width: 859px) { .contact .done { margin-top: 0; } }

.site-footer .reg { display: inline-block; margin-top: 6px; color: var(--ink-mute); }
.site-footer .reg a { color: var(--ink-soft); }

/* Portal */
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 30px 32px; margin-bottom: 28px; max-width: 900px; }
.card h2 { font-size: 1.5rem; margin-bottom: 14px; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.cardhead h2 { margin: 0; }
.card .eform { max-width: none; }
.card .eform .btn.ghost { margin-left: 8px; }

.portal-bar { max-width: 900px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0 22px; color: var(--ink-soft); flex-wrap: wrap; }
.muted { color: var(--ink-mute); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--red-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--red-darker); }
.notice { background: #eef7ef; border: 1px solid #cfe7d3; color: #1f5f2a; padding: 12px 16px; border-radius: 8px; }
.drop { display: block; border: 2px dashed var(--red-line); background: #fbf4f4; border-radius: 10px; padding: 36px 20px; text-align: center; cursor: pointer; margin-bottom: 14px; }
.drop.over { border-color: var(--red); background: #fdeaea; }
.drop input { display: none; }
.drop-text { color: var(--ink-soft); font-weight: 600; }
.filelist { list-style: none; padding: 0; margin: 0 0 18px; }
.filelist li, .files li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.files li { grid-template-columns: 1fr auto auto auto; }
.files li a { color: var(--ink); }
.filelist .prog { min-width: 1.2em; text-align: center; color: var(--red-deep); font-weight: 700; }
.batch { padding: 16px 0; border-top: 1px solid var(--rule); }
.batch:first-child { border-top: 0; padding-top: 0; }
.batchhead { display: flex; justify-content: space-between; gap: 12px; }
.batch .note { color: var(--ink-soft); margin: 6px 0 4px; white-space: pre-wrap; }
.files { list-style: none; padding: 0; margin: 6px 0 0; }
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { color: var(--ink-mute); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.tbl a { color: var(--ink); font-weight: 600; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #fdeaea; color: var(--red-darker); }
.tag.ok { background: #eef7ef; color: #1f5f2a; }
.tag.off { background: #eee; color: #666; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }

.card.narrow { max-width: 520px; }
.eform input.otp { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.nav .login a { border: 2px solid var(--red-deep); color: var(--red-deep); padding: 8px 14px; }
.nav .login a:hover { background: var(--red-wash); }

.headtools { display: flex; gap: 16px; align-items: center; }
.eform .check.small { margin: 0; font-size: .92rem; }
.eform .check.small input, .headtools .check input { width: 18px; height: 18px; margin-top: 2px; }
.headtools .check { display: flex; gap: 8px; align-items: center; cursor: pointer; color: var(--ink-soft); font-weight: 500; }
dl.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; margin: 0 0 20px; }
dl.meta dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); }
dl.meta dd { margin: 2px 0 0; font-weight: 600; }
.btn.danger { color: #a33; border-color: #d99; }
.btn.danger:hover { background: #fbeaea; color: #822; }

.card h3.subhead { font-size: 1.2rem; margin: 28px 0 12px; padding-top: 22px; border-top: 1px solid var(--rule); }

.card .eform .grid { margin-bottom: 20px; }

.limits { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.limits li { background: #fbf4f4; border: 1px solid var(--red-line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--ink-soft); }
.limits strong { color: var(--ink); }

.eform input.otp.admin-pin { font-family: Consolas, 'Courier New', monospace; letter-spacing: .25em; }

.cf-turnstile { margin: 4px 0 14px; }
.ts-wrap .cf-turnstile { margin: 14px 0 0; }

/* Desktop menu labels never wrap onto two lines */
.nav a { white-space: nowrap; }
/* Collapsed menu: buttons sit in a row under the links */
@media (max-width: 1100px) {
  .nav .login, .nav .cta { display: inline-block; margin: 8px 8px 0 0; }
}
/* Footer on narrow screens: badges on one line, company details below */
@media (max-width: 700px) {
  .site-footer .who { flex-wrap: wrap; row-gap: 14px; }
  .site-footer .who > div { flex-basis: 100%; min-width: 0; }
  .site-footer .who img.cpa { width: 96px; height: 96px; }
  .site-footer .who img.tpb { height: 96px; }
  .site-footer .who a { overflow-wrap: anywhere; }
}

/* Idle / session-limit warning */
.idle-overlay { position: fixed; inset: 0; background: rgba(28, 31, 34, 0.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.idle-overlay[hidden] { display: none !important; }
.idle-box { background: var(--white); border-radius: 14px; max-width: 440px; width: 100%; padding: 28px 30px; box-shadow: 0 20px 60px rgba(0,0,0,.25); border-top: 6px solid var(--red-deep); }
.idle-box h2 { font-size: 1.5rem; margin: 0 0 10px; }
.idle-box p { color: var(--ink-soft); margin: 0 0 22px; }
.idle-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.idle-actions .btn[hidden] { display: none; }
.idle-note { margin-bottom: 16px; }
.portal-bar .btn.small { margin-top: 0; }

/* Referral programme and free consultation (October 2026) */
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--red-deep); margin: 0 0 8px; }
.refer-strip { background: var(--white); border-top: 1px solid var(--rule); }
.refer-strip .wrap { display: grid; gap: 24px; align-items: center; }
.refer-strip h2 { margin: 0 0 10px; max-width: 24ch; }
.refer-strip p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
@media (min-width: 820px) { .refer-strip .wrap { grid-template-columns: 1fr auto; gap: 48px; } }

.reasons { display: grid; gap: 12px; margin: 0 0 22px; }
@media (min-width: 560px) { .reasons { grid-template-columns: 1fr 1fr; } }
.reason { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 2px solid var(--red-line); border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.reason:has(input:checked) { border-color: var(--red-deep); box-shadow: 0 0 0 3px var(--red-wash); }
.reason input { margin: 4px 0 0; accent-color: var(--red-deep); flex: none; }
.reason strong { display: block; font-size: 1rem; }
.reason small { display: block; color: var(--ink-mute); font-size: .88rem; margin-top: 2px; line-height: 1.4; }
.refcode { text-transform: uppercase; font-family: Consolas, "Courier New", monospace; letter-spacing: .06em; }
.cform label small, .eform label small { display: block; color: var(--ink-mute); font-size: .85rem; margin-top: 6px; line-height: 1.4; }

.refer { display: grid; gap: 40px; }
@media (min-width: 860px) { .refer { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 22px 56px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--red-deep); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.steps strong { display: block; font-size: 1.1rem; margin: 6px 0 4px; }
.steps span { color: var(--ink-soft); line-height: 1.55; }
.rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.rewards > div { background: var(--white); border: 1px solid var(--red-line); border-radius: 12px; padding: 18px 20px; text-align: center; }
.rewards .amt { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--red-deep); line-height: 1.1; }
.rewards .lbl { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
.bigcode { font-family: Consolas, "Courier New", monospace; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: .08em; color: var(--red-deep); margin: 8px 0 14px; }
.narrow-doc { padding-top: 0 !important; }
.terms-list { padding-left: 1.3em; }
.terms-list li { margin-bottom: 10px; line-height: 1.55; }

.tag.warn { background: #fff4e5; color: #8a4b00; }
.tag.pending { background: #fdf1f1; color: var(--red-darker); }
.refact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.refact select { padding: 6px 8px; font: inherit; font-size: .9rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--white); }
.tbl.refs td { vertical-align: top; font-size: .92rem; }

/* Admin: tabs and the Referral codes tab (October 2026) */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--red-line); margin: 0 0 22px; flex-wrap: wrap; }
.tab { font: inherit; font-weight: 700; font-size: 1rem; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 16px; color: var(--ink-soft); cursor: pointer; }
.tab:hover { color: var(--red-deep); }
.tab[aria-selected="true"] { color: var(--red-deep); border-bottom-color: var(--red-deep); }
.reftools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 14px; }
.reftools label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .85rem; }
.reftools input, .reftools select { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--white); min-width: 150px; }
.reftools input { min-width: 260px; }
.refcounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.countchip { font: inherit; font-size: .9rem; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px 4px 6px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.countchip:hover { border-color: var(--red-line); }
.statuskey { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0 0 14px; }
.statuskey dt { margin: 0; } .statuskey dd { margin: 0; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 560px) { .statuskey { grid-template-columns: 1fr; } .statuskey dd { margin-bottom: 8px; } }
.tag.issued { background: #eef2fa; color: #1a2c5b; }
.tag.expired { background: #ececec; color: #666; }
.mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .03em; }
.linkbtn.danger { color: #b3261e; }
#pane-referrals .card { max-width: none; }
.tbl.refs .mono { white-space: nowrap; }
.tbl.refs td:first-child { white-space: nowrap; }

/* Services page (October 2026): four sections, each with its own illustration, plus "Something Else?" */
.lede-sub { color: var(--ink-soft); max-width: 70ch; margin: 0; }
@media (min-width: 860px) { .group img { position: sticky; top: 104px; } }
.else { display: grid; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--red-line); border-radius: 12px; padding: clamp(24px, 4vw, 40px); margin-top: clamp(24px, 4vw, 48px); }
.else h2 { margin: 0 0 8px; } .else p { margin: 0; color: var(--ink-soft); max-width: 64ch; }
@media (min-width: 820px) { .else { grid-template-columns: 1fr auto; gap: 40px; } }

/* Services page head: intro left, "On this page" card right */
.services-head .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .services-head .wrap { grid-template-columns: 7fr 5fr; gap: 64px; } }
.services-head .lede { max-width: 48ch; margin-bottom: 10px; }
.services-head .lede-sub { max-width: 60ch; line-height: 1.6; }
.jump { background: var(--white); border: 1px solid var(--red-line); border-radius: 12px; padding: 22px 26px; }
.jump .eyebrow { margin-bottom: 10px; }
.jump ol { list-style: none; margin: 0; padding: 0; }
.jump li { border-top: 1px solid var(--rule); } .jump li:first-child { border-top: 0; }
.jump a { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 700; }
.jump a:hover { color: var(--red-deep); }
.jump span { font-family: var(--serif); color: var(--red-deep); font-size: 1.15rem; min-width: 30px; }
.group[id] { scroll-margin-top: 104px; }
.services-head { padding-bottom: clamp(40px, 6vw, 72px); }  /* same distance above the first coral rule as between sections */
#pane-clients .card, #a-app .portal-bar { max-width: none; }  /* admin: full width, so Log out lines up with the cards */
.protect { max-width: 900px; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; margin: 0; padding: 14px 18px; background: var(--white); border: 1px solid var(--red-line); border-radius: 10px; }
.protect strong { color: var(--ink); }
.bulkbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 0 14px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.bulkbar .btn.small { margin-top: 0; } .btn.small.ghost.danger { color: #b3261e; border-color: #e3b3b0; }
.files .check { gap: 8px; } .files .check span { overflow-wrap: anywhere; }
.batchhead .check span strong { font-weight: 700; }
.batch .check, .bulkbar .check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; margin: 0; }
.batch .check input, .bulkbar .check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; margin: 0; }
.lede-wide { max-width: 60ch; }
#p-login.card.narrow { max-width: 592px; }  /* client login card ends where the lede's first line ends */
/* Admin: files never downloaded, and clients that have any, are shown in the logo coral and bold */
.tbl a.isnew, .files a.isnew, .legend .isnew { color: var(--red); font-weight: 700; }
.legend { color: var(--ink-mute); font-size: .88rem; margin-left: auto; }
