/* De Vrije Gazet — Vrij Belgisch nieuws */

:root {
  --navy: #0f2347;
  --navy-dark: #0a1830;
  --navy-light: #1a3a6e;
  --blue: #1e4d8c;
  --blue-bright: #2874cc;
  --blue-soft: #e8f0fa;
  --accent: var(--blue-bright);
  --accent-hover: #1e5fad;
  --breaking: #1a4a8a;
  --bg: #f5f6f8;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5c6370;
  --border: #e2e5ea;
  --positive: #0d8a4e;
  --negative: #d32f2f;
  --shadow: 0 2px 12px rgba(15, 35, 71, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 35, 71, 0.12);
  --radius: 4px;
  --radius-lg: 6px;
  --font-sans: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --max-width: 1280px;
  --btn-height: 44px;
  --btn-height-compact: 42px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
  min-width: 0;
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 24px;
  }
}

/* Prevent grid/flex children from forcing horizontal scroll */
.articles,
.sidebar,
.article-layout__main,
.article-page,
.weather-page__shell,
.subscribe-layout__main {
  min-width: 0;
  max-width: 100%;
}

.main-layout {
  min-width: 0;
}

/* Top bar */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 0;
  min-height: 36px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  min-width: 0;
  width: 100%;
}

.top-bar__date,
.top-bar__edition {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.top-bar__links {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.top-bar__links a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-height: 36px;
}


.top-bar__links a:hover {
  color: var(--white);
}

.top-bar__edition {
  color: var(--blue-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding-inline: 24px;
  }
}

.site-header__inner > .logo {
  flex-shrink: 0;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo__mark-wrap {
  --logo-text-height: calc(1.75rem * 1.1 + 0.125rem + 0.75rem * 1.35);
  height: var(--logo-text-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo__mark {
  height: calc(var(--logo-text-height) * 1.7);
  width: auto;
  max-width: calc(var(--logo-text-height) * 2.4);
  object-fit: contain;
  object-position: center;
  display: block;
}

.logo--compact .logo__mark-wrap {
  --logo-text-height: calc(1.4rem * 1.1);
}

.logo--compact .logo__mark {
  height: calc(var(--logo-text-height) * 1.7);
  max-width: calc(var(--logo-text-height) * 2.4);
}

.logo--footer {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo--footer:hover {
  opacity: 0.92;
}

.logo--footer .logo__mark-wrap {
  --logo-text-height: calc(1.25rem * 1.1 + 0.125rem + 0.7rem * 1.35);
}

.logo--footer .logo__name {
  font-size: 1.35rem;
  color: #fff;
}

.logo__tagline--footer {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.logo img {
  border-radius: 4px;
}

.logo__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo__tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--blue-bright);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Weather widget in header */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  min-width: 130px;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.weather-widget:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 35, 71, 0.2);
}

.weather-widget:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

.weather-widget__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.weather-widget__temp {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.weather-widget__city {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Navigation */
.main-nav {
  background: var(--navy);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.main-nav .container {
  display: flex;
  align-items: center;
}

.main-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 48px;
  width: 100%;
}

.main-nav__list::-webkit-scrollbar {
  display: none;
}

.main-nav__list li {
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
  min-width: 0;
}

.main-nav__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  line-height: 1.2;
  position: relative;
}

@media (min-width: 768px) and (max-width: 1099px) {
  .main-nav__list a {
    font-size: 0.78rem;
    padding: 0 4px;
  }
}

@media (min-width: 1100px) {
  .main-nav__list a {
    font-size: 0.95rem;
    padding: 0 14px;
    letter-spacing: 0.01em;
  }
}

.main-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s;
}

.main-nav__list a:hover,
.main-nav__list a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.main-nav__list a:hover::after,
.main-nav__list a.active::after {
  background: var(--blue-bright);
}

/* Breaking news */
.breaking-bar {
  background: linear-gradient(90deg, var(--breaking) 0%, var(--blue-bright) 100%);
  color: var(--white);
  padding: 8px 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.breaking-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.breaking-bar__label {
  background: var(--white);
  color: var(--breaking);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.breaking-bar__ticker {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.breaking-bar__track {
  display: flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 48px;
  align-items: start;
  min-width: 0;
}

/* Hero article */
.hero-article {
  margin-bottom: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}

.hero-article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.hero-article__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.hero-article:hover .hero-article__image img {
  transform: scale(1.03);
}

.hero-article__category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 4px;
}

/* Photo captions — newspaper-style bylines under every image */
.article-photo {
  margin: 0;
}

.article-photo__frame {
  position: relative;
  overflow: hidden;
}

.article-photo--full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.article-photo--full .article-photo__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-photo--hero .article-photo__frame {
  aspect-ratio: 16 / 9;
}

.article-photo--hero .article-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.hero-article:hover .article-photo--hero img {
  transform: scale(1.03);
}

.article-photo--card .article-photo__frame {
  aspect-ratio: 16 / 10;
}

.article-photo--card .article-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.article-card:hover .article-photo--card img {
  transform: scale(1.05);
}

.article-photo--related {
  margin: 0;
  display: block;
  width: 100%;
}

.article-photo--related .article-photo__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: var(--navy-dark);
}

.article-photo--related .article-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-photo__category {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 4px;
}

.article-photo--card .article-photo__category {
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  padding: 4px 10px;
}

.article-photo__caption {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 16px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-photo__caption--overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 14px 11px;
  border: none;
  background: linear-gradient(180deg, rgba(15, 35, 71, 0) 0%, rgba(15, 35, 71, 0.82) 68%, rgba(15, 35, 71, 0.94) 100%);
  color: rgba(255, 255, 255, 0.94);
  pointer-events: none;
}

.article-photo__credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-photo__credit::before {
  content: '';
  flex: 0 0 3px;
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--blue-bright);
}

.article-photo__caption--overlay .article-photo__credit::before {
  background: rgba(255, 255, 255, 0.88);
}

.article-full__image-credit {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
}

.hero-article__link {
  display: block;
}

.hero-article .article-photo {
  margin: 0;
  display: block;
}

.hero-article__content {
  padding: 24px 28px 28px;
  border-top: 1px solid var(--border);
}

.hero-article h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 12px;
}

.hero-article__excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-meta time {
  font-weight: 600;
  color: var(--blue-bright);
}

/* Article grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .article-card__image img {
  transform: scale(1.05);
}

.article-card__category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 3px;
}

.article-card a {
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Foto full-bleed; titel/tekst in apart blok met vaste padding onder de foto */
.article-card .article-photo {
  margin: 0;
  display: block;
  flex: 0 0 auto;
}

.article-card .article-photo__frame {
  border-radius: 0;
}

.article-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 16px;
  border-top: 1px solid var(--border);
}

.article-card h2 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
}

