/* RocketCityRadar core styles.
   Theme: black, white, grayscale; rocket / moon / radar feel. */

:root {
  --bg: #0b0c10;
  --bg-soft: #14161c;
  --bg-card: #1a1d24;
  --fg: #f3f4f6;
  --fg-muted: #b6bbc5;
  --line: #2a2e36;
  --accent: #e6e8ee;
  --accent-soft: #9a9ea8;
  --ok: #cfd5df;
  --warn: #d9b67e;
  --danger: #e07a7a;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --max-width: 1200px;
  --narrow: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--fg); }

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

h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

p { color: var(--fg); }
.muted { color: var(--fg-muted); }
small.muted { font-size: 0.85em; }

code, .totp-secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft); padding: 0.1em 0.35em; border-radius: 4px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 1rem 1.25rem; }
.narrow { max-width: var(--narrow); }
.text-center { text-align: center; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--fg); color: var(--bg); padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* Header / nav --------------------------------------------------------- */
.site-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; }
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--fg);
  font-weight: 600;
}
.brand__logo { width: 38px; height: 38px; }
.brand__text { font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; }

.primary-nav { margin-left: auto; }
.primary-nav__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.primary-nav__list a {
  color: var(--fg-muted); text-decoration: none; font-weight: 500;
}
.primary-nav__list a:hover { color: var(--fg); }

.nav-toggle {
  margin-left: auto;
  background: transparent; border: 1px solid var(--line); color: var(--fg);
  padding: 0.5rem 0.7rem; border-radius: var(--radius);
  cursor: pointer; display: none;
}
.nav-toggle__bar { display: block; width: 18px; height: 2px; background: var(--fg); position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--fg);
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after  { top:  6px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    flex-basis: 100%; order: 3;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; align-items: flex-start; padding: 0.5rem 0 1rem; gap: 0.5rem; }
}

/* Buttons -------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
  font: inherit;
}
.button:hover { background: var(--bg-soft); border-color: var(--accent-soft); }
.button:active { transform: translateY(1px); }
.button--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.button--primary:hover { background: var(--accent); border-color: var(--accent); }
.button--ghost { background: transparent; }
.button--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.button--danger:hover { background: rgba(224,122,122,0.1); }

.inline-form { display: inline-block; margin: 0 0.25rem 0 0; }

/* Hero / sections ------------------------------------------------------ */
/* Compact landing-page banner: tight vertical rhythm so the radar grid
   below is visible on first paint without scrolling. */
.hero {
  position: relative;
  padding: 1.6rem 0 1.5rem;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.07), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.04), transparent 60%),
    linear-gradient(180deg, #0a0b10 0%, #14161c 100%);
}
.hero__title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0 0 0.2rem;
  line-height: 1.15;
}
.hero__tagline {
  color: var(--fg-muted);
  font-size: 0.98rem;
  margin: 0 0 0.6rem;
}
.hero__copy {
  max-width: 70ch;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 0.85rem;
}
.hero__copy p { margin: 0 0 0.4rem; }
.hero__copy p:last-child { margin-bottom: 0; }
.hero .button { margin-top: 0.25rem; }

.section { padding: 2rem 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { margin-top: 0; }

.how-it-works { padding-left: 1.2rem; }
.how-it-works li { margin-bottom: 0.4rem; }

/* Radar grid (selection) ---------------------------------------------- */
.radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.radar-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-decoration: none;
  text-align: center;
  transition: transform 120ms ease, border-color 120ms ease;
  color: var(--fg);
}
/* The radar-card display rule above otherwise overrides the browser's
   built-in `[hidden] { display: none }` — without this rule, JS
   filtering on /radars wouldn't actually hide cards. */
