/* Sportersgids — carried over from "Sportersgids.dc.html". */

.gids-page {
  min-height: 100vh;
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-ink);
}

.gids-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 48px;
}

.gids-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.gids-kicker {
  font: 600 13px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-sage);
  margin-bottom: 16px;
}

.gids-title {
  font: var(--text-h1);
  color: var(--color-ink);
  margin: 0 0 20px;
}

.gids-intro {
  font: 400 17px/1.6 var(--font-body);
  color: rgba(58, 42, 46, 0.75);
  max-width: 620px;
  margin: 0 0 20px;
}

.gids-contact {
  font: 400 15px/1.6 var(--font-body);
  color: rgba(58, 42, 46, 0.65);
  max-width: 620px;
  margin: 0 0 48px;
}

.gids-contact a {
  color: var(--color-accent-sage-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gids-hero {
  height: 380px;
  margin-bottom: 56px;
}

/* Shared pull-quote style for the asides under several diagrams. */
.gids-note {
  font: 400 13px/1.55 var(--font-body);
  color: rgba(58, 42, 46, 0.75);
  border-left: 2px solid var(--color-accent-honey);
  padding-left: 12px;
  margin: 0;
}

.gids-divider {
  height: 1px;
  background: rgba(58, 42, 46, 0.12);
  margin-bottom: 88px;
}

/* ------------------------------------------------------------------ index */

.gids-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.gids-index__card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-ink);
  padding: 18px 18px 20px;
}

.gids-index__name {
  font: 700 16px/1.25 var(--font-display);
  color: var(--color-ink);
  margin-bottom: 6px;
}

.gids-index__tagline {
  font: 400 13px/1.45 var(--font-body);
  color: rgba(58, 42, 46, 0.6);
}

/* -------------------------------------------------------------------- map */

.gids-map {
  display: grid;
  /* minmax(0,…) so the fixed-width square can shrink below 400px instead of
     forcing the track — and with it the page — wider on narrow screens. */
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin: 56px 0 24px;
}

.gids-map__square {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.gids-map__axis {
  position: absolute;
  background: rgba(58, 42, 46, 0.14);
}

.gids-map__axis--v {
  left: 50%;
  top: 9%;
  bottom: 9%;
  width: 1px;
}

.gids-map__axis--h {
  top: 50%;
  left: 9%;
  right: 9%;
  height: 1px;
}

.gids-map__balance {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32%;
  height: 32%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(138, 158, 130, 0.65);
  background: rgba(138, 158, 130, 0.1);
}

.gids-map__balance-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 600 10px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(90, 110, 85, 0.9);
}

.gids-map__edge {
  position: absolute;
  font: 500 11px var(--font-body);
  color: rgba(58, 42, 46, 0.45);
}

.gids-map__edge--top {
  left: 50%;
  top: 2.5%;
  transform: translateX(-50%);
}

.gids-map__edge--bottom {
  left: 50%;
  bottom: 2.5%;
  transform: translateX(-50%);
}

.gids-map__edge--left {
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
}

.gids-map__edge--right {
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
}

.gids-map__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 1px rgba(58, 42, 46, 0.15);
}

.gids-map__label {
  position: absolute;
  font: 600 12px var(--font-display);
  color: var(--color-ink);
  white-space: nowrap;
}

/* Dashed arrow from each type towards the balance circle. */
.gids-map__arrow {
  position: absolute;
  height: 2px;
  transform-origin: 0 50%;
  background: repeating-linear-gradient(
    to right,
    var(--color-accent-honey) 0 5px,
    transparent 5px 9px
  );
}

.gids-map__arrowhead {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--color-accent-honey);
}

.gids-map__text {
  padding-top: 8px;
}

.gids-map__kicker {
  font: 600 12px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-sage);
  margin-bottom: 10px;
}

.gids-map__para {
  font: 400 16px/1.6 var(--font-body);
  color: rgba(58, 42, 46, 0.75);
  margin: 0 0 16px;
}

.gids-map__text .gids-note {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(58, 42, 46, 0.6);
  padding-left: 14px;
}

/* --------------------------------------------------------------- profiles */

.profile {
  margin-bottom: 96px;
}

