:root {
  --ink: #17212b;
  --muted-ink: #5c6875;
  --line: #d6e4f0;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --soft-blue: #e6f2ff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.98);
  --field-bg: #ffffff;
  --official-red: #d40000;
  --official-gold: #ffb400;
  --official-blue: #0077c8;
  --official-teal: #1c8b82;
  --deep-blue: #1b3a6b;
  --heading-ink: #1b3a6b;
  --official-navy: #1b3a6b;
  --shadow: 0 14px 30px rgba(27, 58, 107, 0.12);
  --container: min(1180px, calc(100vw - 40px));
  --anchor-offset: 280px;
}

html[data-theme="dark"] {
  --ink: #e8eef3;
  --muted-ink: #b3c0ca;
  --line: #2d4960;
  --paper: #101820;
  --soft: #172330;
  --soft-blue: #173450;
  --surface: #14202a;
  --surface-raised: #1a2834;
  --header-bg: rgba(16, 24, 32, 0.98);
  --field-bg: #0f1820;
  --official-red: #ff6b6b;
  --official-gold: #ffcb52;
  --official-blue: #00aeff;
  --official-teal: #62c7bd;
  --deep-blue: #1b3a6b;
  --heading-ink: #d9e9f3;
  --official-navy: #09131c;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(27, 58, 107, 0.08);
}

.official-strip {
  color: #fff;
  background: var(--official-navy);
  font-size: 0.84rem;
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 34px;
}

.strip-inner span:first-child {
  padding-left: 12px;
  border-left: 5px solid var(--official-red);
  font-weight: 700;
}

.strip-inner span + span {
  color: color-mix(in srgb, #fff 78%, var(--official-navy));
}

.strip-inner a {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.sede-session {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: #fff;
  font-weight: 700;
}

.strip-inner .sede-session-logout {
  margin-left: 8px;
  opacity: 0.88;
}

.strip-inner a:hover,
.strip-inner a:focus-visible {
  text-decoration: underline;
}

.site-notice {
  color: var(--ink);
  background: color-mix(in srgb, var(--official-gold) 18%, var(--surface-raised));
  border-bottom: 1px solid color-mix(in srgb, var(--official-gold) 42%, var(--line));
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding-block: 6px;
  font-size: 0.9rem;
}

.notice-inner strong {
  flex: 0 0 auto;
  color: var(--heading-ink);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notice-inner span {
  color: var(--muted-ink);
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 520px) auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid var(--official-gold);
  border-radius: 8px;
}

.brand strong {
  display: block;
  color: var(--heading-ink);
  font-size: 1.45rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.site-search {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-bg);
  overflow: hidden;
}

.site-search:focus-within {
  border-color: var(--official-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--official-blue) 18%, transparent);
}

.site-search input {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--field-bg);
  border: 0;
  outline: 0;
}

.site-search button {
  height: 42px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  border: 0;
  background: var(--official-blue);
}

.site-search button:hover,
.site-search button:focus-visible {
  background: var(--official-navy);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  box-shadow: inset 0 1px 2px rgba(27, 58, 107, 0.08), 0 2px 8px rgba(27, 58, 107, 0.1);
  overflow: hidden;
}

.theme-toggle::before {
  position: absolute;
  inset: 4px;
  content: "";
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: 0 2px 8px rgba(27, 58, 107, 0.14);
  transition: transform 180ms ease, background-color 180ms ease;
}

.theme-toggle.is-switching::before {
  transform: scale(0.72);
}

.theme-toggle-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: transform 180ms ease, opacity 180ms ease;
}

.theme-toggle.is-switching .theme-toggle-icon {
  opacity: 0;
  transform: rotate(140deg) scale(0.5);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-icon {
  transform: rotate(-12deg);
}

.theme-toggle[aria-pressed="true"].is-switching .theme-toggle-icon {
  transform: rotate(-150deg) scale(0.5);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--official-blue);
  outline: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--heading-ink);
}

.nav-shell {
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
}

.primary-nav {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 4px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  color: var(--heading-ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  content: "";
  background: transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--official-blue);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  background: var(--official-gold);
}

.primary-nav a[aria-current="page"] {
  color: var(--official-blue);
}