.radar-card[hidden] { display: none; }
.radar-card:hover { transform: translateY(-2px); border-color: var(--accent-soft); }
.radar-card__icon svg { width: 80px; height: 80px; margin: 0 auto; }
.radar-card__name { margin: 0.6rem 0 0.2rem; }
.radar-card__count { color: var(--fg-muted); margin: 0; font-size: 0.9rem; }
.radar-card__outer { fill: rgba(255,255,255,0.04); stroke: #777; stroke-width: 1; }
.radar-card__mid   { fill: rgba(255,255,255,0.05); stroke: #888; stroke-width: 0.7; stroke-dasharray: 3 3; }
.radar-card__inner { fill: rgba(255,255,255,0.06); stroke: #999; stroke-width: 0.7; stroke-dasharray: 2 2; }
.radar-card__cross { stroke: #555; stroke-width: 0.5; }
.radar-card__center { fill: #fff; }

/* Small rotating sweep wedge — only visible on cards whose radar has
   at least one publicly visible venue. Subtle yellow tint so it
   echoes the bigger radar sweep without overwhelming the card. */
.radar-card__sweep {
  fill: transparent;
  pointer-events: none;
}
.radar-card--active .radar-card__sweep {
  fill: rgba(255, 216, 74, 0.22);
  /* SVG transform-box defaults to view-box, so 32px 32px maps to the
     viewBox's user-coord center (32, 32). */
  transform-origin: 32px 32px;
  animation: radar-card-sweep 3s linear infinite;
}
@keyframes radar-card-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .radar-card--active .radar-card__sweep { animation: none; }
}

.radar-grid__more {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* Search input on /radars page ------------------------------------- */
.radar-search { display: inline-flex; align-items: center; }
.radar-search input {
  background: var(--bg-soft);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  min-width: 220px;
}
.radar-search input::placeholder { color: var(--fg-muted); }
.radar-search input:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

/* Radar detail layout ------------------------------------------------- */
.radar-page__head { margin-bottom: 1rem; }
.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) { .radar-layout { grid-template-columns: 1fr; } }

.radar-scope {
  background: radial-gradient(circle at center, #1a1c22 0%, #07080c 80%);
  border: 1px solid var(--line);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.radar-scope svg { width: 100%; height: 100%; display: block; }
.radar-controls {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Tips strip ---------------------------------------------------------- */
/* Three compact cards explaining how to use the radar. Sits between the
   radar header and the radar/panel grid. Desktop: 3 columns. Mobile:
   stacks vertically with each card kept to a single readable line. */
.radar-tips {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 720px) {
  .radar-tips { grid-template-columns: 1fr; gap: 0.5rem; }
}
.radar-tip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.radar-tip__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg-muted);
}
.radar-tip__icon svg { width: 20px; height: 20px; }
.radar-tip__text {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--fg-muted);
}
.radar-tip__text strong { color: var(--fg); font-weight: 600; }

/* Hours filter chips ------------------------------------------------- */
.radar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.radar-filters__label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  margin-right: 0.25rem;
}
.radar-filter {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.radar-filter:hover {
  background: var(--bg);
  border-color: var(--accent-soft);
}
.radar-filter.is-active {
  background: #8fd99a;
  color: #0c1410;
  border-color: #8fd99a;
  font-weight: 600;
}
.radar-filter--clear {
  border-style: dashed;
  color: var(--fg-muted);
}
.radar-filters__count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* Hours schedule in venue panel ------------------------------------- */
.venue-hours-schedule {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 0.85rem;
  font-size: 0.92rem;
}
.venue-hours-schedule dt {
  color: var(--fg-muted);
  font-weight: 500;
}
.venue-hours-schedule dd { margin: 0; }
.venue-hours-schedule__closed { color: var(--fg-muted); font-style: italic; }
.venue-hours-note {
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* Hours grid in venue form ------------------------------------------ */
.hours-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem 1rem;
  margin: 0 0 1rem;
  background: var(--bg-soft);
}
.hours-grid legend {
  padding: 0 0.5rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.hours-row {
  display: grid;
  grid-template-columns: 90px auto 1fr 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px dashed var(--line);
}
.hours-row:first-of-type { border-top: none; }
.hours-row__day { font-weight: 600; color: var(--fg); }
.hours-row__closed {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  cursor: pointer;
}
.hours-row__time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
}
.hours-row__time-label { min-width: 3.5rem; }
.hours-row__time-input {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 0.5rem;
  font: inherit;
  color-scheme: dark;
}
@media (max-width: 600px) {
  .hours-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "day day"
      "closed closed"
      "open close";
  }
  .hours-row__day { grid-area: day; }
  .hours-row__closed { grid-area: closed; }
  .hours-row__time:nth-of-type(2) { grid-area: open; }
  .hours-row__time:nth-of-type(3) { grid-area: close; }
}

/* Radar die ---------------------------------------------------------- */
/* The clickable button is just a wrapper; the actual 3D cube is a span
   inside it so the button keeps its native accessibility while the
   inner element handles transform-style: preserve-3d. */
.radar-die-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.4rem 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  transition: border-color 150ms ease, background-color 150ms ease, transform 100ms ease;
}
.radar-die-button:hover  { background: var(--bg-soft); border-color: var(--accent-soft); }
.radar-die-button:active { transform: translateY(1px); }
.radar-die-button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.radar-die-button:disabled { cursor: progress; opacity: 0.85; }
.radar-die-button__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .radar-die-button { padding: 0.9rem 1.6rem 0.9rem 1.1rem; }
  .radar-die-button__label { font-size: 1.05rem; }
}

.radar-die {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 54px;
  perspective: 600px;
  transform-style: preserve-3d;
  /* Resting orientation tilted enough to show 3 faces. */
  transform: rotateX(-22deg) rotateY(28deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radar-die.is-rolling {
  animation: die-tumble 0.95s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes die-tumble {
  0%   { transform: rotateX(-22deg) rotateY(28deg); }
  100% { transform: rotateX(var(--end-rotate-x, 720deg))
                    rotateY(var(--end-rotate-y, 540deg)); }
}

.radar-die__face {
  position: absolute;
  inset: 0;
  background-color: #161821;
  background-repeat: no-repeat;
  border: 1px solid #4a4f5b;
  border-radius: 9px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Each face sits on one side of an invisible 54px cube. 27px = half. */
.radar-die__face--1 { transform: translateZ(27px); }                  /* front */
.radar-die__face--6 { transform: rotateY(180deg) translateZ(27px); }  /* back  */
.radar-die__face--2 { transform: rotateY(90deg)  translateZ(27px); }  /* right */
.radar-die__face--5 { transform: rotateY(-90deg) translateZ(27px); }  /* left  */
.radar-die__face--3 { transform: rotateX(90deg)  translateZ(27px); }  /* top   */
.radar-die__face--4 { transform: rotateX(-90deg) translateZ(27px); }  /* bottom*/

/* Pip patterns rendered with stacked radial-gradients. */
.radar-die__face--1 {
  background-image:
    radial-gradient(circle at 50% 50%, #e9ecf2 4.5px, transparent 5.5px);
}
.radar-die__face--2 {
  background-image:
    radial-gradient(circle at 25% 25%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 75%, #e9ecf2 4.5px, transparent 5.5px);
}
.radar-die__face--3 {
  background-image:
    radial-gradient(circle at 22% 22%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 50% 50%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 78% 78%, #e9ecf2 4.5px, transparent 5.5px);
}
.radar-die__face--4 {
  background-image:
    radial-gradient(circle at 25% 25%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 25%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 25% 75%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 75%, #e9ecf2 4.5px, transparent 5.5px);
}
.radar-die__face--5 {
  background-image:
    radial-gradient(circle at 25% 25%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 25%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 50% 50%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 25% 75%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 75%, #e9ecf2 4.5px, transparent 5.5px);
}
.radar-die__face--6 {
  background-image:
    radial-gradient(circle at 25% 22%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 22%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 25% 50%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 50%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 25% 78%, #e9ecf2 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 78%, #e9ecf2 4.5px, transparent 5.5px);
}

/* "Choice made": every face swaps its pips for a green tinted panel
   with a checkmark, so whichever face came up on top after the roll
   visibly indicates that a venue has been picked. */
.radar-die__face::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  color: #d2f1d6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.radar-die.has-selection .radar-die__face {
  background-color: #1f2c25;
  background-image: none;
  border-color: #8fd99a;
  box-shadow: 0 0 14px rgba(143, 217, 154, 0.45),
              inset 0 0 12px rgba(143, 217, 154, 0.20);
}
.radar-die.has-selection .radar-die__face::after {
  content: '✓';
  font-size: 30px;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .radar-die { transition: none; }
  .radar-die.is-rolling { animation-duration: 0.2s; }
}

#radar-sweep {
  transform-origin: 0 0;
  animation: radar-sweep 4s linear infinite;
}
@keyframes radar-sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #radar-sweep { animation: none; }
}

.blip { cursor: pointer; }
.blip__dot {
  fill: #e9ecf2;
  stroke: #000;
  stroke-width: 0.006;
  animation: blip-ping 4s linear infinite;
  animation-delay: var(--ping-delay, 0s);
}
.blip__halo {
  fill: rgba(255, 216, 74, 0);
  r: 0.07;
  pointer-events: none;
  animation: blip-halo 4s linear infinite;
  animation-delay: var(--ping-delay, 0s);
}
.blip__label {
  fill: #e9ecf2;
  pointer-events: none;
  paint-order: stroke;
  stroke: #000;
  stroke-width: 0.01;
}

/* Sweep ping: the wedge covers 60° / 360° = 16.6667% of the rotation,
   so we keep the blip solid yellow for exactly 16.66% of the cycle
   (the entire time the wedge is overlapping it). The moment the
   trailing edge clears the blip we start the fade. */
@keyframes blip-ping {
  0%      { fill: #ffd84a; }   /* leading edge arrives — flash on  */
  16.66%  { fill: #ffd84a; }   /* trailing edge has just departed   */
  33%     { fill: #fff0a8; }   /* fading                            */
  50%     { fill: #e9ecf2; }   /* back to baseline                  */
  100%    { fill: #e9ecf2; }
}
@keyframes blip-halo {
  0%      { fill: rgba(255, 216, 74, 0.55); }
  16.66%  { fill: rgba(255, 216, 74, 0.45); }
  33%     { fill: rgba(255, 216, 74, 0.20); }
  50%     { fill: rgba(255, 216, 74, 0);    }
  100%    { fill: rgba(255, 216, 74, 0);    }
}

/* Hover: a quick brighten that does not disrupt the sweep ping. */
.blip:hover .blip__dot { fill: #ffffff; }

/* Selection ring: an independent layer that does not touch the dot's
   sweep animation, so clicking a blip never disturbs the radar timing.
   The ring is invisible by default and lights up in soft green when
   the blip is selected (clicked or die-rolled). */
.blip__ring {
  fill: none;
  stroke: transparent;
  stroke-width: 0.012;
  pointer-events: none;
}
.blip.is-selected .blip__ring {
  stroke: #8fd99a;
  animation: blip-selected-ring 1.2s ease-in-out infinite;
}
.blip.is-selected .blip__label {
  fill: #b8ecc1;
  font-weight: 700;
}
@keyframes blip-selected-ring {
  0%, 100% { stroke-opacity: 0.85; r: 0.075; stroke-width: 0.012; }
  50%      { stroke-opacity: 1.00; r: 0.090; stroke-width: 0.018; }
}

/* Sponsored blip — adds a gold halo around the dot. Position is
   untouched: sponsors do NOT buy ratings or radar location. */
.blip__sponsor-ring {
  fill: none;
  stroke: transparent;
  stroke-width: 0.014;
  pointer-events: none;
}
.blip--sponsored .blip__sponsor-ring {
  stroke: #f7c948;
  filter: drop-shadow(0 0 0.04px rgba(247, 201, 72, 0.7));
  animation: blip-sponsor-pulse 2.4s ease-in-out infinite;
}
.blip--sponsored .blip__label { fill: #f7c948; }
.blip__sponsor-tag {
  fill: #f7c948;
  font-size: 0.045px;
  font-style: italic;
}
@keyframes blip-sponsor-pulse {
  0%, 100% { stroke-opacity: 0.85; }
  50%      { stroke-opacity: 1.0;  }
}
@media (prefers-reduced-motion: reduce) {
  .blip--sponsored .blip__sponsor-ring { animation: none; }
}

/* Brief shuffle highlight used while the die roll is animating. */
.blip.is-rolling .blip__dot {
  fill: #fff7c2;
  r: 0.05;
  animation: none;
}

/* Unrated blip — hollow circle with a "?" so visitors can tell at a
   glance the venue is on the radar but hasn't been rated yet. Sits
   at the same neutral mid-radar position regardless of any stray
   ratings, so it is never penalized. */
.blip--unrated .blip__dot {
  fill: rgba(180, 188, 200, 0.18);
  stroke: #b6bbc5;
  stroke-width: 0.008;
  stroke-dasharray: 0.025 0.018;
  /* Slightly slower, dimmer ping so the unrated dot reads as
     tentative when the sweep crosses it. */
  animation-duration: 4s;
}
.blip--unrated .blip__halo {
  opacity: 0.55;
}
.blip--unrated .blip__label {
  fill: #cdd2db;
  font-style: italic;
}
.blip__unrated-mark {
  fill: #cdd2db;
  font-size: 0.05px;
  font-weight: 700;
  font-style: italic;
  pointer-events: none;
  paint-order: stroke;
  stroke: #000;
  stroke-width: 0.006;
}
.blip__label-tag {
  fill: #9aa0aa;
  font-size: 0.045px;
  font-style: italic;
}
/* Selection ring still wins over the unrated styling so picking an
   unrated venue is unmistakable. */
.blip--unrated.is-selected .blip__dot {
  stroke-dasharray: none;
}

@media (prefers-reduced-motion: reduce) {
  .blip__dot,
  .blip__halo,
  .blip.is-selected .blip__ring { animation: none; }
  .blip.is-selected .blip__ring { stroke: #8fd99a; stroke-opacity: 1; }
}

/* Venue panel --------------------------------------------------------- */
.radar-layout__panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  min-height: 240px;
}
.venue-detail__name { margin-top: 0; }
.venue-detail__ratings { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.venue-detail__ratings li {
  background: var(--bg-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--line);
}
.venue-detail__rating-empty {
  background: transparent !important;
  border-style: dashed !important;
  color: var(--fg-muted);
  font-style: italic;
}

/* Status badges (Sponsored, Not yet rated, …) along the top of the
   venue side panel. Stacked as chips so multiple states coexist
   cleanly instead of fighting for a single ::after slot. */
.venue-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
}
.venue-detail__badges:empty { display: none; }
.venue-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
}
.venue-badge--sponsored {
  color: #1a1402;
  background: #f7c948;
  border-color: #f7c948;
}
.venue-badge--unrated {
  color: var(--fg-muted);
  background: var(--bg-soft);
  border: 1px dashed var(--accent-soft);
}

/* When a sponsored venue is being shown, gild the whole side-panel
   border so the gold accent echoes the blip ring on the radar. */
.radar-layout__panel--sponsored {
  border-color: #f7c948;
  box-shadow: 0 0 0 1px rgba(247, 201, 72, 0.30),
              0 4px 18px rgba(247, 201, 72, 0.18);
}

/* Reused on the staff venues-list pill so admins see the same accent. */
.pill--sponsored {
  background: rgba(247, 201, 72, 0.18);
  border-color: #f7c948;
  color: #f7c948;
  font-weight: 600;
}
.venue-detail__meta { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 0.25rem 1rem; }
.venue-detail__meta dt { color: var(--fg-muted); font-weight: 600; }
.venue-detail__meta dd { margin: 0; }
.venue-detail__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; margin: 0.5rem 0; }
.venue-detail__gallery img { border-radius: var(--radius); border: 1px solid var(--line); }

/* Flash messages ------------------------------------------------------ */
.flash-stack { padding: 0.75rem 0; display: grid; gap: 0.5rem; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.flash--success { border-color: var(--ok); }
.flash--error { border-color: var(--danger); color: var(--danger); }
.flash--info { border-color: var(--accent-soft); }
.flash--warning { border-color: var(--warn); color: var(--warn); }

/* Cards / grids ------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.card--link { display: block; text-decoration: none; color: var(--fg); }
.card--link:hover { border-color: var(--accent-soft); }

.grid { display: grid; gap: 1rem; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--main-aside { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
.stack > * + * { margin-top: 1rem; }
@media (max-width: 720px) {
  .grid--two, .grid--three, .grid--main-aside { grid-template-columns: 1fr; }
}

/* Tables -------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.table th, .table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--fg-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table td.actions { white-space: nowrap; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }

.pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.75rem; border: 1px solid var(--line); }
.pill--ok { color: var(--ok); border-color: var(--ok); }
.pill--warn { color: var(--warn); border-color: var(--warn); }
.pill--muted { color: var(--fg-muted); }

/* Forms --------------------------------------------------------------- */
.field { margin-bottom: 1rem; }
.field__label { display: block; margin-bottom: 0.35rem; font-weight: 500; color: var(--fg-muted); }
.field__control {
  width: 100%;
  background: var(--bg-soft);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font: inherit;
}
.field__control:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.field__control--textarea { min-height: 6rem; resize: vertical; }
.field--error .field__control { border-color: var(--danger); }
.field__errors { color: var(--danger); margin: 0.25rem 0 0; padding-left: 1.1rem; }
.field__help { color: var(--fg-muted); }
.field__checkbox { display: inline-flex; align-items: center; gap: 0.5rem; }
.form-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }

/* Journal ------------------------------------------------------------- */
.journal-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.journal-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.journal-filter:hover {
  background: var(--bg);
  border-color: var(--accent-soft);
}
.journal-filter.is-active {
  background: #8fd99a;
  color: #0c1410;
  border-color: #8fd99a;
  font-weight: 600;
}
.journal-filter__count {
  display: inline-block;
  min-width: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.3rem;
}
.journal-filter.is-active .journal-filter__count {
  background: rgba(0, 0, 0, 0.18);
  color: #0c1410;
}

.journal-author { margin-bottom: 1.5rem; }
.journal-section-list { list-style: none; padding: 0; }
.journal-section-list li { padding: 0.3rem 0; border-bottom: 1px dashed var(--line); }
.post-list { list-style: none; padding: 0; }
.post-list__item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.post-list__item h2 { margin: 0; }
.journal-post .lead { color: var(--fg-muted); font-size: 1.1rem; }
.post-gallery {
  list-style: none; padding: 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-top: 1.5rem;
}
.post-gallery img { border: 1px solid var(--line); border-radius: var(--radius); }

/* Thumb lists in admin/staff ----------------------------------------- */
.thumb-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.thumb { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem; text-align: center; }
.thumb img { border-radius: var(--radius); }
.thumb p { margin: 0.25rem 0; font-size: 0.8rem; color: var(--fg-muted); word-break: break-word; }

/* TOTP setup ---------------------------------------------------------- */
.totp-qr { width: 220px; height: 220px; background: white; padding: 0.5rem; border-radius: var(--radius); margin: 0 auto; }
.totp-secret { font-size: 1.1rem; letter-spacing: 0.1em; }

/* Staff banner (shown to logged-in staff when coming-soon mode is on) */
.staff-banner {
  background: linear-gradient(180deg, #21271d 0%, #1a1f17 100%);
  border-bottom: 1px solid var(--warn);
  color: var(--fg);
}
.staff-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  flex-wrap: wrap;
}
.staff-banner strong { color: var(--warn); }
.staff-banner--preview {
  background: linear-gradient(180deg, #1c1f29 0%, #15171f 100%);
  border-bottom-color: #6f7fda;
}
.staff-banner--preview strong { color: #97a5ff; }

/* Notice card variant for the settings page */
.card--notice {
  border-color: var(--warn);
  background: linear-gradient(180deg, #221d12 0%, #1a1812 100%);
}

/* Coming-soon page ---------------------------------------------------- */
.coming-soon-page {
  text-align: center;
  padding: 4rem 1rem 5rem;
}
.coming-soon-page__logo img {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}
.coming-soon-page__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}
.coming-soon-page__body {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: left;
}
.coming-soon-page__body p { margin: 0 0 1rem; }
.coming-soon-page__body p:last-child { margin-bottom: 0; }
.coming-soon-page__cta { margin-top: 2.25rem; }

/* How-it-works page --------------------------------------------------- */
.how-it-works-page { padding: 2rem 1rem 3rem; }
.how-it-works-page__head { margin-bottom: 1.5rem; }
.how-it-works-page__body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg);
}
.how-it-works-page__body p {
  margin: 0 0 1rem;
  max-width: 64ch;
}
.how-it-works-page__cta { margin-top: 2rem; }

/* Info / legal page wrapper ------------------------------------------ */
.info-page-wrapper { padding: 2rem 1rem 3rem; }
.info-page__body { font-size: 1.02rem; line-height: 1.65; color: var(--fg); }
.info-page__body p { margin: 0 0 1rem; max-width: 64ch; }
.contact-page__email { margin-top: 1.5rem; }

/* Settings page sections --------------------------------------------- */
.settings-section {
  margin: 0 0 1.75rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.settings-section:last-of-type { border-bottom: none; }
.settings-section > h2 { margin-top: 0; }

/* Ad slot ------------------------------------------------------------- */
/* Ads sit inside their own bordered container with a minimum height so
   AdSense iframes never push other content around when they load. The
   "Advertisement" label is required by AdSense terms when ads sit
   adjacent to user content. */
.ad-slot {
  margin: 2rem auto;
  padding: 0.75rem 0.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.ad-slot__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.ad-slot__unit { min-height: 80px; display: block; }
.ad-slot--page { max-width: 980px; }
@media (max-width: 720px) { .ad-slot { margin: 1.5rem auto; } }

/* Ad-slot preview mode ---------------------------------------------- */
/* The mock ad lives inside the same .ad-slot wrapper so the
   surrounding spacing matches real ads exactly. The wrapper sprouts
   a small "PREVIEW" ribbon so staff (or anyone) can tell at a glance
   these aren't live ads. */
.ad-slot--preview { position: relative; }
.ad-slot--preview::before {
  content: "PREVIEW";
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 1;
  background: #fde15a;
  color: #1b1500;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  border-radius: 3px;
}

.settings-section__divider {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 1.5rem 0 1rem;
}

/* Mock advertisements ----------------------------------------------- */
.preview-ad {
  display: grid;
  position: relative;
  gap: 0.75rem 1.2rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  color: var(--fg);
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: not-allowed;
  min-height: 250px;
}
.preview-ad__ribbon {
  position: absolute;
  top: 0; left: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 2px 8px;
  border-bottom-right-radius: var(--radius);
}
.preview-ad__eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}
.preview-ad__headline {
  display: block;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.preview-ad__copy {
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  max-width: 64ch;
}
.preview-ad__cta {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 600;
  text-decoration: underline;
}
.preview-ad__cta--filled {
  background: #ff5f1f;
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 95, 31, 0.45);
}

/* Variant 1: financial banner with a rocket on the side. */
.preview-ad--banner {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  background:
    radial-gradient(circle at 0% 0%, #ffaa3a 0%, transparent 35%),
    radial-gradient(circle at 100% 100%, #5b6dff 0%, transparent 45%),
    linear-gradient(135deg, #2a1a4a 0%, #1a1230 100%);
  color: #fff;
}
.preview-ad__rocket {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  text-align: center;
}

/* Variant 2: "shop sale" with image-grid tiles. */
.preview-ad--shop {
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(120deg, #b91c1c 0%, #ec4899 60%, #f59e0b 120%);
  color: #fff;
  min-height: 280px;
}
.preview-ad__shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  width: 100%;
  aspect-ratio: 1;
  max-height: 220px;
}
.preview-ad__shop-tile {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.preview-ad__shop-tile--a { background: rgba(255, 255, 255, 0.30); }
.preview-ad__shop-tile--b { background: rgba(0, 0, 0, 0.35); }
.preview-ad__shop-tile--c { background: rgba(255, 255, 255, 0.18); }
.preview-ad__shop-tile--d { background: rgba(0, 0, 0, 0.25); }

/* Variant 3: clickbait listicle with a big "?" art block. */
.preview-ad--listicle {
  grid-template-columns: 90px minmax(0, 1fr);
  grid-template-areas:
    "art body"
    "tags tags";
  align-items: start;
  background: linear-gradient(180deg, #f9fafb 0%, #e5e7eb 100%);
  color: #111827;
}
.preview-ad--listicle .preview-ad__body { grid-area: body; }
.preview-ad__listicle-art {
  grid-area: art;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: #fbbf24;
  border-radius: 8px;
  font-size: 2.4rem;
  font-weight: 900;
  color: #7c2d12;
  border: 2px solid #f97316;
}
.preview-ad__listicle-tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
}
.preview-ad__listicle-tags span {
  font-size: 0.75rem;
  color: #4b5563;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 999px;
}

@media (max-width: 600px) {
  .preview-ad--banner,
  .preview-ad--shop,
  .preview-ad--listicle {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }
  .preview-ad__rocket,
  .preview-ad__shop-grid,
  .preview-ad__listicle-art { display: none; }
}

/* Lightbox ------------------------------------------------------------ */
/* Full-viewport overlay used to view venue and journal-post images at
   a larger size. Hidden by default; JS toggles the hidden attribute. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 9, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.lightbox__image {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  background: #000;
}
.lightbox__caption {
  margin-top: 0.75rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  max-width: min(92vw, 1200px);
  text-align: center;
}
.lightbox__counter {
  position: absolute;
  bottom: 0.75rem;
  left: 0; right: 0;
  margin: 0;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.lightbox__close {
  top: 0.85rem;
  right: 0.85rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 96px;
  font-size: 2.2rem;
  border-radius: var(--radius);
}
.lightbox__nav--prev { left: 0.85rem; }
.lightbox__nav--next { right: 0.85rem; }
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

/* Clickable-image affordance ---------------------------------------- */
[data-lightbox-group] img {
  cursor: zoom-in;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
[data-lightbox-group] img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Prevent background scroll while the lightbox is open. */
.body--no-scroll { overflow: hidden; }

@media (max-width: 540px) {
  .lightbox__nav { width: 40px; height: 72px; font-size: 1.8rem; }
  .lightbox__close { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox__image { max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  [data-lightbox-group] img,
  [data-lightbox-group] img:hover { transition: none; transform: none; }
}

/* Sponsor banner (direct-sold) -------------------------------------- */
/* Distinct from .ad-slot (AdSense) — clearly labelled "Sponsor", with
   a gold accent so visitors can tell it apart from editorial content. */
.sponsor-banner {
  margin: 1.5rem auto;
  padding: 0.4rem 0.6rem 0.6rem;
  background: var(--bg-card);
  border: 1px solid #b88f1a;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 980px;
}
.sponsor-banner__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f7c948;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.sponsor-banner__link { display: inline-block; line-height: 0; }
.sponsor-banner__image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: inline-block;
}

/* Staff thumb for banner listings. */
.banner-thumb {
  width: 200px;
  max-height: 60px;
  object-fit: contain;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.banner-thumb--inline { vertical-align: middle; }

/* Cookie consent banner ---------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  margin: 0;
  flex: 1 1 320px;
  color: var(--fg);
  font-size: 0.92rem;
  line-height: 1.4;
}
.cookie-banner__text a { color: var(--fg); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
@media (max-width: 540px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .button { flex: 1; }
}

/* Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.5rem 0; background: var(--bg-soft); }
.site-footer__inner { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer p { margin: 0; color: var(--fg-muted); }
.site-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.25rem 0;
}
.site-footer__links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-footer__links a:hover { color: var(--fg); text-decoration: underline; }

/* Steps lists in TOTP ------------------------------------------------- */
.steps { padding-left: 1.2rem; }

/* Utilities ----------------------------------------------------------- */
.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;
}
