/* Your News — classic newspaper (NYT / WaPo impression) */
:root {
  --paper: #f7f3e8;
  --paper-edge: #efe9d8;
  --ink: #111;
  --muted: #444;
  --rule: #1a1a1a;
  --accent: #8b0000;
  --max: 1100px;
  --serif: "Libre Baskerville", "Times New Roman", Times, Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.45;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem 3rem; }

/* Top chrome */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: .55rem 0; font-family: var(--sans); font-size: .78rem;
  letter-spacing: .02em; border-bottom: 1px solid var(--rule);
}
.topbar nav { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.topbar .nav-link { text-transform: uppercase; font-weight: 600; font-size: .72rem; }
.topbar .inline { display: inline; margin: 0; }
.topbar button {
  font: inherit; background: none; border: 0; cursor: pointer;
  text-transform: uppercase; font-weight: 600; font-size: .72rem; padding: 0;
}
.topbar .user { color: var(--muted); }
.lang-switch {
  font: inherit; font-size: .75rem; background: var(--paper);
  border: 1px solid #aaa; padding: .15rem .35rem;
}

/* Masthead */
.masthead {
  text-align: center; padding: 1.1rem 0 .85rem;
  border-bottom: 3px double var(--rule);
}
.masthead .brand {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700; letter-spacing: .04em;
  margin: 0; line-height: 1;
}
.masthead .tagline {
  margin: .35rem 0 0; font-family: var(--sans); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .18em; color: var(--muted);
}
.dateline {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .45rem 0 .7rem; margin-bottom: .4rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: .78rem; text-transform: capitalize;
}
.dateline .edition { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Front page grid */
.frontpage {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .frontpage { grid-template-columns: 1fr; }
}
.lead { padding-right: .5rem; border-right: 1px solid #ccc; }
@media (max-width: 900px) { .lead { border-right: 0; padding-right: 0; } }
.kicker {
  font-family: var(--sans); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); margin: 0 0 .35rem; font-weight: 700;
}
.lead-title {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.12;
  margin: 0 0 .5rem; font-weight: 700;
}
.dek { font-size: 1.05rem; color: var(--muted); margin: 0 0 .55rem; }
.byline {
  font-family: var(--sans); font-size: .75rem; color: var(--muted);
  margin: 0 0 .85rem; text-transform: uppercase; letter-spacing: .04em;
}
.lead-excerpt { font-size: 1.02rem; margin: 0 0 .75rem; }
.read-more {
  font-family: var(--sans); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; border-bottom: 1px solid var(--ink);
}
.secondary { display: flex; flex-direction: column; gap: 1rem; }
.secondary .card {
  padding-bottom: .85rem; border-bottom: 1px solid #ccc;
}
.secondary .card:last-child { border-bottom: 0; }
.secondary h3 {
  font-size: 1.15rem; line-height: 1.2; margin: 0 0 .35rem; font-weight: 700;
}
.rail {
  background: var(--paper-edge); padding: .85rem .9rem;
  border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule);
}
.rail h2 {
  font-family: var(--sans); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .12em; margin: 0 0 .7rem; border-bottom: 1px solid #bbb;
  padding-bottom: .35rem;
}
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li { margin: 0 0 .85rem; }
.rail li strong { display: block; font-size: .95rem; }
.rail li span {
  display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem;
}

/* Article */
.article-page { max-width: 720px; margin: 1.2rem auto 0; }
.article-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; margin: 0 0 .5rem;
}
.article-body { font-size: 1.12rem; line-height: 1.65; margin-top: 1.2rem; }
.article-body p { margin: 0 0 1rem; }
.article-body p:first-child::first-letter {
  font-size: 3.2rem; float: left; line-height: .85; padding: .1rem .4rem 0 0;
  font-weight: 700;
}
.back {
  display: inline-block; margin: 1rem 0; font-family: var(--sans);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
}
.related {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule);
}
.related h2 {
  font-family: var(--sans); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .1em; margin: 0 0 .6rem;
}
.related ul { margin: 0; padding-left: 1.1rem; }
.related li { margin: .35rem 0; }

