/* Kontakt: the contact details bound to Bedri → Indstillinger (patterns/kontakt-oplysninger.php). No approved
   design: the light surface, the list rows of the contact cards and, since 5 Nov (Jannik), the heading on top with
   the details on the left and a Google Maps embed on the right (.ko-body); on phones the map goes under them. */

.kontakt-oplysninger { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.ko-intro { margin-bottom: clamp(2rem, 4vw, 3rem); }
.ko-intro .h-lg { margin: 0; max-width: 14ch; }
.ko-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }

.ko-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.ko-item { margin: 0; padding: 1.25rem 0 1.4rem; border-bottom: 1px solid var(--line); font-style: normal; min-width: 0; }
.ko-item > p { margin: 0; }
.ko-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.ko-item > .ko-label { margin-bottom: .4rem; }
.ko-value { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.ko-value a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: .2em; }
.ko-value a:hover { color: var(--accent-lit); text-decoration-color: currentColor; }

/* The map: as tall as the details beside it (at least 360px), the card radius. The Custom HTML block's wrapper is
   the .ko-map div itself (core adds no wrapper on the front end). */
.ko-map { position: relative; min-height: 360px; overflow: hidden; border-radius: var(--card-r); background: var(--surface); }
.ko-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 899px) {
  .ko-body { grid-template-columns: 1fr; }
  .ko-map { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .ko-list { grid-template-columns: 1fr; }
}
