/* SportsPlus PH (sports-plus.ph) - Official Logo Palette: Royal Cobalt & Championship Metallic Gold */
:root {
  --bg: #030924;
  --bg-deep: #02061A;
  --surface: #0A1B4A;
  --surface-2: #122863;
  --surface-3: #1B377D;
  --border: #25407D;
  --border-strong: #446397;
  --accent: #5B9BFF;
  --accent-hover: #85B6FF;
  --accent-soft: rgba(91, 155, 255, 0.16);
  --accent2: #DCBB6A;
  --accent2-bright: #F0D283;
  --accent2-hover: #C6A04B;
  --accent2-soft: rgba(220, 187, 106, 0.16);
  --text: #FFFFFF;
  --text-muted: #C8D6EA;
  --text-dim: #91A9CC;
  --success: #34D399;
  --danger: #F87171;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-card: 0 14px 34px rgba(2, 6, 26, 0.52);
  --shadow-gold: 0 10px 26px rgba(220, 187, 106, 0.28);
  --font-head: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 75% 45% at 15% 0%, rgba(37, 64, 125, 0.42), transparent 62%),
    radial-gradient(ellipse 55% 40% at 88% 6%, rgba(220, 187, 106, 0.11), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent2-bright);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.22;
  margin-top: 0;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.8rem, 3.3vw, 2.65rem); font-weight: 700; margin-bottom: 0.85rem; }
h2 { font-size: clamp(1.38rem, 2.25vw, 1.85rem); font-weight: 700; margin: 2.3rem 0 0.95rem; }
h3 { font-size: clamp(1.12rem, 1.5vw, 1.32rem); font-weight: 600; margin: 1.5rem 0 0.65rem; }
p { margin: 0 0 1.05rem; color: var(--text-muted); }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; color: var(--text-muted); }
li { margin-bottom: 0.48rem; }
strong { color: var(--text); font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent2-bright); color: var(--bg);
  padding: 0.75rem 1rem; font-weight: 700; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; border-radius: var(--radius-sm); }

/* Top 21+ Compliance Ribbon */
.compliance-ribbon {
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(220, 187, 106, 0.25);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.compliance-ribbon .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.48rem;
  padding-bottom: 0.48rem;
}
.compliance-ribbon a { color: var(--accent2-bright); font-weight: 600; text-decoration: underline; }
.ribbon-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(220, 38, 38, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(248, 113, 113, 0.42);
  padding: 0.12rem 0.58rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

/* Header (Frosted Royal Navy + Subtle Gold Accent) */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(3, 9, 36, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(2, 6, 26, 0.4);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 74px;
}
.brand-link { display: inline-flex; align-items: center; flex-shrink: 0; gap: 0.5rem; }
.brand-link img { width: 216px; height: 40px; }

.primary-nav {
  display: none;
  align-items: center;
  gap: 0.18rem;
}
@media (min-width: 1040px) {
  .primary-nav { display: flex; }
}
.primary-nav a {
  color: var(--text-muted);
  font-size: 0.91rem;
  font-weight: 600;
  padding: 0.52rem 0.74rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: 1px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.primary-nav a[aria-current="page"] {
  border-color: rgba(220, 187, 106, 0.55);
  color: var(--accent2-bright);
}

.header-actions {
  display: flex; align-items: center; gap: 0.55rem;
}

/* Dual-CTA Buttons (Championship Metallic Gold + Cobalt Outline) */
.btn-ghost-sm, .btn-gold-sm, .btn-primary-cta, .btn-secondary-guide {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-family: var(--font-head); font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer; border: 1px solid transparent;
  text-align: center; white-space: nowrap;
}
.btn-ghost-sm {
  min-height: 44px; padding: 0.48rem 1.05rem; font-size: 0.9rem;
  color: var(--text); background: var(--surface); border-color: var(--border-strong);
}
.btn-ghost-sm:hover {
  background: var(--surface-2); border-color: var(--accent2); color: var(--text);
}

.btn-gold-sm {
  min-height: 44px; padding: 0.48rem 1.2rem; font-size: 0.9rem;
  color: #030924;
  background: linear-gradient(135deg, var(--accent2-bright) 0%, var(--accent2) 58%, var(--accent2-hover) 100%);
  border-color: var(--accent2-bright);
  box-shadow: 0 4px 14px rgba(220, 187, 106, 0.26);
}
.btn-gold-sm:hover {
  filter: brightness(1.07); color: #030924; transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-primary-cta {
  min-height: 52px; padding: 0.8rem 1.7rem; font-size: 1rem;
  color: #030924;
  background: linear-gradient(135deg, #F5DC93 0%, var(--accent2) 54%, #B9923F 100%);
  border-color: #F5DC93;
  box-shadow: var(--shadow-gold);
}
.btn-primary-cta:hover {
  filter: brightness(1.06); color: #030924; transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(220, 187, 106, 0.36);
}

.btn-secondary-guide {
  min-height: 52px; padding: 0.8rem 1.5rem; font-size: 1rem;
  color: var(--text);
  background: rgba(18, 40, 99, 0.85);
  border-color: var(--border-strong);
}
.btn-secondary-guide:hover {
  background: var(--surface-3); border-color: var(--accent2); color: var(--text); transform: translateY(-2px);
}

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 1.25rem;
}
@media (min-width: 1040px) {
  .menu-toggle { display: none; }
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  padding: 1rem 0 1.35rem;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.mobile-drawer a {
  display: flex; align-items: center; min-height: 46px;
  padding: 0.55rem 0.9rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 0.92rem;
}
.mobile-drawer a:hover { border-color: var(--accent2); color: var(--accent2-bright); }

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.95rem 0 0.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
}
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent2-bright); }

