/* =====================================================================
   mdforfeited.com — shared "well-kept ledger" design system (inner pages)
   Source of truth: index.html's SDAT-letterhead redesign. Tokens, type,
   ruled-section rhythm, and components mirror the homepage exactly.
   ===================================================================== */

:root {
  --navy: #c8122c;
  --navy-deep: #1a1a1a;
  --action: #96101f;
  --action-deep: #1a1a1a;
  --gold: #c8122c;
  --ink: #1b1b1b;
  --ink-soft: #454545;
  --gray: #5d6369;
  --line: #d9dde3;
  --form-bg: #f4f5f7;
  --red-stamp: #990000;
  --green-stamp: #1e6b42;
  --cream: #ffffff;
  --cream-warm: #f4f5f7;
  --forest: #c8122c;
  --forest-deep: #1a1a1a;
  --rust: #96101f;
  --rust-deep: #1a1a1a;

  --serif: "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 900px;
  --pad: clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Letterhead rule: a navy band over a gold hairline at the very top of the
   page, echoing the homepage's urgency bar without adding any copy. */
body::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--gold);
}

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

.tnum, a[href^="tel:"] { font-variant-numeric: tabular-nums; }
a[href^="tel:"] { white-space: nowrap; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy-deep);
}

/* Accent <em> in headings: neutralized, matching the homepage.
   The words stay, the highlighter goes. */
h1 em, h2 em, h3 em {
  font-style: normal;
  color: inherit;
}

h1 { font-size: clamp(30px, 6vw, 44px); margin: 14px 0 18px; }

/* Ruled-section rhythm: every h2 opens a hairline-ruled section. */
h2 {
  font-size: clamp(22px, 4.5vw, 30px);
  margin: 48px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
h3 { font-size: 19px; margin: 24px 0 8px; }

p { color: var(--ink-soft); margin-bottom: 14px; font-size: 16.5px; }
ul, ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
li { margin-bottom: 8px; }
.lead { font-size: 19px; line-height: 1.55; }

main a:not([class]) {
  color: var(--action);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
main a:not([class]):active { color: var(--action-deep); }

/* ===== Site header ===== */
header.site {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.brand svg { flex-shrink: 0; }
.brand:active { opacity: 0.75; }
.call-btn {
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.call-btn:hover { background: var(--action); }
.call-btn:active { background: var(--navy-deep); }

/* ===== Breadcrumbs ===== */
.crumbs { font-size: 13px; color: var(--gray); padding: 18px 0 0; }
.crumbs a {
  color: var(--action);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}
.crumbs a:active { color: var(--action-deep); text-decoration: underline; }

main { padding-bottom: 20px; }

/* ===== CTA row / buttons — homepage .btn geometry ===== */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.btn-primary {
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--action); }
.btn-primary:active { background: var(--navy-deep); }
.btn-secondary {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: #ffffff;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover { background: var(--form-bg); }
.btn-secondary:active { background: var(--line); }

/* ===== Price card — set like the homepage's state fee schedule ===== */
.price-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  margin: 24px 0;
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.07);
}
.price-card h3 {
  background: var(--navy-deep);
  color: #ffffff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  padding: 14px 24px;
  border-bottom: 3px solid var(--gold);
}
.price-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.price-line span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.price-line.total {
  border-top: 3px double var(--navy-deep);
  border-bottom: none;
  background: var(--form-bg);
  padding-top: 14px;
  padding-bottom: 14px;
}
.price-line.total span:first-child { font-weight: 700; color: var(--navy-deep); }
.price-line.total span:last-child {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy-deep);
}
.price-note {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.5;
  opacity: 1;
  margin: 0;
  padding: 14px 24px 18px;
}
.price-note + .price-note { padding-top: 0; }

/* ===== Cost table (guide pages) ===== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 8px; border: 1px solid var(--line); }
.cost-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.cost-table th {
  background: var(--form-bg);
  color: var(--navy-deep);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--navy-deep);
  font-family: var(--serif);
  font-weight: 700;
}
.cost-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.cost-table tr:last-child td { border-bottom: none; }
.table-note { font-size: 13.5px; color: var(--gray); margin-bottom: 20px; }

/* ===== FAQ accordion — homepage's ruled list ===== */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-deep);
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--action);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq-item > div { padding: 0 0 16px; }
.faq-item > div p { font-size: 15.5px; line-height: 1.65; margin-bottom: 10px; }

/* ===== Related services box — homepage prereq-card treatment ===== */
.siblings {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy-deep);
  border-radius: 0;
  padding: 22px 24px;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.07);
}
.siblings h3 { margin-top: 0; }
.siblings ul { list-style: none; margin: 0; }
.siblings li { padding: 10px 0; margin: 0; border-top: 1px solid var(--line); font-size: 15px; }
.siblings a {
  color: var(--action);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}
.siblings a:active { color: var(--action-deep); }

/* ===== Footer ===== */
footer.site {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 56px;
  padding: 36px 0;
  font-size: 14px;
  border-top: 3px solid var(--gold);
}
footer.site a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}
footer.site a:active { opacity: 0.7; }
footer.site .disclaimer {
  opacity: 1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  margin-top: 14px;
  line-height: 1.55;
}

/* ===== Mobile sticky CTA — homepage's white bar treatment ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  display: none;
}
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sticky-cta a:active { background: var(--navy-deep); }

@media (max-width: 800px) {
  .sticky-cta { display: block; }
  footer.site { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
  .cta-row .btn-primary, .cta-row .btn-secondary { width: 100%; }
}

/* sf01: bare tel:/mailto: links were 18-20px tall hit areas. Buttons already
   carry their own height, so only class-less inline links are touched. */
a[href^="tel:"]:not([class]),
a[href^="mailto:"]:not([class]) {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

/* w453: the sticky call bar's link has no class, so the rule above (and the
   nowrap on line 62) turned it into a one-line inline-block; long labels ran
   past a 375px screen and were clipped by body overflow-x:hidden. */
.sticky-cta a[href^="tel:"] { display: flex; line-height: 1.3; white-space: normal; }

/* sf01: bot honeypot. Offscreen rather than display:none so scripts still fill it. */
.hp-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

