/* Goedkoper met Bonnen design system. Source: docs/design/styles.css.
   The Google Fonts import is replaced by self-hosted fonts (no visitor data to Google before consent). */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* ---- Tokens (generated from tokens.json) ---- */
:root {
  --brand-blue: #006199;
  --brand-blue-700: #004a75;
  --sky: #8ACFF8;
  --sky-100: #e6f5fe;
  --lemon: #F4EB6C;
  --sun: #FFD444;
  --ink: #10283a;
  --ink-muted: #4a6072;
  --surface: #ffffff;
  --canvas: #f3f8fc;
  --line: #d5e3ee;
  --line-strong: #8aa3b5;
  --danger: #b3261e;
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-12: 48px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 0 #d5e3ee, 0 8px 24px rgba(0, 74, 117, 0.08);
  --shadow-sticker: 0 3px 0 #10283a;
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.display-xl { font-family: var(--font-display); font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-family: var(--font-display); font-size: 44px; line-height: 48px; font-weight: 800; letter-spacing: -0.015em; }
.h2 { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: -0.01em; }
.h3 { font-family: var(--font-display); font-size: 21px; line-height: 28px; font-weight: 600; }
.price { font-family: var(--font-display); font-size: 36px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; }
.body-lg { font-family: var(--font-body); font-size: 19px; line-height: 30px; font-weight: 400; }
.body { font-family: var(--font-body); font-size: 17px; line-height: 28px; font-weight: 400; }
.small { font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 500; }
.label { font-family: var(--font-body); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.04em; }

/* ---- Components ---- */

/* Goedkoper met Bonnen — component styles. Every value comes from tokens.css. */
.gmb { font-family: var(--font-body); color: var(--ink); -webkit-font-smoothing: antialiased; }
.gmb *, .gmb *::before, .gmb *::after { box-sizing: border-box; }
.gmb a:not([class]) { color: var(--brand-blue); text-underline-offset: 3px; }
.gmb a:not([class]):hover { color: var(--brand-blue-700); }
.gmb :focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; }
.gmb h1, .gmb h2, .gmb h3, .gmb p { margin: 0; }
.gmb-muted { color: var(--ink-muted); }

/* Marker — the lemon highlighter behind key words */
.gmb-mark { background: var(--lemon); padding: 0 .12em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Button */
.gmb-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font: 700 16px/20px var(--font-body); padding: 12px 22px; border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .08s, background-color .12s; }
.gmb .gmb-btn--primary, .gmb-btn--primary { background: var(--brand-blue); color: var(--surface); }
.gmb .gmb-btn--primary:hover { background: var(--brand-blue-700); color: var(--surface); }
.gmb .gmb-btn--deal, .gmb-btn--deal { background: var(--sun); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-sticker); }
.gmb .gmb-btn--deal:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.gmb .gmb-btn--deal:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.gmb .gmb-btn--ghost, .gmb-btn--ghost { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.gmb .gmb-btn--ghost:hover { background: var(--sky-100); }
.gmb-btn--sm { font-size: 14px; padding: 8px 16px; }
.gmb-btn[disabled] { background: var(--line); color: var(--ink-muted); border-color: transparent; box-shadow: none; cursor: not-allowed; }

/* Tag */
.gmb-tag { display: inline-flex; align-items: center; gap: var(--space-1); font: 700 13px/16px var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--sky-100); color: var(--brand-blue-700); text-decoration: none; white-space: nowrap; }
.gmb-tag--hot { background: var(--sun); color: var(--ink); }
.gmb-tag--free { background: var(--lemon); color: var(--ink); }
.gmb-tag--expired { background: var(--surface); color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.gmb-chip { font: 600 15px/20px var(--font-body); padding: 8px 16px; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.gmb .gmb-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--brand-blue); }
.gmb-chip[aria-current] { background: var(--ink); color: var(--surface); box-shadow: none; }

