/* Fonter ligger på eget domene. Hentet fra Google Fonts (latin og latin-ext). */
/* Archivo, latin-ext. SIL OFL 1.1, se assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo, latin. SIL OFL 1.1, se assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3, latin-ext. SIL OFL 1.1, se assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Sans 3, latin. SIL OFL 1.1, se assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Palett avledet av logoens cyan #00AEEF. Ingen farger er hentet fra en annen kunde. */
.site-darda {
  --navy: #0f2128;
  --navy-deep: #091519;
  --ink: #142028;
  --muted: #3e5562;
  --accent: #0077a8;
  --accent-bright: #00aeef;
  --ice: #ffffff;
  --sand: #f6f8f9;
  --line: #d5dee4;
  --bg: #ffffff;
  --surface: #ffffff;
  --brand-line: #3a7388;
  --btn: #0077a8;
  --btn-hover: #007ca6;
  --credit-bg: #071014;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Archivo", system-ui, sans-serif;
  --max: 72rem;
  --radius: 1rem;
  color-scheme: light;
}

html[data-theme="dark"] .site-darda {
  --navy: #05090c;
  --navy-deep: #071014;
  --ink: #f2f7f8;
  --muted: #c5d4dc;
  --ice: #10242c;
  --sand: #0e1c24;
  --line: #2a4550;
  --bg: #081418;
  --surface: #14303a;
  --credit-bg: #030608;
  color-scheme: dark;
}

html[data-theme="light"] .site-darda {
  color-scheme: light;
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

.leaflet-container img {
  max-width: none !important;
  max-height: none !important;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  color: var(--navy-deep);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin: 0 0 0.6rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0;
}

p {
  margin: 0 0 0.85rem;
}

a {
  color: var(--accent);
}

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

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0;
  z-index: 80;
  transform: translateY(-120%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  background: #fff;
  color: #091519;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  top: 0.5rem;
}

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

.btn:focus-visible,
.menu-button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--brand-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-height: 5.5rem;
  height: 5.5rem;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.theme-icon {
  display: none;
  width: 1.35rem;
  height: 1.35rem;
}

html:not([data-theme="dark"]) .theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.company-logo {
  display: block;
  height: 4.25rem;
  width: auto;
  max-width: min(12.5rem, 52vw);
  object-fit: contain;
  object-position: left center;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.35rem;
  height: 3px;
  background: var(--accent-bright);
}

@media (max-width: 1024px) and (min-width: 700px) {
  .company-logo {
    height: 3.75rem;
  }

  .site-nav ul {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 0.5rem;
  }
}

@media (max-width: 699px) {
  html {
    scroll-padding-top: 6rem;
  }

  .header-inner {
    min-height: 4.5rem;
    height: 4.5rem;
  }

  .brand {
    max-width: calc(100% - 5.75rem);
  }

  .company-logo {
    height: 3.25rem;
    max-width: min(11.5rem, calc(100vw - 8.75rem));
  }

  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 0.35rem 1rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    background: var(--navy);
    border-top: 1px solid rgb(255 255 255 / 0.14);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    padding: 0.7rem 1rem;
  }
}

.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  height: 72vh;
  height: 72svh;
  min-height: 72vh;
  min-height: 72svh;
  overflow: hidden;
  color: #fff;
}

@media (max-width: 1024px) {
  .page-hero {
    height: auto;
    min-height: 22rem;
  }

  .site-darda.is-front .page-hero {
    min-height: 26rem;
  }

  .page-hero-copy {
    padding-top: 3.25rem;
  }

  .hero-trust-list li {
    padding: 0.55rem 0.7rem;
    font-size: 0.92rem;
    font-weight: 700;
  }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .page-hero {
    min-height: 26rem;
  }

  .site-darda.is-front .page-hero {
    min-height: 34rem;
  }
}

@media (min-width: 1025px) {
  .site-darda.is-front .page-hero {
    height: auto;
    min-height: calc(100svh - 77px);
    min-height: calc(100dvh - 77px);
    padding-bottom: 6rem;
  }
}

@media (max-width: 699px) {
  .site-darda.is-front .page-hero {
    min-height: 24rem;
  }
}

.page-hero-media,
.page-hero-shade {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.06) contrast(1.06);
}

.site-darda.is-front .page-hero-media img {
  object-position: center 68%;
}

.site-darda.is-services .page-hero-media img,
.site-darda.is-privacy .page-hero-media img {
  object-position: 70% 28%;
}

.site-darda.is-about .page-hero-media img,
.site-darda.is-missing .page-hero-media img {
  object-position: center 58%;
}

