/* Jaktsiden */
.jakt .j-alt { border-top: 1px solid var(--line); }
.jakt .j-label { display: block; font: 500 .75rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem 0 .45rem; }
.jakt .j-muted { color: var(--muted); }
.jakt .j-small { font-size: .88rem; margin-top: .75rem; }
.jakt .j-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.jakt input[type="search"], .jakt select {
  font: 400 1rem/1.2 var(--f-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px; padding: .75rem .85rem; min-width: 0;
}
.jakt input[type="search"] { flex: 1 1 200px; }
.jakt select { max-width: 100%; }
.jakt .btn { border: 0; cursor: pointer; }
.jakt .j-place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .jakt .j-place { grid-template-columns: 1fr; } }
.jakt .j-map { height: 340px; border-radius: 6px; border: 1px solid var(--line); z-index: 0; background: var(--surface); }
.jakt .j-actions { margin-top: .75rem; }
.jakt .j-chip-btn, .jakt .j-fav button {
  font: 500 .9rem/1 var(--f-body); color: var(--ink); background: var(--surface); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem .85rem;
}
.jakt .j-chip-btn:hover, .jakt .j-fav button:hover { border-color: var(--accent); color: var(--accent); }
.jakt .j-favs { display: flex; flex-wrap: wrap; gap: .4rem; }
.jakt .j-fav { display: inline-flex; }
.jakt .j-fav button:first-child { border-radius: 999px 0 0 999px; border-right: 0; }
.jakt .j-fav .x { border-radius: 0 999px 999px 0; padding-inline: .6rem; color: var(--muted); }
.jakt .j-fav.on button { border-color: var(--accent); }
.jakt .j-fav.on button:first-child { background: var(--accent); color: #fff; }
.jakt .j-coords { font: 400 .85rem/1.4 var(--f-mono); color: var(--muted); margin: 1rem 0 0; }
.jakt .j-hits { list-style: none; margin: .5rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); max-height: 260px; overflow: auto; }
.jakt .j-hits li { border-bottom: 1px solid var(--line); }
.jakt .j-hits li:last-child { border-bottom: 0; }
.jakt .j-hits li.j-muted { padding: .7rem .85rem; }
.jakt .j-hits button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: .7rem .85rem; cursor: pointer; }
.jakt .j-hits button:hover, .jakt .j-hits button:focus-visible { background: var(--bg); }

