/* Sunset background and blue panels for the
   M.F. Skye v. Office of Renewable Energy, et al. case page only.
   Linked only from that page so other case pages are unchanged. */
body.case-skye-sunset{
  --skye-panel:rgba(20,26,60,.88); /* #141a3c, sampled from the dark upper sky */
  --skye-panel-2:rgba(26,31,74,.80); /* #1a1f4a, a slightly lighter midnight for nested cards */
  --skye-ink:#fff;
  --skye-muted:rgba(255,255,255,.9);
  --skye-accent:#f3d08a;
  --skye-edge:rgba(255,255,255,.22);
  background-color:#140c28;
  color:var(--skye-ink);
}

/* Full-viewport cover layer + subtle dark overlay.
   position:fixed is the desktop “stays put while you scroll” treatment.
   Do not use background-attachment:fixed (unsupported on iOS). */
body.case-skye-sunset::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background-color:#140c28;
  background-image:
    linear-gradient(180deg,rgba(8,10,28,.42) 0%,rgba(8,10,28,.22) 28%,rgba(8,10,28,.26) 68%,rgba(8,10,28,.46) 100%),
    url("../img/skye-case-sunset.jpg");
  background-image:
    linear-gradient(180deg,rgba(8,10,28,.42) 0%,rgba(8,10,28,.22) 28%,rgba(8,10,28,.26) 68%,rgba(8,10,28,.46) 100%),
    image-set(
      url("../img/skye-case-sunset.webp") type("image/webp"),
      url("../img/skye-case-sunset.jpg") type("image/jpeg")
    );
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

/* Hide the shared dusk-sky star twinkle on this page. */
body.case-skye-sunset::after{
  content:none;
  background:none;
  animation:none;
}

/* iOS fallback: a fixed layer can jump with the URL bar, and
   background-attachment:fixed is not supported. Stretch the image
   with the document instead so it still covers the whole page. */
@supports (-webkit-touch-callout: none){
  html:has(body.case-skye-sunset),
  body.case-skye-sunset{
    min-height:100%;
    position:relative;
  }
  body.case-skye-sunset::before{
    position:absolute;
    inset:0;
    height:100%;
    min-height:100%;
  }
}

/* Let the sunset show through the hero instead of Grand Central. */
body.case-skye-sunset .pro-hero,
body.case-skye-sunset .case-hero{
  background:transparent;
}
body.case-skye-sunset .case-hero h1{
  /* Gradient title uses filter:drop-shadow; a text-shadow would fill in as a solid ghost. */
  text-shadow:none;
}
body.case-skye-sunset .case-hero .sub{
  text-shadow:0 2px 18px rgba(0,0,0,.45);
}

/* Main content column: deep midnight blue from the upper sky, semi-opaque so the sunset
   shows at the rounded edges. */
body.case-skye-sunset .case-main > .wrap{
  background:var(--skye-panel);
  border:1px solid var(--skye-edge);
  color:var(--skye-ink);
  box-shadow:0 18px 50px rgba(8,10,28,.35);
}

body.case-skye-sunset .case-intro h2,
body.case-skye-sunset .case-intro .eyebrow,
body.case-skye-sunset .topic-head h3,
body.case-skye-sunset .audio-group h3,
body.case-skye-sunset .legal-box h3,
body.case-skye-sunset .piece-title,
body.case-skye-sunset .q-sum-title,
body.case-skye-sunset .q-body .q-statute{
  color:var(--skye-accent);
}
body.case-skye-sunset .case-intro p,
body.case-skye-sunset .topic-head p,
body.case-skye-sunset .audio-note,
body.case-skye-sunset .version-note,
body.case-skye-sunset .q-stem,
body.case-skye-sunset .q-sum-stem,
body.case-skye-sunset .piece-cue,
body.case-skye-sunset .piece-body p,
body.case-skye-sunset .piece-ref .piece-text,
body.case-skye-sunset .piece-ref .piece-text p,
body.case-skye-sunset .piece-ref .piece-extra,
body.case-skye-sunset .legal-box p,
body.case-skye-sunset .reveal p,
body.case-skye-sunset .reveal li{
  color:var(--skye-muted);
}
body.case-skye-sunset .legal-box .copyright{
  color:rgba(255,255,255,.8);
  border-top-color:var(--skye-edge);
}