/* Deal card — a coupon with a perforated stub */
.gmb-deal { display: grid; grid-template-columns: 1fr 132px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); min-height: 168px; }
.gmb-deal__main { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.gmb-deal__store { display: flex; align-items: center; gap: var(--space-2); font: 700 14px/20px var(--font-body); color: var(--ink-muted); }
.gmb-deal__mono { width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--ink); display: grid; place-items: center; font: 800 13px/1 var(--font-display); }
.gmb-deal__title { font: 600 21px/28px var(--font-display); }
.gmb-deal__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-2); }
.gmb-deal__stub { position: relative; background: var(--sun); border-radius: 0 var(--radius-md) var(--radius-md) 0; border-left: 2px dashed var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-4); }
.gmb-deal__stub::before, .gmb-deal__stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--canvas); }
.gmb-deal__stub::before { top: -10px; }
.gmb-deal__stub::after { bottom: -10px; }
.gmb-deal__value { font: 800 36px/36px var(--font-display); letter-spacing: -.02em; }
.gmb-deal__unit { font: 700 13px/16px var(--font-body); letter-spacing: .04em; text-transform: uppercase; margin-top: var(--space-1); }
.gmb-deal--expired { opacity: .7; }
.gmb-deal--expired .gmb-deal__stub { background: var(--line); }

/* Coupon code */
.gmb-code { display: inline-flex; align-items: stretch; border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; font: 700 15px/20px ui-monospace, "SF Mono", Menlo, monospace; }
.gmb-code__value { padding: 8px 12px; letter-spacing: .08em; }
.gmb-code__btn { border: 0; background: var(--brand-blue); color: var(--surface); font: 700 14px/20px var(--font-body); padding: 8px 14px; cursor: pointer; }
.gmb-code__btn:hover { background: var(--brand-blue-700); }
.gmb-code--hidden .gmb-code__value { filter: blur(5px); user-select: none; }

/* Post card */
.gmb-post { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; text-decoration: none; color: var(--ink); }
.gmb .gmb-post:hover { color: var(--ink); }
.gmb .gmb-post:hover .gmb-post__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gmb-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--sky); overflow: hidden; }
.gmb-thumb::before { content: ""; position: absolute; right: -8%; bottom: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.gmb-thumb::after { content: ""; position: absolute; left: 10%; top: 18%; width: 34%; height: 38%; border-radius: var(--radius-md); background: var(--surface); }
.gmb-thumb--lemon { background: var(--lemon); }
.gmb-thumb--lemon::before { background: var(--brand-blue); }
.gmb-thumb--blue { background: var(--brand-blue); }
.gmb-thumb--blue::before { background: var(--sky); }
.gmb-post__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.gmb-post__title { font: 600 21px/28px var(--font-display); }
.gmb-post__excerpt { font: 400 16px/26px var(--font-body); color: var(--ink-muted); }
.gmb-meta { font: 500 14px/20px var(--font-body); color: var(--ink-muted); margin-top: auto; padding-top: var(--space-2); }

/* Callout — Bespaartip */
.gmb-callout { background: var(--lemon); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-2); }
.gmb-callout__label { font: 700 13px/16px var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.gmb-callout__title { font: 600 21px/28px var(--font-display); }
.gmb-callout p { font: 400 17px/28px var(--font-body); }
.gmb-callout--info { background: var(--sky-100); }

/* Site header */
.gmb-header { background: var(--brand-blue); color: var(--surface); }
.gmb-header__bar { display: flex; align-items: center; gap: var(--space-6); padding: 16px 32px; }
.gmb-logo { font: 800 24px/1 var(--font-display); letter-spacing: -.02em; color: var(--surface); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.gmb .gmb-logo:hover { color: var(--surface); }
.gmb-logo b { color: var(--sun); font-weight: 800; }
.gmb-logo__tick { width: 30px; height: 20px; border-radius: 4px; background: var(--sun); position: relative; }
.gmb-logo__tick::before, .gmb-logo__tick::after { content: ""; position: absolute; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-blue); }
.gmb-logo__tick::before { left: -5px; }
.gmb-logo__tick::after { right: -5px; }
.gmb-nav { display: flex; gap: var(--space-6); margin-left: var(--space-4); }
.gmb .gmb-nav a { color: var(--surface); font: 600 16px/20px var(--font-body); text-decoration: none; }
.gmb .gmb-nav a:hover, .gmb .gmb-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.gmb-search { margin-left: auto; display: flex; align-items: center; background: var(--surface); border-radius: var(--radius-pill); padding: 4px 4px 4px 16px; width: 280px; }
.gmb-search input { border: 0; outline: 0; font: 500 15px/20px var(--font-body); color: var(--ink); flex: 1; min-width: 0; background: transparent; }
.gmb-search input::placeholder { color: var(--ink-muted); }
.gmb-search button { border: 0; background: var(--brand-blue); color: var(--surface); border-radius: var(--radius-pill); font: 700 14px/20px var(--font-body); padding: 6px 14px; cursor: pointer; }
.gmb-cats { background: var(--sky-100); display: flex; gap: var(--space-2); padding: 12px 32px; overflow-x: auto; }

/* Page scaffolding */
.gmb-wrap { max-width: 1136px; margin: 0 auto; padding: 0 32px; }
.gmb-section { padding: var(--space-12) 0 0; }
.gmb-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-6); }
.gmb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.gmb-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

