.sun-page{padding-block:clamp(2rem,5vw,5rem) clamp(2.5rem,6vw,5rem)}
.sun-heading>div,.sun-day,.sun-monitor,.sun-status,.sun-home-reading small{font-family:var(--f-mono)}
.sun-heading>div{font-size:.72rem;color:var(--charcoal-soft);margin-bottom:1.15rem}
.sun-heading>div span{padding:0 .4rem;color:var(--gold-deep)}
.sun-heading a{color:inherit;text-underline-offset:.22em}
.sun-heading h1{color:var(--ocean-deepest);font-size:clamp(2.45rem,5.7vw,5.2rem);letter-spacing:-.065em;line-height:1.04;text-wrap:balance}
.sun-heading>p{color:var(--charcoal-soft);font-size:clamp(.98rem,1.5vw,1.22rem);margin:.9rem 0 clamp(1.5rem,3vw,2.45rem)}
.sun-poster{background:#082f42;color:var(--sand);position:relative;overflow:hidden;isolation:isolate;border-radius:var(--r-l);min-height:clamp(350px,36vw,462px);display:grid;align-items:center}
.sun-coast{position:absolute;right:0;bottom:0;width:64%;height:100%;z-index:-1;overflow:visible}
.sun-readout{padding:clamp(1.6rem,4.5vw,4.1rem);position:relative}
.sun-day{display:flex;align-items:center;gap:.65rem;font-size:.75rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-bright)}
.sun-glyph{font:1.8rem/1 Georgia,serif}
.sun-readout h2{font-size:clamp(1rem,2vw,1.45rem);letter-spacing:-.025em;margin-top:clamp(1.25rem,2.6vw,2.2rem);font-weight:500}
.sun-total{display:flex;align-items:baseline;gap:0 clamp(.65rem,1vw,1rem);line-height:1.1;flex-wrap:wrap}
.sun-total strong{font-size:clamp(3.3rem,8.5vw,8.25rem);font-weight:800;letter-spacing:.015em;font-variant-numeric:tabular-nums}
.sun-total>span{font-size:clamp(1.25rem,3vw,2.5rem);font-weight:500;letter-spacing:0;color:var(--gold-bright)}
.sun-monitor {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .6rem;
  padding: .28rem .65rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
  color: var(--gold-bright);
  background: #082f42;
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sun-monitor::before {
  content: "";
  width: .42rem;
  height: .42rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.sun-monitor[data-live] { color: #92e6bd; }
.sun-monitor[data-live]::before { box-shadow: 0 0 0 3px #92e6bd30; }
.sun-status{font-size:.73rem;margin-top:.75rem;color:#e2e6dc}
.sun-status:empty{display:none}
.sun-impact{display:flex;align-items:center;gap:1.1rem;margin-top:1.2rem;border-block:1px solid #d0c8ac;padding:1.55rem .25rem;color:var(--ocean-deepest)}
.sun-leaf{flex:none;width:3.5rem;height:3.5rem;background:#e6e5c5;border-radius:50%;display:grid;place-items:center;color:#425c48}
.sun-leaf svg{width:2.2rem}
.sun-equivalent h2{font-size:.95rem;font-weight:600}
.sun-equivalent p{font-size:1.07rem;line-height:1.4;margin-top:.25rem}
.sun-equivalent strong{font-size:1.8rem;letter-spacing:-.05em}
.sun-method{margin-left:auto;max-width:48%;font-size:.88rem}
.sun-method summary{cursor:pointer;font-weight:700;text-decoration:underline;text-underline-offset:.26em}
.sun-method p{margin-top:.65rem;color:var(--charcoal-soft)}
.sun-method a{color:var(--ocean-deep);font-weight:700;text-underline-offset:.22em}
.sun-home{margin-block:clamp(.85rem,2vw,1.4rem)}
.sun-home-inner{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:.65rem 1rem;
  padding:clamp(.75rem,2vw,1.1rem) clamp(.85rem,2.5vw,1.5rem);
  border-radius:var(--r-l);
  background:linear-gradient(110deg,#082f42,#134b62);
  color:var(--sand);
  text-decoration:none;
}
.sun-home-inner:focus-visible{outline:2px solid var(--ocean-deep);outline-offset:4px}
.sun-home-icon{
  display:grid;
  place-items:center;
  width:2.5rem;
  height:2.5rem;
  border:1px solid #e8cf8666;
  border-radius:50%;
  font:1.85rem/1 Georgia,serif;
  color:var(--gold-bright);
}
.sun-home h2{font-size:.84rem;font-weight:600;line-height:1.3}
.sun-home p{font-size:.86rem;margin:0}
.sun-home-reading strong{font-size:1.15rem;font-variant-numeric:tabular-nums;color:var(--gold-bright)}
.sun-home-reading small{display:block;margin-top:.12rem;font-size:.69rem;color:#f2dfaa}
.sun-home[data-state=current] [data-status]{display:none}
.sun-home-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:2.75rem;
  padding:.45rem .85rem;
  border-radius:.65rem;
  background:var(--gold-bright);
  color:#082f42;
  font-size:.84rem;
  font-weight:800;
}
.sun-home-link .ico{width:1rem;height:1rem;flex:none}
.sun-home-inner:hover .sun-home-link,
.sun-home-inner:focus-visible .sun-home-link{background:#f9e8b6;text-decoration:underline;text-underline-offset:.2em}
@media(max-width:540px){
  .sun-home-inner{grid-template-columns:auto minmax(0,1fr);column-gap:.75rem;border-radius:1rem}
  .sun-home-link{grid-column:1/-1;justify-content:space-between}
}
@keyframes solar-shimmer{from{transform:translateX(-5px)}to{transform:translateX(6px)}}
@keyframes solar-drift{from{transform:translate(-4px,2px)}to{transform:translate(8px,-2px)}}
@media(prefers-reduced-motion:no-preference){
  .sun-glints{animation:solar-shimmer 4s ease-in-out infinite alternate}
  .sun-birds{animation:solar-drift 8s ease-in-out infinite alternate}
  .sun-glints:nth-of-type(even){animation-delay:-2s}
}
@media(max-width:700px){
  .sun-poster{align-items:start;min-height:415px;border-radius:20px}
  .sun-coast{height:66%;width:100%;opacity:.98;mask-image:linear-gradient(to bottom,transparent,#000 26%)}
  .sun-readout{padding:1.5rem}
  .sun-total strong{font-size:clamp(3.5rem,16vw,6rem)}
  .sun-readout h2{margin-top:.85rem}
  .sun-status{margin-top:.55rem;max-width:95%;font-size:.7rem}
  .sun-impact{flex-wrap:wrap;gap:.7rem 1rem;padding:1.25rem .125rem}
  .sun-method{max-width:100%;width:100%;margin:0}
}
@media(max-width:400px){.sun-impact{gap:.75rem}.sun-readout{padding:1.25rem}}

.sun-power{display:flex;align-items:baseline;gap:.55rem;flex-wrap:wrap;margin-top:.6rem;font-size:.88rem;color:#e6e6d5}
.sun-power strong{font-size:1.1rem;font-variant-numeric:tabular-nums;color:var(--gold-bright)}
.sun-power small{font: .68rem var(--f-mono)}
@media(max-width:700px){.sun-poster{min-height:448px}}

.sun-chart{margin:1.5rem 0 0;padding:1.25rem clamp(1rem,2.6vw,2rem);background:#fbf7ea;border:1px solid #d9d1b6;border-radius:var(--r-l);color:var(--ocean-deepest)}
.sun-chart h2{font-size:1.05rem}
.sun-chart figcaption p,.sun-chart-note{font-size:.8rem;color:var(--charcoal-soft)}
.sun-chart-note{margin:.2rem 0 0;font-variant-numeric:tabular-nums}
.sun-scale,.sun-axis{font: .65rem var(--f-mono);color:var(--charcoal-soft)}
.sun-scale{display:block;margin:.7rem 0 .25rem}
.sun-plot svg{display:block;width:100%;height:clamp(4rem,8vw,6rem);overflow:visible;border-bottom:1px solid #d4cbb1}
.sun-plot path{fill:none;stroke:#176373;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.sun-plot .sun-dots{stroke-width:4}
.sun-axis{position:relative;height:1rem;margin-top:.35rem}
.sun-axis span{position:absolute;left:50%;transform:translateX(-50%)}
.sun-axis span:first-child{left:0;transform:none}
.sun-axis span:last-child{left:auto;right:0;transform:none}

/* Local daylight changes the artwork without adding a second animated layer. */
.sun-stars{opacity:0}
[data-phase=day] #ys-sky stop:first-child{stop-color:#125368}
[data-phase=day] #ys-sky stop:nth-child(2){stop-color:#37889a}
[data-phase=day] #ys-sky stop:last-child{stop-color:#c7d9bc}
[data-phase=dawn] #ys-sky stop:last-child{stop-color:#f2b18d}
[data-phase=dusk] #ys-sky stop:nth-child(2){stop-color:#766b82}
[data-phase=dusk] #ys-sky stop:last-child{stop-color:#eda077}
[data-phase=night] #ys-sky stop:first-child{stop-color:#0a283d}
[data-phase=night] #ys-sky stop:nth-child(2){stop-color:#123b52}
[data-phase=night] #ys-sky stop:last-child{stop-color:#32586a}
[data-phase=night] #ys-water stop:first-child{stop-color:#284f61}
[data-phase=night] #ys-water stop:nth-child(2){stop-color:#174053}
[data-phase=night] .sun-orb,[data-phase=night] .sun-reflection,[data-phase=night] .sun-birds{visibility:hidden}
[data-phase=night] .sun-stars{opacity:.85}
[data-phase=night] .sun-window,[data-phase=dusk] .sun-window{fill:#ffda8a}
.sun-record,.sun-chart-hint,.sun-light{font-size:.76rem;color:var(--charcoal-soft)}
.sun-record{margin-top:.4rem}
.sun-chart-hint{margin-top:.25rem}
.sun-plot[hidden]~.sun-chart-hint{display:none}
.sun-light{margin-top:.7rem}
.sun-light summary{cursor:pointer;width:fit-content;text-decoration:underline;text-underline-offset:.2em}
.sun-light p{margin-top:.3rem;max-width:62ch}
.sun-graph-area{position:relative}
.sun-scrub{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;opacity:0;margin:0;touch-action:pan-y;direction:ltr}
.sun-graph-area:focus-within{outline:2px solid var(--ocean-deep);outline-offset:3px}
.sun-guide{position:absolute;pointer-events:none;top:0;bottom:0;border-left:1px dashed #556e79;left:var(--cursor)}
.sun-guide i{position:absolute;width:10px;height:10px;border-radius:50%;background:#126574;border:2px solid white;box-shadow:0 0 0 1px #126574;top:var(--height);transform:translate(-55%,-50%)}
.sun-guide.incomplete i{background:#916512}
.sun-guide.gap i{display:none}
.sun-digit{display:inline-block}
@keyframes solar-digit-in{from{transform:translateY(.09em);opacity:.65}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:no-preference){
  .sun-digit{animation:solar-digit-in .28s ease-out}
  .sun-glints{animation:none}
  .sun-poster.fresh .sun-glints{animation:solar-shimmer .8s ease-in-out 1 alternate}
}
[data-phase=night] .sun-coast path[fill="#c7ac76"]{fill:#657171}
[data-phase=night] .sun-coast path[fill="#e4c78e"]{fill:#88938a}
@media(max-width:700px){.sun-coast{height:54%}}

.sun-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1.5rem;
  margin: clamp(1.75rem, 4vw, 3rem) auto 0;
  color: var(--charcoal-soft);
  font-size: .8rem;
}
.sun-brands img { display: block; height: auto; }
@media (max-width: 480px) {
  .sun-brands span { flex-basis: 100%; text-align: center; }
}

.sun-archive {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--charcoal-soft);
  font-size: .8rem;
}
.sun-archive summary { padding: .6rem .25rem; cursor: pointer; text-align: center; }
.sun-archive summary strong { margin-inline-start: .45em; color: var(--ocean-deepest); white-space: nowrap; }
.sun-archive p { margin: .4rem 0; }
.sun-archive dl { margin: 0; max-height: 15rem; overflow: auto; }
.sun-archive dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem .2rem; border-bottom: 1px solid #d0c8ac; }
.sun-archive dd { margin: 0; font-variant-numeric: tabular-nums; }