.page-hero-shade {
  background:
    linear-gradient(102deg, rgb(9 21 25 / 0.86) 0%, rgb(15 33 40 / 0.5) 40%, rgb(15 33 40 / 0.16) 70%, rgb(15 33 40 / 0.05) 100%),
    linear-gradient(180deg, rgb(6 12 16 / 0.18) 0%, transparent 28%, transparent 58%, rgb(6 12 16 / 0.42) 100%);
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 1.5rem 1.1rem;
}

.page-hero h1,
.hero-line {
  max-width: 40rem;
}

.page-hero h1 {
  margin: 0.2rem 0 0.55rem;
  color: #fff;
  font-size: clamp(2.05rem, 4.6vw, 3.15rem);
  text-shadow: 0 2px 22px rgb(0 0 0 / 0.35);
}

@media (max-width: 699px) {
  .site-darda.is-front .page-hero h1 {
    font-size: clamp(1.65rem, 7.4vw, 2.05rem);
  }
}

.hero-eyebrow {
  margin: 0;
  color: var(--accent-bright);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-line {
  margin: 0;
  color: #f4f8fa;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
}

.hero-line + .hero-line {
  margin-top: 0.55rem;
}

.hero-trust {
  position: relative;
  z-index: 1;
  background: rgb(15 33 40 / 0.92);
  border-top: 1px solid rgb(255 255 255 / 0.14);
  color: #fff;
}

.hero-trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-trust-list li {
  margin: 0;
  padding: 0.8rem 0.9rem;
  font-weight: 800;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  border-left: 1px solid rgb(255 255 255 / 0.14);
  overflow-wrap: break-word;
}

.hero-trust-list li:nth-child(odd) {
  border-left: 0;
}

.hero-trust-list li:nth-child(-n + 2) {
  border-top: 0;
}

@media (min-width: 960px) {
  .hero-trust-list.trust-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-trust-list.trust-4 li {
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 0.14);
  }

  .hero-trust-list.trust-4 li:first-child {
    border-left: 0;
  }
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.45rem 1rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  translate: 0 -2px;
}

.btn-primary {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}

.btn-primary:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: #091519;
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-cta-xl {
  min-height: 3.15rem;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5.15rem;
}

@media (min-width: 980px) {
  .section {
    padding-block: 6.4rem;
  }
}

.site-darda.is-front .section {
  padding-block: 2.75rem;
}

@media (min-width: 980px) {
  .site-darda.is-front .section {
    padding-block: 4.4rem;
  }
}

@media (max-width: 1024px) {
  body {
    font-size: 1rem;
    line-height: 1.5;
  }

  .section,
  .site-darda.is-front .section {
    padding-block: 2.5rem;
  }

  .lead {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }
}

.section-stone {
  background: var(--sand);
}

.section-alt {
  background: var(--ice);
}

.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

.narrow-prose {
  max-width: 46rem;
}

.doorway-grid,
.next-steps,
.split,
.cta-strong-inner {
  display: grid;
  gap: 1rem;
}

.doorway {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  padding: 0 1.2rem 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgb(15 33 40 / 0.06);
}

.doorway-photo {
  display: block;
  width: calc(100% + 2.4rem);
  max-width: none;
  height: 12.5rem;
  margin: 0 -1.2rem 0.2rem;
  object-fit: cover;
}

.doorway-grid {
  gap: 2rem;
}

.product-band {
  max-width: 48rem;
}

.product-band h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.product-band .product-shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.doorway-photo.doorway-photo-unit {
  height: auto;
  object-fit: contain;
  object-position: center;
}

.product-shot img.shot-aggregat {
  height: auto;
  object-fit: contain;
  object-position: center;
}

.product-shot {
  margin: 0 0 0.95rem;
}

