/* Mobile first. One stylesheet, system fonts, no layout shift from webfonts. */

:root {
  --navy: #0f172a;
  --navy-deep: #0f172a;
  --ink: #0f172a;
  --muted: #334155;
  --subtitle: #334155;
  --paper: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-bright: #0f766e;
  --link: #0f766e;
  --link-hover: #115e59;
  --on-dark: #f8fafc;
  --accent-on-dark: #5eead4;
  --focus-on-dark: #5eead4;
  --hero-end: #1e293b;
  --button-hover: #1e293b;
  --badge-bg: var(--accent);
  --badge-ink: #f8fafc;
  --badge-border: transparent;
  --checked-bg: #f0fdfa;
  --checked-ink: #0f172a;
  --flag-bg: #f0fdfa;
  --flag-ink: #115e59;
  --input-bg: #ffffff;
  --row: #f1f5f9;
  --row-soft: rgba(15, 23, 42, 0.04);
  --suggest-bg: #ffffff;
  --suggest-ink: #0f172a;
  --suggest-muted: #334155;
  --suggest-hover: #e2e8f0;
  --warn-bg: #fffbeb;
  --warn-ink: #1c1917;
  --warn-strong: #9a3412;
  --warn-border: #b45309;
  --warn-alert-bg: #fff7ed;
  --warn-alert-border: #c2410c;
  --mark-bg: #ccfbf1;
  --pii: #9a3412;
  --error: #9f1239;
  --header: 3.5rem;
  --header-offset: calc(var(--header) + env(safe-area-inset-top, 0px));
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

.wrap {
  width: min(68rem, calc(100% - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  hyphens: none;
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  scroll-margin-top: 5.5rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

p,
ul,
ol {
  margin: 0.85rem 0;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
summary:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.menu-button:focus-visible,
.guides-toggle:focus-visible,
.checklists-toggle:focus-visible,
.more-toggle:focus-visible,
.country-toggle:focus-visible,
.menu-regions button:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 80;
  transform: translateY(-180%);
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #f8fafc;
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  color: #f8fafc;
  text-decoration: none;
  min-height: 44px;
}

.brand:visited {
  color: #f8fafc;
}

.logo {
  display: block;
  width: auto;
  height: 32px;
  aspect-ratio: 2680 / 2512;
  flex: none;
  max-width: none;
}

.site-name,
.footer-name {
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-name {
  font-size: 1.2rem;
  color: inherit;
  white-space: nowrap;
}

.footer-name {
  margin: 0;
  color: #f8fafc;
  font-size: 1.35rem;
}

.menu-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  color: #f8fafc;
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.35);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.menu-chevron {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
  transition: transform 200ms ease;
}

.nav-toggle:checked + .menu-button .menu-chevron {
  transform: translateY(-0.1rem) rotate(225deg);
}

.menu-close {
  display: none;
}

.nav-toggle:focus-visible + .menu-button {
  outline: 3px solid var(--focus-on-dark);
  outline-offset: 3px;
}

.nav-toggle:checked + .menu-button {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle:checked + .menu-button .menu-open {
  display: none;
}

.nav-toggle:checked + .menu-button .menu-close {
  display: inline;
}

@keyframes menu-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.primary {
  display: none;
}

.find-base {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0 0 0.35rem;
}

.find-base input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0.4rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 1rem;
}

.find-base input::placeholder {
  color: #334155;
  opacity: 1;
}

.find-base input:focus-visible,
.find-base button:focus-visible {
  outline: 3px solid var(--focus-on-dark);
  outline-offset: 2px;
}

.find-base svg {
  display: block;
  width: 18px;
  height: 18px;
}

.find-base button {
  position: static;
  flex: 0 0 44px;
  align-self: center;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.hero-search,
.base-search,
.find-base {
  position: relative;
}

.has-suggest:focus-within {
  z-index: 6;
}

.suggest-list {
  position: absolute;
  z-index: 6;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--suggest-bg);
  color: var(--suggest-ink);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  max-height: min(24rem, 70vh);
  overflow: auto;
}

.suggest-list[hidden] {
  display: none;
}

.suggest-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  min-height: 48px;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  color: var(--suggest-ink);
  text-decoration: none;
}

.suggest-list [aria-selected="true"] a,
.suggest-list a:hover,
.suggest-list a:focus-visible {
  background: var(--suggest-hover);
  color: var(--suggest-ink);
}

.suggest-name {
  font-weight: 750;
  line-height: 1.25;
}

.suggest-label {
  color: var(--suggest-muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
}

.suggest-empty {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0.75rem;
  color: var(--suggest-muted);
  font-weight: 650;
}

.primary-links {
  display: flex;
  flex-direction: column;
}

.guides-toggle,
.checklists-toggle,
.more-toggle,
.country-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: rgba(255, 255, 255, 0.001);
  color: #f8fafc;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.guides-panel,
.checklists-panel,
.more-panel,
.country-panel {
  margin: 0;
}

.guides-panel[hidden],
.checklists-panel[hidden],
.more-panel[hidden],
.country-panel[hidden] {
  display: none;
}

/* An open panel stays visible even if another display rule beats [hidden]. */
.guides-panel.is-open,
.checklists-panel.is-open,
.more-panel.is-open {
  display: block !important;
}

.country-panel ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.15rem;
}

.guides-panel > .menu-lead,
.country-panel a,
.checklists-panel a,
.more-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.25rem 0.15rem 0.25rem 0.9rem;
  color: #f8fafc;
  font-weight: 600;
  text-decoration: none;
}

.menu-lead {
  border-bottom: 1px solid rgba(248, 250, 252, 0.16);
  font-weight: 700;
}

.more-panel .nav-divider {
  margin-inline: 0.9rem;
}

.menu-regions {
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem 0.15rem 0.65rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.16);
}

.menu-regions button {
  appearance: none;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(248, 250, 252, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #f8fafc;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.menu-regions button[aria-pressed="true"] {
  background: #f8fafc;
  border-color: #f8fafc;
  color: var(--navy);
}

.guides-region-hub {
  border-bottom: 1px solid rgba(248, 250, 252, 0.16);
}

.menu-note {
  padding: 0.15rem 0.9rem 0.45rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.35;
}

.group-note {
  margin: -0.15rem 0 0.35rem;
  color: var(--muted);
}

.primary-links a,
.primary-links a:visited {
  color: #f8fafc;
  text-decoration: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 650;
}

/* display:flex on these links beats the hidden attribute, so region filtering has to win. */
.guides-panel [hidden],
.primary-links a[hidden],
.guides-region-hub[hidden],
[data-menu-group][hidden] {
  display: none !important;
}

.primary-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.nav-divider {
  height: 1px;
  margin: 0.55rem 0.15rem;
  background: rgba(248, 250, 252, 0.32);
  border: 0;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(248, 250, 252, 0.45);
  background: transparent;
  color: #f8fafc;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--focus-on-dark);
  outline-offset: 3px;
}

.theme-icons {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
}

.theme-toggle-bar .theme-icons {
  view-transition-name: theme-icon-bar;
}

.theme-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.theme-icons .theme-icon {
  position: absolute;
  inset: 0;
  transition: opacity 350ms ease, transform 350ms ease;
}

.theme-icons .icon-sun {
  opacity: 0;
  transform: rotate(-80deg) scale(0.72);
}

.theme-icons .icon-moon {
  opacity: 1;
  transform: none;
}

.theme-icons .icon-moon-solid {
  opacity: 0;
  transform: rotate(-80deg) scale(0.72);
}

html[data-theme="dark"] .theme-icons .icon-sun,
html[data-theme="dark"] .theme-icons .icon-moon {
  opacity: 0;
  transform: rotate(80deg) scale(0.72);
}

html[data-theme="dark"] .theme-icons .icon-moon-solid {
  opacity: 1;
  transform: none;
}

.theme-label-light {
  display: none;
}

html[data-theme="dark"] .theme-label-dark {
  display: none;
}

html[data-theme="dark"] .theme-label-light {
  display: block;
}

html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition-property: background-color, color, border-color;
  transition-duration: 350ms;
  transition-timing-function: ease;
}

html.theme-switching .theme-icons .theme-icon {
  transition: opacity 350ms ease, transform 350ms ease;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 350ms;
  animation-timing-function: ease;
}

::view-transition-old(theme-icon-bar) {
  animation: theme-icon-out 350ms ease both;
}

::view-transition-new(theme-icon-bar) {
  animation: theme-icon-in 350ms ease both;
}

@keyframes theme-icon-out {
  to {
    opacity: 0;
    transform: rotate(80deg) scale(0.72);
  }
}

@keyframes theme-icon-in {
  from {
    opacity: 0;
    transform: rotate(-80deg) scale(0.72);
  }
}

.theme-toggle-bar {
  display: inline-flex;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.theme-toggle-bar .theme-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.primary-links > a {
  padding-inline: 0.2rem;
}

@media (max-width: 879px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
  }

  body {
    padding-top: var(--header-space, var(--header-offset));
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: minmax(var(--header), auto);
    align-items: center;
    column-gap: 0.45rem;
  }

  .brand,
  .theme-toggle-bar,
  .menu-button,
  .nav-toggle,
  .header-inner > .primary {
    grid-row: 1;
  }

  .brand,
  .nav-toggle,
  .header-inner > .primary {
    grid-column: 1;
  }

  .theme-toggle-bar {
    grid-column: 2;
    align-self: center;
  }

  .menu-button {
    grid-column: 3;
  }

  .brand,
  .menu-button,
  .theme-toggle-bar {
    position: relative;
    z-index: 2;
  }

  html.nav-open,
  html.nav-open body {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .nav-toggle:checked ~ .primary,
  #site-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--menu-top, var(--header-offset));
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    background: var(--navy-deep);
    padding: 0.65rem max(1rem, env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    box-shadow: none;
    animation: menu-in 200ms ease;
  }

  body > #site-menu.is-open {
    z-index: 50;
  }

  /* Scroll the inner wrapper, not the fixed panel. iOS Safari drops taps
     on buttons in the lower part of a position:fixed overflow:auto box. */
  #site-menu.is-open .menu-scroll,
  .nav-toggle:checked ~ .primary .menu-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
  }

  .nav-toggle:checked ~ .primary .primary-links,
  #site-menu.is-open .primary-links {
    gap: 0;
  }

  .hero {
    padding: 1.15rem 0 1.3rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    margin-bottom: 0.4rem;
  }

  .hero-lead {
    font-size: 1.02rem;
    line-height: 1.45;
    margin-bottom: 0.8rem;
  }

  .eyebrow {
    margin-bottom: 0.35rem;
  }

  .hero-search {
    flex-wrap: nowrap;
  }

  .hero-search input {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hero-search .button {
    flex: 0 0 auto;
    padding-inline: 0.9rem;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }
}

