/* ==========================================================================
   Linderud Borettslag II – stilark
   Enkelt og lyst: hvit bakgrunn, mørk tekst, tynne linjer.
   Farger og mål er samlet som variabler øverst, slik at de er enkle å endre.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f2f1ee;
  --tint: #f2f1ee;
  --tint-border: #dcdad4;
  --deep: #272623;
  --text: #1d1c1a;
  --muted: #5c5a56;
  --border: #e3e1dc;
  --border-strong: #1d1c1a;
  --accent: #d98a1c;
  --button-bg: #1d1c1a;
  --button-text: #ffffff;
  --focus: #1d1c1a;

  /* Bevegelse (Emil Kowalski): kort, rask start, aldri ease-in */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --press: 140ms;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 3px;
  --container: 68rem;
  --gutter: 1.25rem;
  --appbar-height: 4rem;
  --tabbar-height: 4rem;

  color-scheme: light;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

/* --- Grunnlag ----------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--appbar-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

::selection {
  background: #f3dcb6;
  color: var(--text);
}

input,
textarea {
  caret-color: var(--accent);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 1.8em 0 0.5em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem);
}

h3 {
  font-size: 1.1rem;
}

p,
ul,
ol,
table {
  margin: 0 0 1em;
}

p,
li {
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: currentColor;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: #1c1c1c;
  color: #fff;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 0;
  box-shadow: 0 0 0 4px #1c1c1c;
}

main:focus {
  outline: none;
}

/* --- Demo-stripe ---------------------------------------------------------- */

.demo-ribbon {
  background: var(--deep);
  color: #e3e0da;
  font-size: 0.8rem;
  padding-block: 0.4rem;
  text-align: center;
}

.demo-ribbon a {
  color: #fff;
}

/* --- Toppfelt ------------------------------------------------------------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.appbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--appbar-height);
}

.wordmark {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.topnav {
  display: none;
  margin-left: auto;
}

.topnav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topnav a {
  display: block;
  padding-block: 0.4rem;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.topnav a:hover {
  border-bottom-color: var(--text);
}

.topnav a[aria-current] {
  font-weight: 500;
  border-bottom-color: var(--text);
}

.appbar-actions {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.appbar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--text);
}

.appbar-btn .icon {
  width: 1.35rem;
  height: 1.35rem;
}

@media (hover: hover) and (pointer: fine) {
  .appbar-btn:hover {
    background: var(--surface-alt);
  }
}

.appbar-dot {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}

@media (min-width: 60rem) {
  .topnav {
    display: block;
  }

  .topnav + .appbar-actions {
    margin-left: 0;
  }
}

/* --- Bunnmeny (mobil) ------------------------------------------------------ */

.tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: var(--tabbar-height);
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: none;
}

.tabbar a[aria-current] {
  color: var(--deep);
  font-weight: 600;
}

.tabbar .icon {
  width: 1.35rem;
  height: 1.35rem;
}

@media (max-width: 59.99rem) {
  body {
    padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  }
}

@media (min-width: 60rem) {
  .tabbar {
    display: none;
  }
}

/* --- Forside ------------------------------------------------------------- */

/* Navn og adresse øverst, bildet vist som vanlig bilde under */
.home-hero {
  padding-block: 2rem 1.5rem;
}

@media (min-width: 48rem) {
  .home-hero {
    padding-block: 2.75rem 2rem;
  }
}

.home-hero h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  font-weight: 600;
}

.home-hero p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
}

.home-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.home-quick {
  background: var(--tint);
  border-bottom: 1px solid var(--tint-border);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0 auto;
  padding-block: 1.25rem;
}

.quick-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 100%;
  min-height: 5.25rem;
  padding: 0.75rem 0.1rem;
  border: 1px solid var(--tint-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .quick-actions a:hover {
    border-color: var(--border-strong);
  }
}

@media (min-width: 40rem) {
  .quick-actions {
    gap: 1rem;
  }

  .quick-actions a {
    flex-direction: row;
    gap: 0.75rem;
    min-height: 4rem;
    font-size: 0.95rem;
  }
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 2.5rem 3.5rem;
}

@media (min-width: 60rem) {
  .home-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 4rem;
    padding-block: 3.5rem 4.5rem;
  }
}

.home-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 2.75rem;
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.2rem;
}

.section-title a {
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
}

/* Siste oppslag */
.notice {
  padding: 1.5rem;
  background: var(--tint);
}

@media (min-width: 48rem) {
  .notice {
    padding: 2rem 2.25rem;
  }
}

.notice time {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.notice h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
}

.notice p {
  max-width: 36rem;
}

.notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 0;
  font-weight: 500;
}

/* --- Ark (generell boks) ---------------------------------------------------- */

.sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

@media (min-width: 48rem) {
  .sheet {
    padding: 1.75rem 2rem;
  }
}

/* --- Knapper -------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--button-bg);
  border-radius: var(--radius);
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.button,
.chip,
.quick-actions a,
.topic-card,
.appbar-btn,
.tabbar a {
  transition:
    transform var(--press) var(--ease-out),
    background-color 150ms ease,
    border-color 150ms ease;
}

.button:active,
.chip:active,
.quick-actions a:active,
.topic-card:active,
.appbar-btn:active,
.tabbar a:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: #3a3935;
    border-color: #3a3935;
  }

  .button-outline:hover {
    background: var(--tint);
  }
}

.button-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.button .icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* --- Temaer (knapper) --------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .chip:hover {
    background: var(--tint);
    border-color: var(--tint-border);
  }
}

.search-field {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.search-field input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.search-field input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

/* --- Kontaktliste ----------------------------------------------------------- */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding-block: 0.85rem;
}