.product-shot img {
  display: block;
  width: 100%;
  height: 13rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.doorway-icon,
.svc-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

.doorway-icon svg,
.svc-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.doorway p {
  margin: 0;
  color: var(--muted);
}

.doorway-go {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
}

.model-list {
  margin: 0.3rem 0 0.8rem;
  padding-left: 1.15rem;
}

.model-list li + li {
  margin-top: 0.25rem;
}

.use-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.use-list li {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

@media (min-width: 700px) {
  .doorway-grid {
    grid-template-columns: 1fr 1fr;
  }

  .next-steps,
  .split,
  .cta-strong-inner {
    grid-template-columns: 1fr 1fr;
  }

  .cta-strong-inner {
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .doorway-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.image-frame img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.aside-panel,
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-panel {
  padding: 1.05rem 1.1rem;
}

.person-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.person-links a,
.footer-nav a,
.site-footer small a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.faq {
  display: grid;
  gap: 0.6rem;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq .chevron {
  flex: none;
  transition: rotate 0.2s ease;
}

.faq details[open] .chevron {
  rotate: 180deg;
}

.faq details p {
  margin: 0;
  padding: 0 0.9rem 0.9rem;
}

.cta-band-strong {
  background: var(--navy-deep);
  color: #fff;
}

.cta-band-strong h2,
.page-hero h1 {
  color: #fff;
}

.cta-band-strong a:not(.btn) {
  color: #e8f7ff;
}

.block-space {
  margin-top: 1.2rem;
}

.contact-stage {
  padding-bottom: 0;
}

.contact-board {
  position: sticky;
  top: 6.75rem;
  z-index: 4;
  background: #fff;
  color: #142028;
  border: 1px solid #d3e3ea;
  border-left: 4px solid #0077a8;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgb(15 33 40 / 0.1);
  padding: 1.45rem 1.4rem 1.2rem 1.5rem;
}

.contact-board h2,
.contact-board h3,
.contact-board p {
  color: #142028;
}

.contact-lead {
  max-width: 40rem;
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
}

.contact-board .contact-meta {
  margin: 0;
  color: #3e5562;
}

.contact-cols {
  display: grid;
  gap: 0.85rem;
}

.contact-person {
  padding-top: 0.85rem;
  border-top: 1px solid #d3e3ea;
}

.contact-board .person-links a {
  color: #0077a8;
}

.contact-stage > .cta-band {
  position: relative;
  z-index: 6;
}

.contact-stage > .cta-band {
  margin-top: 5.15rem;
  padding-block: 5.15rem;
}

@media (min-width: 700px) {
  .contact-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    align-items: start;
  }

  .contact-person {
    padding-top: 0;
    padding-left: 2rem;
    border-top: 0;
    border-left: 1px solid #d3e3ea;
  }
}

@media (min-width: 980px) {
  .contact-stage > .cta-band {
    margin-top: 6.4rem;
    padding-block: 6.4rem;
  }
}

@media (max-width: 699px) {
  .contact-board {
    top: 5.75rem;
  }
}

main a:not(.btn):not(.doorway) {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
}

.site-footer {
  background: var(--navy);
  color: #e8f1f4;
  padding: 2rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
}

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

.site-footer small {
  display: block;
  overflow-wrap: anywhere;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-credit-bar {
  margin-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.28);
  background: var(--credit-bg);
  padding-bottom: env(safe-area-inset-bottom, 0);
  text-align: center;
}

.footer-credit-bar .container {
  text-align: center;
}

.footer-credit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.footer-credit a {
  display: inline;
  color: #e8f7ff;
}

@media (max-width: 379px) {
  .footer-credit {
    white-space: normal;
  }
}

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--navy-deep);
  color: #fff;
  padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom));
}

.cookie-notice-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-notice p {
  margin: 0;
  max-width: 52rem;
}

.cookie-notice a {
  color: #e8f7ff;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  color: var(--ink);
}

html[data-theme="dark"] .contact-board h2,
html[data-theme="dark"] .contact-board h3,
html[data-theme="dark"] .contact-board p {
  color: #142028;
}

html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .cta-band-strong h2,
html[data-theme="dark"] .hero-line,
html[data-theme="dark"] .hero-eyebrow {
  color: #fff;
}

html[data-theme="dark"] .hero-eyebrow,
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .doorway-go {
  color: var(--accent-bright);
}

html[data-theme="dark"] .btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

html[data-theme="dark"] .btn-outline:hover {
  background: var(--ink);
  color: #091519;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-primary:hover {
  color: #fff;
}

html[data-theme="dark"] .doorway {
  box-shadow: 0 14px 36px rgb(0 0 0 / 0.28);
}

html[data-theme="dark"] main a:not(.btn):not(.doorway) {
  color: var(--accent-bright);
}

@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal:not(.is-visible) {
    opacity: 0;
    translate: 0 0.85rem;
  }

  html.js-reveal .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.6s ease, translate 0.6s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover {
    translate: none;
  }
}

html[data-theme="dark"] main .contact-board a:not(.btn) {
  color: #0077a8;
}

.section-place .lead {
  margin-bottom: 1.15rem;
}

.place-map {
  width: 100%;
  height: 28rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e7eef1;
}

.leaflet-container {
  width: 100%;
  font-family: var(--font);
  background: #e7eef1;
}

.place-map.leaflet-container {
  height: 28rem;
}

.leaflet-container img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  mix-blend-mode: normal !important;
}

