/* manen.nu – "Observatoriet". Färger och typografi enligt designen (Claude Design). */

:root, :root[data-theme="dark"] {
  --bg: #0A0D16; --bg2: #0F1422; --card: #121828; --card2: #182036;
  --line: rgba(236, 232, 220, .10); --line2: rgba(236, 232, 220, .20);
  --ink: #ECE8DC; --ink2: #A9AFBF; --moon: #F2DFA7; --on-moon: #171308; --cool: #8FB4FF;
  --glow: rgba(242, 223, 167, .16); --lunar: #E6E1D3; --moondark: #1E2436; --sun: #FFC56B; --warn: #FF9E80;
  --star: 1; --shadow: rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F3F0E8; --bg2: #EAE5D8; --card: #FFFFFF; --card2: #F7F4EC;
    --line: rgba(21, 24, 35, .10); --line2: rgba(21, 24, 35, .22);
    --ink: #161925; --ink2: #4E5568; --moon: #865800; --on-moon: #FFFFFF; --cool: #2D5BC9;
    --glow: rgba(214, 170, 60, .28); --lunar: #E3C46E; --moondark: #D9D4C8; --sun: #F0A43A; --warn: #B3401F;
    --star: 0; --shadow: rgba(21, 24, 35, .18);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F3F0E8; --bg2: #EAE5D8; --card: #FFFFFF; --card2: #F7F4EC;
  --line: rgba(21, 24, 35, .10); --line2: rgba(21, 24, 35, .22);
  --ink: #161925; --ink2: #4E5568; --moon: #865800; --on-moon: #FFFFFF; --cool: #2D5BC9;
  --glow: rgba(214, 170, 60, .28); --lunar: #E3C46E; --moondark: #D9D4C8; --sun: #F0A43A; --warn: #B3401F;
  --star: 0; --shadow: rgba(21, 24, 35, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
  transition: background-color .6s ease, color .6s ease; overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.serif { font-family: 'Newsreader', Georgia, serif; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 120px; }

/* ---------- Animationer ---------- */
.star { position: absolute; border-radius: 50%; background: #fff; opacity: calc(var(--star) * .6); animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: calc(var(--star) * .15); } 50% { opacity: calc(var(--star) * .95); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 90px 6px var(--glow); } 50% { box-shadow: 0 0 150px 34px var(--glow); } }
.glow { animation: glow 7s ease-in-out infinite; }
@keyframes draw { from { stroke-dashoffset: 1800; } to { stroke-dashoffset: 0; } }
.draw { stroke-dasharray: 1800; animation: draw 3.2s cubic-bezier(.4, 0, .2, 1) .4s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.fade { animation: fade 2s ease 1.6s both; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.9); opacity: 0; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes moonrise { 0% { transform: translateY(70px); } 70%, 100% { transform: translateY(0); } }
.moonrise { animation: moonrise 9s cubic-bezier(.25, .6, .3, 1) infinite alternate; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.breathe { transform-box: fill-box; transform-origin: center; animation: breathe 5s ease-in-out infinite; }
@keyframes sunpath { 0% { transform: rotate(0deg); } 100% { transform: rotate(180deg); } }
.sunpath { transform-origin: 164px 150px; animation: sunpath 9s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.orbit { transform-origin: 0 0; animation: orbit 14s linear infinite; }
@keyframes lib { 0%, 100% { transform: translate(-3%, 1%) rotate(-4deg); } 25% { transform: translate(0, -3%) rotate(0deg); } 50% { transform: translate(3%, -1%) rotate(4deg); } 75% { transform: translate(0, 3%) rotate(0deg); } }
.lib { animation: lib 10s ease-in-out infinite; }
@keyframes eclipse { 0% { transform: translateX(-1.9px); } 45%, 55% { transform: translateX(.18px); } 100% { transform: translateX(1.9px); } }
.eclipse-anim { animation: eclipse 9s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes seq { 0%, 100% { opacity: .25; transform: translateY(0); } 12% { opacity: 1; transform: translateY(-6px); } 24% { opacity: .25; transform: translateY(0); } }
.seq { animation: seq 4s ease-in-out infinite; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 120, 90, .6); } 50% { box-shadow: 0 0 0 6px rgba(255, 120, 90, 0); } }
.live { animation: live 1.8s ease-out infinite; }
.lift { transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s; }
.lift:hover { transform: translateY(-4px); border-color: var(--line2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Gemensamma byggstenar ---------- */
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--moon); font-weight: 500; }
.kicker.sm { font-size: 12px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.h2 { font-size: 52px; line-height: 1.02; letter-spacing: -.03em; }
.muted { color: var(--ink2); }
.accent { color: var(--moon); }
.card { border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.btn {
  height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line2); background: transparent;
  color: var(--ink); font: 500 14px 'Outfit', sans-serif; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink2); }
.btn.solid { background: var(--moon); color: var(--on-moon); border: none; font-weight: 600; }
.btn.icon { width: 44px; padding: 0; }
.btn.round48 { width: 48px; height: 48px; border-radius: 24px; padding: 0; }
.list { display: flex; flex-direction: column; font-size: 14px; }
.list > * { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.list > * > :last-child { color: var(--ink2); text-align: right; font-variant-numeric: tabular-nums; }
.section { padding-top: 120px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.section-head .serif { margin: 0; max-width: 420px; font-size: 19px; line-height: 1.45; color: var(--ink2); font-style: italic; }
.msg { color: var(--ink2); font-size: 14px; margin: 0; }

/* ---------- Sidhuvud ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { width: 28px; height: 32px; flex: none; }
.brand span { font-weight: 600; font-size: 22px; letter-spacing: .08em; }
.brand b { color: var(--moon); font-weight: 600; }
.main-nav { display: flex; gap: 34px; font-size: 15px; }
.main-nav a { text-decoration: none; color: var(--ink2); }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font-size: 13px; letter-spacing: .08em; color: var(--ink2); }
.lang-switch b { color: var(--ink); font-weight: 600; }
.menu-btn { display: none; }
.theme-btn .sun, :root[data-theme="light"] .theme-btn .moon-ico { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 72px; }
.stars { position: absolute; inset: -88px 0 -40px 0; pointer-events: none; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 72px; align-items: center; }
.hero-moon { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.moon-disc { position: relative; width: 420px; height: 420px; border-radius: 50%; }
.moon-disc img { width: 100%; height: 100%; display: block; border-radius: 50%; transition: transform .6s ease, filter .6s; }
.moon-disc.below img { filter: brightness(.8) saturate(.7); opacity: .9; }
.hero-credit { font-size: 13px; color: var(--ink2); }
.live-link { font-size: 13px; height: 38px; color: var(--ink2); }
.live-link:hover { color: var(--ink); }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.search { position: relative; display: flex; gap: 10px; }
.search-box {
  flex-grow: 1; height: 52px; border-radius: 26px; border: 1px solid var(--line2); background: var(--card);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
}
.search-box svg { color: var(--ink2); flex: none; }
.search-box input { flex-grow: 1; min-width: 0; border: none; background: transparent; color: var(--ink); font: 400 16px 'Outfit', sans-serif; outline: none; }
.search-box .locate-inline { display: none; border: none; background: none; color: var(--moon); cursor: pointer; padding: 6px; }
.suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: 58px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 16px 40px var(--shadow);
}
.suggest li { padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.suggest li small { color: var(--ink2); margin-left: 8px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--card2); }
.phase-block { display: flex; flex-direction: column; gap: 10px; }
.hero h1 { font-size: 92px; line-height: .95; letter-spacing: -.035em; text-wrap: balance; }
.illum-line { font-size: 24px; color: var(--ink2); }
.illum-line b { color: var(--moon); font-weight: 600; }
.pill { align-self: flex-start; padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid var(--moon); color: var(--moon); }
.pill.super { background: var(--moon); color: var(--on-moon); }
.pill.eclipse { border-color: var(--warn); color: var(--warn); }
.narrative { margin: 0; font-size: 21px; line-height: 1.5; font-style: italic; max-width: 640px; text-wrap: pretty; }
.conj { margin: -8px 0 0; color: var(--cool); font-size: 15px; }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 6px;
}
.stats > div { background: var(--bg); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stats .l, .stats .s { font-size: 13px; color: var(--ink2); }
.stats .v small { font-size: .6em; color: var(--ink2); }
.stats .v { font-size: clamp(18px, 1.5vw, 26px); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Tidsresa */
.timetravel { position: relative; margin-top: 56px; padding: 24px 32px 20px; display: flex; flex-direction: column; gap: 10px; }
.tt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tt-head > div { display: flex; align-items: center; gap: 14px; }
.tt-head .hint { font-size: 15px; color: var(--ink2); }
.tt-head .num { font-size: 17px; font-weight: 500; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--tt-track, linear-gradient(90deg, var(--lunar), var(--moondark))); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--tt-track, linear-gradient(90deg, var(--lunar), var(--moondark))); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: var(--moon); border: 5px solid var(--bg); box-shadow: 0 0 0 1px var(--moon), 0 0 28px var(--glow); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--moon); border: 5px solid var(--bg); box-shadow: 0 0 0 1px var(--moon), 0 0 28px var(--glow); }
.tt-marks { position: relative; height: 38px; font-size: 13px; color: var(--ink2); }
.tt-marks span { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; }
.tt-marks span::before { content: ''; width: 1px; height: 8px; background: var(--line2); }
.tt-marks span.first { transform: none; }
.tt-marks span.first::before { display: none; }
.tt-marks span.full { color: var(--moon); }
.tt-marks span.full::before { background: var(--moon); }

/* ---------- Ikväll ---------- */
.tonight-card { padding: 36px 40px 32px; display: flex; flex-direction: column; gap: 26px; }
.night-wrap { position: relative; }
.night-svg { display: block; width: 100%; height: auto; overflow: visible; }
.night-svg text { font-family: 'Outfit', sans-serif; }
.night-axis { display: none; justify-content: space-between; font-size: 12px; color: var(--ink2); margin-top: -8px; }
.legend { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--ink2); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.bar { width: 18px; height: 3px; border-radius: 2px; background: #F2DFA7; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts > div { display: flex; flex-direction: column; gap: 6px; }
.facts .l { font-size: 13px; color: var(--ink2); }
.facts .v { font-size: 19px; font-weight: 500; }

/* Tooltip över kurvor (kväll + dygn) */
.hover-layer { position: absolute; inset: 0; pointer-events: none; }
.hover-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed color-mix(in srgb, var(--ink) 50%, transparent); }
.hover-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #F2DFA7; border: 2px solid var(--bg); box-shadow: 0 0 0 1px #F2DFA7; }
.hover-dot.below { background: var(--moondark); box-shadow: 0 0 0 1px var(--ink2); }
.hover-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; z-index: 2;
  background: var(--card); color: var(--ink); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 10px;
  box-shadow: 0 8px 24px var(--shadow); font-size: 13px; line-height: 1.4;
}
.hover-tip b { font-size: 15px; font-variant-numeric: tabular-nums; }
.hover-tip .m { color: var(--ink2); }
.hover-tip.flip { transform: translate(-50%, 14px); }
.hover-tip.edge-l { transform: translate(0, calc(-100% - 14px)); }
.hover-tip.edge-r { transform: translate(-100%, calc(-100% - 14px)); }
.hover-tip.flip.edge-l { transform: translate(0, 14px); }
.hover-tip.flip.edge-r { transform: translate(-100%, 14px); }
.has-hover { touch-action: pan-y; cursor: crosshair; }

/* ---------- Himlen, förklarad ---------- */
.sky-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.topic { min-height: 560px; padding: 16px 16px 26px; display: flex; flex-direction: column; gap: 16px; }
.topic > svg, .topic > .visual { display: block; width: 100%; height: 210px; border-radius: 14px; }
.topic .body { padding: 0 10px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.topic h3 { font-size: 25px; line-height: 1.15; letter-spacing: -.01em; }
.topic p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.topic .list { margin-top: auto; }
.topic details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); color: var(--moon); font-size: 14px; }
.topic details summary::-webkit-details-marker { display: none; }
.topic details[open] summary span:last-child { transform: rotate(90deg); }
.names-all { font-size: 13px; color: var(--ink2); display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 4px 0 8px; }
.size-bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--moon), var(--moondark)); }
.size-bar .mark { position: absolute; top: -5px; width: 4px; height: 18px; border-radius: 2px; background: var(--moon); }
.size-bar .today { position: absolute; top: -7px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); }
.size-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); }
.size-legend .num { color: var(--ink); }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 8px; vertical-align: middle; }
.topic.wide { grid-column: span 2; min-height: 400px; padding: 20px 40px 20px 20px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: center; }
.topic.wide .visual { height: 358px; background: #0A0D16; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.topic.wide h3 { font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
.topic.wide p { font-size: 16px; line-height: 1.6; max-width: 540px; }
.lib-moon { width: 260px; height: 260px; border-radius: 50%; overflow: hidden; position: relative; box-shadow: 0 0 0 10px rgba(242, 223, 167, .06); }
.lib-moon img { width: 112%; height: 112%; margin: -6%; display: block; }
.lib-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.lib-stats > div { display: flex; flex-direction: column; gap: 4px; }
.lib-stats .l { font-size: 13px; color: var(--ink2); }
.lib-stats .v { font-size: 24px; font-weight: 500; }
.lib-stats .v.t { font-size: 18px; }
.topic.eclipse { min-height: 400px; gap: 14px; padding-bottom: 24px; }
.topic.eclipse > svg { height: 150px; }
.topic.eclipse h3 { font-size: 22px; line-height: 1.2; }

/* ---------- Födelsemåne ---------- */
.birth { border-radius: 28px; background: var(--bg2); border: 1px solid var(--line); padding: 56px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; }
.birth-text { display: flex; flex-direction: column; gap: 18px; }
.birth-text .serif { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink2); font-style: italic; max-width: 520px; }
.birth-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.birth-form label { font-size: 14px; color: var(--ink2); }
.birth-form > div { display: flex; gap: 10px; flex-wrap: wrap; }
.field { height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font: 500 17px 'Outfit', sans-serif; }
.birth-result { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.birth-result .moon-disc { width: 240px; height: 240px; }
.birth-result .d { font-size: 14px; color: var(--ink2); }
.birth-result .n { font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.birth-result .s { font-size: 15px; color: var(--ink2); }
.birth-result .c { font-size: 15px; color: var(--moon); margin-top: 6px; }
.birth-result > div { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Kalender ---------- */
.cal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-dow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding: 0 4px 10px; }
.cal-cell {
  height: 118px; padding: 12px 14px; border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; color: var(--ink); min-width: 0;
}
.cal-cell:hover { border-color: var(--line2); }
.cal-cell.ev { background: var(--card2); }
.cal-cell.today { border: 2px solid var(--moon); }
.cal-cell.selected { box-shadow: inset 0 0 0 1px var(--cool); }
.cal-cell.out { opacity: .45; }
.cal-cell .top { display: flex; justify-content: space-between; align-items: baseline; }
.cal-cell .top b { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cal-cell .top small { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.cal-cell img { width: 38px; height: 38px; align-self: center; }
.cal-cell.south img { transform: rotate(180deg); }
.cal-cell .evt { min-height: 30px; display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; }
.cal-cell .evt b { color: var(--moon); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cell .evt b.eclipse { color: var(--warn); }
.cal-cell .evt small { color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-week-note { font-size: 14px; color: var(--ink2); margin-top: 12px; display: none; }
.cal-toggle { display: none; }

/* ---------- Nyheter, brev, widget ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.news-grid.no-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid.no-news .side { display: contents; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: 500 14px 'Outfit', sans-serif; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.news-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 20px; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: start; }
.news-item .t { font-size: 15px; color: var(--ink2); padding-top: 3px; }
.news-item .b { display: flex; flex-direction: column; gap: 6px; }
.news-item .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--moon); font-weight: 500; }
.news-item .h { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.news-item .p { font-size: 15px; line-height: 1.5; color: var(--ink2); }
.news-item .src { font-size: 13px; color: var(--ink2); }
.news-item svg { color: var(--ink2); margin-top: 4px; }
.side { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.letter { border-radius: 22px; background: var(--moon); color: var(--on-moon); padding: 32px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.letter > svg { width: 34px; height: 38px; }
.letter h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.letter p { margin: 0; font-size: 16px; line-height: 1.5; }
.letter label { font-size: 14px; font-weight: 500; margin-top: 4px; }
.letter input[type=email] { height: 50px; padding: 0 16px; border-radius: 12px; border: none; background: rgba(255, 255, 255, .85); color: #161925; font: 400 16px 'Outfit', sans-serif; }
.letter button { height: 50px; border-radius: 12px; border: none; background: #10131C; color: #F3F0E8; font: 600 15px 'Outfit', sans-serif; cursor: pointer; }
.letter small { font-size: 13px; opacity: .8; }
.letter .result { font-weight: 600; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.widget-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.widget-card h3 { font-size: 22px; line-height: 1.2; }
.widget-demo { border-radius: 16px; background: #0A0D16; color: #ECE8DC; padding: 16px 18px; display: flex; align-items: center; gap: 16px; border: 1px solid rgba(236, 232, 220, .12); }
.widget-demo img { width: 56px; height: 56px; }
.widget-demo div { display: flex; flex-direction: column; gap: 2px; }
.widget-demo b { font-size: 16px; font-weight: 600; }
.widget-demo span { font-size: 13px; color: #A9AFBF; font-variant-numeric: tabular-nums; }
.widget-demo i { font-size: 11px; letter-spacing: .1em; color: #F2DFA7; font-style: normal; }
.code { display: block; font: 400 12.5px/1.6 ui-monospace, 'SF Mono', Menlo, monospace; background: var(--bg2); color: var(--ink); border-radius: 12px; padding: 12px 14px; word-break: break-all; }

/* ---------- Lär dig + quiz ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card { padding: 14px 14px 24px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
.guide-card > svg, .guide-card > .visual { display: block; width: 100%; height: 200px; border-radius: 14px; }
.guide-card .kicker, .guide-card .t, .guide-card .p { padding: 0 10px; }
.guide-card .t { font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.guide-card .p { font-size: 15px; line-height: 1.5; color: var(--ink2); }
.guide-card > .visual.seq-row, .seq-row { background: #0A0D16; display: flex; align-items: center; justify-content: center; gap: 10px; }
.seq-row img { width: 32px; height: 32px; }
.quiz { margin-top: 32px; border-radius: 28px; border: 1px solid var(--line); background: var(--bg2); padding: 48px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: center; }
.quiz-q { display: flex; flex-direction: column; gap: 16px; }
.quiz-q h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.quiz-q p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink2); min-height: 48px; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; width: 320px; max-width: 100%; }
.progress div { height: 100%; background: var(--moon); transition: width .4s; }
.quiz-opts { display: flex; flex-direction: column; gap: 12px; }
.opt { min-height: 60px; padding: 0 22px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 17px 'Outfit', sans-serif; text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--line2); color: var(--ink); }
.opt small { font-size: 13px; font-weight: 500; }
.opt.right { background: var(--moon); border-color: var(--moon); color: var(--on-moon); }
.opt.wrong { border: 2px solid var(--warn); }
.opt:disabled { cursor: default; }

/* ---------- Detaljer (befintliga verktyg) ---------- */
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dcard { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dcard.span2 { grid-column: span 2; }
.dcard.span3 { grid-column: 1 / -1; }
.dcard h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--moon); font-weight: 500; }
.rows { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.rows dt { color: var(--ink2); min-width: 0; overflow-wrap: anywhere; }
.rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rows dd small { display: block; color: var(--ink2); font-size: .88em; }
.rows.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
.timebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.timebar input[type=date] { height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card2); color: var(--ink); font: inherit; }
.timebar .range { flex: 1; min-width: 180px; }
.timebar output { font-variant-numeric: tabular-nums; min-width: 9em; text-align: right; }
.timebar .tz { color: var(--ink2); font-size: 13px; }
#sky { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
#sky .ring { fill: none; stroke: var(--line2); }
#sky .horizon { fill: color-mix(in srgb, var(--cool) 6%, transparent); stroke: color-mix(in srgb, var(--cool) 60%, transparent); }
#sky .label { fill: var(--ink2); font-size: 13px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
#sky .path { fill: none; stroke: color-mix(in srgb, var(--moon) 55%, transparent); stroke-width: 1.5; stroke-dasharray: 3 3; }
#sky .moon-dot { fill: var(--moon); }
#sky .moon-dot.below { fill: var(--moondark); stroke: var(--ink2); }
#sky .planet { fill: #F0A07A; stroke: var(--bg); stroke-width: 1; }
#sky .planet.below { fill: var(--moondark); }
#sky .planet-label { fill: var(--ink); font-size: 9px; }
#sky .planet-label.below { fill: var(--ink2); }
.day-wrap { position: relative; }
.dcard.span2 .day-wrap { flex: 1; min-height: 220px; display: flex; }
.dcard.span2 #curve { height: auto; flex: 1; min-height: 220px; }
#curve { width: 100%; height: 220px; display: block; }
#curve .below-area { fill: var(--bg2); }
#curve .grid-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
#curve .horizon-line { stroke: color-mix(in srgb, var(--cool) 60%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#curve .alt-line { fill: none; stroke: var(--moon); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
#curve .now-line { stroke: var(--cool); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#curve .ev { stroke: var(--ink2); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
#curve .cloud { fill: var(--ink2); }
.curve-axis { position: relative; height: 22px; color: var(--ink2); font-size: 12px; font-variant-numeric: tabular-nums; }
.curve-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.marks { position: absolute; inset: 0; pointer-events: none; }
.mark { position: absolute; width: 0; height: 0; }
.mark .icon { position: absolute; left: 0; bottom: 6px; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--moon); box-shadow: 0 2px 8px var(--shadow); }
.mark .icon svg { width: 20px; height: 20px; }
.mark .dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--moon); }
.mark .label { position: absolute; left: 0; top: 8px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--bg) 80%, transparent); padding: 0 5px; border-radius: 6px; }
.mark.transit .icon { border-color: var(--cool); }
.mark.edge-l .icon, .mark.edge-l .label { transform: none; left: -6px; }
.mark.edge-r .icon, .mark.edge-r .label { transform: translateX(-100%); left: 6px; }

