/*
 * The public news pages (DAW-15): the look of meditsolutions.nl and the canvas boards (overview board A, "Detailpagina").
 * Self-hosted Raleway (OFL, fonts/OFL.txt), no JavaScript; works from 320 px wide, touch targets at least 44 px.
 */

@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/Raleway-400.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/Raleway-600.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/Raleway-700.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/Raleway-800.woff2") format("woff2"); }

:root {
  --page: #242424;
  --bar: #1b1b1b;
  --panel: #2b2b2b;
  --line: #3a3a3a;
  --text: #eeeeee;
  --soft: #c8c8c8;
  --muted: #b5b5b5;
  --accent: #4169e1;
  --link: #8fa8ff;
  --link-hover: #b8c8ff;
  --navy: #1d2540;
  --navy-text: #d0d6ea;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/*
 * The page itself: the body of the public pages (class news-site), and the preview box on the portal's platform page
 * (DAW-15 Task 8), which loads this file too. Element rules are scoped to those two with :where(), which adds no
 * specificity, so the public pages cascade as before and the portal's own elements are left alone.
 */
.news-site, .news-preview {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.news-preview { padding: 32px; border-radius: 12px; }
/* The portal's reset takes the list markers away; the public pages have the browser's. */
:where(.news-preview) ol { list-style: decimal; }
:where(.news-preview) ul { list-style: disc; }

:where(.news-site, .news-preview) img { max-width: 100%; height: auto; display: block; }

:where(.news-site, .news-preview) a { color: var(--link); text-decoration: none; }
:where(.news-site, .news-preview) a:hover { color: var(--link-hover); text-decoration: underline; }
:where(.news-site, .news-preview) a:focus-visible {
  outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px;
}

:where(.news-site, .news-preview) :is(h1, h2, h3) { margin: 0; color: var(--text); }

.wrap { max-width: 1140px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 800px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 18px;
  background: var(--accent); color: #ffffff; font-weight: 700; border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; color: #ffffff; }

/* Header: the website's dark bar with its menu */
.site-header { position: relative; background: var(--bar); border-bottom: 1px solid #333333; }
.site-header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 12px; padding-bottom: 12px;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { width: 150px; height: auto; }
.menu {
  display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.menu a { display: inline-flex; align-items: center; min-height: 44px; color: #cccccc; }
.menu a:hover { color: #ffffff; text-decoration: none; }
.menu a[aria-current="page"] { color: #ffffff; box-shadow: inset 0 -2px 0 var(--accent); }

/* Overview: band, filter, cards, pager */
.hero { background: var(--bar); border-bottom: 3px solid var(--accent); }
.hero .wrap { padding-top: 64px; padding-bottom: 48px; }
.eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--link);
}
.hero h1 { margin: 0 0 16px; max-width: 820px; font-size: 44px; line-height: 1.15; font-weight: 800; }
.hero-lead { margin: 0; max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--soft); }

.listing { padding-top: 40px; padding-bottom: 72px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
  border: 2px solid var(--accent); border-radius: 30px; color: #dddddd; font-size: 15px; font-weight: 600;
  line-height: 1.2;
}
.pill:hover { background: rgba(65, 105, 225, 0.18); color: #ffffff; text-decoration: none; }
.pill[aria-current="page"] { background: var(--accent); color: #ffffff; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

.empty { margin: 0 0 28px; font-size: 18px; color: var(--soft); }

.cards { display: flex; flex-direction: column; gap: 28px; }
.news-card {
  display: flex; flex-wrap: wrap; gap: 20px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.news-card-image { flex: 0 1 320px; display: block; }
.news-card-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.news-card-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.news-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: 13px; color: var(--muted);
}
.news-card h2 { font-size: 24px; line-height: 1.3; font-weight: 700; }
.news-card h2 a { color: #ffffff; }
.news-summary { margin: 0; font-size: 16px; line-height: 1.7; color: var(--soft); }
.read-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }
.read-more [aria-hidden="true"] { margin-left: 0.3em; }

.chip {
  display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700;
  line-height: 1.4; letter-spacing: 0.5px; text-transform: uppercase;
}
.chip-cyberwacht { background: #f08c3a; color: #1b1b1b; }
.chip-lichtpunt { background: #3ddc97; color: #0e2623; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.pager .pill { padding: 12px 28px; color: #ffffff; }

/* Call to action: the band under the overview and the box under an article */
.cta-band { background: var(--navy); border-top: 2px solid var(--accent); }
.cta-band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 48px; padding-bottom: 48px;
}
.cta-band .cta-text { flex: 1 1 520px; }
.cta-band h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.3; font-weight: 800; }
.cta-text p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--navy-text); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 30px;
  background: var(--accent); border-radius: 30px; color: #ffffff; font-weight: 700; line-height: 1.2;
}
.button:hover { background: #3557c4; color: #ffffff; text-decoration: none; }

/* Article */
.article-page { padding-top: 36px; padding-bottom: 72px; }
.crumbs { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }

.news-article h1 { margin: 16px 0 14px; font-size: 40px; line-height: 1.2; font-weight: 800; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0 0 28px; font-size: 15px; color: var(--muted); }
.article-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; }
.news-article .lead { margin: 32px 0 0; font-size: 20px; line-height: 1.7; font-weight: 600; color: #e2e2e2; }
.article-section h2 { margin: 40px 0 12px; font-size: 26px; line-height: 1.3; font-weight: 700; }
.article-section p, .steps { margin: 0 0 16px; font-size: 17px; line-height: 1.8; color: #d2d2d2; }
.article-section p:last-child, .steps:last-child { margin-bottom: 0; }
.article-section.action {
  margin-top: 36px; padding: 24px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.article-section.action h2 { margin-top: 0; margin-bottom: 14px; font-size: 22px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 6px; }
.sources h2 { margin: 36px 0 12px; font-size: 20px; font-weight: 700; }
.sources ul { margin: 0; padding-left: 22px; font-size: 16px; line-height: 1.6; }
.sources li { margin-bottom: 4px; padding: 6px 0; }
/* Inline, so a long title wraps under its bullet; the padding widens the touch target. */
.sources a { padding: 10px 0; }

.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 48px; padding: 28px; background: var(--navy); border: 2px solid var(--accent); border-radius: 8px;
}
.cta-box .cta-text { flex: 1 1 380px; }
.cta-box h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; font-weight: 800; }

.also-heading {
  margin: 56px 0 18px; font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
}
.also-card {
  display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 8px; color: var(--text);
}
.also-card:hover { color: #ffffff; text-decoration: none; filter: brightness(1.12); }
.also-lichtpunt { background: #16302c; border: 1px solid #24514a; }
.also-cyberwacht { background: var(--navy); border: 1px solid #2e3d6e; }
.also-card img { flex: 0 0 140px; width: 140px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.also-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.also-kind { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.also-lichtpunt .also-kind { color: #6ee7b3; }
.also-cyberwacht .also-kind { color: #f5a35f; }
.also-title { font-size: 18px; line-height: 1.35; font-weight: 700; }

/* 404 and 410 */
.missing { padding-top: 72px; padding-bottom: 96px; }
.missing h1 { margin-bottom: 16px; font-size: 36px; line-height: 1.2; font-weight: 800; }
.missing p { margin: 0 0 24px; font-size: 18px; color: var(--soft); }

/* Footer */
.site-footer { background: var(--bar); }
.site-footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--muted);
}
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .menu { gap: 0 16px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 32px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 17px; }
  .listing { padding-top: 28px; }
  .news-card h2 { font-size: 21px; }
  .news-article h1 { font-size: 30px; }
  .news-article .lead { font-size: 18px; }
  .article-section h2 { font-size: 22px; }
  .article-section.action { padding: 20px; }
  .cta-band h2 { font-size: 22px; }
  .cta-box { padding: 22px; }
  .also-card { align-items: flex-start; }
  .also-card img { flex-basis: 96px; width: 96px; }
  .also-title { font-size: 16px; }
}