.article-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card time {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-bright);
  margin: 4px 0 0;
}

/* More news list */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--navy);
}

.homepage-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 8px;
  margin-bottom: 40px;
  min-width: 0;
  max-width: 100%;
}

.category-section {
  min-width: 0;
  max-width: 100%;
}

.category-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--navy);
}

.category-section__head .section-title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-section__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.category-section__more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-bright);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.category-section__more:hover {
  color: var(--navy);
  text-decoration: underline;
}

.category-rail {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.category-rail__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px;
  margin: 0 -2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-rail__track::-webkit-scrollbar {
  display: none;
}

.category-rail__item {
  flex: 0 0 calc((100% - 24px) / 2);
  width: calc((100% - 24px) / 2);
  max-width: calc((100% - 24px) / 2);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  min-width: 0;
  height: auto;
}

.category-rail__controls {
  display: inline-flex;
  gap: 6px;
}

.category-rail__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-rail__btn:hover:not(:disabled) {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.category-rail__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.news-list li {
  border-bottom: 1px solid var(--border);
}

.news-list a {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  align-items: baseline;
  transition: color 0.2s;
}

.news-list a:hover {
  color: var(--navy-light);
}

.news-list time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-bright);
  flex-shrink: 0;
  min-width: 70px;
}

.news-list span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 140px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.sidebar-card__footnote {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.sidebar-card__title-link {
  color: inherit;
  text-decoration: none;
}

.sidebar-card__title-link:hover {
  color: var(--blue-bright);
}

.sidebar-card__more-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-decoration: none;
}

.sidebar-card__more-link:hover {
  text-decoration: underline;
}

/* Markets */
.market-index--featured {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.market-index--featured:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.market-index__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.market-index__name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.market-index__status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
}

.market-index__status--open {
  background: var(--positive);
}

.market-index__status--closed {
  background: rgba(255, 255, 255, 0.2);
}

.market-index__value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.market-index__change {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 4px;
}

.market-index__change.positive,
.market-list__change.positive,
.rates-list .positive {
  color: #6ee7a0;
}

.market-index__change.negative,
.market-list__change.negative {
  color: #fca5a5;
}

