:root {
  --navy: #12344d;
  --navy-2: #0b2538;
  --teal: #147d7e;
  --teal-dark: #0f6062;
  --mint: #e5f3f1;
  --cream: #f7f3ec;
  --paper: #ffffff;
  --ink: #152631;
  --muted: #526675;
  --line: #d8e2e6;
  --warning: #8a4b0f;
  --warning-bg: #fff4df;
  --danger: #9f1f2f;
  --danger-bg: #ffe9ed;
  --success: #176a42;
  --success-bg: #e8f5ee;
  --focus: #ffbf47;
  --shadow: 0 18px 45px rgba(18, 52, 77, 0.14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(20, 125, 126, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 32%);
  z-index: -1;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 52, 77, 0.16);
}

button:hover,
.button:hover {
  background: var(--navy-2);
  color: #fff;
}

button.secondary,
.button.secondary {
  background: var(--mint);
  color: var(--navy);
  box-shadow: none;
}

.button.light {
  background: #fff;
  color: var(--navy);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

code {
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  background: #edf4f5;
  color: var(--navy-2);
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  background: var(--focus);
  color: #111;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.container,
.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 1.24rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: linear-gradient(145deg, #fff, var(--mint));
}

.brand-mark span {
  position: absolute;
  display: block;
  background: var(--navy);
}

.brand-mark span:nth-child(1) {
  width: 18px;
  height: 2px;
  left: 11px;
  top: 24px;
  transform: rotate(-28deg);
}

.brand-mark span:nth-child(2) {
  width: 12px;
  height: 2px;
  left: 22px;
  top: 18px;
  transform: rotate(28deg);
}

.brand-mark span:nth-child(3) {
  width: 10px;
  height: 10px;
  right: 8px;
  top: 9px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--teal);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-nav a {
  border-radius: 7px;
  color: var(--navy);
  font-weight: 700;
  padding: 0.55rem 0.65rem;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--mint);
}

.menu-toggle {
  display: none;
}

main {
  padding: 1.5rem 0 3rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 1rem;
}

.hero,
.page-hero,
.search-panel,
.band,
.tool-shell,
.notice,
.content-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(18, 52, 77, 0.07);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  min-height: min(640px, calc(100vh - 130px));
  background:
    linear-gradient(120deg, rgba(18, 52, 77, 0.97), rgba(20, 125, 126, 0.92)),
    #12344d;
  color: #fff;
  overflow: hidden;
}

.home-hero a {
  color: inherit;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--teal-dark);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.home-hero .eyebrow {
  color: #bfe7e3;
}

h1,
h2,
h3,
h4 {
  color: var(--navy-2);
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  margin-bottom: 0.4rem;
}

.tagline {
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 0.85rem;
}

.home-hero p:not(.eyebrow) {
  font-size: 1.12rem;
  max-width: 720px;
}

.hero-actions,
.form-actions,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.path-card {
  display: grid;
  gap: 1rem;
}

.path-card div {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.path-card span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
}

.path-card strong {
  color: #fff;
  font-size: 1.15rem;
}

.path-card small {
  color: #e5f3f1;
}

.page-hero {
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero p:last-child {
  margin-bottom: 0;
  max-width: 820px;
  font-size: 1.08rem;
}

.search-panel,
.band,
.tool-shell,
.notice,
.content-section {
  padding: clamp(1.1rem, 3vw, 2rem);
  margin: 1rem 0;
}

.search-panel-large {
  margin-top: 1rem;
}

.site-search label,
.feedback-form label,
.tool-form label {
  display: block;
  color: var(--navy-2);
  font-weight: 750;
  margin: 0.75rem 0 0.35rem;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b8c7cd;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0.68rem 0.75rem;
}

textarea {
  resize: vertical;
}

input:invalid:not(:placeholder-shown),
select:invalid,
textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.75rem 0;
}

.filter-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-weight: 650;
}

.filter-row input {
  width: auto;
  min-height: auto;
}

.search-results {
  margin-top: 0.85rem;
}

.result-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.result-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fff;
  text-decoration: none;
}

