/* Air Marshal Association — site styles
   Palette taken from airmarshal.org (royal blue #0544A4, deep navy #022663, black)
   plus the AMA logo's gold and silver. Layout system mirrors the NICE Association site. */
:root {
  --navy: #021a47;
  --navy-2: #022663;
  --navy-3: #0a2c6b;
  --ink: #0b1220;
  --black: #05070c;
  --blue: #0544a4;
  --blue-2: #0957d4;
  --gold: #c4a464;
  --gold-2: #d8c08f;
  --silver: #b1b7bc;
  --paper: #f3f5f8;
  --line: #dfe4ec;
  --muted: #4a5670;
  --white: #fff;
  --m: clamp(20px, 4vw, 56px);
  --ms1v: clamp(48px, 5.5vw, 88px);
  --ms1h: var(--m);
  --head-h: 72px;
  --hs1: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  --b17: 17px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: #05070c; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Archivo", system-ui, sans-serif; font-size: var(--b17); line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; font-weight: 800; font-stretch: 75%; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; font-weight: 700; border-radius: var(--r); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { padding-inline: var(--ms1h); max-width: 1560px; margin-inline: auto; }
.sec { padding-block: var(--ms1v); }
.hs1 { font-size: var(--hs1); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold); }
.lead { font-size: clamp(17px, 1.1vw + 10px, 21px); color: var(--muted); max-width: 52ch; }
.on-dark { color: var(--white); }
.on-dark .lead { color: #c9d3e6; }
.gold { color: var(--gold); }
.silver { color: var(--silver); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); cursor: pointer; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
@media (hover: hover) {
  .btn--gold:hover { background: var(--white); }
  .btn--blue:hover, .btn--navy:hover { background: var(--blue-2); }
  .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
}
.tlink { font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.on-dark .tlink { color: var(--gold); }
.btns { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: #021a47; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: var(--head-h); padding-inline: var(--m); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand b { display: block; font-size: 17px; font-weight: 800; font-stretch: 80%; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.brand small { display: block; font-size: 11px; letter-spacing: .16em; color: var(--silver); text-transform: uppercase; margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 11px; border-radius: 4px; color: #e5ebf5; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
@media (hover: hover) { .nav a:not(.btn):hover { color: var(--gold); } }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 9px 18px; font-size: 14.5px; color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--white); width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s var(--ease), opacity .3s; }
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 12px var(--m) 24px; border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; max-height: calc(100dvh - var(--head-h)); overflow: auto; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,20,56,.96) 0%, rgba(2,26,71,.82) 42%, rgba(2,26,71,.25) 75%, rgba(2,26,71,.35) 100%), linear-gradient(0deg, rgba(2,20,56,.9) 0%, rgba(2,20,56,0) 40%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(32px, 5vw, 80px); align-items: end; padding-block: clamp(64px, 9vw, 140px) clamp(48px, 6vw, 96px); min-height: min(86vh, 820px); }
.hero h1 { font-size: clamp(3.2rem, 1.6rem + 6.4vw, 8.2rem); font-stretch: 68%; line-height: .9; letter-spacing: -0.015em; text-transform: uppercase; }
.hero h1 .gold { display: block; }
.hero__kicker { font-size: clamp(15px, .6vw + 11px, 19px); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.hero__kicker img { width: 46px; height: 46px; }
.hero__copy { font-size: clamp(18px, .9vw + 12px, 23px); line-height: 1.45; color: #dfe6f3; max-width: 34ch; margin: 28px 0 30px; }
.hero__copy em { font-style: normal; color: var(--gold); font-weight: 700; }
.hero__fine { font-size: 13px; color: #a9b6cf; margin-top: 18px; max-width: 46ch; }

.sos { background: rgba(5, 10, 24, .72); border: 1px solid rgba(196,164,100,.55); border-radius: 10px; padding: 26px 26px 24px; backdrop-filter: blur(6px); }
.sos__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 5px 10px; border-radius: 3px; }
.sos__tag i { width: 8px; height: 8px; border-radius: 50%; background: #b3121f; box-shadow: 0 0 0 0 rgba(179,18,31,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(179,18,31,0); } 100% { box-shadow: 0 0 0 0 rgba(179,18,31,0); } }
.sos h2 { font-size: 26px; margin: 16px 0 6px; font-stretch: 80%; }
.sos__num { display: block; font-size: clamp(34px, 2.4vw + 16px, 50px); font-weight: 900; font-stretch: 70%; color: var(--gold); text-decoration: none; line-height: 1; margin: 12px 0 4px; letter-spacing: .01em; }
.sos__num + span { color: var(--silver); font-size: 15px; }
.sos p { font-size: 15px; color: #cfd8e8; margin: 14px 0 0; }
.sos p b { color: var(--white); }

/* Ticker */
.nwt { display: flex; align-items: stretch; background: var(--blue); color: var(--white); overflow: hidden; min-height: 52px; border-block: 1px solid rgba(255,255,255,.12); }
.nwt[hidden] { display: none; }
.nwt__label { flex: none; display: flex; align-items: center; gap: 8px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 0 18px; position: relative; z-index: 2; }
.nwt__label::before { content: "◆"; font-size: 10px; }
.nwt__vp { flex: 1; overflow: hidden; display: flex; mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.nwt .track { display: flex; width: max-content; animation: nwt var(--nwt-dur, 80s) linear infinite; }
.nwt:hover .track, .nwt:focus-within .track { animation-play-state: paused; }
.nwt ul { display: flex; flex: none; }
.nwt li { display: flex; align-items: center; }
.nwt li::after { content: "◆"; color: var(--gold); font-size: 9px; margin: 0 22px; }
.nwt a { display: flex; align-items: baseline; gap: 12px; text-decoration: none; padding: 14px 0; white-space: nowrap; }
.nwt .t { font-size: 17px; font-weight: 600; }
.nwt .m { font-size: 13px; color: #c4d4f3; }
@media (hover: hover) { .nwt a:hover .t { text-decoration: underline; text-underline-offset: 3px; } }
@keyframes nwt { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nwt .track { animation: none; } .nwt__vp { overflow-x: auto; } .sos__tag i { animation: none; } html { scroll-behavior: auto; } }

/* Jump nav (home overview) */
.jump { background: var(--white); border-bottom: 1px solid var(--line); }
.jump .wrap { display: grid; grid-template-columns: repeat(6, 1fr); }
.jump a { display: flex; flex-direction: column; gap: 4px; padding: 22px 18px 20px; text-decoration: none; border-left: 1px solid var(--line); transition: background .2s; }
.jump a:last-child { border-right: 1px solid var(--line); }
.jump a b { font-size: 18px; font-stretch: 80%; font-weight: 800; }
.jump a span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.jump a i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: .12em; }
@media (hover: hover) { .jump a:hover { background: var(--paper); } .jump a:hover b { color: var(--blue); } }
@media (max-width: 1000px) { .jump .wrap { grid-template-columns: repeat(3, 1fr); } .jump a { border-bottom: 1px solid var(--line); } .jump a:last-child { border-right: 0; } }
@media (max-width: 560px) { .jump .wrap { grid-template-columns: repeat(2, 1fr); } .jump a { padding: 16px 14px; } .jump a span { display: none; } }

/* Section heading row */
.shead { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 52px); }
.shead > div { max-width: 760px; }
.shead .lead { margin: 16px 0 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--navy); }
.pillar { padding: 32px 32px 34px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 32px; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar .n { font-size: 14px; font-weight: 800; letter-spacing: .14em; color: var(--blue); }
.pillar h3 { font-size: clamp(30px, 1.6vw + 18px, 42px); margin: 12px 0 14px; }
.pillar p { color: var(--muted); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); } }

/* About */
.about { background: var(--paper); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
.photo { position: relative; border-radius: 8px; overflow: hidden; background: var(--navy); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; font-size: 13px; color: #dbe3f1; background: linear-gradient(0deg, rgba(2,20,56,.9), transparent); }
.about .photo { aspect-ratio: 4 / 5; max-height: 640px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 34px; }
.stat { border-top: 3px solid var(--gold); padding-top: 14px; }
.stat b { display: block; font-size: clamp(34px, 2vw + 20px, 52px); font-weight: 900; font-stretch: 70%; line-height: 1; color: var(--navy); }
.stat span { font-size: 14px; color: var(--muted); line-height: 1.35; display: block; margin-top: 6px; }
.board { margin-top: clamp(40px, 5vw, 72px); }
.board h3 { font-size: 28px; margin-bottom: 18px; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.person summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 18px; position: relative; }
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--blue); }
.person[open] summary::after { content: "–"; }
.person b { display: block; font-size: 17px; }
.person span { display: block; font-size: 13.5px; color: var(--blue); font-weight: 700; margin-top: 2px; }
.person p { padding: 0 18px 18px; margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } .about .photo { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .stat span { font-size: 12.5px; } }

/* Services */
.services { background: var(--navy); color: var(--white); position: relative; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; overflow: hidden; }
.svc { background: var(--navy); padding: clamp(24px, 2.4vw, 38px); display: flex; flex-direction: column; gap: 12px; min-height: 250px; transition: background .3s var(--ease); }
@media (hover: hover) { .svc:hover { background: var(--navy-3); } }
.svc svg { width: 34px; height: 34px; color: var(--gold); }
.svc h3 { font-size: clamp(24px, 1vw + 16px, 30px); font-stretch: 78%; }
.svc p { color: #c3cde0; font-size: 16px; margin: 0; }
.svc .tlink { margin-top: auto; font-size: 15px; }
.svc--photo { padding: 0; position: relative; min-height: 250px; }
.svc--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.svc--photo div { position: relative; padding: clamp(24px, 2.4vw, 38px); display: flex; flex-direction: column; gap: 12px; height: 100%; background: linear-gradient(0deg, rgba(2,26,71,.95) 20%, rgba(2,26,71,.35)); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* Banner */
.banner { position: relative; color: var(--white); isolation: isolate; overflow: hidden; background: var(--black); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .7; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,7,12,.92) 0%, rgba(5,7,12,.6) 55%, rgba(5,7,12,.2)); }
.banner .wrap { padding-block: clamp(56px, 7vw, 110px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.banner h2 { font-size: var(--hs1); max-width: 17ch; }
.banner p { color: #cbd4e5; max-width: 52ch; margin: 16px 0 0; }

/* News cards */
.news { background: var(--white); }
.news[hidden] { display: none; }
.nw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 22px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--white); border-top: 4px solid var(--blue); transition: transform .3s var(--ease), box-shadow .3s var(--ease); min-height: 220px; }
.card[data-type="charged"] { border-top-color: #b3121f; }
.card[data-type="sued"] { border-top-color: var(--gold); }
.card[data-type="agency"] { border-top-color: var(--blue); }
.card[data-type="congress"] { border-top-color: var(--navy); }
.card[data-type="inflight"] { border-top-color: var(--silver); }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(2,26,71,.45); } .card:hover h3 { color: var(--blue); } }
.card .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 21px; font-stretch: 88%; font-weight: 700; line-height: 1.2; letter-spacing: 0; transition: color .2s; }
.card .m { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.card .m b { color: var(--ink); }
.nw-note { font-size: 13px; color: var(--muted); margin: 20px 0 0; }
@media (max-width: 1000px) { .nw-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .nw-grid { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* Foundation */
.foundation { background: var(--paper); }
.foundation .photo { aspect-ratio: 3 / 2; }
.note { border-left: 3px solid var(--gold); padding: 10px 0 10px 16px; font-size: 15px; color: var(--muted); margin: 22px 0 28px; }

/* Membership teaser */
.mteaser { background: var(--gold); }
.mteaser .shead .lead { color: #3a3216; }
.mt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: 8px; overflow: hidden; }
.mt { padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.mt:nth-child(1) { background: var(--navy); color: var(--white); }
.mt:nth-child(2) { background: var(--blue); color: var(--white); }
.mt:nth-child(3) { background: var(--white); }
.mt h3 { font-size: clamp(28px, 1.4vw + 18px, 40px); }
.mt .sub { font-weight: 700; color: var(--gold); }
.mt:nth-child(3) .sub { color: var(--blue); }
.mt .price { font-size: clamp(44px, 2.4vw + 26px, 64px); font-weight: 900; font-stretch: 70%; line-height: 1; margin-top: 10px; }
.mt .price small { font-size: 15px; font-weight: 600; font-stretch: 100%; margin-left: 6px; }
.mt ul { margin: 8px 0 18px; font-size: 15.5px; display: grid; gap: 6px; }
.mt li { display: flex; gap: 10px; }
.mt li::before { content: "✓"; color: var(--gold); font-weight: 800; }
.mt:nth-child(3) li::before { color: var(--blue); }
.mt .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .mt-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cbox { border: 1px solid var(--line); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.cbox h3 { font-size: 24px; font-stretch: 80%; margin-bottom: 4px; }
.cbox a.big { font-size: clamp(22px, 1vw + 14px, 28px); font-weight: 800; font-stretch: 80%; color: var(--navy); text-decoration: none; word-break: break-word; }
@media (hover: hover) { .cbox a.big:hover { color: var(--blue); text-decoration: underline; } }
.cbox p { color: var(--muted); font-size: 15.5px; margin: 6px 0 0; }
.cbox--sos { background: var(--navy); color: var(--white); border-color: var(--navy); }
.cbox--sos a.big { color: var(--gold); }
.cbox--sos p { color: #c3cde0; }
.fine { font-size: 14px; color: var(--muted); margin-top: 26px; max-width: 110ch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Join band + footer */
.joinband { background: var(--gold); color: var(--ink); transition: background-color .35s var(--ease), color .35s var(--ease); }
.joinband b, .joinband p, .joinband svg { transition: color .35s var(--ease); }
@media (hover: hover) { .joinband:hover { background: var(--navy); color: var(--gold); } .joinband:hover b { color: var(--gold); } }
.joinband:has(a:focus-visible) { background: var(--navy); color: var(--gold); }
.joinband:has(a:focus-visible) b { color: var(--gold); }
.joinband a { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px 40px; text-decoration: none; padding-block: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 36px); }
.joinband b { font-size: clamp(5.5rem, 3rem + 11vw, 15rem); font-weight: 900; font-stretch: 62%; line-height: .78; letter-spacing: -0.02em; color: var(--navy); }
.joinband p { font-size: 18px; max-width: 36ch; margin: 0 0 6px; font-weight: 500; }
.joinband svg { width: 44px; height: 44px; align-self: start; transition: transform .35s var(--ease); }
@media (hover: hover) { .joinband a:hover svg { transform: translate(6px, -6px); } }
@media (max-width: 640px) { .joinband a { grid-template-columns: 1fr auto; } .joinband p { grid-column: 1 / -1; } .joinband svg { grid-row: 1; grid-column: 2; } }
.ftr { background: var(--black); color: #c3cad6; font-size: 15px; }
.ftr .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 48px 32px; }
.ftr h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); font-stretch: 100%; font-weight: 800; margin-bottom: 14px; }
.ftr ul { display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
@media (hover: hover) { .ftr a:hover { color: var(--gold); } }
.ftr .brand img { width: 64px; height: 64px; }
.ftr .sosline { margin-top: 18px; display: block; text-decoration: none; cursor: pointer; }
.ftr .sosline b { display: block; color: var(--gold); font-size: 22px; font-stretch: 78%; line-height: 1.2; }
.ftr .sosline b + b { margin-top: 2px; }
.ftr__legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px 32px; font-size: 12.5px; color: #8b94a5; }
.ftr__legal p { margin: 0 0 6px; }
@media (max-width: 900px) { .ftr .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr .wrap { grid-template-columns: 1fr; } }

/* ===== Membership page ===== */
.mhero .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); min-height: min(74vh, 720px); }
.mhero h1 { font-size: clamp(3rem, 1.4rem + 5.6vw, 7.2rem); text-transform: none; font-stretch: 70%; line-height: .92; }
.mhero h1 .gold { display: block; }
.mhero .hero__copy { margin: 0 0 26px; max-width: 30ch; }
.eligible { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.checks { display: grid; gap: 12px; margin: 22px 0 28px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--blue); font-weight: 800; }
.eligible .logo-lg { justify-self: center; width: min(340px, 80%); }
@media (max-width: 860px) { .eligible { grid-template-columns: 1fr; } .eligible .logo-lg { width: 200px; justify-self: start; } }

.step { display: flex; align-items: center; gap: 16px; }
.medal { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-align: center; line-height: 1.05; box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 5px var(--gold-2); }
.medal b { display: block; font-size: 26px; font-stretch: 70%; letter-spacing: 0; }

.benefits { background: var(--navy); color: var(--white); }
.bcols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bcol h3 { font-size: clamp(26px, 1.4vw + 16px, 38px); text-align: center; }
.bcol .sub { text-align: center; color: var(--gold); font-weight: 700; font-size: 16px; max-width: 40ch; margin: 10px auto 22px; }
.blist { display: grid; gap: 6px; }
.blist li { display: flex; gap: 12px; padding: 11px 14px; background: rgba(255,255,255,.06); border-radius: 4px; font-size: 15.5px; line-height: 1.4; }
.blist li:nth-child(even) { background: transparent; }
.blist li::before { content: "✓"; color: var(--gold); font-weight: 800; }
.bfine { font-size: 13px; color: #a9b6cf; margin-top: 14px; }
.reimb { background: var(--gold); color: var(--ink); font-weight: 700; padding: 16px 18px; border-radius: 4px; margin-top: 16px; font-size: 16px; }
@media (max-width: 900px) { .bcols { grid-template-columns: 1fr; gap: 48px; } }

.cmp-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 6px; }
.cmp { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.cmp th, .cmp td { padding: 11px 14px; text-align: center; border-bottom: 2px solid var(--white); }
.cmp thead th { background: var(--navy); color: var(--white); font-size: 16px; font-weight: 800; vertical-align: bottom; line-height: 1.15; }
.cmp thead th small { display: block; font-size: 11.5px; font-weight: 500; color: #b9c4da; margin-top: 4px; }
.cmp thead th:first-child { text-align: left; border-top-left-radius: 6px; }
.cmp thead th:last-child { border-top-right-radius: 6px; }
.cmp thead th.hl { background: var(--gold); color: var(--navy); }
.cmp thead th.hl small { color: #4a3d22; }
.cmp tbody th { text-align: left; font-weight: 700; background: var(--paper); }
.cmp tbody th small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.cmp tbody td { background: var(--paper); }
.cmp tbody tr:nth-child(even) th, .cmp tbody tr:nth-child(even) td { background: #e6eaf1; }
.cmp tbody td.hl { background: #f1e8d6; }
.cmp tbody tr:nth-child(even) td.hl { background: #e8dbc1; }
.cmp .y svg { width: 18px; height: 18px; color: var(--navy); margin: auto; }
.cmp .n { color: #8b94a5; font-size: 12px; }
.swipe { display: none; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 800px) { .swipe { display: block; } }

.choose { background: var(--gold); }
.toggle { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; margin-top: 18px; user-select: none; }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw { width: 50px; height: 28px; border-radius: 99px; background: var(--navy); position: relative; transition: background .25s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease); }
.toggle input:checked + .sw { background: var(--blue); }
.toggle input:checked + .sw::after { transform: translateX(22px); }
.toggle input:focus-visible + .sw { outline: 3px solid var(--navy); outline-offset: 3px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); }
.plan { padding: clamp(28px, 3vw, 48px) clamp(22px, 2.4vw, 40px); display: flex; flex-direction: column; position: relative; }
.plan:nth-child(1) { background: var(--navy); color: var(--white); }
.plan:nth-child(2) { background: var(--blue); color: var(--white); }
.plan:nth-child(3) { background: var(--paper); }
.plan h3 { font-size: clamp(34px, 1.8vw + 20px, 54px); font-stretch: 80%; }
.plan .sub { font-size: clamp(19px, .6vw + 14px, 24px); font-weight: 800; font-stretch: 85%; color: var(--gold); margin: 14px 0 22px; line-height: 1.15; min-height: 2.3em; }
.plan:nth-child(3) .sub { color: var(--blue); }
.plan .desc { font-size: 16px; opacity: .92; }
.plan .pr { margin-top: auto; padding-top: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan .pr b { font-size: clamp(56px, 3vw + 34px, 84px); font-weight: 900; font-stretch: 68%; line-height: .9; }
.plan .pr span { font-size: 14px; font-weight: 600; }
.plan .after { font-size: 15px; font-weight: 700; margin: 10px 0 0; min-height: 1.5em; }
.plan .pfine { font-size: 12.5px; opacity: .8; margin: 14px 0 22px; min-height: 4.2em; }
.plan .btn { align-self: flex-start; }
.seal { position: absolute; right: clamp(16px, 2vw, 32px); bottom: clamp(120px, 11vw, 150px); width: 108px; height: 108px; }
.plans-fine { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 13px; color: var(--muted); padding-block: 16px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } .plan .sub, .plan .pfine { min-height: 0; } .plans-fine { grid-template-columns: 1fr; } }

.faq-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 40px; align-items: start; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 700; position: relative; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 18px 18px; font-size: 15.5px; color: var(--muted); }
.faq .a ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; margin-bottom: 10px; }
.faq .a ol { padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 20px; } }
.portal { background: var(--blue); color: var(--white); }
.portal .split { align-items: end; }

.hero .tlink { color: var(--gold); }
.choose .medal { background: var(--navy); color: var(--gold); box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 5px var(--navy); }
.plan .pr .seal { position: static; width: 96px; height: 96px; margin-left: auto; align-self: center; }
@media (max-width: 900px) {
  .hero .wrap, .mhero .wrap { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(2,20,56,.55) 0%, rgba(2,20,56,.85) 45%, rgba(2,20,56,.96) 100%); }
}

/* Margin 1 standard (matches NICE): one vertical + one horizontal margin for every section */
@media (min-width: 861px) and (max-width: 1080px) { :root { --ms1v: calc(clamp(48px, 5.5vw, 88px) * .85); --ms1h: calc(var(--m) * 1.7); } }
@media (min-width: 1081px) { :root { --ms1v: calc(clamp(48px, 5.5vw, 88px) * .7); --ms1h: calc(var(--m) * 1.4); } }
.wrap, .hdr .wrap { padding-inline: var(--ms1h); }
.sec, .hero .wrap, .banner .wrap, .joinband a { padding-block: var(--ms1v); }
.ftr .wrap { padding-block: var(--ms1v) 32px; }
.ftr__legal { padding-block: 22px var(--ms1v); }
.jump .wrap { padding-inline: var(--ms1h); }
.shead { margin-bottom: 40px; }
.step { flex-direction: column; align-items: flex-start; gap: 14px; }
/* Plans: full-bleed band, card text starts on the page margin, rows aligned across cards */
.choose > .wrap.sec { padding-bottom: 40px; }
.plans { grid-template-rows: repeat(7, auto); }
.plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: var(--ms1v) var(--ms1h); }
.plan .sub, .plan .pfine { min-height: 0; }
.plan .desc { margin: 0 0 8px; max-width: 44ch; }
.plan .pr { margin: 0; padding-top: 24px; align-self: end; }
.plan .pfine { margin: 14px 0 24px; }
.plan .btn { align-self: end; }
.pfine--seal { position: relative; }
.seal { position: absolute; right: 0; bottom: -10px; width: clamp(96px, 8vw, 124px); height: auto; transform: rotate(8deg); filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.seal svg { display: block; width: 100%; height: auto; }
.plans-fine { padding-block: 20px; background: var(--white); color: var(--muted); }
@media (max-width: 960px) {
  .plans { grid-template-rows: none; }
  .plan { display: flex; flex-direction: column; grid-row: auto; }
  .plan .pr { padding-top: 8px; }
  .pfine--seal { min-height: 0; margin: 0; }
  .seal { position: absolute; right: var(--ms1h); top: auto; bottom: auto; margin-top: -120px; }
}
@media (min-width: 961px) { .plan:first-child { padding-left: max(var(--ms1h), calc((100vw - 1560px) / 2 + var(--ms1h))); } .plan:last-child { padding-right: max(var(--ms1h), calc((100vw - 1560px) / 2 + var(--ms1h))); } }
/* Alignment pass */
.plan .btn { justify-self: start; }
.bcol h3, .bcol .sub { text-align: left; margin-inline: 0; }
.portal .split { align-items: center; }
@media (min-width: 901px) {
  .mt-grid { grid-template-rows: repeat(5, auto); }
  .mt { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
  .mt .btn { align-self: end; justify-self: start; }
}
@media (max-width: 960px) {
  .plan .pr, .plan .btn { align-self: flex-start; justify-self: auto; }
  .pfine--seal { position: static; margin: 12px 0 20px; }
  .seal { position: static; display: block; margin: 0; width: 96px; }
}

/* Large images: full-bleed backgrounds and edge-to-edge media */
.bgsec { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); }
.bgsec__img { position: absolute; inset: 0; z-index: -1; }
.bgsec__img img { width: 100%; height: 100%; object-fit: cover; }
.bgsec__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,20,56,.94) 0%, rgba(2,26,71,.84) 50%, rgba(2,26,71,.62) 100%); }
.portal.bgsec .bgsec__img::after { background: linear-gradient(90deg, rgba(5,68,164,.95) 0%, rgba(5,68,164,.78) 40%, rgba(5,68,164,.28) 72%, rgba(5,68,164,.12) 100%); }
.bgsec .pillars { border-top-color: var(--gold); }
.bgsec .pillar { border-color: rgba(255,255,255,.18); }
.bgsec .pillar .n { color: var(--gold); }
.bgsec .pillar p { color: #d3dbea; }
.bgsec .tlink { color: var(--gold); }
.bgsec .checks li::before { color: var(--gold); }
.bgsec .btn--navy { background: var(--gold); color: var(--ink); }
.elig .eligible { grid-template-columns: minmax(0, 1fr); }
.elig { min-height: min(62vh, 560px); display: flex; align-items: center; }
.elig > .wrap { width: 100%; }
/* Bleed: photo fills one half of the section, edge-to-edge */
.bleed .split { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); --edge: calc((100vw - 100%) / 2); }
.bleed .bleed__media { position: absolute; top: calc(var(--ms1v) * -1); bottom: 0; right: calc(var(--edge) * -1); width: calc(50% + var(--edge)); max-height: none; aspect-ratio: auto; border-radius: 0; margin: 0; }
.foundation.bleed .bleed__media { bottom: calc(var(--ms1v) * -1); }
.bleed--left .bleed__media { right: auto; left: calc(var(--edge) * -1); }
.bleed .bleed__media img { position: absolute; inset: 0; }
.bleed .split > div { padding-right: clamp(0px, 3vw, 48px); }
.bleed--left .split > div { grid-column: 2; padding-right: 0; padding-left: clamp(0px, 3vw, 48px); }
.about.bleed .split { min-height: 600px; align-items: center; }
.foundation.bleed .split { min-height: 520px; align-items: center; }
.about.bleed .board { margin-top: var(--ms1v); }
@media (max-width: 860px) {
  .bleed .split { grid-template-columns: 1fr; }
  .bleed .bleed__media { position: relative; width: auto; aspect-ratio: 4 / 3; }
  .bleed--left .bleed__media { order: 2; }
  .bleed .split > div { padding: 0; }
  .about.bleed .split, .foundation.bleed .split { min-height: 0; } .bleed--left .split > div { grid-column: auto; } .bleed .bleed__media { top: auto; bottom: auto; left: auto; right: auto; margin: 28px calc(var(--ms1h) * -1) 0; } .foundation.bleed .bleed__media { margin-bottom: calc(var(--ms1v) * -1); }
  .bgsec__img::after { background: rgba(2,20,56,.86); }
  .portal.bgsec .bgsec__img::after { background: linear-gradient(180deg, rgba(5,68,164,.92) 0%, rgba(5,68,164,.85) 45%, rgba(5,68,164,.3) 75%, rgba(5,68,164,.15) 100%); }
  .elig { min-height: 0; }
}

/* Double ticker: member benefits (blue) + latest news (red) */
.bnt { display: flex; align-items: stretch; background: var(--blue); color: var(--white); overflow: hidden; min-height: 52px; border-top: 1px solid rgba(255,255,255,.12); }
.bnt .btrack { display: flex; width: max-content; animation: nwt 60s linear infinite; }
.bnt:hover .btrack { animation-play-state: paused; }
.bnt ul { display: flex; flex: none; }
.bnt li { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font-size: 17px; font-weight: 600; }
.bnt li svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.nwt { background: #b3121f; border-block: 1px solid rgba(255,255,255,.14); }
.nwt__label { background: var(--navy); color: var(--white); }
.nwt__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255,77,94,.7); animation: pulse 1.8s infinite; }
.nwt li::after { color: var(--white); opacity: .7; }
.nwt .m { color: #ffd9dd; }
@media (prefers-reduced-motion: reduce) { .bnt .btrack { animation: none; } .bnt .nwt__vp { overflow-x: auto; } .nwt__label::before { animation: none; } }
@media (max-width: 560px) { .bnt__label, .nwt__label { padding: 0 12px; font-size: 11px; letter-spacing: .08em; } .bnt li, .nwt .t { font-size: 15px; } }

/* History timeline */
.tl { background: var(--paper); border-bottom: 1px solid var(--line); }
.tl .eyebrow { margin-bottom: 26px; }
.tl__list { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; }
.tl__list::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--gold); }
.tl__list li { position: relative; padding: 34px 18px 0 0; display: flex; flex-direction: column; gap: 6px; }
.tl__list li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 4px solid var(--gold); box-sizing: border-box; }
.tl__list li:last-child::before { background: var(--gold); }
.tl__list b { font-size: clamp(26px, 1.4vw + 16px, 38px); font-weight: 900; font-stretch: 75%; color: var(--navy); line-height: 1; }
.tl__list span { font-size: 13.5px; color: var(--muted); line-height: 1.35; max-width: 26ch; }
@media (max-width: 1000px) {
  .tl__list { grid-template-columns: 1fr; gap: 22px; }
  .tl__list::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .tl__list li { padding: 0 0 0 40px; }
}