.market-list__item {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.market-list__link {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.market-list__link:hover .market-list__name {
  color: var(--blue-bright);
}

.market-list__item:last-child {
  border-bottom: none;
}

.market-list__name {
  font-weight: 600;
  color: var(--navy);
}

.market-list__value {
  font-weight: 700;
  text-align: right;
}

.market-list__change {
  font-weight: 600;
  font-size: 0.8rem;
  text-align: right;
  min-width: 60px;
}

.market-list__change.positive {
  color: var(--positive);
}

.market-list__change.negative {
  color: var(--negative);
}

/* Rates */
.rates-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.rates-list li:last-child {
  border-bottom: none;
}

.rates-list span:first-child {
  font-weight: 600;
  color: var(--navy);
}

.rates-list span:last-child {
  font-weight: 700;
}

/* Weather detail */
.weather-title-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.weather-title-btn:hover {
  color: var(--blue-bright);
}

.weather-detail {
  font-size: 0.9rem;
}

.weather-detail__loading {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.weather-detail__cities {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.weather-detail__city {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.weather-detail__city:hover {
  border-color: var(--blue-bright);
  background: #f8fbff;
}

.weather-detail__city.is-active {
  border-color: var(--blue-bright);
  background: #e8f0fa;
  box-shadow: 0 0 0 1px rgba(40, 116, 204, 0.15);
}

.weather-detail__city-name {
  font-weight: 600;
  color: var(--navy);
}

.weather-detail__city-temp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
}

.weather-detail__city-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.weather-panel {
  margin-bottom: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.weather-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0 0 10px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-bright);
  cursor: pointer;
}

.weather-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.weather-panel__head h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.weather-panel__region {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.weather-panel__hero {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-panel__hero-icon {
  font-size: 2rem;
  line-height: 1;
}

.weather-panel__hero-temp {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.weather-panel__hero-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.weather-panel__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.weather-panel__stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  text-align: center;
}

.weather-panel__stat span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.weather-panel__stat strong {
  font-size: 0.9rem;
  color: var(--navy);
}

.weather-panel__hours-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.weather-panel__hours {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.weather-hour {
  flex: 0 0 auto;
  min-width: 52px;
  text-align: center;
  padding: 8px 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
}

.weather-hour span {
  display: block;
}

.weather-hour__time {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.weather-hour__icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.weather-hour__temp {
  font-weight: 700;
  color: var(--navy);
}

.weather-search {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.weather-search label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.weather-search__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.weather-search__row input {
  flex: 1;
  min-width: 0;
  min-height: var(--btn-height-compact);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.weather-search__row input:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(40, 116, 204, 0.12);
}

.weather-search__row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: var(--btn-height-compact);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-sizing: border-box;
}

.weather-search__row button:hover {
  background: var(--navy-light);
}

.weather-search__hint {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.weather-search__results {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.weather-search__result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: #fafbfc;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.weather-search__result:hover {
  border-color: var(--blue-bright);
  background: #f8fbff;
}

.weather-search__result strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
}

.weather-search__result small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.weather-search__empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 0;
}

.weather-detail__error {
  font-size: 0.85rem;
  color: #9b1c1c;
  padding: 8px 0;
}

/* Poll */
.poll-question {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}

.poll-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.poll-form label:hover {
  background: var(--bg);
}

.poll-btn {
  margin-top: 8px;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.poll-btn:hover {
  background: var(--navy-light);
}

/* Ad placeholder */
.ad-placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--navy-dark) 0%, #060d1a 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
  margin-top: 48px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, 1fr);
  gap: 40px 32px;
  margin-bottom: 36px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-footer__brand .logo--footer {
  margin-bottom: 4px;
  justify-content: flex-start;
  align-self: flex-start;
}

.site-footer__brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.site-footer h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul li:last-child {
  margin-bottom: 0;
}

.site-footer a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sidebar-card--ad {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .main-layout {
    padding-top: 20px;
    padding-bottom: 32px;
    gap: 24px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .sidebar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .top-bar__edition {
    display: none;
  }

  .top-bar__links {
    display: none;
  }

  .top-bar__date {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero-article__content {
    padding: 18px;
  }

  .news-list a {
    flex-direction: column;
    gap: 4px;
  }
}

/* Article page */
.site-header--compact .site-header__inner {
  padding: 10px 20px;
}

.article-page {
  max-width: 800px;
  padding: 32px 20px 48px;
}

.article-full__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.article-full__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-full__image-credit {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
}

.article-full__header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 12px;
}

.article-full__excerpt {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
}

.article-full__body {
  margin-top: 28px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-full__body img,
.article-full__body iframe,
.article-full__body video,
.article-full__body table {
  max-width: 100%;
  height: auto;
}

.article-full__body p {
  margin-bottom: 1.2em;
}

.article-full__body h2,
.article-full__body h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 1.5em 0 0.6em;
}

.article-full__body ul,
.article-full__body ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.article-full__body ul {
  list-style: none;
}

.article-full__body ul > li {
  position: relative;
  padding-left: 0.35em;
  margin: 0 0 0.45em;
}

.article-full__body ul > li::before {
  content: "–";
  position: absolute;
  left: -1em;
  color: var(--navy);
  font-weight: 600;
}

.article-full__body ol {
  list-style: decimal;
}

.article-full__body ol > li {
  margin: 0 0 0.45em;
  padding-left: 0.2em;
}

.article-full__body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-layout__main {
  min-width: 0;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.article-breadcrumb a {
  color: var(--blue-bright);
  font-weight: 600;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta__author {
  font-weight: 600;
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 0;
  margin: 8px 0 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.article-share span:first-child {
  font-weight: 700;
  color: var(--navy);
}

.article-share a,
.article-share__copy {
  color: var(--blue-bright);
  font-weight: 600;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.related-articles {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.related-articles h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Zelfde opbouw als artikelkaarten: 16:9-cover bovenaan, tekst eronder. */
.related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 35, 71, 0.12);
}

.related-card .article-photo--related {
  margin: 0;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

.related-card .article-photo--related .article-photo__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 0;
}

.related-card .article-photo--related .article-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.related-card .article-photo__caption,
.related-card .article-photo__caption--overlay {
  display: none !important;
}

.related-card > div {
  min-width: 0;
  padding: 12px 14px 14px;
}

.related-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.35;
  margin-top: 4px;
}

.related-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-bright);
}

.article-comments {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.article-comments__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.article-comments__count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.comment-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
}

.comment-form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.comment-gate {
  background: #f4f6fa;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.comment-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.comment-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.comment-item__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.comment-item__head strong {
  color: var(--navy);
}

.comment-item__head time {
  color: var(--text-muted);
}

.comment-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.comment-empty {
  margin-top: 16px;
}

.top-bar__redactie {
  opacity: 0.65;
  font-size: 0.75rem;
}

.reader-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reader-auth-divider::before,
.reader-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.reader-auth-alt {
  margin-top: 20px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
}

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

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height);
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-bright) 100%);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.btn-subscribe:hover {
  opacity: 0.92;
}

.account-section-title {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
  }
}

.empty-state {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-state h2 {
  color: var(--navy);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
}

/* Preview mode */
.preview-banner {
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue-bright) 100%);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.preview-banner a {
  color: var(--white);
  text-decoration: underline;
}

.preview-feed-sample {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

/* Subscribe */
.top-bar__cta {
  background: var(--blue-bright);
  color: var(--white) !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
}

.top-bar__cta:hover {
  background: var(--accent-hover);
}

.subscribe-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding-block: 32px 48px;
  align-items: start;
  min-width: 0;
}

.subscribe-page {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.subscribe-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.subscribe-hero p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.frequency-options {
  border: none;
  margin: 0 0 24px;
  padding: 0;
}

.frequency-options legend {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.frequency-card {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

.frequency-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.frequency-card__inner {
  display: block;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.frequency-card__inner strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.frequency-card__inner span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.frequency-card input:checked + .frequency-card__inner {
  border-color: var(--blue-bright);
  background: var(--blue-soft);
}

.frequency-card:hover .frequency-card__inner {
  border-color: var(--blue-bright);
}

.subscribe-email {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.subscribe-email input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}

.subscribe-privacy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-subscribe--block {
  display: flex;
  width: 100%;
}

.subscribe-sidebar-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.subscribe-alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-success {
  background: #e6f6ee;
  color: #0d5c36;
}

.alert-error {
  background: #fde8ea;
  color: #9b1c1c;
}

.alert-info {
  background: #e8f0fa;
  color: #0f2347;
  border: 1px solid #c5d9f2;
}

@media (max-width: 1024px) {
  .subscribe-layout {
    grid-template-columns: 1fr;
  }
}

/* Legal pages */
.legal-page {
  max-width: 760px;
  padding: 32px 20px 48px;
}

.legal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.legal-content__header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-content__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.legal-content__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.legal-content__body h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 1.8em 0 0.6em;
}

.legal-content__body p {
  margin-bottom: 1em;
}

.legal-content__body ul {
  margin: 0 0 1em 1.2em;
}

.legal-content__body li {
  margin-bottom: 0.5em;
}

.legal-content__body a {
  color: var(--blue-bright);
}

/* ——— Mobile-first enhancements ——— */

.site-header__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.menu-toggle:hover {
  background: var(--navy-light);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}

.menu-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

body.mobile-nav-open .menu-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.mobile-nav-open .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

body.mobile-nav-open .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__backdrop {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(10, 24, 48, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 100%);
  max-width: 100%;
  background: var(--white);
  box-shadow: -8px 0 32px rgba(15, 35, 71, 0.18);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translate3d(0, 0, 0);
}

.mobile-nav:not(.is-open) .mobile-nav__panel {
  visibility: hidden;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav__section {
  padding: 16px 16px 0;
}

.mobile-nav__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mobile-nav__list {
  list-style: none;
}

.mobile-nav__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.15s;
}

.mobile-nav__list a:hover,
.mobile-nav__list a.is-active {
  background: var(--blue-soft);
  color: var(--blue-bright);
}

.mobile-nav__list--account a {
  font-weight: 500;
}

.mobile-nav__redactie {
  color: var(--text-muted) !important;
  font-size: 0.88rem !important;
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .top-bar .container,
  .breaking-bar .container,
  .main-nav .container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .site-header > .container.site-header__inner {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: 0;
  }

  .main-nav .container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 0 0 max(14px, env(safe-area-inset-left));
    gap: 10px;
    min-height: 56px;
  }

  .site-header--compact .site-header__inner {
    padding: 0 0 0 max(14px, env(safe-area-inset-left));
    min-height: 52px;
  }

  .logo {
    gap: 0;
    min-width: 0;
    flex-shrink: 0;
  }

  .site-header .logo {
    align-self: center;
  }

  .site-header .logo__text {
    display: none;
  }

  .logo__mark-wrap {
    --logo-text-height: 52px;
    height: 52px;
    width: auto;
    min-width: 52px;
  }

  .logo__mark {
    height: 52px;
    max-width: 64px;
    width: auto;
  }

  .logo--compact .logo__mark-wrap,
  .logo--footer .logo__mark-wrap {
    --logo-text-height: 52px;
    height: 52px;
    width: auto;
    min-width: 52px;
  }

  .logo--compact .logo__mark,
  .logo--footer .logo__mark {
    height: 52px;
    max-width: 64px;
  }

  .site-header__toolbar {
    margin-left: auto;
    margin-right: 0;
    gap: 0;
    align-self: stretch;
  }

  .weather-widget--header {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
    width: 56px;
    min-width: 56px;
    height: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0;
    padding-right: env(safe-area-inset-right, 0);
    border-radius: 0;
    align-self: stretch;
  }

  .site-header--compact .menu-toggle {
    min-height: 52px;
  }

  .main-nav {
    display: none;
  }

  .breaking-bar {
    padding: 6px 0;
  }

  .breaking-bar__inner {
    gap: 10px;
  }

  .breaking-bar__label {
    font-size: 0.62rem;
    padding: 3px 8px;
  }

  .breaking-bar__track {
    font-size: 0.8rem;
    gap: 32px;
  }

  .hero-article {
    margin-bottom: 20px;
    border-radius: var(--radius);
  }

  .hero-article h1 {
    font-size: 1.35rem;
  }

  .hero-article__content {
    padding: 20px 16px 18px;
  }

  .hero-article__excerpt {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .article-card a {
    padding: 0;
  }

  .article-card__body {
    padding: 18px 14px 14px;
    gap: 6px;
  }

  .article-card h2 {
    font-size: 0.95rem;
    margin: 0;
  }

  .article-card p {
    margin: 0;
  }

  .article-card time {
    margin: 2px 0 0;
  }

  .section-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .homepage-categories {
    gap: 28px;
  }

  .category-section__head {
    align-items: center;
    flex-wrap: wrap;
  }

  .category-section__actions {
    margin-bottom: 0;
    width: 100%;
    justify-content: space-between;
  }

  .category-section__more {
    font-size: 0.8rem;
  }

  .category-rail__track {
    gap: 12px;
    padding-bottom: 10px;
  }

  .category-rail__item {
    flex-basis: 82%;
    width: 82%;
    max-width: 82%;
  }

  .category-rail__btn {
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }

  .category-rail__controls {
    gap: 8px;
  }

  .sidebar {
    position: static;
    top: auto;
  }

  .sidebar-card {
    padding: 16px;
    border-radius: var(--radius);
  }

  .market-index__value {
    font-size: 1.45rem;
  }

  .article-page {
    padding: 20px 0 32px;
  }

  .article-full__header h1 {
    font-size: 1.45rem;
  }

  .article-full__excerpt {
    font-size: 1rem;
  }

  .article-full__body {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-share {
    gap: 8px 12px;
    font-size: 0.8rem;
  }

  .article-share span:first-child {
    width: 100%;
    margin-bottom: 2px;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
  }

  .related-card strong {
    font-size: 0.9rem;
  }

  .comment-item {
    padding: 14px;
  }

  .subscribe-layout {
    padding: 20px 0 32px;
    gap: 20px;
  }

  .subscribe-page {
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  .subscribe-hero h1 {
    font-size: 1.35rem;
  }

  .legal-page {
    padding: 20px 0 32px;
  }

  .legal-content {
    padding: 24px 18px;
    border-radius: var(--radius);
  }

  .legal-content__header h1 {
    font-size: 1.45rem;
  }

  .site-footer {
    padding: 32px 0 24px;
  }

  .site-footer__grid {
    gap: 20px;
  }

  .logo--footer .logo__name {
    font-size: 1.1rem;
  }

  .logo--footer .logo__tagline--footer {
    font-size: 0.62rem;
  }

  .preview-banner {
    font-size: 0.8rem;
    padding: 8px 12px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-article__content {
    padding: 14px;
  }

  .hero-article__category {
    top: 10px;
    left: 10px;
    font-size: 0.62rem;
    padding: 4px 8px;
  }

  .news-list a {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }

  .news-list time {
    min-width: 0;
  }

  .article-breadcrumb {
    font-size: 0.78rem;
    flex-wrap: wrap;
  }

  .article-meta {
    flex-direction: column;
    gap: 4px;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
  }

  .logo--footer {
    justify-content: flex-start;
    align-self: flex-start;
  }

  .site-footer__brand {
    align-items: flex-start;
    text-align: left;
  }

  .btn-subscribe,
  .btn-subscribe--block {
    width: 100%;
    padding: 0 20px;
    min-height: var(--btn-height);
  }

  .frequency-card__inner {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breaking-bar__track {
    animation: none;
  }

  .mobile-nav__panel,
  .mobile-nav__backdrop {
    transition: none;
  }
}

/* Weather page */
.weather-page {
  padding-block: 24px 48px;
}

.weather-page__shell {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px 32px;
}

.weather-page__header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 6px;
}

.weather-page__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.weather-page__back {
  margin-bottom: 16px;
}

.weather-page__back a {
  color: var(--blue-bright);
  font-weight: 600;
  text-decoration: none;
}

.weather-page-detail {
  margin-bottom: 28px;
}

.weather-page-detail__hero {
  margin-bottom: 20px;
}

.weather-page__cities {
  margin-bottom: 28px;
}

.weather-page__cities--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.weather-page__cities--grid .weather-detail__city {
  margin: 0;
}

@media (min-width: 900px) {
  .weather-page__cities--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Full meteo detail */
.weather-meteo {
  display: grid;
  gap: 24px;
}

.weather-meteo__hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--blue-bright) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: grid;
  gap: 18px;
}

.weather-meteo__hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.weather-meteo__hero-icon {
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
}

.weather-meteo__hero-temp {
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.weather-meteo__hero-desc {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-top: 6px;
}

.weather-meteo__hero-range {
  font-size: 0.95rem;
  opacity: 0.82;
  margin-top: 4px;
}

.weather-meteo__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.82rem;
  opacity: 0.85;
}

.weather-meteo__quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.weather-meteo__quick-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.weather-meteo__quick-item span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.weather-meteo__quick-item strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.weather-meteo__section,
.weather-meteo__nearby {
  display: grid;
  gap: 16px;
}

.weather-meteo__section-head {
  display: grid;
  gap: 4px;
}

.weather-meteo__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.weather-meteo__subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.weather-meteo__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.weather-meteo__stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.weather-meteo__stat span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.weather-meteo__stat strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.35;
}

.weather-meteo__sun {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.weather-meteo__sun-card {
  background: linear-gradient(180deg, #fff9ef 0%, #fff 100%);
  border: 1px solid #f0e4c8;
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}

.weather-meteo__sun-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.weather-meteo__sun-card strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.weather-meteo__hourly {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.weather-meteo__hour {
  flex: 0 0 92px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.weather-meteo__hour-time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.weather-meteo__hour-icon {
  display: block;
  font-size: 1.5rem;
  margin: 8px 0 4px;
}

.weather-meteo__hour-temp {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

.weather-meteo__hour-meta {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.weather-meteo__hour-bar {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(40, 116, 204, 0.12);
}

.weather-meteo__hour-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--precip, 0);
  background: linear-gradient(90deg, var(--blue-bright), #5ba3e8);
  transition: width 0.25s ease;
}

.weather-meteo__days {
  display: grid;
  gap: 10px;
}

.weather-meteo__day {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.weather-meteo__day-main {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) auto 1.4fr auto;
  gap: 12px;
  align-items: center;
}

.weather-meteo__day-name strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.weather-meteo__day-name span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: capitalize;
}

.weather-meteo__day-icon {
  font-size: 1.75rem;
  text-align: center;
}

.weather-meteo__day-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.weather-meteo__day-temps {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: baseline;
}

.weather-meteo__day-max {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

.weather-meteo__day-min {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.weather-meteo__day-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.weather-meteo__day-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(40, 116, 204, 0.12);
}

.weather-meteo__day-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--fill, 0);
  background: linear-gradient(90deg, var(--blue-bright), #5ba3e8);
  transition: width 0.25s ease;
}

.weather-meteo__chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 180px;
  padding: 12px 8px 0;
  background: linear-gradient(180deg, #f4f8fd 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.weather-meteo__chart-col {
  display: grid;
  gap: 8px;
  align-items: end;
  text-align: center;
  min-width: 0;
}

.weather-meteo__chart-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 120px;
  background: rgba(40, 116, 204, 0.08);
  border-radius: 6px 6px 0 0;
  position: relative;
}

.weather-meteo__chart-bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--height, 0);
  background: linear-gradient(180deg, #5ba3e8, var(--blue-bright));
  border-radius: 6px 6px 0 0;
}

.weather-meteo__chart-bar span {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 6px;
  line-height: 1.2;
}

.weather-meteo__chart-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-meteo__source {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 4px;
}

.weather-meteo__nearby {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .weather-meteo__quick {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .weather-meteo__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-meteo__sun {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-meteo__day-main {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name icon"
      "desc temps";
  }

  .weather-meteo__day-name { grid-area: name; }
  .weather-meteo__day-icon { grid-area: icon; }
  .weather-meteo__day-desc { grid-area: desc; }
  .weather-meteo__day-temps { grid-area: temps; justify-content: flex-start; }

  .weather-meteo__chart {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 16px;
  }
}

@media (max-width: 767px) {
  .weather-page__cities--grid {
    grid-template-columns: 1fr;
  }

  .weather-meteo__hero {
    padding: 22px 18px;
  }

  .weather-meteo__hero-main {
    gap: 14px;
  }

  .weather-meteo__chart {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.weather-page-search {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.weather-page-search__title {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.weather-sidebar-title {
  color: inherit;
  text-decoration: none;
}

.weather-sidebar-title:hover {
  color: var(--blue-bright);
}

.weather-sidebar-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.weather-sidebar-list__loading {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.weather-sidebar-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  font-size: 0.88rem;
}

.weather-sidebar-link:last-child {
  border-bottom: none;
}

.weather-sidebar-link:hover,
.weather-sidebar-link.is-active {
  color: var(--blue-bright);
}

.weather-sidebar-link__icon {
  font-size: 1.1rem;
}

.weather-sidebar-link__name {
  font-weight: 600;
  color: var(--navy);
}

.weather-sidebar-link__temp {
  font-weight: 700;
  color: var(--navy);
}

.weather-sidebar-more {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-decoration: none;
}

.weather-sidebar-more:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .weather-page__shell {
    padding: 20px 16px 24px;
    border-radius: var(--radius);
  }

  .weather-page {
    padding-block: 16px 32px;
  }
}

/* Beurzen */
.beurs-page {
  padding-block: 20px 48px;
}

.beurs-page__shell {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 32px 36px;
}

.beurs-page__header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.beurs-page__subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.beurs-page__back {
  margin-bottom: 20px;
}

.beurs-page__back a {
  color: var(--blue-bright);
  font-weight: 600;
  text-decoration: none;
}

.beurs-page__back a:hover {
  text-decoration: underline;
}

.beurs-section-head {
  margin-bottom: 16px;
}

.beurs-section__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.beurs-section__subtitle,
.beurs-panel__intro {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.beurs-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.beurs-index-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.beurs-index-card:hover {
  border-color: var(--blue-bright);
  transform: translateY(-1px);
}

.beurs-index-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.beurs-index-card__head strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.beurs-index-card__change {
  font-size: 0.78rem;
  font-weight: 700;
}

.beurs-index-card__change--positive,
.beurs-change--positive {
  color: var(--positive);
}

.beurs-index-card__change--negative,
.beurs-change--negative {
  color: var(--negative);
}

.beurs-index-card__change--neutral,
.beurs-change--neutral {
  color: var(--text-muted);
}

.beurs-index-card__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.beurs-index-card__currency {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.beurs-hero {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 360px);
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.beurs-hero--stock {
  grid-template-columns: 1fr;
}

.beurs-hero__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.beurs-hero__head .beurs-hero__main {
  min-width: 0;
  flex: 1;
}

.pf-hero-cta {
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.82rem;
  white-space: nowrap;
  background: #fff;
  color: var(--navy);
  border: 0;
}

.pf-hero-cta:hover {
  opacity: 0.92;
}

.pf-hero-done {
  margin: 0;
  max-width: 11rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
}

.pf-hero-done a {
  color: #fff;
  text-decoration: underline;
}

.beurs-hero__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 6px;
}

.beurs-hero__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.beurs-hero__price {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
}

.beurs-hero__change {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 6px;
}

.beurs-hero__meta {
  margin-top: 8px;
  opacity: 0.85;
  font-size: 0.9rem;
}

.beurs-hero__chart {
  width: 100%;
}

.beurs-hero__chart .line-chart {
  min-height: 220px;
  max-height: 260px;
}

.beurs-hero__chart .line-chart__bg {
  fill: rgba(255, 255, 255, 0.08);
}

.beurs-hero__chart .line-chart__grid {
  stroke: rgba(255, 255, 255, 0.22);
}

.beurs-hero__chart .line-chart__x-label,
.beurs-hero__chart .line-chart__y-label {
  fill: rgba(255, 255, 255, 0.82);
}

.beurs-hero__chart .line-chart__last-box {
  fill: rgba(13, 33, 55, 0.88);
  stroke: rgba(255, 255, 255, 0.25);
}

.beurs-hero__chart .line-chart__last-text {
  fill: #fff;
}

.beurs-hero__chart .line-chart__dot {
  stroke: #fff;
  fill: rgba(255, 255, 255, 0.95);
}

.beurs-valuation-card .line-chart {
  min-height: 180px;
  max-height: none;
  margin-top: 4px;
}

.beurs-valuation-card .line-chart__grid {
  stroke: rgba(40, 116, 204, 0.14);
}

.beurs-valuation-card .line-chart__x-label,
.beurs-valuation-card .line-chart__y-label {
  fill: var(--text-muted);
  font-size: 10px;
  font-family: system-ui, -apple-system, sans-serif;
}

.beurs-valuation-card .line-chart__y-label {
  font-weight: 600;
}

.beurs-valuation-card .line-chart__last-box {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(40, 116, 204, 0.2);
}

.beurs-valuation-card .line-chart__last-text {
  fill: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.beurs-sparkline {
  width: 100%;
  height: 96px;
}

.beurs-sparkline polyline {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.beurs-sparkline--positive polyline {
  stroke: #6ee7a0;
}

.beurs-sparkline--negative polyline {
  stroke: #fca5a5;
}

.beurs-sparkline--neutral polyline {
  stroke: rgba(255, 255, 255, 0.7);
}

.beurs-panel {
  margin-bottom: 24px;
}

.beurs-panel__empty {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.beurs-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.beurs-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.beurs-metric__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.beurs-metric__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.beurs-valuation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.beurs-valuation-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg);
}

.beurs-valuation-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.beurs-valuation-card__head h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.beurs-valuation-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.beurs-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.beurs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.beurs-table th,
.beurs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.beurs-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.beurs-table td.num {
  text-align: right;
  white-space: nowrap;
}

.beurs-table a {
  color: var(--blue-bright);
  font-weight: 700;
  text-decoration: none;
}

.beurs-table a:hover {
  text-decoration: underline;
}

.beurs-search {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.beurs-search__form {
  margin-top: 12px;
}

.beurs-search__field {
  position: relative;
}

.beurs-search__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.beurs-search__row input {
  flex: 1;
  min-width: 0;
  min-height: var(--btn-height-compact);
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  box-sizing: border-box;
  background: var(--white);
}

.beurs-search__row input:focus {
  outline: 2px solid var(--blue-bright);
  outline-offset: 1px;
  border-color: var(--blue-bright);
}

.beurs-search__row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height-compact);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-sizing: border-box;
}

.beurs-search__suggest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 40;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.beurs-search__suggest-item {
  margin: 0;
}

.beurs-search__suggest-link {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
}

.beurs-search__suggest-item.is-active .beurs-search__suggest-link,
.beurs-search__suggest-link:hover {
  background: var(--blue-soft);
}

.beurs-search__suggest-link strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.beurs-search__suggest-link span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.beurs-search__suggest-empty {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.beurs-search__hint,
.beurs-footnote {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.beurs-detail__loading,
.beurs-detail__error {
  color: var(--text-muted);
  padding: 12px 0;
}

.beurs-detail__error a {
  color: var(--blue-bright);
}

@media (max-width: 767px) {
  .beurs-page__shell {
    padding: 20px 16px 24px;
  }

  .beurs-hero {
    grid-template-columns: 1fr;
  }

  .beurs-search__row {
    flex-direction: column;
  }

  .beurs-search__row button {
    width: 100%;
    min-height: var(--btn-height);
  }

  .beurs-search__suggest {
    max-height: min(240px, 42vh);
  }
}

/* ——— Shared line charts (public) ——— */
.line-chart {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 200px;
}

.line-chart__bg {
  fill: rgba(40, 116, 204, 0.05);
}

.line-chart__grid {
  stroke: rgba(40, 116, 204, 0.14);
  stroke-width: 1;
}

.line-chart__x-label,
.line-chart__y-label {
  fill: var(--text-muted);
  font-size: 11px;
  font-family: system-ui, -apple-system, sans-serif;
}

.line-chart__y-label {
  font-weight: 600;
}

.line-chart__last-box {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(40, 116, 204, 0.2);
}

.line-chart__last-text {
  fill: var(--navy);
  font-size: 11px;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
}

.line-chart--compact .line-chart__x-label,
.line-chart--compact .line-chart__y-label {
  font-size: 9px;
}

.line-chart--compact .line-chart__last-text {
  font-size: 9px;
}

.beurs-valuation-card .line-chart-wrap,
.site-chart-wrap--public {
  width: 100%;
  padding: 8px 4px 4px 0;
  overflow: visible;
}

/* ——— Mobile polish: weather, beurs, articles ——— */
@media (max-width: 767px) {
  .weather-page {
    padding-block: 16px 32px;
  }

  .weather-page__shell {
    padding: 20px 16px 24px;
    border-radius: var(--radius);
  }

  .weather-page-search__title {
    font-size: 0.95rem;
  }

  .weather-search__row {
    flex-direction: column;
  }

  .weather-search__row button {
    width: 100%;
    min-height: var(--btn-height);
  }

  .weather-panel {
    padding: 12px;
  }

  .weather-panel__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .weather-panel__hero-temp {
    font-size: 1.5rem;
  }

  .weather-meteo__quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-meteo__hour {
    flex: 0 0 80px;
    padding: 10px 8px;
  }

  .weather-meteo__chart-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px 4px;
    scrollbar-width: thin;
  }

  .weather-meteo__chart {
    min-width: min(100%, 520px);
  }

  .beurs-page {
    padding-block: 16px 32px;
  }

  .beurs-index-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .beurs-index-card {
    padding: 14px;
  }

  .beurs-index-card__price {
    font-size: 1.2rem;
  }

  .beurs-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .beurs-valuation-grid {
    grid-template-columns: 1fr;
  }

  .beurs-valuation-card {
    padding: 14px;
  }

  .beurs-hero__chart .line-chart {
    min-height: 190px;
    max-height: none;
  }

  .beurs-valuation-card .line-chart {
    min-height: 170px;
    max-height: none;
  }

  .beurs-table-wrap {
    margin-left: -4px;
    margin-right: -4px;
    padding-bottom: 4px;
  }

  .beurs-table {
    font-size: 0.82rem;
  }

  .beurs-table th,
  .beurs-table td {
    padding: 8px 10px;
  }

  .beurs-hero__price {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .article-page {
    padding: 20px max(14px, env(safe-area-inset-left)) 32px max(14px, env(safe-area-inset-right));
  }

  .article-full__body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }

  .article-full__body thead,
  .article-full__body tbody,
  .article-full__body tr {
    display: table;
    width: 100%;
    table-layout: auto;
  }

  .reader-auth-page,
  .subscribe-page {
    padding: 22px 16px;
  }
}

@media (max-width: 480px) {
  .weather-page__cities--grid {
    gap: 8px;
  }

  .weather-meteo__quick {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .weather-meteo__quick-item {
    padding: 12px 8px;
  }

  .weather-meteo__quick-item strong {
    font-size: 1rem;
  }

  .weather-meteo__stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .weather-meteo__sun {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .weather-meteo__chart {
    grid-template-columns: repeat(10, minmax(48px, 1fr));
    min-width: 480px;
    gap: 6px;
    min-height: 150px;
    padding: 10px 6px 0;
  }

  .weather-meteo__chart-bar {
    height: 100px;
  }

  .weather-meteo__chart-bar span {
    font-size: 0.58rem;
  }

  .weather-meteo__chart-label {
    font-size: 0.62rem;
  }

  .weather-meteo__day-main {
    gap: 8px;
  }

  .weather-meteo__day-temps {
    flex-wrap: wrap;
    gap: 6px;
  }

  .beurs-index-grid {
    grid-template-columns: 1fr;
  }

  .beurs-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .beurs-metric {
    padding: 12px;
  }

  .beurs-metric__value {
    font-size: 0.95rem;
  }

  .beurs-section__title {
    font-size: 1rem;
  }

  .news-list time {
    min-width: 0;
  }

  .hero-article h1 {
    font-size: 1.25rem;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
  }
}

.beurs-hero--compact {
  grid-template-columns: 1fr;
}

.beurs-chart-root {
  margin-bottom: 24px;
}

.beurs-chart-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 16px 14px;
  margin-bottom: 24px;
}

.beurs-chart-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.beurs-chart-panel__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.beurs-chart-panel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.beurs-chart-panel__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height-compact);
  padding: 0 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--navy);
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.beurs-chart-panel__tab:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

.beurs-chart-panel__tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.beurs-chart-panel__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.beurs-chart-panel__range-change {
  font-size: 0.92rem;
  font-weight: 700;
}

.beurs-chart-panel__canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 300px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f4f8fd 0%, #fff 100%);
  border: 1px solid rgba(40, 116, 204, 0.1);
  overflow: hidden;
  padding: 4px 2px 0 0;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
}

.beurs-chart-panel__canvas-wrap.is-dragging {
  cursor: ew-resize;
}

.beurs-chart-panel__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  background: linear-gradient(180deg, #f4f8fd 0%, #fff 100%);
}

.beurs-chart-panel__loading.is-active,
.beurs-chart-panel__loading:not([hidden]) {
  display: flex;
}

.beurs-chart-panel__loading[hidden] {
  display: none !important;
}

.beurs-chart-panel__selection {
  position: absolute;
  z-index: 4;
  box-sizing: border-box;
  background: rgba(220, 38, 38, 0.28);
  border-left: 2px dashed rgba(153, 16, 16, 0.95);
  border-right: 2px dashed rgba(153, 16, 16, 0.95);
  pointer-events: none;
}

.beurs-chart-panel__selection[hidden] {
  display: none !important;
}

.beurs-chart-panel__selection-edge {
  display: none;
}

.beurs-market-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
  touch-action: none;
  overflow: hidden;
  pointer-events: none;
}

.beurs-market-chart__bg {
  fill: rgba(40, 116, 204, 0.04);
}

.beurs-market-chart__grid {
  stroke: rgba(40, 116, 204, 0.14);
  stroke-width: 1;
}

.beurs-market-chart__line {
  stroke-width: 2.5;
}

.beurs-market-chart__x,
.beurs-market-chart__y {
  fill: var(--text-muted);
  font-size: 11px;
  font-family: system-ui, -apple-system, sans-serif;
}

.beurs-market-chart__y {
  font-weight: 600;
}

.beurs-market-chart__crosshair {
  stroke: rgba(40, 116, 204, 0.45);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.beurs-market-chart__dot {
  pointer-events: none;
}

.beurs-chart-panel__tooltip {
  position: absolute;
  z-index: 6;
  transform: translateX(-50%);
  background: rgba(13, 33, 55, 0.94);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(13, 33, 55, 0.28);
  white-space: nowrap;
}

.beurs-chart-panel__tooltip strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.beurs-chart-panel__tooltip span {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  opacity: 0.85;
}

.beurs-chart-panel__drag-delta {
  position: absolute;
  z-index: 7;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 8px;
  padding: 6px 10px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(13, 33, 55, 0.16);
  white-space: nowrap;
}

.beurs-chart-panel__drag-delta strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .beurs-chart-panel {
    padding: 14px 12px 12px;
  }

  .beurs-chart-panel__head {
    flex-direction: column;
    align-items: stretch;
  }

  .beurs-chart-panel__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .beurs-chart-panel__tab {
    width: 100%;
    min-height: var(--btn-height);
    border-radius: 8px;
    text-align: center;
  }

  .beurs-chart-panel__canvas-wrap,
  .beurs-market-chart {
    min-height: 260px;
    padding-right: 0;
  }

  .beurs-market-chart__x,
  .beurs-market-chart__y {
    font-size: 10px;
  }

  .line-chart {
    min-height: 190px;
  }

  .beurs-valuation-card .line-chart {
    min-height: 170px;
  }
}

@media (max-width: 480px) {
  .beurs-chart-panel__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .weather-meteo__hero-main {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .weather-meteo__quick {
    grid-template-columns: 1fr;
  }

  .beurs-metric-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Portefeuille ——— */
.pf-header {
  margin-bottom: 20px;
}

.pf-header .beurs-page__subtitle {
  margin-bottom: 0;
}

.pf-gate {
  display: grid;
  gap: 16px;
  max-width: 420px;
}

.pf-gate .btn-subscribe {
  justify-self: start;
}

.pf-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.pf-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.pf-metric span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pf-metric strong {
  display: block;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.25;
}

.pf-metric small {
  font-size: 0.8rem;
  font-weight: 600;
}

.pf-alloc {
  margin: 0 0 24px;
}

.pf-alloc__bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--bg);
  gap: 2px;
}

.pf-alloc__seg {
  background: var(--blue-bright);
  min-width: 4px;
}

.pf-alloc__seg:nth-child(2) { background: #0f2347; }
.pf-alloc__seg:nth-child(3) { background: #5b8fd4; }
.pf-alloc__seg:nth-child(4) { background: #8aa9c9; }
.pf-alloc__seg:nth-child(5) { background: #c4a35a; }
.pf-alloc__seg:nth-child(6) { background: #6b8f71; }

.pf-alloc__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pf-tabs {
  display: flex;
  gap: 6px;
  margin: 8px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pf-tabs button {
  flex: 1 0 auto;
  min-height: var(--btn-height);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius);
  padding: 0 14px;
  cursor: pointer;
}

.pf-tabs button.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pf-empty {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.pf-cards {
  display: grid;
  gap: 12px;
}

.pf-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 14px;
}

.pf-card__main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.pf-card__id strong,
.pf-watch__row a strong,
.pf-table td a strong {
  display: block;
  color: var(--navy);
}

.pf-card__id span,
.pf-watch__row a span,
.pf-table td a span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.pf-card__price {
  text-align: right;
}

.pf-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 14px 0 0;
}

.pf-card__stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pf-card__stats dd {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

.pf-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.pf-card__actions .btn-subscribe {
  min-height: var(--btn-height);
  width: 100%;
}

.pf-table-wrap {
  display: none;
}

.pf-table td a {
  text-decoration: none;
}

.pf-table__actions {
  white-space: nowrap;
}

.pf-table__actions button {
  min-height: 36px;
  margin-left: 6px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  color: var(--navy);
}

.pf-watch,
.pf-tx {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pf-watch__row,
.pf-tx li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.pf-watch__row a,
.pf-tx li > div {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pf-watch__quote {
  margin: 8px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.pf-tx li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pf-tx li span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pf-text-btn {
  border: 0;
  background: none;
  color: var(--blue-bright);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  padding: 0;
  text-align: left;
}

.pf-hint {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.pf-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pf-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 71, 0.45);
}

.pf-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 18px 18px 24px;
  box-shadow: 0 -8px 32px rgba(15, 35, 71, 0.18);
}

.pf-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pf-sheet__head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
}

.pf-sheet__close {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pf-sheet__meta {
  margin: 6px 0 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.pf-sheet__form {
  display: grid;
  gap: 12px;
}

.pf-field {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.pf-field input {
  display: block;
  width: 100%;
  height: var(--btn-height);
  min-height: var(--btn-height);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  font: inherit;
  font-weight: 500;
  line-height: normal;
}

.pf-field input[type="date"]::-webkit-datetime-edit,
.pf-field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.pf-field__optional {
  font-weight: 500;
  color: var(--text-muted);
}

.pf-sheet__error {
  margin: 0 0 10px;
  color: var(--negative);
  font-size: 0.88rem;
  font-weight: 600;
}

.pf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.pf-sheet__actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.pf-suggest-btn {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.pf-beurs-cta {
  margin: 16px 0 0;
}

@media (min-width: 768px) {
  .pf-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pf-cards {
    display: none;
  }

  .pf-table-wrap {
    display: block;
  }

  .pf-sheet {
    align-items: center;
    padding: 24px;
  }

  .pf-sheet__panel {
    border-radius: 10px;
    max-height: min(640px, 90vh);
  }

  .pf-watch__row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) auto;
    align-items: center;
    gap: 16px;
  }

  .pf-watch__row .pf-card__actions {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .pf-field-row {
    grid-template-columns: 1fr;
  }

  .pf-hero-cta {
    max-width: 7.8rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    height: auto;
    min-height: 36px;
    padding: 8px 10px;
  }
}