/* Hero Section with Athletic Cobalt Diagonal Slash Pattern */
.hero-section {
  padding: 2.3rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(-26deg, transparent 0%, transparent 42%, rgba(68, 99, 151, 0.14) 42%, rgba(68, 99, 151, 0.14) 52%, transparent 52%, transparent 60%, rgba(220, 187, 106, 0.06) 60%, rgba(220, 187, 106, 0.06) 64%, transparent 64%),
    linear-gradient(180deg, rgba(12, 40, 106, 0.45) 0%, rgba(3, 9, 36, 0) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.18fr 0.82fr; gap: 2.6rem; }
}
.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.95rem 0.35rem 0.38rem;
  background: rgba(10, 27, 74, 0.9);
  border: 1px solid rgba(220, 187, 106, 0.45);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(2, 6, 26, 0.42);
}
.hero-brand-lockup img {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
}
.hero-brand-lockup span {
  color: var(--accent2-bright);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(18, 40, 99, 0.82);
  border: 1px solid rgba(220, 187, 106, 0.42);
  color: var(--accent2-bright);
  padding: 0.32rem 0.88rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem; font-weight: 600;
  margin-bottom: 0.95rem;
}
.hero-lead {
  font-size: 1.07rem;
  color: var(--text-muted);
  max-width: 64ch;
  margin-bottom: 1.4rem;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.9rem;
  margin-bottom: 1.45rem;
}
.hero-trust-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.42rem;
  padding: 0.4rem 0.78rem;
  background: rgba(10, 27, 74, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 500;
}
.trust-chip b { color: var(--accent2-bright); }

