/* PlayTime1.ph - Official PlayTime Sapphire, Sky-Blue, Gold & Crimson Design System */
:root {
  --bg: #F2F7FF;
  --surface: #FFFFFF;
  --surface-2: #EBF3FE;
  --surface-3: #DCEBFF;

  --navy-950: #030A24;
  --navy-900: #061547;
  --navy-800: #0C256F;
  --brand-blue: #003088;
  --brand-blue-hover: #002366;
  --sky-ice: #CFEAFF;

  --gold: #F8D818;
  --gold-hover: #FFE44D;
  --gold-ink: #1F1200;
  --bronze: #783808;
  --gold-soft: #FEF9C3;

  --crimson: #DC2626;
  --crimson-hover: #B91C1C;
  --crimson-ink: #FFFFFF;

  --text: #071940;
  --text-soft: #1E325C;
  --muted: #4B608A;

  --hero-text: #FFFFFF;
  --hero-soft: #DCEBFF;
  --hero-muted: #A9CAF9;

  --border: #D6E5FA;
  --border-strong: #9EC2F5;
  --shadow: 0 20px 44px rgba(3, 14, 52, 0.24);
  --card-shadow: 0 4px 16px rgba(0, 48, 136, 0.06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max-w: 1220px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: radial-gradient(circle at 12% 0%, rgba(207, 234, 255, 0.72), transparent 40%),
              radial-gradient(circle at 90% 8%, rgba(248, 216, 24, 0.14), transparent 34%),
              var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}

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

a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--crimson);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.24;
  margin-top: 0;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.32rem, 2.3vw, 1.85rem);
  font-weight: 700;
  margin: 2.2rem 0 0.85rem;
}

h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  font-weight: 700;
  margin: 1.5rem 0 0.55rem;
}

p {
  margin: 0 0 1.05rem;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45rem;
}

strong {
  color: var(--text);
  font-weight: 600;
}

code {
  background: var(--surface-2);
  color: var(--brand-blue);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  padding: 10px 16px;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

/* Compliance Top Ribbon */
.compliance-bar {
  background: var(--navy-950);
  border-bottom: 1px solid rgba(207, 234, 255, 0.16);
  font-size: 0.82rem;
  color: var(--hero-soft);
  padding: 8px 0;
}

.compliance-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  border: 1px solid var(--bronze);
  color: var(--gold-ink);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 2px 10px;
  border-radius: 999px;
  text-decoration: none;
  margin-right: 4px;
}

.age-pill:hover {
  background: var(--gold-hover);
  color: var(--gold-ink);
}

/* Frosted White Official Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 48, 136, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-wordmark {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.main-nav a:hover {
  background: var(--surface-2);
  color: var(--brand-blue);
}

.main-nav a[aria-current="page"] {
  background: var(--surface-3);
  color: var(--brand-blue);
  box-shadow: inset 0 -2px 0 var(--crimson);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* High-Conversion App Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-crimson {
  background: var(--crimson);
  color: var(--crimson-ink);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-crimson:hover {
  background: var(--crimson-hover);
  color: var(--crimson-ink);
}

.btn-primary {
  background: linear-gradient(180deg, #FFE44D 0%, #F5C400 100%);
  color: var(--gold-ink);
  border-color: rgba(120, 56, 8, 0.35);
  box-shadow: 0 6px 18px rgba(248, 216, 24, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #FFF078 0%, #F8D818 100%);
  color: var(--gold-ink);
}

.btn-gold {
  background: var(--sky-ice);
  color: var(--brand-blue);
  border-color: rgba(0, 48, 136, 0.25);
}

.btn-gold:hover {
  background: #FFFFFF;
  color: var(--brand-blue);
}

.btn-outline {
  background: var(--surface);
  color: var(--brand-blue);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface-2);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--brand-blue);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0 12px;
  box-shadow: 0 2px 8px rgba(0, 48, 136, 0.08);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2.2px;
  width: 100%;
  border-radius: 99px;
  background: var(--crimson);
}

.mobile-drawer {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 20px 20px;
  box-shadow: 0 12px 26px rgba(3, 10, 36, 0.12);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.mobile-drawer-links a:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

@media (max-width: 1060px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 10px;
    min-height: 68px;
  }
  .brand-link {
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand-wordmark {
    height: 34px;
    max-width: 100%;
  }
  .header-actions .btn {
    display: none;
  }
  .mobile-drawer-links {
    grid-template-columns: 1fr;
  }
}

/* Main Content Shell */
.site-main {
  padding: 26px 0 56px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--crimson);
  text-decoration: underline;
}

/* Midnight Sapphire Stage Hero + Interactive 3-Slide Carousel */
.hero-box {
  background: radial-gradient(circle at 82% 18%, rgba(248, 216, 24, 0.16), transparent 44%),
              radial-gradient(circle at 12% 90%, rgba(207, 234, 255, 0.14), transparent 42%),
              linear-gradient(135deg, #030A24 0%, #06174B 56%, #0D2978 100%);
  border: 1px solid rgba(248, 216, 24, 0.36);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  color: var(--hero-text);
}

.hero-box h1,
.hero-box strong {
  color: var(--hero-text);
}

.hero-box p {
  color: var(--hero-soft);
}

.hero-box a:not(.btn):not(.game-card-title) {
  color: var(--gold);
}

.hero-box .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(207, 234, 255, 0.45);
}

