/* ==========================================================================
   FAIRSHARE Nederland
   Huisstijl gemodelleerd naar het origineel: Open Sans, accentgroen #00b064,
   donkergrijze footer (#313233) met zwarte copyrightbalk (#0a0a0a).
   ========================================================================== */

:root {
  --accent: #00b064;
  --accent-alt: #00b065;
  --text: #0a0a0a;
  --heading: #0a0a0a;
  --text-muted: #676767;
  --footer-bg: #313233;
  --copyright-bg: #0a0a0a;
  --page-header-bg: #f8f8f8;
}

* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

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

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: #fff;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 26px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

a { color: var(--accent); text-decoration: none; transition: color .2s linear; }
a:hover { color: var(--accent); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 7px;
}
h1 { font-size: 54px; line-height: 62px; letter-spacing: -1px; }
h2 { font-size: 34px; line-height: 44px; letter-spacing: -0.5px; }
h3 { font-size: 22px; line-height: 34px; }
h4 { font-size: 18px; line-height: 28px; }

p { margin: 0 0 26px; }
ul, ol { margin: 0 0 26px; padding-left: 20px; }
li { margin-bottom: 6px; }

blockquote {
  font-weight: 300;
  font-size: 22px;
  line-height: 40px;
  letter-spacing: .5px;
  margin: 0 0 30px;
  padding-left: 0;
  border: 0;
}
blockquote p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  z-index: 100000;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: min(1232px, calc(100vw - 192px));
  margin: 0 auto;
  padding: 0;
  position: relative;
}
@media only screen and (max-width: 1000px) {
  .container { max-width: 100%; padding: 0 18px; }
  .home-wrap .main-content { max-width: 100%; padding: 0 18px; }
  /* Op smalle schermen loopt de hero van rand tot rand. */
  .full-width-section { left: auto; transform: none; width: auto; margin: 0 -18px; }
}

.row { position: relative; }
.row:after, .col:after { content: ""; display: block; height: 0; clear: both; visibility: hidden; }

.col { position: relative; z-index: 10; display: block; float: left; width: 100%; }

@media (min-width: 690px) {
  .col { margin-right: 2%; }
  .col.col_last, .col:last-child { margin-right: 0; }
  .span_3 { width: 23.5%; }
  .span_4 { width: 32%; }
  .span_5 { width: 40.5%; }
  .span_9 { width: 74.5%; }
  .span_12 { width: 100%; margin-right: 0; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

#header-space { height: 116px; }

#header-outer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding-top: 28px;
  z-index: 9999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

header#top { position: relative; z-index: 9998; }
header#top .container { padding-bottom: 28px; }

header#top #logo { display: inline-block; line-height: 0; }
header#top #logo img { height: 60px; width: auto; }

header#top nav { float: right; }

/* Hoofdmenu: zelfde maatvoering als het origineel (15px/21px, kleur #676767,
   10px padding links en rechts). De link loopt door tot de onderkant van de
   header zodat het dropdownmenu er direct op aansluit. */
ul.sf-menu { list-style: none; margin: 0; padding: 0; float: right; line-height: 1; }
ul.sf-menu > li { float: left; position: relative; margin: 0; height: 60px; font-size: 12px; }
ul.sf-menu > li > a {
  display: block;
  padding: 19px 10px 48px;
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
  color: #676767;
  text-decoration: none;
  transition: color .2s linear;
}
ul.sf-menu > li.menu-item-has-children > a { padding-right: 16px; }
ul.sf-menu > li > a:hover,
ul.sf-menu > li:hover > a,
ul.sf-menu > li.current-menu-item > a { color: var(--accent); text-decoration: none; }

/* Pijltjes bij items met een submenu */
.sf-sub-indicator {
  display: inline-block;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}
.sf-sub-indicator.right {
  border: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid currentColor;
  position: absolute;
  right: 14px;
  top: 16px;
  margin: 0;
}

/* Dropdowns: de donkere "classic" stijl van het origineel */
.sf-menu ul.sub-menu {
  position: absolute;
  top: 88px;
  left: 0;
  width: 16em;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #1c1c1c;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s linear, visibility .15s linear;
  z-index: 10;
}
.sf-menu li:hover > ul.sub-menu,
.sf-menu li:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
}
.sf-menu ul.sub-menu li { position: relative; margin: 0; float: none; width: 100%; font-size: 12px; }
.sf-menu ul.sub-menu a {
  display: block;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 13px;
  letter-spacing: 0;
  font-weight: 400;
  color: #ccc;
  text-decoration: none;
}
.sf-menu ul.sub-menu a:hover,
.sf-menu ul.sub-menu li:hover > a,
.sf-menu ul.sub-menu li.current-menu-item > a { color: var(--accent); background-color: #272727; text-decoration: none; }

/* Derde niveau klapt naar rechts uit */
.sf-menu ul.sub-menu ul.sub-menu { top: 0; left: 16em; }

/* De header krimpt tijdens het scrollen, net als op het origineel. */
#header-outer { transition: padding .3s ease; }
header#top .container { transition: padding .3s ease; }
header#top #logo img { transition: height .3s ease; }
body.small-nav #header-outer { padding-top: 14px; }
body.small-nav header#top .container { padding-bottom: 14px; }
body.small-nav header#top #logo img { height: 36px; }
body.small-nav ul.sf-menu > li { height: 36px; }
body.small-nav ul.sf-menu > li > a { padding-top: 8px; padding-bottom: 21px; }
body.small-nav .sf-menu ul.sub-menu { top: 50px; }
body.small-nav .sf-menu ul.sub-menu ul.sub-menu { top: 0; }

/* Hamburger + uitschuifmenu */
.slide-out-widget-area-toggle {
  display: none;
  float: right;
  background: none;
  border: 0;
  padding: 18px 0;
  cursor: pointer;
}
.lines-button { display: block; position: relative; width: 22px; height: 14px; }
.lines, .lines:before, .lines:after {
  display: block;
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  content: '';
  transition: transform .2s linear;
}
.lines { top: 6px; }
.lines:before { top: -6px; }
.lines:after { top: 6px; }

#slide-out-widget-area-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 10000;
}
#slide-out-widget-area {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background-color: var(--accent);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 10001;
  overflow-y: auto;
  padding: 70px 30px 40px;
}
body.mobile-menu-open #slide-out-widget-area { transform: translateX(0); }
body.mobile-menu-open #slide-out-widget-area-bg { opacity: 1; visibility: visible; }
body.mobile-menu-open { overflow: hidden; }

