:root {
  --sun-gold: #ffd54a;
  --sun-orange: #ff9f1c;
  --sun-amber: #ffbf32;
  --sun-deep: #071524;
  --sun-panel: #0a1d30;
  --sun-panel-soft: #0d253b;
  --sun-line: rgba(255, 208, 73, .22);
  --sun-muted: #aebed0;
}

.gm-sun-nav {
  position: relative;
  overflow: visible;
}

.gm-sun-nav > em.gm-sun-nav-badge {
  position: absolute;
  right: 7px;
  top: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #ffca28;
  color: #2a1a00;
  box-shadow: 0 0 12px rgba(255, 202, 40, .35);
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.15;
}

.gm-uv-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 9px;
}

.gm-uv-scale span {
  padding: 5px 3px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #07101a;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  opacity: .35;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gm-uv-scale [data-uv-band="low"] { background: #36df68; }
.gm-uv-scale [data-uv-band="medium"] { background: #ffd84a; }
.gm-uv-scale [data-uv-band="high"] { background: #ff5d52; color: #fff; }
.gm-uv-scale span.active { opacity: 1; transform: translateY(-1px); box-shadow: 0 0 13px currentColor; }

.sun-observatory.page {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #eef5fb;
  overflow-x: hidden;
}

.sun-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 1500px;
  margin: 0 auto;
}

.sun-shell > *,
.sun-hero > *,
.sun-section > *,
.sun-section-head > *,
.sun-detail-columns > *,
.sun-explain-grid > *,
.sun-station-live > *,
.sun-images-grid > *,
.space-weather-grid > *,
.space-weather-summary > *,
.noaa-scales > *,
.sun-anatomy > *,
.sun-glossary > *,
.sun-card-title > div,
.sun-scale-card > header > div {
  min-width: 0;
  max-width: 100%;
}

.sun-hero,
.sun-section,
.sun-footer {
  border: 1px solid var(--sun-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10, 29, 48, .98), rgba(5, 17, 31, .98));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
}

.sun-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 26px;
  align-items: center;
  min-height: 340px;
  padding: clamp(24px, 4vw, 52px);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 205, 70, .18), transparent 24%),
    radial-gradient(circle at 8% 90%, rgba(38, 151, 255, .13), transparent 30%),
    linear-gradient(135deg, #0b2238 0%, #071423 52%, #170f18 100%);
}

.sun-hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -130px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 113, .55), rgba(255, 159, 28, .12) 44%, transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

.sun-hero-copy,
.sun-sky-card { position: relative; z-index: 1; }

.sun-kicker,
.sun-section-head > div > span {
  color: #ffd665;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.sun-hero h2 {
  max-width: 760px;
  margin: 8px 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.sun-hero-copy > p {
  max-width: 810px;
  margin: 0;
  color: #cedae5;
  font-size: 1rem;
  line-height: 1.72;
}

.sun-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.sun-hero-badges span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 213, 74, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: #f3f7fb;
  font-size: .78rem;
  font-weight: 750;
}

.sun-sky-card {
  padding: 14px;
  border: 1px solid rgba(255, 221, 108, .25);
  border-radius: 18px;
  background: rgba(1, 9, 18, .52);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 16px 38px rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px);
}

.sun-sky {
  position: relative;
  height: 205px;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 105%, rgba(255, 167, 51, .72), transparent 43%),
    linear-gradient(180deg, #08223f 0%, #164d75 58%, #d47842 100%);
}

.sun-sky.is-night {
  background:
    radial-gradient(circle at 50% 105%, rgba(76, 80, 133, .3), transparent 40%),
    linear-gradient(180deg, #010713, #08192d 70%, #1b2642);
}

.sun-sky-stars {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 30% 32%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 16%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 37%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 54% 8%, #fff 0 1px, transparent 1.5px);
}

.sun-path-arc {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 31px;
  height: 145px;
  border: 1px dashed rgba(255, 239, 177, .56);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.sun-path-dot {
  position: absolute;
  left: var(--sun-x, 50%);
  bottom: var(--sun-y, 126px);
  width: 33px;
  height: 33px;
  transform: translate(-50%, 50%);
  transition: left .8s ease, bottom .8s ease, opacity .3s ease;
}

.sun-path-dot span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff4a6;
  box-shadow: 0 0 8px #fff, 0 0 20px #ffd23f, 0 0 45px #ff8a00;
}

.sun-path-dot.below-horizon { opacity: .28; }

.sun-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 236, 176, .32);
  background: rgba(3, 13, 23, .72);
  color: #f6e1b2;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sun-now-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 3px 4px;
  color: #e7eef5;
}