.hero-box .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: var(--gold);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-grid > *,
.slide-pair > *,
.cards-grid-3 > *,
.cards-grid-2 > *,
.games-grid > *,
.related-links > *,
.footer-row-2 > *,
.site-main > .container > section {
  min-width: 0;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-box {
    padding: 20px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(248, 216, 24, 0.14);
  border: 1px solid rgba(248, 216, 24, 0.42);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--hero-soft);
  margin-bottom: 16px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

@media (max-width: 600px) {
  .hero-facts {
    grid-template-columns: 1fr;
  }
}

.fact-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(207, 234, 255, 0.24);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}

.fact-label {
  display: block;
  font-size: 0.73rem;
  color: var(--sky-ice);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.fact-value {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: #FFFFFF;
  margin-top: 2px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Hero Carousel Component */
.carousel-card {
  background: rgba(3, 10, 36, 0.65);
  border: 1px solid rgba(207, 234, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
}

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.carousel-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(207, 234, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 700;
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}

.carousel-slides {
  position: relative;
}

.carousel-slide {
  display: none;
}

.carousel-slide.is-active {
  display: block;
  animation: carouselSlideIn 0.36s ease;
}

@keyframes carouselSlideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide.is-active {
    animation: none;
  }
}

.slide-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 28px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(207, 234, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

/* Game Portrait Cards (440x528 -> 5:6) */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}

@media (max-width: 980px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.game-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 48, 136, 0.12);
}

.hero-box .game-card {
  background: rgba(12, 34, 96, 0.9);
  border: 1px solid rgba(207, 234, 255, 0.25);
  box-shadow: none;
}

.hero-box .game-card:hover {
  border-color: var(--gold);
}

.game-thumb-wrap {
  aspect-ratio: 5 / 6;
  width: 100%;
  background: #040D2E;
  overflow: hidden;
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.game-card-body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.game-card-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
  text-decoration: none;
}

.game-card-title:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.game-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-box .game-card-title {
  color: #FFFFFF;
}

.hero-box .game-card-title:hover {
  color: var(--gold);
}

.hero-box .game-card-meta {
  color: var(--hero-muted);
}

/* Answer Capsule & Content Panels */
.answer-capsule {
  background: linear-gradient(135deg, #FFFDF0 0%, #EFF6FF 100%);
  border-left: 4px solid #F59E0B;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 14px 0 20px;
  box-shadow: var(--card-shadow);
}

.answer-capsule p {
  color: var(--text);
}

.answer-capsule p:last-child {
  margin-bottom: 0;
}

.card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 18px 0;
  box-shadow: var(--card-shadow);
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 26px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 26px;
}

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

@media (max-width: 620px) {
  .cards-grid-3, .cards-grid-2 {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  box-shadow: 0 12px 26px rgba(0, 48, 136, 0.11);
}

.hub-card h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  color: var(--text);
}

.hub-card p {
  font-size: 0.92rem;
  margin: 0 0 8px;
  color: var(--text-soft);
}

.hub-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--crimson);
}

.hub-card-link:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

/* Tables */
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin: 16px 0 24px;
  box-shadow: var(--card-shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  text-align: left;
  font-size: 0.92rem;
}

caption {
  padding: 10px 15px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-blue);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th, td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--brand-blue);
  color: #FFFFFF;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tbody tr:nth-child(even) td {
  background: #F8FBFF;
}

tbody tr:hover td {
  background: var(--surface-2);
}

tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  table {
    min-width: 460px;
    font-size: 0.86rem;
  }
  th, td {
    padding: 10px 11px;
  }
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 28px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  box-shadow: var(--card-shadow);
  transition: border-color 0.16s ease;
}

.faq-item[open] {
  border-color: var(--brand-blue);
}

.faq-item summary {
  padding: 15px 18px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--surface-2);
}

.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(120, 56, 8, 0.25);
  font-size: 1.15rem;
  color: var(--bronze);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "-";
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #FFFFFF;
}

.faq-body {
  padding: 0 18px 16px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

.faq-body p {
  margin-top: 12px;
  margin-bottom: 0;
}

/* Reviewer & Trust Callout */
.analyst-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 26px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--card-shadow);
}

.analyst-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rg-notice {
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  border-left: 4px solid var(--crimson);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text);
  margin: 18px 0 8px;
}

.rg-notice strong {
  color: var(--crimson-hover);
}

/* Related Silo Links Strip */
.related-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  box-shadow: var(--card-shadow);
}

.related-panel h2 {
  margin-top: 0;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .related-links {
    grid-template-columns: 1fr;
  }
}

.related-links a {
  display: block;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.related-links a:hover {
  background: var(--surface-3);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* 3-Row Official Sapphire Authority Footer */
.site-footer {
  background: var(--navy-950);
  border-top: 3px solid var(--gold);
  padding: 40px 0 30px;
  margin-top: 32px;
  color: var(--hero-soft);
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}

.footer-row-1 {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(207, 234, 255, 0.16);
  margin-bottom: 24px;
}

.footer-row-1 strong {
  color: var(--gold);
}

.footer-row-1 p {
  font-size: 0.9rem;
  color: var(--hero-soft);
  max-width: 92ch;
}

.footer-row-2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(207, 234, 255, 0.16);
  margin-bottom: 20px;
}

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

@media (max-width: 480px) {
  .footer-row-2 {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col-list li {
  margin-bottom: 7px;
}

.footer-col-list a {
  font-size: 0.86rem;
  color: var(--hero-muted);
  text-decoration: none;
}

.footer-col-list a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-row-3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(207, 234, 255, 0.24);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
}

a.trust-badge {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(248, 216, 24, 0.5);
  color: var(--gold);
}

a.trust-badge:hover {
  background: var(--gold);
  color: var(--gold-ink);
}

.copyright-line {
  font-size: 0.84rem;
  color: var(--hero-muted);
  margin: 0;
}