.slide_out_area_close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
#slide-out-widget-area ul { list-style: none; margin: 0; padding: 0; }
#slide-out-widget-area li { margin: 0; }
#slide-out-widget-area a {
  display: block;
  padding: 9px 0;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}
#slide-out-widget-area a:hover { opacity: .75; }
#slide-out-widget-area .sub-menu { padding-left: 15px; }
#slide-out-widget-area .sub-menu a { font-size: 13px; opacity: .9; padding: 6px 0; }

/* --------------------------------------------------------------------------
   Paginatitel-balk
   -------------------------------------------------------------------------- */

.page-header-no-bg { background-color: #fff; padding: 39px 0 0; }
.page-header-no-bg .section-title { padding-bottom: 30px; border-bottom: 1px solid #ddd; }
.page-header-no-bg .section-title h1 {
  margin-bottom: 0;
  font-weight: 600;
  letter-spacing: -1px;
  font-size: 54px;
  line-height: 62px;
  color: var(--heading);
}
.page-header-no-bg .author-section {
  margin-top: 8px;
  font-size: 12px;
  line-height: 20px;
  color: #999;
}
.page-header-no-bg .author-section .meta-date { margin: 0 10px; }

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.container-wrap { background-color: #fff; padding-top: 25px; padding-bottom: 40px; }
.main-content { padding-top: 15px; }

/* Op de homepage sluit de hero direct op de header aan. */
.home-wrap, .home-wrap .main-content { padding-top: 0; }
.home-wrap .main-content { max-width: min(1106px, calc(100vw - 212px)); }

.entry-content h1 { font-size: 40px; line-height: 50px; margin-bottom: 20px; }
.entry-content h2 { margin-top: 32px; margin-bottom: 6px; }
.entry-content h3 { margin-top: 26px; margin-bottom: 10px; }
.entry-content > h1:first-child,
.entry-content > h2:first-child,
.entry-content > h3:first-child { margin-top: 0; }
.entry-content img.full-bleed-image { width: 100%; }
.entry-content p.hero-image { margin-bottom: 14px; }
.entry-content p.hero-image + h3 { margin-top: 18px; }

.button, a.button {
  display: inline-block;
  padding: 12px 22px;
  background-color: var(--accent);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  border-radius: 2px;
  text-decoration: none;
}
.button:hover, a.button:hover { background-color: #009757; color: #fff; text-decoration: none; }

.heading-large { font-size: 40px; line-height: 50px; }

/* Op deze twee pagina's is de lopende tekst in het origineel grijs. */
.entry-content.muted-text p { color: var(--text-muted); }
.entry-content.has-top-space { margin-top: 43px; }

.divider { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

/* Beeldvullende koptekst: valt buiten de container voor volle breedte */
.full-width-section {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 135px);
  max-width: none;
}
.home-hero {
  padding-top: calc((100vw - 60px) * 0.17);
  padding-bottom: calc((100vw - 60px) * 0.17);
  background-color: #3a3a3a;
}
.home-hero .row-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-statement-row { padding-bottom: 5%; background-color: #fff; }
.home-statement {
  margin-top: -6%;
  position: relative;
  z-index: 5;
  background-color: var(--accent);
  padding: 5%;
  text-align: center;
  color: #fff;
}
.home-statement h2 { color: #fff; margin-bottom: 0; }
.home-statement blockquote { color: #fff; margin-bottom: 0; }
.home-statement .divider-small-border {
  width: 80px;
  height: 2px;
  margin: 25px auto;
  background-color: #fff;
}

.home-section { padding: 0 0 10px; }
.home-lotteries { margin-top: 46px; }
.home-news-heading { margin-top: 68px; }
.home-news-heading + .home-section { margin-top: 18px; }
.home-section h1, .home-section h2, .home-section h3 { margin-bottom: 7px; }
.green { color: var(--accent) !important; }
.center { text-align: center; }
.loh-heading { margin-bottom: 15px !important; }
.center-text { text-align: center; color: #000; margin-bottom: 10px; }
.home-section h3.center { margin-top: 21px; }

@media only screen and (min-width: 1000px) and (max-width: 1300px) {
  .home-hero { width: calc(100vw - 31px); }
}

/* --------------------------------------------------------------------------
   Nieuwsoverzicht (blog-recent)
   -------------------------------------------------------------------------- */

.blog-recent { padding-bottom: 0; }
.home-wrap .blog-recent { text-align: center; }
.blog-recent .col { margin-bottom: 40px; }
.blog-recent .col > a { display: block; line-height: 0; }
.blog-recent .col img { width: 100%; }
.blog-recent .col .post-header {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 20px;
  margin: 24px 0 12px;
}
.blog-recent .col .post-header h3.title {
  font-size: 16px;
  line-height: 23px;
  letter-spacing: -0.2px;
  margin: 0 0 3px;
}
.blog-recent .col .post-header h3.title a { color: var(--accent); text-decoration: none; }
.blog-recent .col .post-header h3.title a:hover { text-decoration: underline; }
.blog-recent .col .post-header a { color: inherit; text-decoration: none; }
.blog-recent .col .post-header .meta-author a:hover,
.blog-recent .col .post-header .meta-category a:hover { color: var(--accent); }
.blog-recent .col p { font-size: 14px; line-height: 26px; margin: 0; }

/* Losse nieuwspagina */
.post .post-featured-img { margin-bottom: 26px; }
.post .post-featured-img img { width: 100%; }

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ececec;
  padding-top: 24px;
  margin-top: 10px;
  font-size: 13px;
}
.post-navigation .next { text-align: right; margin-left: auto; }

/* --------------------------------------------------------------------------
   Contactformulier
   -------------------------------------------------------------------------- */

.contact-form { max-width: 620px; }
.contact-form p { margin-bottom: 18px; }
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background-color: #efefef;
  font-family: inherit;
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 0; background-color: #e7e7e7; }
.contact-form textarea { resize: vertical; min-height: 200px; }
.contact-form input[type="submit"] {
  background-color: var(--accent);
  color: #fff;
  border: 0;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 13px;
  border-radius: 0;
  cursor: pointer;
}
.contact-form input[type="submit"]:hover { background-color: #009757; }

.form-response { padding: 14px 18px; margin-bottom: 24px; border-radius: 2px; }
.form-response.ok { background-color: #e6f7ef; border: 1px solid var(--accent); color: #1c6b47; }
.form-response.error { background-color: #fdecec; border: 1px solid #d94f4f; color: #a52626; }
.form-response ul { margin: 0; padding-left: 18px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

#footer-outer { background-color: var(--footer-bg); color: #fff; }
#footer-outer a { color: #fff; text-decoration: none; }
#footer-outer a:hover { color: var(--accent-alt); text-decoration: none; }

#footer-widgets { padding: 55px 0 15px; }
#footer-widgets .widget { margin-bottom: 35px; font-size: 13px; line-height: 24px; }
#footer-widgets .textwidget p { margin: 0 0 20px; }
#footer-widgets .widget ul { list-style: none; margin: 0; padding: 0; }
#footer-widgets .widget ul li {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
#footer-widgets .widget ul li:last-child { border-bottom: 0; }

#copyright { background-color: var(--copyright-bg); padding: 25px 0; }
#copyright p { margin: 0; font-size: 12px; line-height: 20px; color: var(--accent-alt); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 1000px) {
  #header-space { height: 66px; }
  #header-outer { padding-top: 18px; }
  header#top .container { padding-bottom: 18px; }
  header#top #logo img { height: 30px; }
  body.small-nav #header-outer { padding-top: 18px; }
  body.small-nav header#top .container { padding-bottom: 18px; }
  body.small-nav header#top #logo img { height: 30px; }
  header#top nav { display: none; }
  .slide-out-widget-area-toggle { display: block; }
}

@media only screen and (max-width: 690px) {
  h1 { font-size: 34px; line-height: 44px; }
  h2 { font-size: 26px; line-height: 36px; }
  h3 { font-size: 20px; line-height: 30px; }
  .page-header-no-bg .section-title h1 { font-size: 28px; line-height: 38px; }
  .entry-content h1 { font-size: 28px; line-height: 38px; }
  .heading-large { font-size: 28px; line-height: 38px; }

  .home-statement { margin-top: -10%; padding: 30px 22px; }

  .blog-recent .col { margin-bottom: 34px; }

  #footer-widgets { padding: 40px 0 10px; }
  .post-navigation { flex-direction: column; }
  .post-navigation .next { text-align: left; margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Mobiel (staat achteraan zodat deze regels de desktopwaarden overschrijven)
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 1000px) {
  .container,
  .home-wrap .main-content { width: 100%; max-width: 100%; padding-left: 18px; padding-right: 18px; }
  /* Blokken blijven binnen het scherm, ongeacht de oudercontainer. */
  .home-wrap .main-content > * { max-width: 100%; }

  /* Logo en menuknop naast elkaar in de balk. */
  header#top .container { display: flex; align-items: center; justify-content: space-between; }
  header#top .container .row { display: contents; }
  header#top .col.span_3,
  header#top .col.span_9 { width: auto; float: none; margin: 0; }
  header#top .col.span_9 { display: flex; justify-content: flex-end; }
  .slide-out-widget-area-toggle { display: block; float: none; }

  /* De hero loopt van rand tot rand. */
  .home-wrap .full-width-section {
    left: auto;
    transform: none;
    width: auto;
    margin-left: -18px;
    margin-right: -18px;
  }
  .home-statement { margin-top: -8%; }
}

@media only screen and (max-width: 1000px) {
  /* De secties dragen op mobiel hun eigen marge; de container staat op nul. */
  #ajax-content-wrap { overflow-x: hidden; }
  .home-wrap .main-content { padding-left: 0; padding-right: 0; }
  .home-wrap .home-statement-row,
  .home-wrap .home-section {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 18px;
    padding-right: 18px;
  }
  .home-wrap .full-width-section { margin-left: 0; margin-right: 0; }
}

/* --------------------------------------------------------------------------
   Documentpagina's: gegevenstabellen en genummerde voorschriften
   -------------------------------------------------------------------------- */

.entry-content .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 34px;
  font-size: 14px;
  line-height: 22px;
}
.entry-content .data-table th,
.entry-content .data-table td {
  padding: 12px 16px;
  border: 1px solid #e4e4e4;
  text-align: left;
  vertical-align: top;
}
.entry-content .data-table thead th { background: #f4f4f4; font-weight: 600; }
.entry-content .data-table tbody th {
  width: 34%;
  background: #fafafa;
  font-weight: 600;
  color: var(--heading);
}
@media only screen and (max-width: 690px) {
  .entry-content .data-table,
  .entry-content .data-table tbody,
  .entry-content .data-table tr { display: block; }
  .entry-content .data-table th,
  .entry-content .data-table td { display: block; width: auto; border-bottom: 0; }
  .entry-content .data-table tr { border-bottom: 1px solid #e4e4e4; }
  .entry-content .data-table tr:last-child { border-bottom: 0; }
}

/* De nummering volgt die van het besluit; `start` zet elke reeks voort. */
.entry-content ol.voorschriften {
  margin: 0 0 28px;
  padding-left: 26px;
}
.entry-content ol.voorschriften > li { margin-bottom: 14px; padding-left: 6px; }
.entry-content ol.voorschriften.unnumbered { list-style: none; padding-left: 0; }
.entry-content ol.voorschriften.unnumbered > li { padding-left: 32px; text-indent: -32px; }
.entry-content ol.voorschriften .nr { display: inline-block; width: 32px; text-indent: 0; }

.entry-content ol.sub-list {
  list-style-type: lower-alpha;
  margin: 12px 0 0;
  padding-left: 24px;
}
.entry-content ol.sub-list.roman { list-style-type: lower-roman; }
.entry-content ol.sub-list > li { margin-bottom: 8px; }

/* Bronvermelding onderaan een documentpagina */
.entry-content .bron-noot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #e4e4e4;
  font-size: 12px;
  line-height: 21px;
  color: var(--text-muted);
}
.entry-content ul { margin: 0 0 24px; padding-left: 22px; }
.entry-content ul > li { margin-bottom: 10px; }
