/* EasyDays, første versjon. Oppsettet er målt på Fitt Insider (se ../fitt/FITT-NETTSIDE.md).
   Skrift: Avenir Next og Avenir først (Apple-enheter), Nunito Sans fra Google Fonts som reserve. */

:root {
  --font: "Avenir Next", Avenir, "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --paper: #F4F4F1;      /* vår nøytrale i stedet for Fitts krem #FFFCF4 */
  --white: #FFFFFF;
  --ink: #000000;
  --grey-text: #575757;  /* 7:1 på hvitt, 6.5:1 på papir */
  --rule: #E3E3E0;
  --volt: #D4FF3A;
  --z1: #9be7b4; --z2: #7cc9f2; --z3: #c6e82f; --z4: #ffad4a; --z5: #f2665a;
  --bar-grey: #BDBDBA;
  --wrap: 1200px;
  --narrow: 707px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.2px; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); border: 1px solid var(--ink); padding: 8px 14px; z-index: 100; border-radius: 19px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.narrow { width: min(var(--narrow), 100% - 40px); margin: 0 auto; }

/* Ordmerket */
.wordmark { font-weight: 700; letter-spacing: -0.03em; text-decoration: none; line-height: 1; white-space: nowrap; }

/* Toppmenyen: 77 px, svart strek under */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--ink); }
.site-header .wrap { height: 77px; display: flex; align-items: center; gap: 40px; }
.site-header .wordmark { font-size: 26px; margin-right: auto; }
.main-nav { display: flex; gap: 40px; }
.main-nav a { font-size: 17px; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 25px; border: 1px solid var(--ink); border-radius: 19px; font-weight: 700; font-size: 16px; letter-spacing: -0.2px; text-decoration: none; background: var(--white); color: var(--ink); cursor: pointer; font-family: inherit; }
.pill--volt { background: var(--volt); }
.burger { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; background: none; border: 0; padding: 0; cursor: pointer; margin-left: -10px; }
@media (max-width: 1050px) { .main-nav { display: none; } .site-header .wrap { gap: 18px; } }
@media (max-width: 650px) { .site-header .wrap { height: 57px; } .site-header .wordmark { font-size: 22px; } .site-header .pill { height: 34px; padding: 0 18px; font-size: 15px; } }

/* Skuffen fra høyre, 450 bred */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(450px, 100%); background: var(--paper); z-index: 70; border-left: 1px solid var(--ink); padding: 24px 40px 40px; overflow-y: auto; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-close { display: block; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; font-size: 30px; line-height: 1; }
.drawer ul { list-style: none; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--ink); }
.drawer li a { display: block; padding: 7px 0; text-decoration: none; }
.drawer .big a { font-size: 26px; font-weight: 700; letter-spacing: -0.2px; }
.drawer .small a { font-size: 17px; }
.drawer .copy { font-size: 12px; color: var(--grey-text); margin-top: 24px; }

/* Påmelding: pille 58 px, rund volt knapp inni */
.signup { position: relative; width: 100%; max-width: 500px; }
.signup input { width: 100%; height: 58px; border: 1px solid var(--ink); border-radius: 40px; background: var(--white); padding: 0 66px 0 25px; font: inherit; font-size: 16px; color: var(--ink); }
.signup input::placeholder { color: #3d3d3d; opacity: 1; }
.signup button { position: absolute; right: 6px; top: 6px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--volt); display: grid; place-items: center; cursor: pointer; }
.signup--plain button { background: transparent; width: 56px; right: 10px; }
@media (max-width: 650px) { .signup input { height: 48px; font-size: 15px; padding-right: 58px; } .signup button { width: 38px; height: 38px; top: 5px; right: 5px; } }

/* Hero, sentrert, uten bilde */
.hero { text-align: center; padding: 129px 0 111px; }
.hero h1 { font-size: 40px; line-height: 1.04; max-width: 640px; margin: 0 auto; }
.hero p { max-width: 480px; margin: 14px auto 0; }
.hero .signup { margin: 42px auto 0; }
@media (max-width: 650px) { .hero { padding: 56px 0 56px; } .hero h1 { font-size: 33px; } .hero .signup { margin-top: 26px; } }