.contact-list li + li {
  border-top: 1px solid var(--border);
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-role {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.contact-name {
  margin: 0;
  color: var(--muted);
  font-size: 0.925rem;
}

.contact-links {
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0.2rem 0 0;
  font-size: 0.925rem;
}

.contact-links a {
  overflow-wrap: anywhere;
}

/* Kontaktkort på kontaktsiden */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-card {
  scroll-margin-top: calc(var(--appbar-height) + 1rem);
}

.contact-card:target {
  border-color: var(--border-strong);
}

.contact-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.contact-card p {
  margin: 0;
}

.contact-card .contact-desc {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.contact-details {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-details dd {
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
}

/* --- Dokumentliste ---------------------------------------------------------- */

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0 !important;
}

.doc-list li {
  margin: 0 !important;
}

.doc-list li + li {
  border-top: 1px solid var(--border);
}

.doc-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.doc-list li:first-child a {
  padding-top: 0;
}

.doc-list a:hover .doc-title {
  text-decoration: underline;
}

.doc-title {
  display: block;
  font-weight: 500;
  line-height: 1.4;
}

.doc-info {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.doc-type {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-group {
  scroll-margin-top: calc(var(--appbar-height) + 1rem);
}

.doc-group h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.doc-group > p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* --- Oppslag ---------------------------------------------------------------- */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.news-list time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.news-list h2 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1.2rem;
}

.news-list p {
  margin: 0;
}

/* --- Undersider ------------------------------------------------------------- */

.subpage-top {
  padding-top: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.back-link .icon {
  width: 1rem;
  height: 1rem;
}

.page-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: 1rem 4rem;
}

@media (min-width: 60rem) {
  .page-layout.has-aside {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 4rem;
  }
}

.page-main {
  min-width: 0;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.lead {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.page-content > * {
  margin: 0;
}

/* Brødtekst på temasider: ingen boks, bare tekst */
.prose.sheet {
  border: 0;
  padding: 0;
}

.prose {
  max-width: 52rem;
}

.prose > p,
.prose > ul,
.prose > ol {
  max-width: 68ch;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2 {
  scroll-margin-top: calc(var(--appbar-height) + 1rem);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose li::marker {
  color: var(--muted);
}

.prose figure {
  margin: 1.5rem 0;
}

.prose figure.figure-small {
  max-width: 18rem;
}

.prose figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.prose th,
.prose td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface-alt);
  font-weight: 600;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0;
  margin: 0 0 2rem;
  padding: 0 !important;
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.facts li {
  margin: 0 !important;
  padding: 0 1rem 1.25rem 0;
}

.facts strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.facts span {
  color: var(--muted);
  font-size: 0.85rem;
}

.callout {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--tint);
  border: 1px solid var(--tint-border);
}

.callout > :last-child {
  margin-bottom: 0;
}

.page-meta {
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.page-aside {
  min-width: 0;
}

/* Sidemeny på temasider: vanlig liste */
.side-list {
  position: sticky;
  top: calc(var(--appbar-height) + 1.5rem);
  border: 0;
  padding: 0 !important;
}

.side-list-title {
  margin: 0 0 0.5rem;
  font-size: 0.925rem;
  font-weight: 500;
}

.side-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.side-list a {
  display: block;
  margin-left: -1px;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.4;
  text-decoration: none;
}

.side-list a:hover {
  color: var(--text);
}

.side-list a[aria-current] {
  border-left-color: var(--text);
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 59.99rem) {
  .side-list {
    position: static;
    padding-top: 2rem !important;
    border-top: 1px solid var(--border);
  }
}

/* Temaoversikt: hvite bokser på lys grå bakgrunn */
.topic-section {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--tint);
}

@media (min-width: 48rem) {
  .topic-section {
    padding: 1.75rem;
  }
}

.topic-section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0 !important;
}

.topic-cards li {
  margin: 0 !important;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--tint-border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .topic-card:hover {
    border-color: var(--border-strong);
  }
}

.topic-card > .icon {
  width: 1.4rem;
  height: 1.4rem;
  margin-bottom: 0.4rem;
}

.topic-card strong {
  font-weight: 500;
  line-height: 1.35;
}

.topic-card small {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* --- Skjema: Send melding ------------------------------------------------- */

.form {
  display: grid;
  gap: 1.25rem;
  scroll-margin-top: calc(var(--appbar-height) + 1rem);
}

.form-title {
  margin: 0;
  font-size: 1.3rem;
}

.form-intro {
  margin: -0.75rem 0 0;
  color: var(--muted);
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.925rem;
  font-weight: 500;
}

.field fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-option span {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.chip-option input:checked + span {
  background: var(--button-bg);
  border-color: var(--button-bg);
  color: var(--button-text);
}

.chip-option input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-recipient {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--surface-alt);
  font-size: 0.925rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- Søk ------------------------------------------------------------------ */

.search-page {
  --pagefind-ui-primary: var(--text);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: var(--bg);
  --pagefind-ui-border: var(--muted);
  --pagefind-ui-tag: var(--surface-alt);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 3px;
  --pagefind-ui-font: var(--font);
}

/* --- Bunn ------------------------------------------------------------------ */

.site-footer {
  background: var(--deep);
  color: #ebe9e4;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem;
  padding-block: 3rem 2rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-grid p {
  margin: 0 0 0.3rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-role {
  display: block;
  color: #c4c1ba;
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 15%);
  color: #c4c1ba;
  font-size: 0.825rem;
}

.footer-bottom p {
  margin: 0;
}

@media print {
  .appbar,
  .tabbar,
  .site-footer,
  .demo-ribbon,
  .page-aside,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .sheet {
    border: 0;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }

  .button:active,
  .chip:active,
  .quick-actions a:active,
  .topic-card:active,
  .appbar-btn:active,
  .tabbar a:active {
    transform: none;
  }
}
