:root {
  --ink: #0c1638;
  --mute: #3d4a6b;
  --paper: #fffefb;
  --card: #ffffff;
  --line: #d7dbe8;
  --navy: #0c1638;
  --check: #0f7a4a;
  --check-ink: #fffefb;
  --perk: #6b3d12;
  --perk-bg: #fff4e4;
  --federal: #123a73;
  --state: #3b2f7a;
  --warn: #7a1f1f;
  --focus: #0f7a4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--federal);
  -webkit-text-fill-color: var(--federal);
}

.crisis {
  position: relative;
  z-index: 50;
  background: #1b2430;
  color: #fff4e8;
  -webkit-text-fill-color: #fff4e8;
  font-size: 0.92rem;
  padding: max(0.45rem, env(safe-area-inset-top, 0px)) max(0.7rem, env(safe-area-inset-right, 0px)) 0.45rem max(0.7rem, env(safe-area-inset-left, 0px));
  display: flex;
  gap: 0.25rem 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.crisis-label {
  padding: 0.35rem 0.4rem;
}

.crisis a,
.crisis-link {
  color: #b8f0cf;
  -webkit-text-fill-color: #b8f0cf;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(184, 240, 207, 0.35);
}

header.banner {
  width: 100%;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 70% 120% at 8% 45%, rgba(255, 255, 255, 0.16), transparent 52%),
    radial-gradient(ellipse 45% 80% at 92% -10%, rgba(232, 180, 35, 0.16), transparent 48%),
    linear-gradient(165deg, #13457a 0%, #0A3161 42%, #071e3c 100%);
  position: relative;
  isolation: isolate;
}

header.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1.4px 1.4px at 63% 18%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 81% 54%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 47% 86%, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.7;
}

.banner-inner {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1.4rem;
  row-gap: 0.55rem;
  padding: 1.05rem 7.5rem 1.1rem 1.25rem;
  position: relative;
  z-index: 1;
}

header.banner .brand-mark {
  display: block;
  height: 148px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.brand-block {
  flex: 1 1 12rem;
  min-width: 0;
}

.brand-block .eyebrow {
  margin: 0 0 0.28rem;
  color: #ffd27a;
  -webkit-text-fill-color: #ffd27a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-block h1 {
  margin: 0 0 0.42rem;
  line-height: 0;
  display: block;
}

.brand-wordmark {
  display: block;
  box-sizing: content-box;
  width: auto;
  height: auto;
  max-height: 58px;
  max-width: min(100%, 22.5rem);
  aspect-ratio: 1076 / 200;
  object-fit: contain;
  object-position: left center;
  background: none;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.brand-block h1 .mark {
  display: inline-flex;
  color: #7dffa8;
  -webkit-text-fill-color: #7dffa8;
  font-size: 0.78em;
  line-height: 0;
  filter: drop-shadow(0 0 8px rgba(125, 255, 168, 0.45));
}

.brand-block h1 .mark svg {
  display: block;
  width: 0.95em;
  height: 0.95em;
}

.brand-rule {
  width: 3.4rem;
  height: 2px;
  margin: 0.48rem 0 0.4rem;
  background: linear-gradient(90deg, #e8b423, rgba(232, 180, 35, 0));
}

.brand-block .tagline {
  margin: 0;
  color: #d6e4f7;
  -webkit-text-fill-color: #d6e4f7;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
}

.brand-block .tagline span {
  display: block;
}

.brand-block p .star {
  color: #ffd27a;
  -webkit-text-fill-color: #ffd27a;
  text-decoration: none;
  font-weight: 700;
  margin-left: 0.08em;
}

#catalog-star {
  margin: 0 0 0.65rem;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.banner-hot {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  pointer-events: auto;
}

.donate-hot,
.sponsors-hot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.46rem 1rem 0.44rem;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 241, 176, 0.35);
}

.donate-hot {
  background: #e8b423;
  color: #0c1638;
  -webkit-text-fill-color: #0c1638;
  border: 1px solid #fff1b0;
  box-shadow: 0 2px 0 #8a6a10, 0 10px 22px rgba(0, 0, 0, 0.28);
}

.donate-hot:hover,
.donate-hot:focus {
  background: #ffd027;
  color: #0c1638;
  -webkit-text-fill-color: #0c1638;
}

.donate-hot[aria-disabled="true"],
#donate-bottom[aria-disabled="true"],
#donate-instead[aria-disabled="true"] {
  opacity: 0.78;
  cursor: default;
}