/* ---------- Sidfot ---------- */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 48px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--moon); }
.foot-grid .h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.foot-grid .serif { margin: 0; font-size: 18px; line-height: 1.5; font-style: italic; color: var(--ink2); max-width: 360px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); flex-wrap: wrap; }

/* ---------- Guidesidor ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 72px 20px 0; }
.article h1 { font-size: 56px; line-height: 1.02; letter-spacing: -.03em; margin: 14px 0 20px; }
.article .lead { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink2); }
.article h2 { font-size: 28px; letter-spacing: -.01em; margin: 40px 0 12px; }
.article p, .article li { font-size: 18px; line-height: 1.65; }
.article li { margin-bottom: 8px; }
.article a.back { color: var(--moon); text-decoration: none; }

/* ---------- Responsivt ---------- */
@media (max-width: 1280px) {
  .wrap { padding: 0 48px; }
  .main-nav { gap: 22px; }
  .hero-grid { grid-template-columns: 400px minmax(0, 1fr); gap: 48px; }
  .moon-disc { width: 360px; height: 360px; }
  .hero h1 { font-size: 72px; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { position: fixed; inset: 88px 0 auto 0; z-index: 19; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; flex-direction: column; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .sky-grid, .learn-grid, .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic.wide, .dcard.span3 { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .birth, .quiz, .news-grid, .news-grid.no-news { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 64px; }
  .mobile-nav { top: 64px; }
  .brand svg { width: 20px; height: 23px; }
  .brand span { font-size: 18px; }
  .header-actions .lang-switch, .header-actions .locate-btn { display: none; }
  .mobile-nav .lang-switch { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  .hero { padding-top: 18px; }
  .hero-grid { gap: 18px; }
  .hero-moon { order: 2; gap: 12px; }
  .hero-text { display: contents; }
  .search { order: 1; }
  .search-box { height: 48px; }
  .search-box .locate-inline { display: block; }
  .phase-block { order: 3; align-items: center; text-align: center; }
  .pill { align-self: center; }
  .moon-disc { width: 250px; height: 250px; }
  .hero h1 { font-size: 46px; line-height: 1; }
  .illum-line { font-size: 18px; }
  .narrative { order: 4; font-size: 18px; text-align: center; }
  .conj { order: 5; text-align: center; margin: 0; }
  .stats { order: 6; }
  .stats > div { padding: 14px 16px; }
  .stats .v { font-size: 22px; }
  .stats .l, .stats .s { font-size: 12px; }
  .hero-credit { display: none; }
  .timetravel { margin-top: 18px; padding: 16px 18px 12px; }
  .tt-head .hint { display: none; }
  .tt-marks span.q { display: none; }
  .section { padding-top: 56px; }
  .h2 { font-size: 32px; line-height: 1.05; letter-spacing: -.02em; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
  .section-head .serif { font-size: 17px; }
  .tonight-card { padding: 14px; gap: 14px; }
  .night-svg text { display: none; }
  .night-axis { display: flex; }
  .legend { gap: 10px 18px; font-size: 12px; }
  .facts { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .facts .v { font-size: 16px; }
  .sky-grid, .learn-grid, .details-grid { grid-template-columns: 1fr; }
  .topic.wide, .dcard.span2, .dcard.span3 { grid-column: auto; }
  .topic { min-height: 0; padding: 12px 12px 18px; }
  .topic h3 { font-size: 21px; }
  .topic.wide { grid-template-columns: 1fr; padding: 12px 12px 18px; gap: 16px; }
  .topic.wide .visual { height: 240px; }
  .topic.wide h3 { font-size: 24px; }
  .lib-moon { width: 190px; height: 190px; }
  .birth { padding: 22px; gap: 20px; border-radius: 20px; }
  .birth h2 { font-size: 26px; }
  .birth-result .moon-disc { width: 180px; height: 180px; }
  .cal-dow, .cal-grid { gap: 4px; }
  .cal-dow { font-size: 10px; letter-spacing: .04em; padding: 0 0 6px; text-align: center; }
  .cal-cell { height: auto; min-height: 84px; padding: 6px 4px; align-items: center; gap: 4px; }
  .cal-cell .top { flex-direction: column; align-items: center; }
  .cal-cell .top small, .cal-cell .evt small { display: none; }
  .cal-cell img { width: 28px; height: 28px; }
  .cal-cell .evt { min-height: 0; font-size: 10px; text-align: center; }
  .cal-grid.week .cal-cell:not(.in-week), .cal-grid.week .cal-empty { display: none; }
  .cal-toggle { display: inline-flex; }
  .cal-grid.week ~ .cal-week-note { display: block; }
  .news-item { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .news-item svg, .news-item .p { display: none; }
  .news-item .h { font-size: 17px; }
  .letter { padding: 22px; }
  .quiz { padding: 22px; gap: 20px; border-radius: 20px; }
  .quiz-q h2 { font-size: 24px; }
  .opt { min-height: 52px; font-size: 15px; padding: 0 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .article h1 { font-size: 36px; }
  .article p, .article li { font-size: 17px; }
}

/* ---------- Undersida: Månens faser ---------- */
@keyframes fzFlow { to { stroke-dashoffset: -0.4px; } }
.fz-rays { stroke-dasharray: 0.08px 0.12px; animation: fzFlow 1.4s linear infinite; }
@keyframes fzShine { 0%, 100% { opacity: .1; } 50% { opacity: .22; } }
.fz-intro { padding-top: 56px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--ink2); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--moon); }
.crumbs [aria-current] { color: var(--ink); }
.fz-intro h1 { font-size: 88px; line-height: .98; letter-spacing: -.035em; max-width: 1060px; text-wrap: balance; }
.fz-lead { margin: 0; font-size: 25px; line-height: 1.45; font-style: italic; color: var(--ink2); max-width: 820px; text-wrap: pretty; }
.fz-byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink2); }
.fz-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; color: var(--moon); }

.fz-stage { border-radius: 28px; border: 1px solid var(--line); background: #0A0D16; color: #ECE8DC; overflow: hidden; display: grid; grid-template-columns: minmax(0, 700fr) minmax(0, 500fr); }
.fz-top { position: relative; border-right: 1px solid rgba(236, 232, 220, .1); aspect-ratio: 7 / 6; }
.fz-top svg { display: block; width: 100%; height: 100%; }
.fz-label { position: absolute; left: 28px; top: 24px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #A9AFBF; }
.fz-view .fz-label { position: static; }
.fz-caption { position: absolute; left: 28px; bottom: 24px; font-size: 14px; color: #A9AFBF; max-width: 38%; line-height: 1.5; }
.fz-view { padding: 32px 40px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.fz-now { display: flex; align-items: center; gap: 28px; }
.fz-disc { width: 200px; height: 200px; border-radius: 50%; box-shadow: 0 0 80px 10px rgba(242, 223, 167, .12); flex-shrink: 0; }
.fz-disc img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.fz-now-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fz-now-text .n { font-size: 38px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.fz-now-text .l { font-size: 18px; color: #F2DFA7; }
.fz-now-text .d { font-size: 15px; color: #A9AFBF; }
.fz-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(236, 232, 220, .1); border-radius: 14px; overflow: hidden; }
.fz-facts > div { background: #0F1422; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.fz-facts span { font-size: 12px; color: #A9AFBF; }
.fz-facts b { font-size: 16px; font-weight: 500; line-height: 1.3; }
.fz-controls { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.fz-play { width: 48px; height: 48px; flex-shrink: 0; border-radius: 24px; border: none; background: #F2DFA7; color: #171308; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fz-play .i-play, .fz-play.paused .i-pause { display: none; }
.fz-play.paused .i-play { display: block; }
.fz-range { flex-grow: 1; --tt-track: linear-gradient(90deg, #E6E1D3 0%, #1E2436 34%, #E6E1D3 86%, #E6E1D3 90%, #1E2436 100%); }
.fz-range::-webkit-slider-thumb { border-color: #0A0D16; background: #F2DFA7; box-shadow: 0 0 0 1px #F2DFA7, 0 0 28px rgba(242, 223, 167, .16); }
.fz-range::-moz-range-thumb { border-color: #0A0D16; background: #F2DFA7; }
.fz-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fz-chip { min-height: 44px; padding: 6px 8px; border-radius: 12px; display: flex; align-items: center; gap: 8px; font: 500 13px 'Outfit', sans-serif; cursor: pointer; background: transparent; color: #ECE8DC; border: 1px solid rgba(236, 232, 220, .2); min-width: 0; }
.fz-chip img { width: 20px; height: 20px; flex: none; }
.fz-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-chip.on { background: #F2DFA7; color: #171308; border-color: #F2DFA7; }

.fz-body { padding-top: 96px; display: grid; grid-template-columns: 220px minmax(0, 680px) minmax(0, 1fr); gap: 60px; align-items: start; }
.fz-toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; padding-top: 6px; border-left: 1px solid var(--line); }
.fz-toc .h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); padding: 0 0 12px 18px; }
.fz-toc a { text-decoration: none; padding: 8px 0 8px 18px; color: var(--ink2); border-left: 2px solid transparent; margin-left: -1px; }
.fz-toc a:hover { color: var(--ink); }
.fz-toc a.on { color: var(--ink); border-left-color: var(--moon); }
.fz-article { display: flex; flex-direction: column; gap: 26px; font-size: 20px; line-height: 1.68; min-width: 0; }
.fz-article h2 { margin: 30px 0 0; font-family: 'Outfit', sans-serif; font-size: 36px; line-height: 1.1; letter-spacing: -.02em; scroll-margin-top: 110px; }
.fz-article h2:first-child { margin-top: 0; }
.fz-article p { margin: 0; text-wrap: pretty; }
.fz-article figure { margin: 0; }
.fz-two, .fz-three { display: grid; gap: 16px; font-family: 'Outfit', sans-serif; }
.fz-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fz-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fz-two figure { border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.fz-two svg { display: block; width: 100%; height: 130px; }
.fz-two figcaption, .fz-fig figcaption { font-size: 15px; line-height: 1.45; color: var(--ink2); }
.fz-two figcaption strong { color: var(--ink); }
.fz-three > div { border-radius: 18px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.fz-three img { width: 64px; height: 64px; }
.fz-three b { font-size: 15px; }
.fz-three span { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.fz-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; font-family: 'Outfit', sans-serif; padding: 22px 18px; border-radius: 18px; }
.fz-strip > div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.fz-strip img { width: 44px; height: 44px; }
.fz-strip .n { font-size: 12px; line-height: 1.25; font-weight: 500; }
.fz-strip .d { font-size: 11px; color: var(--ink2); }
.fz-fig { border-radius: 18px; padding: 20px; font-family: 'Outfit', sans-serif; display: flex; flex-direction: column; gap: 12px; }
.fz-fig svg { display: block; width: 100%; height: auto; }
.fz-table { border-radius: 18px; font-family: 'Outfit', sans-serif; font-size: 15px; overflow: hidden; }
.fz-table .tr { display: grid; grid-template-columns: 44px 1.3fr .8fr 1.4fr .8fr; gap: 14px; padding: 12px 20px; align-items: center; border-top: 1px solid var(--line); }
.fz-table .th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); border-top: none; padding: 14px 20px; }
.fz-table img { width: 28px; height: 28px; }
.fz-table .nm { font-weight: 500; }
.fz-article blockquote { margin: 16px 0; padding: 0; font-size: 34px; line-height: 1.3; font-style: italic; color: var(--moon); text-wrap: balance; }
.fz-shine { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; align-items: center; }
.fz-shine-img { position: relative; width: 200px; height: 200px; border-radius: 20px; background: #0A0D16; }
.fz-shine-img img { position: absolute; left: 20px; top: 20px; width: 160px; height: 160px; }
.fz-shine-img .fz-earthshine { filter: grayscale(1); mix-blend-mode: screen; animation: fzShine 4s ease-in-out infinite; }
.fz-aside { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; position: sticky; top: 110px; }
.fz-nowcard { border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.fz-nowcard > div { display: flex; align-items: center; gap: 12px; }
.fz-nowcard img { width: 44px; height: 44px; }
.fz-nowcard > div > span { display: flex; flex-direction: column; }
.fz-nowcard b { font-size: 16px; font-weight: 600; }
.fz-nowcard small { font-size: 13px; color: var(--ink2); }
.fz-nowcard a { font-size: 14px; color: var(--moon); text-decoration: none; min-height: 32px; display: flex; align-items: center; }
.fz-didyou { border-radius: 18px; border: 1px dashed var(--line2); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.fz-didyou .h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.fz-didyou p { margin: 0; font-size: 15px; line-height: 1.5; }
.fz-quiz { margin-top: 0; grid-template-columns: minmax(0, 1fr) 440px; padding: 44px 56px; }
.fz-quiz h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.02em; }
.fz-more-h { font-size: 40px; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 28px; }
.fz-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fz-more a { padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.fz-more b { font-size: 22px; font-weight: 600; line-height: 1.2; }
.fz-more .muted { font-size: 15px; line-height: 1.5; }
.fz-letter { margin-top: 32px; border-radius: 22px; background: var(--moon); color: var(--on-moon); padding: 28px 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 12px 32px; align-items: center; }
.fz-letter > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.fz-letter > div:first-child b { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.fz-letter .row { display: flex; gap: 10px; position: relative; }
.fz-letter input[type=email] { flex-grow: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 12px; border: none; background: rgba(255, 255, 255, .85); color: #161925; font: 400 16px 'Outfit', sans-serif; }
.fz-letter button { height: 50px; padding: 0 22px; border-radius: 12px; border: none; background: #10131C; color: #F3F0E8; font: 600 15px 'Outfit', sans-serif; cursor: pointer; }
.fz-letter .result { grid-column: 1 / -1; margin: 0; font-weight: 600; }

@media (max-width: 1280px) {
  .fz-body { grid-template-columns: 200px minmax(0, 1fr); }
  .fz-aside { grid-column: 2; position: static; flex-direction: row; }
  .fz-aside > * { flex: 1; }
  .fz-intro h1 { font-size: 72px; }
}
@media (max-width: 1100px) {
  .fz-stage { grid-template-columns: 1fr; }
  .fz-top { border-right: none; border-bottom: 1px solid rgba(236, 232, 220, .1); }
  .fz-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .fz-toc { display: none; }
  .fz-aside { grid-column: auto; }
  .fz-quiz { grid-template-columns: 1fr; }
  .fz-letter { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fz-intro { padding-top: 28px; gap: 16px; }
  .fz-intro h1 { font-size: 40px; line-height: 1.02; }
  .fz-lead { font-size: 19px; }
  .fz-top { aspect-ratio: 7 / 6; }
  .fz-label { left: 16px; top: 14px; }
  .fz-caption { position: static; display: block; padding: 0 16px 16px; font-size: 13px; }
  .fz-top { aspect-ratio: auto; }
  .fz-top svg { height: auto; aspect-ratio: 7 / 6; }
  .fz-view { padding: 20px 16px; gap: 16px; }
  .fz-now { gap: 16px; }
  .fz-disc { width: 120px; height: 120px; }
  .fz-now-text .n { font-size: 24px; }
  .fz-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .fz-chip { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 11px; }
  .fz-body { padding-top: 56px; }
  .fz-article { font-size: 18px; gap: 20px; }
  .fz-article h2 { font-size: 28px; margin-top: 16px; }
  .fz-two, .fz-three { grid-template-columns: 1fr; }
  .fz-three > div { flex-direction: row; text-align: left; align-items: center; }
  .fz-three > div b { min-width: 110px; }
  .fz-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; padding: 16px 10px; }
  .fz-table .tr { grid-template-columns: 28px 1.2fr .6fr 1.3fr .6fr; gap: 8px; padding: 10px 12px; font-size: 13px; }
  .fz-table .th { font-size: 10px; letter-spacing: .04em; }
  .fz-article blockquote { font-size: 24px; }
  .fz-shine { grid-template-columns: 1fr; justify-items: center; }
  .fz-aside { flex-direction: column; }
  .fz-quiz { padding: 22px; }
  .fz-quiz h2 { font-size: 24px; }
  .fz-more { grid-template-columns: 1fr; }
  .fz-more-h { font-size: 28px; }
  .fz-letter { padding: 22px; }
  .fz-letter .row { flex-direction: column; }
}

/* ---------- Undersida: Månkalender ---------- */
.kc-intro { padding-top: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.kc-intro-text { display: flex; flex-direction: column; gap: 16px; }
.kc-intro h1 { font-size: 88px; line-height: .95; letter-spacing: -.035em; }
.kc-lead { margin: 0; font-size: 21px; line-height: 1.45; font-style: italic; color: var(--ink2); max-width: 620px; }
.kc-intro-side { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.kc-sub { height: 48px; padding: 0 20px; border-radius: 24px; font-size: 15px; }
.kc-tz { font-size: 13px; text-align: right; }
.kc-link { border: none; background: none; padding: 0; color: var(--moon); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.kc-search { position: absolute; right: 0; top: 100%; margin-top: 10px; width: 340px; z-index: 5; }
.kc-search .field { width: 100%; height: 48px; font-size: 16px; }
.kc-search .suggest { top: 54px; }
.kc-main { padding-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.kc-month { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.kc-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.kc-nav { display: flex; align-items: center; gap: 10px; }
.kc-nav h2 { min-width: 270px; text-align: center; font-size: 36px; letter-spacing: -.02em; }
.kc-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.kc-filter { height: 40px; padding: 0 14px; border-radius: 20px; display: flex; align-items: center; gap: 8px; font: 500 14px 'Outfit', sans-serif; cursor: pointer;
  background: transparent; color: var(--ink2); border: 1px dashed var(--line2); }
.kc-filter[aria-pressed="true"] { background: var(--card2); color: var(--ink); border-style: solid; }
.kc-filter .dot { width: 9px; height: 9px; border-radius: 50%; opacity: .35; }
.kc-filter[aria-pressed="true"] .dot { opacity: 1; }
.dot.phase { background: var(--moon); } .dot.spring { background: var(--cool); } .dot.super { background: var(--warn); }
.kc-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding: 0 4px; }
.kc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.kc-cell { height: 124px; padding: 12px 14px; border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s; min-width: 0; text-align: left; }
.kc-cell:hover { border-color: var(--line2); }
.kc-cell.ev, .kc-cell.sel { background: var(--card2); }
.kc-cell.today { border: 2px dashed var(--line2); }
.kc-cell.sel { border: 2px solid var(--moon); }
.kc-cell.out { opacity: .42; }
.kc-cell:disabled { cursor: default; }
.kc-cell .top { display: flex; justify-content: space-between; align-items: baseline; width: 100%; }
.kc-cell .top b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc-cell .top small { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.kc-cell img { width: 46px; height: 46px; align-self: center; }
.kc-cell .evt { min-height: 32px; display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; }
.kc-cell .evt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-cell .evt b.phase { color: var(--moon); } .kc-cell .evt b.spring { color: var(--cool); } .kc-cell .evt b.super, .kc-cell .evt b.eclipse { color: var(--warn); }
.kc-cell .evt small { color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-sel { border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 110px; }
.kc-sel-disc { align-self: center; width: 200px; height: 200px; border-radius: 50%; }
.kc-sel-disc img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.kc-sel-t { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.kc-sel-t b { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.kc-sel-t .muted { font-size: 15px; }
.kc-sel-t .accent { font-size: 15px; }
.kc-sel .list > * { padding: 10px 0; }
.kc-sel-ev { border-radius: 14px; background: var(--card2); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kc-sel-ev b { font-size: 16px; }
.kc-sel-ev .muted { font-size: 13px; }
.kc-sel-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kc-sel-btns .btn { border-radius: 12px; }
.kc-sel-btns [aria-disabled="true"] { opacity: .4; pointer-events: none; }
.kc-year-sec { padding-top: 104px; }
.kc-h2 { font-size: 48px; }
.kc-year-note { font-size: 14px; max-width: 320px; text-align: right; }
.kc-year { position: relative; display: grid; grid-template-columns: repeat(var(--n, 13), minmax(0, 1fr)); gap: 8px; }
.kc-year::before { content: ''; position: absolute; left: 0; right: 0; top: 43px; height: 1px; background: var(--line2); }
.kc-fm { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 12px 4px 14px; border-radius: 14px; border: 1px solid transparent; min-width: 0; }
.kc-fm.past { opacity: .5; }
.kc-fm.next { background: var(--card2); border-color: var(--moon); }
.kc-fm .d { font-size: 12px; color: var(--ink2); letter-spacing: .04em; }
.kc-fm .m { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #FBF8EF, #C9C3B5 70%); }
.kc-fm .m.big { width: 30px; height: 30px; }
.kc-fm .m.red { background: radial-gradient(circle at 50% 50%, #C8643C, #7A2E1C 75%); }
.kc-fm.next .m { box-shadow: 0 0 24px var(--glow); }
.kc-fm b { font-size: 13px; line-height: 1.2; }
.kc-fm .n { font-size: 11px; line-height: 1.25; color: var(--moon); }
.kc-bottom { padding-top: 104px; display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; }
.kc-up { display: grid; grid-template-columns: 48px 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.kc-up img { width: 36px; height: 36px; }
.kc-up .d, .kc-up .t { font-size: 15px; color: var(--ink2); }
.kc-up b { font-size: 19px; font-weight: 600; }
.kc-sub-m { display: none; }
.kc-howto { border-radius: 24px; background: var(--bg2); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.kc-howto > div { display: flex; gap: 14px; }
.kc-howto .ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--moon); }
.kc-howto p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.kc-howto strong { color: var(--ink); }
.kc-more { margin-top: 4px; font-size: 15px; color: var(--moon); text-decoration: none; min-height: 44px; display: flex; align-items: center; gap: 8px; }

@media (max-width: 1280px) {
  .kc-intro h1 { font-size: 72px; }
  .kc-year { grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 20px; }
  .kc-year::before { display: none; }
}
@media (max-width: 1100px) {
  .kc-main, .kc-bottom { grid-template-columns: 1fr; }
  .kc-sel { position: static; }
  .kc-intro { flex-direction: column; align-items: flex-start; }
  .kc-intro-side { align-items: flex-start; }
  .kc-tz { text-align: left; }
  .kc-search { left: 0; right: auto; }
}
@media (max-width: 760px) {
  .kc-intro { padding-top: 22px; gap: 16px; }
  .kc-intro h1 { font-size: 44px; line-height: 1; }
  .kc-lead { font-size: 17px; }
  .kc-intro-side .kc-sub { display: none; }
  .kc-search { width: 100%; }
  .kc-main { padding-top: 24px; gap: 20px; }
  .kc-nav h2 { min-width: 0; font-size: 24px; }
  .kc-nav { gap: 6px; }
  .kc-bar { gap: 12px; }
  .kc-filter { height: 36px; padding: 0 10px; font-size: 13px; }
  .kc-dow { gap: 4px; font-size: 10px; letter-spacing: .04em; padding: 0; text-align: center; }
  .kc-grid { gap: 4px; }
  .kc-cell { height: auto; min-height: 76px; padding: 6px 3px; align-items: center; gap: 2px; }
  .kc-cell .top { flex-direction: column; align-items: center; }
  .kc-cell .top b { font-size: 14px; }
  .kc-cell.today .top b { font-size: 0; }
  .kc-cell.today .top b::first-letter { font-size: 14px; }
  .kc-cell .top small, .kc-cell .evt small { display: none; }
  .kc-cell img { width: 28px; height: 28px; }
  .kc-cell .evt { min-height: 0; font-size: 9px; text-align: center; width: 100%; }
  .kc-sel { padding: 20px; gap: 14px; display: grid; grid-template-columns: 110px minmax(0, 1fr); }
  .kc-sel > .kicker, .kc-sel .list, .kc-sel-ev, .kc-sel-btns { grid-column: 1 / -1; }
  .kc-sel-disc { width: 110px; height: 110px; }
  .kc-sel-t { text-align: left; justify-content: center; }
  .kc-sel-t b { font-size: 22px; }
  .kc-year-sec, .kc-bottom { padding-top: 56px; }
  .kc-h2 { font-size: 32px; }
  .kc-year-note { text-align: left; }
  .kc-year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kc-up { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; }
  .kc-up .d { grid-column: 2; grid-row: 2; font-size: 13px; }
  .kc-up b { grid-column: 2; grid-row: 1; font-size: 16px; }
  .kc-up img { grid-row: 1 / span 2; width: 30px; height: 30px; }
  .kc-up .t { grid-row: 1 / span 2; font-size: 13px; }
  .kc-sub-m { display: inline-flex; margin-top: 18px; width: 100%; }
}
