/* EEOC Helper — The Craighead Law Firm
   Design idea: a calmer, friendlier version of the government form it helps you prepare.
   Fields sit in ruled boxes like EEOC Form 5; one highlighter mark is reserved for the deadline. */

:root {
  --ink: #15243b;
  --ink-2: #3d4f66;
  --muted: #5b6b80;
  --blue: #1e5aa0;
  --blue-dark: #164578;
  --blue-tint: #eaf1fa;
  --paper: #f4f6f9;
  --white: #ffffff;
  --line: #c5d0dc;
  --line-strong: #8a9bb0;
  --mark: #ffd84d;
  --alert: #b42318;
  --alert-tint: #fdf0ef;
  --warn: #8a5a00;
  --warn-tint: #fff6db;
  --ok: #1e7a4d;
  --ok-tint: #e8f5ee;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.9rem, 4.2vw, 2.6rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ------------------------------------------------------------------ Header & footer */

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand img { display: block; width: 300px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 16px; font-size: var(--step--1); }
.header-phone { font-weight: 700; font-size: var(--step-0); text-decoration: none; color: var(--ink); white-space: nowrap; }
.header-phone span { font-weight: 400; color: var(--muted); margin-right: 6px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }

.site-footer { margin-top: 64px; background: var(--ink); color: #d7dfe9; font-size: var(--step--1); padding: 36px 0 28px; }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.footer-grid p { margin: 0 0 0.6em; }
.footer-name { color: #ffffff; font-weight: 700; font-size: var(--step-0); }
.footer-legal { border-top: 1px solid #33455f; margin-top: 22px; padding-top: 16px; color: #aebbcc; }

/* ------------------------------------------------------------------ Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 3px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--blue); background: var(--blue); color: var(--white);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--blue); }
.btn-secondary:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--blue); padding-left: 8px; padding-right: 8px; }
.btn-quiet:hover { background: var(--blue-tint); border-color: transparent; color: var(--blue-dark); }
.btn-danger { background: var(--white); color: var(--alert); border-color: var(--alert); }
.btn-danger:hover { background: var(--alert-tint); color: var(--alert); border-color: var(--alert); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: var(--step--1); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ Home */

.hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 36ch; }
.hero .btn-row { margin: 28px 0 18px; }
.hero-proof { color: var(--muted); font-size: var(--step--1); }
.credentials { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: var(--step--1); font-weight: 600; color: var(--ink); max-width: 44rem; text-wrap: pretty; }
.credentials li { display: flex; align-items: baseline; gap: 10px; }
.credentials li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--blue); transform: translateY(-1px); }

/* The one bold element: the deadline sheet */
.deadline-sheet { border: 2px solid var(--ink); background: var(--white); }
.deadline-sheet .sheet-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding: 8px 14px; font-size: var(--step--1); font-weight: 700; }
.deadline-sheet .sheet-head span:last-child { font-weight: 400; color: var(--muted); }
.deadline-sheet .sheet-body { padding: 18px 18px 8px; }
.deadline-sheet .box { margin-bottom: 14px; }
.deadline-result { min-height: 7.5rem; }
.deadline-number { font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.deadline-number .mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); padding: 0 0.08em; }
.deadline-number small { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }
.deadline-caption { margin: 8px 0 4px; }
.deadline-twc { color: var(--ink-2); font-size: var(--step--1); }
.deadline-result.is-passed .deadline-number { color: var(--alert); }
.deadline-sheet .sheet-foot { border-top: 1px solid var(--line); padding: 10px 18px; font-size: 0.8rem; color: var(--muted); }

.section { padding: 56px 0 0; }
.section > .wrap > h2 { margin-bottom: 20px; }

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
.offer { padding: 26px 26px 28px; display: flex; flex-direction: column; }
.offer + .offer { border-left: 1px solid var(--line); }
.offer h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.offer .price { font-size: var(--step-2); font-weight: 800; }
.offer p { color: var(--ink-2); }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer-paid { box-shadow: inset 0 4px 0 var(--blue); }

.howto { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.howto li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.howto li::before { content: counter(step); display: block; font-weight: 800; font-size: var(--step-2); color: var(--blue); margin-bottom: 4px; }
.howto h3 { font-size: var(--step-0); margin-bottom: 4px; }
.howto p { color: var(--ink-2); margin: 0; }

.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reviews figure { margin: 0; background: var(--white); border: 1px solid var(--line); padding: 10px; }
.reviews img { display: block; width: 100%; }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; max-width: 760px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }

/* ------------------------------------------------------------------ Interview */

