:root {
  color-scheme: light;
  --bg: #edf3f7;
  --panel: #ffffff;
  --ink: #142333;
  --muted: #52697d;
  --navy: #061f3d;
  --navy-2: #0b355c;
  --blue: #1475bb;
  --cyan: #00a7bd;
  --teal: #078f7c;
  --lime: #b7d51a;
  --yellow: #f5be18;
  --orange: #f16f22;
  --violet: #7456b5;
  --red: #c9343b;
  --line: rgba(13, 44, 71, 0.15);
  --shadow: 0 15px 34px rgba(8, 30, 51, 0.12);
  --shadow-soft: 0 8px 20px rgba(8, 30, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
video,
audio {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
audio:focus-visible,
video:focus-visible {
  outline: 3px solid #59d9f0;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 9px 14px;
  color: #fff;
  background: linear-gradient(108deg, #031a34, #064965 68%, #086f73);
  border-bottom: 3px solid var(--lime);
  box-shadow: 0 10px 28px rgba(4, 24, 45, 0.24);
}

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

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}

.brand span {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.05;
}

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

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.57rem;
  font-weight: 800;
  text-transform: uppercase;
}

.top-nav {
  display: none;
  gap: 4px;
}

.header-cobrand {
  display: none;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.23);
}

.header-cobrand img {
  width: 54px;
  max-height: 30px;
  padding: 3px 5px;
  border-radius: 3px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
}

.header-cobrand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.63rem;
  font-weight: 850;
  text-transform: uppercase;
}

.top-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.13);
}

.top-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--lime);
}

.connection-status {
  min-width: max-content;
  padding: 6px 8px;
  border: 1px solid rgba(183, 213, 26, 0.55);
  border-radius: 999px;
  color: #ecff91;
  background: rgba(4, 28, 47, 0.5);
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.connection-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.connection-status.offline {
  color: #ffe69a;
  border-color: rgba(245, 190, 24, 0.65);
}

.connection-status.offline::before {
  background: var(--yellow);
}

main {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 14px 12px 90px;
  outline: 0;
}

.video-hero {
  position: relative;
  min-height: clamp(500px, 70svh, 570px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.video-hero > video,
.video-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-hero > video {
  object-fit: cover;
  object-position: 54% center;
}

.video-hero-shade {
  background: linear-gradient(180deg, rgba(2, 16, 32, 0.1) 18%, rgba(2, 18, 36, 0.9) 80%), linear-gradient(90deg, rgba(4, 25, 49, 0.84), transparent 75%);
}

.hero-media-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 44px;
  max-width: calc(100% - 24px);
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  color: #fff;
  background: rgba(3, 24, 45, 0.78);
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.video-hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 24px 18px 26px;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-primary-brand {
  width: clamp(150px, 42vw, 245px);
  min-height: 52px;
  display: flex;
  align-items: center;
}

.hero-primary-brand img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.42));
}

.hero-cobrand {
  min-width: 92px;
  display: grid;
  gap: 5px;
  justify-items: start;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  background: rgba(2, 24, 44, 0.6);
}

.hero-cobrand img {
  width: 62px;
  max-height: 28px;
  padding: 3px 5px;
  border-radius: 3px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
}

.hero-cobrand small {
  max-width: 145px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.25;
}

.video-hero h1,
.page-hero h1,
.section-hero h1,
.item-hero h1,
.marshalling-hero h1,
.search-shell h1,
.error-panel h1 {
  margin: 0;
  max-width: 830px;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 9vw, 4.6rem);
  line-height: 1;
}

.video-hero h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.02;
}

.video-hero p,
.page-hero p,
.section-hero p,
.item-hero p,
.marshalling-hero p {
  max-width: 730px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 8px;
  color: #80e8ff;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #087894;
}

.hero-actions,
.action-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-actions {
  margin-top: 20px;
}

