@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lexend-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lexend Fallback";
  src: local("Arial");
  size-adjust: 112%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Noto Sans Fallback";
  src: local("Arial");
  size-adjust: 97%;
  ascent-override: 105%;
  descent-override: 35%;
  line-gap-override: 0%;
}

:root {
  --canvas: #4ce8d2;
  --lemon: #fff7bf;
  --aqua: #cff8ef;
  --ink: #103c3c;
  --ink-hover: #082d2d;
  --secondary: #345957;
  --line: #427c75;
  --neon: #dfff59;
  --dot: #ff753d;
  --amber: #705000;
  --error: #8d252e;
  --font: "Noto Sans", "Noto Sans Fallback", sans-serif;
  --display: "Lexend", "Lexend Fallback", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--lemon);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--lemon);
}
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid CanvasText; box-shadow: none; }
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--lemon);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 8px; }

.wrap {
  width: min(1168px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header { background: transparent; }
.bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mark { display: block; flex: 0 0 auto; }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.menu-btn {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 700;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.site-nav a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 16px;
  line-height: 1.4;
}
.site-nav a[aria-current="page"] {
  font-weight: 700;
  border-bottom: 8px solid var(--neon);
  text-decoration: none;
}
.site-nav a[href="/about/"] {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--lemon);
  text-decoration: underline;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); }
h1 {
  font-size: 30px;
  line-height: 1.12;
  margin: 12px 0 8px;
  max-width: 22em;
}
h2 { font-size: 24px; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.25; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-hover); }
.prose p, .prose li { max-width: 66ch; }
.prose .source-list, .prose .source-list li, .prose .table-scroll { max-width: none; }
.prose a { overflow-wrap: anywhere; }

.notice, .caution {
  background: var(--lemon);
  color: var(--ink);
  border: 2px solid var(--amber);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: none;
}
.notice { font-size: 17px; line-height: 1.55; margin: 0; }
.session-note {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.4;
  max-width: 66ch;
}
.progress-compact, .progress-full { margin: 12px 0 0; }
.progress-compact {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  background: var(--lemon);
  border: 2px solid var(--ink);
  border-bottom: 8px solid var(--neon);
  border-radius: 12px;
  font-weight: 700;
}
.progress-full {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  list-style: none;
  margin: 12px 0 0;
  padding: 6px;
  min-height: 56px;
  background: var(--lemon);
  border: 2px solid var(--ink);
  border-radius: 12px;
}
.progress-full button {
  appearance: none;
  min-height: 44px;
  padding: 4px 8px;
  background: transparent;
  border: 0;
  border-bottom: 8px solid transparent;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
}
.progress-full button[aria-current="step"] {
  color: var(--ink);
  border-bottom-color: var(--neon);
}
.progress-full button:disabled {
  opacity: 1;
  color: var(--secondary);
  background: transparent;
  border-color: transparent;
  cursor: not-allowed;
}

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.466fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}
.tool, .panel, .support-card, .choice, .takeaway-list, .next-step, .directory, .result-card {
  position: relative;
}
.tool {
  background: var(--lemon);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.tool::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-top: 8px solid var(--neon);
  border-left: 8px solid var(--neon);
  pointer-events: none;
}
.tool h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; padding-left: 28px; }
.tool.result-mode h2 { font-size: 28px; line-height: 1.2; }
.panel, .support-card {
  background: var(--lemon);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 16px;
}
.panel { display: flex; flex-direction: column; }
.panel .caution { margin-top: auto; }
.support-card.alt, .panel { background: var(--lemon); }
.support-card { background: var(--aqua); }
.dots { display: flex; gap: 6px; margin: 0 0 8px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.question-list, .takeaway-list { margin: 0; padding-left: 1.2em; }
.question-list li, .takeaway-list li { margin: 8px 0; }
.question-list li::marker, .takeaway-list li::marker { color: var(--dot); }
.field { display: flex; flex-direction: column; margin-top: 12px; }
.stage[data-stage="1"] > .field:first-child { margin-top: 0; }
label, legend, .lbl {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  min-height: 24px;
}
input[type="text"], input[type="search"], input[type="date"], input[type="month"], input[type="number"], select {
  width: 100%;
  min-height: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--aqua);
  color: var(--ink);
  padding: 0 12px;
  font-size: 16px;
  line-height: 1.4;
}
.field-note { margin: 8px 0 0; font-size: 16px; line-height: 1.4; }
.actions { display: flex; flex-wrap: nowrap; gap: 12px; margin-top: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}
a.btn { text-decoration: underline; text-underline-offset: 3px; }
.btn-primary {
  min-height: 48px;
  background: var(--ink);
  color: var(--lemon);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-hover); color: var(--lemon); }