.sun-now-row b { color: #ffd85b; font-variant-numeric: tabular-nums; }
.sun-sky-card > small { display: block; padding: 0 3px 2px; color: #9eb1c4; }

.sun-section { padding: clamp(20px, 3vw, 34px); }
.sun-section-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.sun-section-head h2 { margin: 5px 0 5px; color: #f8fbff; font-size: clamp(1.45rem, 2.5vw, 2.15rem); }
.sun-section-head p { max-width: 820px; margin: 0; color: #9fb0bf; line-height: 1.5; overflow-wrap: anywhere; }
.sun-section-status { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(255, 213, 74, .24); border-radius: 999px; background: rgba(255, 213, 74, .07); color: #f5d46b; font-size: .74rem; font-weight: 800; }

.sun-local-grid,
.sun-facts-grid,
.space-weather-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.sun-local-grid article,
.sun-facts-grid article,
.space-weather-grid article,
.sun-live-metric {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(153, 193, 223, .13);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 43, 66, .74), rgba(7, 24, 40, .82));
}

.sun-local-grid span,
.sun-local-grid b,
.sun-local-grid small,
.sun-facts-grid span,
.sun-facts-grid b,
.sun-facts-grid small,
.space-weather-grid span,
.space-weather-grid b,
.space-weather-grid small,
.sun-live-metric span,
.sun-live-metric b,
.sun-live-metric small { display: block; }
.sun-local-grid span,
.sun-facts-grid span,
.space-weather-grid span,
.sun-live-metric span { color: #b9c8d6; font-size: .78rem; }
.sun-local-grid b,
.space-weather-grid b,
.sun-live-metric b { margin: 8px 0 5px; color: #fff; font-size: 1.42rem; font-variant-numeric: tabular-nums; }
.sun-local-grid small,
.sun-facts-grid small,
.space-weather-grid small,
.sun-live-metric small { color: #8499ac; font-size: .7rem; line-height: 1.35; }

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

.sun-twilight-card,
.sun-orbit-card,
.sun-station-chart-card,
.sun-scale-card,
.sun-glossary,
.sun-explain-grid article {
  padding: 18px;
  border: 1px solid rgba(153, 193, 223, .13);
  border-radius: 14px;
  background: rgba(7, 24, 40, .74);
}

.sun-card-title,
.sun-scale-card > header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sun-card-title > span,
.sun-scale-card > header > span { font-size: 1.7rem; }
.sun-card-title h3,
.sun-scale-card h3 { margin: 0 0 4px; color: #f4f8fb; }
.sun-card-title p,
.sun-scale-card header p { margin: 0; color: #91a5b8; font-size: .8rem; line-height: 1.45; }

.sun-twilight-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.sun-twilight-table > div { padding: 10px; border-radius: 9px; background: rgba(255, 255, 255, .035); }
.sun-twilight-table span,
.sun-twilight-table b,
.sun-twilight-table small { display: block; }
.sun-twilight-table span { color: #b9c6d1; font-size: .72rem; }
.sun-twilight-table b { margin: 3px 0; color: #ffd968; }
.sun-twilight-table small { color: #7f93a5; font-size: .64rem; }

.sun-orbit-card dl { display: grid; gap: 0; margin: 14px 0 0; }
.sun-orbit-card dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sun-orbit-card dt { color: #9eb0c0; }
.sun-orbit-card dd { margin: 0; color: #f3f8fb; font-weight: 800; text-align: right; }
.sun-next-event { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 194, 49, .11), rgba(62, 175, 113, .07)); }
.sun-next-event span { color: #e7edf2; }
.sun-next-event b { color: #ffd968; }
.sun-calc-note { margin: 14px 0 0; color: #7f93a4; font-size: .72rem; line-height: 1.5; }

.sun-station-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.sun-live-metric { border-left-width: 3px; }
.sun-live-metric.uv { border-left-color: #ffd43c; }
.sun-live-metric.radiation { border-left-color: #b965ff; }
.sun-live-metric.horizon { border-left-color: #40cfff; }
.sun-live-metric b { font-size: 1.75rem; }
.sun-station-chart-card { margin-top: 10px; }
.sun-chart-wrap { position: relative; width: 100%; min-width: 0; max-width: 100%; height: 315px; margin-top: 15px; overflow: hidden; }
.sun-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: #9fb1c1; font-size: .72rem; }
.sun-chart-legend [hidden] { display: none; }
.sun-chart-legend i { display: inline-block; width: 15px; height: 4px; margin-right: 5px; border-radius: 999px; vertical-align: 2px; }
.sun-chart-legend i.radiation { background: #d16cff; }
.sun-chart-legend i.uv { background: #ffd43c; }
.sun-images-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sun-images-grid figure { margin: 0; overflow: hidden; border: 1px solid rgba(255, 209, 77, .15); border-radius: 14px; background: #050c14; }
.sun-image-wrap { display: grid; place-items: center; aspect-ratio: 1.1; overflow: hidden; background: radial-gradient(circle, #331507, #030508 70%); }
.sun-image-wrap.magnetogram { background: radial-gradient(circle, #31404b, #030508 72%); }
.sun-image-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.sun-images-grid figure:hover img { transform: scale(1.025); }
.sun-images-grid figcaption { display: grid; gap: 6px; padding: 13px; }
.sun-images-grid figcaption b { color: #ffe074; }
.sun-images-grid figcaption span { color: #94a8b8; font-size: .76rem; line-height: 1.5; }
.sun-source-note { margin: 14px 2px 0; color: #8196a8; font-size: .72rem; line-height: 1.5; }
.sun-source-note a { color: #70d7ff; }

.sun-refresh {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 211, 76, .3);
  border-radius: 9px;
  background: rgba(255, 211, 76, .08);
  color: #ffe078;
  font-weight: 800;
  cursor: pointer;
}
.sun-refresh:hover { background: rgba(255, 211, 76, .16); }
.space-weather-status { margin-bottom: 10px; padding: 10px 12px; border: 1px solid rgba(61, 182, 255, .18); border-radius: 10px; background: rgba(61, 182, 255, .06); color: #9ecde7; font-size: .78rem; }
.space-weather-status.ready { border-color: rgba(77, 209, 120, .24); background: rgba(77, 209, 120, .07); color: #9ee1b3; }
.space-weather-status.warning { border-color: rgba(255, 183, 77, .3); background: rgba(255, 183, 77, .08); color: #ffd08b; }
.space-weather-status.error { border-color: rgba(255, 93, 82, .3); background: rgba(255, 93, 82, .08); color: #ffaaa3; }
.space-weather-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.space-weather-grid article { border-top: 2px solid rgba(255, 210, 73, .34); }
.space-weather-grid b.good { color: #66e38a; }
.space-weather-grid b.warn { color: #ffd65d; }
.space-weather-grid b.danger { color: #ff746b; }
.space-weather-grid b.south { color: #ff8c66; }
.space-weather-grid b.north { color: #70d7ff; }

.space-weather-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.space-weather-summary > div { padding: 15px; border: 1px solid rgba(153, 193, 223, .13); border-radius: 12px; background: rgba(255, 255, 255, .035); }
.space-weather-summary span,
.space-weather-summary b,
.space-weather-summary small { display: block; }
.space-weather-summary span { color: #9eb1c1; font-size: .75rem; }
.space-weather-summary b { margin: 6px 0; color: #f4f8fb; font-size: 1.1rem; }
.space-weather-summary small { color: #7f93a5; line-height: 1.4; }

.sun-explain-grid article h3 { margin: 0 0 7px; color: #f3f7fb; }
.sun-explain-grid article p { margin: 6px 0 0; color: #9eb0c0; font-size: .8rem; line-height: 1.58; }
.sun-scale-card { margin-top: 10px; }
.sun-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; margin-top: 14px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 11px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.sun-data-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.sun-data-table th,
.sun-data-table td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, .065); text-align: left; }
.sun-data-table th { background: rgba(255, 255, 255, .055); color: #cad7e2; font-size: .74rem; }
.sun-data-table td { color: #aebdca; font-size: .76rem; line-height: 1.4; }
.sun-data-table tr:last-child td { border-bottom: 0; }
.flare-table td:first-child b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #07111a; font-size: 1rem; }
.flare-a td:first-child b { background: #80cbc4; }
.flare-b td:first-child b { background: #81d4fa; }
.flare-c td:first-child b { background: #fff176; }
.flare-m td:first-child b { background: #ffb74d; }
.flare-x td:first-child b { background: #ef5350; color: #fff; }
.sun-table-note { margin: 12px 2px 0; color: #8fa3b4; font-size: .74rem; line-height: 1.52; }

.kp-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.kp-scale span { display: grid; gap: 3px; padding: 10px 5px; border-radius: 8px; color: #071019; text-align: center; }
.kp-scale b { font-size: .82rem; }
.kp-scale small { font-size: .61rem; }
.kp-calm { background: #55d87a; }
.kp-active { background: #b9df63; }
.kp-g1 { background: #ffe35b; }
.kp-g2 { background: #ffc04d; }
.kp-g3 { background: #ff8b45; }
.kp-g4 { background: #ff5d52; color: #fff !important; }
.kp-g5 { background: #c742d7; color: #fff !important; }

.noaa-scales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.noaa-scales article { padding: 14px; border: 1px solid rgba(153, 193, 223, .13); border-radius: 12px; background: rgba(255, 255, 255, .035); }
.noaa-scales b { color: #ffd867; }
.noaa-scales p { margin: 7px 0 0; color: #91a6b7; font-size: .76rem; line-height: 1.5; }

.sun-facts-grid article { border-left: 2px solid rgba(255, 211, 73, .5); }
.sun-facts-grid b { display: block; margin: 8px 0 5px; color: #fff; font-size: 1rem; line-height: 1.3; }
.sun-anatomy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.sun-anatomy article { padding: 14px; border: 1px solid rgba(153, 193, 223, .13); border-radius: 11px; background: rgba(255, 255, 255, .03); }
.sun-anatomy b { color: #ffd869; }
.sun-anatomy p { margin: 7px 0 0; color: #91a4b4; font-size: .75rem; line-height: 1.52; }
.sun-glossary { margin-top: 10px; }
.sun-glossary h3 { margin: 0 0 12px; color: #f4f8fb; }
.sun-glossary > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.sun-glossary details { border: 1px solid rgba(255, 255, 255, .07); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.sun-glossary summary { padding: 11px 12px; color: #d9e2e9; font-weight: 800; cursor: pointer; }
.sun-glossary details p { margin: 0; padding: 0 12px 12px; color: #91a5b5; font-size: .76rem; line-height: 1.55; }

.sun-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px; color: #8093a4; font-size: .72rem; line-height: 1.55; }
.sun-footer p { margin: 0; }
.sun-footer p:last-child { text-align: right; }
.sun-footer b { color: #e3ebf1; }

:root[data-theme="light"] .sun-observatory.page { color: #173047; }
:root[data-theme="light"] .sun-hero,
:root[data-theme="light"] .sun-section,
:root[data-theme="light"] .sun-footer {
  border-color: #d2dde5;
  background: linear-gradient(145deg, #fff, #f4f7f9);
  box-shadow: 0 12px 32px rgba(35, 70, 96, .08);
}
:root[data-theme="light"] .sun-hero { background: radial-gradient(circle at 84% 18%, rgba(255, 188, 54, .22), transparent 24%), linear-gradient(135deg, #f8fbff, #edf4f7 55%, #fff3e3); }
:root[data-theme="light"] .sun-hero h2,
:root[data-theme="light"] .sun-section-head h2,
:root[data-theme="light"] .sun-card-title h3,
:root[data-theme="light"] .sun-scale-card h3,
:root[data-theme="light"] .sun-glossary h3 { color: #152c3f; }
:root[data-theme="light"] .sun-hero-copy > p,
:root[data-theme="light"] .sun-section-head p { color: #5b7183; }
:root[data-theme="light"] .sun-hero-badges span { border-color: #d4dee5; background: rgba(255, 255, 255, .72); color: #254155; }
:root[data-theme="light"] .sun-local-grid article,
:root[data-theme="light"] .sun-facts-grid article,
:root[data-theme="light"] .space-weather-grid article,
:root[data-theme="light"] .sun-live-metric,
:root[data-theme="light"] .sun-twilight-card,
:root[data-theme="light"] .sun-orbit-card,
:root[data-theme="light"] .sun-station-chart-card,
:root[data-theme="light"] .sun-scale-card,
:root[data-theme="light"] .sun-glossary,
:root[data-theme="light"] .sun-explain-grid article,
:root[data-theme="light"] .noaa-scales article,
:root[data-theme="light"] .sun-anatomy article,
:root[data-theme="light"] .space-weather-summary > div { border-color: #d9e4ea; background: #f8fafb; }
:root[data-theme="light"] .sun-local-grid b,
:root[data-theme="light"] .sun-facts-grid b,
:root[data-theme="light"] .space-weather-grid b,
:root[data-theme="light"] .sun-live-metric b,
:root[data-theme="light"] .sun-orbit-card dd,
:root[data-theme="light"] .space-weather-summary b { color: #173047; }
:root[data-theme="light"] .sun-local-grid span,
:root[data-theme="light"] .sun-facts-grid span,
:root[data-theme="light"] .space-weather-grid span,
:root[data-theme="light"] .sun-live-metric span,
:root[data-theme="light"] .sun-card-title p,
:root[data-theme="light"] .sun-explain-grid article p,
:root[data-theme="light"] .noaa-scales p,
:root[data-theme="light"] .sun-anatomy p,
:root[data-theme="light"] .sun-glossary details p { color: #5f7587; }
:root[data-theme="light"] .sun-twilight-table > div,
:root[data-theme="light"] .sun-glossary details { border-color: #dce5ea; background: #fff; }
:root[data-theme="light"] .sun-glossary summary { color: #29465b; }
:root[data-theme="light"] .sun-data-table th { background: #eaf1f5; color: #29465b; }
:root[data-theme="light"] .sun-data-table td { color: #536b7e; border-color: #dbe5eb; }
:root[data-theme="light"] .sun-footer { color: #627789; }
:root[data-theme="light"] .sun-footer b { color: #173047; }

@media (max-width: 1180px) {
  .sun-local-grid,
  .sun-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .space-weather-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sun-anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sun-hero { grid-template-columns: 1fr; }
  .sun-sky-card { width: 100%; box-sizing: border-box; }
  .sun-detail-columns,
  .sun-explain-grid { grid-template-columns: 1fr; }
  .sun-images-grid { grid-template-columns: 1fr; }
  .sun-image-wrap { max-height: 520px; }
  .space-weather-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-scale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .noaa-scales { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .gm-sun-nav > em.gm-sun-nav-badge { right: 2px; top: 1px; padding: 1px 3px; font-size: 5px; }
  .sun-shell { gap: 8px; }
  .sun-hero,
  .sun-section,
  .sun-footer { border-radius: 12px; }
  .sun-hero,
  .sun-section { padding: 16px; }
  .sun-observatory.page,
  .sun-shell,
  .sun-hero,
  .sun-section,
  .sun-footer { width: 100%; min-width: 0; max-width: 100%; }
  .sun-hero { min-height: 0; }
  .sun-hero h2 { font-size: clamp(1.65rem, 8vw, 2rem); }
  .sun-hero-copy > p,
  .sun-section-head,
  .sun-card-title,
  .sun-scale-card,
  .sun-glossary,
  .sun-footer { overflow-wrap: anywhere; }
  .sun-sky { height: 178px; }
  .sun-path-arc { height: 121px; }
  .sun-section-head { flex-direction: column; }
  .sun-station-live,
  .space-weather-summary { grid-template-columns: 1fr; }
  .sun-twilight-table { grid-template-columns: 1fr; }
  .sun-chart-wrap { height: 270px; }
  .sun-glossary > div { grid-template-columns: 1fr; }
  .sun-footer { flex-direction: column; }
  .sun-footer p:last-child { text-align: left; }

  /* Na telefonu se široká vysvětlovací tabulka mění na svislé karty. */
  .sun-table-wrap { overflow: visible; border: 0; }
  .sun-data-table { display: block; width: 100%; min-width: 0; }
  .sun-data-table thead { display: none; }
  .sun-data-table tbody { display: grid; gap: 8px; width: 100%; }
  .sun-data-table tr { display: grid; gap: 8px; width: 100%; padding: 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 11px; background: rgba(255, 255, 255, .03); }
  .sun-data-table td { display: block; width: 100%; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .sun-data-table td:nth-child(2)::before,
  .sun-data-table td:nth-child(3)::before { display: block; margin-bottom: 3px; color: #7f93a5; font-size: .62rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
  .sun-data-table td:nth-child(2)::before { content: "Rentgenový tok"; }
  .sun-data-table td:nth-child(3)::before { content: "Co to znamená"; }
}

@media (max-width: 480px) {
  .sun-local-grid,
  .sun-facts-grid,
  .space-weather-grid,
  .sun-anatomy { grid-template-columns: 1fr; }
  .sun-hero-copy > p { font-size: .9rem; }
  .sun-hero-badges { display: grid; }
  .sun-sky-card { padding: 9px; }
  .sun-sky { height: 158px; }
  .sun-path-arc { bottom: 30px; height: 104px; }
  .sun-now-row { flex-direction: column; gap: 3px; }
  .kp-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .sun-path-dot,
  .sun-image-wrap img { transition: none; }
}
