/* ==========================================================================
   10 Vuistregels voor gebruiksvriendelijkheid — long-form article page.
   Jakob Nielsen's 10 usability heuristics (NN/g), translated by UXfactor,
   restyled to match the rest of the site (dark bg, white text, Sloth type)
   instead of the light-mode layout it's recreated from.
   ========================================================================== */

.vuistregels {
  padding-block: 96px;
}

.vuistregels__inner {
  display: flex;
  flex-direction: column;
  gap: 96px;
  max-width: 800px;
}

/* ---- Intro ---- */

.vuistregels-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vuistregels-intro__eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-lavender);
}

.vuistregels-intro__summary {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text-p);
}

.vuistregels-intro__meta {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 24px;
  border-top: 1px solid var(--color-bg-lavender-20);
}

.vuistregels-intro__note {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text-p);
}

/* ---- Each heuristic ---- */

.vuistregel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 64px;
  border-top: 1px solid var(--color-bg-lavender-20);
}

.vuistregel__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.vuistregel__text {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text-p);
}

/* Everything from the image down (image, callout, tips, "meer
   informatie") sits in a two-column row — image left, the rest of the
   details right — while the title and text above stay full-width
   (.vuistregel__columns is a sibling of those, not a wrapper around
   them). align-items: start since the two columns rarely end up the
   same height. */
.vuistregel__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 32px;
}

.vuistregel__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* NN/g's illustrations render on a light background of their own — framed
   in a matching light card rather than dropped straight onto the dark
   page, so they read as an intentional inset rather than a stray box. */
.vuistregel__image {
  border-radius: 16px;
  overflow: hidden;
  background: #f5f6f8;
}

.vuistregel__image img {
  display: block;
  width: 100%;
  height: auto;
}

.vuistregel__callout {
  padding: 24px;
  border-radius: 16px;
  background: var(--color-bg-lavender-10);
}

.vuistregel__callout-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-lavender);
  margin-bottom: 8px;
}

.vuistregel__callout-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text-p);
}

.vuistregel__tips-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.vuistregel__tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.vuistregel__tips li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text-p);
}

.vuistregel__tips li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
}

.vuistregel__more {
  padding-top: 8px;
}

.vuistregel__more-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.vuistregel__more-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}

/* Inline links within article copy — scoped to these specific text
   containers (not a blanket ".vuistregels a") so the download/reference
   buttons below, which reuse the site's existing .btn component, keep
   their own color instead of losing a specificity fight with this rule. */
.vuistregel__text a,
.vuistregel__tips a,
.vuistregel__more-list a,
.vuistregels-intro__note a,
.vuistregels-quote__text a,
.vuistregels-references__text a {
  color: var(--color-lavender);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease);
}

.vuistregel__text a:hover,
.vuistregel__tips a:hover,
.vuistregel__more-list a:hover,
.vuistregels-intro__note a:hover,
.vuistregels-quote__text a:hover,
.vuistregels-references__text a:hover {
  color: var(--color-lime);
}

/* ---- Jakob's closing note ---- */

.vuistregels-quote {
  padding: 32px;
  border-radius: 16px;
  border: 2px solid var(--color-lavender-50);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vuistregels-quote__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-lavender);
}

.vuistregels-quote__text {
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text-p);
}

.vuistregels-quote__text + .vuistregels-quote__text {
  margin-top: 4px;
}

/* ---- Posters + downloads ---- */

.vuistregels-posters {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vuistregels-posters__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--color-lavender);
}

.vuistregels-posters__text {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text-p);
}

.vuistregels-posters__image {
  border-radius: 16px;
  overflow: hidden;
}

.vuistregels-downloads {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.vuistregels-downloads__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
}

.vuistregels-downloads__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- References ---- */

.vuistregels-references {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vuistregels-references__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--color-lavender);
}

.vuistregels-references__text {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text-p);
}

@media (max-width: 768px) {
  /* Not enough room for image + details side by side — back to a single
     stacked column, image on top, same as before this layout existed. */
  .vuistregel__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vuistregels {
    padding-block: 56px;
  }

  .vuistregels__inner {
    gap: 64px;
  }

  .vuistregel {
    padding-top: 40px;
  }

  .vuistregels-downloads__list {
    flex-direction: column;
    align-items: stretch;
  }
}
