/* Foreldreutvalet: komponentstilar, kopiert frå FAU-Forde-barneskule sitt designsystem. Alle verdiar kjem frå tokens (tokens.css). */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); background: var(--surface); color: var(--ink); }
.fau-root :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
.fau-pad { padding: var(--space-5); }
.fau-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-5); }
.fau-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); }
.fau-grid { display: grid; gap: var(--space-5); padding: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fau-ico { display: inline-block; flex: none; vertical-align: middle; }
.fau-muted { color: var(--ink-muted); }

/* Button */
.fau-btn { font-family: var(--font-display); font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-5); border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.fau-btn:focus-visible, .fau-link:focus-visible, .fau-nav__link:focus-visible, .fau-field__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fau-btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sticker); }
.fau-btn-primary:hover { background: var(--brand-deep); }
.fau-btn-sun { background: var(--sun); color: var(--on-sun); box-shadow: var(--shadow-sticker-sun); }
.fau-btn-sun:hover { filter: brightness(1.06); }
.fau-btn-primary:active, .fau-btn-sun:active { transform: translateY(4px); box-shadow: none; }
.fau-btn-quiet { background: var(--surface-raised); color: var(--brand-deep); border-color: var(--border-strong); }
.fau-btn-quiet:hover { background: var(--brand-wash); border-color: var(--brand-deep); }
.fau-btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: 15px; }
.fau-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.fau-link { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.fau-link:hover { text-decoration-color: var(--sun); }

/* Tag */
.fau-tag { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 700; padding: 2px var(--space-3); border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand-deep); }
.fau-tag-sun { background: var(--sun); color: var(--on-sun); }
.fau-tag-coral { background: var(--coral); color: var(--ink); }
.fau-tag-leaf { background: var(--leaf); color: var(--ink); }
.fau-tag-sky { background: var(--sky); color: var(--ink); }

/* Alert */
.fau-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); border: 2px solid currentColor; background: var(--sky-tint); color: var(--sky-deep); }
.fau-alert__body { color: var(--ink); }
.fau-alert__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; color: inherit; }
.fau-alert-success { background: var(--leaf-tint); color: var(--leaf-deep); }
.fau-alert-warn { background: var(--sun-tint); color: var(--ink); border-color: var(--sun); }
.fau-alert-error { background: var(--coral-tint); color: var(--coral-deep); }

/* Field */
.fau-field { display: flex; flex-direction: column; gap: var(--space-1); }
.fau-field__label { font-weight: 700; font-size: 14px; line-height: 20px; }
.fau-field__input { font: inherit; font-size: 16px; min-height: 48px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 2px solid var(--border-strong); background: var(--surface-raised); color: var(--ink); width: 100%; }
.fau-field__input::placeholder { color: var(--ink-muted); }
.fau-field__input:hover { border-color: var(--brand-deep); }
.fau-field__help { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.fau-field-error .fau-field__input { border-color: var(--coral-deep); }
.fau-field-error .fau-field__help { color: var(--coral-deep); font-weight: 600; }

/* Card */
.fau-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
a.fau-card, .fau-card-hover:hover { transition: transform .15s ease, box-shadow .15s ease; }
.fau-card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.fau-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.fau-news__img { position: relative; height: 140px; background: var(--brand-tint); overflow: hidden; }
.fau-news__img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fau-news__meta { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.fau-news__title { color: var(--ink); }

/* Event */
.fau-event { display: flex; gap: var(--space-4); padding: var(--space-5); align-items: flex-start; }
.fau-event__date { flex: none; width: 72px; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand-deep); text-align: center; padding: var(--space-2) 0 var(--space-3); }
.fau-event__day { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 36px; display: block; }
.fau-event__month { font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; display: block; }
.fau-event__main { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.fau-event__line { display: flex; gap: var(--space-2); align-items: center; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* Header */
.fau-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; padding: var(--space-4) var(--space-5); background: var(--surface); border-bottom: 1px solid var(--border); }
.fau-wordmark { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 26px; color: var(--brand-deep); text-decoration: none; display: flex; flex-direction: column; }
.fau-wordmark b { color: var(--brand); font-weight: 700; }
.fau-wordmark small { font-family: var(--font-sans); font-weight: 600; font-size: 13px; line-height: 16px; color: var(--ink-muted); }
.fau-nav { display: flex; gap: var(--space-1); flex-wrap: wrap; align-items: center; }
.fau-nav__link { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 20px; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; }
.fau-nav__link:hover { background: var(--brand-wash); color: var(--brand-deep); }
.fau-nav__link[aria-current="page"] { background: var(--brand-tint); color: var(--brand-deep); }

/* Hero */
.fau-hero { position: relative; overflow: hidden; background: var(--brand-tint); border-radius: var(--radius-xl); padding: var(--space-8) var(--space-7); min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.fau-hero { padding-bottom: 128px; }
.fau-hero__waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 112px; pointer-events: none; }
.fau-hero__sun { position: absolute; right: 96px; top: 40px; width: 148px; height: 148px; border-radius: 50%; background: var(--sun); }
.fau-hero__dot { position: absolute; right: 48px; top: 176px; width: 60px; height: 60px; border-radius: 50%; background: var(--coral); }
.fau-hero__text { position: relative; max-width: 560px; display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.fau-hero__title { color: var(--brand-deep); }
.fau-hero__lead { color: var(--ink); max-width: 46ch; }

/* Section heading */
.fau-sh { display: flex; flex-direction: column; gap: var(--space-2); max-width: var(--measure); }
.fau-sh__eyebrow { font-weight: 700; font-size: 13px; line-height: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); display: inline-flex; align-items: center; gap: var(--space-2); }
.fau-sh__eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); }

