/* forterisrisk.com — the free MSB check, v5 look. Loaded after
   /assets/v5/site.css. The questions, rules and result wording come from
   msb-rules.js, msb-deadlines.js and msb-check.js and are unchanged: this
   file only restyles the classes those scripts write. */

.wrap { max-width: 1080px; }
.btn.lg { min-height: 50px; }

/* ---------- Intro ---------- */

.intro { padding: clamp(56px, 7vw, 104px) 0 clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--line-soft); }
.intro .eyebrow { margin-bottom: 16px; }
.intro h1 { margin: 0; font-weight: 400; font-size: clamp(38px, 6.4vw, 80px); line-height: 1; letter-spacing: -0.035em; max-width: 13em; text-wrap: balance; }
.intro .lede { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; max-width: 66ch; }
.intro .lede p { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.intro .lede p.meta { font-size: 15.5px; color: var(--mute); }
.intro .notice { margin-top: 28px; max-width: 76ch; }
.notice strong { display: block; margin-bottom: 4px; font-size: 16.5px; }

/* ---------- Questions ---------- */

.check { padding: 12px 0 48px; }
.q-group {
  margin-top: 28px;
  padding: clamp(18px, 2.6vw, 32px) clamp(18px, 2.8vw, 36px) clamp(8px, 1vw, 12px);
  border-radius: var(--radius-tile);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.q-group-title { margin: 0 0 4px; font-weight: 500; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
/* A legend sits in the fieldset's border area, above its padding, so the
   space above each question lives on the legend itself. */
fieldset.q { margin: 0; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
fieldset.q:last-child { border-bottom: 0; }
fieldset.q.follow { margin-left: 6px; padding-left: 18px; border-left: 2px solid var(--accent-line); }
fieldset.q.is-missing { margin-left: -14px; padding-left: 12px; border-left: 3px solid var(--err); border-radius: 0; }
.q-text { padding: 22px 0 0; font-size: 17.5px; font-weight: 600; line-height: 1.42; max-width: 62ch; }
.q-help { margin: 8px 0 0; font-size: 15px; line-height: 1.58; color: var(--ink-2); max-width: 68ch; }
/* The rule behind the question, as a quiet chip. */
.q-rule {
  display: inline-block;
  margin: 10px 0 0;
  padding: 3px 11px;
  border-radius: var(--pill);
  background: var(--hover);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
/* Yes / No / Not sure as a pill segmented control. */
.q-choices { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 12px;
  text-align: center;
  border: 1px solid var(--field);
  border-radius: var(--pill);
  background: #fbfcfb;
  font-size: 15.5px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.choice:hover span { border-color: var(--ink); background: var(--hover); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:checked + span::before { content: "\2713"; margin-right: 7px; color: var(--night-green); }
.choice input:focus-visible + span { outline: 2px solid var(--info); outline-offset: 3px; }
.q-err { margin: 10px 0 0; font-size: 14.5px; font-weight: 600; color: var(--err); }
.q-err::before { content: "! "; }

.check-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: var(--shadow-raise);
}
.check-status { margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.check-status:empty { margin: 0; }
.check-status.is-error { padding: 12px 16px; border-radius: 12px; background: var(--err-bg); color: var(--err); font-weight: 500; }

/* ---------- Result ---------- */

.result { padding: 8px 0 48px; scroll-margin-top: 72px; }
.result:focus { outline: none; }
.result-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--radius-tile);
  background: var(--surface);
  box-shadow: var(--shadow-raise);
  overflow: hidden;
}
/* Verdict colour on a top band: ink for likely, green for likely not, gold for unclear. */
.result-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--ink); }
.result-card[data-verdict="likely_not"]::before { background: var(--accent); }
.result-card[data-verdict="unclear"]::before { background: var(--gold); }
.result-card .eyebrow { margin-bottom: 10px; }
.result-card h2 { margin: 0; font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -0.03em; }
.result-lead { margin: 16px 0 0; font-size: 18px; line-height: 1.58; color: var(--ink-2); max-width: 64ch; }
.result-reg { margin: 20px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.55; max-width: 74ch; }
.result-reg strong { font-weight: 650; }
.result-reg .cite { color: var(--mute); font-size: 14px; }
.result-stale { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 15px; font-weight: 500; }
.result-card .notice { margin-top: 20px; }
.result-section { margin-top: 30px; }
.result-section h3 { margin: 0 0 4px; font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.result-section > p { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); max-width: 68ch; }
.items { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.items li { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.item-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-weight: 650; font-size: 17px; line-height: 1.35; }
.item-cite { margin: 6px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }
.item-why { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 72ch; }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--pill); background: var(--hover); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0.02em; }
.tag-likely { background: var(--ink); color: var(--paper); }
.tag-possible { background: var(--warn-bg); color: var(--warn); }
.tag-calendar { background: var(--accent-soft); color: var(--accent); }
.tag-event { background: var(--hover); color: var(--mute); }
.steps { margin: 12px 0 0; padding-left: 1.4em; max-width: 74ch; }
.steps li { padding: 6px 0 6px 4px; font-size: 16px; line-height: 1.58; }
.steps li::marker { color: var(--accent); font-weight: 600; }
.answers { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.answers li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.answers .a-v { font-weight: 650; white-space: nowrap; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 30px; }
.print-only { display: none; }

/* Federal deadlines, and the two things a visitor can do with a result */
.deadline-group { margin: 22px 0 0; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.item-when { margin: 6px 0 0; font-size: 15.5px; line-height: 1.55; max-width: 72ch; }
.item-note { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 72ch; }
.items details { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; }
.items summary { cursor: pointer; font-weight: 600; padding: 6px 0; color: var(--accent); }
.items blockquote { margin: 6px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent-line); border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--ink-2); max-width: 72ch; }
.result-extra { margin-top: 30px; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius-card); background: var(--paper); border: 1px solid var(--line-soft); }
.result-extra h3 { margin: 0; font-weight: 600; font-size: 19px; line-height: 1.25; }
.result-extra > p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.58; color: var(--ink-2); max-width: 72ch; }
.result-extra .inquiry-grid { margin-top: 16px; }
.cal-help { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--mute); max-width: 62ch; }
.result-extra > .btn { margin-top: 16px; }
.result-extra .inquiry-done { margin-top: 14px; }
.mail-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 14px; }
.mail-row .inquiry-field { flex: 1 1 260px; }
.result-extra .inquiry-note { margin-top: 12px; }