.profile__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.profile__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile__name {
  font: var(--text-h2);
  color: var(--color-ink);
  margin: 0;
}

.profile__top {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.profile__kern {
  font: 400 16px/1.6 var(--font-body);
  color: rgba(58, 42, 46, 0.7);
  margin: 0 0 14px;
}

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

.trait {
  border-left: 2px solid var(--color-ink);
  padding-left: 14px;
}

.trait__label {
  font: 600 12px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(58, 42, 46, 0.45);
  margin-bottom: 4px;
}

.trait__text {
  font: 400 15px/1.6 var(--font-body);
  color: rgba(58, 42, 46, 0.7);
}

.profile__portrait {
  width: 300px;
  height: 210px;
}

.profile__middle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.profile__gain {
  background: var(--color-accent-sage-deep);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}

.profile__gain-label {
  font: 600 12px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-on-dark);
  opacity: 0.7;
  margin-bottom: 10px;
}

.profile__gain-text {
  font: 400 16px/1.6 var(--font-body);
  color: var(--color-on-dark);
}

.profile__strip {
  height: 220px;
  margin-top: 56px;
}

/* --------------------------------------------------------------- diagrams */

.gids-diagram {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}

.gids-diagram__title {
  font: 600 12px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-sage);
  margin-bottom: 6px;
}

.gids-diagram__lead {
  font: 400 13px/1.5 var(--font-body);
  color: rgba(58, 42, 46, 0.6);
  margin-bottom: 22px;
}

/* Week bars */

.week-row {
  margin-bottom: 22px;
}

.week-row__label {
  font: 600 12px var(--font-body);
  color: var(--color-ink);
  margin-bottom: 10px;
}

.week-row__label--advies {
  color: var(--color-accent-sage-deep);
}

.week-row__bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 74px;
  border-bottom: 1px solid rgba(58, 42, 46, 0.15);
}

.week-row__slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.week-row__bar {
  border-radius: 4px 4px 0 0;
}

.week-row__days {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.week-row__day {
  flex: 1;
  text-align: center;
  font: 500 10px var(--font-body);
  color: rgba(58, 42, 46, 0.45);
}

.week-row__summary {
  font: 400 12px/1.5 var(--font-body);
  color: rgba(58, 42, 46, 0.6);
  margin-top: 8px;
}

/* Comfort-zone bar */

.zone {
  position: relative;
  height: 88px;
  margin-bottom: 14px;
}

.zone__track,
.zone__inside,
.zone__beyond {
  position: absolute;
  top: 40px;
  height: 12px;
  border-radius: 999px;
}

.zone__track {
  left: 0;
  right: 0;
  background: var(--color-clay);
}

.zone__inside {
  left: 0;
  width: 58%;
  background: var(--color-accent-sage);
}

.zone__beyond {
  left: 58%;
  width: 24%;
  background: rgba(217, 154, 52, 0.35);
  border: 1px dashed var(--color-accent-honey);
}

.zone__cap {
  position: absolute;
  left: 58%;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  font: 600 11px/1.35 var(--font-body);
  color: var(--color-accent-sage-deep);
}

.zone__more {
  position: absolute;
  left: 82%;
  top: 58px;
  transform: translateX(-50%);
  font: 600 11px var(--font-body);
  color: var(--color-ink);
  white-space: nowrap;
}

.zone__tick {
  position: absolute;
  width: 1px;
}

.zone__tick--cap {
  left: 58%;
  top: 34px;
  height: 24px;
  background: rgba(90, 110, 85, 0.5);
}

.zone__tick--more {
  left: 82%;
  top: 36px;
  height: 20px;
  background: rgba(58, 42, 46, 0.35);
}

/* Four-week grid */

.maand-row {
  margin-bottom: 20px;
}

.maand-row__weeks {
  display: flex;
  gap: 10px;
}

.maand-week {
  flex: 1;
}

.maand-week__days {
  display: flex;
  gap: 2px;
  margin-bottom: 5px;
}

.maand-week__cell {
  flex: 1;
  height: 24px;
  border-radius: 2px;
  border: 1px solid transparent;
}

.maand-week__name {
  text-align: center;
  font: 500 10px var(--font-body);
  color: rgba(58, 42, 46, 0.45);
}

/* Plan versus practice */

.plan-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

/* Legends */

.gids-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 4px;
  font: 400 11px var(--font-body);
  color: rgba(58, 42, 46, 0.55);
}

