:root {
  color-scheme: light;
  --ink: #10162f;
  --ink-soft: #4d5570;
  --navy: #111b4a;
  --navy-deep: #080d26;
  --blue: #295ee8;
  --cyan: #13b9d3;
  --pink: #e72ba8;
  --purple: #842edf;
  --cream: #f6f3ee;
  --mist: #eef5f8;
  --white: #ffffff;
  --line: #d9deea;
  --warning: #ffd166;
  --danger: #ff5b75;
  --shadow: 0 24px 70px rgba(16, 22, 47, 0.13);
  --shadow-soft: 0 12px 35px rgba(16, 22, 47, 0.08);
  --radius: 22px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--pink);
}

button,
input,
select {
  font: inherit;
}

button,
.button {
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

::selection {
  background: var(--pink);
  color: var(--white);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--navy-deep);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.urgent-bar {
  background: var(--navy);
  color: var(--white);
}

.urgent-inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 48px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.urgent-inner strong {
  color: var(--warning);
}

.urgent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.urgent-actions a {
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.urgent-actions a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-parent {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--navy);
}

.site-nav .nav-external {
  margin-left: 0.4rem;
  border: 1px solid var(--line);
}

.menu-button {
  display: none;
  width: 46px;
  min-width: 46px;
  padding: 0.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

main {
  overflow: hidden;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 15%, rgba(231, 43, 168, 0.14), transparent 23rem),
    radial-gradient(circle at 69% 80%, rgba(19, 185, 211, 0.16), transparent 25rem),
    linear-gradient(120deg, #f8f4ec 0%, #f7f8fc 55%, #eff8fb 100%);
}

.hero-shell::after {
  position: absolute;
  right: -130px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 90px solid rgba(41, 94, 232, 0.055);
  border-radius: 50%;
  content: "";
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 610px;
  padding: clamp(4rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.3rem;
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.065em;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
}

h3 {
  color: var(--navy);
  font-size: 1.15rem;
}

.lede {
  max-width: 66ch;
  margin: 0 0 1.7rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--white);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
}

.button.secondary:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.start-panel {
  padding: clamp(1.5rem, 4vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.start-panel h2 {
  margin-bottom: 0.65rem;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.start-panel > p {
  margin-top: 0;
  color: #cbd2eb;
}

.start-links {
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  list-style: none;
}

.start-links a {
  min-height: 58px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
}

.start-links a::after {
  color: var(--cyan);
  content: "→";
}

.start-links a:hover {
  border-color: var(--cyan);
  background: rgba(19, 185, 211, 0.12);
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section.tinted {
  background: var(--cream);
}

.section.mist {
  background: var(--mist);
}

.section-head {
  max-width: 790px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head p:last-child {
  color: var(--ink-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 7vw, 6rem);
}

.service-link {
  min-height: 145px;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: start;
  gap: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.service-link:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.service-link:hover {
  color: var(--ink);
}

.service-link:hover .service-icon {
  transform: translateY(-3px) rotate(3deg);
  background: var(--pink);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 18px 5px;
  background: var(--blue);
  color: var(--white);
  font-size: 1.4rem;
  transition: transform 160ms ease, background-color 160ms ease;
}

.service-link:nth-child(2) .service-icon {
  background: var(--pink);
}

.service-link:nth-child(3) .service-icon {
  background: var(--purple);
}

.service-link:nth-child(4) .service-icon {
  background: var(--cyan);
}

.service-link h3 {
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
}

.service-link p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.community-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 96%, rgba(19, 185, 211, 0.25), transparent 20rem),
    radial-gradient(circle at 92% 4%, rgba(231, 43, 168, 0.25), transparent 24rem),
    var(--navy);
  color: var(--white);
}

.community-inner {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
}

.community-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.community-logo-wrap {
  width: min(70vw, 330px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 90px rgba(19, 185, 211, 0.12);
}

.community-logo-wrap img {
  width: 64%;
  height: 64%;
  object-fit: contain;
  image-rendering: auto;
}

.community-copy .eyebrow {
  color: var(--cyan);
}

.community-copy h2 {
  color: var(--white);
}

.community-copy > p {
  color: #cbd2eb;
}

.audience-list {
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
}

.audience-list li {
  padding: 0.8rem 0.9rem;
  border-left: 3px solid var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 750;
}

.featured-grid,
.resource-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 300px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-card .card-kicker {
  margin-bottom: auto;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 2.5rem 0 0.65rem;
  font-size: 1.45rem;
}

.feature-card p {
  color: var(--ink-soft);
}

.feature-card a {
  margin-top: auto;
  font-weight: 800;
}

.page-hero {
  padding: clamp(4.2rem, 8vw, 7rem) 0 3.5rem;
  background:
    radial-gradient(circle at 90% 12%, rgba(231, 43, 168, 0.11), transparent 22rem),
    linear-gradient(120deg, var(--cream), var(--mist));
}

.page-hero .container {
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.breadcrumb {
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 0.5rem;
  color: #9da5b9;
  content: "/";
}

.breadcrumb a {
  color: var(--ink-soft);
}

.quick-answer {
  max-width: 920px;
  margin-top: 2rem;
  padding: 1.2rem 1.35rem;
  border-left: 4px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.quick-answer p {
  margin: 0;
}

.quick-answer strong {
  color: var(--navy);
}

.directory-tools {
  position: sticky;
  top: 88px;
  z-index: 40;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.tools-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
}

.search-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.filter-button {
  min-height: 40px;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.directory-status {
  margin: 1.5rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.notice {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid #f0d995;
  border-radius: 12px;
  background: #fff9e8;
  color: #5e522c;
}

.notice strong {
  color: #6d5400;
}

.notice.after-table {
  margin-top: 1rem;
}

.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.resource-card {
  padding: clamp(1.25rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.resource-card[hidden] {
  display: none;
}

.resource-top h2,
.resource-top h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.tag-list {
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.tag {
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.resource-summary,
.service-note {
  color: var(--ink-soft);
}

.resource-details {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.resource-details div {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.resource-details dt {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-details dd {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
}

.resource-links a {
  font-size: 0.88rem;
  font-weight: 800;
}

.service-note {
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
}

.empty-state {
  padding: 3rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.content-grid {
  padding: clamp(4rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.side-nav {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}

.side-nav p {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-nav a {
  display: block;
  padding: 0.4rem 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.prose {
  max-width: 790px;
}

.prose section {
  padding: 0 0 3rem;
  scroll-margin-top: 120px;
}

.prose h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.prose h3 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose strong {
  color: var(--ink);
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.7rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 900;
  content: "✓";
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 1.1rem 2rem 1.1rem 0;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.faq-list details p {
  margin-top: 0;
  padding-bottom: 1rem;
  color: var(--ink-soft);
}

.answer-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.answer-copy p {
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.resource-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--white);
}

.resource-table th,
.resource-table td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.resource-table th {
  color: var(--navy);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-table td {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.resource-table tr:last-child td,
.resource-table tr:last-child th {
  border-bottom: 0;
}

.cta-band {
  padding: clamp(2.2rem, 5vw, 4rem);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 18%, rgba(231, 43, 168, 0.22), transparent 17rem),
    var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-band .eyebrow {
  color: var(--cyan);
}

.cta-band h2 {
  max-width: 22ch;
  color: var(--white);
}

.cta-band .lede {
  color: #cbd2eb;
}

.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  background: var(--navy-deep);
  color: var(--white);
}

.footer-grid {
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(130px, 1fr));
  padding: 3.5rem 0;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand-parent,
.footer-intro p,
.footer-column a,
.footer-column p {
  color: #afb9dc;
  font-size: 0.84rem;
}

.footer-intro {
  max-width: 47ch;
}

.footer-column h2 {
  margin-bottom: 0.8rem;
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin: 0.4rem 0;
}

.footer-column a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding: 1rem 0 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #96a2cb;
  font-size: 0.74rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem;
  }

  .site-nav .nav-external {
    margin-left: 0;
  }

  .menu-button {
    margin-left: auto;
    display: inline-grid;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .start-panel {
    max-width: 720px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .tools-inner {
    grid-template-columns: 1fr;
  }

  .filter-list {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .container,
  .header-inner,
  .urgent-inner {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .urgent-inner {
    padding: 0.65rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-parent {
    max-width: 22ch;
    font-size: 0.56rem;
  }

  h1 {
    letter-spacing: -0.05em;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .service-grid,
  .community-inner,
  .featured-grid,
  .resource-grid,
  .footer-grid,
  .content-grid,
  .answer-block {
    grid-template-columns: 1fr;
  }

  .service-link:nth-last-child(2) {
    border-bottom: 0;
  }

  .community-visual {
    min-height: 280px;
  }

  .audience-list,
  .resource-details {
    grid-template-columns: 1fr;
  }

  .directory-tools {
    top: 78px;
  }

  .side-nav {
    position: static;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .urgent-bar,
  .site-header,
  .directory-tools,
  .site-footer,
  .button-row,
  .menu-button {
    display: none !important;
  }

  body {
    color: #000;
  }

  .resource-card,
  .feature-card,
  .table-wrap {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* YouMatter 3.1: decision infrastructure and transparent review gates. */
.verification-chip {
  width: fit-content;
  margin-top: 1.25rem;
  padding: 0.45rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.verification-chip.is-passed {
  border-color: rgba(19, 185, 211, 0.55);
}

.verification-chip.is-pending {
  border-color: rgba(255, 91, 117, 0.55);
  background: #fff8f9;
}

.decision-facts {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.decision-facts div {
  min-width: 0;
  padding: 1.15rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.decision-facts dt {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-facts dd {
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}

.review-gate,
.value-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.review-gate.is-pending {
  border-left: 5px solid var(--danger);
  background: #fff8f9;
}

.review-gate p:last-child,
.value-panel p:last-child {
  margin-bottom: 0;
}

.alternative-grid,
.source-trail {
  display: grid;
  gap: 0.8rem;
}

.alternative-grid a,
.source-trail article {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.alternative-grid a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.source-trail h3 {
  margin: 0;
  font-size: 1rem;
}

.source-trail p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.comparison-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.comparison-scroll:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.service-comparison {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

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

.service-comparison thead th {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-comparison tbody th {
  min-width: 170px;
}

.service-comparison tbody tr:last-child th,
.service-comparison tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .decision-facts {
    grid-template-columns: 1fr;
  }

  .decision-facts div {
    border-right: 0;
  }
}

/* YouMatter 2.0 information architecture and component refinements. */
.narrow {
  max-width: 980px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(41, 94, 232, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #eef5ff);
}

.brand-mark .brand-logo {
  width: 52px;
  height: 52px;
  flex-basis: auto;
}

.panel-label,
.scope-label,
.card-kicker,
.update-meta {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start-panel .panel-label {
  color: var(--cyan);
}

.service-grid .service-link {
  border-bottom: 1px solid var(--line);
}

.scope-split {
  margin: 1.8rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.scope-split > div {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.scope-split .scope-label {
  color: var(--cyan);
}

.scope-split h3,
.scope-split p,
.text-link-light {
  color: var(--white);
}

.scope-split h3 {
  font-size: 1.05rem;
}

.scope-split p {
  margin-bottom: 0;
  color: #cbd2eb;
  font-size: 0.9rem;
}

.text-link-light {
  font-weight: 800;
}

.align-left {
  margin-inline: 0;
  text-align: left;
}

.hub-grid .resource-card,
.directory-section .resource-card {
  display: flex;
  flex-direction: column;
}

.resource-card h2,
.resource-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.45rem;
}

.resource-card h2 a,
.resource-card h3 a,
.post-card h2 a,
.update-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.resource-card h2 a:hover,
.resource-card h3 a:hover,
.post-card h2 a:hover,
.update-card h3 a:hover {
  color: var(--pink);
}

.card-link {
  margin-top: auto;
  font-weight: 800;
}

.directory-section {
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.profile-facts {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.profile-facts div {
  padding: 1.1rem 1.2rem;
}

.profile-facts div + div {
  border-left: 1px solid var(--line);
}

.profile-facts span,
.profile-facts strong {
  display: block;
}

.profile-facts span {
  margin-bottom: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-facts strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.profile-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
}

.profile-copy section {
  padding-bottom: 2.5rem;
}

.contact-panel,
.article-aside {
  position: sticky;
  top: 120px;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

.contact-panel h2,
.article-aside h2 {
  font-size: 1.65rem;
}

.contact-panel > p,
.article-aside > p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.contact-links {
  margin: 1rem 0;
  display: grid;
  gap: 0.65rem;
}

.official-source {
  font-weight: 800;
}

.plain-list {
  padding-left: 1.2rem;
}

.plain-list li {
  padding: 0.35rem 0;
}

.source-note {
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: var(--mist);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.source-note strong {
  color: var(--navy);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
}

.guide-links {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.guide-links a {
  font-weight: 800;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.principle-grid > div {
  padding: 1.25rem;
  background: var(--white);
}

.principle-grid h3 {
  margin-bottom: 0.4rem;
}

.principle-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.feed-section + .feed-section {
  margin-top: 5rem;
}

.feed-heading {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.feed-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.feed-heading > a {
  flex: 0 0 auto;
  font-weight: 800;
}

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

.update-card,
.post-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.update-card h3,
.post-card h2 {
  font-size: 1.35rem;
}

.update-card > p,
.post-card > p {
  color: var(--ink-soft);
}

.update-card .update-meta {
  color: var(--blue);
}

.feed-section + .source-note,
.feed-section:last-of-type + .source-note {
  margin-top: 3rem;
}

.article-prose {
  max-width: 760px;
}

.article-prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.article-prose p,
.article-prose li {
  color: var(--ink-soft);
}

.article-prose .source-note {
  margin-top: 3rem;
}

.pagination .nav-links {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.footer-grid {
  grid-template-columns: minmax(230px, 1.7fr) repeat(4, minmax(120px, 1fr));
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .scope-split,
  .profile-facts,
  .profile-layout,
  .article-layout,
  .guide-layout,
  .principle-grid,
  .update-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .profile-facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-panel,
  .article-aside {
    position: static;
  }

  .feed-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .brand-mark .brand-logo {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* YouMatter 3.0: editorial imagery, deeper resource pages, and private planning tools. */
textarea {
  font: inherit;
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.hero-figure,
.editorial-figure,
.callout-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 27, 74, 0.12);
  border-radius: calc(var(--radius) + 4px);
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.hero-figure {
  aspect-ratio: 3 / 1.48;
}

.hero-figure img,
.editorial-figure img,
.callout-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure img {
  object-position: 68% 50%;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.editorial-figure {
  aspect-ratio: 3 / 2;
}

.editorial-figure img {
  object-position: 66% center;
}

.compact-section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.role-grid > div {
  min-height: 132px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.role-grid span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(19, 185, 211, 0.14);
  color: var(--navy);
  font-weight: 900;
}

.role-grid p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.safety-callout {
  padding: clamp(2.2rem, 5vw, 3.5rem) 0;
  background: var(--navy-deep);
  color: var(--white);
}

.safety-callout .container {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.safety-callout .eyebrow,
.safety-callout a {
  color: var(--cyan);
}

.safety-callout h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.safety-callout p:last-child {
  margin: 0;
  color: #d7ddf2;
}

.featured-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-grid.four-up .feature-card {
  min-height: 330px;
}

.media-callout {
  padding: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(120deg, var(--white), var(--mist));
  box-shadow: var(--shadow);
}

.media-callout h2 {
  margin-bottom: 1rem;
}

.media-callout p:not(.eyebrow) {
  color: var(--ink-soft);
}

.callout-figure {
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-soft);
}

.fit-grid,
.step-cards,
.subsection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.fit-grid > div,
.step-cards > div,
.subsection-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}

.fit-grid > div:first-child {
  border-top: 4px solid var(--cyan);
}

.fit-grid > div:last-child {
  border-top: 4px solid var(--pink);
}

.fit-grid h3,
.step-cards h3,
.subsection-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.fit-grid p,
.step-cards p,
.subsection-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.step-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-cards > div {
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.question-list li {
  padding: 0.9rem 1rem 0.9rem 2.7rem;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-soft);
}

.question-list li::before {
  position: absolute;
  top: 0.84rem;
  left: 1rem;
  color: var(--purple);
  content: "?";
  font-weight: 900;
}

.guide-prose > section {
  padding-bottom: 2.75rem;
  scroll-margin-top: 130px;
}

.guide-prose h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
}

.subsection-grid {
  margin-top: 1.2rem;
}

.publisher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.publisher-card {
  min-height: 290px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.publisher-card h3 {
  font-size: 1.35rem;
}

.publisher-card > p:not(.card-kicker) {
  color: var(--ink-soft);
}

.publisher-card .card-link {
  margin-top: auto;
}

.plan-workspace {
  background: linear-gradient(180deg, var(--white), #f7f9fc);
}

.plan-toolbar {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.plan-toolbar strong,
.plan-toolbar span {
  display: block;
}

.plan-toolbar span {
  color: #cbd2eb;
  font-size: 0.85rem;
}

.support-plan {
  display: grid;
  gap: 1rem;
}

.support-plan > section {
  padding: clamp(1.3rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.form-section-heading {
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.form-section-heading h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.form-section-heading > p:last-child,
.form-footnote {
  color: var(--ink-soft);
}

.form-grid,
.contact-form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid.two-column,
.contact-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-plan label {
  display: grid;
  gap: 0.4rem;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
}

.support-plan input[type="text"],
.support-plan input[type="date"],
.support-plan textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid #bac3d8;
  border-radius: 10px;
  background: #fbfcff;
  color: var(--ink);
  font-weight: 500;
}

.support-plan textarea {
  min-height: 7rem;
  resize: vertical;
}

.support-plan fieldset {
  min-width: 0;
  margin: 0;
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}

.support-plan legend {
  padding-inline: 0.4rem;
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-plan fieldset h3 {
  margin-bottom: 0;
}

.verification-checks {
  margin-top: 1rem;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mist);
}

.verification-checks h3 {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
}

.verification-checks label {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem;
  font-weight: 650;
}

.verification-checks input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.12rem;
  accent-color: var(--blue);
}

.verification-checks .inline-date {
  grid-template-columns: auto minmax(160px, 1fr);
  align-items: center;
}

.urgent-plan-section {
  border-color: rgba(255, 91, 117, 0.38) !important;
  background: #fff7f8 !important;
}

@media (max-width: 1120px) {
  .menu-button {
    margin-left: auto;
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    max-height: calc(100vh - 130px);
    padding: 0.75rem;
    display: none;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a,
  .site-nav .nav-external {
    margin: 0;
    padding: 0.8rem;
  }

  .featured-grid.four-up,
  .publisher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-hero-grid,
  .media-callout,
  .safety-callout .container,
  .role-grid,
  .form-grid.two-column,
  .contact-form-grid,
  .verification-checks,
  .fit-grid,
  .step-cards,
  .subsection-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-grid .editorial-figure {
    max-width: 680px;
  }

  .verification-checks h3 {
    grid-column: auto;
  }

  .plan-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .featured-grid.four-up,
  .publisher-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    aspect-ratio: 3 / 2;
  }

  .plan-toolbar .button-row,
  .plan-toolbar .button {
    width: 100%;
  }

  .verification-checks .inline-date {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .urgent-bar,
  .site-footer,
  .page-hero .editorial-figure,
  .plan-toolbar,
  .guide-links {
    display: none !important;
  }

  .page-hero,
  .section,
  .plan-workspace {
    padding: 0 !important;
    background: #fff !important;
  }

  .page-hero-grid {
    display: block;
  }

  .support-plan > section {
    margin: 0 0 0.5rem;
    padding: 0.75rem;
    break-inside: avoid;
    box-shadow: none;
  }

  .support-plan input,
  .support-plan textarea {
    background: #fff !important;
  }
}

/* YouMatter 3.2: stable navigation, branded route marks, and a focused footer. */
:root {
  --header-max: 1460px;
}

.header-inner {
  width: min(calc(100% - 2rem), var(--header-max));
  min-height: 82px;
  gap: 1rem;
}

.brand {
  min-width: 0;
  flex: 0 1 350px;
}

.brand-copy {
  min-width: 0;
  display: block;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-radius: 16px;
}

.brand-mark .brand-logo {
  width: 48px;
  height: 48px;
}

.brand-parent {
  margin-top: 0.2rem;
  color: var(--blue);
  font-size: 0.62rem;
}

.brand-tagline {
  display: block;
  color: var(--ink-soft);
  font-size: 0.61rem;
  font-weight: 720;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-nav {
  flex: 0 0 auto;
  gap: 0.1rem;
}

.site-nav a {
  padding: 0.58rem 0.62rem;
  white-space: nowrap;
  font-size: 0.81rem;
}

.site-nav .nav-external {
  margin-left: 0.25rem;
  padding-inline: 0.78rem;
}

.menu-icon,
.menu-icon span {
  display: block;
}

.menu-icon {
  width: 20px;
}

.menu-icon span {
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-icon span + span {
  margin-top: 4px;
}

.menu-button[aria-expanded="true"] .menu-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6.2vw, 5.25rem);
}

.service-icon {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 17px 17px 17px 6px;
  background: linear-gradient(145deg, #356af0, #2555d7);
  box-shadow: 0 10px 24px rgba(41, 94, 232, 0.18);
}

.service-link:nth-child(2) .service-icon {
  background: linear-gradient(145deg, #f03db8, #d81f96);
}

.service-link:nth-child(3) .service-icon {
  background: linear-gradient(145deg, #9442e8, #7423ca);
}

.service-link:nth-child(4) .service-icon {
  background: linear-gradient(145deg, #20bed6, #0e9db7);
}

.service-link:nth-child(5) .service-icon {
  background: linear-gradient(145deg, #17316d, #111b4a);
}

.service-link:nth-child(6) .service-icon {
  background: linear-gradient(145deg, #3f70ee, #2a57d5);
}

.service-link:nth-child(7) .service-icon {
  background: linear-gradient(145deg, #e85874, #d43b59);
}

.route-icon {
  width: 29px;
  height: 29px;
}

.service-link:hover .service-icon {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #f03db8, #d81f96);
}

.footer-grid {
  padding: 3.5rem 0 3rem;
  grid-template-columns: minmax(260px, 1.55fr) repeat(2, minmax(150px, 0.9fr)) minmax(190px, 1.1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.footer-intro {
  max-width: 43ch;
}

.site-footer .brand {
  max-width: 340px;
}

.site-footer .brand-parent {
  color: var(--cyan);
}

.site-footer .brand-tagline {
  color: #afb9dc;
}

.footer-column a {
  margin: 0;
  padding: 0.32rem 0;
  line-height: 1.45;
}

.footer-parent-link {
  max-width: 340px;
  margin-top: 1.25rem;
  padding: 0.72rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-parent-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.footer-bottom span:last-child {
  max-width: 62ch;
  text-align: right;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .menu-button {
    margin-left: auto;
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    max-height: calc(100vh - 120px);
    padding: 0.75rem;
    display: none;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a,
  .site-nav .nav-external {
    margin: 0;
    padding: 0.78rem 0.85rem;
  }
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 74px;
  }

  .brand {
    flex-basis: auto;
    gap: 0.65rem;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 14px;
  }

  .brand-mark .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-parent,
  .brand-tagline {
    font-size: 0.54rem;
  }

  .site-nav {
    right: 0.625rem;
    left: 0.625rem;
  }

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

  .footer-intro {
    grid-column: auto;
  }

  .footer-bottom span:last-child {
    text-align: left;
  }
}