.btn-secondary { background: var(--aqua); color: var(--ink); }
.btn-secondary:hover { background: var(--lemon); color: var(--ink); }
.actions .btn-primary { flex: 1; }
button:disabled, .btn:disabled {
  opacity: 1;
  color: var(--secondary);
  background: var(--aqua);
  border-color: var(--line);
  cursor: not-allowed;
}
.intro { font-size: 17px; line-height: 1.55; }
fieldset {
  border: 2px solid var(--line);
  border-radius: 12px;
  margin: 12px 0 0;
  padding: 8px 12px 12px;
}
legend { padding: 0 4px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--aqua);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}
.choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 -8px 0 var(--neon);
}
.choice input { width: 20px; height: 20px; accent-color: var(--ink); }
.form-errors, .error-list {
  background: var(--lemon);
  color: var(--error);
  border: 2px solid var(--error);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 12px;
}
.form-errors:empty { display: none; }
.error-word { margin: 0 0 8px; font-weight: 700; color: var(--error); }
.form-errors a { color: var(--error); }
.review-list, .plain-list { margin: 0; padding-left: 1.2em; }
.review-row { margin: 8px 0; }
.result-card {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 16px;
  background: var(--lemon);
  margin-bottom: 12px;
}
.result-card.mode-may-be-exempt { background: var(--aqua); }
.result-card.mode-needs-confirmation { border-color: var(--amber); }
.result-kicker {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--secondary);
}
.result-summary { font-size: 17px; line-height: 1.55; max-width: 66ch; }
.result-status { margin-top: 0; }
.result-card .notice { margin: 0 0 8px; }
.result-card > h3 { margin: 4px 0 8px; }
.result-actions { margin-top: 4px; }
.result-details {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 2px solid var(--line);
}
@media (max-width: 700px) {
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; flex: 1 1 auto; }
}
.hours-total {
  font-family: var(--font);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin: 0 0 8px;
}
.log-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 12px;
}
.summary {
  margin-top: 16px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--aqua);
}
.uncertainty { margin-top: 32px; }
.takeaways {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.takeaways > h2 { grid-column: 1 / -1; margin-bottom: 0; }
.takeaway-list, .next-step {
  background: var(--lemon);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 16px 16px 16px 32px;
}
.next-step { background: var(--aqua); padding: 16px; }
.next-step h3 { margin-top: 0; }
.article > section { margin-top: 48px; }
.directory {
  margin-top: 32px;
  background: var(--aqua);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 16px;
}
.state-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.state-list li {
  background: var(--lemon);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.state-list li:nth-child(even) { background: var(--aqua); }
.state-name { margin: 0 0 4px; font-weight: 700; }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 12px 0 16px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  padding: 0 0 8px;
  color: var(--ink);
}
th {
  background: var(--ink);
  color: var(--lemon);
  text-align: left;
  font-weight: 700;
  padding: 12px 16px;
  height: 52px;
}
td {
  padding: 12px 16px;
  height: 52px;
  vertical-align: top;
  border-bottom: 2px solid var(--line);
}
tbody tr:nth-child(odd) { background: var(--lemon); }
tbody tr:nth-child(even) { background: var(--aqua); }
td.num, th.num { text-align: right; }
figure { margin: 16px 0 0; max-width: 800px; }
figure picture { display: block; }
figure img {
  display: block;
  width: 800px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 800 / 450;
  object-fit: contain;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff7bf;
}
figcaption { margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--secondary); max-width: 66ch; }
.ext { font-weight: 400; }

.site-footer {
  margin-top: 64px;
  background: var(--ink);
  color: var(--lemon);
  padding: 32px 0 48px;
}
.site-footer a, .site-footer a:visited { color: var(--lemon); }
.legal { font-size: 17px; line-height: 1.55; max-width: 70ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; }
dialog {
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--lemon);
  color: var(--ink);
  padding: 24px;
  max-width: min(520px, calc(100% - 32px));
}
dialog::backdrop { background: rgba(16, 60, 60, 0.45); }
.accent-flash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 4px var(--neon);
  opacity: 0;
  pointer-events: none;
}
.print-only { display: none; }

@media (min-width: 720px) {
  .log-grid { grid-template-columns: 1fr 1fr 160px; }
}
@media (min-width: 960px) {
  .site-nav a.nav-more { display: none; }
  h1 { font-size: 44px; margin-top: 32px; }
  h2 { font-size: 28px; }
  .tool, .panel, .support-card, .directory, .takeaway-list, .next-step { padding: 24px; }
  .takeaway-list { padding: 24px 24px 24px 36px; }
  .tool h2 { font-size: 28px; margin-bottom: 12px; }
  .uncertainty { margin-top: 48px; }
  .article > section, .takeaways { margin-top: 48px; }
}
@media (max-width: 959px) {
  .menu-btn { display: inline-flex; }
  .nav-toggle {
    width: 44px;
    height: 44px;
    right: 0;
    top: 6px;
    pointer-events: auto;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: var(--lemon);
    border: 2px solid var(--ink);
    border-radius: 12px;
    padding: 8px;
    margin: 0 0 8px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:focus-visible ~ .menu-btn {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--lemon);
  }
  .bar { flex-wrap: wrap; }
  .bento, .bento-lower, .takeaways { grid-template-columns: 1fr; }
  .site-nav a[href="/about/"] { border-radius: 8px; }
}
@media (max-width: 700px) {
  .progress-full { display: none; }
  .progress-compact { display: flex; }
  .actions { flex-wrap: wrap; }
  .actions .btn { flex: 1 1 140px; }
  table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  table.stack tr {
    display: block;
    margin: 0 0 12px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--lemon);
  }
  table.stack td, table.stack th[scope="row"] {
    display: block;
    height: auto;
    border-bottom: 2px solid var(--line);
  }
  table.stack td::before {
    content: attr(data-th);
    display: block;
    font-weight: 700;
  }
  .article > section, .takeaways { margin-top: 32px; }
  .hours-actions { display: flex; gap: 8px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .no-print, .editor, .menu-btn { display: none !important; }
  .tool { box-shadow: none; }
  a { color: #000; }
  .print-only { display: block !important; }
  body.print-log .article,
  body.print-log .takeaways,
  body.print-log .directory { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
