/* vittigheder.co — design tokens (DESIGN-SYSTEM.md) */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2?v=e54f9a85bd") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #20233B;
  --muted: #555B70;
  --brand: #5746C8;
  --brand-hover: #4233A7;
  --lilac: #ECE9FF;
  --lilac-strong: #DCD6FF;
  --coral: #FF765E;
  --coral-pale: #FFE5DF;
  --yellow: #FFF0BF;
  --border: #D8DCE7;
  --error: #A42B3A;
  --success: #246B4D;
  --success-pale: #E3F2EA;
  --focus: #254FC7;
  --disabled-bg: #E8E8ED;
  --disabled-ink: #666B7D;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px;

  --radius-card: 18px;
  --radius-hero: 24px;
  --radius-btn: 10px;
  --radius-input: 12px;
  --shadow-card: 0 6px 20px rgba(32, 35, 59, 0.04);
  --shadow-pop: 0 18px 50px rgba(32, 35, 59, 0.16);

  --gutter: 20px;
  --header-h: 72px;
  --section-gap: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 40;
  --z-pop: 50;
  --z-toast: 100;
}

@media (min-width: 360px) { :root { --gutter: 20px; } }
@media (max-width: 359px) { :root { --gutter: 16px; } }
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 80px; --section-gap: 64px; } }
/* Base, typography, layout primitives */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 25px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; line-height: 27px; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
main { display: block; outline: none; }
[hidden] { display: none !important; }
.h1, .h2, .h3 { text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* Links never get underlines — not at rest, not on hover (project requirement). */
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; color: var(--brand-hover); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-btn); font-weight: 600;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; color: #fff; }