/* Seksjonshode: tittel, View All, svart strek */
.section { margin-top: 100px; }
.section:first-of-type { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: 25px; }
.section-head h2 { font-size: 35px; line-height: 1; }
.view-all { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 500; }
.view-all:hover span { text-decoration: underline; }
@media (max-width: 650px) { .section { margin-top: 64px; } .section-head h2 { font-size: 23px; } .section-head { padding-bottom: 12px; } }

/* Kortrutenettet: 4 x 282 med 24 mellom */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 38px 24px; }
@media (max-width: 950px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .cards { grid-template-columns: 1fr; gap: 36px; } }
.card { text-decoration: none; display: block; }
.card .thumb { aspect-ratio: 282 / 158; overflow: hidden; border-radius: 4px; background: #ddd; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.meta { font-size: 12px; line-height: 18px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.card .meta { margin-top: 12px; }
.card h3 { font-size: 18px; line-height: 19px; margin-top: 7px; font-weight: 700; }
.card .kicker { font-size: 13px; margin-top: 5px; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 650px) { .card .thumb { aspect-ratio: 3 / 2; } .card h3 { font-size: 19px; line-height: 22px; } }

/* Listerader */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 76px 150px 1fr auto; align-items: center; gap: 0 36px; padding: 28px 30px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.row img { width: 76px; height: 76px; border-radius: 9px; object-fit: cover; border: 1px solid #c9c9c6; }
.row .title { font-size: 17px; font-weight: 700; line-height: 1.15; }
.row .sub { font-size: 14px; margin-top: 4px; font-weight: 400; }
.row .end { font-size: 13px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.row:hover .title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.row--noimg { grid-template-columns: 240px 1fr auto; }
@media (max-width: 650px) {
  .row { grid-template-columns: 56px 1fr auto; grid-template-areas: "img date end" "img title end" "img sub end"; gap: 2px 16px; padding: 20px 0; align-items: start; }
  .row img { grid-area: img; width: 56px; height: 56px; }
  .row .meta { grid-area: date; }
  .row .text { grid-area: title; }
  .row .end { grid-area: end; align-self: center; }
  .row .end .status { display: none; }
  .row--noimg { grid-template-columns: 1fr auto; grid-template-areas: "date end" "title end"; }
}

/* Påmeldingsbåndet, smalere enn rutenettet */
.band { max-width: 1080px; margin: 100px auto 0; background: var(--volt); border-radius: 23px; padding: 50px 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.band h2 { font-size: 35px; line-height: 1.05; }
.band p { margin-top: 8px; }
.band .signup { max-width: 448px; justify-self: end; }
.band .signup input { height: 44px; }
.band .signup button { top: 0; height: 44px; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; gap: 22px; } .band .signup { justify-self: stretch; max-width: none; } }
@media (max-width: 650px) { .band { margin-top: 64px; padding: 34px 22px; border-radius: 18px; } .band h2 { font-size: 26px; } }

/* Sentrert avslutning (Fitts Inevitable Platform) */
.closing { text-align: center; margin-top: 100px; }
.closing h2 { font-size: 35px; }
.closing p { max-width: 460px; margin: 12px auto 26px; }
@media (max-width: 650px) { .closing { margin-top: 64px; } .closing h2 { font-size: 26px; } }

/* Bunnteksten */
.site-footer { border-top: 1px solid var(--ink); margin-top: 100px; padding: 60px 0 28px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.site-footer .wordmark { font-size: 64px; display: inline-block; }
.site-footer .lead { margin-top: 70px; font-size: 15px; }
.site-footer .signup { margin-top: 14px; max-width: 470px; }
.site-footer .signup input { height: 44px; font-size: 14px; }
.site-footer .signup button { top: 0; height: 44px; }
.foot-cols { display: grid; grid-template-columns: 145px 145px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols .big li { border-bottom: 1px solid var(--rule); }
.foot-cols .big li:last-child { border: 0; }
.foot-cols .big a { display: block; padding: 8px 0; font-weight: 700; font-size: 17px; text-decoration: none; }
.foot-cols .small { border-left: 1px solid var(--rule); padding-left: 10px; }
.foot-cols .small a { display: block; padding: 6px 0; font-size: 13px; text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.copyright { font-size: 11px; margin-top: 16px; color: var(--grey-text); }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer .wordmark { font-size: 46px; } .site-footer .lead { margin-top: 30px; } }

/* Arkivet: filter og søk */
.filters { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.filters label { display: block; }
.filters select, .filters input { font: inherit; font-size: 15px; letter-spacing: 0.04em; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 6px 28px 6px 0; width: 287px; color: var(--ink); appearance: none; -webkit-appearance: none; }
.filters select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 4px center; cursor: pointer; }
.filters input { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17'%3E%3Ccircle cx='10' cy='7' r='5.5' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3Cpath d='M6 11l-5 5' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 2px center; }
.filters input::placeholder { color: var(--ink); opacity: 1; }
.empty { padding: 40px 0; }
@media (max-width: 650px) { .filters { flex-direction: column; gap: 18px; } .filters select, .filters input { width: 100%; } }

/* Artikkelen */
body.article { background: var(--white); }
.article-top { background: var(--paper); }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.04em; text-decoration: none; padding-top: 20px; }
.back:hover { text-decoration: underline; }
.article-head { padding: 22px 0 40px; }
.article-head h1 { font-size: 40px; line-height: 1.04; margin-top: 10px; }
.article-head .kicker { margin-top: 18px; }
.hero-img { background: linear-gradient(to bottom, var(--paper) 0 62%, var(--white) 62%); }
.hero-img .narrow { width: min(var(--narrow), 100% - 40px); }
.hero-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.credit { text-align: right; font-size: 12px; color: var(--grey-text); margin-top: 10px; padding-right: 15px; letter-spacing: 0.02em; }
.body { width: min(677px, 100% - 40px); margin: 52px auto 0; }
.body > p { margin: 0 0 15px; line-height: 25.5px; }
.body .ingress { margin-bottom: 15px; }
.body a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.sources { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.5; }
.sources h2 { font-size: 13px; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.sources ol { margin: 0; padding-left: 18px; }
.sources li { margin-bottom: 5px; }
.byline { display: flex; align-items: center; gap: 0; margin-top: 40px; font-size: 14px; }
.byline .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 11px; letter-spacing: -0.03em; }
.byline a { font-weight: 700; }
@media (max-width: 650px) { .article-head h1 { font-size: 33px; } .article-head { padding-bottom: 26px; } .hero-img .narrow, .body { width: calc(100% - 40px); } .hero-img img { border-radius: 9px; } .body { margin-top: 30px; } }

/* Grafene, datastil B: hvitt felt, flate farger, kilde nede til venstre */
.chart { margin: 30px 0 30px; padding: 22px 24px 18px; border: 1px solid var(--rule); border-radius: 20px; background: var(--white); }
.chart-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.chart-title { font-weight: 700; font-size: 17px; line-height: 1.25; }
.chart-sub { font-size: 14px; margin-top: 3px; }
.chart-mark { font-weight: 700; letter-spacing: -0.03em; font-size: 14px; white-space: nowrap; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg text { font-family: var(--font); font-size: 13px; fill: var(--ink); }
.chart svg .b { font-weight: 700; }
.chart svg .s { font-size: 12px; }
.chart svg .w { fill: var(--white); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; display: inline-block; }
.chart figcaption { margin-top: 14px; font-size: 12px; line-height: 1.45; color: var(--grey-text); }
@media (max-width: 650px) { .chart { padding: 18px 14px 14px; border-radius: 16px; margin-left: -6px; margin-right: -6px; } .chart svg text { font-size: 12px; } .chart-mark { display: none; } }

/* Abonnementsiden: delt hero */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 660px; }
.split-left { padding: 76px 60px 60px max(20px, calc((100vw - var(--wrap)) / 2)); }
.split-left h1 { font-size: 40px; line-height: 1.04; max-width: 540px; }
.split-left > p { margin-top: 18px; max-width: 590px; }
.split-left .signup { margin-top: 24px; max-width: 600px; }
.expect { margin-top: 30px; font-size: 15px; }
.expect ul { margin: 12px 0 0; padding-left: 20px; }
.expect li { margin-bottom: 10px; }
.split-right { background: var(--volt); display: grid; place-items: center; padding: 50px 30px; }
.inbox { background: var(--white); border: 1px solid var(--ink); width: min(420px, 100%); padding: 18px 18px 22px; }
.inbox h2 { font-size: 18px; margin-bottom: 14px; }
.inbox .mail { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 10px 12px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.inbox .issue img { border-radius: 4px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.inbox .issue .meta { margin-top: 10px; }
.inbox .issue h3 { font-size: 16px; line-height: 1.2; margin-top: 4px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-left { padding: 48px 20px; } .split-left h1 { font-size: 33px; } }

/* Race Week og Gear: liten note nederst */
.note { font-size: 12px; color: var(--grey-text); margin-top: 22px; line-height: 1.5; }
.issue-chart { max-width: 677px; }
.hero + .section { margin-top: 0; }
.legend i.ln { width: 20px; height: 2px; }
[hidden] { display: none !important; }
.no-pill .site-header .pill { display: none; }
.view-all { white-space: nowrap; }
.section-head { gap: 16px; }
@media (max-width: 650px) {
  .filters { flex-direction: row; gap: 16px; }
  .filters label { flex: 1; }
  .filters select, .filters input { width: 100%; font-size: 14px; }
  .view-all { font-size: 15px; gap: 8px; }
  .view-all svg { width: 30px; }
}

/* 3/12: søk, filtre, sideinndeling, emner, arkiv per måned */
.search-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -14px; }
.filters { flex-wrap: wrap; align-items: flex-end; }
.filter-selects { display: flex; gap: 24px; flex-wrap: wrap; }
.filters select { width: 200px; }
.results-line { margin: -18px 0 26px; font-size: 13px; }
.cards--after { margin-top: 0; }
[data-archive] .band, [data-archive] + * .band { margin-bottom: 100px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 64px; font-weight: 700; font-size: 17px; }
.pager a, .pager .cur, .pager .gap { min-width: 26px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; text-decoration: none; }
.pager .cur { background: var(--volt); }
.pager a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pager .step { margin: 0 6px; }
.browse { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.browse a { font-weight: 600; }
.drawer-search { margin: 6px 0 4px; }
.drawer-search input { width: 100%; font: inherit; font-size: 16px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 8px 0; border-radius: 0; -webkit-appearance: none; }
.topics { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topics .meta { margin-right: 4px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 14px; font-size: 13px; font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--volt); }
.chip--quiet { border-color: var(--rule); font-weight: 400; }
.row--topic { grid-template-columns: 1fr auto; }
.row--archive { grid-template-columns: 120px 1fr auto; }
.hero .meta a { font-weight: 600; }
.hero > .meta { margin-bottom: 14px; font-size: 13px; }
.update-note { margin-top: 18px; padding: 12px 16px; background: var(--volt); border-radius: 10px; font-size: 14px; }
.body h2 { font-size: 22px; line-height: 1.15; margin: 34px 0 12px; }
.body .numbers { margin: 0 0 18px; padding-left: 20px; line-height: 25.5px; }
.body .numbers li { margin-bottom: 4px; }
.body blockquote { margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--volt); font-size: 19px; line-height: 1.45; }
.body figure.inline-img { margin: 26px 0 26px; }
.body figure.inline-img img { width: 100%; border-radius: 12px; background: #fff; }
.body figure.inline-img figcaption { text-align: right; font-size: 12px; color: var(--grey-text); margin-top: 8px; }
@media (max-width: 1050px) { .search-link { margin-right: -6px; } }
@media (max-width: 650px) {
  .filters { flex-direction: column; align-items: stretch; gap: 14px; }
  .filter-selects { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .filters select { width: 100%; font-size: 13px; letter-spacing: 0; padding-right: 22px; }
  .filter-search { width: 100%; }
  .pager { margin-top: 44px; }
  .row--archive { grid-template-columns: 1fr auto; grid-template-areas: "date end" "title end"; }
  .row--topic { grid-template-areas: "title end"; }
  .search-link { width: 34px; }
}
.filters { scroll-margin-top: 110px; }
.row--archive { padding: 13px 30px; }
.row--archive .sub { font-size: 13px; margin-top: 2px; }
.week-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.archive-week { scroll-margin-top: 100px; }
.archive-week:first-of-type { margin-top: 0; }
@media (max-width: 650px) { .row--archive { padding: 12px 0; } }
.body .sources h2 { font-size: 13px; line-height: 1.5; margin: 0 0 6px; }
.body .topics { margin-top: 18px; }
