/* Kennemerkrant.nl — design mockup */
:root {
  --ink: #0A3D62;
  --ink-soft: #1A5674;
  --paper: #F7F1E8;
  --paper-2: #EFE6D8;
  --sand: #D4B896;
  --sand-gold: #C9A86C;
  --sea: #0A3D62;
  --sea-dark: #062B45;
  --sea-mid: #2E86AB;
  --accent: #C9A86C;
  --accent-soft: #F0E4D0;
  --line: #D4B896;
  --ok: #1a7a4c;
  --warn: #b45309;
  --placeholder-bg: #fff3bf;
  --placeholder-border: #e6b800;
  --cream: #F7F1E8;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(10,61,98,.10);
  --font-serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* Top bar */
.topbar {
  background: var(--sea-dark);
  color: #e8f1f5;
  font-size: .85rem;
  padding: .45rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.topbar a { color: #cde3ee; text-decoration: none; }
.topbar a:hover { color: #fff; }
.date-line { opacity: .9; }

/* Masthead */
.masthead {
  padding: 1rem 0 .85rem;
  border-bottom: 3px solid var(--sea);
  background: linear-gradient(180deg, #fffefb 0%, var(--cream) 100%);
}
.masthead .wrap { text-align: center; }
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: clamp(52px, 9vw, 72px);
  width: auto;
  max-width: min(100%, 420px);
}
.logo-text-fallback {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}
.logo-text-fallback span { color: var(--sea-mid); }
.tagline {
  margin: .45rem 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-brand {
  display: block;
  margin-bottom: .85rem;
  text-decoration: none;
  line-height: 0;
}
.footer-brand img {
  height: 52px;
  width: auto;
  max-width: 280px;
}

/* Nav */
.nav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: .45rem .7rem;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
  margin: .5rem 0;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
}
.nav-list a {
  display: block;
  color: #f2f4f7;
  text-decoration: none;
  padding: .7rem .7rem;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--sand-gold);
  background: rgba(255,255,255,.06);
}
.nav-list .accent-item a { color: #E8D4B0; }

/* Layout */
.main { padding: 1.25rem 0 2.5rem; }
.grid-home {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .grid-home { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; flex-direction: column; padding-bottom: .5rem; }
  .nav-list.open { display: flex; }
}

/* Ticker */
.ticker {
  background: var(--sea);
  color: #fff;
  border-radius: var(--radius);
  padding: .65rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.ticker-label {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(0,0,0,.2);
  padding: .2rem .5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.ticker ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  font-size: .95rem;
}
.ticker a { color: #fff; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.45); }
.ticker a:hover { border-bottom-style: solid; }

/* Cards / articles */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; } }
.hero-media {
  background: linear-gradient(135deg, #5a7d8c 0%, #2c4a57 60%, #1a2f38 100%);
  min-height: 240px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
}
.hero-media .ph-label { position: absolute; top: .75rem; left: .75rem; }
.hero-body { padding: 1.25rem 1.25rem 1.4rem; }
.kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin: 0 0 .5rem;
  font-weight: 700;
}
.hero h1 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.meta {
  color: var(--ink-soft);
  font-size: .85rem;
  margin: .5rem 0 0;
}
.deck { color: var(--ink-soft); margin: .5rem 0 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
  margin: 1.5rem 0 .9rem;
  padding-bottom: .35rem;
}
.section-head h2 { font-size: 1.25rem; margin: 0; }
.section-head a { font-size: .9rem; font-weight: 600; text-decoration: none; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .story-grid { grid-template-columns: 1fr; } }

.story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.story-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #8aa4b0, #3d5a66);
  position: relative;
}
.story-card .body { padding: .85rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.story-card h3 { font-size: 1.05rem; }
.story-card h3 a { color: inherit; text-decoration: none; }
.story-card h3 a:hover { color: var(--sea); }
.story-card p { font-size: .92rem; color: var(--ink-soft); margin: .35rem 0 0; flex: 1; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.panel h2 {
  font-size: 1rem;
  margin: 0 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--sea);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: var(--font-sans);
  font-weight: 700;
}
.panel.weer { border-top: 4px solid #3b82f6; }
.panel.verkeer { border-top: 4px solid var(--warn); }
.panel.ad { border-top: 4px solid var(--sand); background: var(--paper-2); text-align: center; }

.weer-now {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: center;
}
.weer-temp {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.weer-meta { font-size: .9rem; color: var(--ink-soft); }
.weer-meta strong { color: var(--ink); display: block; font-size: 1rem; }
.weer-list { list-style: none; margin: .85rem 0 0; padding: 0; font-size: .88rem; }
.weer-list li {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  border-top: 1px solid var(--line);
}

.traffic-item {
  padding: .55rem 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.traffic-item:first-of-type { border-top: 0; padding-top: 0; }
.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .4rem;
  border-radius: 3px;
  margin-right: .35rem;
}
.badge.file { background: #fee2e2; color: #991b1b; }
.badge.langzaam { background: #ffedd5; color: #9a3412; }
.badge.vrij { background: #dcfce7; color: #166534; }

/* Placeholders — clearly marked */
.placeholder {
  background: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-border);
  color: #6b5500;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .2rem .45rem;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.3;
}
.placeholder.block {
  display: block;
  text-align: center;
  padding: .75rem;
  margin: .35rem 0;
}
.ph-label {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  color: #6b5500;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .15rem .4rem;
  border-radius: 3px;
}

/* Places strip */
.places {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .5rem 0 0;
}
.places a {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: .8rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-weight: 600;
}
.places a:hover { background: var(--sea); color: #fff; border-color: var(--sea); }

/* Article page */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-header { margin-bottom: 1rem; }
.article-header h1 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); max-width: 22ch; }
.article-hero {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #6b8794, #243942);
  border-radius: var(--radius);
  margin: 1rem 0 1.25rem;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
}
.article-body p { margin: 0 0 1.1rem; font-size: 1.05rem; }
.article-body .lead { font-size: 1.2rem; color: var(--ink-soft); font-family: var(--font-serif); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0; }
.tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 999px;
  text-decoration: none;
}
.tag.region { background: #dbeafe; color: #1e40af; }
.tag.place { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }

.share {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.share-label { font-weight: 700; font-size: .9rem; margin-right: .25rem; }
.share-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.share-btn:hover { border-color: var(--sea); color: var(--sea); background: #fff; }
.share-btn.x { background: #000; color: #fff; border-color: #000; }
.share-btn.fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.li { background: #0a66c2; color: #fff; border-color: #0a66c2; }

/* Place page */
.place-hero {
  background: linear-gradient(120deg, var(--sea-dark), var(--sea));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
}
.place-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .35rem; }
.place-hero p { margin: 0; opacity: .92; max-width: 50ch; }
.breadcrumb { font-size: .85rem; margin-bottom: .75rem; }
.breadcrumb a { color: inherit; opacity: .85; }

/* Footer */
.site-footer {
  background: var(--sea-dark);
  color: #D4B896;
  padding: 2rem 0 1.5rem;
  margin-top: 1rem;
  font-size: .9rem;
}
.site-footer a { color: #F7F1E8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sand-gold);
  margin: 0 0 .6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  justify-content: space-between;
  font-size: .82rem;
  opacity: .85;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Prose pages */
.prose {
  max-width: 720px;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}
.prose h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 .75rem;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 1.6rem 0 .55rem;
}
.prose p, .prose li { color: var(--ink); }
.prose .lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-top: 0;
}
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.footer-contact { margin-top: .75rem; font-size: .88rem; line-height: 1.5; }

/* External source link cards */
.link-cards {
  display: grid;
  gap: .75rem;
  margin: 1.25rem 0;
}
.link-card {
  display: block;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.link-card:hover { border-color: var(--sea-mid); color: inherit; }
.link-card strong { display: block; color: var(--sea); margin-bottom: .25rem; }
.link-card span { display: block; font-size: .92rem; color: var(--ink-soft); }
.embed-frame {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.source-note {
  margin: .75rem 0 0;
  font-size: .82rem;
  color: var(--ink-soft);
}
.panel-intro { margin: 0 0 .75rem; font-size: .92rem; color: var(--ink-soft); }
.panel-cta { margin: .5rem 0; }
.btn-ext {
  display: inline-block;
  background: var(--sea);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .9rem;
  padding: .45rem .85rem;
  border-radius: 999px;
}
.btn-ext:hover { background: var(--sea-mid); color: #fff !important; }
.weer-list a { font-weight: 600; text-decoration: none; }
.weer-list a:hover { text-decoration: underline; }

/* WordPress theme additions */
.hero-media img,
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media a,
.article-hero a { display: block; height: 100%; min-height: 240px; color: inherit; text-decoration: none; }
.story-card .thumb { display: block; text-decoration: none; color: inherit; }
.story-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}
.custom-logo-link { display: inline-flex; line-height: 0; }
.custom-logo { height: clamp(52px, 9vw, 72px); width: auto; max-width: min(100%, 420px); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { border-bottom-color: var(--sand-gold); background: rgba(255,255,255,.06); }
.pagination, .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0;
  align-items: center;
}
.pagination a, .pagination span, .nav-links a, .nav-links span {
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.pagination .current, .nav-links .current { background: var(--sea); color: #fff; border-color: var(--sea); }
.search-form { display: flex; gap: .5rem; margin: 1rem 0; }
.search-form input[type="search"] {
  flex: 1;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}
.search-form button {
  background: var(--sea);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: .55rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.related-grid { margin-top: 2rem; }
.screen-reader-text, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.article-body img { border-radius: var(--radius); }
.article-body figure { margin: 0 0 1.25rem; }
