/* Norsk Glaukom Selskap — ett stilark for hele siden. Kun lys visning (bevisst).
   Uttrykk: typografi og luft bærer designet; én merkefarge (petrol), ingen dekorgrafikk. */
@font-face { font-family: "EB Garamond"; font-weight: 400 800; font-display: swap; src: url("../fonts/eb-garamond.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --petrol: #1d4a5a;
  --petrol-ink: #163a47;
  --petrol-soft: #e8f0f2;
  --ink: #18242b;
  --ink-2: #3a4952;
  --muted: #66747c;
  --line: #e2e8eb;
  --surface: #f6f8f9;
  --bg: #ffffff;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-ink); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
main { flex: 1; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--petrol); color: #fff; padding: 8px 14px; border-radius: 4px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Header ── */
.site-head { border-top: 5px solid var(--petrol); border-bottom: 1px solid var(--line); background: var(--bg); }   /* petrolstripe øverst binder toppen til bunnen */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--petrol); text-decoration: none; }
.brand:hover { color: var(--petrol); }
/* Logoen (B4): proporsjonene følger utkastet — merket ≈ 3,5 × navnets skriftstørrelse */
.logo { --fs: 18px; display: inline-flex; align-items: center; gap: calc(var(--fs) * .8); color: inherit; }
.logo-mark { width: calc(var(--fs) * 3.5); height: calc(var(--fs) * 3.5); flex: none; display: block; }
.logo-mark text { font-family: var(--serif); }
.logo-name { font-family: var(--serif); font-size: var(--fs); font-weight: 600; line-height: 1.04; border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); padding-left: calc(var(--fs) * .8); }
.logo-name small { display: block; margin-top: .45em; font-size: max(10.5px, .42em); font-weight: 400; letter-spacing: .18em; opacity: .7; }
.logo-head { --fs: 21px; }
.logo-foot { --fs: 21px; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 10px 14px; border-radius: 6px; }
.nav a:hover { color: var(--petrol); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--petrol); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--petrol); border-radius: 1px; }

@media (max-width: 860px) {
  .head-row { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 18px 0; }
  .nav { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding-inline: calc(var(--gutter) - 12px); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 12px 12px 14px; white-space: nowrap; font-size: 15px; }
  .nav a:hover { background: none; }
  .nav a[aria-current="page"]::after { left: 12px; right: 12px; bottom: 0; }
}
@media (max-width: 400px) { .logo-head { --fs: 19px; } }

/* ── Sidetopp ── */
.page-head { padding-block: clamp(40px, 7vw, 72px) clamp(24px, 4vw, 36px); }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 12px; letter-spacing: .01em; }
.page-head h1 { font-size: clamp(36px, 5.2vw, 54px); }
.page-head .lead { max-width: 62ch; margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); }
.section { padding-block: 0 clamp(56px, 8vw, 96px); }

/* ── Forside ── */
.intro { padding-block: clamp(44px, 7vw, 80px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(36px, 5.4vw, 58px); max-width: 18ch; }
.intro p { max-width: 58ch; margin: 20px 0 0; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); }
.home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 80px); padding-block: clamp(40px, 6vw, 64px) clamp(56px, 8vw, 96px); }
@media (max-width: 920px) { .home { grid-template-columns: 1fr; } }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 8px; }
.sec-title h2 { font-size: 28px; }