.result-card strong {
  display: block;
  color: var(--navy);
}

mark {
  background: #ffe6a6;
  color: #111;
  border-radius: 3px;
  padding-inline: 0.1em;
}

.notice {
  box-shadow: none;
  background: #f9fcfc;
}

.notice-legal {
  border-left: 6px solid var(--teal);
}

.notice-warning {
  background: var(--warning-bg);
  border-color: #f1d2a0;
  border-left: 6px solid var(--warning);
}

.notice-danger {
  background: var(--danger-bg);
  border-color: #efc0c8;
  border-left: 6px solid var(--danger);
}

.notice-success {
  background: var(--success-bg);
  border-color: #badbca;
  border-left: 6px solid var(--success);
}

.quick-grid,
.topic-grid,
.resource-grid,
.card-grid,
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.quick-card,
.topic-card,
.resource-card,
.info-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.quick-card:hover,
.topic-card:hover,
.resource-card:hover,
.info-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 24px rgba(18, 52, 77, 0.09);
}

.quick-card span,
.topic-card strong,
.resource-card h4 {
  display: block;
  color: var(--navy);
  font-weight: 850;
}

.quick-card small,
.topic-card span,
.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.urgent-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  background: var(--danger-bg);
  border-color: #efc0c8;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-row a,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: var(--mint);
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.section-nav {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.section-nav h2 {
  font-size: 1rem;
}

.section-nav a {
  display: block;
  border-left: 3px solid transparent;
  padding: 0.35rem 0.45rem;
  color: var(--navy);
  text-decoration: none;
}

.section-nav a:hover {
  border-color: var(--teal);
  background: var(--mint);
}

.content-section h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.content-section ul,
.content-section ol,
.check-list {
  padding-left: 1.35rem;
}

.content-section li,
.check-list li {
  margin: 0.35rem 0;
}

.source-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.accordion-list {
  display: grid;
  gap: 0.7rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem 1rem;
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

.tool-shell {
  background: #fbfdfd;
}

.tool-heading {
  max-width: 820px;
}

.tool-app {
  margin-top: 1rem;
}

.tool-form {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tool-output {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.pathway-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.pathway-options button {
  justify-content: flex-start;
  text-align: left;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}

.pathway-options button[aria-pressed="true"],
.pathway-options button:hover {
  border-color: var(--teal);
  background: var(--mint);
}

.checklist {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem;
  background: #fff;
}

.checklist input {
  width: auto;
  min-height: auto;
  margin-top: 0.28rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--mint);
  color: var(--navy);
}

.timeline-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem;
}

.template-output {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  min-height: 180px;
}

.form-status:empty {
  display: none;
}

.site-footer {
  padding: 2.5rem 0 5.5rem;
  background: var(--navy-2);
  color: #dce9ed;
}

.site-footer h2,
.site-footer .brand strong {
  color: #fff;
}

.site-footer .brand small,
.site-footer .small {
  color: #c0d4db;
}

.site-footer a {
  display: block;
  color: #eaf8f8;
  margin: 0.35rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.92rem;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-bottom-nav a {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 14;
  display: none;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
}

.back-to-top.is-visible {
  display: inline-flex;
}

.external-label {
  font-size: 0.86em;
  color: inherit;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    box-shadow: none;
  }

  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.75rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .section-nav {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15.5px;
  }

  .header-inner,
  .container,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand small {
    display: none;
  }

  .home-hero {
    padding: 1.5rem;
    min-height: auto;
  }

  .search-row,
  .two-col,
  .urgent-band {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .back-to-top {
    bottom: 4.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .mobile-bottom-nav,
  .back-to-top,
  .search-panel,
  .section-nav,
  .menu-toggle,
  .tool-actions,
  button {
    display: none !important;
  }

  main {
    padding: 0;
  }

  .container {
    width: 100%;
  }

  .hero,
  .page-hero,
  .band,
  .tool-shell,
  .notice,
  .content-section {
    box-shadow: none;
    border-color: #999;
    break-inside: avoid;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.86em;
  }
}

