/* StreamGuide France: dark editorial and conversion system. */
:root {
  color-scheme: dark;
  --sg-bg: #0b1016;
  --sg-surface: #121a23;
  --sg-card: #18232f;
  --sg-ink: #f5f7fa;
  --sg-muted: #a8b4c1;
  --sg-accent: #23c995;
  --sg-accent-strong: #159b70;
  --sg-line: #2a3744;
  --sg-radius-control: 10px;
  --sg-radius-card: 18px;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  background: var(--sg-bg) !important;
  color: var(--sg-ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
body.page #primary { float: none; width: 100%; }
body.page #right-sidebar { display: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 16, 22, .96) !important;
  border-color: var(--sg-line) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}
.topline, .site-footer, .footer {
  background: #080c11 !important;
  color: var(--sg-muted) !important;
  border-color: var(--sg-line) !important;
}
.site-header nav, .site-header nav a, .brand, .brand em { color: var(--sg-ink) !important; }
.brand em { color: var(--sg-accent) !important; }
.brand-mark { background: var(--sg-accent) !important; color: #062118 !important; }
.mobile-menu, .sg-theme-toggle {
  min-width: 48px; min-height: 48px; padding: 10px 14px;
  color: var(--sg-ink); background: var(--sg-card); border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-control); cursor: pointer;
}
.hero, .section, .section.soft, .pricing-section, .trust-strip, .page-hero {
  color: var(--sg-ink) !important;
  background: var(--sg-bg) !important;
}
.hero { background: radial-gradient(ellipse at 83% 7%, rgba(35,201,149,.14), transparent 35%), var(--sg-bg) !important; }
.hero h1, .section h2, .section h3, .entry-content h1, .entry-content h2, .entry-content h3 { color: var(--sg-ink) !important; }
.hero-copy, .section p, .entry-content p, .entry-content li, .section-head p { color: var(--sg-muted); }
.hero .eyebrow, .section .eyebrow { color: var(--sg-accent) !important; }
.category, .plan-card, .sg-card, .guide-card, .article-card, .faq-item, .comparison-card,
.hero-offer-callout, .trust-item, .sg-search__dropdown, .filter-panel, .netflix-card {
  color: var(--sg-ink) !important;
  background: var(--sg-card) !important;
  border: 1px solid var(--sg-line) !important;
  border-radius: var(--sg-radius-card);
}
.category p, .plan-per, .plan-features li, .sg-card p, .guide-card p { color: var(--sg-muted) !important; }
a { color: var(--sg-accent); }
a:hover { color: #7ae7c2; }
.btn, .nav-cta, .plan-button, .sg-button, button[type="submit"], .wp-element-button {
  min-height: 48px;
  color: #052116 !important;
  background: var(--sg-accent) !important;
  border: 1px solid transparent !important;
  border-radius: var(--sg-radius-control) !important;
  font-weight: 750;
}
.btn:hover, .nav-cta:hover, .plan-button:hover, .sg-button:hover, button[type="submit"]:hover {
  color: #04170f !important; background: #70e7bf !important;
}
.text-link, .footer a, .legal-content a { color: var(--sg-accent) !important; }
input, select, textarea {
  min-height: 48px; color: var(--sg-ink) !important; background: #0e151d !important;
  border: 1px solid var(--sg-line) !important; border-radius: var(--sg-radius-control) !important;
}
textarea { min-height: 140px; }
::placeholder { color: #8794a2 !important; opacity: 1; }
:focus-visible { outline: 3px solid #70e7bf !important; outline-offset: 3px !important; }
.plan-price { align-items: baseline !important; color: var(--sg-accent) !important; }
.plan-price .currency { margin: 0 0 0 2px !important; font-size: 20px !important; }
.plan-features li:before { color: var(--sg-accent) !important; }
.pricing-note, .legal-notice, .sg-disclosure { color: var(--sg-muted) !important; }
.hero-offer-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: fit-content; max-width: 100%; margin-top: 20px; padding: 14px 16px; }
.hero-offer-callout strong { color: var(--sg-accent); font-size: 23px; line-height: 1; }
.hero-offer-callout small, .hero-offer-label { color: var(--sg-muted); font-size: 13px; }

/* Accessible desktop mega-menu, opened by click and keyboard. */
.sg-nav-group { position: relative; }
.sg-nav-trigger { min-height: 48px; color: var(--sg-ink); background: transparent; border: 0; cursor: pointer; font: inherit; }
.sg-mega-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 1001;
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 6px;
  width: min(450px, 92vw); padding: 14px; background: var(--sg-surface);
  border: 1px solid var(--sg-line); border-radius: 14px; box-shadow: 0 18px 50px #0009;
}
.sg-mega-menu[hidden] { display: none; }
.sg-mega-menu a { min-height: 46px; display: flex; align-items: center; padding: 8px 11px; border-radius: 8px; color: var(--sg-ink) !important; }
.sg-mega-menu a:hover, .sg-mega-menu a:focus-visible { background: var(--sg-card); }

.sg-mobile-cta { display: none; }
.sg-availability { margin: 28px auto; padding: 22px; max-width: 900px; background: var(--sg-surface); border: 1px solid var(--sg-line); border-radius: var(--sg-radius-card); }
.sg-availability__form { display: flex; gap: 10px; }
.sg-availability__result { display: grid; grid-template-columns: 100px 1fr; gap: 18px; margin-top: 18px; }
.sg-availability__poster { width: 100px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; background: var(--sg-card); }
.sg-provider { display: inline-flex; padding: 4px 9px; margin: 4px; border: 1px solid var(--sg-line); border-radius: 999px; color: var(--sg-ink); font-size: 13px; }
.sg-article-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 24px; color: var(--sg-muted); }
.sg-toc { padding: 18px 22px; margin: 24px 0; background: var(--sg-surface); border: 1px solid var(--sg-line); border-radius: 14px; }
.sg-toc a { display: block; padding: 4px 0; }
.sg-article-cta { margin: 28px 0; padding: 22px; background: #10271f; border: 1px solid #1f5d48; border-radius: 16px; }
.sg-author-box, .sg-related { margin: 30px 0; padding: 20px; background: var(--sg-surface); border: 1px solid var(--sg-line); border-radius: 16px; }
.sg-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sg-cookie-banner { background: var(--sg-surface); color: var(--sg-ink); border: 1px solid var(--sg-line); }
.sg-cookie-banner button { min-height: 48px; }
[data-theme="light"] { color-scheme: light; --sg-bg:#f7f9fb; --sg-surface:#fff; --sg-card:#fff; --sg-ink:#17212b; --sg-muted:#4c5a68; --sg-line:#d6e0e7; }
[data-theme="light"] body, [data-theme="light"] .site-header { background: var(--sg-bg) !important; color: var(--sg-ink) !important; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header .head-inner { min-height: 64px; height: auto; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 20px 20px; background: var(--sg-surface); border-bottom: 1px solid var(--sg-line); }
  .site-header nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header nav > a, .sg-nav-trigger { width: 100%; min-height: 48px; text-align: left; }
  .sg-nav-group { width: 100%; }
  .sg-mega-menu { position: static; width: 100%; grid-template-columns: 1fr 1fr; margin: 4px 0 12px; box-shadow: none; }
  .sg-mobile-cta { position: fixed; z-index: 990; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); background: rgba(9,14,20,.97); border-top: 1px solid var(--sg-line); }
  .sg-mobile-cta span { color: var(--sg-ink); font-size: 13px; font-weight: 700; }
  .sg-mobile-cta a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; background: var(--sg-accent); color: #052116; border-radius: 10px; font-weight: 800; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .sg-availability__form { flex-direction: column; }
  .sg-related-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared layouts for newly deployed WordPress landing pages. */
.sg-page { width: min(1120px, calc(100% - 40px)); margin: 38px auto 72px; color: var(--sg-ink); }
.sg-page h1, .sg-page h2, .sg-page h3 { color: var(--sg-ink); line-height: 1.2; }
.sg-page h1 { max-width: 880px; margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.5rem); }
.sg-page h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); }
.sg-page p, .sg-page li { color: var(--sg-muted); }
.sg-page-hero { padding: clamp(24px, 5vw, 56px); margin-bottom: 24px; background: radial-gradient(ellipse at 80% 10%, rgba(35,201,149,.16), transparent 46%), var(--sg-surface); border: 1px solid var(--sg-line); border-radius: 22px; }
.sg-plan-grid, .sg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.sg-plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sg-page .sg-card { padding: 22px; }
.sg-price { color: var(--sg-accent) !important; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
.sg-page table { width: 100%; border-collapse: collapse; }
.sg-page th, .sg-page td { padding: 12px; border-bottom: 1px solid var(--sg-line); text-align: left; color: var(--sg-muted); }
.sg-page th { color: var(--sg-ink); }
.sg-table-wrap { overflow-x: auto; }
.sg-page form label { display: block; margin: 14px 0 6px; color: var(--sg-ink); }
.sg-page form input[type="checkbox"] { min-height: auto; width: 20px; height: 20px; vertical-align: middle; }
.sg-page .sg-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; text-decoration: none; cursor: pointer; }
.sg-page .sg-disclosure { margin: 24px 0; }
@media (max-width: 900px) { .sg-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .sg-page { width: min(100% - 28px, 1120px); margin-top: 20px; }
  .sg-plan-grid, .sg-grid { grid-template-columns: 1fr; }
  .sg-page-hero { padding: 24px 20px; }
  .sg-page th, .sg-page td { padding: 10px 8px; }
}