.subnav-shell {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.section-subnav {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.section-subnav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 10px;
  color: var(--muted-ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.section-subnav a:hover,
.section-subnav a:focus-visible,
.section-subnav a[aria-current="page"] {
  color: var(--official-blue);
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--official-navy);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(10, 26, 39, 0.86), rgba(10, 26, 39, 0.58) 44%, rgba(10, 26, 39, 0.18)),
    linear-gradient(0deg, rgba(10, 26, 39, 0.58), rgba(10, 26, 39, 0.08) 56%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 34px;
  min-height: 500px;
  padding-block: 58px 44px;
}

.hero-content {
  color: #fff;
}

.kicker,
.label,
.meta,
.panel-label {
  margin: 0;
  color: var(--official-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: color-mix(in srgb, var(--official-gold) 56%, #fff);
}

.hero h1 {
  max-width: 820px;
  margin: 10px 0 16px;
  font-size: 4.35rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.kicker) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: var(--official-red);
  border: 1px solid transparent;
  border-radius: 6px;
}

.button.primary {
  color: #fff;
  background: var(--official-red);
}

.button:hover,
.button:focus-visible,
.button.primary:hover,
.button.primary:focus-visible {
  background: color-mix(in srgb, var(--official-red) 72%, var(--official-navy));
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button:disabled:hover,
.button:disabled:focus-visible {
  background: var(--official-red);
}

.button.disabled-link,
.button.disabled-link:hover,
.button.disabled-link:focus-visible {
  cursor: not-allowed;
  opacity: 0.48;
  background: var(--official-red);
}

.button.secondary {
  color: var(--heading-ink);
  background: transparent;
  border-color: color-mix(in srgb, var(--heading-ink) 45%, var(--line));
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: #fff;
  background: var(--official-navy);
  border-color: var(--official-navy);
}

.hero .button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero .button.secondary:hover,
.hero .button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.86);
}

.status-panel {
  padding: 22px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
  border-top: 5px solid var(--official-gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-panel strong {
  display: block;
  margin-top: 7px;
  color: var(--heading-ink);
  font-size: 1.22rem;
  line-height: 1.2;
}

.status-panel dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.status-panel dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.status-panel dt {
  color: var(--muted-ink);
  font-size: 0.92rem;
}

.status-panel dd {
  margin: 0;
  color: var(--heading-ink);
  font-weight: 900;
}

.quick-access {
  padding: 28px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.quick-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.quick-heading h2 {
  margin: 4px 0 0;
  color: var(--heading-ink);
  font-size: 1.35rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.quick-link {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 17px;
  text-decoration: none;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-link span {
  color: var(--official-teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.quick-link strong {
  color: var(--heading-ink);
  line-height: 1.22;
}

.quick-link small {
  color: var(--muted-ink);
  font-size: 0.88rem;
}

.quick-link:hover,
.quick-link:focus-visible {
  background: var(--soft-blue);
  border-color: color-mix(in srgb, var(--official-blue) 28%, var(--line));
  box-shadow: 0 8px 20px rgba(27, 58, 107, 0.08);
}

.notice-band {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.notice-grid > *,
.split-layout > *,
.data-layout > * {
  min-width: 0;
}

.notice-grid article {
  padding: 24px;
  background: var(--soft);
}

.notice-grid h2 {
  margin: 7px 0 8px;
  color: var(--heading-ink);
  font-size: 1.05rem;
  line-height: 1.24;
}

.notice-grid p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.95rem;
}

.section {
  padding: 76px 0;
}

.section[id],
.program-card[id],
.news-card[id] {
  scroll-margin-top: var(--anchor-offset);
}

.section.muted {
  background: var(--soft);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.section-copy h1,
.section-copy h2,
.section-heading h1,
.section-heading h2 {
  margin: 8px 0 18px;
  color: var(--heading-ink);
  font-size: 2.65rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-copy,
.page-heading {
  max-width: 820px;
}

.section-copy p:not(.kicker) {
  color: var(--muted-ink);
  font-size: 1rem;
}

.media-panel,
.catalog-card {
  margin: 0;
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-panel img,
.catalog-card img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.media-panel figcaption,
.catalog-card figcaption {
  padding: 14px 16px;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.with-filter {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.program-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.program-card,
.news-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(27, 58, 107, 0.08);
}

.program-card.shop-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

a.news-card {
  color: inherit;
  text-decoration: none;
}

a.news-card:hover,
a.news-card:focus-visible {
  border-color: color-mix(in srgb, var(--official-blue) 42%, var(--line));
}

.section-card {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.section-card:hover,
.section-card:focus-visible {
  border-color: color-mix(in srgb, var(--official-blue) 42%, var(--line));
  transform: translateY(-2px);
}

.section-card h3::after {
  display: inline-block;
  margin-left: 8px;
  color: var(--official-blue);
  content: "›";
}

.program-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.image-fallback {
  object-fit: contain !important;
  padding: 18px;
  background: var(--surface-raised);
}

.is-expandable-image {
  cursor: zoom-in;
}

.is-expandable-image:hover,
.is-expandable-image:focus-visible {
  filter: saturate(1.03) contrast(1.02);
}

.has-open-lightbox {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 19, 0.84);
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(1120px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  margin: 0;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.image-lightbox-panel img {
  width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
  background: #070d13;
}

.image-lightbox-panel figcaption {
  padding: 14px 18px;
  color: var(--muted-ink);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(9, 19, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: var(--official-red);
  outline: 0;
}

.program-card div,
.news-card div {
  padding: 18px;
}

.program-card.shop-card > div {
  display: flex;
  flex-direction: column;
}

.program-card h3,
.news-card h3,
.office-box h3 {
  margin: 6px 0 8px;
  color: var(--heading-ink);
  font-size: 1.14rem;
  line-height: 1.18;
}

.program-card p,
.news-card p,
.office-box p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.94rem;
}

.shop-card-meta {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.shop-card-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.shop-card-meta dt {
  color: var(--muted-ink);
  font-size: 0.82rem;
}

.shop-card-meta dd {
  margin: 0;
  color: var(--heading-ink);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: right;
}

.shop-card-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 38px;
  margin-top: 16px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  background: var(--official-red);
  border-radius: 6px;
}

.shop-promo-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--promo-badge-size, clamp(56px, 18%, 78px));
  height: var(--promo-badge-size, clamp(56px, 18%, 78px));
  padding: calc(var(--promo-badge-size, 70px) * 0.15);
  color: #fff;
  font-size: calc(var(--promo-badge-size, 70px) * 0.32);
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 calc(var(--promo-badge-size, 70px) * 0.03) 0 rgba(97, 5, 18, 0.92),
    0 0 calc(var(--promo-badge-size, 70px) * 0.11) rgba(97, 5, 18, 0.35);
  background:
    radial-gradient(circle at 48% 38%, #ff3a3f 0 28%, #d9152a 58%, #7f0717 100%);
  border: max(2px, calc(var(--promo-badge-size, 70px) * 0.045)) solid #fff;
  clip-path: polygon(
    50% 0%, 56% 12%, 65% 3%, 69% 17%, 81% 10%, 82% 24%,
    96% 21%, 91% 35%, 100% 43%, 87% 50%, 100% 57%, 91% 65%,
    96% 79%, 82% 76%, 81% 90%, 69% 83%, 65% 97%, 56% 88%,
    50% 100%, 44% 88%, 35% 97%, 31% 83%, 19% 90%, 18% 76%,
    4% 79%, 9% 65%, 0% 57%, 13% 50%, 0% 43%, 9% 35%,
    4% 21%, 18% 24%, 19% 10%, 31% 17%, 35% 3%, 44% 12%
  );
  filter: drop-shadow(0 calc(var(--promo-badge-size, 70px) * 0.14) calc(var(--promo-badge-size, 70px) * 0.17) rgba(27, 58, 107, 0.26));
  transform: rotate(8deg);
}

.shop-promo-badge::after {
  position: absolute;
  inset: 9%;
  z-index: -1;
  content: "";
  clip-path: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.shop-promo-badge--card {
  --promo-badge-size: clamp(58px, 18%, 82px);
  top: 14px;
  right: 14px;
}

.shop-promo-badge--teaser {
  --promo-badge-size: clamp(46px, 16%, 66px);
  top: 10px;
  right: 10px;
}

.shop-promo-badge--detail {
  --promo-badge-size: clamp(82px, 18%, 132px);
  top: clamp(14px, 3%, 24px);
  right: clamp(14px, 3%, 24px);
}

.product-gallery {
  display: grid;
}

.product-gallery-stage {
  position: relative;
  background: var(--soft);
}

.product-gallery-panel[hidden] {
  display: none;
}

.product-gallery-media {
  display: block;
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
  background: var(--soft);
}

video.product-gallery-media {
  object-fit: contain;
  background: #070d13;
}

.product-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 82px));
  justify-content: start;
  gap: 6px;
  padding: 8px;
  background: color-mix(in srgb, var(--surface-raised) 88%, var(--soft));
  border-top: 1px solid var(--line);
}

.product-gallery-thumb {
  display: grid;
  min-width: 0;
  padding: 4px;
  color: var(--muted-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.product-gallery-thumb img,
.product-gallery-thumb-label {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  object-fit: cover;
  color: var(--heading-ink);
  background: var(--soft);
  border-radius: 4px;
}

.product-gallery-thumb[aria-selected="true"] {
  color: var(--heading-ink);
  border-color: var(--official-blue);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--official-blue) 26%, transparent);
}

.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible {
  border-color: var(--official-blue);
  outline: 0;
}

.shop-product-detail .data-table-wrap th {
  width: 34%;
  color: var(--heading-ink);
  background: var(--soft-blue);
}

.shop-product-detail .button[type="button"] {
  border: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 36px;
  padding: 7px 12px;
  color: var(--heading-ink);
  font-weight: 800;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--official-blue);
}

.filter-button.active {
  color: #fff;
  background: var(--official-navy);
  border-color: var(--official-navy);
}

.news-grid {
  grid-template-columns: repeat(4, 1fr);
}

.press-carousel,
.store-carousel {
  display: block;
  min-width: 0;
}

[data-render="press-featured"],
[data-render="shop-featured"] {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.featured-carousel {
  --carousel-gap: 20px;
  --carousel-visible-count: 3;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.featured-carousel-viewport {
  min-width: 0;
  overflow: hidden;
}

.featured-carousel-track {
  display: flex;
  min-width: 0;
  gap: var(--carousel-gap);
  transition: transform 360ms ease;
  will-change: transform;
}

.featured-carousel-track > * {
  flex: 0 0 calc((100% - (var(--carousel-gap) * (var(--carousel-visible-count) - 1))) / var(--carousel-visible-count));
  min-width: 0;
}

.featured-card {
  display: grid;
  align-content: start;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.featured-card:hover,
.featured-card:focus-visible {
  border-color: color-mix(in srgb, var(--official-blue) 42%, var(--line));
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  background: var(--soft);
}

.featured-card div {
  padding: 16px;
}

.featured-card h3 {
  margin: 6px 0 8px;
  color: var(--heading-ink);
  font-size: 1.08rem;
  line-height: 1.16;
}

.featured-card p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 48px;
  place-items: center;
  color: var(--heading-ink);
  background: color-mix(in srgb, var(--surface-raised) 84%, transparent);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: translateY(-50%);
}

.carousel-control:hover,
.carousel-control:focus-visible {
  color: #fff;
  background: var(--official-navy);
  border-color: var(--official-navy);
}

.carousel-control span {
  display: block;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.carousel-control-prev {
  left: -17px;
}

.carousel-control-next {
  right: -17px;
}

.news-card.is-hidden {
  display: none;
}

.news-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  background: var(--soft);
}

.store-carousel {
  grid-template-columns: none;
}

.procedure-list {
  display: grid;
  gap: 12px;
}

.procedure {
  display: block;
  width: 100%;
  padding: 17px;
  scroll-margin-top: 96px;
  text-align: left;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--official-blue);
  border-radius: 8px;
}

.procedure strong,
.procedure span {
  display: block;
}

.procedure strong {
  color: var(--heading-ink);
}

.procedure span {
  margin-top: 4px;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.procedure:hover,
.procedure:focus-visible {
  border-left-color: var(--official-red);
  box-shadow: 0 10px 24px rgba(27, 58, 107, 0.1);
}

.office-box {
  padding: 28px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-top: 5px solid var(--official-gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.office-box h2,
.office-box h3 {
  margin: 8px 0 12px;
  color: var(--heading-ink);
  line-height: 1.18;
}

.office-box p {
  color: var(--muted-ink);
}

.office-box-status {
  align-self: stretch;
}

.service-status-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.service-status-list div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.service-status-list dt {
  color: var(--heading-ink);
  font-weight: 800;
}

.service-status-list dd {
  margin: 3px 0 0;
  color: var(--muted-ink);
}

.procedure-list-large {
  gap: 10px;
}

.procedure-result-box {
  display: flex;
  flex-direction: column;
  min-height: 324px;
  position: sticky;
  top: 216px;
}

.procedure-result-box h3 {
  min-height: 2.4em;
}

.procedure-result-box #procedure-result {
  min-height: 4.8em;
}

.procedure-result-box .office-note {
  min-height: 4.2em;
  margin-bottom: 14px;
}

.office-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.procedure-start {
  align-self: flex-start;
  margin-top: auto;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: transparent;
}

.service-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 220px;
  border-left: 1px solid var(--line);
}

.service-grid article:first-child {
  border-left: 0;
}

.service-grid h3 {
  margin: 0;
  color: var(--heading-ink);
  font-size: 1.06rem;
  line-height: 1.24;
}

.service-grid small {
  align-self: end;
  color: var(--official-blue);
  font-weight: 800;
  line-height: 1.35;
}

.case-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.case-form label {
  color: var(--heading-ink);
  font-weight: 800;
}

.case-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.case-form input {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.case-form input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--official-blue) 25%, transparent);
  border-color: var(--official-blue);
}

.case-result {
  min-height: 268px;
  border-top-color: var(--official-blue);
}

.sede-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label,
.form-checks label {
  color: var(--heading-ink);
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.form-grid textarea {
  resize: vertical;
}

.form-grid input:focus-visible,
.form-grid select:focus-visible,
.form-grid textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--official-blue) 25%, transparent);
  border-color: var(--official-blue);
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-checks {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: start;
}

.form-checks label {
  color: var(--muted-ink);
  font-weight: 700;
}

.form-checks input {
  margin-top: 5px;
}

.identification-panel h2 + h2 {
  margin-top: 0;
  color: var(--muted-ink);
  font-size: 1rem;
}

.identification-loader {
  height: 8px;
  margin: 18px 0 10px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.identification-loader span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--official-blue);
  border-radius: inherit;
  transition: width 240ms ease, background 240ms ease;
}

.identification-panel.is-complete .identification-loader span {
  width: 100%;
  background: var(--official-teal);
}

.identification-steps dd {
  font-weight: 800;
}

.identification-steps dd.is-pending {
  color: var(--official-red);
}

.identification-steps dd.is-active {
  color: var(--official-gold);
}

.identification-steps dd.is-complete {
  color: var(--official-teal);
}

.data-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

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

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

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

th {
  color: #fff;
  background: var(--official-navy);
  font-size: 0.88rem;
}

td {
  color: var(--muted-ink);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.document-link {
  display: inline-grid;
  width: 40px;
  height: 40px;
  color: var(--heading-ink);
  font-size: 1.35rem;
  text-decoration: none;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  place-items: center;
}

.document-link:hover,
.document-link:focus-visible {
  color: var(--official-blue);
  background: var(--surface-raised);
  border-color: var(--official-blue);
}

.site-footer {
  padding: 30px 0;
  color: color-mix(in srgb, #fff 84%, var(--official-navy));
  background: var(--official-navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr auto;
  gap: 28px;
}

.site-footer strong,
.site-footer span {
  color: #fff;
  font-weight: 800;
}

.site-footer p {
  margin: 6px 0 0;
  color: color-mix(in srgb, #fff 68%, var(--official-navy));
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-social a {
  color: color-mix(in srgb, #fff 84%, var(--official-navy));
  font-weight: 700;
  text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-theme {
  display: flex;
  align-items: center;
}

.site-footer .theme-toggle {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.16);
}

.site-footer .theme-toggle::before {
  background: rgba(255, 255, 255, 0.92);
}

.site-footer .theme-toggle:hover,
.site-footer .theme-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1100px) {
  .brand-row {
    grid-template-columns: 1fr auto;
  }

  .site-search {
    grid-column: 1 / -1;
    order: 3;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .quick-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-carousel {
    --carousel-visible-count: 2;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-header {
    position: static;
  }

  .site-header.is-menu-open {
    position: static;
  }

  .nav-shell {
    border-top: 0;
  }

  .subnav-shell {
    display: none;
  }

  .site-header.is-menu-open .subnav-shell {
    display: block;
  }

  .section-subnav {
    display: grid;
    min-height: 0;
    padding: 0 0 16px;
    overflow: visible;
  }

  .section-subnav a {
    position: relative;
    min-height: 38px;
    padding: 0;
  }

  .section-subnav a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    content: "";
    background: transparent;
  }

  .section-subnav a:hover::after,
  .section-subnav a:focus-visible::after,
  .section-subnav a[aria-current="page"]::after {
    background: var(--official-gold);
  }

  .primary-nav {
    display: none;
    min-height: 0;
    padding: 0 0 16px;
  }

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

  .primary-nav a {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 40px;
    padding: 0;
  }

  .section-subnav a {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
  }

  .primary-nav a::after {
    right: 0;
    left: 0;
  }

  .hero-layout,
  .notice-grid,
  .program-grid,
  .split-layout,
  .data-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    align-items: end;
    gap: 20px;
  }

  .status-panel {
    max-width: 520px;
  }

  .section-heading.with-filter,
  .quick-heading {
    display: block;
  }

  .filter-bar {
    margin-top: 16px;
  }

  .procedure-result-box {
    min-height: auto;
    position: static;
  }

  .procedure-result-box h3,
  .procedure-result-box #procedure-result,
  .procedure-result-box .office-note {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(calc(100vw - 28px), 1180px);
  }

  .strip-inner {
    display: block;
    padding: 8px 0;
  }

  .strip-inner span,
  .strip-inner a {
    display: block;
  }

  .strip-inner a {
    margin-left: 0;
  }

  .notice-inner {
    display: block;
  }

  .notice-inner strong,
  .notice-inner span {
    display: block;
  }

  .brand-row {
    gap: 14px;
    min-height: 72px;
    padding-top: 8px;
  }

  .brand {
    gap: 10px;
  }

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

  .brand strong {
    font-size: 1.25rem;
  }

  .brand small {
    max-width: none;
    font-size: 0.82rem;
  }

  .site-search {
    grid-template-columns: 1fr;
  }

  .site-search input,
  .site-search button {
    height: 40px;
  }

  .case-form-row {
    grid-template-columns: 1fr;
  }

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

  .hero,
  .hero-layout {
    min-height: 460px;
  }

  .hero-layout {
    padding-block: 38px 28px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero p:not(.kicker) {
    font-size: 1rem;
  }

  .status-panel {
    display: none;
  }

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

  .featured-carousel {
    --carousel-visible-count: 1;
  }

  .carousel-control {
    width: 30px;
    height: 44px;
  }

  .carousel-control-prev {
    left: -8px;
  }

  .carousel-control-next {
    right: -8px;
  }

  .quick-link {
    min-height: 0;
  }

  .section {
    padding: 56px 0;
  }

  .section-copy h1,
  .section-copy h2,
  .section-heading h1,
  .section-heading h2 {
    font-size: 2rem;
  }

  .notice-grid article,
  .program-card div,
  .news-card div,
  .office-box {
    padding: 18px;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox-panel {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .image-lightbox-panel img {
    max-height: calc(100vh - 116px);
  }
}

@media print {
  .site-header,
  .site-footer,
  .no-print,
  .receipt-section + * {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section,
  .section.muted {
    padding: 0;
    background: #fff;
  }

}

@media (max-width: 960px) and (max-height: 560px) and (orientation: landscape) {
  .site-header {
    position: static;
  }

  .strip-inner {
    min-height: 28px;
    font-size: 0.78rem;
  }

  .notice-inner {
    min-height: 0;
    padding-block: 5px;
    font-size: 0.82rem;
  }

  .brand-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 58px;
  }

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

  .brand strong {
    font-size: 1.2rem;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .site-search {
    display: none;
  }

  .primary-nav {
    padding-bottom: 10px;
  }

  .section-subnav {
    padding-bottom: 10px;
  }

  .site-header.is-menu-open:has(.subnav-shell) .nav-shell {
    background:
      linear-gradient(90deg, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) calc(50% + 1px), transparent calc(50% + 1px)),
      var(--surface-raised);
  }

  .site-header.is-menu-open .primary-nav,
  .site-header.is-menu-open .section-subnav {
    grid-template-columns: 1fr;
  }

  .site-header.is-menu-open .primary-nav {
    width: 50%;
    padding-right: 18px;
  }

  .site-header.is-menu-open .subnav-shell {
    margin-top: calc(-1 * var(--mobile-primary-nav-height, 0px));
    background: transparent;
    border-top: 0;
  }

  .site-header.is-menu-open .section-subnav {
    width: 50%;
    margin-left: 50%;
    padding-left: 18px;
  }

  .primary-nav a {
    min-height: 38px;
  }

  .section-subnav a {
    min-height: 36px;
  }

  .hero,
  .hero-layout {
    min-height: min(420px, calc(100svh - 24px));
  }

  .hero-layout {
    padding-block: 30px 24px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .featured-carousel {
    --carousel-gap: 12px;
    --carousel-visible-count: 3;
  }

  .featured-card img {
    aspect-ratio: 2.45;
  }

  .featured-card div {
    padding: 10px 12px 12px;
  }

  .featured-card .meta {
    font-size: 0.72rem;
  }

  .featured-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 4px;
    font-size: 0.98rem;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .featured-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .shop-promo-badge--teaser {
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
  }
}