/* Contact box sub-lines */
.cbox .cbox__sub { font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.cbox--sos .cbox__sub { color: var(--gold); }
.cbox p { margin-top: 10px; }
.cbox--sos p b { color: var(--white); }
.nw { white-space: nowrap; }
.tl__list { padding: 0; margin: 0; list-style: none; }
.bnt .bnt__label { background: var(--gold); color: var(--ink); }
.bnt .bnt__label::before { content: "◆"; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; animation: none; font-size: 10px; }
.svc--photo { overflow: hidden; }
.svc--photo img { transition: transform .6s var(--ease), opacity .3s; }
@media (hover: hover) { .svc--photo:hover img { transform: scale(1.04); opacity: .65; } }
/* NICE layout: gold "Latest news" label + blue benefits ticker on top; red headlines full width below */
.bnt .bnt__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c8102e; box-shadow: 0 0 0 0 rgba(200,16,46,.6); animation: pulse 1.8s infinite; font-size: 0; }
.nwt .nwt__vp { padding-left: 0; }
@media (prefers-reduced-motion: reduce) { .bnt .bnt__label::before { animation: none; } }
/* Hero emergency card: compact so more of the plane shows */
.hero .sos { justify-self: end; width: 100%; max-width: 330px; padding: 18px 20px 18px; background: rgba(5,10,24,.62); }
.sos h2 { font-size: 20px; margin: 12px 0 4px; }
.sos__num { font-size: clamp(30px, 1.6vw + 14px, 40px); margin: 8px 0 4px; }
.sos__num + span { display: block; font-size: 22px; font-weight: 800; font-stretch: 78%; color: var(--white); letter-spacing: .01em; }
.sos p { font-size: 12px; line-height: 1.45; color: #a9b6cf; margin-top: 10px; }
.sos p b { color: #dfe6f3; }
@media (max-width: 900px) { .hero .sos { justify-self: start; } }
.cbox--sos a.big, .cbox--sos .cbox__sub { align-self: flex-start; text-align: left; }
.sos p b.crisis { color: var(--gold); font-size: 14.5px; font-weight: 800; }
#contact .fine { max-width: none; }
.bnt .bnt__label { background: #f5c518; color: var(--ink); }
.btn--white { background: var(--white); color: var(--navy); }
@media (hover: hover) { .btn--white:hover { background: var(--gold); color: var(--ink); } }
.tl { background: var(--white); border-top: 1px solid var(--line); border-bottom: 0; }
/* Who can join: FAM badge + DHS seal, like NICE */
.elig .eligible { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
.elig .badges { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(16px, 2vw, 32px); align-items: center; }
.elig .badges img { width: 100%; height: auto; transition: transform .6s var(--ease); filter: drop-shadow(0 14px 28px rgba(0,0,0,.45)); }
.elig .badges .dhs { border-radius: 10px; }
@media (hover: hover) { .elig .badges img:hover { transform: translateY(-8px) rotate(-2deg); } }
@media (max-width: 860px) { .elig .eligible { grid-template-columns: 1fr; } .elig .badges { max-width: 460px; } }
/* Step medals: larger, navy ring outlined in thin black on both sides */
.medal, .choose .medal { width: 84px; height: 84px; font-size: 15px; background: var(--gold); color: var(--navy); box-shadow: inset 0 0 0 1px #000, inset 0 0 0 6px var(--navy), inset 0 0 0 7px #000; }
.medal b { font-size: 34px; }
/* Plan prices sit on one line so all three line up, as on NICE */
.plan .pr { flex-wrap: nowrap; }
.plan .pr span { white-space: nowrap; }
/* Member portal: copy left, laptop + phone right */
.portal .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.portal__copy .lead { margin-top: 18px; }
.portal__copy .btn { margin-top: 6px; }
.portal__devices { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .portal .split { grid-template-columns: 1fr; } }
/* Emergency contact card: red on every screen size */
.cbox--sos { background: #b3121f; border-color: #b3121f; color: var(--white); }
.cbox--sos h3, .cbox--sos a.big, .cbox--sos .cbox__sub { color: var(--white); }
.cbox--sos p { color: #fde4e6; }
.cbox--sos a.big, .cbox--sos .cbox__sub { white-space: nowrap; word-break: normal; line-height: 1.15; }
@media (hover: hover) { .cbox--sos a.big:hover { color: var(--white); } }
/* Comparison table: animated "Swipe" hint, like ICE News 6, shown only while columns are cut off */
.cmp-box { position: relative; }
.cmp-swipe { display: none; }
.cmp-box.can-swipe .cmp-swipe { display: flex; align-items: center; gap: 4px; position: absolute; top: 0; right: 0; height: var(--thead-h, 64px); z-index: 2; padding: 0 10px 0 44px; pointer-events: none; border-top-right-radius: 6px;
  background: linear-gradient(90deg, rgba(2,26,71,0) 0, var(--navy) 36px); color: var(--gold-2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cmp-swipe svg { width: 20px; height: 20px; flex: none; }
.cmp-swipe svg:first-child { animation: cmpswipe 1.6s ease-in-out infinite; }
.cmp-swipe .chev { width: 14px; height: 14px; margin-left: -2px; }
@keyframes cmpswipe { 0%, 100% { transform: translateX(3px) rotate(-8deg); } 50% { transform: translateX(-5px) rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .cmp-swipe svg:first-child { animation: none; } }
/* Join pop-up (same as NICE): asks visitors headed to ogggov.com/join if they've reviewed the plans */
.join-gate:focus { outline: none; }
html.jg-lock { overflow: hidden; }
.join-gate { border: 0; padding: 0; margin: auto; background: transparent; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; color: var(--white); }
.join-gate::backdrop { background: rgba(2, 10, 28, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.join-gate[open] { animation: jg-in .32s cubic-bezier(.2,.8,.2,1); }
.join-gate[open]::backdrop { animation: jg-fade .32s ease; }
@keyframes jg-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes jg-fade { from { opacity: 0; } to { opacity: 1; } }
.jg-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; background: var(--navy); border-radius: calc(var(--r) + 6px); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.jg-tile { border-radius: var(--r); padding: 28px; }
.jg-msg { grid-column: 1 / -1; position: relative; background: var(--navy-2); }
.jg-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); border: 0; cursor: pointer; color: var(--white); background: rgba(255,255,255,.08); transition: background-color .15s, color .15s; }
.jg-x svg { width: 18px; height: 18px; }
.jg-x:hover, .jg-x:focus-visible { background: var(--gold); color: var(--navy); }
.jg-eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.join-gate h2 { margin: 0 0 12px; padding-right: 44px; font-weight: 800; font-stretch: 78%; font-size: clamp(28px, 1.3rem + 2vw, 38px); line-height: 1.05; color: var(--white); text-wrap: balance; }
#jg-copy { margin: 0; font-size: 16px; line-height: 1.5; color: #c7d3ea; }
.jg-opt { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 16px; border: 0; text-align: left; font: inherit; cursor: pointer; transition: background-color .15s, color .15s; }
.jg-opt .jg-n { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.jg-opt .jg-s { font-size: clamp(20px, .6vw + 16px, 24px); line-height: 1.1; font-weight: 800; font-stretch: 80%; max-width: 14ch; }
.jg-opt svg { width: 44px; height: 44px; align-self: flex-end; transition: transform .35s var(--ease); }
.jg-opt:hover svg { transform: translate(5px, -5px); }
.jg-review { background: var(--gold); color: var(--navy); }
.jg-proceed { background: var(--blue); color: var(--white); }
@media (hover: hover) { .jg-opt:hover { background: var(--white); color: var(--navy); } }
.jg-opt:focus-visible, .jg-x:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .join-gate[open], .join-gate[open]::backdrop { animation: none; } }
@media (max-width: 560px) { .jg-card { grid-template-columns: 1fr; } .jg-tile { padding: 22px; } .jg-opt { min-height: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 16px; row-gap: 8px; } .jg-opt .jg-n { grid-column: 1 / -1; } .jg-opt .jg-s { max-width: 20ch; } .jg-opt svg { width: 30px; height: 30px; grid-column: 2; grid-row: 2; } }
/* Keep the full top menu visible on mid-size screens: tighter link spacing only */
@media (min-width: 1181px) and (max-width: 1320px) {
  .hdr .wrap { gap: 16px; }
  .nav a { padding-inline: 6px; }
  .nav .btn { margin-left: 6px; padding-inline: 14px; }
}
/* Timeline: large AMA logo at the far right, next to "Today" */
.tl__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 3vw, 56px); align-items: center; }
.tl__logo { height: clamp(150px, 9vw + 60px, 210px); width: auto; display: block; filter: drop-shadow(0 10px 18px rgba(2,26,71,.22)); }
@media (max-width: 1180px) { .tl__row { grid-template-columns: 1fr; } .tl__logo { height: 170px; justify-self: center; } }
@media (max-width: 1000px) { .tl__list span { max-width: 52ch; } }

/* Mobile: larger logos in header and footer */
@media (max-width: 760px) {
  :root { --head-h: 84px; }
  .hdr .brand img { width: 66px; height: 66px; }
  .hdr .brand { gap: 10px; min-width: 0; flex: 1 1 auto; }
  .hdr .brand b { line-height: 1.05; }
  .hdr .brand small { line-height: 1.3; margin-top: 5px; }
  .ftr .brand img { width: 96px; height: 96px; }
}

/* Our history photo mosaic (AMA Archive) */
.tl__photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 14vw, 230px); gap: 10px; margin-top: clamp(36px, 4vw, 56px); }
.tlp { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: var(--navy); }
.tlp img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
@media (hover: hover) { .tlp:hover img { transform: scale(1.03); } }
.tlp.g1 { grid-column: span 2; grid-row: span 2; }
.tlp.g1 img { object-position: 50% 30%; }
.tlp.g2 { grid-column: span 2; grid-row: span 2; }
.tlp.g2 img { object-position: 50% 30%; }
.tlp.g5, .tlp.g6, .tlp.g7 { grid-column: span 2; }
.tlp.g5 img { object-position: 50% 30%; }
.tlp.g6 img { object-position: 50% 40%; }
.tlp.g7 img { object-position: 50% 30%; }
@media (max-width: 900px) {
  .tl__photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; grid-auto-flow: dense; }
  .tlp.g1, .tlp.g2, .tlp.g4, .tlp.g5, .tlp.g7 { grid-column: span 2; }
  .tlp.g6 { grid-column: span 1; }
  .tlp.g1, .tlp.g2 { grid-row: span 2; }
}

/* Photo credits, site-wide: "Title · Credit", bottom right, one line, one size */
.tlp figcaption { position: absolute; left: auto; right: 0; bottom: 0; max-width: 100%; padding: 20px 8px 6px 14px; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.2; color: #fff; white-space: nowrap; text-align: right; text-shadow: 0 1px 2px rgba(0,0,0,.6); background: radial-gradient(120% 140% at 100% 100%, rgba(2,10,30,.72), rgba(2,10,30,0) 70%); }

/* Legal pages (privacy, terms) */
.lhero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); min-height: min(58vh, 560px); }
.lhero h1 { font-size: clamp(3rem, 1.4rem + 5.6vw, 7.2rem); text-transform: none; font-stretch: 70%; line-height: .92; }
.lhero .hero__copy { margin: 0; max-width: 34ch; }
@media (max-width: 900px) { .lhero .wrap { grid-template-columns: 1fr; min-height: 0; align-items: start; gap: 20px; } }
.legal .doc { max-width: 78ch; }
.legal .clause + .clause { margin-top: clamp(28px, 3vw, 44px); }
.legal .doc h2 { font-size: clamp(22px, 1vw + 16px, 28px); font-stretch: 80%; line-height: 1.15; color: var(--navy); margin: 0 0 14px; }
.legal .doc p { margin: 0 0 12px; color: var(--ink); }
.legal .doc p.intro { font-size: clamp(18px, .5vw + 15px, 21px); line-height: 1.5; }
.legal .doc .caps { font-size: 15px; line-height: 1.6; }
.ftr__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) { .ftr__credit a:hover { color: var(--gold); } }
