:root {
  --finland-blue: #002F6C;
  --finland-white: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
}

.seasonal-copy--winter,
.seasonal-copy--dst {
  display: none;
}

html.js .seasonal-copy--fallback {
  display: none;
}

html.js[data-season="winter"] .seasonal-copy--winter {
  display: block;
}

html.js[data-season="dst"] .seasonal-copy--dst {
  display: block;
}

body {
  color: var(--ink);
}

html[data-season="winter"] body {
  background: var(--finland-white);
}

html[data-season="dst"] body {
  background: #eaf2ff;
}

.lang-btn {
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.lang-btn:hover {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.05);
}

.lang-btn.active {
  background: #f0f0f0;
}

.hero {
  min-height: auto;
  display: block;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-card {
  border: 0;
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
}

.section {
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 1rem;
}

.graphic-box {
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 53, 128, 0.08);
  border: 1px solid rgba(0, 53, 128, 0.15);
  overflow: hidden;
}

.graphic-box svg {
  max-width: 100%;
  height: auto;
}

.map-box {
  width: 100%;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.map-interaction-hint {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;

    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 250ms ease;
}

.map-interaction-hint.is-visible {
    opacity: 1;
}

html.js .map-box {
  background: none !important;
}

.map-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 22rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-size: 0.95rem;
}

.map-legend {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-size: 10pt;
  min-width: 5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.legend-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.badge-theme {
  background: var(--finland-blue);
}

html[data-theme="dst"] .badge-theme {
  background: #0057b8;
}

.lead {
  color: var(--ink);
}

.nav-link {
  scroll-margin-top: 6rem;
}

footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.section-alt {
  background: rgba(0, 53, 128, 0.04);
}

.lang-btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: white;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.95rem;
  line-height: 1;
}

.lang-btn.active {
  background: var(--finland-blue);
  color: white;
  border-color: var(--finland-blue);
}

html[data-theme="dst"] .lang-btn.active {
  background: #0057b8;
  border-color: #0057b8;
}

.lang-group {
  gap: 0.35rem;
}

.solar-time-box {
  min-height: 110px;
  display: flex;
  flex-direction: column;
}

.solar-label {
  min-height: 2.5rem;
}

.solar-time-value {
  margin-top: auto;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.share-status {
    min-height: 1.5em;
}