.flow { padding: 28px 0 0; }
.flow-head { margin-bottom: 18px; }
.flow-head .part { font-size: var(--step--1); color: var(--muted); margin: 0 0 6px; }
.flow-head h1 { font-size: var(--step-2); margin-bottom: 6px; }
.flow-head .intro { color: var(--ink-2); margin: 0; }

.progress { display: flex; gap: 4px; margin: 0 0 22px; padding: 0; list-style: none; }
.progress li { flex: 1; }
.progress li span { display: block; height: 6px; background: var(--line); }
.progress li.is-done span { background: var(--blue); }
.progress li.is-current span { background: var(--ink); }
.progress li em { display: block; font-style: normal; font-size: 0.75rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.progress li.is-current em { color: var(--ink); font-weight: 700; }

.sheet { background: var(--white); border: 1px solid var(--line); padding: 24px; overflow-wrap: break-word; }
.sheet + .sheet { margin-top: 18px; }
.sheet h2 { font-size: var(--step-1); margin-bottom: 4px; }
.sheet > .hint { margin-bottom: 14px; }

/* Form 5-style ruled boxes */
.boxes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 1px 0 0 1px; margin: 12px 0 0; }
.box {
  grid-column: span 12;
  border: 1px solid var(--line); margin: -1px 0 0 -1px; padding: 8px 12px 10px; background: var(--white);
  position: relative;
}
.box.w6 { grid-column: span 6; }
.box.w4 { grid-column: span 4; }
.box.w8 { grid-column: span 8; }
.box.w3 { grid-column: span 3; }
.box.w9 { grid-column: span 9; }
.box:focus-within { z-index: 1; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.box.has-error { z-index: 1; border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert); }
.box > label, .box > .label { display: block; font-size: 0.8125rem; color: var(--ink-2); margin-bottom: 2px; }
.box .req { color: var(--alert); font-weight: 700; margin-left: 2px; }
.box .hint { font-size: 0.8125rem; color: var(--muted); margin: 4px 0 0; }

