/* Narrow reading column on large screens */
.content-narrow {
  max-width: 42rem;
}

/* Softer accordion toggle for update threads */
.updates-accordion .accordion-button:not(.collapsed) {
  color: inherit;
  background-color: transparent;
}

.updates-accordion .accordion-button:focus {
  box-shadow: none;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Clickable filter badges */
button.filter-tag {
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0.35em 0.55em;
  vertical-align: baseline;
}

button.filter-tag:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

button.filter-tag.filter-tag--active {
  box-shadow: 0 0 0 2px var(--bs-body-color);
}

.maps-coord-wrap {
  min-height: 0;
}

a.maps-coord-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 0.25rem;
  padding: 0.2rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

a.maps-coord-link:hover {
  color: var(--bs-primary) !important;
  background-color: var(--bs-tertiary-bg);
}

/* Shared colored hero header (used on bus/odin/vejdirektoratet). */
.hero-gradient {
  background: linear-gradient(135deg, #0d3b66 0%, #1a5f8a 45%, #0f766e 100%);
  color: #f8fafc;
}

.hero-gradient .navbar-brand,
.hero-gradient a {
  color: #f8fafc;
}

.hero-gradient a:hover {
  color: #bae6fd;
}

.hero-gradient .nav-link.active {
  color: #ffffff !important;
  font-weight: 600;
}

.hero-gradient .btn-light {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #f8fafc !important;
}

.hero-gradient .btn-light:hover {
  background: rgba(255, 255, 255, 0.26) !important;
}

/* Odin search links */
a.odin-search-link {
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
  border-bottom: 1px dotted currentColor;
  opacity: 0.9;
}

a.odin-search-link:hover {
  opacity: 1;
  border-bottom-style: solid;
}

a.odin-search-link:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}