/* Homepage visual refresh inspired by cinematic streaming landing pages.
   Scoped to the homepage; retains StreamGuide colors, content, and existing assets. */
.home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(54px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(ellipse at 78% 34%, rgba(35, 201, 149, .16), transparent 34%),
    radial-gradient(ellipse at 13% 96%, rgba(35, 201, 149, .07), transparent 30%),
    linear-gradient(120deg, #0b1016 15%, #0d151b 100%) !important;
  border-bottom: 1px solid rgba(168, 180, 193, .12);
}
.home .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  top: -64%;
  right: -14%;
  border: 1px solid rgba(35, 201, 149, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(35, 201, 149, .025), 0 0 0 72px rgba(35, 201, 149, .018);
  pointer-events: none;
}
.home .hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 68px);
  position: relative;
}
.home .hero-copy-wrap { max-width: 590px; }
.home .hero h1 {
  max-width: 620px;
  margin: 19px 0 20px;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.home .hero h1 span {
  color: var(--sg-accent) !important;
  text-shadow: 0 0 36px rgba(35, 201, 149, .16);
}
.home .hero .eyebrow {
  display: inline-flex;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(35, 201, 149, .24);
  border-radius: 999px;
  background: rgba(35, 201, 149, .07);
  letter-spacing: .11em;
}
.home .hero .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; }
.home .hero-copy { max-width: 540px; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.7; }
.home .hero-actions { gap: 13px 20px; }
.home .hero-actions .btn { padding: 14px 19px; box-shadow: 0 10px 30px rgba(35, 201, 149, .17); }
.home .hero-actions .text-link { color: var(--sg-ink) !important; text-underline-offset: 5px; }
.home .hero-offer-callout {
  border-color: rgba(35, 201, 149, .26) !important;
  background: linear-gradient(115deg, rgba(24, 35, 47, .96), rgba(18, 34, 34, .96)) !important;
  box-shadow: 0 15px 42px rgba(0, 0, 0, .2);
}
.home .micro-trust { gap: 12px 20px; }
.home .hero-visual {
  min-height: clamp(380px, 39vw, 500px);
  border: 1px solid rgba(202, 230, 217, .2);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .42), 0 0 0 7px rgba(255, 255, 255, .018);
  transform: translateZ(0);
}
.home .hero-photo { object-position: 70% center; }
.home .hero-photo-badge { border-color: rgba(255,255,255,.23); }
.home .explore-panel {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(11, 20, 24, .83);
  box-shadow: 0 16px 42px rgba(0,0,0,.28);
}
.home .trust-strip { background: #0b1016 !important; border-bottom-color: var(--sg-line); }
.home .trust-grid { gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.home .trust-item {
  justify-content: flex-start;
  min-height: 62px;
  padding: 10px 15px;
  background: rgba(24, 35, 47, .68);
  border: 1px solid rgba(168, 180, 193, .12);
  border-radius: 13px;
  color: var(--sg-ink);
}
.home .trust-icon { flex: 0 0 35px; background: rgba(35, 201, 149, .12); }
.home .section { padding-block: clamp(54px, 6vw, 78px); }
.home .section.soft { background: #0d141b !important; }
.home .section-head h2, .home .pricing-heading h2 {
  letter-spacing: -.04em;
  text-wrap: balance;
}
.home .section-head { margin-bottom: 30px; }
.home .category, .home .article-card, .home .method-item, .home .compare {
  border-color: rgba(168, 180, 193, .15) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}
.home .category, .home .article-card, .home .method-item {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home .category:hover, .home .article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 201, 149, .52) !important;
  box-shadow: 0 20px 42px rgba(0,0,0,.28);
}
.home .cat-icon { background: rgba(35, 201, 149, .12); }
.home .offer-band {
  border: 1px solid rgba(35, 201, 149, .3);
  box-shadow: 0 26px 65px rgba(0,0,0,.3);
}
.home .pricing-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(35, 201, 149, .09), transparent 48%),
    #0b1016 !important;
}
.home .pricing-heading { max-width: 760px; margin-bottom: 30px; }
.home .pricing-grid { gap: 15px; align-items: stretch; }
.home .plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(19px, 2vw, 25px);
  background: linear-gradient(155deg, #192531 0%, #131c26 100%) !important;
  border-color: rgba(168, 180, 193, .18) !important;
  box-shadow: 0 17px 44px rgba(0,0,0,.2);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home .plan-card:hover {
  transform: translateY(-5px);
  border-color: rgba(35, 201, 149, .6) !important;
  box-shadow: 0 24px 50px rgba(0,0,0,.32);
}
.home .plan-card:first-child {
  border-color: rgba(35, 201, 149, .58) !important;
  background: linear-gradient(155deg, rgba(25, 64, 54, .72), #131c26 74%) !important;
  box-shadow: 0 16px 45px rgba(17, 95, 69, .16);
}
.home .plan-price { margin: 23px 0 2px; font-size: clamp(38px, 3.6vw, 48px); letter-spacing: -.055em; }
.home .plan-per { min-height: 25px; }
.home .plan-features { flex: 1; padding-top: 17px; }
.home .plan-button { margin-top: 15px; justify-content: center; }
.home .compare { background: #131c26 !important; }
.home .compare table { color: var(--sg-muted); }
.home .compare th {
  background: #1a2733 !important;
  color: var(--sg-ink) !important;
}
.home .compare td { border-color: rgba(168, 180, 193, .14); }
.home .method-item { background: #151f29 !important; }
.home .faq { max-width: 860px; }
.home .faq details {
  margin: 10px 0;
  padding: 0;
  overflow: clip;
  background: #151f29;
  border: 1px solid rgba(168, 180, 193, .14);
  border-radius: 13px;
}
.home .faq summary {
  min-height: 58px;
  align-items: center;
  padding: 15px 19px;
  list-style: none;
}
.home .faq details[open] { border-color: rgba(35, 201, 149, .4); }
.home .faq details p { margin: 0; padding: 0 50px 19px 19px; }
.home .faq summary::-webkit-details-marker { display: none; }
.home .faq summary:focus-visible { outline-offset: -4px !important; }

@media (max-width: 900px) {
  .home .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
  .home .hero-visual { min-height: 400px; }
  .home .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .home .hero { padding: 42px 0 36px; }
  .home .hero::before { width: 110vw; top: -28%; right: -60%; }
  .home .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .home .hero-copy-wrap { max-width: none; }
  .home .hero h1 { max-width: 15ch; font-size: clamp(40px, 11vw, 52px); }
  .home .hero-copy { font-size: 16px; }
  .home .hero-visual { min-height: 410px; border-radius: 19px; }
  .home .hero-photo { object-position: 68% center; }
  .home .explore-panel { left: 12px; right: 12px; bottom: 12px; padding: 14px; }
  .home .device-choices { gap: 7px; }
  .home .device-choice { min-height: 44px; }
  .home .trust-grid { grid-template-columns: 1fr; }
  .home .trust-item { min-height: 54px; }
  .home .section-head { align-items: flex-start; flex-direction: column; }
  .home .section-head h2, .home .pricing-heading h2 { font-size: clamp(26px, 7vw, 34px); }
  .home .pricing-grid { grid-template-columns: 1fr; }
  .home .plan-card:first-child { box-shadow: 0 16px 44px rgba(17,95,69,.2); }
  .home .faq summary { padding-inline: 15px; }
  .home .faq details p { padding: 0 17px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .category, .home .article-card, .home .plan-card { transition: none; }
}

/* Keep the primary action closer to the first viewport on desktop. */
@media (min-width: 681px) {
  .home .hero { padding-top: clamp(48px, 5vw, 66px); padding-bottom: clamp(42px, 4.5vw, 60px); }
  .home .hero h1 { font-size: clamp(40px, 4.6vw, 58px); }
}

/* Readable comparison table on the dark homepage */
.home .compare {
  background: #121a23 !important;
  border-color: #344454 !important;
}
.home .compare th {
  background: #1d2a37 !important;
  color: #f5f7fa !important;
  border-color: #344454 !important;
}
.home .compare td {
  color: #cbd5df !important;
  border-color: #344454 !important;
}
.home .compare td strong {
  color: #f5f7fa !important;
  font-weight: 750;
}
.home .compare tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, .025);
}
.home .compare .pill {
  color: #0b4634 !important;
  background: #c9f3df !important;
  font-weight: 750;
}
@media (max-width: 680px) {
  .home .compare { overflow-x: auto; }
  .home .compare table { min-width: 620px; }
}

/* Site-wide text contrast for legacy legal, blog, and film page templates */
body .legal-main {
  color: var(--sg-ink) !important;
}
body .legal-main h1,
body .legal-main h2,
body .legal-main h3,
body .legal-main h4 {
  color: var(--sg-ink) !important;
}
body .legal-main p,
body .legal-main li,
body .legal-main dd,
body .legal-main figcaption,
body .legal-main caption {
  color: #cbd5df !important;
}
body .legal-main .legal-kicker {
  color: var(--sg-accent) !important;
}
body .legal-main .legal-intro {
  color: #d7e0e7 !important;
}
body .legal-main strong,
body .legal-main b {
  color: #f5f7fa !important;
}
body .legal-main a {
  color: #63e4bb !important;
  text-decoration-color: currentColor;
}
body .legal-main a:hover {
  color: #a1f1d5 !important;
}
body .legal-main .legal-callout {
  color: #dce8e2 !important;
  background: #152b25 !important;
  border-left-color: var(--sg-accent) !important;
}
body .legal-main .legal-form,
body .legal-main .sg-post-list > article {
  color: var(--sg-ink) !important;
  background: #18232f !important;
  border: 1px solid #344454 !important;
  border-radius: 16px;
}
body .legal-main .legal-form label {
  color: #f5f7fa !important;
}
body .legal-main .legal-form input,
body .legal-main .legal-form textarea {
  color: #f5f7fa !important;
  background: #0e151d !important;
  border-color: #435364 !important;
}
body .legal-main .legal-form small,
body .legal-main .legal-form small a {
  color: #cbd5df !important;
}
body .legal-main .sg-post-list > article {
  padding: 22px;
  margin: 0 0 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
body .legal-main .sg-post-list h2 a {
  color: #f5f7fa !important;
}
body .legal-main .offer-table {
  background: #121a23 !important;
  border-color: #344454 !important;
}
body .legal-main .offer-table th,
body .legal-main .offer-table td {
  color: #cbd5df !important;
  background: #18232f !important;
  border-color: #344454 !important;
}
body .legal-main .offer-table th {
  color: #f5f7fa !important;
  background: #1d2a37 !important;
}
body .legal-main .offer-table caption {
  color: #cbd5df !important;
}
body .legal-main .offer-table a {
  color: #63e4bb !important;
}
body .entry-header .entry-title,
body .entry-header .entry-title a,
body .entry-meta,
body .entry-meta a,
body .posted-on,
body .byline {
  color: var(--sg-ink) !important;
}
body .entry-meta,
body .entry-meta a,
body .posted-on,
body .byline {
  color: var(--sg-muted) !important;
}

/* Bring dark-theme metadata and film related-link cards above AA contrast. */
.home .article-meta { color: #a8b4c1 !important; }
body .movie-page .related-grid > div {
  color: #cbd5df !important;
  background: #18232f !important;
  border: 1px solid #344454 !important;
  border-radius: 14px;
}
body .movie-page .related-grid h3 { color: #f5f7fa !important; }
body .movie-page .related-grid p,
body .movie-page .related-grid li { color: #cbd5df !important; }
body .movie-page .related-grid li { background: transparent !important; }
body .movie-page .related-grid a { color: #63e4bb !important; }

/* Dark foreground on mint action buttons, including higher-specificity legacy links */
body .site-header nav a.nav-cta,
body .site-header .nav-cta {
  color: #052116 !important;
}
body a.sg-button,
body .entry-content a.sg-button,
body .legal-main a.sg-button {
  color: #052116 !important;
}
.home .hero-offer-callout a { color: #8af0cf !important; }
.home .plan-type { color: #354940 !important; }

/* Final homepage contrast adjustments found in the all-route audit */
.home .article-card .arrow { color: #63e4bb !important; }
.home .newsletter a[href^="mailto:"] { color: #105445 !important; }

.home .newsletter p a[href^="mailto:"] { color: #0b4334 !important; }
.home .newsletter a.btn[href^="mailto:"] { color: #052116 !important; }

/* Refined article components: readable contents list and restrained offer callout */
body .entry-content .sg-toc {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  margin: 32px 0;
  padding: 24px 26px;
  color: var(--sg-ink);
  background: #121a23 !important;
  border: 1px solid #2a3744 !important;
  border-radius: 14px;
}
body .entry-content .sg-toc > :first-child {
  display: block;
  margin: 0;
  color: #f5f7fa !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
body .entry-content .sg-toc ul,
body .entry-content .sg-toc ol {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 10px;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body .entry-content .sg-toc li {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body .entry-content .sg-toc li::marker { content: ""; }
body .entry-content .sg-toc a {
  display: flex !important;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 12px !important;
  color: #DCE8E2 !important;
  background: #18232f;
  border: 1px solid #2a3744;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
body .entry-content .sg-toc a:hover,
body .entry-content .sg-toc a:focus-visible {
  color: #f5f7fa !important;
  background: #121a23;
  border-color: #23c995;
}
body .entry-content .sg-article-cta {
  box-sizing: border-box;
  margin: 32px 0;
  padding: 24px 26px;
  color: #f5f7fa;
  background: #121a23 !important;
  border: 1px solid #2a3744 !important;
  border-left: 3px solid #23c995 !important;
  border-radius: 14px;
}
body .entry-content .sg-article-cta h2,
body .entry-content .sg-article-cta h3,
body .entry-content .sg-article-cta strong {
  color: #f5f7fa !important;
}
body .entry-content .sg-article-cta h2,
body .entry-content .sg-article-cta h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
}
body .entry-content .sg-article-cta p {
  max-width: 72ch;
  margin: 0 0 16px;
  color: #A8B4C1 !important;
  line-height: 1.65;
}
body .entry-content .sg-article-cta p:last-child { margin-bottom: 0; }
body .entry-content .sg-article-cta > a,
body .entry-content .sg-article-cta a.sg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  color: #0B1016 !important;
  background: #23c995 !important;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
body .entry-content .sg-article-cta > a:hover,
body .entry-content .sg-article-cta a.sg-button:hover {
  color: #0B1016 !important;
  background: #DCE8E2 !important;
}
@media (max-width: 620px) {
  body .entry-content .sg-toc { margin: 24px 0; padding: 19px 16px; }
  body .entry-content .sg-toc ul,
  body .entry-content .sg-toc ol { grid-template-columns: 1fr !important; gap: 7px; }
  body .entry-content .sg-toc a { min-height: 46px; }
  body .entry-content .sg-article-cta { margin: 24px 0; padding: 19px 17px; }
  body .entry-content .sg-article-cta > a { width: 100%; }
}

/* Mobile audit fixes: keep navigation available through tablet widths */
@media (max-width: 782px) {
  .site-header .mobile-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 8px 12px;
  }
  .site-header .head-inner { gap: 12px; }
  .site-header #main-nav {
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--sg-line);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 32px rgba(0,0,0,.28);
  }
  .site-header #main-nav.open { display: flex !important; }
  .site-header #main-nav > a,
  .site-header #main-nav .sg-nav-trigger,
  .site-header #main-nav .sg-theme-toggle {
    display: flex;
    align-items: center;
    min-width: 48px;
    min-height: 48px;
    box-sizing: border-box;
  }
  .site-header #main-nav .sg-mega-menu {
    position: static;
    width: 100%;
    max-height: none;
    margin: 4px 0 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-shadow: none;
  }
  #sg-cookie-banner { bottom: calc(12px + env(safe-area-inset-bottom)); }
  #sg-cookie-settings {
    min-width: 48px;
    min-height: 48px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 520px) {
  #sg-cookie-banner { padding: 15px 16px; }
  #sg-cookie-banner h2 { margin-bottom: 5px; font-size: 18px; }
  #sg-cookie-banner p { margin-bottom: 11px; font-size: 14px; line-height: 1.45; }
  .sg-cookie-actions { flex-direction: row; gap: 8px; }
  .sg-cookie-button { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 9px 10px; }
}
@media (max-width: 350px) {
  .sg-cookie-actions { flex-direction: column; }
  .sg-cookie-button { flex-basis: 48px; width: 100%; }
}

/* The article summary contains direct anchor children, so lay them out explicitly. */
body .entry-content .sg-toc {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
body .entry-content .sg-toc > strong { grid-column: 1 / -1; margin-bottom: 8px; }
body .entry-content .sg-toc > a { margin: 0; }
@media (max-width: 620px) {
  body .entry-content .sg-toc { grid-template-columns: 1fr; gap: 7px; }
  body .entry-content .sg-toc > strong { margin-bottom: 5px; }
}

/* Improve contrast for home guide links and separate inline newsletter links by shape. */
.home .category { color: #f5f7fa !important; }
.home .category h3 { color: #f5f7fa !important; }
.home .category p { color: #A8B4C1 !important; }
.home .category .arrow,
.home .method-no { color: #DCE8E2 !important; }
.home .newsletter p a[href^="mailto:"] {
  color: #0B1016 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.single-post .entry-content { max-width: 74ch; margin-inline: auto; }
body.single-post .entry-content p a:not(.sg-button),
body.single-post .entry-content li a:not(.sg-button) {
  color: #DCE8E2 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.single-post .entry-content .sg-toc a { text-decoration: none; }

/* Collapse the header before its desktop links become crowded on small tablets. */
@media (min-width: 783px) and (max-width: 1000px) {
  .site-header .mobile-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 8px 12px;
  }
  .site-header #main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    z-index: 1001;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: var(--sg-surface);
    border: 1px solid var(--sg-line);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 32px rgba(0,0,0,.28);
  }
  .site-header #main-nav.open { display: flex; }
  .site-header #main-nav > a,
  .site-header #main-nav .sg-nav-trigger,
  .site-header #main-nav .sg-theme-toggle {
    display: flex;
    align-items: center;
    min-width: 48px;
    min-height: 48px;
    box-sizing: border-box;
  }
  .site-header #main-nav .sg-nav-group { width: 100%; }
  .site-header #main-nav .sg-mega-menu {
    position: static;
    width: 100%;
    margin: 4px 0 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-shadow: none;
  }
  .device-choice { min-height: 48px; }
}
@media (max-width: 782px) {
  .device-choices { gap: 8px; }
  .device-choice { min-height: 48px; }
}
@media (max-width: 650px) {
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Article contents: expanded on desktop, compact native disclosure on phones. */
body .entry-content details.sg-toc {
  display: block !important;
  padding: 24px 26px;
  overflow: hidden;
}
body .entry-content details.sg-toc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 0 12px;
  color: #f5f7fa !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
body .entry-content details.sg-toc > summary::-webkit-details-marker { display: none; }
body .entry-content details.sg-toc > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #dce8e2;
  background: #18232f;
  border: 1px solid #2a3744;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
}
body .entry-content details.sg-toc[open] > summary::after { content: "−"; }
body .entry-content .sg-toc__links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 6px 0 0 !important;
}
body .entry-content details.sg-toc:not([open]) .sg-toc__links { display: none !important; }
body .entry-content .sg-toc__links a {
  display: flex !important;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 12px !important;
  color: #DCE8E2 !important;
  background: #18232f;
  border: 1px solid #2a3744;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}
body .entry-content .sg-toc__links a:hover,
body .entry-content .sg-toc__links a:focus-visible {
  color: #f5f7fa !important;
  background: #121a23;
  border-color: #23c995;
}
@media (max-width: 620px) {
  body .entry-content details.sg-toc { padding: 15px 16px; }
  body .entry-content details.sg-toc > summary {
    min-height: 48px;
    padding: 0;
    font-size: 18px;
  }
  body .entry-content .sg-toc__links { grid-template-columns: 1fr; gap: 7px; }
  body .entry-content .sg-toc__links a { min-height: 46px; }
}
@media (max-width: 782px) {
  /* No mobile bottom bar is rendered, so do not reserve a blank 70px footer gap. */
  body { padding-bottom: 0 !important; }
}