.box input[type=text], .box input[type=email], .box input[type=tel], .box input[type=date], .box input[type=number],
.box select, .box textarea {
  display: block; width: 100%; border: 0; border-radius: 0; background: transparent;
  font: inherit; font-size: 1.0625rem; color: var(--ink); padding: 4px 0 2px; min-height: 34px;
}
.box textarea { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.box textarea.short { min-height: 4.5rem; }
.box select { appearance: none; -webkit-appearance: none; padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.box input:focus, .box select:focus, .box textarea:focus { outline: none; }

.choices { display: grid; gap: 2px; margin-top: 6px; }
.choices.two { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; cursor: pointer; line-height: 1.4; }
.choice input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.choice:hover { background: var(--blue-tint); }
.choice.inline { display: inline-flex; margin-right: 18px; }

.field-error, .field-validation-error { display: block; color: var(--alert); font-size: 0.875rem; font-weight: 700; margin-top: 4px; }
.validation-summary-errors { border-left: 4px solid var(--alert); background: var(--alert-tint); padding: 10px 14px; margin-bottom: 16px; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

.step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.step-actions .forward { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.saved-note { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }

.consent { background: var(--blue-tint); border: 1px solid #b9cde6; padding: 12px 14px; margin-top: 18px; }
.consent .choice:hover { background: transparent; }
.consent.has-error { border-color: var(--alert); background: var(--alert-tint); }

[hidden] { display: none !important; }

/* ------------------------------------------------------------------ Notices & cards */

.notice { border-left: 4px solid var(--blue); background: var(--blue-tint); padding: 12px 16px; margin: 0 0 18px; }
.notice p:last-child { margin-bottom: 0; }
.notice-alert { border-color: var(--alert); background: var(--alert-tint); }
.notice-warn { border-color: var(--warn); background: var(--warn-tint); }
.notice-ok { border-color: var(--ok); background: var(--ok-tint); }

.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.next-card { background: var(--white); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; }
.next-card.is-primary { border: 2px solid var(--blue); }
.next-card p { color: var(--ink-2); }
.next-card .btn { margin-top: auto; align-self: flex-start; }
.done-mark { color: var(--ok); font-weight: 700; }

.linkbox { display: flex; gap: 8px; margin-top: 8px; }
.linkbox input { flex: 1; min-width: 0; font: inherit; font-size: var(--step--1); padding: 8px 10px; border: 1px solid var(--line); background: var(--paper); }

.summary-section { margin-top: 18px; }
.summary-section h3 { font-size: var(--step-0); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 6px; }
.summary { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 4px 16px; margin: 0; font-size: 0.95rem; }
.summary dt { color: var(--ink-2); font-weight: 700; }
.summary dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.summary dd.empty { color: var(--line-strong); }

.particulars-preview { white-space: pre-line; background: var(--paper); border: 1px solid var(--line); padding: 16px; font-size: 0.95rem; max-height: 30rem; overflow: auto; }

/* ------------------------------------------------------------------ Admin */

.admin { padding-top: 24px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.admin-head h1 { font-size: var(--step-2); margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--ink); margin: 0 0 16px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-size: var(--step--1); font-weight: 700; border: 1px solid transparent; border-bottom: 0; }
.tabs a:hover { background: var(--blue-tint); }
.tabs a.is-active { background: var(--ink); color: var(--white); }
.tabs .count { font-weight: 400; opacity: 0.8; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters input[type=search] { font: inherit; padding: 9px 10px; border: 1px solid var(--line); min-width: 260px; }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
table.data th { text-align: left; font-size: 0.8125rem; color: var(--ink-2); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid #e3e9f0; vertical-align: top; }
table.data tr:hover td { background: #fafcfe; }
table.data a.rowlink { font-weight: 700; color: var(--ink); text-decoration: none; }
table.data a.rowlink:hover { text-decoration: underline; color: var(--blue); }

.status, .badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 2px; white-space: nowrap; border: 1px solid transparent; }
.status-started { background: #eef1f5; color: var(--muted); }
.status-new { background: var(--blue); color: var(--white); }
.status-reviewing { background: var(--blue-tint); color: var(--blue-dark); border-color: #b9cde6; }
.status-accepted { background: var(--ok-tint); color: var(--ok); border-color: #b5dcc6; }
.status-declined { background: #f1f2f4; color: var(--ink-2); border-color: var(--line); }
.status-spam, .status-archived { background: #f1f2f4; color: var(--muted); }
.badge { background: var(--paper); color: var(--ink-2); border-color: var(--line); margin: 0 4px 4px 0; }
.badge-paid { background: var(--ok-tint); color: var(--ok); border-color: #b5dcc6; }
.badge-charge { background: var(--blue-tint); color: var(--blue-dark); border-color: #b9cde6; }

.deadline { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.deadline-passed, .deadline-critical { color: var(--alert); }
.deadline-soon { color: var(--warn); }
.deadline-ok { color: var(--ok); }
.deadline-unknown { color: var(--line-strong); font-weight: 400; }

.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); padding: 18px; overflow-wrap: anywhere; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: var(--step-0); margin-bottom: 10px; }
.panel ul.plain { list-style: none; margin: 0; padding: 0; }
.panel ul.plain li + li { margin-top: 8px; }
.panel form + form { margin-top: 8px; }
.panel textarea, .panel select, .panel input[type=text], .panel input[type=email], .panel input[type=password], .panel input[type=number], .panel input[type=url] {
  width: 100%; font: inherit; font-size: 0.95rem; padding: 8px 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.panel label { display: block; font-size: 0.875rem; font-weight: 700; color: var(--ink-2); margin: 10px 0 4px; }
.particulars-editor { min-height: 26rem; line-height: 1.5; }
.note { border-top: 1px solid #e3e9f0; padding-top: 10px; margin-top: 10px; }
.note .meta { font-size: 0.8125rem; color: var(--muted); }
.note p { white-space: pre-line; margin: 4px 0 0; }
.audit { font-size: 0.8125rem; color: var(--ink-2); }
.audit li { padding: 4px 0; border-top: 1px solid #eef1f5; }

.status-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.status-buttons button.is-current { background: var(--ink); border-color: var(--ink); color: var(--white); }

.auth { max-width: 440px; padding-top: 40px; }

/* ------------------------------------------------------------------ Guides */

.credential-note { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); }
.section-intro { color: var(--ink-2); max-width: 60ch; margin-top: -8px; }

.guide-cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 18px 18px 16px; }
.guide-card h3 { font-size: var(--step-0); margin-bottom: 6px; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.guide-card p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }

.guide-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 28px 0 30px; }
.guide-head h1 { max-width: 24ch; margin-bottom: 12px; }
.guide-head .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 52ch; margin: 0; }
.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.guide-meta { margin: 0; font-size: var(--step--1); color: var(--muted); }
.guide-meta a { color: var(--ink-2); }
.guide-meta span { margin: 0 6px; }

.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-top: 36px; }
.guide-body { max-width: 72ch; }
.guide-body section { margin-bottom: 36px; scroll-margin-top: 16px; }
.guide-body h2 { margin-top: 0; }
.guide-body ul, .guide-body ol { padding-left: 1.25em; margin: 0 0 1em; }
.guide-body li { margin-bottom: 0.45em; }
.guide-body li::marker { color: var(--blue); }

.answer-box { background: var(--white); border: 2px solid var(--ink); padding: 18px 20px 4px; margin-bottom: 28px; }
.answer-label { font-size: var(--step--1); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 6px; }

.toc { border-left: 3px solid var(--line); padding: 2px 0 2px 16px; margin-bottom: 36px; font-size: var(--step--1); }
.toc-title { font-weight: 700; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 3px; }

.callout { background: var(--warn-tint); border-left: 4px solid var(--warn); padding: 12px 16px 2px; margin: 0 0 1em; }
.inline-cta { background: var(--blue-tint); border: 1px solid #c9d9ee; padding: 18px 20px; margin: 20px 0 0; }
.inline-cta p { margin-bottom: 12px; }
.inline-cta.wide { margin-top: 28px; }

.guide-body .steps { list-style: none; counter-reset: gstep; padding-left: 0; }
.guide-body .steps > li { counter-increment: gstep; position: relative; padding-left: 40px; margin-bottom: 12px; }
.guide-body .steps > li::before {
  content: counter(gstep); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--white); font-weight: 800; font-size: var(--step--1); display: grid; place-items: center;
}
.guide-body .checklist { list-style: none; padding-left: 0; }
.guide-body .checklist li { position: relative; padding-left: 30px; }
.guide-body .checklist li::before { content: ""; position: absolute; left: 2px; top: 0.3em; width: 14px; height: 14px; border: 2px solid var(--blue); }
.guide-body .two-col-list { columns: 2; column-gap: 32px; }
.guide-body .two-col-list li { break-inside: avoid; }

.table-scroll { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--line); background: var(--white); }
.guide-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: var(--paper); font-weight: 700; border-bottom: 2px solid var(--ink); }
.guide-table td:last-child { font-weight: 700; white-space: nowrap; }
.guide-table tbody tr:last-child td { border-bottom: 0; }

.guide-faq { margin-bottom: 32px; }
.author-box { border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 20px; }
.author-name { font-weight: 800; margin-bottom: 4px; }
.author-credential { font-size: var(--step--1); color: var(--ink-2); }
.author-credential span { color: var(--muted); }
.guide-disclaimer { font-size: var(--step--1); color: var(--muted); max-width: 72ch; }

.guide-aside { position: sticky; top: 20px; display: grid; gap: 20px; }
.cta-card { background: var(--white); border: 2px solid var(--ink); padding: 20px; }
.cta-card h2 { font-size: var(--step-1); }
.cta-card p { font-size: var(--step--1); color: var(--ink-2); }
.btn-col { display: grid; gap: 10px; }
.btn-col .btn { width: 100%; }
.cta-phone { margin: 12px 0 0; }
.related h2 { font-size: var(--step-0); }
.related ul { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); padding: 8px 0; font-size: var(--step--1); }
.related p { font-size: var(--step--1); }

.footer-head { color: #ffffff; font-weight: 700; margin-top: 4px; }
.footer-links { list-style: none; margin: 0 0 0.8em; padding: 0; display: grid; gap: 4px; }
.footer-legal .grievance { font-size: 0.8rem; }

@media (max-width: 960px) {
  .guide-cards { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: 1fr; gap: 24px; }
  .guide-aside { position: static; }
}
@media (max-width: 640px) {
  .guide-cards { grid-template-columns: 1fr; }
  .guide-body .two-col-list { columns: 1; }
  .guide-head { padding-top: 20px; }
}
@media print {
  .guide-aside, .toc, .inline-cta { display: none !important; }
  .guide-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 860px) {
  .hero-grid, .case-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .howto { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { width: 180px; }
  .header-phone span { display: none; }
  .offers, .next-grid, .reviews { grid-template-columns: 1fr; }
  .offer + .offer { border-left: 0; border-top: 1px solid var(--line); }
  .box.w6, .box.w4, .box.w8, .box.w3, .box.w9 { grid-column: span 12; }
  .choices.two { grid-template-columns: 1fr; }
  .sheet { padding: 18px 14px; }
  .summary { grid-template-columns: 1fr; }
  .summary dt { margin-top: 8px; }
  .step-actions .forward { width: 100%; }
  .step-actions .forward .btn { flex: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .deadline-result.is-updated .deadline-number { animation: settle 0.35s ease-out; }
  @keyframes settle { from { opacity: 0.2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

@media print {
  .site-header, .site-footer, .no-print, .tabs { display: none !important; }
  body { background: #fff; }
  .panel, .sheet { border: 0; padding: 0; }
  .case-grid { grid-template-columns: 1fr; }
}