/* Footer */
.fau-footer { background: var(--brand-deep); color: var(--on-brand); }
.fau-footer__body { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: var(--space-6) var(--space-5) var(--space-7); max-width: var(--container-max); margin: 0 auto; }
.fau-footer h3 { color: var(--sun); font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; margin: 0 0 var(--space-2); }
.fau-footer p, .fau-footer a { font-size: 15px; line-height: 24px; color: var(--on-brand); margin: 0; }
.fau-footer a { display: block; text-decoration: underline; text-underline-offset: 3px; }
.fau-footer__small { border-top: 1px solid rgba(255,255,255,.35); padding: var(--space-4) var(--space-5); font-size: 14px; line-height: 22px; text-align: center; }

/* Wave */
.fau-wave { display: block; width: 100%; height: auto; }

/* Document pages (A4 794x1123 px, 16:9 slide 960x540 px) */
.fau-page-wrap { position: relative; overflow: hidden; }
.fau-page { position: absolute; top: 0; left: 0; transform-origin: top left; background: var(--surface); color: var(--ink); overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.fau-page-a4 { width: 794px; height: 1123px; }
.fau-page-slide { width: 960px; height: 540px; }
.fau-doc-pad { padding: 0 76px; }
.fau-doc-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 36px 76px 18px; }
.fau-doc-contact { font-size: 12px; line-height: 18px; color: var(--ink-muted); text-align: right; }
.fau-doc-body { font-size: 15px; line-height: 23px; }
.fau-doc-body p { margin: 0 0 12px; }
.fau-doc-foot { position: absolute; left: 0; right: 0; bottom: 0; }
.fau-doc-foot-text { position: absolute; left: 76px; right: 76px; bottom: 58px; font-size: 11px; line-height: 16px; color: var(--ink-muted); display: flex; justify-content: space-between; }
.fau-doc-sub { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 34px; color: var(--brand-deep); margin: 0 0 var(--space-4); }
.fau-doc-meta { display: grid; grid-template-columns: 110px 1fr; gap: 6px var(--space-4); font-size: 14px; line-height: 22px; margin: var(--space-4) 0 var(--space-5); padding: var(--space-4) var(--space-5); background: var(--surface-sunken); border-radius: var(--radius-lg); }
.fau-doc-meta dt { font-weight: 700; color: var(--brand-deep); margin: 0; }
.fau-doc-meta dd { margin: 0; }
.fau-case { display: grid; grid-template-columns: 40px 1fr; gap: 4px var(--space-4); margin-bottom: var(--space-5); }
.fau-case__n { grid-row: span 3; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); font-family: var(--font-display); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.fau-case__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 26px; display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.fau-case__text { font-size: 14px; line-height: 22px; }
.fau-decision { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--sun-tint); font-size: 14px; line-height: 22px; font-weight: 600; margin-top: var(--space-2); }
.fau-poster-panel { position: absolute; left: 76px; right: 76px; background: var(--surface-raised); border-radius: var(--radius-xl); padding: 28px 36px; box-shadow: var(--shadow-soft); border: 2px solid var(--brand-tint); }
.fau-poster-row { display: flex; align-items: center; gap: var(--space-4); font-size: 22px; line-height: 30px; font-weight: 700; }
.fau-poster-row + .fau-poster-row { margin-top: var(--space-4); }
.fau-poster-ic { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; }