/* 3-Slide Hero Carousel (Zero CLS, 5:6 Portrait Cards, Cobalt & Gold Frame) */
.hero-carousel {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid rgba(220, 187, 106, 0.38);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 5 / 6;
  max-height: 440px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.15rem 1.05rem 0.95rem;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 9, 36, 0.88) 40%, rgba(3, 9, 36, 0.98) 100%);
}
.carousel-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: #030924;
  background: linear-gradient(135deg, var(--accent2-bright), var(--accent2));
  padding: 0.18rem 0.6rem; border-radius: var(--radius-pill);
  margin-bottom: 0.42rem;
}
.carousel-title {
  font-family: var(--font-head); font-size: 1.16rem; font-weight: 700; color: var(--text); margin: 0 0 0.25rem;
}
.carousel-meta { font-size: 0.86rem; color: var(--text-muted); margin: 0; }
.carousel-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.85rem; gap: 0.5rem;
}
.carousel-btn {
  min-width: 44px; min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bg); border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 700; cursor: pointer;
}
.carousel-btn:hover { border-color: var(--accent2); background: var(--surface-3); color: var(--accent2-bright); }
.carousel-dots { display: flex; gap: 0.45rem; }
.carousel-dot {
  width: 30px; height: 8px; border-radius: var(--radius-pill);
  border: none; background: var(--border-strong); cursor: pointer; padding: 0;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.carousel-dot[aria-selected="true"] { background: var(--accent2-bright); width: 44px; }

/* Inner Page Hero */
.page-hero {
  padding: 1.75rem 0 2.15rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(-24deg, transparent 0%, transparent 56%, rgba(68, 99, 151, 0.12) 56%, rgba(68, 99, 151, 0.12) 66%, transparent 66%),
    linear-gradient(180deg, rgba(12, 40, 106, 0.52), rgba(3, 9, 36, 0));
}
.page-hero-box {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center;
}
@media (min-width: 900px) {
  .page-hero-box { grid-template-columns: 1.45fr 0.75fr; }
}
.quick-facts-card {
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid rgba(220, 187, 106, 0.35);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}
.quick-facts-card h2 {
  font-size: 0.95rem; margin: 0 0 0.8rem; color: var(--accent2-bright);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.quick-facts-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem;
}
.quick-facts-list li {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid rgba(68, 99, 151, 0.45);
  font-size: 0.9rem; margin: 0;
}
.quick-facts-list li:last-child { border-bottom: none; padding-bottom: 0; }
.quick-facts-list span { color: var(--text-dim); }
.quick-facts-list strong { color: var(--text); text-align: right; }

/* Main Sections & Cards */
.section { padding: 2.35rem 0; }
.section-alt {
  background: rgba(10, 27, 74, 0.36);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.answer-capsule {
  background: linear-gradient(135deg, rgba(18, 40, 99, 0.95) 0%, rgba(10, 27, 74, 0.95) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.05rem 1.25rem;
  margin: 0.8rem 0 1.4rem;
  color: var(--text);
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(2, 6, 26, 0.28);
}
.answer-capsule strong { color: var(--accent2-bright); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 1.25rem 0;
}
@media (min-width: 680px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .info-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0; font-size: 1.12rem; color: var(--text); }
.card p:last-child { margin-bottom: 0; }

/* 2x Retina 440x528 Unclipped Portrait Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.35rem 0;
}
@media (min-width: 720px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .game-grid { grid-template-columns: repeat(6, 1fr); } }
.game-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .game-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.game-card {
  background: linear-gradient(180deg, var(--surface) 0%, #07143A 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 22px rgba(2, 6, 26, 0.35);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent2);
  box-shadow: 0 14px 30px rgba(2, 6, 26, 0.55);
}
.game-thumb-wrap {
  aspect-ratio: 5 / 6;
  width: 100%;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.game-thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.32s ease;
}
.game-card:hover .game-thumb-wrap img { transform: scale(1.03); }
.game-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(3, 9, 36, 0.9);
  color: var(--accent2-bright);
  border: 1px solid rgba(220, 187, 106, 0.55);
  font-size: 0.72rem; font-weight: 700;
  padding: 0.16rem 0.54rem; border-radius: var(--radius-pill);
}
.game-card-body {
  padding: 0.85rem;
  display: flex; flex-direction: column; flex: 1; gap: 0.35rem;
}
.game-card-title {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0;
}
.game-card-meta { font-size: 0.8rem; color: var(--text-dim); margin: 0; }
.game-card-link {
  margin-top: auto; padding-top: 0.45rem;
  font-size: 0.84rem; font-weight: 700; color: var(--accent2-bright);
}

/* Interactive PHP Odds & Parlay Calculator Widget */
.calc-shell {
  background:
    linear-gradient(-24deg, transparent 0%, transparent 62%, rgba(68, 99, 151, 0.14) 62%, rgba(68, 99, 151, 0.14) 70%, transparent 70%),
    linear-gradient(180deg, var(--surface-2) 0%, #07143A 100%);
  border: 1px solid rgba(220, 187, 106, 0.48);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
  margin: 1.5rem 0;
}
.calc-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(68, 99, 151, 0.55); padding-bottom: 0.95rem;
}
.calc-header h2, .calc-header h3 { margin: 0; font-size: 1.38rem; }
.calc-badge {
  background: var(--accent2-soft); color: var(--accent2-bright);
  border: 1px solid rgba(220, 187, 106, 0.55);
  padding: 0.28rem 0.75rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 700;
}
.calc-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.3rem;
}
@media (min-width: 900px) {
  .calc-grid { grid-template-columns: 1.35fr 0.85fr; align-items: start; }
}
.calc-controls { display: grid; gap: 1rem; }
.calc-row {
  display: grid; grid-template-columns: 1fr; gap: 0.8rem;
}
@media (min-width: 600px) {
  .calc-row.two-col { grid-template-columns: 1fr 1fr; }
}
.calc-field label {
  display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); margin-bottom: 0.38rem;
}
.calc-input, .calc-select {
  width: 100%; min-height: 48px;
  padding: 0.62rem 0.88rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.calc-input:focus, .calc-select:focus {
  border-color: var(--accent2-bright);
}
.chip-row {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem;
}
.stake-chip, .preset-chip {
  min-height: 40px; padding: 0.35rem 0.8rem;
  background: var(--bg); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.16s ease;
}
.stake-chip:hover, .preset-chip:hover,
.stake-chip.is-active, .preset-chip.is-active {
  border-color: var(--accent2-bright);
  background: var(--accent2-soft);
  color: var(--accent2-bright);
}
.legs-list { display: grid; gap: 0.65rem; }
.leg-item {
  display: grid; grid-template-columns: 1.35fr 0.65fr auto; gap: 0.55rem; align-items: center;
  background: rgba(3, 9, 36, 0.72); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.6rem;
}
.leg-remove {
  min-width: 44px; min-height: 44px;
  background: rgba(248, 113, 113, 0.16); color: #FCA5A5;
  border: 1px solid rgba(248, 113, 113, 0.4); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 700;
}
.leg-remove:disabled { opacity: 0.38; cursor: not-allowed; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.calc-btn {
  min-height: 46px; padding: 0.55rem 1.05rem;
  background: var(--bg); color: var(--accent2-bright);
  border: 1px solid rgba(220, 187, 106, 0.55); border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; cursor: pointer;
}
.calc-btn:hover { background: var(--accent2-soft); border-color: var(--accent2-bright); }

.calc-output {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent2);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: grid; gap: 0.8rem;
}
.calc-metric {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem;
  padding-bottom: 0.65rem; border-bottom: 1px solid rgba(37, 64, 125, 0.75);
}
.calc-metric:last-of-type { border-bottom: none; padding-bottom: 0; }
.calc-metric span { font-size: 0.9rem; color: var(--text-dim); }
.calc-metric strong {
  font-family: var(--font-head); font-size: 1.15rem; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.calc-metric.highlight strong { font-size: 1.6rem; color: var(--accent2-bright); }
.calc-metric.rebate strong { color: var(--success); }
.calc-note { font-size: 0.82rem; color: var(--text-dim); margin: 0.25rem 0 0; }

/* Tables with Sticky Mobile Horizontal Scroll */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin: 1.3rem 0;
  box-shadow: 0 8px 22px rgba(2, 6, 26, 0.3);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  font-size: 0.94rem;
}
th, td {
  padding: 0.84rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(37, 64, 125, 0.75);
  vertical-align: top;
}
thead th {
  background: #06143C;
  color: var(--accent2-bright);
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid rgba(220, 187, 106, 0.45);
}
tbody tr:nth-child(even) { background: rgba(3, 9, 36, 0.32); }
tbody tr:hover { background: rgba(68, 99, 151, 0.16); }
tbody tr:last-child td { border-bottom: none; }
td:first-child, th:first-child { font-weight: 600; color: var(--text); }

/* FAQ Accordions */
.faq-list { display: grid; gap: 0.75rem; margin: 1.25rem 0; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.faq-item[open] { border-color: rgba(220, 187, 106, 0.55); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.02rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 54px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.35rem; font-weight: 700; color: var(--accent2); flex-shrink: 0;
}
.faq-item[open] summary::after { content: "-"; color: var(--accent2-bright); }
.faq-body {
  padding: 0.85rem 1.2rem 1.1rem;
  border-top: 1px solid rgba(68, 99, 151, 0.45);
  background: rgba(3, 9, 36, 0.25);
}
.faq-body p:last-child { margin-bottom: 0; }

/* Hub Directory & Internal Link Mesh */
.silo-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.95rem; margin: 1.3rem 0;
}
@media (min-width: 680px) { .silo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .silo-grid { grid-template-columns: repeat(3, 1fr); } }
.silo-card {
  display: flex; flex-direction: column; gap: 0.38rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.08rem 1.18rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.silo-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent2);
  background: var(--surface-2);
}
.silo-card-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text); }
.silo-card:hover .silo-card-title { color: var(--accent2-bright); }
.silo-card-desc { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* Analyst E-E-A-T Disclosure Box */
.analyst-box {
  background: linear-gradient(135deg, var(--surface-2) 0%, #061338 100%);
  border: 1px solid rgba(220, 187, 106, 0.38);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin: 2rem 0 1rem;
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 720px) {
  .analyst-box { grid-template-columns: 68px 1fr; align-items: start; }
}
.analyst-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #1B377D, #061A5A);
  color: var(--accent2-bright); font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent2);
}
.analyst-meta { font-size: 0.88rem; color: var(--accent2-bright); font-weight: 700; margin-bottom: 0.38rem; }