.button {
  min-height: 46px;
  max-width: 100%;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  color: #fff;
  background: var(--navy-2);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #071b2e;
  background: linear-gradient(135deg, #d8ed2b, #8fd925);
  box-shadow: 0 11px 25px rgba(150, 205, 28, 0.24);
}

.button.secondary {
  color: var(--navy);
  background: #e5f2fa;
  border: 1px solid rgba(20, 117, 187, 0.18);
}

.button.quiet {
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
}

.button.hero-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.grid {
  display: grid;
  gap: 12px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 34px 2px 14px;
}

.section-heading.compact {
  margin: 0 0 14px;
}

.section-heading h2,
.qr-intro h2,
.panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2.15rem);
  line-height: 1.08;
}

.section-heading p {
  margin: 6px 0 0;
}

.text-link {
  min-width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  color: #086e9e;
  font-weight: 850;
}

.dashboard-grid,
.directory-grid {
  grid-template-columns: 1fr;
}

.dashboard-grid .section-card {
  min-height: 168px;
}

.quick-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-action {
  --accent: var(--blue);
  min-width: 0;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.quick-action strong,
.quick-action small {
  overflow-wrap: anywhere;
}

.quick-action strong {
  color: var(--navy);
  line-height: 1.15;
}

.quick-action small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.section-card {
  --accent: var(--blue);
  min-width: 0;
  min-height: 148px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.section-card:hover,
.section-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.section-icon,
.section-hero-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
}

.section-copy {
  min-width: 0;
}

.section-copy > small {
  color: var(--accent);
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-copy h3 {
  margin: 4px 0 6px;
  overflow-wrap: anywhere;
  font-size: 1.12rem;
}

.section-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.section-count {
  min-width: 36px;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 950;
  text-align: right;
}

.section-count small {
  display: block;
  color: var(--muted);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.accent-orange { --accent: var(--orange); }
.accent-violet { --accent: var(--violet); }
.accent-red { --accent: var(--red); }
.accent-blue { --accent: var(--blue); }
.accent-yellow { --accent: #bd8b00; }
.accent-cyan { --accent: var(--cyan); }

.content-section {
  margin-top: 34px;
}

.updates-grid {
  display: grid;
  gap: 12px;
}

.update-card,
.panel,
.item-card,
.error-panel,
.focus-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.update-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
}

.update-card h3,
.item-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.18;
}

.update-card p,
.item-card p {
  margin: 0;
  line-height: 1.47;
}

.update-card .action-row {
  margin-top: auto;
}

.update-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.update-type {
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 900;
}

.qr-band {
  margin-top: 34px;
  display: grid;
  gap: 20px;
  padding: 21px 17px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(125deg, #05203d, #073d63 68%, #075c63);
  box-shadow: var(--shadow);
}

.qr-intro p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.qr-tile {
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.qr-number {
  color: #dff455;
  font-size: 0.67rem;
  font-weight: 950;
}

.qr-tile strong {
  overflow-wrap: anywhere;
  line-height: 1.12;
}

.qr-tile small {
  color: rgba(255, 255, 255, 0.68);
}

.split-band {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.panel,
.error-panel {
  min-width: 0;
  padding: 17px;
}

.directory-panel {
  color: #fff;
  background: #0a2e50;
}

.directory-panel .eyebrow,
.directory-panel .muted {
  color: rgba(255, 255, 255, 0.72);
}

.directory-links {
  margin-top: 17px;
  display: grid;
  gap: 7px;
}

.directory-links a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
}

.directory-links span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--navy);
  background: var(--lime);
  font-size: 0.65rem;
  font-weight: 950;
}

.page-hero,
.section-hero,
.item-hero {
  overflow: hidden;
  padding: 24px 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, #071d38, #0c5270);
  box-shadow: var(--shadow);
}

.section-hero {
  --accent: var(--blue);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  border-bottom: 6px solid var(--accent);
}

.section-hero-icon {
  width: 54px;
  height: 54px;
}

.focus-strip {
  margin-top: 12px;
  padding: 14px;
}

.focus-strip > strong {
  display: block;
  margin-bottom: 9px;
}

.marshalling-feature {
  margin-top: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: #082746;
  text-decoration: none;
}

.marshalling-feature img {
  width: 92px;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
}

.marshalling-feature > span {
  min-width: 0;
  padding: 14px 14px 10px 0;
}

.marshalling-feature small,
.marshalling-feature strong,
.marshalling-feature span span {
  display: block;
}

.marshalling-feature small {
  color: #ddef58;
  font-weight: 900;
  text-transform: uppercase;
}

.marshalling-feature strong {
  margin: 5px 0;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.marshalling-feature span span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.4;
}

.marshalling-feature > b {
  grid-column: 1 / -1;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #051c34;
  background: var(--lime);
  font-size: 0.8rem;
}

.section-results,
.search-results {
  margin-top: 14px;
}

.item-list {
  display: grid;
  gap: 10px;
}

.item-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 15px;
}

.item-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.mini-warning {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 4px;
  color: #6f1720;
  background: #ffe2e5;
  font-size: 0.61rem;
  font-weight: 950;
}

.muted,
.small-note,
.body-copy {
  color: var(--muted);
}

.small-note {
  font-size: 0.72rem;
}

.badge,
.tag {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--navy);
  background: #f4f8fb;
  font-size: 0.68rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.badge.draft {
  color: #6e4800;
  background: #fff2bf;
  border-color: rgba(189, 139, 0, 0.32);
}

.badge.high,
.badge.critical {
  color: #78131d;
  background: #ffe2e5;
  border-color: rgba(201, 52, 59, 0.28);
}

.badge.approved {
  color: #075d4e;
  background: #dcf6ed;
}

.search-shell {
  padding: 21px 17px;
}

.search-shell h1 {
  color: var(--ink);
  font-size: clamp(1.8rem, 8vw, 3.7rem);
}

.search-panel {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.empty-state {
  padding: 22px 16px;
  border: 1px dashed rgba(13, 44, 71, 0.24);
  border-radius: 6px;
  background: #f7fafc;
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

.empty-state p {
  max-width: 520px;
  margin: 7px auto 14px;
  color: var(--muted);
  line-height: 1.45;
}

.marshalling-hero {
  overflow: hidden;
  display: grid;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.marshalling-hero img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.marshalling-hero > div {
  padding: 22px 17px;
}

.notice-callout {
  margin-top: 12px;
  padding: 14px 15px;
  border-left: 5px solid var(--cyan);
  border-radius: 5px;
  color: #0b3850;
  background: #e7f7fa;
}

.notice-callout.warning-callout {
  border-left-color: var(--yellow);
  background: #fff6d9;
}

.notice-callout.draft-placeholder-notice {
  border-left-color: var(--orange);
  color: #5f2a08;
  background: #fff0e5;
}

.notice-callout p {
  margin: 4px 0 0;
  line-height: 1.45;
}

.marshalling-layout,
.content-layout {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.marshalling-docs img {
  width: 100%;
  max-height: 340px;
  margin-bottom: 15px;
  border-radius: 5px;
  object-fit: contain;
  background: #e8eef3;
}

.stacked-actions {
  display: grid;
  gap: 8px;
}

.item-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.warning-marker {
  align-self: flex-start;
  min-width: 112px;
  padding: 11px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: #301009;
  background: var(--yellow);
  text-align: center;
}

.warning-marker span,
.warning-marker strong {
  display: block;
}

.warning-marker span {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.warning-marker strong {
  overflow-wrap: anywhere;
  font-size: 1.18rem;
}

.detail-line {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-line strong,
.detail-line span {
  display: block;
}

.detail-line strong {
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.detail-line span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.sidebar-block {
  margin-top: 15px;
}

.sidebar-block > strong {
  display: block;
  margin-bottom: 8px;
}

.reference-content > .action-row {
  margin-bottom: 15px;
}

.media-grid {
  display: grid;
  gap: 10px;
}

.media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dbe7ef;
}

.media-card div {
  padding: 10px;
}

.asset-placeholder {
  padding: 13px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #f6f9fb;
}

.guidance-grid {
  margin-top: 17px;
  display: grid;
  gap: 10px;
}

.guidance-card {
  min-width: 0;
  padding: 14px;
  border-left: 4px solid var(--cyan);
  background: #edf8fa;
}

.guidance-card.caution {
  border-left-color: var(--orange);
  background: #fff2e8;
}

.guidance-card p,
.guidance-card ul {
  margin: 0;
  line-height: 1.48;
}

.guidance-card ul,
.text-list ul,
.text-list ol {
  padding-left: 20px;
}

.read-along-panel,
.local-acknowledgment {
  margin-top: 17px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f8fa;
}

.read-along-panel h3 {
  margin: 0 0 6px;
}

.read-along-panel p {
  margin: 0;
  line-height: 1.45;
}

.audio-row {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.audio-row strong,
.audio-row small {
  display: block;
}

.audio-row small {
  color: var(--muted);
}

.audio-row audio {
  width: 100%;
}

.local-acknowledgment label {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  cursor: pointer;
}

.local-acknowledgment input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
}

.local-acknowledgment strong,
.local-acknowledgment small {
  display: block;
}

.local-acknowledgment small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.text-list {
  margin-top: 18px;
}

.text-list h3 {
  margin: 0;
}

.text-list li {
  margin: 6px 0;
  line-height: 1.45;
}

.bottom-nav {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.app-footer {
  padding: 28px 16px 102px;
  color: rgba(255, 255, 255, 0.78);
  background: #05070b;
  border-top: 4px solid var(--lime);
}

.app-footer > * {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}

.footer-brand-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.app-footer p {
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.5;
}

.footer-disclaimer {
  max-width: 920px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.bottom-nav a {
  min-width: 0;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 4px 2px;
  border-radius: 5px;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
}

.bottom-nav a:focus-visible,
.bottom-nav a:hover,
.bottom-nav a[aria-current="page"] {
  color: #fff;
  background: var(--navy-2);
}

.loading-panel,
.error-panel {
  padding: 24px 18px;
}

.loading-panel {
  min-height: 240px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.loading-panel h1,
.loading-panel p {
  margin-top: 0;
}

.loading-bar {
  width: min(360px, 100%);
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8ef;
}

.loading-bar span {
  width: 45%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--lime));
  animation: loading-slide 1.4s ease-in-out infinite alternate;
}

@keyframes loading-slide {
  to { transform: translateX(122%); }
}

@media (max-width: 374px) {
  .dashboard-grid .section-card {
    min-height: 184px;
  }

  .section-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .section-icon {
    width: 42px;
    height: 42px;
  }

  .section-count {
    grid-column: 2;
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-align: left;
  }

  .bottom-nav a {
    font-size: 0.58rem;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

@media (min-width: 375px) {
  main {
    padding-inline: 15px;
  }

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

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

  .video-hero-content,
  .page-hero,
  .section-hero,
  .item-hero {
    padding-inline: 22px;
  }
}

@media (min-width: 560px) {
  main {
    padding: 22px 20px 94px;
  }

  .dashboard-grid,
  .directory-grid,
  .updates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-band {
    grid-template-columns: minmax(200px, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
  }

  .media-grid,
  .guidance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 760px) {
  .app-header {
    grid-template-columns: minmax(190px, 1fr) auto auto auto;
    padding: 10px clamp(20px, 4vw, 48px);
  }

  .top-nav {
    display: flex;
  }

  .header-cobrand {
    display: none;
  }

  .bottom-nav {
    display: none;
  }

  main {
    padding: 28px clamp(22px, 4vw, 40px) 54px;
  }

  .video-hero-content {
    padding: 38px;
  }

  .video-hero {
    min-height: 540px;
  }

  .video-hero > video {
    object-position: center;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .split-band {
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
  }

  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .reference-sidebar {
    position: sticky;
    top: 88px;
  }

  .search-panel {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .marshalling-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
  }

  .marshalling-hero img {
    height: 100%;
    min-height: 380px;
  }

  .marshalling-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    align-items: start;
  }

  .app-footer {
    padding-bottom: 34px;
  }
}

@media (min-width: 1040px) {
  .header-cobrand {
    display: flex;
  }

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

  .dashboard-grid .section-card {
    min-height: 148px;
  }

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

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

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

  .section-card {
    transition: none;
  }

  .loading-bar span {
    animation: none;
    transform: none;
  }
}

@media print {
  .app-header,
  .bottom-nav,
  .video-hero video,
  .hero-actions,
  .connection-status {
    display: none !important;
  }

  .app-footer {
    color: #111;
    background: #fff;
    border-top: 1px solid #999;
  }

  body,
  main {
    background: #fff;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .panel,
  .item-card,
  .section-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
