/* Dienst Werk en Transitie. Flat public-sector look: white content, one dark blue accent,
   system fonts, underlined links, visible focus, no gradients or shadows. Light only. */

:root {
  --blue: #154273;
  --blue-dark: #0d2d50;
  --info: #e8eef5;
  --grey-line: #cfd6de;
  --grey-soft: #f3f5f7;
  --text: #000000;
  --muted: #4a5560;
  --focus: #ffb81c;
  --measure: 70ch;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
a:focus, button:focus, input:focus, summary:focus, [tabindex]:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
main:focus { outline: none; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

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

.skip {
  position: absolute; left: -999px; top: 0; z-index: 20;
  background: var(--blue); color: #fff; padding: .6rem 1rem;
}
.skip:focus { left: var(--gutter); }

/* Header */

.site-header { border-bottom: 1px solid var(--grey-line); }
.header-top {
  display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem;
  padding-top: .9rem; padding-bottom: .9rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--blue); text-decoration: none; font-weight: bold; font-size: 1.25rem;
  margin-right: auto;
}
.wordmark:hover { color: var(--blue-dark); text-decoration: underline; }
.emblem { flex: none; }

.search { display: flex; }
.search input {
  font: inherit; font-size: 1rem; padding: .45rem .6rem; border: 1px solid var(--muted);
  border-right: 0; border-radius: 2px 0 0 2px; min-width: 12rem; background: #fff; color: var(--text);
}
.search button, .button, button {
  font: inherit; font-size: 1rem; cursor: pointer;
  background: var(--blue); color: #fff; border: 1px solid var(--blue); border-radius: 2px;
  padding: .45rem 1rem; text-decoration: none; line-height: 1.4;
}
.search button { border-radius: 0 2px 2px 0; }
.button:hover, button:hover, .search button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--blue); }
.button.secondary:hover { background: var(--info); color: var(--blue-dark); }

.nav-toggle { position: absolute; opacity: 0; width: 0; height: 0; }
.nav-button {
  display: none; cursor: pointer; border: 1px solid var(--blue); color: var(--blue);
  border-radius: 2px; padding: .45rem .9rem;
}
.nav-toggle:focus ~ .header-top .nav-button { outline: 3px solid var(--focus); outline-offset: 2px; }