.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--hero-end) 100%);
  color: var(--on-dark);
  padding: 3.25rem 0 3.5rem;
}

.hero h1,
.hero h2,
.eyebrow,
.hero-lead {
  color: var(--on-dark);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}

.hero-lead {
  max-width: 56rem;
  margin: 0 0 1.4rem;
  color: #e2e8f0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.hero-next {
  margin: 0.95rem 0 0;
}

.hero-next a,
.hero-next a:visited {
  color: #f8fafc;
  font-weight: 650;
  text-underline-offset: 0.22em;
}

.hero .button {
  background: var(--accent);
  color: #fff;
}

.hero .button:visited {
  color: #fff;
}

.hero .button:hover {
  background: var(--accent-hover);
}

.hero .button:focus-visible {
  outline-color: var(--focus-on-dark);
}

.hero-search,
.base-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.hero-search {
  max-width: 40rem;
}

.hero-search label,
.base-search label {
  font-weight: 700;
}

.hero-search label {
  flex-basis: 100%;
  color: #f8fafc;
}

.base-search label {
  display: block;
  margin-bottom: 0.4rem;
}

.hero-search input,
.base-search input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font: inherit;
}

.hero-search input {
  border: 0;
  background: #fff;
  color: #0f172a;
}

.base-search input {
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
}

.hero-search input:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 2px;
}

.base-search input:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
}

.hero-search input::placeholder {
  color: #334155;
  opacity: 1;
}

.base-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.filter-groups {
  display: grid;
  gap: 0.9rem;
  margin: 1.1rem 0 0.4rem;
}

.filter-label {
  margin: 0 0 0.4rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
  min-width: 0;
}

.chip {
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #f8fafc;
}

.chip:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.base-status {
  margin: 0.85rem 0 0.2rem;
  font-weight: 700;
  color: var(--muted);
}

.directory [hidden] {
  display: none !important;
}

.country-group h2 {
  margin-top: 1.6rem;
}