/* Flyer card — the cover is the hero, like a magazine on a shelf */
.gmb-flyer { display: flex; align-items: flex-start; gap: 20px; padding: 20px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; }
.gmb .gmb-flyer:hover { color: var(--ink); }
.gmb-flyer__cover { position: relative; flex: none; width: 104px; aspect-ratio: 210 / 297; border-radius: 4px; overflow: hidden; background: var(--surface); container-type: inline-size; box-shadow: 0 1px 2px rgba(16, 40, 58, 0.15), 0 6px 14px -6px rgba(16, 40, 58, 0.3); transition: transform .2s ease; }
.gmb .gmb-flyer:hover .gmb-flyer__cover { transform: rotate(-2deg); }
.gmb-flyer__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gmb-flyer__pages { position: absolute; bottom: 5px; right: 5px; z-index: 2; background: var(--ink); color: var(--surface); font: 700 10px/12px var(--font-body); padding: 2px 5px; border-radius: var(--radius-pill); }
.gmb-flyer__info { display: grid; gap: 6px; flex: 1; min-width: 0; }
.gmb-flyer__head { display: flex; align-items: center; gap: var(--space-2); font: 700 16px/22px var(--font-body); }
.gmb-flyer__status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/16px var(--font-body); color: var(--ink-muted); white-space: nowrap; }
.gmb-flyer__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-blue); }
.gmb-flyer--upcoming .gmb-flyer__status::before { background: var(--line-strong); }
.gmb-flyer__title { font: 600 20px/26px var(--font-display); }
.gmb .gmb-flyer:hover .gmb-flyer__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gmb-flyer__text { font: 400 15px/24px var(--font-body); color: var(--ink-muted); }
.gmb-flyer__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); font: 500 14px/20px var(--font-body); color: var(--ink-muted); }
.gmb-flyer__meta span { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmb-flyer__meta svg { width: 14px; height: 14px; fill: var(--brand-blue); flex: none; }
.gmb-flyer__meta strong { color: var(--ink); font-weight: 700; }

/* Placeholder cover — a clean poster standing in for page 1 of the PDF */
.gmb-fpage { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; padding: 9cqw; background: var(--fp, var(--brand-blue)); color: var(--fp-ink, var(--surface)); }
.gmb-fpage::after { content: ""; position: absolute; width: 95cqw; aspect-ratio: 1; border-radius: 50%; right: -38cqw; bottom: -30cqw; background: var(--fp2, var(--sky)); }
.gmb-fpage__eyebrow { position: relative; z-index: 1; font: 700 4.6cqw/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.gmb-fpage__title { position: relative; z-index: 1; font: 800 17cqw/.92 var(--font-display); letter-spacing: -.03em; margin-top: 5cqw; }
.gmb-fpage__price { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; background: var(--surface); color: var(--ink); font: 800 15cqw/1 var(--font-display); letter-spacing: -.03em; padding: 3.5cqw 5cqw; border-radius: 3cqw; transform: rotate(-4deg); box-shadow: 0 1.5cqw 0 var(--ink); }
.gmb-fpage--sun { --fp: var(--sun); --fp2: var(--surface); --fp-ink: var(--ink); }
.gmb-fpage--sky { --fp: var(--sky); --fp2: var(--lemon); --fp-ink: var(--ink); }
.gmb-fpage--lemon { --fp: var(--lemon); --fp2: var(--sky); --fp-ink: var(--ink); }
.gmb-fpage--ink { --fp: var(--ink); --fp2: var(--brand-blue); --fp-ink: var(--surface); }
.gmb-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