.main-nav { background: var(--blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav a {
  display: block; color: #fff; text-decoration: none; padding: .8rem 1rem;
  border-bottom: 4px solid transparent;
}
.main-nav a:hover { background: var(--blue-dark); color: #fff; text-decoration: underline; }
.main-nav a[aria-current] { border-bottom-color: #fff; font-weight: bold; }
.main-nav a:focus { outline-offset: -3px; }

/* Service message */

.service-message { background: #fff4d6; border-bottom: 1px solid #e3c47a; font-size: .95rem; }
.service-message .wrap { padding-top: .55rem; padding-bottom: .55rem; }

/* Breadcrumb */

.breadcrumb { font-size: .9rem; margin: .9rem 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "\203A"; margin: 0 .5rem; color: var(--muted); }
.breadcrumb li[aria-current] { color: var(--muted); }

/* Layout */

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: .5rem 0 3rem; }
.layout.has-subnav { grid-template-columns: 16rem minmax(0, 1fr); }
main { max-width: var(--measure); min-width: 0; }
.home main { max-width: none; }

.subnav { font-size: .95rem; padding-top: 1.6rem; }
.subnav h2 { font-size: 1rem; margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--blue); }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav li { border-bottom: 1px solid var(--grey-line); }
.subnav a { display: block; padding: .5rem .25rem; text-decoration: none; }
.subnav a:hover { text-decoration: underline; }
.subnav a[aria-current] { font-weight: bold; border-left: 4px solid var(--blue); padding-left: .6rem; }

h1, h2, h3, h4 { line-height: 1.25; margin: 1.5em 0 .5em; color: var(--text); }
h1 { font-size: 2rem; margin-top: .75em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .25em; }
li > ul, li > ol { margin: .25em 0; }
strong { font-weight: bold; }
hr { border: 0; border-top: 1px solid var(--grey-line); margin: 2rem 0; }
blockquote { margin: 0 0 1em; padding: .25rem 0 .25rem 1rem; border-left: 4px solid var(--grey-line); color: var(--muted); }
code { font-family: Consolas, "Liberation Mono", Menlo, monospace; font-size: .95em; }

.page-meta, .updated { color: var(--muted); font-size: .95rem; }
.page-meta { margin-top: -.5rem; }
.updated { margin-top: 2.5rem; border-top: 1px solid var(--grey-line); padding-top: .75rem; }
.lead { font-size: 1.2rem; line-height: 1.5; }

/* Information blocks */

.info, .warning, .steps-box {
  background: var(--info); border-left: 4px solid var(--blue); padding: .9rem 1.1rem; margin: 0 0 1.25em;
}
.info > :last-child, .warning > :last-child { margin-bottom: 0; }
.warning { background: #fff4d6; border-left-color: #c8931c; }
.example { background: var(--grey-soft); border: 1px solid var(--grey-line); padding: .9rem 1.1rem; margin: 0 0 1.25em; }
.example > :last-child { margin-bottom: 0; }
.example h3 { margin-top: 0; }

/* Accordion */

details.faq { border-top: 1px solid var(--grey-line); }
details.faq:last-of-type { border-bottom: 1px solid var(--grey-line); }
details.faq summary {
  cursor: pointer; padding: .75rem 0 .75rem 1.6rem; font-weight: bold; color: var(--blue);
  list-style: none; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before {
  content: "+"; position: absolute; left: .1rem; top: .7rem; width: 1rem; text-align: center;
}
details.faq[open] summary::before { content: "\2212"; }
details.faq summary:hover { text-decoration: underline; }
details.faq > :not(summary) { margin-left: 1.6rem; }
details.faq > p:last-child, details.faq > ul:last-child { margin-bottom: 1rem; }

/* Tables */

.table-wrap { overflow-x: auto; margin: 0 0 1.25em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--grey-line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
th { background: var(--grey-soft); font-weight: bold; }
td.right, th.right { text-align: right; font-variant-numeric: tabular-nums; }
td.center, th.center { text-align: center; }
caption { text-align: left; font-weight: bold; padding: .4rem 0; }

/* Lists of links */

.link-list, .news-list, .subpages { list-style: none; padding: 0; margin: 0 0 1.5em; }
.link-list li { padding: .35rem 0; border-bottom: 1px solid var(--grey-line); }
.link-list li:first-child { border-top: 1px solid var(--grey-line); }
.link-list a::before, .task-list a::before { content: "\203A"; margin-right: .5rem; color: var(--blue); }
.news-list li { padding: .6rem 0; border-bottom: 1px solid var(--grey-line); }
.news-list li:first-child { border-top: 1px solid var(--grey-line); }
.news-list time { display: block; color: var(--muted); font-size: .9rem; }
.news-list p { margin: .25rem 0 0; }
.subpages li { padding: .6rem 0; border-bottom: 1px solid var(--grey-line); }
.subpages li:first-child { border-top: 1px solid var(--grey-line); }
.subpages a { font-weight: bold; }
.subpages p { margin: .15rem 0 0; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; margin: 0 0 1.5em; }
dl.facts dt { font-weight: bold; }
dl.facts dd { margin: 0; }
dl.register dt { font-weight: bold; margin-top: .9rem; }
dl.register dd { margin: .15rem 0 0 0; }

/* Home page */

.home h1 { font-size: 1.9rem; }
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0 0 2.5rem; }
.audience { border: 1px solid var(--grey-line); border-top: 4px solid var(--blue); padding: 1rem 1.25rem 1.25rem; }
.audience h2 { margin: 0 0 .25rem; font-size: 1.3rem; }
.audience h2 a { text-decoration: none; }
.audience h2 a:hover { text-decoration: underline; }
.audience p { margin: 0 0 .75rem; color: var(--muted); font-size: .95rem; }
.task-list { list-style: none; padding: 0; margin: 0; }
.task-list li { margin: 0; padding: .35rem 0; border-top: 1px solid var(--grey-line); }
.home-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; margin: 0 0 2rem; }
.home-row h2 { margin-top: 0; }
.direct { background: var(--grey-soft); padding: 1rem 1.25rem 1.25rem; margin: 0 0 2rem; }
.direct h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.direct ul { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.direct li { break-inside: avoid; padding: .3rem 0; }
.direct a::before { content: "\203A"; margin-right: .5rem; }
.about-teaser { max-width: var(--measure); border-top: 1px solid var(--grey-line); padding-top: 1.5rem; }

/* Feedback */

.feedback { margin-top: 1.5rem; background: var(--grey-soft); padding: .9rem 1.1rem; }
.feedback-q { font-weight: bold; margin: 0 0 .5rem; }
.feedback-options { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.feedback-input { position: absolute; opacity: 0; width: 0; height: 0; }
.feedback-input + label {
  cursor: pointer; border: 1px solid var(--blue); color: var(--blue); background: #fff;
  border-radius: 2px; padding: .35rem 1.1rem;
}
.feedback-input:focus + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.feedback-input:checked + label { background: var(--blue); color: #fff; }
.feedback-thanks { display: none; margin: 0; width: 100%; }
.feedback-input:checked ~ .feedback-thanks { display: block; }

.related { margin-top: 2rem; }
.related h2 { font-size: 1.2rem; margin-top: 0; }
.related ul { padding-left: 1.2rem; }

/* Documents (rendered publications) */

.document h2 { margin-top: 2em; padding-bottom: .3rem; border-bottom: 1px solid var(--grey-line); }
.document hr { display: none; }

/* Footer */

.site-footer { background: var(--blue); color: #fff; margin-top: 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; padding-bottom: 1.5rem; }
.footer-groups h2 { font-size: 1.05rem; margin: 0 0 .6rem; color: #fff; }
.footer-groups ul { list-style: none; padding: 0; margin: 0; }
.footer-groups li { margin: 0 0 .35rem; }
.address { margin: 1rem 0 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 1rem; padding-bottom: 1.5rem; }
.footer-notice { margin: 1rem 0 0; font-size: .85rem; color: rgba(255, 255, 255, .85); max-width: 60rem; }
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }

/* Cookie bar */

.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 2px solid var(--blue); z-index: 15; }
.cookie-bar .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.cookie-bar p { margin: 0; flex: 1 1 20rem; font-size: .95rem; }

/* Responsive */

@media (max-width: 60rem) {
  .layout.has-subnav { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .subnav { order: 2; border-top: 1px solid var(--grey-line); margin-top: 2rem; }
  .audiences { grid-template-columns: minmax(0, 1fr); }
  .home-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .footer-groups { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

@media (max-width: 44rem) {
  .header-top { gap: .6rem 1rem; }
  .wordmark { font-size: 1.1rem; }
  .search { order: 4; flex-basis: 100%; }
  .search input { min-width: 0; flex: 1; }
  .nav-button { display: inline-block; }
  .main-nav { display: none; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { border-bottom: 1px solid rgba(255, 255, 255, .25); }
  .main-nav a[aria-current] { border-left: 4px solid #fff; }
  .direct ul { columns: 1; }
  dl.facts { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  dl.facts dd { margin-bottom: .6rem; }
  h1 { font-size: 1.6rem; }
}

/* Print */

@media print {
  .site-header, .service-message, .breadcrumb, .subnav, .feedback, .cookie-bar, .footer-groups ul, .footer-bottom ul, .skip { display: none; }
  .footer-notice { color: #000; }
  .layout { display: block; }
  body { font-size: 11pt; color: #000; background: #fff; }
  main { max-width: none; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .site-footer { background: none; color: #000; border-top: 1px solid #000; }
  .site-footer a { color: #000; }
  .table-wrap { overflow: visible; }
  details.faq { display: block; }
  details.faq > * { display: block; }
}

/* Portraits */
.portret { margin: 0 0 1rem 0; }
.portret img { display: block; width: 160px; height: 200px; object-fit: cover; border: 1px solid var(--grey-line, #c8ccd2); background: #e9ecf0; }
.portret-zij { float: right; margin: .25rem 0 1rem 1.5rem; }
.portret-zij img { width: 140px; height: 175px; }
h2 { clear: both; }
.personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.5rem 2rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.personen li { margin: 0; }
.personen .portret { margin-bottom: .6rem; }
.personen .naam { font-weight: bold; display: block; }
.personen .functie { display: block; color: #3b3f45; }
.collega { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.5rem; margin: 0 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--grey-line, #c8ccd2); }
.collega .portret { margin: 0; }
.collega blockquote { margin: 0; padding: 0; border: 0; font-style: normal; }
.collega blockquote p:first-child { font-size: 1.1rem; }
.collega cite { font-style: normal; display: block; margin-top: .5rem; color: #3b3f45; }
@media (max-width: 44rem) {
  .portret-zij { float: none; margin: 0 0 1rem 0; }
  .collega { grid-template-columns: minmax(0, 1fr); }
}
@media print { .portret img { width: 100px; height: 125px; } }