.donate-hot[aria-disabled="true"]:hover,
.donate-hot[aria-disabled="true"]:focus {
  background: #e8b423;
}

.sponsors-hot {
  background: rgba(255, 254, 251, 0.12);
  color: #fffefb;
  -webkit-text-fill-color: #fffefb;
  border: 1px solid rgba(255, 254, 251, 0.42);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.sponsors-hot:hover,
.sponsors-hot:focus {
  background: rgba(255, 254, 251, 0.22);
  color: #fffefb;
  -webkit-text-fill-color: #fffefb;
}

.sponsors-hot[aria-current="page"] {
  background: #fffefb;
  color: #0c1638;
  -webkit-text-fill-color: #0c1638;
  border-color: #fffefb;
}

.branches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  pointer-events: none;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  grid-column: 2;
}

.branches::-webkit-scrollbar {
  display: none;
}

.branches li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.32rem 0.55rem 0.3rem 0.4rem;
  color: #fffefb;
  -webkit-text-fill-color: #fffefb;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  background: rgba(4, 14, 32, 0.55);
  border: 1px solid rgba(255, 254, 251, 0.12);
  border-radius: 999px;
}

.br-tick {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 2px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.br-tick.army { background: #ffb81c; }
.br-tick.marines { background: #c8102e; }
.br-tick.navy { background: #9ec5ff; }
.br-tick.airforce { background: #5b9bd5; }
.br-tick.spaceforce { background: #c5cdd8; }
.br-tick.coastguard { background: #e03c31; }

.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;
}

.detail {
  font-size: 0.92rem;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
  margin: 0.35rem 0 0;
}

.lede {
  max-width: 1100px;
  margin: 0.85rem auto 0;
  padding: 0 1.2rem;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
  font-size: 1.05rem;
}

.flag-bar {
  display: flex;
  align-items: stretch;
  height: 7px;
  position: relative;
  z-index: 1;
  background: #071e3c;
  padding-bottom: 2px;
  box-sizing: border-box;
}
.flag-bar i { flex: 1; display: block; }
.flag-bar i:nth-child(1) { background: #B31942; }
.flag-bar i:nth-child(2) { background: #fffefb; }
.flag-bar i:nth-child(3) { background: #0A3161; }

.brand h1 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.brand p {
  margin: 0.15rem 0 0;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
  max-width: 42rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.panel h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
}

label.field[hidden] {
  display: none !important;
}

input, select, textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}

.hint {
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
  font-size: 0.88rem;
  margin: 0.4rem 0 0;
}

#eligibility-note:not([hidden]) {
  color: var(--warn);
  -webkit-text-fill-color: var(--warn);
  font-weight: 600;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.stat {
  background: #eef6f1;
  border: 1px solid #cfe3d6;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  min-width: 8rem;
}

.stat b {
  display: block;
  font-size: 1.25rem;
}

.stat span {
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
  font-size: 0.8rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.85rem 0 0.55rem;
}

.catalog-head {
  position: static;
  background: var(--paper);
  padding: 0.15rem 0 0.45rem;
}

#catalog-tabs {
  margin-top: 0.2rem;
}

.toolbar input[type="search"] {
  flex: 1;
  min-width: 12rem;
}

.perk-dirs {
  margin-top: -0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.perk-dirs[hidden] {
  display: none !important;
}

.perk-dirs-note {
  flex: 1 1 100%;
  margin: 0 0 0.15rem;
}

.affiliate-note {
  flex: 1 1 100%;
  margin: 0 0 0.35rem;
}

.badge.hotels, .badge.travel, .badge.stores, .badge.food, .badge.auto, .badge.phone, .badge.tickets, .badge.banking, .badge.verify, .badge.discounts {
  background: var(--perk-bg);
  color: var(--perk);
  -webkit-text-fill-color: var(--perk);
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(12, 22, 56, 0.18);
}

.tab[aria-pressed="true"] {
  background: var(--navy);
  color: #fffefb;
  -webkit-text-fill-color: #fffefb;
  border-color: var(--navy);
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  margin: 0.55rem 0;
  background: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 0.85rem;
}

.card.dim { opacity: 0.55; }

.check {
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.15rem;
  accent-color: var(--check);
}

.card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0.45rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.badge.federal { background: #e4eefc; color: var(--federal); -webkit-text-fill-color: var(--federal); }
.badge.state { background: #ece8fb; color: var(--state); -webkit-text-fill-color: var(--state); }
.badge.perk { background: var(--perk-bg); color: var(--perk); -webkit-text-fill-color: var(--perk); }
.badge.veterans-day { background: #fde8d0; color: #6b3d12; -webkit-text-fill-color: #6b3d12; }
.badge.fringe { background: #fde8d0; color: #6b3d12; -webkit-text-fill-color: #6b3d12; }
.badge.tool { background: #e8f4ec; color: var(--check); -webkit-text-fill-color: var(--check); }

.money {
  font-weight: 700;
  color: var(--check);
  -webkit-text-fill-color: var(--check);
  margin: 0.2rem 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--check);
  color: var(--check-ink);
  -webkit-text-fill-color: var(--check-ink);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(15, 122, 74, 0.25);
}

.btn[hidden],
a[hidden] {
  display: none !important;
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  border: 1px solid var(--line);
}

.source {
  font-size: 0.8rem;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
  margin-top: 0.4rem;
}

#support-h,
.support {
  scroll-margin-top: 7.5rem;
}

.support p { margin: 0 0 0.55rem; }

.support-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-top: 0.85rem;
}

.support-split h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.sponsor-grid.compact {
  margin: 0.45rem 0 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 721px) {
  .support-split .sponsor-grid.compact {
    grid-template-columns: 1fr 1fr;
  }
}

.sponsor-card {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  min-height: 7.5rem;
  box-shadow: 0 1px 0 rgba(12, 22, 56, 0.04);
}

.sponsor-card:hover,
.sponsor-card:focus {
  border-color: #b7c2dc;
}

.sponsor-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.sponsor-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
}

.sponsor-paid {
  margin: 0 0 0.2rem !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--perk) !important;
  -webkit-text-fill-color: var(--perk) !important;
}

.sponsor-sample {
  margin: 0.65rem 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #fff4e4;
  border: 1px solid #e8c99a;
  color: #6b3d12;
  -webkit-text-fill-color: #6b3d12;
  font-weight: 700;
}

.sponsor-card.is-sample {
  border-style: dashed;
}

.sponsor-card.is-sample .sponsor-paid {
  color: #7a1f1f !important;
  -webkit-text-fill-color: #7a1f1f !important;
}

.sponsor-logo,
.sponsor-mark {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 10px;
  object-fit: contain;
  background: #f3f5fa;
  border: 1px solid var(--line);
}

.sponsor-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
}

main.sponsors-main {
  max-width: 1100px;
}

.rate-card {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.rate-card p {
  margin: 0 0 0.4rem;
}

.rate-card .money {
  font-size: 1.35rem;
}

.support code {
  font-size: 0.88em;
  background: #f3f5fa;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

footer.note {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem 2.5rem;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
  font-size: 0.88rem;
}

.copy {
  margin: 1rem 0 0;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  font-weight: 600;
}

.to-top,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.to-top .btn,
.footer-actions .btn:not(.secondary) {
  color: #fffefb;
  -webkit-text-fill-color: #fffefb;
}

.footer-actions .btn.secondary {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

#freshness {
  margin: 0 0 0.7rem;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
}

.community-card { grid-template-columns: 1fr; }
#community-official { flex-wrap: wrap; }

#empty {
  padding: 1.2rem;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin: 0.85rem 0 0;
}

.legal-links a {
  font-weight: 700;
}

.legal-links a[aria-current="page"] {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  text-decoration: none;
}

.sub-banner .banner-inner {
  padding: 0.85rem 7.5rem 0.9rem 1.15rem;
}

header.banner.sub-banner .brand-mark {
  height: 72px;
  width: auto;
  max-width: 80px;
  box-shadow: none;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.home-brand .eyebrow {
  display: block;
  margin: 0 0 0.2rem;
  color: #ffd27a;
  -webkit-text-fill-color: #ffd27a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home-brand .brand-wordmark {
  max-height: 40px;
  max-width: min(100%, 16rem);
  padding: 0;
}

.crumb {
  margin: 1rem 0 0.35rem;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
  font-size: 0.9rem;
}

main.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.2rem 2.5rem;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

main.legal h1 {
  margin: 0 0 0.55rem;
  font-size: 1.85rem;
}

main.legal h2 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.08rem;
}

main.legal p.hint {
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
}

main.legal ul {
  margin: 0.3rem 0 0.8rem;
  padding-left: 1.2rem;
}

main.legal li {
  margin: 0.28rem 0;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  header.banner {
    display: flex;
    flex-direction: column;
  }
  .banner-hot {
    position: static;
    order: -1;
    width: 100%;
    justify-content: flex-end;
    padding: 0.55rem max(0.75rem, env(safe-area-inset-right)) 0 max(0.75rem, env(safe-area-inset-left));
    top: auto;
    right: auto;
  }
  header.banner .brand-mark { height: 56px; width: auto; max-width: 56px; }
  header.banner.sub-banner .brand-mark { height: 44px; width: auto; max-width: 44px; }
  .brand-wordmark { max-height: 44px; max-width: 100%; }
  .home-brand .brand-wordmark { max-height: 38px; }
  .brand-block .eyebrow,
  .home-brand .eyebrow { display: none; }
  .brand-block { min-width: 0; }
  .brand-block .tagline {
    font-size: 0.72rem;
    line-height: 1.28;
    font-weight: 600;
  }
  .banner-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.7rem;
    row-gap: 0.55rem;
    padding: 0.55rem max(1rem, env(safe-area-inset-right)) 0.85rem max(1rem, env(safe-area-inset-left));
  }
  .sub-banner .banner-inner {
    padding: 0.45rem max(1rem, env(safe-area-inset-right)) 0.7rem max(1rem, env(safe-area-inset-left));
  }
  .donate-hot,
  .sponsors-hot {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    padding: 0.34rem 0.7rem 0.32rem;
  }
  .support-split { grid-template-columns: 1fr; }
  .branches {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-wrap: unset;
    overflow: visible;
    margin-top: 0.1rem;
    gap: 0.28rem;
  }
  .branches li {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
    padding: 0.28rem 0.36rem 0.26rem 0.32rem;
  }
  .br-tick { width: 0.45rem; height: 0.45rem; }
  .toolbar input[type="search"] {
    min-width: 100%;
    flex-basis: 100%;
  }
  .crisis {
    padding-left: max(1.1rem, env(safe-area-inset-left));
    padding-right: max(1.1rem, env(safe-area-inset-right));
  }
  .lede,
  main,
  footer.note,
  main.legal {
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }
  .tab { padding: 0.55rem 0.85rem; min-height: 44px; }
  .btn {
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
  }
  .catalog-head {
    position: static;
    z-index: auto;
    background: transparent;
  }
  .actions { position: relative; z-index: 1; }
  .perk-dirs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .perk-dirs-note,
  .affiliate-note { flex: 1 1 100%; }
}