/* ---------- Discuss with Forteris ---------- */

.talk { padding: 8px 0 56px; }
.talk-includes { margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 15px; line-height: 1.5; }

/* ---------- What the check covers ---------- */

.covers { position: relative; padding: clamp(56px, 6vw, 88px) 0; background: rgba(230, 236, 232, 0.88); border-top: 1px solid var(--line-soft); }
.covers h2 { margin: 0; font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.028em; }
.covers h3 { margin: 34px 0 0; font-weight: 600; font-size: 19px; }
.covers p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.6; max-width: 68ch; color: var(--ink-2); }
.covers-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.covers-list li { padding: 13px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line-soft); border-radius: 10px; font-size: 15.5px; line-height: 1.5; transition: background 0.15s; }
.covers-list li:hover { background: var(--hover); }
.covers-list .c-label { font-weight: 650; }
.covers-list .c-rule { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }
.outside { margin: 12px 0 0; padding-left: 1.2em; max-width: 72ch; }
.outside li { padding: 5px 0; font-size: 16px; line-height: 1.55; }

@media (min-width: 720px) {
  .covers-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 28px; }
}
@media (max-width: 640px) {
  fieldset.q.follow { margin-left: 2px; padding-left: 12px; }
  fieldset.q.is-missing { margin-left: -8px; padding-left: 6px; }
  .check-actions { border-radius: var(--radius-card); }
  .check-actions .btn { flex: 1 1 100%; }
  .result-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Print: the result only, as a clean page someone can file or forward. */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  /* The wordmark stays at the top of the printed result, in ink on white. */
  .masthead { display: block !important; background: #fff !important; color: #000 !important; }
  .masthead-inner { padding: 0 0 6mm !important; }
  .masthead-brand { color: #000 !important; }
  .masthead-brand img, .masthead-right, .menu-btn { display: none !important; }
  .masthead-sub { color: #333 !important; }
  .skip-link, .navbar, .page-rings, .intro .lede, .intro > .wrap > .notice, .check, .talk, .covers, .result-actions, .result-extra, .result-stale, .site-foot-top, .site-foot-bottom { display: none !important; }
  .intro { border: 0; padding: 0 0 6mm; }
  .intro h1 { font-size: 22pt; max-width: none; }
  .intro .eyebrow { display: none; }
  .result { padding: 4mm 0 0; }
  .result-card { box-shadow: none; border: 1px solid #888; border-radius: 0; background: #fff; padding: 6mm; }
  .result-card::before { height: 4px; }
  .result-card h2 { font-size: 20pt; }
  .notice { background: #fff; border: 1px solid #888; }
  .tag { border: 1px solid #555; background: #fff !important; color: #000 !important; }
  .items li, .steps li, .answers li { break-inside: avoid; }
  .print-only { display: block; margin: 18px 0 0; font-size: 9.5pt; color: #333; }
  .site-foot { background: #fff; color: #000; }
  .site-foot-inner { padding: 8mm 0 0; }
  .site-foot-disclaimer { color: #333 !important; font-size: 8.5pt; }
  a { color: inherit; text-decoration: none; }
}