/* Nyhetsliste */
.news { list-style: none; margin: 0; padding: 0; }
.news-item { border-bottom: 1px solid var(--line); }
.news-item a { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 28px; padding: 26px 0; text-decoration: none; color: inherit; }
.news-item time { font-size: 14px; color: var(--muted); padding-top: 6px; font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 25px; transition: color .15s; }
.news-item p { grid-column: 2; margin: 0; color: var(--ink-2); font-size: 16.5px; max-width: 62ch; }
.news-item a:hover h3 { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.news-item.lead-item h3 { font-size: clamp(28px, 3.4vw, 36px); }
.news-item.lead-item p { font-size: 18px; }
@media (max-width: 640px) {
  .news-item a { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .news-item time { padding-top: 0; }
  .news-item p { grid-column: 1; }
}
.tag { display: inline-block; vertical-align: middle; font-family: var(--sans); font-size: 12px; font-weight: 600; color: #8a5a12; background: #fbf1df; border-radius: 4px; padding: 1px 7px; margin-left: 8px; letter-spacing: .01em; }

/* Sidekolonne */
.aside { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--surface); border-radius: 10px; padding: 24px 24px 22px; }
.panel h2 { font-size: 22px; margin-bottom: 10px; }
.panel p { font-size: 15.5px; color: var(--ink-2); }
.panel p:last-child { margin-bottom: 0; }
.more { font-size: 15px; font-weight: 500; text-decoration: none; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

/* ── Artikkel ── */
.article { max-width: 720px; padding-block: clamp(40px, 7vw, 72px) clamp(56px, 8vw, 96px); }
.article h1 { font-size: clamp(34px, 5vw, 50px); margin: 10px 0 0; }
.article .ingress { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--ink-2); margin: 22px 0 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article .body p { font-size: 18px; line-height: 1.75; }
.back { display: inline-block; margin-top: 28px; font-size: 15px; font-weight: 500; text-decoration: none; }
.back::before { content: "← "; }

/* ── Innholdssider ── */
.prose { max-width: 68ch; }
.prose h2 { font-size: 27px; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 80px); }
@media (max-width: 920px) { .cols { grid-template-columns: 1fr; } }

/* Styret */
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.board li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.board .n { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.board .r { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.board li.leder .r { color: var(--petrol); font-weight: 500; }
.note { font-size: 14.5px; color: var(--muted); margin-top: 22px; }

/* Møter og referater */
.next-meet { background: var(--petrol-soft); border-left: 3px solid var(--petrol); border-radius: 0 10px 10px 0; padding: 26px 28px; margin-bottom: 56px; max-width: 860px; }
.next-meet .eyebrow { margin-bottom: 6px; color: var(--petrol); }
.next-meet h2 { font-size: 27px; margin-bottom: 10px; }
.next-meet p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.minutes { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.minutes li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.minutes .y { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--petrol); line-height: 1; font-variant-numeric: lining-nums; }
.minutes .t { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.minutes .m { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.pdf { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; white-space: nowrap; }
.pdf:hover { border-color: var(--petrol); background: var(--surface); }
.pdf svg { width: 16px; height: 16px; flex: none; }
.pending { font-size: 14.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) {
  .minutes li { grid-template-columns: 64px minmax(0, 1fr); }
  .minutes .act { grid-column: 2; }
  .minutes .y { font-size: 24px; }
}

/* Dokumenter */
.docs { list-style: none; margin: 0; padding: 0; max-width: 860px; border-top: 1px solid var(--ink); }
.docs a { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 6px 22px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.doc-type { justify-self: start; font-size: 12.5px; font-weight: 600; color: var(--petrol); background: var(--petrol-soft); border-radius: 4px; padding: 3px 9px; }
.doc-t { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.25; }
.doc-d { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.doc-m { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.docs a:hover .doc-t { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 600px) { .docs a { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Bilde i nyhet */
.art-img { margin: 0 0 30px; }
.art-img img { width: 100%; border-radius: 8px; }
.news-thumb { grid-column: 2; margin-top: 10px; max-width: 520px; border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (max-width: 640px) { .news-thumb { grid-column: 1; } }

/* Ressurser */
.res-group + .res-group { margin-top: 48px; }
.res-group h2 { font-size: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.res-list .t { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.res-list .d { font-size: 14.5px; color: var(--muted); text-align: right; }
.res-list a:hover .t { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.res-list .t::after { content: "↗"; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 8px; }
@media (max-width: 560px) { .res-list a { flex-direction: column; gap: 2px; } .res-list .d { text-align: left; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.contact .panel h2 { font-size: 21px; }
.contact dl { margin: 0; }
.contact dt { font-size: 14px; color: var(--muted); }
.contact dd { margin: 0 0 12px; font-size: 16.5px; }
.contact dd:last-child { margin-bottom: 0; }

/* ── Footer ── */
.site-foot { background: var(--petrol); color: #dce8ec; font-size: 15px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; align-items: start; gap: 36px; padding-block: 56px 44px; }
.foot-brand { color: #fff; }
.foot-info { margin: 0; display: grid; gap: 10px; }
.foot-info div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.foot-info dt { color: #a9c2ca; }
.foot-info dd { margin: 0; color: #fff; }
.foot-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 36px; align-content: start; }
.foot-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; padding-block: 22px 28px; }
.foot-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255,255,255,.12); }   /* linjen følger innholdet, ikke kantene */
.foot-legal { font-size: 13.5px; color: #a9c2ca; }
.foot-assoc { display: flex; align-items: center; gap: 28px; }
.foot-assoc-l { font-size: 13.5px; color: #a9c2ca; }
.foot-assoc a { display: block; opacity: .85; transition: opacity .15s; }
.foot-assoc a:hover { opacity: 1; }
.foot-assoc img { width: auto; display: block; }
.assoc-nof { height: 30px; filter: brightness(0) invert(1); }   /* original er svart — vises hvit på petrol */
.assoc-dnlf { height: 40px; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 32px; }
  .foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .foot-bottom { flex-direction: column-reverse; align-items: flex-start; }
}