/* Nested cards stay in the same blue family. */
body.case-skye-sunset .case-box,
body.case-skye-sunset .case-panel,
body.case-skye-sunset .legal-box,
body.case-skye-sunset .q-item,
body.case-skye-sunset .piece,
body.case-skye-sunset .reveal,
body.case-skye-sunset .piece-ref,
body.case-skye-sunset .soon-box,
body.case-skye-sunset .q-body,
body.case-skye-sunset .piece-body,
body.case-skye-sunset .topic-bar{
  background:var(--skye-panel-2);
  border-color:var(--skye-edge);
  color:var(--skye-ink);
}
body.case-skye-sunset .q-body,
body.case-skye-sunset .piece-body{
  border-top-color:var(--skye-edge);
}
body.case-skye-sunset .case-tabs{
  border-bottom-color:var(--skye-edge);
}
body.case-skye-sunset .case-tabs button{
  color:var(--skye-muted);
}
body.case-skye-sunset .case-tabs button[aria-selected="true"]{
  background:var(--skye-panel-2);
  border-color:var(--skye-edge);
  color:var(--skye-ink);
}
body.case-skye-sunset .lbl,
body.case-skye-sunset .case-box .lbl,
body.case-skye-sunset .linkbtn,
body.case-skye-sunset .piece-ref > summary,
body.case-skye-sunset .reveal summary,
body.case-skye-sunset .q-chev,
body.case-skye-sunset .piece-body .piece-qs a{
  color:var(--skye-accent);
}
body.case-skye-sunset .piece-body .piece-qs a{
  border-color:rgba(243,208,138,.45);
}
body.case-skye-sunset .topic-chip{
  background:rgba(255,255,255,.08);
  border-color:var(--skye-edge);
  color:var(--skye-ink);
}
body.case-skye-sunset .topic-chip small{color:var(--skye-muted)}
body.case-skye-sunset .topic-chip[aria-pressed="true"]{
  background:linear-gradient(90deg,#f3d08a,#f08a6c);
  border-color:transparent;
  color:#1d2430;
}
body.case-skye-sunset .topic-chip[aria-pressed="true"] small{color:#3a2a2a}
body.case-skye-sunset .q-num{
  background:rgba(255,255,255,.1);
  border-color:var(--skye-edge);
  color:var(--skye-accent);
}
body.case-skye-sunset .q-tag{
  background:rgba(255,255,255,.1);
  border-color:var(--skye-edge);
  color:var(--skye-muted);
}

/* Answer choices: keep contrast on the blue, and a clear selected/right/wrong state. */
body.case-skye-sunset .choice{
  background:rgba(255,255,255,.08);
  border-color:var(--skye-edge);
  color:var(--skye-ink);
}
body.case-skye-sunset .choice:hover{border-color:var(--skye-accent);background:rgba(255,255,255,.14)}
body.case-skye-sunset .choice[aria-pressed="true"]{
  border-color:var(--skye-accent);
  background:rgba(243,208,138,.18);
  box-shadow:inset 0 0 0 1px var(--skye-accent);
}
body.case-skye-sunset .choice.is-right{
  border-color:#8ee0a8;
  background:rgba(46,120,72,.35);
  box-shadow:inset 0 0 0 1px #8ee0a8;
  color:#fff;
}
body.case-skye-sunset .choice.is-wrong{
  border-color:#ffb4a6;
  background:rgba(140,45,40,.4);
  color:#fff;
}
body.case-skye-sunset .reveal .verdict.ok{color:#8ee0a8}
body.case-skye-sunset .reveal .verdict.no{color:#ffb4a6}

body.case-skye-sunset .btn-outline{
  border-color:rgba(243,208,138,.55);
  color:var(--skye-ink);
  background:rgba(255,255,255,.08);
}
body.case-skye-sunset .btn-outline:hover{
  background:rgba(243,208,138,.2);
  border-color:var(--skye-accent);
  color:#fff;
}

/* Footer stays in the same evening palette so the sunset continues behind it. */
body.case-skye-sunset footer{
  background:rgba(20,26,60,.88);
  color:rgba(255,255,255,.85);
  border-top:1px solid var(--skye-edge);
}
body.case-skye-sunset footer a{color:rgba(255,255,255,.85)}
body.case-skye-sunset footer a:hover{color:#fff}
