/* The North Plus — Editorial Perks Club Design System (Inspired by mytimesplus.co.uk + Warm Red & White) */
:root {
  --red-primary: #C81E2B;
  --red-dark: #9E1621;
  --red-soft: #FDF2F2;
  --red-border: #F5C2C7;
  --cream: #F7F3EE;
  --cream-dark: #EDE6DD;
  --white: #FFFFFF;
  --ink: #111111;
  --ink-soft: #2A2A2A;
  --muted: #666666;
  --border: #E5E5E5;
  --green: #166534;
  --green-soft: #ECFDF3;
  --amber: #92400E;
  --amber-soft: #FEF3C7;
  --blue: #1E40AF;
  --blue-soft: #EFF6FF;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

/* ==================== TWO-TIER WHITE EDITORIAL MASTHEAD ==================== */
.app-header {
  background: var(--white);
  position: relative;
  z-index: 40;
}

.header-top {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 45;
}

.header-inner {
  max-width: 1184px;
  margin: 0 auto;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-btn {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--ink);
}

.brand-plus {
  color: var(--red-primary);
  font-weight: 700;
  margin-left: 1px;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 540px) {
  .brand-wordmark { font-size: 21px; }
  .brand-sub { display: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill-btn {
  border: none;
  border-radius: 9999px;
  padding: 10px 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.pill-btn:active { transform: scale(0.98); }

.pill-primary {
  background: var(--red-primary);
  color: var(--white);
}

.pill-primary:hover {
  background: var(--red-dark);
}

.pill-header-auth {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid #D4D4D4;
  padding: 7px 16px;
  font-size: 14px;
}

.pill-header-auth:hover {
  border-color: var(--ink);
}

.pill-header-auth.is-member {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
}

.text-action-btn {
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 4px;
}

.text-action-btn:hover { color: var(--red-primary); }

.dot-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.dot-status.active { background: #86EFAC; }

/* Secondary Centered Editorial Nav Row */
.sub-nav {
  max-width: 1184px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  border-bottom: 1px solid var(--border);
}

.sub-nav::-webkit-scrollbar { display: none; }

.sub-nav-link {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 13px 2px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sub-nav-link:hover { color: var(--red-primary); }
.sub-nav-link.active {
  color: var(--red-primary);
  border-bottom-color: var(--red-primary);
  font-weight: 700;
}

@media (max-width: 720px) {
  .sub-nav { display: none; }
}

.global-partner-banner {
  background: #14532D;
  color: #ECFDF3;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.global-partner-banner button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ==================== MAIN CONTAINER ==================== */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

@media (max-width: 720px) {
  .header-inner { height: 54px; padding: 0 14px; }
  .main-content { padding: 12px 14px 92px; }
}

/* ==================== TIMES+ 50/50 SPLIT EDITORIAL HERO ==================== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 18px;
  min-height: 290px;
}

.hero-left {
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.eyebrow-tag {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--red-primary);
}

.eyebrow-sep { color: #B8B0A6; }

.eyebrow-cat {
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--ink);
}

.hero-left h1 {
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.hero-left p {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 430px;
}

.hero-pricing-note {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.hero-right {
  position: relative;
  background: linear-gradient(135deg, #8F111B 0%, #C81E2B 58%, #4A0D12 100%);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-right svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 840px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 12px;
  }
  .hero-left { padding: 16px 15px 14px; }
  .hero-left h1 { font-size: 21px; margin-bottom: 5px; }
  .hero-left p { font-size: 13px; margin-bottom: 10px; line-height: 1.35; }
  .hero-left .btn { padding: 8px 15px; font-size: 13.5px; }
  .hero-pricing-note { font-size: 11.5px; padding: 6px 10px; margin-top: 8px; }
  .hero-right { display: none; }
  .search-bar { padding: 8px 14px; margin-bottom: 8px; }
  .search-bar input { font-size: 14px; }
  .chip-row { margin-bottom: 6px; padding-bottom: 3px; }
  .chip { padding: 5px 11px; font-size: 12.5px; }
  .section-header { margin: 12px 0 10px; }
  .section-title { font-size: 20px; }
  .section-sub { font-size: 13px; }
}

/* ==================== TYPOGRAPHY & SECTION HEADERS ==================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 30px 0 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  line-height: 1.2;
}

.section-sub {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
}

.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }

/* ==================== BUTTONS (TIMES+ PILL STYLE) ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9999px;
  padding: 11px 22px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--red-primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-white {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: #D4D4D4;
}
.btn-outline:hover { border-color: var(--ink); }

.btn-outline-red {
  background: var(--white);
  color: var(--red-primary);
  border-color: var(--red-primary);
}
.btn-outline-red:hover { background: var(--red-soft); }

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 13.5px;
}

.btn-block { width: 100%; }

/* ==================== CARDS & SURFACES ==================== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* ==================== SEARCH & EDITORIAL FILTER CHIPS ==================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid #D4D4D4;
  border-radius: 9999px;
  padding: 10px 18px;
  margin-bottom: 14px;
}

.search-bar:focus-within {
  border-color: var(--ink);
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-family: var(--font-serif);
  font-size: 15.5px;
  background: transparent;
  color: var(--ink);
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  border: 1px solid #D4D4D4;
  background: var(--white);
  color: var(--ink);
  border-radius: 9999px;
  padding: 7px 15px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.chip:hover { border-color: var(--ink); }

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.chip.day-today {
  border-color: var(--red-primary);
  color: var(--red-primary);
}
.chip.day-today.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: var(--white);
}

/* ==================== BADGES (TIMES+ SOLID SQUARE-ROUNDED UPPERCASE) ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.badge-red { background: var(--red-primary); color: var(--white); }
.badge-green { background: var(--green); color: var(--white); }
.badge-amber { background: #2D2A26; color: var(--white); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-gray { background: #F1EFEA; color: #44403C; }

/* ==================== BORDERLESS 16:10 OFFER CARDS (TIMES+ SIGNATURE) ==================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

@media (max-width: 960px) {
  .listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .listings-grid { grid-template-columns: 1fr; gap: 24px; }
}

.listing-card {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

.listing-card:hover .listing-visual {
  transform: scale(1.012);
}

.listing-visual {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.listing-visual.coming-soon-bg {
  background: linear-gradient(145deg, #272421 0%, #4A2024 100%);
}

.listing-visual.live-deal-bg {
  background: linear-gradient(145deg, #9E1621 0%, #D94826 100%);
}

.listing-visual-monogram {
  position: absolute;
  right: 14px;
  bottom: -10px;
  font-family: var(--font-serif);
  font-size: 74px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  pointer-events: none;
}

.listing-body {
  padding: 12px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.card-meta-town {
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--muted);
}

.listing-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
}

.listing-title:hover { color: var(--red-primary); }

.listing-deal-box {
  background: var(--cream);
  border-left: 3px solid var(--red-primary);
  color: var(--ink);
  border-radius: 0 8px 8px 0;
  padding: 8px 11px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
}

.listing-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #DDD6CE;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
}

.vote-btn.voted {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: var(--red-primary);
}

/* Quick Google Maps Drive & Phone Call pills */
.quick-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.action-chip:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.action-chip-drive {
  border-color: #BFDBFE;
  background: #EFF6FF;
  color: #1D4ED8;
}

.action-chip-call {
  border-color: #BBF7D0;
  background: #ECFDF3;
  color: #166534;
}

/* ==================== EDITORIAL SPONSOR AD SLOTS ==================== */
.ad-slot {
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ad-slot.ad-live {
  border-color: var(--red-border);
  background: linear-gradient(90deg, var(--cream) 0%, #FFFFFF 100%);
}

.ad-slot-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--red-primary);
}

/* ==================== CALLOUTS & TIPS ==================== */
.callout {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.callout-amber { background: var(--cream); border-color: var(--cream-dark); color: var(--ink-soft); }
.callout-green { background: var(--green-soft); border-color: #BBF7D0; color: #14532D; }
.callout-red { background: var(--red-soft); border-color: var(--red-border); color: #7F1D1D; }
.callout-blue { background: #F8F9FA; border-color: var(--border); color: var(--ink-soft); }

.tip-card {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 2px;
}

.tip-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.tip-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  margin-bottom: 8px;
  cursor: pointer;
}

.checklist-item.checked {
  background: var(--green-soft);
  border-color: #BBF7D0;
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red-primary);
  margin-top: 3px;
}

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink);
}

.form-control {
  width: 100%;
  border: 1px solid #CFCFCF;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}

.form-control:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  margin-bottom: 10px;
  font-size: 13.5px;
  cursor: pointer;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red-primary);
}

/* ==================== MAP ==================== */
.map-stage {
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gmap-iframe {
  width: 100%;
  border: 0;
  display: block;
}

.map-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
  padding: 2px;
}

.map-picker-item {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.map-picker-item:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.map-picker-item.active {
  border-color: var(--red-primary);
  background: var(--red-soft);
}

/* ==================== DIGITAL MEMBER CARD ==================== */
.member-card {
  background: linear-gradient(135deg, #161616 0%, #3A0D12 55%, #C81E2B 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.live-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

/* ==================== STATS, TABLES, HUB, QR ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-box {
  background: var(--cream);
  border-radius: 12px;
  padding: 15px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 3px;
}

.progress-track {
  height: 9px;
  background: #E5DFD7;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: var(--red-primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid #EFEFEF; }
th {
  background: var(--cream);
  font-weight: 700;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
tr:last-child td { border-bottom: none; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.hub-tile {
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.hub-tile:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hub-tile-icon { font-size: 24px; line-height: 1; }
.hub-tile-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.qr-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px;
}

.qr-frame {
  background: var(--white);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tab-bar {
  display: flex;
  gap: 6px;
  background: var(--cream);
  padding: 5px;
  border-radius: 999px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--ink);
  color: var(--white);
}

.radio-card {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--white);
}

.radio-card.selected {
  border-color: var(--red-primary);
  background: var(--cream);
}

/* ==================== TIMES+ EDITORIAL FOOTER ==================== */
.site-footer { margin-top: auto; }

.back-to-top-bar {
  width: 100%;
  background: #3A3A3A;
  color: var(--white);
  border: none;
  padding: 13px 16px;
  font-family: var(--font-serif);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.back-to-top-bar:hover { background: #262626; }

.footer-dark {
  background: #0B0B0B;
  color: #D4D4D4;
  padding: 36px 20px 44px;
}

@media (max-width: 720px) {
  .footer-dark { padding-bottom: 92px; }
}

.footer-inner {
  max-width: 1184px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-wordmark { color: var(--white); font-size: 24px; }
.footer-tagline { margin: 6px 0 0; font-family: var(--font-serif); font-size: 14px; color: #A3A3A3; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
  padding: 16px 0;
}

.footer-links button {
  background: none;
  border: none;
  color: #E5E5E5;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  padding: 0;
}
.footer-links button:hover { color: var(--white); text-decoration: underline; }

.footer-legal {
  font-size: 12px;
  color: #737373;
}

/* ==================== MOBILE BOTTOM NAV ==================== */
.bottom-nav {
  display: none;
}

@media (max-width: 720px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
    z-index: 50;
  }
}

.nav-item {
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
}

.nav-item svg { width: 21px; height: 21px; }
.nav-item.active { color: var(--red-primary); }

.nav-badge {
  position: absolute;
  top: 0;
  right: calc(50% - 18px);
  background: var(--red-primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ==================== MODAL & TOAST ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.56);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

@media (min-width: 680px) {
  .modal-backdrop { align-items: center; }
}

.modal-sheet {
  background: var(--white);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 17px;
  cursor: pointer;
  flex: 0 0 auto;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #111111;
  color: #FFFFFF;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}

@media (max-width: 720px) {
  .toast { bottom: 84px; }
  .form-row { grid-template-columns: 1fr; }
}