.gids-legend--stacked {
  flex-direction: column;
  gap: 7px;
  color: rgba(58, 42, 46, 0.6);
  margin-bottom: 16px;
}

.gids-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gids-legend__swatch {
  width: 10px;
  border-radius: 2px 2px 0 0;
  flex-shrink: 0;
}

.gids-legend__swatch--hard {
  height: 14px;
  background: var(--color-accent-honey);
}

.gids-legend__swatch--easy {
  height: 8px;
  background: var(--color-accent-sage);
}

.gids-legend__swatch--free {
  height: 8px;
  background: rgba(138, 158, 130, 0.3);
  border-top: 2px dashed rgba(138, 158, 130, 0.75);
}

.gids-legend__swatch--rest {
  height: 2px;
  border-radius: 0;
  background: rgba(58, 42, 46, 0.3);
}

.gids-legend__cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.gids-legend__cell--hard {
  background: var(--color-accent-honey);
}

.gids-legend__cell--easy {
  background: var(--color-accent-sage);
}

.gids-legend__cell--none {
  background: transparent;
  border: 1px solid rgba(58, 42, 46, 0.2);
}

.gids-legend__line {
  width: 18px;
  flex-shrink: 0;
}

.gids-legend__line--plan {
  height: 0;
  border-top: 2px dashed rgba(58, 42, 46, 0.35);
}

.gids-legend__line--adjusted {
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent-honey);
}

.gids-legend__line--pushed {
  height: 3px;
  border-radius: 2px;
  background: var(--color-wheat);
}

/* --------------------------------------------------------------- sections */

.profile__sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gids-section {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.gids-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gids-section__icon {
  stroke: var(--color-accent-sage-deep);
  color: var(--color-accent-sage-deep);
  flex-shrink: 0;
}

.gids-section__title {
  font: 600 13px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-sage);
}

.gids-section__highlight {
  font: 600 15px/1.5 var(--font-body);
  color: var(--color-ink);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(58, 42, 46, 0.1);
}

.gids-section__tips {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.gids-tip {
  display: flex;
  gap: 11px;
  font: 400 14px/1.55 var(--font-body);
  color: rgba(58, 42, 46, 0.85);
}

.gids-tip__n {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(217, 154, 52, 0.16);
  color: var(--color-ink);
  font: 600 11px var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .gids-map {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .profile__top,
  .profile__middle,
  .profile__sections {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile__portrait {
    width: 100%;
  }

  .gids-index {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .gids-topbar {
    padding: 20px 24px;
  }

  .gids-hero {
    height: 240px;
  }

  .gids-index {
    grid-template-columns: 1fr;
  }

  .profile {
    margin-bottom: 64px;
  }

  .gids-divider {
    margin-bottom: 56px;
  }
}

/* ------------------------------------------------------------------ print
   Also drives the PDF built by server/scripts/build-gids-pdf.mjs. */

@media print {
  :root {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .gids-page {
    background: #fff;
  }

  .gids-topbar {
    padding: 0 0 24px;
  }

  .gids-body {
    max-width: none;
    padding: 0;
  }

  .gids-title {
    font-size: 34px;
  }

  .gids-hero {
    height: 260px;
    margin-bottom: 32px;
  }

  .gids-index,
  .gids-map {
    break-inside: avoid;
  }

  .gids-map {
    margin-top: 32px;
  }

  .gids-divider {
    margin-bottom: 0;
  }

  /* One profile per page; never split a card across pages. */
  .profile {
    break-before: page;
    margin-bottom: 0;
  }

  .profile__head,
  .profile__top,
  .profile__middle,
  .gids-section,
  .gids-diagram,
  .profile__gain,
  .week-row,
  .maand-row {
    break-inside: avoid;
  }

  .profile__name {
    font-size: 26px;
  }

  .profile__sections {
    gap: 14px;
  }

  .gids-section {
    padding: 18px 20px;
  }

  .gids-tip {
    font-size: 12px;
  }

  /* The between-profile mood images are decorative; they only cost paper. */
  .profile__strip {
    display: none;
  }
}