.leaflet-control-zoom.leaflet-bar {
  border: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgb(15 33 40 / 0.18);
}

main .leaflet-control-zoom.leaflet-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid #d5dee4;
  background: #fff;
  color: #142028;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}

main .leaflet-control-zoom.leaflet-bar a:last-child {
  border-bottom: 0;
}

.partner-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.75rem;
}

.partner-logo {
  display: block;
  width: auto;
  height: 2.75rem;
}

.partner-logo-on-dark {
  display: none;
}

html[data-theme="dark"] .partner-logo-brokk:not(.partner-logo-on-dark) {
  display: none;
}

html[data-theme="dark"] .partner-logo-on-dark {
  display: block;
}

.partner-split {
  display: flex;
  width: min(16rem, 70%);
  height: 2px;
  margin: 1.15rem auto 1.2rem;
}

.partner-split span {
  flex: 1 1 50%;
  height: 2px;
}

.partner-split span:first-child {
  background: #e30613;
}

.partner-split span:last-child {
  background: #009de0;
}

.partner-split-short {
  width: 7.5rem;
  margin: 0.85rem 0 1.05rem;
}

.leaflet-div-icon.map-pin {
  background: transparent;
  border: 0;
}

.leaflet-div-icon.map-pin svg {
  display: block;
  width: 28px;
  height: 40px;
}

.leaflet-control-attribution {
  font-size: 0.72rem;
  line-height: 1.3;
  background: rgb(255 255 255 / 0.9);
  color: #3e5562;
}

/* Lys flate i begge modus: fast mørk lenkefarge og understrek (WCAG 1.4.1, 1.4.3). */
.leaflet-container .leaflet-control-attribution a,
html[data-theme="dark"] main .leaflet-container .leaflet-control-attribution a {
  color: #0077a8;
  text-decoration: underline;
}

@media (min-width: 700px) {
  .place-map,
  .place-map.leaflet-container {
    height: 34rem;
  }
}

/* Kontaktside: intro, kontaktinformasjon med kart og kontaktkort (layout etter NITD-malen). */
.contact-intro {
  padding-block: 3.5rem;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.contact-intro h1 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

.contact-intro-lead {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.contact-intro .button-group {
  margin-top: 1.5rem;
}

.contact-section {
  padding-block: 3.5rem;
}

.contact-grid {
  display: grid;
  gap: 2.25rem;
  align-items: stretch;
}

.contact-info h2 {
  margin-bottom: 0.75rem;
}

.contact-list {
  margin: 0;
}

.contact-list > div {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy-deep);
}

html[data-theme="dark"] .contact-list dt {
  color: var(--ink);
}

.contact-list dd {
  margin: 0;
  color: var(--muted);
}

/* Trykkflate 32 px (WCAG 2.5.8 krever 24 px), så verdien står tett under etiketten. */
main .contact-list dd a:not(.btn) {
  min-height: 32px;
}

.contact-map-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-map-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.contact-map-bar[hidden] {
  display: none;
}

.map-switch {
  min-height: 2.75rem;
  padding: 0.35rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

.map-switch[aria-pressed="true"] {
  border-color: var(--btn);
  background: var(--btn);
  color: #fff;
}

.contact-map-panel .place-map,
.contact-map-panel .place-map.leaflet-container {
  flex: 1 1 auto;
  height: 22rem;
  min-height: 22rem;
  border: 0;
  border-radius: 0;
}

.contact-map-note {
  margin: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.mail-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 40px rgb(15 33 40 / 0.1);
}

.mail-art svg {
  display: block;
  width: min(15rem, 70%);
  height: auto;
  margin-inline: auto;
}

.mail-letter {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mail-card:hover .mail-letter {
  transform: translateY(-8px);
}

.mail-copy h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.mail-copy .mail-marks {
  justify-content: flex-start;
}

.mail-name {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.mail-address {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
}

html[data-theme="dark"] .mail-call {
  border-color: var(--ink);
  color: var(--ink);
}

html[data-theme="dark"] .mail-call:hover {
  background: var(--ink);
  color: var(--navy-deep);
}

@media (min-width: 700px) {
  .contact-intro {
    padding-block: 4.5rem;
  }

  .contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .contact-map-panel .place-map,
  .contact-map-panel .place-map.leaflet-container {
    height: auto;
  }

  .mail-card {
    grid-template-columns: minmax(14rem, 0.8fr) 1.2fr;
    gap: 2.5rem;
    padding: 2.25rem 2.5rem;
  }

  .mail-art svg {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mail-letter {
    transition: none;
  }

  .mail-card:hover .mail-letter {
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn {
    border-color: ButtonText;
  }
}
