/* Tillegg: språkvalg, vær, åpningstider, hjelp og avvik. Bygger på tokens i index.html. */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-toggle,
.help-link {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  color: var(--hero-text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.lang-toggle:hover,
.help-link:hover {
  background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 520px) {
  .tag {
    display: none;
  }
}

/* Vær */
.weather-now {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.weather-icon {
  font-size: 2.6rem;
  line-height: 1;
}
.weather-temp {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.weather-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.weather-desc strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
}
.hours-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(52px, 1fr);
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.hours-strip div {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 2px;
  border-radius: 8px;
  background: var(--bg);
}
.hours-strip b {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.hours-strip span {
  display: block;
  font-size: 1.2rem;
  line-height: 1.4;
}
.days-list li {
  gap: 10px;
}
.days-list .day-name {
  width: 7.5em;
  flex: none;
  display: inline-block;
}
.days-list .day-name::first-letter,
details.week td:first-child::first-letter {
  text-transform: uppercase;
}
.days-list .day-icon {
  width: 1.6em;
  flex: none;
  text-align: center;
}
.days-list .temps {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.days-list .temps .min {
  color: var(--text-muted);
  font-weight: 500;
}
.precip {
  color: #2b5ea7;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
:root[data-theme='dark'] .precip {
  color: #9cc0f0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .precip {
    color: #9cc0f0;
  }
}
.sun {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.attribution {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* Varsler og avvik */
.notice {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.notice strong {
  display: block;
}
.notice.disruption {
  background: var(--beige);
  color: #3a3520;
}
.notice.alert-yellow {
  background: #fff3c4;
  color: #4a3b00;
}
.notice.alert-orange {
  background: #ffd9b3;
  color: #5a2d00;
}
.notice.alert-red {
  background: var(--pink-light);
  color: var(--purple);
}
.cancelled .grow,
.cancelled .time b {
  text-decoration: line-through;
}
.cancelled-label {
  color: var(--purple);
  font-weight: 700;
}
:root[data-theme='dark'] .cancelled-label {
  color: var(--pink-light);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .cancelled-label {
    color: var(--pink-light);
  }
}

/* Åpningstider */
.status {
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
}
.status.open {
  color: var(--accent);
}
.status.open::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  vertical-align: 1px;
}
.status.closed {
  color: var(--text-muted);
}
.place-sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}
details.week {
  margin-top: 2px;
  font-size: 0.85rem;
}
details.week summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
details.week table {
  border-collapse: collapse;
  margin-top: 6px;
  width: 100%;
  max-width: 320px;
}
details.week td {
  padding: 2px 8px 2px 0;
  font-variant-numeric: tabular-nums;
}
details.week td:first-child {
  color: var(--text-muted);
}
details.week tr.today td {
  font-weight: 700;
  color: var(--text);
}
.source {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* Hjelp */
.help-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}
.help-group h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.help-group.emergency h3 {
  color: var(--purple);
}
:root[data-theme='dark'] .help-group.emergency h3 {
  color: var(--pink-light);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .help-group.emergency h3 {
    color: var(--pink-light);
  }
}
.contact {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.contact:first-of-type {
  border-top: 0;
}
.contact-name {
  font-weight: 650;
}
.contact-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--accent);
  color: var(--on-accent);
}
.help-group.emergency .call {
  background: var(--purple);
  color: #fff;
}
.call.secondary {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.help-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* Aktiviteter */
.activity-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.activity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.activity .chip {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.activity h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}
.activity h3 a {
  color: var(--text);
  text-decoration: none;
}
.activity h3 a:hover {
  text-decoration: underline;
}
.activity p {
  margin: 0;
  font-size: 0.9rem;
}
.activity .meta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.activity .meta b {
  color: var(--text);
  font-weight: 650;
}
