.seo-public {
  /* Every shell page also links the built client stylesheet, which styles the
     shared header and footer and sets the app's root font size (15px). The
     page body keeps its own scale: sizes below use this base, not rem. */
  --seo-rem: 16px;
  --public-green: #214e43;
  --public-paper: #faf8f2;
  --public-rust: #a45437;
  --public-line: color-mix(
    in srgb,
    var(--public-green) 20%,
    var(--public-paper)
  );
  --public-muted: color-mix(
    in srgb,
    var(--public-green) 82%,
    var(--public-paper)
  );
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--public-green);
  background: var(--public-paper);
  line-height: 1.6;
  font-size: 17px;
}
.seo-public * {
  box-sizing: border-box;
}
body:has(.seo-public) {
  margin: 0;
}
/* Body links. The shared header and footer (.f-header, .f-footer) are styled
   by the client stylesheet and are left out of every body rule in this file;
   :where() keeps each selector at its original specificity. The underline is
   stated because the client stylesheet resets it on every anchor. */
.seo-public a:where(:not(.f-header *, .f-footer *)) {
  color: var(--public-green);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.seo-public a:where(:not(.f-header *, .f-footer *)):hover {
  text-decoration-thickness: 2px;
}
.seo-public a:where(:not(.f-header *, .f-footer *)):focus-visible,
.seo-public button:where(:not(.f-header *)):focus-visible,
.seo-public input:focus-visible,
.seo-public select:focus-visible {
  outline: 3px solid var(--public-rust);
  outline-offset: 4px;
}
.seo-public .skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--public-paper);
  padding: 12px;
}
.seo-public .skip:focus {
  top: 8px;
  z-index: 10;
}
.seo-public .safety {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: color-mix(in srgb, var(--public-green) 7%, var(--public-paper));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px max(20px, calc((100vw - 1080px) / 2));
  font-size: calc(var(--seo-rem) * 0.82);
}
.seo-public .safety a {
  white-space: nowrap;
  font-weight: 700;
}
.seo-public .safety [data-quick-exit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
/* The plain text header and footer below belong to the public-profile shell
   (server/public/render.js), which shares this file. The product shell's
   .f-header and .f-footer are excluded so they render as the app draws them. */
.seo-public header:where(:not(.f-header)),
.seo-public main,
.seo-public footer:where(:not(.f-footer)) {
  max-width: 1180px;
  padding: 24px;
  margin: auto;
}
.seo-public header:where(:not(.f-header)) {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.seo-public header:where(:not(.f-header)) > a {
  font-family: var(--aidc-font-display, "Iowan Old Style", Georgia, serif);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}
.seo-public nav:where(:not(.f-header *, .f-footer *)) {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.seo-public header:where(:not(.f-header)) nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.seo-public header:where(:not(.f-header)) nav a:hover {
  text-decoration: underline;
}
.seo-public main {
  padding-top: 8px;
}
/* Under the product header, anchor and focus targets clear both sticky bars. */
.seo-public:has(> .f-header) main,
.seo-public:has(> .f-header) main [id] {
  scroll-margin-top: calc(var(--seo-safety-height, 64px) + 76px);
}
/* The client stylesheet zeroes the top margin of paragraphs and headings;
   the page body keeps the browser's paragraph rhythm. */
.seo-public p:where(:not(.f-footer *)) {
  margin-top: 1em;
}
.seo-public h1,
.seo-public h2,
.seo-public h3 {
  font-family: var(--aidc-font-display, "Iowan Old Style", Georgia, serif);
  line-height: 1.2;
  font-weight: 550;
}
.seo-public h1 {
  font-size: clamp(
    calc(var(--seo-rem) * 2.1),
    4vw,
    calc(var(--seo-rem) * 3.25)
  );
  letter-spacing: -0.035em;
  max-width: 850px;
  margin: 0.5em 0 0.35em;
}
.seo-public h2 {
  font-size: calc(var(--seo-rem) * 1.75);
  letter-spacing: normal;
  margin: 1.35em 0 0.6em;
}
.seo-public h3 {
  font-size: calc(var(--seo-rem) * 1.12);
  margin-top: 1em;
}
.seo-public em {
  font-family: Georgia, serif;
  color: var(--public-green);
  font-weight: 400;
}
.seo-public .lead {
  font-size: calc(var(--seo-rem) * 1.2);
}
.seo-public .hero {
  padding: 32px 0;
}
.seo-public .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: calc(var(--seo-rem) * 0.78);
  font-weight: 700;
  /* The client stylesheet has its own .eyebrow; keep this shell's. */
  color: inherit;
  margin-bottom: revert;
}
.seo-public .notice {
  background: color-mix(in srgb, var(--public-green) 5%, var(--public-paper));
  border-left: 3px solid var(--public-green);
  border-radius: 8px;
  padding: 14px 18px;
  /* The client stylesheet has its own .notice (smaller, grey, with margins).
     Keep this shell's notice at the body's colour, size and spacing. */
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: revert;
}
.seo-public .notice p {
  margin: 0.3em 0 0;
  font-size: calc(var(--seo-rem) * 0.9);
  line-height: 1.5;
}
.seo-public .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.seo-public .grid:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.seo-public .card {
  padding: 24px;
  border: 1px solid var(--public-line);
  border-radius: 14px;
  background: var(--public-paper);
  box-shadow:
    0 1px 2px rgb(33 78 67 / 0.04),
    0 8px 24px rgb(33 78 67 / 0.04);
}
.seo-public .card > h1,
.seo-public .card > h2,
.seo-public .card > h3 {
  margin-top: 0;
}
.seo-public .card > h2 {
  font-size: calc(var(--seo-rem) * 1.5);
  margin-bottom: 0.6em;
}
.seo-public .card p {
  margin: 0.65em 0;
}
.seo-public .card p:last-child {
  margin-bottom: 0;
}
.seo-public .state-list {
  columns: 3;
  list-style: none;
  padding: 0;
}
.seo-public .state-list li {
  break-inside: avoid;
  margin-bottom: 12px;
}
.seo-public .guide-list li {
  margin-bottom: 12px;
}
.seo-public .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.seo-public fieldset {
  border: 1px solid var(--public-line);
  border-radius: 12px;
  margin: 22px 0;
  padding: 22px;
  min-width: 0;
}
.seo-public legend {
  font-weight: 700;
  padding: 0 8px;
}
.seo-public label {
  display: block;
  font-size: calc(var(--seo-rem) * 0.92);
  font-weight: 600;
}
.seo-public label small {
  display: block;
  font-weight: 400;
  color: var(--public-muted);
  font-size: calc(var(--seo-rem) * 0.875);
  margin-top: 7px;
}
/* The third selector outranks the client stylesheet's own text-input rule,
   so the server form keeps this look on every page. */
.seo-public input,
.seo-public select,
.seo-public input:not([type="checkbox"]):not([type="radio"]) {
  font: inherit;
  color: inherit;
  width: 100%;
  display: block;
  border: 1px solid
    color-mix(in srgb, var(--public-green) 55%, var(--public-paper));
  border-radius: 8px;
  background: var(--public-paper);
  padding: 12px;
  margin-top: 7px;
}
.seo-public button:where(:not(.f-header *)) {
  font: inherit;
  border: 0;
  border-radius: 8px;
  padding: 14px 22px;
  background: var(--public-green);
  color: var(--public-paper);
  cursor: pointer;
  font-weight: 700;
}
.seo-public .amount {
  font-size: calc(var(--seo-rem) * 1.7);
  font-weight: 700;
}
.seo-public .result {
  font-size: calc(var(--seo-rem) * 0.86);
}
.seo-public .result p {
  overflow-wrap: anywhere;
}
.seo-public .preserve-lines {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.seo-public footer:where(:not(.f-footer)) {
  border-top: 1px solid var(--public-line);
  margin-top: 48px;
  font-size: 0.84rem;
  color: var(--public-muted);
}
.seo-public li:where(:not(.f-footer *)) {
  margin-bottom: 8px;
}

/* Shared product header and footer.
   server/seo/render.js emits the markup and class names of
   src/app/AppHeader.jsx and src/app/SiteFooter.jsx, and the client stylesheet
   (src/app/tokens.css + src/app/front.css, built into /assets/index-*.css)
   draws them. The rules here only seat that chrome in this shell. */
.seo-public .f-header,
.seo-public .f-footer {
  /* The type the app's own root hands the chrome (15px / 1.55), instead of
     this shell's 17px / 1.6 body. */
  font-family: var(--aidc-font-body, inherit);
  font-size: 1rem;
  line-height: 1.55;
}
/* The server safety bar is sticky, not fixed like the app's, and it is taller.
   The header sticks directly beneath it: public.js publishes the measured
   height, and 64px is the bar's height when scripts are off. */
.seo-public .f-header {
  top: var(--seo-safety-height, 64px);
  /* The ink colour the app's page wrappers hand the header. */
  color: var(--aidc-ink, inherit);
}
/* Search is a link on server pages (the Cmd-K palette exists only in the app).
   The client rule for nav links outranks .f-search-btn, so restate the
   search control's own colour, size and weight. */
.seo-public .f-nav a.f-search-btn {
  color: var(--aidc-ink-faint);
  font-size: var(--aidc-fs-small);
  font-weight: 400;
  gap: 0.55rem;
}
.seo-public .f-nav a.f-search-btn:hover {
  color: var(--aidc-ink-soft);
}
/* The menu button holds both icons in spans; block-level icons stay centred. */
.seo-public .f-menu-btn svg {
  display: block;
}
.seo-public .f-footer {
  margin-top: 48px;
}
@media (max-width: 700px) {
  .seo-public header:where(:not(.f-header)) {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-top: 14px;
    padding-bottom: 12px;
  }
  .seo-public nav:where(:not(.f-header *, .f-footer *)) {
    gap: 4px 22px;
  }
  .seo-public .grid,
  .seo-public .grid:has(> :nth-child(4):last-child),
  .seo-public .form-grid {
    grid-template-columns: 1fr;
  }
  .seo-public .state-list {
    columns: 2;
  }
  .seo-public header:where(:not(.f-header)),
  .seo-public main,
  .seo-public footer:where(:not(.f-footer)) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .seo-public .hero {
    padding: 20px 0;
  }
  .seo-public h1 {
    font-size: calc(var(--seo-rem) * 2.1);
  }
  .seo-public .safety {
    gap: 10px;
    padding: 10px 16px;
    font-size: calc(var(--seo-rem) * 0.75);
  }
  .seo-public .card {
    padding: 18px;
  }
  .seo-public fieldset {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* The page's source line (ai/STANDARD.md): quiet, at the end of the body. */
.seo-public .page-source {
  margin-top: calc(2.5 * var(--seo-rem, 16px));
  font-size: calc(0.8125 * var(--seo-rem, 16px));
  color: #5b6d66;
}