/* 3-Row Authority Footer */
.site-footer {
  background: var(--bg-deep);
  border-top: 2px solid rgba(220, 187, 106, 0.42);
  padding: 2.85rem 0 2.1rem;
  margin-top: 2.6rem;
}
.footer-brand-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-bottom: 1.75rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-left {
  display: flex; align-items: center; gap: 0.9rem;
}
.footer-brand-left img.official-emblem {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(220, 187, 106, 0.55);
}
.footer-silos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.25rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
@media (min-width: 960px) {
  .footer-silos { grid-template-columns: repeat(5, 1fr); }
}
.footer-col h3 {
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent2-bright); margin: 0 0 0.78rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.44rem; }
.footer-col li { margin: 0; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent2-bright); }

.footer-badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
  padding: 1.45rem 0; border-bottom: 1px solid var(--border);
}
.footer-badges img { height: 36px; width: auto; }

.footer-legal {
  padding-top: 1.45rem;
  display: grid; gap: 0.68rem;
  font-size: 0.87rem; color: var(--text-dim);
}
.footer-legal-links {
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.footer-legal-links a { color: var(--text-muted); font-weight: 600; }
.footer-legal-links a:hover { color: var(--accent2-bright); }

/* Sticky Mobile Bottom Bar */
.sticky-mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(3, 9, 36, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(220, 187, 106, 0.42);
  padding: 0.58rem 0.9rem calc(0.58rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 0.65rem;
}
.sticky-mobile-bar a { flex: 1; min-height: 48px; font-size: 0.94rem; padding: 0.55rem 0.9rem; }
@media (min-width: 900px) {
  .sticky-mobile-bar { display: none; }
}

/* Accessible 21+ Dialog */
dialog.age-dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(220, 187, 106, 0.55);
  border-radius: var(--radius-lg);
  padding: 1.55rem;
  max-width: 450px;
  width: calc(100% - 2rem);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}
dialog.age-dialog::backdrop { background: rgba(2, 6, 26, 0.82); backdrop-filter: blur(5px); }
.age-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.15rem; }
.age-dialog-actions button, .age-dialog-actions a { flex: 1; }