.country-group h2 a {
  color: var(--ink);
  text-decoration-color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.base-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.base-card {
  padding: 0.85rem 1rem 0.95rem;
  gap: 0.12rem;
}

.base-card h3 {
  font-size: 1.12rem;
}

.directory.page > :is(h2, form, .filter-groups, .base-status) {
  max-width: none;
}

.lede {
  padding: 2rem 0 0.25rem;
  color: var(--subtitle);
}

.lede p {
  max-width: 42rem;
}

.guide-head {
  padding-top: 1.75rem;
}

.kicker,
.card-area,
.card-meta,
.byline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.kicker {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.disclaimer,
.callout.verify,
.callout.warning,
.author-box,
.rate-card,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}

.disclaimer {
  border-left: 4px solid var(--navy);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  max-width: 42rem;
}

.disclaimer p,
.callout.verify p:first-child,
.callout.warning p:first-child,
.author-box p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.callout.verify {
  border-left: 4px solid var(--accent-bright);
  background: var(--flag-bg);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.callout.verify p:first-child,
.callout.warning p:first-child {
  margin-top: 0;
}

.callout.warning {
  border-left: 4px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.callout.warning strong {
  color: var(--warn-strong);
}

mark.verify {
  background: var(--mark-bg);
  color: var(--flag-ink);
  font-weight: 700;
  padding: 0.05em 0.2em;
  border-radius: 4px;
}

.flag {
  color: var(--flag-ink);
}

.author-box {
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
  max-width: 42rem;
}

.author-name {
  margin: 0;
  font-weight: 700;
}

.updated {
  margin: 0.35rem 0 0;
  font-weight: 700;
  color: var(--subtitle);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.rate-card {
  padding: 1.15rem 1.15rem 1.25rem;
  margin-top: 1.5rem;
}

.rate-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.rate-card h2 {
  margin: 0;
}

.last-checked {
  margin: 0;
  font-weight: 700;
  color: var(--checked-ink);
  background: var(--checked-bg);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.legend {
  padding-left: 1.15rem;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-top: 0.5rem;
}

table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

tbody tr:nth-child(even) {
  background: var(--row);
}

tr.is-unverified,
tr.is-unverified th,
tr.is-unverified td {
  background: var(--flag-bg);
}

tbody tr.is-unverified:nth-child(even),
tbody tr.is-unverified:nth-child(even) th,
tbody tr.is-unverified:nth-child(even) td {
  background: var(--mark-bg);
}

thead th {
  background: var(--navy);
  color: #f8fafc;
  font-weight: 650;
  font-size: 0.92rem;
  hyphens: none;
}

.rate-block {
  min-width: 0;
}

.rate-block h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.rate-pair {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.locality-block + .locality-block {
  margin-top: 1.4rem;
}

.locality-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 0.2rem 0 0.85rem;
  hyphens: none;
}

.locality-kicker {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.locality-code {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.locality-places {
  flex-basis: 100%;
  hyphens: none;
  overflow-wrap: normal;
}

.rate-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 0.9375rem;
}

.rate-table th,
.rate-table td {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.th-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.15;
}

.num .th-stack {
  align-items: flex-end;
}

.th-stack span {
  white-space: nowrap;
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
}

.rate-table thead th {
  position: sticky;
  top: var(--header-offset);
  z-index: 3;
  white-space: normal;
  line-height: 1.2;
}

.rate-table .grade,
.rate-table tbody th {
  white-space: normal;
  text-align: left;
  hyphens: none;
  overflow-wrap: normal;
}

.rate-table .num {
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rate-table tbody tr:hover,
.rate-table tbody tr:hover th,
.rate-table tbody tr:hover td {
  background: var(--suggest-hover);
}

.rate-note {
  max-width: 42rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  hyphens: none;
  overflow-wrap: break-word;
}

.oha-directory {
  width: 100%;
  max-width: 100%;
  margin: 0.4rem 0 1.4rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1rem;
}

.oha-directory th,
.oha-directory td {
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.oha-directory thead th {
  background: var(--navy);
  color: #f8fafc;
  font-weight: 700;
}

.oha-directory tbody tr:nth-child(even) th,
.oha-directory tbody tr:nth-child(even) td {
  background: var(--row-soft);
}

.oha-directory tbody th {
  width: 34%;
  font-weight: 750;
}

.oha-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.oha-links a,
.oha-directory tbody th a {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font-weight: 650;
  white-space: normal;
  line-height: 1.3;
}

.guide-body .table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.guide-body .table-scroll table {
  width: max-content;
  min-width: 100%;
  max-width: none;
}

.guide-body .table-scroll table.oha-directory {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

.guide-body .table-scroll th:first-child,
.guide-body .table-scroll td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--card);
  hyphens: none;
  white-space: nowrap;
}

.guide-body .table-scroll thead th:first-child {
  background: var(--navy);
  z-index: 2;
}

.guide-body .table-scroll tbody tr:nth-child(even) > :first-child {
  background: var(--row);
}

.guide-body .table-scroll tbody tr:hover > :first-child {
  background: var(--suggest-hover);
}

.jump-nav {
  position: sticky;
  top: var(--header-offset);
  z-index: 15;
  margin: 0 0 0.8rem;
  padding: 0.45rem 0 0.55rem;
  background: var(--paper);
  max-width: 100%;
  min-width: 0;
}

.jump-label {
  margin: 0 0 0.3rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.jump-links {
  display: flex;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.jump-links::-webkit-scrollbar {
  display: none;
}

.jump-links a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.guide-section {
  border-bottom: 1px solid var(--line);
}

.guide-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.35rem 0;
  cursor: pointer;
  list-style: none;
}

.guide-section summary::-webkit-details-marker {
  display: none;
}

.guide-section summary h2 {
  margin: 0;
}

.guide-section summary::after {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
  transition: transform 200ms ease;
}

.guide-section[open] summary::after {
  transform: translateY(0.1rem) rotate(225deg);
}

.guides-toggle[aria-expanded="true"] > .menu-chevron,
.checklists-toggle[aria-expanded="true"] > .menu-chevron,
.more-toggle[aria-expanded="true"] > .menu-chevron,
.country-toggle[aria-expanded="true"] > .menu-chevron {
  transform: translateY(0.05rem) rotate(225deg);
}

@media (max-width: 420px) {
  .rate-card {
    padding: 0.85rem 0.6rem 1rem;
  }

  .rate-table {
    font-size: 0.875rem;
  }

  .rate-table th,
  .rate-table td {
    padding: 0.42rem 0.38rem;
  }
}

@media (min-width: 960px) {
  .rate-pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.source-line {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
}

.content > :is(h2, h3, p, ul, ol, .callout),
.guide-body :is(h2, h3, p, ul, ol, .callout),
.page > :is(h1, h2, p, ul, .callout, .author-box, .card, .disclaimer) {
  max-width: 42rem;
}

.content,
.page,
.guide,
.guide-body,
.guide-section,
.rate-card,
.rate-block,
.rate-pair {
  max-width: 100%;
  min-width: 0;
}

.content,
.page {
  overflow-x: visible;
  padding-bottom: 0.5rem;
}

.page {
  padding-top: 1.75rem;
  padding-bottom: 1rem;
}

.guide-list {
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

a.card {
  position: relative;
  padding-right: 2.5rem;
}

a.card::after,
.country-group h2 a::after,
.related a::after,
.with-arrow::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

a.card::after {
  position: absolute;
  top: 1.35rem;
  right: 1.15rem;
  border-color: var(--link);
}

.country-group h2 a::after,
.related a::after,
.with-arrow::after {
  display: inline-block;
  margin-left: 0.4rem;
  vertical-align: 0.05em;
}

a.card:hover::after,
a.card:focus-visible::after,
.country-group h2 a:hover::after,
.country-group h2 a:focus-visible::after,
.related a:hover::after,
.related a:focus-visible::after,
.with-arrow:hover::after,
.with-arrow:focus-visible::after {
  transform: translateX(0.28rem) rotate(45deg);
}

.card:visited {
  color: inherit;
}

.card:hover,
.card:focus-visible {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.card:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.contact-card {
  gap: 0.2rem;
  margin-top: 0.35rem;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.contact-card .kicker {
  margin: 0.15rem 0 0;
}

.contact-card .callout.warning {
  margin: 0.1rem 0 0.85rem;
}

.contact-address {
  margin: 0.1rem 0 0.35rem;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-address a {
  text-decoration: none;
}

.about-lead {
  margin-top: 0;
  max-width: 42rem;
  color: var(--subtitle);
}

.about-card {
  gap: 0.15rem;
  margin-top: 0.35rem;
}

.about-card:hover,
.about-card:focus-visible {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.about-card h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
}

.about-card h2:first-child {
  margin-top: 0.15rem;
}

.about-card ul {
  margin: 0.2rem 0 0.15rem;
  padding-left: 1.2rem;
}

.about-card li + li {
  margin-top: 0.35rem;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.about-actions .button {
  max-width: 100%;
  text-align: center;
}

@media (max-width: 640px) {
  .about-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.button.button-quiet {
  background: var(--card);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.button-quiet:visited {
  color: var(--navy);
}

.button.button-quiet:hover,
.button.button-quiet:focus-visible {
  background: #f8fafc;
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.card-audience {
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--link);
  font-size: 0.95rem;
}

.start-picks {
  display: grid;
  gap: 0.75rem;
  margin: 0.35rem 0 1rem;
}

.country-pick {
  margin: 0;
  padding: 1.25rem 2.7rem 1.3rem 1.25rem;
  background: var(--navy);
  color: #f8fafc;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.country-pick h3,
.country-pick p,
a.country-pick:visited,
a.country-pick:hover,
a.country-pick:focus-visible {
  color: #f8fafc;
}

.country-pick .kicker {
  color: #f4b183;
}

.country-pick h3 {
  margin: 0.1rem 0 0.2rem;
  font-size: clamp(1.55rem, 4.4vw, 2rem);
  line-height: 1.15;
}

.country-pick p:last-child {
  margin: 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.45;
}

a.country-pick::after {
  top: 50%;
  margin-top: -0.21rem;
  border-color: #f8fafc;
}

.browse-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.5rem;
  margin: 0 0 1.15rem;
  padding: 1rem 1.35rem;
  background: var(--accent);
  color: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
}

.browse-all:visited,
.browse-all:hover,
.browse-all:focus-visible {
  color: #f8fafc;
}

.browse-all:hover,
.browse-all:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.32);
}

.browse-all:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.browse-all::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: translateY(0.02rem) rotate(45deg);
}

#countries,
#branches {
  scroll-margin-top: calc(var(--header-space, var(--header-offset)) + 0.75rem);
}

.branch-tab[data-branch-filter="airforce"] {
  border-color: #2c4a7a;
  color: #2c4a7a;
}

.branch-tab[data-branch-filter="army"] {
  border-color: #221f20;
  color: #221f20;
}

.branch-tab[data-branch-filter="navy"] {
  border-color: #0b1f3a;
  color: #0b1f3a;
}

.branch-tab[data-branch-filter="marines"] {
  border-color: #5c1a1f;
  color: #5c1a1f;
}

.branch-tab[data-branch-filter="spaceforce"] {
  border-color: #111111;
  color: #111111;
}

.branch-tab[data-branch-filter="coastguard"] {
  border-color: #003366;
  color: #003366;
}

.branch-tab[data-branch-filter="airforce"][aria-pressed="true"] {
  background: #2c4a7a;
  border-color: #2c4a7a;
  color: #f8fafc;
}

.branch-tab[data-branch-filter="army"][aria-pressed="true"] {
  background: #221f20;
  border-color: #221f20;
  color: #f8fafc;
}

.branch-tab[data-branch-filter="navy"][aria-pressed="true"] {
  background: #0b1f3a;
  border-color: #0b1f3a;
  color: #7cc4e8;
}

.branch-tab[data-branch-filter="marines"][aria-pressed="true"] {
  background: #5c1a1f;
  border-color: #5c1a1f;
  color: #f0d78c;
}

.branch-tab[data-branch-filter="spaceforce"][aria-pressed="true"] {
  background: #111111;
  border-color: #111111;
  color: #f8fafc;
}

.branch-tab[data-branch-filter="coastguard"][aria-pressed="true"] {
  background: #003366;
  border-color: #003366;
  color: #f8fafc;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="airforce"] {
  border-color: #b7c9f5;
  color: #b7c9f5;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="army"] {
  border-color: #e6b400;
  color: #e6b400;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="navy"] {
  border-color: #7cc4e8;
  color: #7cc4e8;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="marines"] {
  border-color: #f0d78c;
  color: #f0d78c;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="spaceforce"] {
  border-color: #d5d6d8;
  color: #d5d6d8;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="coastguard"] {
  border-color: #ff8a9a;
  color: #ff8a9a;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="airforce"][aria-pressed="true"] {
  background: #2c4a7a;
  border-color: #c0c0c0;
  color: #f8fafc;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="army"][aria-pressed="true"] {
  background: #221f20;
  border-color: #e6b400;
  color: #f8fafc;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="navy"][aria-pressed="true"] {
  background: #0b1f3a;
  border-color: #7cc4e8;
  color: #7cc4e8;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="marines"][aria-pressed="true"] {
  background: #5c1a1f;
  border-color: #f0d78c;
  color: #f0d78c;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="spaceforce"][aria-pressed="true"] {
  background: #111111;
  border-color: #d5d6d8;
  color: #f8fafc;
}

html[data-theme="dark"] .branch-tab[data-branch-filter="coastguard"][aria-pressed="true"] {
  background: #003366;
  border-color: #ff8a9a;
  color: #f8fafc;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  background: var(--navy);
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.button:visited {
  color: #f8fafc;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.button:hover {
  background: var(--button-hover);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.crumbs li {
  display: inline;
}

.crumbs a {
  text-decoration: none;
}

.related ul {
  padding-left: 1.15rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.35rem 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
}

.faq-item[open] summary::after {
  transform: translateY(0.1rem) rotate(225deg);
}

.faq-item p {
  margin: 0 0 0.9rem;
}

.pii-note {
  color: var(--pii);
  font-weight: 650;
}

.site-footer .pii-note {
  color: #fdba74;
}

.footer-pii {
  color: #fde68a;
  font-weight: 650;
}

.callout.warning ul {
  margin: 0.45rem 0 0.55rem;
  padding-left: 1.15rem;
}

.callout.warning.alert {
  border: 2px solid var(--warn-alert-border);
  background: var(--warn-alert-bg);
}

.ad-reserve {
  display: block;
  width: 100%;
  height: 250px;
  min-height: 250px;
  margin-block: 1.5rem;
}

.site-footer {
  background: var(--navy-deep);
  color: #e2e8f0;
  padding: 2.5rem 0 calc(2.75rem + env(safe-area-inset-bottom, 0px));
  margin-top: 1rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.tagline {
  margin: 0;
}

.tagline {
  flex-basis: 100%;
  color: #e2e8f0;
  font-weight: 600;
}

.footer-disclaimer {
  font-weight: 700;
  color: #fff;
}

.site-footer a,
.site-footer a:visited {
  color: #f8fafc;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 420px) {
  .logo {
    height: 28px;
  }

  .site-name {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-toggle:checked ~ .primary,
  #site-menu.is-open,
  .guides-panel,
  .checklists-panel,
  .more-panel,
  .country-panel,
  .guide-section summary::after,
  .card,
  .button,
  .browse-all,
  .chip,
  .menu-chevron,
  a.card::after,
  .country-group h2 a::after,
  .related a::after,
  .with-arrow::after,
  .theme-icons .theme-icon,
  html.theme-switching,
  html.theme-switching *,
  html.theme-switching *::before,
  html.theme-switching *::after,
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(theme-icon-bar),
  ::view-transition-new(theme-icon-bar) {
    animation: none;
    transition: none;
  }

  .card:hover,
  .card:focus-visible,
  .card:active,
  .button:hover,
  .button:focus-visible,
  .button:active,
  .browse-all:hover,
  .browse-all:focus-visible,
  .chip:hover,
  .chip:focus-visible {
    transform: none;
  }

  a.card:hover::after,
  a.card:focus-visible::after,
  .country-group h2 a:hover::after,
  .country-group h2 a:focus-visible::after,
  .related a:hover::after,
  .related a:focus-visible::after,
  .with-arrow:hover::after,
  .with-arrow:focus-visible::after {
    transform: rotate(45deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes hero-in {
    from {
      opacity: 0.9;
      transform: translateY(6px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes panel-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes panel-out {
    from {
      opacity: 1;
      transform: none;
    }

    to {
      opacity: 0;
      transform: translateY(-6px);
    }
  }

  .hero .eyebrow,
  .guide-hero .kicker {
    animation: hero-in 420ms ease both;
  }

  .hero h1,
  .guide-hero h1 {
    animation: hero-in 480ms ease 70ms both;
  }

  .hero .hero-lead {
    animation: hero-in 480ms ease 140ms both;
  }

  .guides-panel:not([hidden]),
  .checklists-panel:not([hidden]),
  .more-panel:not([hidden]),
  .country-panel:not([hidden]),
  .suggest-list:not([hidden]) {
    animation: panel-in 200ms ease;
  }

  .guides-panel.is-closing,
  .checklists-panel.is-closing,
  .more-panel.is-closing,
  .country-panel.is-closing {
    animation: panel-out 180ms ease forwards;
  }

  .guide-section.is-opening > :not(summary),
  .faq-item.is-opening > :not(summary) {
    animation: fade-rise 280ms ease;
  }

  .guide-section.is-closing > :not(summary),
  .faq-item.is-closing > :not(summary) {
    animation: panel-out 180ms ease forwards;
  }

  html.can-motion .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(10px);
  }

  html.can-motion .reveal.is-in {
    opacity: 1;
    transition: opacity 420ms ease, transform 420ms ease;
  }

  .rate-table tbody tr,
  .guide-body .table-scroll tbody tr > :first-child {
    transition: background-color 150ms ease;
  }

  @media (hover: hover) and (min-width: 880px) {
    .guides-toggle > span:first-child,
    .checklists-toggle > span:first-child,
    .more-toggle > span:first-child,
    .site-footer nav a {
      text-decoration: underline;
      text-decoration-color: transparent;
      text-decoration-thickness: 1px;
      text-underline-offset: 0.22em;
      transition: text-decoration-color 200ms ease;
    }

    .guides-toggle:hover > span:first-child,
    .guides-toggle:focus-visible > span:first-child,
    .checklists-toggle:hover > span:first-child,
    .checklists-toggle:focus-visible > span:first-child,
    .more-toggle:hover > span:first-child,
    .more-toggle:focus-visible > span:first-child,
    .site-footer nav a:hover,
    .site-footer nav a:focus-visible {
      text-decoration-color: currentColor;
    }
  }
}

code {
  font-size: 0.92em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 879px) {
  .branch-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .branch-tabs .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 0;
    min-height: 48px;
    text-align: center;
  }

  .branch-tabs .chip[data-branch-filter="all"] {
    flex-basis: 100%;
  }
}

@media (min-width: 720px) {
  .start-picks {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

@media (min-width: 720px) {
  .wrap {
    width: min(68rem, calc(100% - 3rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  }

  .guide-list {
    grid-template-columns: 1fr 1fr;
  }

  .ad-reserve {
    height: 250px;
    min-height: 250px;
  }

  .footer-inner {
    grid-template-columns: 18rem 1fr;
    align-items: start;
    gap: 2rem;
  }

  .tagline {
    flex-basis: auto;
  }
}

@media (min-width: 640px) {
  .base-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  :root {
    --header: 4.25rem;
  }

  .menu-button {
    display: none;
  }

  .menu-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-width: 0;
  }

  .theme-toggle-bar {
    display: inline-flex;
    flex: none;
    margin-left: 0.35rem;
  }

  .brand {
    flex: none;
  }

  .primary,
  .nav-toggle:checked ~ .primary,
  #site-menu.is-open {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    position: static;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    padding: 0;
    box-shadow: none;
    animation: none;
  }

  .find-base {
    display: block;
    flex: 1 1 12rem;
    width: auto;
    max-width: 22rem;
    margin: 0;
  }

  .find-base input {
    width: 100%;
    padding-right: 3rem;
  }

  .find-base button {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: auto;
    flex: none;
    width: 36px;
    height: 36px;
  }

  .primary-links {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
  }

  .primary-links > a {
    width: auto;
    min-height: 44px;
    padding-inline: 0;
    white-space: nowrap;
  }

  .guides-menu,
  .checklists-menu,
  .more-menu {
    position: relative;
  }

  .guides-toggle,
  .checklists-toggle,
  .more-toggle {
    width: auto;
    min-height: 44px;
    padding: 0 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
  }

  .guides-toggle:hover,
  .guides-toggle:focus-visible,
  .checklists-toggle:hover,
  .checklists-toggle:focus-visible,
  .more-toggle:hover,
  .more-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
  }

  .guides-panel:not([hidden]),
  .checklists-panel:not([hidden]),
  .more-panel:not([hidden]) {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 45;
    width: min(22rem, 70vw);
    max-height: min(70vh, 32rem);
    overflow: auto;
    padding: 0.35rem;
    background: var(--navy-deep);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
  }

  .more-panel:not([hidden]) {
    width: min(16rem, 70vw);
  }

  .country-toggle {
    border-radius: 10px;
    padding-inline: 0.7rem;
  }

  .country-toggle:hover,
  .country-toggle:focus-visible,
  .guides-panel a:hover,
  .guides-panel a:focus-visible,
  .checklists-panel a:hover,
  .checklists-panel a:focus-visible,
  .more-panel a:hover,
  .more-panel a:focus-visible,
  .menu-regions button:hover,
  .menu-regions button:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }

  .menu-regions button[aria-pressed="true"]:hover,
  .menu-regions button[aria-pressed="true"]:focus-visible {
    background: #f8fafc;
  }

  .country-panel a,
  .checklists-panel a,
  .more-panel a,
  .menu-lead {
    border-radius: 8px;
    padding-inline: 0.85rem;
  }
}

@media (min-width: 960px) {
  .base-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.feedback-form {
  display: grid;
  gap: 0.35rem 0;
  max-width: 42rem;
  margin: 1.25rem 0 2rem;
}

.feedback-form label {
  margin-top: 0.85rem;
  font-weight: 650;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feedback-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.feedback-form input:focus-visible,
.feedback-form select:focus-visible,
.feedback-form textarea:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
}

.feedback-form .hint {
  font-weight: 400;
  color: var(--muted);
}

.feedback-form .button {
  justify-self: start;
  margin-top: 1rem;
}

button.button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0.75rem 0 0;
  color: var(--error);
  font-weight: 650;
}

.feedback-form[hidden],
#feedback-thanks[hidden],
#feedback-error[hidden] {
  display: none;
}

/* Branch themes. Text and colors only: no seals or emblems.
   Body text, badge text, and the last-checked pill are WCAG AA (4.5:1).
   Focus rings are at least 3:1. Large fields stay dark so a page is not a
   bright color wash. Marine Corps is muted maroon (#5c1a1f to #7a1f28);
   gold #f0d78c is the text on that maroon (badge, last-checked, header
   accents) and clears 7:1 on the lighter stop. Coast Guard links and the
   badge use #9b1b30 because #e21b3c is only 4.50:1 on the page background;
   small text on Coast Guard blue stays #ff8a9a. Army gold on the dark
   header is #e6b400 so the accent is not a glare yellow. Navy is deep
   #0b1f3a to #13294b, separate from Air Force. Sea #7cc4e8 is only for
   text, borders, and focus on those dark fields (8.59:1 on #0b1f3a, 7.55:1
   on #13294b). It fails on white, so body links use #0b5f86 (6.70:1 on
   #f8fafc) and hover #08425e. Air Force is dusty slate blue #2c4a7a to
   #314d7c with silver-gray #c0c0c0 (4.88:1 on #2c4a7a, 4.65:1 on #314d7c).
   #34507f is 4.44:1 with that silver, so the lighter stop stays #314d7c.
   The same slate is the link and badge ink (8.48:1 on #f8fafc, 4.88:1 on
   the silver badge). */

.theme-airforce {
  --navy: #2c4a7a;
  --navy-deep: #243e68;
  --hero-end: #314d7c;
  --button-hover: #243e68;
  --accent: #2c4a7a;
  --accent-hover: #243e68;
  --accent-bright: #2c4a7a;
  --link: #2c4a7a;
  --link-hover: #243e68;
  --accent-on-dark: #c0c0c0;
  --focus-on-dark: #c0c0c0;
  --badge-bg: #c0c0c0;
  --badge-ink: #2c4a7a;
}

.theme-army {
  --navy: #221f20;
  --navy-deep: #121011;
  --hero-end: #3a3334;
  --button-hover: #3a3334;
  --accent: #7a6200;
  --accent-hover: #5c4900;
  --accent-bright: #7a6200;
  --link: #7a6200;
  --link-hover: #5c4900;
  --accent-on-dark: #e6b400;
  --focus-on-dark: #e6b400;
  --badge-bg: #e6b400;
  --badge-ink: #221f20;
}

.theme-navy {
  --navy: #0b1f3a;
  --navy-deep: #071422;
  --hero-end: #13294b;
  --button-hover: #13294b;
  --accent: #0b5f86;
  --accent-hover: #08425e;
  --accent-bright: #0b5f86;
  --link: #0b5f86;
  --link-hover: #08425e;
  --accent-on-dark: #7cc4e8;
  --focus-on-dark: #7cc4e8;
  --badge-bg: #0b1f3a;
  --badge-ink: #7cc4e8;
}

.theme-marines {
  --navy: #5c1a1f;
  --navy-deep: #3d1014;
  --hero-end: #7a1f28;
  --button-hover: #7a1f28;
  --accent: #5c1a1f;
  --accent-hover: #3d1014;
  --accent-bright: #5c1a1f;
  --link: #5c1a1f;
  --link-hover: #3d1014;
  --accent-on-dark: #f0d78c;
  --focus-on-dark: #f0d78c;
  --badge-bg: #5c1a1f;
  --badge-ink: #f0d78c;
  --checked-bg: #5c1a1f;
  --checked-ink: #f0d78c;
}

.theme-spaceforce {
  --navy: #111111;
  --navy-deep: #000000;
  --hero-end: #2a2a2a;
  --button-hover: #2a2a2a;
  --accent: #1a1a1a;
  --accent-hover: #000000;
  --accent-bright: #1a1a1a;
  --link: #1a1a1a;
  --link-hover: #000000;
  --accent-on-dark: #d5d6d8;
  --focus-on-dark: #d5d6d8;
  --badge-bg: #d5d6d8;
  --badge-ink: #111111;
}

.theme-coastguard {
  --navy: #003366;
  --navy-deep: #002244;
  --hero-end: #002244;
  --button-hover: #002244;
  --accent: #9b1b30;
  --accent-hover: #7a1526;
  --accent-bright: #9b1b30;
  --link: #9b1b30;
  --link-hover: #7a1526;
  --accent-on-dark: #ff8a9a;
  --focus-on-dark: #ff8a9a;
  --badge-bg: #9b1b30;
  --badge-ink: #ffffff;
}

/* Dark content surfaces. Header, hero, and footer keep their branch colors.
   --accent stays dark enough for white button text. --link is the text color
   on paper and cards, so it lightens here. An inline head script sets
   data-theme before paint. Print resets these tokens to light. */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #161b22;
  --card: #212833;
  --ink: #e8eef5;
  --muted: #cbd5e1;
  --subtitle: #e2e8f0;
  --line: #3a4453;
  --link: #5eead4;
  --link-hover: #99f6e4;
  --accent-bright: #5eead4;
  --checked-bg: #12352f;
  --checked-ink: #d7f7ef;
  --flag-bg: #12352f;
  --flag-ink: #99f6e4;
  --input-bg: #212833;
  --row: #2a3340;
  --row-soft: rgba(232, 238, 245, 0.06);
  --suggest-bg: #212833;
  --suggest-ink: #e8eef5;
  --suggest-muted: #cbd5e1;
  --suggest-hover: #2e3846;
  --warn-bg: #3a2a14;
  --warn-ink: #fef3c7;
  --warn-strong: #fdba74;
  --warn-border: #d97706;
  --warn-alert-bg: #3f2e18;
  --warn-alert-border: #fb923c;
  --mark-bg: #14524c;
  --pii: #fdba74;
  --error: #fda4af;
}

html[data-theme="dark"] .theme-airforce {
  --link: #b7c9f5;
  --link-hover: #d5e1fb;
  --accent-bright: #b7c9f5;
}

html[data-theme="dark"] .theme-army {
  --link: #e6b400;
  --link-hover: #f0c84a;
  --accent-bright: #e6b400;
}

html[data-theme="dark"] .theme-navy {
  --link: #7cc4e8;
  --link-hover: #b7e0f5;
  --accent-bright: #7cc4e8;
}

html[data-theme="dark"] .theme-marines {
  --link: #f0d78c;
  --link-hover: #f6e2b0;
  --accent-bright: #f0d78c;
}

html[data-theme="dark"] .theme-spaceforce {
  --link: #d5d6d8;
  --link-hover: #e5e7eb;
  --accent-bright: #d5d6d8;
}

html[data-theme="dark"] .theme-coastguard {
  --link: #ff8a9a;
  --link-hover: #ffb3be;
  --accent-bright: #ff8a9a;
}

html[data-theme="dark"] .site-header {
  box-shadow: 0 1px 0 #3a4453;
}

html[data-theme="dark"] .is-branch .guide-hero .disclaimer {
  border-left-color: var(--accent-on-dark);
}

html[data-theme="dark"] .button.button-quiet,
html[data-theme="dark"] .button.button-quiet:visited,
html[data-theme="dark"] .button.button-quiet:hover,
html[data-theme="dark"] .button.button-quiet:focus-visible {
  background: var(--card);
  color: var(--link);
  border-color: var(--line);
}

html[data-theme="dark"] .button.button-quiet:hover,
html[data-theme="dark"] .button.button-quiet:focus-visible {
  background: var(--row);
}

html[data-theme="dark"] .chip[aria-pressed="true"] {
  border-color: var(--accent-bright);
}

.branch-badge {
  display: inline-block;
  margin: 0 0.45rem 0.75rem 0;
  padding: 0.15rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.branch-badges {
  margin: 0;
}

.is-branch .branch-badge,
.branch-badge[class*="theme-"] {
  background: var(--badge-bg);
  color: var(--badge-ink);
  border-color: var(--badge-ink);
}

.is-branch .guide-hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--hero-end) 100%);
  color: var(--on-dark);
  padding: 2rem 0 2.35rem;
}

.is-branch .guide-hero .guide-head {
  padding-top: 0;
}

.is-branch .guide-hero h1,
.is-branch .guide-hero .updated,
.is-branch .guide-hero .crumbs,
.is-branch .guide-hero .crumbs ol,
.is-branch .guide-hero .crumbs a,
.is-branch .guide-hero .crumbs a:visited,
.is-branch .guide-hero .crumbs [aria-current] {
  color: var(--on-dark);
}

.is-branch .guide-hero .kicker {
  color: #f8fafc;
}

.is-branch .guide-hero .crumbs a:hover {
  color: var(--accent-on-dark);
}

.is-branch .guide-hero .author-box,
.is-branch .guide-hero .disclaimer {
  color: var(--ink);
}

.is-branch .hero .button,
.is-branch .hero .button:visited {
  background: var(--badge-bg);
  color: var(--badge-ink);
  border: 2px solid var(--badge-ink);
}

.is-branch .hero .button:hover {
  background: var(--on-dark);
  color: var(--navy);
}

.site-header .brand:focus-visible,
.site-header .primary-links a:focus-visible,
.site-header .guides-toggle:focus-visible,
.site-header .checklists-toggle:focus-visible,
.site-header .more-toggle:focus-visible,
.site-header .country-toggle:focus-visible,
.site-header .menu-regions button:focus-visible,
.site-header .guides-panel a:focus-visible,
.site-header .checklists-panel a:focus-visible,
.site-header .more-panel a:focus-visible,
.site-header .menu-button:focus-visible,
.site-header .find-base button:focus-visible,
.site-footer a:focus-visible,
.is-branch .guide-hero .crumbs a:focus-visible {
  outline-color: var(--focus-on-dark);
}

@media (max-width: 879px) {
  .nav-toggle:checked ~ .primary a:focus-visible,
  .nav-toggle:checked ~ .primary summary:focus-visible {
    outline-color: var(--focus-on-dark);
  }
}

.theme-mock {
  margin: 0 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}

.theme-mock .site-header {
  position: static;
}

.theme-mock .primary {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.theme-mock .site-header a,
.theme-mock .site-header a:visited {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}

.theme-mock .hero {
  padding: 1.75rem 0 2rem;
}

.theme-sample {
  padding: 1.15rem 0 1.4rem;
}

.theme-mock .mock-focus {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.theme-mock .site-header .mock-focus,
.theme-mock .hero .mock-focus {
  outline-color: var(--focus-on-dark);
}

.checklist {
  max-width: 42rem;
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.checklist-print-head {
  display: none;
}

.checklist h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
}

.checklist h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: 1.2rem;
}

.checklist-lead,
.checklist-warning,
.checklist-count {
  margin: 0.35rem 0 0.75rem;
}

.checklist-lead,
.checklist-warning {
  color: var(--muted);
  font-size: 0.98rem;
}

.checklist-warning {
  font-weight: 700;
  color: var(--ink);
}

.checklist-count {
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.checklist-bar {
  height: 0.65rem;
  margin: 0 0 0.9rem;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.checklist-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .checklist-bar span {
    transition: width 160ms ease;
  }
}

.checklist-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.checklist-actions .button {
  width: 100%;
}

.checklist-phase h3 {
  break-after: avoid;
}

.checklist-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist-item {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.75rem;
  align-items: start;
  min-height: 44px;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.checklist-item input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--link);
}

.checklist-item input:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.checklist-item label {
  cursor: pointer;
}

.checklist-print-title {
  margin: 0 0 0.25rem;
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: 16pt;
  font-weight: 700;
  line-height: 1.2;
}

.checklist-print-url,
.checklist-print-head p {
  margin: 0.15rem 0;
}

@media (min-width: 640px) {
  .checklist-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .checklist-actions .button {
    width: auto;
  }
}

@media print {
  @page {
    margin: 0.5in;
  }

  html,
  html[data-theme="dark"] {
    color-scheme: light;
    --paper: #ffffff;
    --card: #ffffff;
    --ink: #000000;
    --muted: #222222;
    --line: #cccccc;
    --link: #000000;
    --link-hover: #000000;
    --pii: #000000;
    --error: #000000;
    --warn-bg: #ffffff;
    --warn-ink: #000000;
    --warn-strong: #000000;
    --checked-bg: #ffffff;
    --checked-ink: #000000;
    --flag-bg: #ffffff;
    --flag-ink: #000000;
    --mark-bg: #ffffff;
    --suggest-bg: #ffffff;
    --suggest-ink: #000000;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  html.can-motion .reveal,
  .hero h1,
  .hero .eyebrow,
  .hero .hero-lead,
  .guide-hero h1,
  .guide-hero .kicker {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .skip,
  header,
  footer,
  nav,
  .site-header,
  .site-footer,
  .guide-hero,
  .rate-card,
  .ad-reserve,
  .no-print,
  .faq,
  .related,
  .adsbygoogle,
  ins.adsbygoogle,
  ins,
  iframe,
  .google-auto-placed,
  [id^="google_ads"],
  [aria-label="Advertisement"],
  .guide-body > :not(.checklist),
  .content > p {
    display: none !important;
  }

  .content,
  .wrap,
  .checklist {
    overflow: visible;
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .checklist-screen-head,
  .checklist-controls {
    display: none !important;
  }

  .checklist-print-head {
    display: block !important;
    margin-bottom: 0.6rem;
  }

  .checklist,
  .checklist-item label {
    font-size: 10.5pt;
    line-height: 1.35;
    color: #000;
  }

  .checklist h3 {
    margin: 0.55rem 0 0.15rem;
    font-size: 12.5pt;
    break-after: avoid;
  }

  .checklist a,
  .checklist a:visited {
    color: #000;
    text-decoration: underline;
  }

  .checklist-item {
    min-height: 0;
    gap: 0.45rem;
    padding: 0.18rem 0;
    border: 0;
    break-inside: avoid;
  }

  .checklist input[type="checkbox"],
  .checklist input[type="checkbox"]:checked {
    -webkit-appearance: none;
    appearance: none;
    width: 12pt;
    height: 12pt;
    margin: 1pt 0 0;
    border: 1.25pt solid #111;
    border-radius: 0;
    background: #fff !important;
    color: transparent;
    accent-color: transparent;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .checklist input[type="checkbox"]::before,
  .checklist input[type="checkbox"]::after,
  .checklist input[type="checkbox"]:checked::before,
  .checklist input[type="checkbox"]:checked::after {
    content: none !important;
  }
}

.guide-pay {
  margin: 0.85rem 0 0;
}

.is-branch .guide-hero .guide-pay {
  color: var(--on-dark);
}

.is-branch .guide-hero .guide-pay a,
.is-branch .guide-hero .guide-pay a:visited {
  color: var(--accent-on-dark);
}

.pay-calc .pay-lead {
  max-width: 40rem;
}

.pay-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.pay-form,
.pay-results,
.pay-sources {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.pay-form {
  position: relative;
}

.pay-form:focus-within {
  z-index: 2;
}

.pay-fields {
  display: grid;
  gap: 0.85rem;
}

.pay-fields label,
.choice-row label {
  font-weight: 700;
}

.pay-fields > label,
.pay-check,
.station-combo {
  display: grid;
  gap: 0.35rem;
}

.station-combo {
  position: relative;
}

.station-combo:focus-within {
  z-index: 4;
}

.station-combo > label {
  font-weight: 700;
}

.station-list {
  top: calc(100% + 0.15rem);
}

.station-list [role="option"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  min-height: 48px;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  color: var(--suggest-ink);
  cursor: pointer;
}

.station-list [aria-selected="true"],
.station-list [role="option"]:hover {
  background: var(--suggest-hover);
  color: var(--suggest-ink);
}

.pay-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 44px;
}

.pay-fields input,
.pay-fields select {
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.pay-fields fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.pay-fields legend {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.choice-row {
  display: flex;
  gap: 0.5rem;
}

.choice-row label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-weight: 600;
}

.choice-row .how-many {
  flex: 0 0 auto;
  gap: 0.35rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.pay-check[hidden],
.choice-row .how-many[hidden],
#pay-filing[hidden] {
  display: none;
}

.choice-row .how-many input {
  width: 3.6rem;
  min-height: 2.15rem;
  height: auto;
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.choice-row input,
.pay-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.pay-hint,
.pay-detail,
.pay-note,
.pay-who {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pay-results h2,
.pay-tax h3 {
  margin-top: 0;
}

.pay-banner {
  margin: 0.4rem 0 0.8rem;
  font-weight: 700;
}

.pay-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.pay-label,
.pay-amount {
  margin: 0;
}

.pay-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.pay-detail {
  grid-column: 1 / -1;
}

.pay-total {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0.4rem 0 0;
  padding-top: 0.8rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.pay-total strong {
  font-variant-numeric: tabular-nums;
}

.pay-tax {
  margin-top: 1rem;
  padding-top: 0.2rem;
}

.pay-sources {
  margin-top: 1rem;
}

.pay-sources h2 {
  margin-top: 0;
}

.pay-sources li + li {
  margin-top: 0.45rem;
}

@media (min-width: 800px) {
  .pay-layout {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.1fr);
    align-items: start;
  }
}