/* Type scale */
.h1 { font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.035em; }
.h2 { font-size: 25px; line-height: 32px; font-weight: 700; letter-spacing: -0.025em; }
.h3 { font-size: 20px; line-height: 27px; font-weight: 600; }
.lead { font-size: 18px; line-height: 27px; color: var(--muted); margin-top: var(--s3); max-width: 640px; }
.body-text { color: var(--muted); margin-top: var(--s3); max-width: 760px; }
.section__intro { color: var(--muted); margin-top: var(--s2); max-width: 760px; }
.eyebrow { font-size: 14px; line-height: 21px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.text-link { font-weight: 600; color: var(--brand); border-radius: 4px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.text-link:hover { background: var(--lilac); color: var(--brand-hover); }
@media (min-width: 768px) {
  .h1 { font-size: 52px; line-height: 59px; }
  .h2 { font-size: 30px; line-height: 38px; }
  .h3 { font-size: 21px; line-height: 28px; }
  .lead { font-size: 20px; line-height: 30px; }
}

.section { margin-top: var(--section-gap); }
.section > .h2 + * { margin-top: var(--s6); }
.section > .h2 + .section__intro { margin-top: var(--s2); }
.section__intro + * { margin-top: var(--s6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* ============ Header & navigation ============ */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(250, 249, 246, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s6); }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 10px; flex: none; }
.brand img { width: 164px; height: 31px; }
@media (min-width: 768px) { .brand img { width: 188px; height: 35px; } }

.nav { display: none; margin-left: var(--s4); }
.nav__list { display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 600;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover { background: var(--lilac); color: var(--ink); }
.nav__link[aria-current="page"], .nav__link.is-active { background: var(--ink); color: #fff; }
.nav__link[aria-current="page"]:hover, .nav__link.is-active:hover { background: var(--ink); color: #fff; }
.nav__link[aria-current="page"]::before, .nav__link.is-active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-right: 2px; }
.nav__chev { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.nav__trigger[aria-expanded="true"] { background: var(--lilac); color: var(--ink); }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__cats { position: relative; }

.catpanel {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(640px, calc(100vw - 48px)); transform: translateX(-30%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-pop); padding: 20px; z-index: var(--z-pop);
  animation: pop-in .22s var(--ease);
}
.catpanel::before { content: ""; position: absolute; top: -8px; left: 30%; width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.catpanel__title { font-size: 14px; line-height: 21px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; padding: 0 10px 8px; }
.catpanel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; max-height: min(60vh, 520px); overflow: auto; }
.catpanel__all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; min-height: 48px; border-radius: 12px; background: var(--lilac); font-weight: 600; color: var(--brand); }
.catpanel__all:hover { background: var(--lilac-strong); color: var(--brand-hover); }
.catpanel__all .icon { width: 18px; height: 18px; }
@keyframes pop-in { from { opacity: 0; transform: translateX(-30%) translateY(-6px) scale(.98); } to { opacity: 1; transform: translateX(-30%) translateY(0) scale(1); } }

.catlink { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 14px; color: var(--ink); transition: background-color .15s var(--ease); }
.catlink:hover { background: var(--canvas); color: var(--ink); }
.catlink__text { display: flex; flex-direction: column; min-width: 0; }
.catlink__name { font-weight: 600; font-size: 16px; line-height: 22px; }
.catlink__blurb { font-size: 14px; line-height: 19px; color: var(--muted); }
.smile { flex: none; }
.smile--sm { width: 36px; height: 36px; }

.saved-btn {
  display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 16px;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.saved-btn:hover { background: var(--lilac); }
.saved-btn:active { transform: scale(.97); }
.saved-btn__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 13px; line-height: 22px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.menu-btn, .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); }
.menu-btn { margin-left: auto; }
.menu-btn:hover, .icon-btn:hover { background: var(--lilac); }
.menu-btn .icon, .icon-btn .icon { width: 26px; height: 26px; }
@media (min-width: 768px) {
  .nav { display: block; }
  .saved-btn { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Mobile menu (modal dialog, S01) */
.menu {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: calc(12px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  border: 0; background: var(--canvas); color: var(--ink); overflow-y: auto;
}
.menu[open] { animation: slide-in .26s var(--ease); }
.menu::backdrop { background: rgba(32, 35, 59, .4); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.search--menu { margin-top: var(--s4); }
.menu__nav { margin-top: var(--s4); }
.menu__list { display: grid; gap: 4px; }
.menu__link {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 60px; padding: 8px 6px; border: 0; border-radius: 16px;
  background: transparent; color: var(--ink); font-size: 18px; font-weight: 500; text-align: left; transition: background-color .15s var(--ease);
}
.menu__link--primary { font-weight: 700; font-size: 19px; }
.menu__link:hover { background: var(--surface); color: var(--ink); }
.menu__link[aria-current="page"] { background: var(--lilac); }
.menu__link > span:nth-child(2) { flex: 1; }
.menu__chev { width: 22px; height: 22px; transform: rotate(-90deg); color: var(--ink); }
.smile--menu { width: 44px; height: 44px; }
.menu__ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); flex: none; }
.menu__ico--plain { border: 0; background: transparent; }
.menu__rule { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.search--menu .search__results { max-height: none; }

/* ============ Buttons, chips, badges ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-btn); font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease), color .15s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--lilac); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); padding-inline: 10px; }
.btn--ghost:hover { background: rgba(255, 255, 255, .7); }
.btn--danger { background: var(--error); color: #fff; }
.btn--danger:hover { background: #8a2230; color: #fff; }
.btn--lg { min-height: 56px; font-size: 18px; }
.btn:disabled { background: var(--disabled-bg); color: var(--disabled-ink); border-color: var(--disabled-bg); cursor: not-allowed; }

.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px 4px 8px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.badge--child { background: var(--yellow); }
.badge--adult { background: var(--coral-pale); padding-left: 14px; }
.badge--sm { min-height: 22px; padding: 0 8px; font-size: 12px; line-height: 20px; margin-left: 6px; vertical-align: 1px; }
.smile--badge { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s6); }
.chip-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font-weight: 500; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.chip-btn:hover { border-color: var(--brand); }
.chip-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); }
.chip--yellow { background: var(--yellow); }
a.chip:hover { color: var(--ink); background: #ffe7a0; }

/* ============ Search ============ */
.search { position: relative; }
.search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search__field { position: relative; display: flex; align-items: center; }
.search__icon { position: absolute; left: 16px; width: 22px; height: 22px; color: var(--ink); pointer-events: none; }
.search__input {
  width: 100%; height: 52px; padding: 0 52px 0 50px; border: 1px solid var(--border); border-radius: var(--radius-input);
  background: var(--surface); font-size: 16px; color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search__input::placeholder { color: #6B7085; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search__input:hover { border-color: #b9bfd0; }
.search__input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 79, 199, .35); }
.search__clear { position: absolute; right: 4px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 10px; }
.search__clear:hover { background: var(--lilac); }
.search__clear .icon { width: 20px; height: 20px; }
.search__results { margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.search--hero .search__results { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; }
.results__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.results__title { font-size: 18px; line-height: 26px; font-weight: 700; }
.results__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.results__list { display: grid; gap: 12px; }
.results__more { margin-top: 12px; width: 100%; }
.results__empty { text-align: center; padding: 8px 4px 4px; }
.results__empty img { margin: 0 auto 8px; }
.results__empty p { color: var(--muted); margin: 4px 0 16px; }
.results__note { font-size: 14px; color: var(--muted); }
mark { background: var(--yellow); color: inherit; border-radius: 4px; padding: 0 2px; }

/* ============ Joke card ============ */
.jokes { display: grid; gap: var(--s5); }
.jokes__cell[hidden] { display: none; }
@media (min-width: 1024px) { .jokes--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.joke {
  height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); transition: border-color .2s var(--ease);
}
.joke:hover { border-color: #c4c9da; }
.joke:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--lilac-strong); }
.joke__body { flex: 1; }
.joke__setup { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink); }
.joke__line { display: block; }
.joke__answer { margin-top: 6px; font-size: 17px; line-height: 27px; color: var(--muted); }
.joke__answer--reveal { margin-top: 10px; padding: 12px 16px; background: var(--lilac); border-radius: 12px; color: var(--ink); }
.joke__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; padding: 0 2px; border: 0; background: transparent; color: var(--brand); font-weight: 600; border-radius: 8px; }
.joke__toggle:hover { color: var(--brand-hover); }
.joke__toggle .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.joke__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.joke__actions { display: flex; border-top: 1px solid var(--border); margin: 4px -8px -8px; padding-top: 6px; }
.act {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.joke__actions .act + .act { border-left: 1px solid var(--border); border-radius: 0 10px 10px 0; }
.act:hover { background: var(--canvas); }
.act .icon { width: 21px; height: 21px; transition: transform .2s var(--ease); }
.act[aria-pressed="true"] .icon-heart { fill: var(--coral); stroke: var(--coral); animation: heart-pop .3s var(--ease); }
.act.is-copied { color: var(--success); }
.act.is-copied .icon { stroke: var(--success); }
/* Buttons that also carry copy/save behaviour keep the button look */
.btn.act { flex: none; min-height: 48px; border-radius: var(--radius-btn); font-size: 16px; font-weight: 600; }
.btn--primary.act { background: var(--brand); color: #fff; }
.btn--primary.act:hover { background: var(--brand-hover); color: #fff; }
.btn--primary.act .icon { stroke: #fff; }
.btn--secondary.act { background: var(--surface); border: 1px solid var(--ink); color: var(--ink); }
.btn--secondary.act:hover { background: var(--lilac); }
@keyframes heart-pop { 50% { transform: scale(1.25); } }
@media (min-width: 768px) {
  .joke { padding: 24px; }
  .joke__setup { font-size: 19px; line-height: 29px; }
}
/* Desktop: actions sit to the right of the text, as in the mockups */
@media (min-width: 1024px) {
  .joke--compact { flex-direction: row; align-items: center; gap: 16px; }
  .joke--compact .joke__actions { border-top: 0; margin: 0; padding: 0; flex: none; }
  .joke--compact .act { flex: none; }
  .joke--compact .joke__actions .act + .act { border-left: 0; border-radius: 10px; }
}
.adult-flag { display: inline-flex; margin-left: 8px; }

/* ============ Random joke card (hero) ============ */
.randcard { position: relative; display: flex; gap: 24px; align-items: center; padding: 24px; background: var(--lilac); border-radius: var(--radius-hero); overflow: hidden; }
.randcard__content { position: relative; z-index: 1; flex: 1; min-width: 0; }
.randcard__joke { margin-top: 12px; font-size: 23px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); min-height: 64px; transition: opacity .18s var(--ease); }
.randcard__joke.is-changing { opacity: 0; }
.randcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.randcard__actions .btn--ghost { grid-column: 1 / -1; justify-self: start; color: var(--brand); padding-inline: 4px; }
.randcard__actions .act { flex: none; }
.randcard__actions .btn.act { background: var(--surface); border: 1px solid var(--ink); }
.randcard__actions .btn.act:hover { background: #f6f4ff; }
.randcard__art { display: none; width: 150px; height: 150px; flex: none; }
@media (min-width: 768px) {
  .randcard { padding: 32px; }
  .randcard__joke { font-size: 27px; line-height: 36px; }
  .randcard__actions { display: flex; flex-wrap: wrap; align-items: center; }
  .randcard__actions .btn--ghost { grid-column: auto; color: var(--ink); }
  .randcard__art { display: block; }
}

/* ============ Category cards & link lists ============ */
.catcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catcard {
  display: flex; align-items: center; gap: 12px; height: 100%; min-height: 64px; padding: 12px 12px 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--ink); box-shadow: var(--shadow-card);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.catcard:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(87, 70, 200, .10); }
.catcard__smile { width: 40px; height: 40px; }
.catcard__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.catcard__name { font-weight: 700; font-size: 16px; line-height: 22px; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 767px) { .catcard { gap: 10px; padding: 12px; } .catcard__smile { width: 34px; height: 34px; } .catcard__chev { display: none; } }
.catcard__blurb { display: none; font-size: 14px; line-height: 20px; color: var(--muted); }
.catcard__chev { width: 20px; height: 20px; transform: rotate(-90deg); flex: none; }
@media (max-width: 359px) { .catcards { grid-template-columns: 1fr; } }
@media (min-width: 768px) {
  .catcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .catcard { padding: 18px 16px 18px 18px; gap: 16px; }
  .catcard__smile { width: 52px; height: 52px; }
  .catcard__blurb { display: block; }
}
.catcards--two { margin-top: var(--s6); }
@media (min-width: 1200px) { .catcards--six { grid-template-columns: repeat(6, 1fr); gap: 16px; } .catcards--six .catcard { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; position: relative; } .catcards--six .catcard__chev { position: absolute; right: 12px; top: 22px; } }
@media (min-width: 768px) { .catcards--two { grid-template-columns: 1fr 1fr; } }
.catcards--stack { grid-template-columns: 1fr; gap: 12px; }

.more-title { margin-top: var(--s8); }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-weight: 500; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.chip-link:hover { border-color: var(--brand); background: var(--lilac); color: var(--ink); }

/* ============ CTA, related, notes ============ */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: var(--section-gap); padding: 24px; border-radius: var(--radius-card); }
.cta--coral { background: var(--coral-pale); }
.cta--lilac { background: var(--lilac); }
.cta__art { width: 60px; height: 60px; }
.cta__text { flex: 1 1 260px; }
.cta__title { font-size: 21px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.cta__text p { color: var(--muted); margin-top: 4px; }
.cta__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: #8A2E1F; }
.cta__link:hover { color: var(--ink); }
.cta__link .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
.cta .btn .icon { transform: rotate(-90deg); }
@media (min-width: 768px) { .cta { padding: 24px 32px; } .cta__art { width: 72px; height: 72px; } .cta__title { font-size: 24px; line-height: 32px; } }

.related { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; background: var(--coral-pale); border-radius: var(--radius-card); }
.related__art { width: 56px; height: 56px; }
.related__text { flex: 1 1 200px; }
.related__title { font-size: 18px; line-height: 26px; font-weight: 700; }
.related__body { font-size: 14px; line-height: 21px; color: var(--muted); }
.related__links { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.pill-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 16px; border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.pill-link:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(32, 35, 59, .08); }
.pill-link__chev { width: 18px; height: 18px; transform: rotate(-90deg); }

/* ============ FAQ ============ */
.faq { margin-top: var(--section-gap); }
.faq > .h2 { margin-bottom: var(--s6); }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.faq__item + .faq__item { margin-top: 12px; }
.faq__q { font-size: 17px; line-height: 25px; font-weight: 600; }
.faq__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 14px 18px; border: 0; background: transparent; border-radius: var(--radius-card); text-align: left; font-weight: 600; }
.faq__chev { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.faq__btn[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 18px 18px; margin-top: -2px; color: var(--muted); }
.split__side .faq { margin-top: 0; }

/* ============ Footer ============ */
.site-footer { position: relative; margin-top: 72px; background: var(--lilac); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 41px; background: var(--lilac); -webkit-mask: url("/assets/img/boelge.svg") top / 100% 240px no-repeat; mask: url("/assets/img/boelge.svg") top / 100% 240px no-repeat; }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__slogan { margin-top: 12px; font-size: 34px; line-height: 38px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.site-footer__slogan span { display: block; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px; }
.fcol__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.fcol ul { display: grid; }
.fcol a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.fcol a:hover { color: var(--brand); }
@media (min-width: 768px) {
  .site-footer { padding: 48px 0; }
  .site-footer__inner { grid-template-columns: 5fr 7fr; align-items: start; gap: 24px; }
  .site-footer__nav { grid-template-columns: repeat(3, 1fr); }
  .fcol a { min-height: 32px; font-size: 15px; }
}
@media (min-width: 1024px) { .site-footer__slogan { font-size: 46px; line-height: 52px; } .site-footer__slogan span { display: inline; } }

/* ============ Dialogs ============ */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(32, 35, 59, .45); }
.sheet { width: min(640px, calc(100vw - 24px)); max-height: min(86vh, 860px); padding: 0; border: 0; border-radius: 22px; background: var(--canvas); box-shadow: var(--shadow-pop); display: none; flex-direction: column; overflow: hidden; }
.sheet[open] { display: flex; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.sheet__title { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; }
.sheet__body { padding: 16px; overflow-y: auto; display: grid; gap: 12px; }
.sheet__body:empty { display: none; }
.sheet__empty { padding: 32px 24px; text-align: center; }
.sheet__empty img { margin: 0 auto 12px; }
.sheet__empty p { color: var(--muted); margin-bottom: 20px; }
.sheet__foot { padding: 12px 16px 16px; border-top: 1px solid var(--border); background: var(--surface); display: flex; justify-content: flex-end; }
.sheet .joke__source { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }

.confirm { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-pop); }
.confirm__text { font-size: 18px; line-height: 27px; font-weight: 600; }
.confirm__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.reader { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--lilac); }
.reader::backdrop { background: var(--lilac); }
.reader:fullscreen { width: 100vw; height: 100vh; }
.reader__inner { min-height: 100%; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left)); }
.reader__close { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px 0 8px; border: 0; border-radius: 12px; background: transparent; font-size: 17px; font-weight: 500; }
.reader__close:hover { background: rgba(255, 255, 255, .6); }
.reader__close .icon { width: 26px; height: 26px; }
.reader__stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0; max-width: 840px; width: 100%; margin: 0 auto; }
.reader__art { width: 120px; height: 120px; margin-bottom: 20px; }
.reader__text { font-size: 28px; line-height: 39px; font-weight: 700; letter-spacing: -0.025em; white-space: pre-line; overflow-wrap: anywhere; }
.reader__source { margin-top: 24px; }
.reader__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; }
.reader__actions .btn--primary { grid-column: 1 / -1; }
.act--box { min-height: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.act--box:hover { background: #fff; border-color: var(--ink); }
@media (min-width: 768px) {
  .reader__text { font-size: 40px; line-height: 52px; }
  .reader__art { width: 150px; height: 150px; }
  .reader__actions { grid-template-columns: 2fr 1fr 1fr; }
  .reader__actions .btn--primary { grid-column: auto; }
}

.lightbox { width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-pop); overflow: auto; }
.lightbox__close { position: absolute; top: 10px; right: 10px; background: var(--surface); }
.lightbox__figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 14px; }
.lightbox__figure figcaption { margin-top: 16px; font-size: 20px; line-height: 30px; font-weight: 600; padding-right: 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: var(--z-toast);
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--success-pale); color: var(--success); font-weight: 600; box-shadow: var(--shadow-pop); animation: toast-in .25s var(--ease);
}
.toast.is-error { background: #FBE7EA; color: var(--error); border-radius: 14px; }
.toast .icon { width: 20px; height: 20px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* Toasts also render inside open modal dialogs (top layer) */
dialog .toast { position: fixed; }

/* ============ Guest-post link in the header ============ */
.nav__guest { color: var(--brand); }
.nav__guest-ico { width: 18px; height: 18px; }
.nav__short { display: none; }
@media (min-width: 768px) and (max-width: 1099px) {
  .nav__long { display: none; }
  .nav__short { display: inline; }
  .nav__guest-ico { display: none; }
  .nav__link { padding: 0 12px; }
  .nav { margin-left: 0; }
  .site-header__inner { gap: 12px; }
}

/* ============ Footer additions ============ */
.fcol__btn { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; text-align: left; }
.fcol__btn:hover { color: var(--brand); }
@media (min-width: 768px) { .fcol__btn { min-height: 32px; font-size: 15px; } }
.site-footer__meta { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--lilac-strong); font-size: 14px; color: var(--muted); }
.site-footer__meta a { color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 768px) { .site-footer__meta a { min-height: 0; } }

/* ============ Back to top ============ */
.to-top {
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-pop); animation: pop .2s var(--ease); transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.to-top:hover { background: var(--brand); transform: translateY(-2px); }
.to-top .icon { transform: rotate(-90deg); width: 24px; height: 24px; }
.has-consent-banner .to-top { display: none; }

/* ============ Consent banner + preferences ============ */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
  display: grid; gap: 14px; max-width: 980px; margin: 0 auto; padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-pop); animation: toast-in-up .3s var(--ease);
}
@keyframes toast-in-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.consent__title { font-size: 18px; line-height: 26px; font-weight: 700; }
.consent__text p { margin-top: 4px; font-size: 15px; line-height: 23px; color: var(--muted); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__manage { grid-column: 1 / -1; color: var(--brand); }
@media (min-width: 768px) {
  .consent { grid-template-columns: 1fr auto; align-items: center; padding: 20px 24px; }
  .consent__actions { display: flex; }
  .consent__manage { grid-column: auto; }
}
.prefs__body { padding: 16px 24px; overflow-y: auto; }
.prefs__intro { color: var(--muted); }
.prefs__reason { margin-top: 12px; padding: 12px 14px; background: var(--yellow); border-radius: 12px; font-weight: 600; }
.pref { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.pref:last-child { border-bottom: 0; }
.pref__title { font-size: 17px; line-height: 25px; font-weight: 700; }
.pref__text p { font-size: 15px; line-height: 22px; color: var(--muted); margin-top: 2px; }
.pref--off .pref__title { color: var(--muted); }
.prefs__foot { flex-wrap: wrap; gap: 10px; }
.prefs__foot .btn { flex: 1 1 140px; }
.switch { position: relative; flex: none; width: 52px; height: 32px; margin-top: 2px; }
.switch input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: #C9CDDA; transition: background-color .18s var(--ease); }
.switch__track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(32, 35, 59, .3); transition: transform .18s var(--ease); }
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:disabled + .switch__track { opacity: .55; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ============ Forms ============ */
.field { margin-top: 20px; }
.field__label { display: block; font-weight: 600; font-size: 16px; line-height: 24px; }
.field__req { color: var(--error); }
.field__hint { font-size: 14px; line-height: 21px; color: var(--muted); margin-top: 2px; }
.input {
  display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 12px 16px; border: 1px solid #A9AFC2; border-radius: var(--radius-input);
  background: var(--surface); font-size: 16px; line-height: 24px; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:hover { border-color: #8A91A8; }
.input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 79, 199, .35); }
.input--area { min-height: 168px; resize: vertical; }
.has-error .input { border-color: var(--error); }
.field__error { display: flex; gap: 6px; margin-top: 6px; color: var(--error); font-size: 15px; line-height: 22px; font-weight: 600; }
.field__error::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--error); color: #fff; font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check__input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.check__label { font-size: 16px; line-height: 25px; cursor: pointer; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #FBE7EA; color: var(--error); font-weight: 600; }
.form-alert:focus { outline: none; }
.form-success { display: flex; gap: 14px; align-items: flex-start; padding: 24px; border-radius: var(--radius-card); background: var(--success-pale); color: var(--ink); }
.form-success .icon, .thanks > .icon { width: 32px; height: 32px; flex: none; color: var(--success); stroke-width: 2.4; }
.form-success p { color: var(--muted); margin-top: 4px; }
.btn[aria-busy="true"] { cursor: progress; }
/* Keep content and focused fields clear of the consent banner while it is shown */
html:has(body.has-consent-banner) { scroll-padding-bottom: 280px; }
.has-consent-banner .site-footer { padding-bottom: 300px; }
@media (min-width: 768px) { .has-consent-banner .site-footer { padding-bottom: 180px; } }
/* Tablet header: keep guest-post link visible by making "Gemte" icon-only (text stays for screen readers) */
@media (min-width: 768px) and (max-width: 1099px) {
  .saved-btn { padding: 0 12px; }
  .saved-btn > span:not(.saved-btn__count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand img { width: 164px; height: 31px; }
}
/* ============ T01 Home ============ */
.hero { display: grid; gap: 24px; padding-top: 16px; }
.hero__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero__figure { width: 110px; height: auto; flex: none; margin-top: 4px; }
.search--hero { margin-top: 24px; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; padding-top: 24px; }
  .hero__figure { display: none; }
  .search--hero { margin-top: 32px; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .hero .h1 { font-size: 44px; line-height: 50px; } }

.split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .split { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; } }

/* ============ T02 Collection ============ */
.chero { display: grid; gap: 24px; padding-top: 8px; }
.chero > *, .hero > *, .split > *, .guide > *, .article__grid > * { min-width: 0; }
.chero__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; }
@media (min-width: 1024px) {
  .chero { grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
  .chero .randcard { margin-top: 8px; }
  .chero .randcard { padding: 28px; gap: 16px; }
  .chero .randcard__art { width: 96px; height: 96px; align-self: flex-start; }
  .chero .randcard__joke { font-size: 23px; line-height: 32px; }
  .chero .randcard__actions { flex-wrap: nowrap; gap: 10px; }
  .chero .randcard__actions .btn--ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chero .randcard__actions .btn--ghost { width: 48px; padding: 0; border: 1px solid var(--ink); background: var(--surface); }
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 21px; color: var(--muted); padding-top: 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: #9AA0B2; }
.crumbs a { color: var(--ink); display: inline-flex; align-items: center; min-height: 32px; border-radius: 6px; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current="page"] { color: var(--muted); }

.jsections { margin-top: 8px; }
.jsection { margin-top: var(--section-gap); }
.jsection[hidden] { display: none; }
.jsection > .h2 + .section__intro + .jokes { margin-top: var(--s6); }
.empty-filter { margin-top: 32px; padding: 24px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-card); color: var(--muted); }

.note-row { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .note-row { grid-template-columns: 1fr 1fr; gap: 32px; } }
.note .body-text { margin-top: 12px; }

/* adult collections: coral-tinted hero card */
.adult .chero .randcard { background: var(--coral-pale); }

/* ============ T04 Gallery ============ */
.lead--narrow { max-width: 680px; }
.gallery { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gcard { display: flex; flex-direction: column; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.gcard__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 14px; }
.gcard__caption { margin-top: 16px; font-size: 19px; line-height: 28px; font-weight: 600; flex: 1; }
.gcard__figure { flex: 1; display: flex; flex-direction: column; }
.gcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.gcard__actions .gcard__open { grid-column: 1 / -1; border: 0; color: var(--brand); background: transparent; }
.gcard__actions .gcard__open:hover { background: var(--lilac); }
.gcard__actions .btn { padding-inline: 12px; }

.split--gallery { margin-top: var(--section-gap); }

/* ============ T03 Guide ============ */
.guide { display: grid; gap: 16px; }
.rail { display: none; }
.rail__list { display: grid; gap: 2px; }
.rail__label { font-size: 14px; color: var(--muted); margin: 16px 0 6px 10px; }
.rail__link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.rail__link:hover { background: var(--surface); color: var(--ink); }
.rail__link[aria-current="page"] { background: var(--lilac); font-weight: 600; }
.rail__ico { display: inline-flex; width: 30px; justify-content: center; }
.smile--rail { width: 30px; height: 30px; }
.rail-compact { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 0 12px; }
.rail-compact summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 600; cursor: pointer; list-style: none; }
.rail-compact summary::-webkit-details-marker { display: none; }
.rail-compact summary .icon { transition: transform .2s var(--ease); }
.rail-compact[open] summary .icon { transform: rotate(180deg); }
.rail-compact[open] { padding-bottom: 12px; }
.article .h1 { margin-top: 8px; }
.article__grid { display: grid; gap: 24px; margin-top: 24px; }
.article__section { margin-top: 32px; }
.article__section:first-child { margin-top: 0; }
.article__section .h3 { margin-top: 24px; }
.quote { margin-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.quote__art { width: 48px; height: 48px; }
.quote__text { font-size: 18px; line-height: 28px; font-weight: 500; }
.quote__text p::before { content: "“"; }
.quote__text p::after { content: "”"; }
.quote .joke__actions { grid-column: 1 / -1; margin: 8px -8px -8px; }
.steps { display: grid; gap: 12px; margin-top: 16px; }
.step, .tips__item { display: flex; gap: 14px; align-items: flex-start; }
.step { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.step strong, .tips__item strong { display: block; font-weight: 700; }
.step span span, .tips__item span span { display: block; font-size: 15px; line-height: 22px; color: var(--muted); }
.num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); font-weight: 700; font-size: 18px; color: var(--ink); }
.step .num { background: var(--yellow); }
.tips { position: relative; padding: 24px; background: var(--yellow); border-radius: var(--radius-card); overflow: hidden; }
.tips .num { background: #FFE08A; }
.tips__title { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; }
.tips__list { display: grid; gap: 18px; margin-top: 18px; position: relative; z-index: 1; max-width: 360px; }
.tips__art { display: none; position: absolute; right: 12px; top: 16px; width: 110px; height: 110px; }
.morebox { margin-top: 16px; padding: 24px; background: var(--lilac); border-radius: var(--radius-card); }
.morebox__title { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; }
.morebox p { color: var(--muted); margin: 8px 0 16px; }
.morebox .catcard__blurb { display: block; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .tips__art { display: block; }
  .tips__list { max-width: calc(100% - 120px); }
}
@media (min-width: 1024px) {
  .guide { grid-template-columns: 220px 1fr; gap: 32px; }
  .rail { display: block; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; padding: 16px 16px 0 0; border-right: 1px solid var(--border); min-height: 400px; }
  .rail-compact { display: none; }
  .article__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .article__aside { order: 2; }
  .article__main { order: 1; max-width: 760px; }
  .tips__list { max-width: 100%; }
  .tips__art { width: 90px; height: 90px; opacity: .95; }
  .tips__title { padding-right: 90px; }
  .steps { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ============ T05 Information ============ */
.info { max-width: calc(900px + 2 * var(--gutter)); }
.info__hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; }
.info__art { display: none; width: 200px; height: 200px; flex: none; }
.info__section { margin-top: 40px; }
.info__section .body-text { margin-top: 12px; }
.pcards { display: grid; gap: 16px; margin-top: 24px; }
.pcard { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.pcard p { color: var(--muted); margin-top: 6px; font-size: 16px; line-height: 24px; }
.pcard__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; }
.pcard__ico .icon { width: 30px; height: 30px; }
.pcard__ico--lilac { background: var(--lilac); }
.pcard__ico--yellow { background: var(--yellow); }
.pcard__ico--coral { background: var(--coral-pale); }
.info__pair { display: grid; gap: 32px; margin-top: 40px; }
.info__pair .body-text { margin-top: 12px; }
@media (min-width: 768px) {
  .info__art { display: block; }
  .pcards { grid-template-columns: repeat(3, 1fr); }
  .pcard { flex-direction: column; }
  .info__pair { grid-template-columns: 1fr 1fr; }
}
.info--text .body-text { max-width: 760px; }

/* ============ 404 ============ */
.notfound { text-align: center; padding-top: 40px; max-width: 760px; }
.notfound__art { margin: 0 auto 16px; width: 140px; height: 140px; }
.notfound .lead { margin-inline: auto; }
.notfound__joke { margin: 24px auto 0; max-width: 560px; padding: 20px; background: var(--lilac); border-radius: var(--radius-card); font-weight: 600; font-size: 19px; line-height: 29px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ============ Information & legal pages ============ */
.info--wide { max-width: calc(1200px + 2 * var(--gutter)); }
.info__h3 { margin-top: 24px; }
.updated { margin-top: 12px; font-size: 14px; color: var(--muted); }
.prose-list { margin-top: 12px; max-width: 760px; display: grid; gap: 10px; color: var(--muted); }
.prose-list li { position: relative; padding-left: 28px; }
.prose-list li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.prose-list--num { counter-reset: n; }
.prose-list--num li { counter-increment: n; padding-left: 40px; min-height: 30px; }
.prose-list--num li::before { content: counter(n); top: 0; left: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; max-width: 760px; padding: 16px 18px; border-radius: 14px; background: var(--yellow); color: var(--ink); font-weight: 500; }
.notice .icon { flex: none; margin-top: 2px; }
.consent-cta { margin-top: 20px; }
.btn__chev { transform: rotate(-90deg); }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--lilac); font-weight: 700; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--canvas); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table tr { margin-bottom: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
  .data-table tbody th { background: var(--lilac); }
  .data-table td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
  .data-table td::before { content: attr(data-label); font-weight: 700; color: var(--ink); }
}
.morelinks { margin-top: 56px; padding: 24px; border-radius: var(--radius-card); background: var(--lilac); }
.morelinks__title { font-size: 18px; line-height: 26px; font-weight: 700; margin-bottom: 14px; }

/* ============ Contact ============ */
.contact-grid { display: grid; gap: 32px; margin-top: 24px; }
.contact-grid > * { min-width: 0; }
.cform { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.cform__title { font-size: 22px; line-height: 30px; }
.cform__req { margin-top: 4px; font-size: 14px; color: var(--muted); }
.cform__note { margin-top: 20px; font-size: 15px; line-height: 23px; color: var(--muted); }
.cform__submit { margin-top: 20px; width: 100%; }
.caside { display: grid; gap: 16px; align-content: start; }
.caside__block { padding: 20px; background: var(--lilac); border-radius: var(--radius-card); }
.caside__block:nth-child(2) { background: var(--yellow); }
.caside__block:nth-child(3) { background: var(--coral-pale); }
.caside__block .body-text, .caside__block .prose-list { color: var(--ink); }
.caside__block .prose-list li::before { background: var(--brand); }
@media (min-width: 768px) { .cform { padding: 32px; } .cform__submit { width: auto; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }
.thanks { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; }
.thanks > .icon { margin-top: 12px; width: 40px; height: 40px; }
.notfound__actions--left { justify-content: flex-start; }

/* ============ 404 additions ============ */
.notfound__code { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.notfound__search { margin: 40px auto 0; max-width: 560px; text-align: left; }
.notfound__search .search { margin-top: 12px; }
.notfound__links { margin-top: 40px; text-align: left; }
.notfound__links .catcards { margin-top: 16px; }
.notfound { max-width: calc(980px + 2 * var(--gutter)); }