/* Companies / admin / login */
.page-head { margin: 1.2rem 0 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .6rem; }
.page-head h1 { margin: 0 0 .35rem; font-size: 1.8rem; }
.page-head p { margin: 0; color: var(--muted); }
.companies-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.company-card {
  border: 1px solid #ccc; padding: 1rem; background: #fffef8;
}
.company-card h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid #ddd; font-size: 1.02rem;
}
.login-box, .admin-box {
  max-width: 480px; margin: 1.5rem auto; padding: 1.25rem;
  border: 1px solid #ccc; background: #fffef8;
}
.login-box label, .admin-box label {
  display: block; font-family: var(--sans); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em; margin: .7rem 0 .25rem;
}
.login-box input, .admin-box input, .admin-box textarea, .admin-box select {
  width: 100%; padding: .45rem .5rem; font: inherit; border: 1px solid #999;
  background: #fff; color: var(--ink);
}
.admin-box textarea { min-height: 160px; }
.btn {
  display: inline-block; margin-top: .9rem; font-family: var(--sans);
  text-transform: uppercase; letter-spacing: .06em; font-size: .78rem;
  background: var(--ink); color: var(--paper); border: 0; padding: .55rem .9rem;
  cursor: pointer;
}
.btn:hover { opacity: .9; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .92rem; }
.admin-table th, .admin-table td {
  border-bottom: 1px solid #ccc; text-align: left; padding: .45rem .3rem;
  font-family: var(--sans);
}
.msg { font-family: var(--sans); font-size: .85rem; color: var(--accent); margin-top: .5rem; }
.footer {
  margin-top: 2.5rem; padding-top: .8rem; border-top: 3px double var(--rule);
  font-family: var(--sans); font-size: .72rem; color: var(--muted); text-align: center;
}
.empty { color: var(--muted); font-style: italic; }

/* Section bar + AI search */
.section-bar {
  display: flex; flex-wrap: wrap; gap: .15rem .85rem;
  justify-content: center; align-items: center;
  padding: .55rem 0 .65rem; margin-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.section-bar a { color: var(--muted); }
.section-bar a:hover, .section-bar a.active { color: var(--accent); text-decoration: none; }
.search-hero {
  display: flex; gap: .5rem; align-items: stretch;
  margin: .85rem 0 .35rem; max-width: 720px;
}
.search-hero input {
  flex: 1; font: inherit; font-size: 1.05rem;
  padding: .55rem .7rem; border: 1px solid #888; background: #fffef8;
  color: var(--ink);
}
.search-hero .btn { margin-top: 0; white-space: nowrap; }
.search-hint {
  font-family: var(--sans); font-size: .75rem; color: var(--muted);
  margin: 0 0 1rem;
}
.search-pending { max-width: 640px; margin: 1.5rem auto; text-align: center; }
.search-pending .status-msg { font-size: 1.1rem; margin: 1rem 0; }

/* Geo dateline + location filter chips */
.geo-line {
  font-family: var(--sans); font-size: .78rem; color: var(--muted);
  margin: 0 0 .45rem; letter-spacing: .04em; text-transform: none;
}
.geo-line::before { content: "📍 "; font-size: .7rem; }

.corroboration-line {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: .78rem;
  color: #3a5a40;
  margin: .15rem 0 .55rem;
  letter-spacing: .01em;
}
.corroboration-line::before { content: "✓ "; font-weight: 700; }
.corroboration-line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.corroboration-line a:hover { opacity: 0.85; }

.geo-filter {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  margin: .35rem 0 .55rem; font-family: var(--sans);
}
.geo-chip {
  display: inline-block; padding: .2rem .55rem; border: 1px solid #999;
  border-radius: 999px; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); background: #fffef8;
  text-decoration: none !important;
}
.geo-chip:hover { border-color: var(--ink); color: var(--ink); }
.geo-chip.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.article-list li {
  flex-wrap: wrap; align-items: baseline;
}
.article-list li .geo-line { width: 100%; margin: .15rem 0 0; order: 3; }
.article-list li .byline { margin-left: auto; }


/* Weer / Open-Meteo */
.weer-widget {
  margin: 0 0 1.25rem; padding: 0 0 .85rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.weer-widget h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .45rem; }
.weer-widget h2 a { color: var(--accent); text-decoration: none; }
.weer-now { font-size: .85rem; margin: 0 0 .5rem; color: var(--muted); }
.weer-note { font-size: .72rem; color: var(--muted); margin: .35rem 0; }
.weer-empty { color: var(--muted); font-size: .85rem; }
.buien-chart {
  display: flex; align-items: flex-end; gap: 1px;
  height: 56px; width: 100%;
  background: linear-gradient(to top, #e8eef5, transparent);
  border: 1px solid #ccc; padding: 2px 2px 0; margin: .35rem 0;
}
.buien-bar {
  flex: 1; min-width: 2px; background: #3a6ea5; opacity: .85;
  align-self: flex-end;
}
.weer-page { margin-top: 1rem; }
.weer-page .page-title { font-size: 1.6rem; margin: 0 0 .35rem; }
.weer-page .page-intro { color: var(--muted); font-family: var(--sans); font-size: .9rem; }
.weer-block { margin: 1.25rem 0 1.5rem; }
.weer-block h3 { font-size: 1.05rem; border-bottom: 1px solid var(--rule); padding-bottom: .25rem; }
.weer-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .88rem; }
.weer-table th, .weer-table td { text-align: left; padding: .4rem .35rem; border-bottom: 1px solid #ddd; }
.weer-table th { text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; color: var(--muted); }
.weer-icon { white-space: nowrap; }