.jakt .j-days { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.jakt .j-days button {
  flex: 0 0 auto; display: grid; justify-items: center; gap: .15rem; min-width: 3.6rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .4rem; cursor: pointer;
}
.jakt .j-days button[aria-selected="true"] { background: var(--deep); color: var(--deep-ink); border-color: var(--deep); }
.jakt .j-days .d1 { font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.jakt .j-days .d2 { font: 600 1rem/1.1 var(--f-display); }
.jakt .j-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin-top: 1rem; }
.jakt .j-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.15rem; position: relative; }
.jakt .j-card-t { font: 600 1.25rem/1.1 var(--f-display); margin-bottom: .6rem; display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.jakt .j-card dl { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: 0; font-variant-numeric: tabular-nums; }
.jakt .j-card dt { color: var(--muted); }
.jakt .j-card dd { margin: 0; text-align: right; }

.jakt .moon-dark { fill: var(--line); }
.jakt .moon-lit { fill: #e9c46a; }
.jakt svg.moon { vertical-align: middle; flex: 0 0 auto; }

.jakt .j-status:empty { display: none; }
.jakt .j-status { padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 1rem; }
.jakt .j-status.feil { border-left: 3px solid var(--accent); }
.jakt .j-chart { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .5rem; }
.jakt .j-chart:empty { display: none; }
.jakt .j-chart svg { display: block; width: 100%; height: auto; }
.jakt .lb.dag { fill: var(--surface); }
.jakt .lb.civil { fill: #f3dcc4; }
.jakt .lb.naut { fill: #c7d3dd; }
.jakt .lb.night { fill: #9fb1be; }
.jakt .gl { stroke: var(--ink); stroke-opacity: .1; stroke-width: 1; }
.jakt .ax { font: 400 12px var(--f-mono); fill: var(--muted); }
.jakt .fill { fill: var(--focus); fill-opacity: .14; }
.jakt .line { fill: none; stroke: var(--focus); stroke-width: 2.5; stroke-linejoin: round; }
.jakt .pt-lav { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.jakt .pt-hoy { fill: var(--deep); stroke: var(--surface); stroke-width: 2; }
.jakt .pl { font: 600 13px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.jakt .now { stroke: var(--accent); stroke-dasharray: 4 3; stroke-width: 1.5; }
.jakt .nowt { font: 500 11px var(--f-mono); fill: var(--accent); }
.jakt .j-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.jakt i.lg { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; border: 1px solid var(--line); }
.jakt i.lg.dag { background: var(--surface); }
.jakt i.lg.civil { background: #f3dcc4; }
.jakt i.lg.naut { background: #c7d3dd; }
.jakt i.lg.night { background: #9fb1be; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jakt .lb.civil, :root:not([data-theme="light"]) .jakt i.lg.civil { fill: #3a2f27; background: #3a2f27; }
  :root:not([data-theme="light"]) .jakt .lb.naut, :root:not([data-theme="light"]) .jakt i.lg.naut { fill: #16262e; background: #16262e; }
  :root:not([data-theme="light"]) .jakt .lb.night, :root:not([data-theme="light"]) .jakt i.lg.night { fill: #050d10; background: #050d10; }
}
:root[data-theme="dark"] .jakt .lb.civil, :root[data-theme="dark"] .jakt i.lg.civil { fill: #3a2f27; background: #3a2f27; }
:root[data-theme="dark"] .jakt .lb.naut, :root[data-theme="dark"] .jakt i.lg.naut { fill: #16262e; background: #16262e; }
:root[data-theme="dark"] .jakt .lb.night, :root[data-theme="dark"] .jakt i.lg.night { fill: #050d10; background: #050d10; }

.jakt .j-extremes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .6rem; margin-top: 1rem; }
.jakt .j-ext { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--deep); border-radius: 4px; padding: .65rem .85rem; }
.jakt .j-ext.lav { border-left-color: var(--accent); }
.jakt .j-ext .tp { font: 500 .75rem/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.jakt .j-ext .tm { font: 700 1.3rem/1 var(--f-display); grid-row: span 2; text-align: right; align-self: center; }
.jakt .j-ext .lv { font-variant-numeric: tabular-nums; }
.jakt .j-ext .lt { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }

.jakt .j-window { margin-bottom: 1rem; }
.jakt .j-window .j-label { margin: 0; }
.jakt .j-tablewrap { overflow-x: auto; }
.jakt table tr.god td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.jakt table tr.darlig td { color: var(--muted); }
.jakt #fjaere-tabell tbody tr { cursor: pointer; }
.jakt #fjaere-tabell tbody tr:hover td { background: var(--bg); }
.jakt .ok { color: var(--accent); font-weight: 700; }
.jakt .tag { font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; padding: .2rem .4rem; border-radius: 3px; background: var(--deep); color: var(--deep-ink); vertical-align: 1px; }
.jakt td.mn { white-space: nowrap; }
.jakt td.mn span { margin-left: .35rem; font-size: .85rem; }

.jakt .j-moonnow { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.jakt .j-moonnow .big { font: 700 1.8rem/1.1 var(--f-display); }
.jakt .j-moonnow .nf { margin-top: .35rem; }
.jakt .j-moonstrip { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.jakt .ms { flex: 0 0 auto; display: grid; justify-items: center; gap: .2rem; min-width: 3.1rem; padding: .45rem .3rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.jakt .ms.key { border-color: var(--accent); }
.jakt .ms .d1 { font: 500 .68rem/1 var(--f-mono); text-transform: uppercase; color: var(--muted); }
.jakt .ms .d2 { font: 600 .9rem/1 var(--f-display); }
.jakt .ms .fx { font: 500 .62rem/1.1 var(--f-mono); color: var(--accent); text-align: center; max-width: 3.4rem; }
.jakt #mane-faser td svg { margin-right: .3rem; }
.jakt .notice { margin-bottom: 2.5rem; }
@media (max-width: 600px) {
  .jakt #fjaere-tabell th, .jakt #fjaere-tabell td { padding: .55rem .4rem; white-space: nowrap; }
  .jakt #fjaere-tabell td.mn span { display: none; }
  .jakt #fjaere-tabell .tag { display: none; }
  .jakt #fjaere-tabell tr.stor td:nth-child(3) b { color: var(--accent); }
}

.jakt .j-datebar { margin-bottom: 1rem; }
.jakt .j-datebar .j-label { margin: 0 .25rem 0 0; }
.jakt input[type="date"] { font: 500 1rem/1.2 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: .5rem .7rem; }
.jakt [hidden] { display: none !important; }

.jakt #dato { font: 500 1rem/1.2 var(--f-mono); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: .5rem .7rem; width: 9.5rem; }
.jakt #dato[aria-invalid="true"] { border-color: var(--accent); }
.jakt .j-cal { position: relative; display: inline-flex; }
.jakt .j-cal input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.jakt .j-cal input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.jakt .j-cal:focus-within .j-chip-btn { outline: 2px solid var(--focus); outline-offset: 2px; }
.jakt .j-datofeil { color: var(--accent); font-size: .9rem; width: 100%; }
.jakt .j-datofeil:empty { display: none; }

/* Vær */
.jakt .vpil { vertical-align: middle; fill: var(--deep); flex: 0 0 auto; }
:root[data-theme="dark"] .jakt .vpil { fill: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .jakt .vpil { fill: var(--ink); } }
.jakt .vind { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.jakt .vind .kast { color: var(--muted); font-size: .85em; }
.jakt .vind.sterk b, .jakt .wv.sterk { color: var(--accent); }
.jakt .j-wxkey { text-transform: none; letter-spacing: 0; font-family: var(--f-body); margin-left: .4rem; }
.jakt .j-wxstrip { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.jakt .j-wxstrip > p { margin: 0; }
.jakt .wx { flex: 0 0 auto; display: grid; justify-items: center; gap: .25rem; min-width: 3.6rem; padding: .5rem .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-variant-numeric: tabular-nums; }
.jakt .wx.fj { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.jakt .wt { font: 500 .72rem/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.jakt .wv { font: 700 1.05rem/1 var(--f-display); white-space: nowrap; }
.jakt .wv small { font: 400 .75rem var(--f-body); color: var(--muted); margin-left: .15rem; }
.jakt .wn { font-size: .78rem; color: var(--muted); min-height: 1em; white-space: nowrap; }
.jakt .wn.vaatt { color: var(--focus); font-weight: 600; }
.jakt .wtmp { font-size: .85rem; }
.jakt .wfj { font: 500 .62rem/1 var(--f-mono); text-transform: uppercase; color: var(--accent); }
.jakt td.vd { white-space: nowrap; }
@media (max-width: 600px) { .jakt #fjaere-tabell .vd .vpil { width: 16px; height: 16px; } }
@media (max-width: 600px) {
  .jakt #fjaere-tabell .ltx { display: none; }
  .jakt #fjaere-tabell .vd .vind { font-size: .9rem; }
}

/* Månehøyde */
.jakt .gl.hz { stroke-opacity: .55; stroke-width: 1.5; }
.jakt .mh-under { fill: var(--ink); fill-opacity: .06; }
.jakt .mh-line { fill: none; stroke: #c99a1e; stroke-width: 2.5; stroke-linejoin: round; }
.jakt .mh-pt { fill: #e9c46a; stroke: var(--surface); stroke-width: 2; }
.jakt .mh-dir { font: 500 11px var(--f-mono); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.jakt #mane-hoyde { margin-bottom: .5rem; }
.jakt .j-tiny { font-size: .78rem; }
