/* Ghost Story Viewer — Warm Neutral. Beige paper, white rounded cards, one green accent, pill controls.
   Friendly and plain: sentence case, one typeface, no gradients or shadows. */

@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f8f5ef;
  --card: #ffffff;
  --tint: #f1ece3;
  --line: #ece5d9;
  --line-strong: #d9d1c5;
  --ink: #2a2622;
  --ink-2: #4f4841;
  --ink-3: #6b635b;
  --ink-4: #948b80;
  --green: #2f6f4f;
  --green-dark: #245a3f;
  --green-tint: #e7efe9;
  --warn: #b4441f;
  --stage: #1c1a18;

  --font: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --gutter: 32px;
  --r-card: 18px;
  --r-stage: 22px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.55 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
::selection { background: var(--green-tint); }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--green); color: #fff; padding: 8px 12px; border-radius: 999px; }
.skip:focus { left: 8px; }

.mark { width: 26px; height: 26px; color: var(--green); flex: none; overflow: visible; }
.mark__eye { fill: var(--bg); transform-box: fill-box; transform-origin: center; }

/* The ghost: floats up into place when a page loads and blinks once; on hover it bobs,
   sways and looks around. Turned off for people who ask for reduced motion (below). */
.wordmark .mark { transform-origin: 50% 90%; animation: ghost-arrive 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.wordmark .mark__eye { animation: ghost-blink 0.3s ease-in-out 0.95s 1 both; }
.wordmark:hover .mark, .wordmark:focus-visible .mark { animation: ghost-hover 1.8s ease-in-out infinite; }
.wordmark:hover .mark__eye, .wordmark:focus-visible .mark__eye { animation: ghost-look 1.8s ease-in-out infinite; }

@keyframes ghost-arrive {
  0% { opacity: 0; transform: translateY(8px) scale(0.85); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes ghost-hover {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-4px) rotate(-6deg); }
  50% { transform: translateY(-2px) rotate(0); }
  75% { transform: translateY(-4px) rotate(6deg); }
}
@keyframes ghost-blink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
}
@keyframes ghost-look {
  0%, 15%, 100% { transform: translateX(0) scaleY(1); }
  25%, 40% { transform: translateX(-0.9px) scaleY(1); }
  55% { transform: translateX(0) scaleY(0.1); }
  60% { transform: translateX(0) scaleY(1); }
  70%, 85% { transform: translateX(0.9px) scaleY(1); }
}

/* Header / footer */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--font); letter-spacing: -0.01em; }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink-3); }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-strong { color: var(--ink); padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; }
.site-nav .nav-strong:hover { border-color: var(--ink); color: var(--ink); }
.nav-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.nav-form button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-3); }
.nav-form button:hover { color: var(--ink); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; }

.site-footer { margin-top: 96px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: baseline; padding-top: 28px; padding-bottom: 44px; }
.site-footer p { margin: 0; max-width: 62ch; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.site-footer__brand .mark { width: 18px; height: 18px; }
.site-footer__links a { color: var(--ink-2); }

/* Home */
.hero { padding: 64px 0 48px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { margin: 0 0 22px; padding: 6px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 13px; font-weight: 700; }
.hero__title { font: 800 clamp(38px, 5.4vw, 60px)/1.08 var(--font); letter-spacing: -0.03em; margin: 0 0 18px; max-width: 16ch; }
.hero__lede { font-size: 19px; line-height: 1.55; color: var(--ink-3); max-width: 36em; margin: 0 0 36px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--green); }

/* Search: a pill with the button inside */
.search { width: 100%; max-width: 620px; }
.search__label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; text-align: left; }
.hero .search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search__field { display: flex; align-items: center; height: 64px; padding: 6px 6px 6px 24px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-strong); }
.search__field:focus-within { border-color: var(--green); outline: 3px solid var(--green-tint); }
.search__field.has-error { border-color: var(--warn); }
.search__prefix { color: var(--ink-4); font-size: 18px; font-weight: 600; user-select: none; }
.search__field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 12px 0 4px; font: 600 18px/1 var(--font); color: var(--ink); outline: none; }
.search__field input::placeholder { color: var(--ink-4); font-weight: 500; }
.search__field button { height: 100%; padding: 0 28px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; }
.search__field button:hover { background: var(--green-dark); }
.search__hint, .search__error { margin: 12px 0 0; font-size: 14px; color: var(--ink-4); }
.search__error { color: var(--warn); font-weight: 600; }
.search--compact { max-width: 360px; }
.search--compact .search__field { height: 48px; padding: 4px 4px 4px 18px; }
.search--compact .search__prefix, .search--compact .search__field input { font-size: 15px; }
.search--compact .search__field button { padding: 0 18px; font-size: 14px; background: var(--tint); color: var(--ink); }
.search--compact .search__field button:hover { background: var(--line-strong); }

/* Feature cards */
.section { padding: 40px 0 0; }
.section__title { font: 800 28px/1.15 var(--font); letter-spacing: -0.02em; margin: 0 0 24px; }
.cards { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 920px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); }

.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 24px; }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17px; font-weight: 700; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 2px; top: 16px; font-size: 22px; font-weight: 500; color: var(--ink-4); }
.faq__item[open] summary::after { content: "–"; color: var(--green); }
.faq__item summary:hover { color: var(--green); }
.faq__item p { margin: -6px 0 22px; color: var(--ink-3); max-width: 62ch; }

/* Text pages */
.prose-page { padding: 48px 0 0; }
.page-title { font: 800 clamp(32px, 4.5vw, 46px)/1.1 var(--font); letter-spacing: -0.025em; margin: 0 0 28px; }
.lede { font-size: 18px; color: var(--ink-3); }
.prose { font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--green); }

/* Buttons */
.text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.text-btn:hover { border-color: var(--ink); color: var(--ink); }
.text-btn[disabled] { opacity: 0.4; cursor: default; border-color: var(--line); }
.text-btn--solid { background: var(--green); border-color: var(--green); color: #fff; }
.text-btn--solid:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.text-btn--on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); margin-top: 14px; }
.text-btn--on-dark:hover { border-color: #fff; color: #fff; }

/* Viewer page */
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.account { display: flex; align-items: center; gap: 14px; min-width: 0; }
.account__avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); padding: 2px; display: grid; place-items: center; overflow: hidden; background: var(--card); }
.account__avatar.has-stories { border-color: var(--green); }
.account__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--tint); }
.account__avatar span { font-size: 22px; font-weight: 800; color: var(--ink-4); }
.account__text { min-width: 0; }
.account__name { font: 800 24px/1.15 var(--font); letter-spacing: -0.015em; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; overflow-wrap: anywhere; }
.account__name small { flex-basis: 100%; font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.verified { width: 18px; height: 18px; color: var(--green); flex: none; }
.account__meta { margin: 0; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.account__meta .sep { color: var(--ink-4); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.viewer__tools { display: flex; align-items: center; gap: 12px; }
.track { margin: 0; }

.viewer__body { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; padding-top: 24px; align-items: start; }

/* Stage: the player */
.stage { position: relative; }
.stage__frame { position: relative; aspect-ratio: 9 / 16; max-height: calc(100svh - 190px); min-height: 440px; margin: 0 auto; background: var(--stage); border-radius: var(--r-stage); overflow: hidden; color: #fff; user-select: none; -webkit-user-select: none; }
.stage--loading .stage__frame { background: var(--tint); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; } }
.stage__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage__progress { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; gap: 4px; z-index: 3; }
.stage__seg { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.stage__seg i { display: block; height: 100%; width: 0; background: #fff; }
.stage__seg.is-done i { width: 100%; }
.stage__top { position: absolute; top: 24px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 3; font-size: 12px; font-weight: 700; }
.stage__top > span { padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); }
.stage__controls { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: #fff; cursor: pointer; }
.icon-btn:hover { background: rgba(0, 0, 0, 0.6); }
.icon-btn svg { width: 15px; height: 15px; }
.stage__tap { position: absolute; top: 66px; bottom: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; padding: 0; }
.stage__tap--prev { left: 0; width: 35%; }
.stage__tap--next { right: 0; width: 65%; }
.stage__tap:focus-visible { outline-offset: -4px; border-radius: var(--r-stage); }
.stage__notice { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; font-size: 15px; color: rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.4); z-index: 1; }
.stage__notice p { margin: 0 0 4px; }

.stage-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: calc((100svh - 190px) * 9 / 16); margin: 14px auto 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.stage-caption__nav { display: flex; gap: 8px; }

/* Story list */
.reel-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px 18px; }
.reel-list__head { margin: 8px 0; font-size: 14px; font-weight: 700; color: var(--ink-3); display: flex; justify-content: space-between; }
.reel-list ol { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 24px 46px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.row:hover .row__title { color: var(--green); }
.row__idx { font-size: 13px; font-weight: 700; color: var(--ink-4); }
.row.is-active .row__idx { color: var(--green); }
.row__thumb { width: 46px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: var(--tint); }
.row.is-active .row__thumb { outline: 2px solid var(--green); outline-offset: 2px; }
.row__title { font-size: 15px; font-weight: 700; margin: 0 0 2px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); }
.row__title::after { content: ""; position: absolute; inset: 0; }
.row__meta { margin: 0; font-size: 13px; color: var(--ink-3); }
.row__actions { position: relative; z-index: 1; }
.row__actions .text-btn { height: 36px; padding: 0 14px; font-size: 13px; }

.skeleton-row { height: 72px; border-top: 1px solid var(--line); animation: breathe 1.6s ease-in-out infinite; background: linear-gradient(var(--tint), var(--tint)) 38px 12px / 46px 48px no-repeat; }

/* Empty / error states */
.state { grid-column: 1 / -1; max-width: 600px; margin: 8px auto 0; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); text-align: center; }
.state .state__code { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 13px; font-weight: 700; }
.state h2 { font: 800 28px/1.15 var(--font); letter-spacing: -0.02em; margin: 0 0 10px; }
.state p { color: var(--ink-3); margin: 0 0 24px; font-size: 16px; }
.state__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.notice { padding: 24px 0; color: var(--ink-3); }

/* Watchlist */
.wl__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.wl__head .page-title { margin-bottom: 20px; }
.wl__add { max-width: 480px; margin: 0 0 28px; }
.wl { list-style: none; margin: 0; padding: 4px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.wl__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px 0; }
.wl__row + .wl__row { border-top: 1px solid var(--line); }
.wl__account { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.wl__avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); padding: 2px; display: grid; place-items: center; overflow: hidden; }
.wl__avatar.is-live { border-color: var(--green); }
.wl__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wl__avatar span { font-size: 17px; font-weight: 800; color: var(--ink-4); }
.wl__names { display: flex; flex-direction: column; min-width: 0; }
.wl__names b { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.wl__names small { color: var(--ink-3); font-size: 13px; }
.wl__account:hover b { color: var(--green); }
.wl__status { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.wl__status--live { color: var(--green); }
.wl__actions { display: flex; gap: 8px; }
.wl__actions form { margin: 0; }
.wl__actions .text-btn { height: 38px; padding: 0 14px; font-size: 13px; }
.wl__note { margin-top: 14px; color: var(--ink-4); font-size: 14px; }

/* Narrow screens */
@media (max-width: 860px) {
  .viewer__bar { flex-direction: column; align-items: stretch; }
  .viewer__tools { flex-direction: column; align-items: stretch; }
  .track .text-btn, .viewer__tools > .text-btn { width: 100%; }
  .search--compact { max-width: none; }
  .viewer__body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
  .stage__frame { max-height: 78svh; min-height: 0; width: 100%; max-width: calc(78svh * 9 / 16); }
  .stage-caption { max-width: calc(78svh * 9 / 16); }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .site-nav .nav-extra { display: none; }
  .site-nav { gap: 14px; white-space: nowrap; }
  .site-nav .nav-strong { padding: 7px 14px; }
  .hero { padding: 36px 0 32px; }
  .hero__lede { font-size: 17px; }
  .search__field { height: 58px; padding-left: 18px; }
  .search__field button { padding: 0 18px; font-size: 15px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 12px; }
  .account__name { font-size: 21px; }
  .wl__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .wl__status { grid-column: 1; grid-row: 2; }
  .wl__actions { grid-row: 1 / 3; grid-column: 2; flex-direction: column; }
  .wl__head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 420px) {
  .search__prefix { display: none; }
  .row { grid-template-columns: 20px 40px 1fr auto; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Plans */
.plan-pill { padding: 4px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 13px; font-weight: 800; }
.banner { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: var(--green-tint); color: var(--green-dark); font-weight: 600; }
.plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 22px; font-size: 15px; color: var(--ink-3); }
.plan-line a, .link-btn { color: var(--green); font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.pricing__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 800px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; }
.plan--pro { border: 2px solid var(--green); }
.plan h2 { margin: 0; font-size: 20px; font-weight: 800; }
.plan__price { margin: 6px 0 18px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.plan ul { margin: 0 0 24px; padding: 0; list-style: none; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-2); border-top: 1px solid var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.plan__cta { width: 100%; }
.plan form { margin: 0; }
.plan__note { margin: 0; color: var(--ink-4); font-size: 14px; min-height: 1em; }
.pricing__fine { text-align: center; color: var(--ink-4); font-size: 14px; margin-top: 24px; }
@media (max-width: 720px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Server-rendered text on account pages (read by search engines and people alike) */
.about-account { max-width: 720px; margin: 40px 0 0; color: var(--ink-3); font-size: 15px; }
.about-account h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--ink); }
.about-account p { margin: 0 0 10px; }
.about-account__owner a { color: var(--green); font-weight: 700; }


/* Ad slots: space is reserved up front so pages don't jump when an ad loads. */
.ad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 28px auto 0; max-width: 100%; overflow: hidden; }
.ad__label { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); }
.ad iframe { border: 0; display: block; max-width: 100%; }
.ad--wide { min-height: calc(90px + 20px); }
.ad--box { min-height: calc(250px + 20px); }
.ad--native { min-height: 120px; width: 100%; }
@media (max-width: 759px) { .ad--wide { min-height: calc(50px + 20px); } }

/* Ad-cookie consent. Until the visitor accepts (where it's required), ad spaces stay hidden. */
html[data-ads-consent="pending"] .ad, html[data-ads-consent="denied"] .ad { display: none; }
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 560px; margin: 0 auto; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-card);
  box-shadow: 0 8px 30px rgba(42, 38, 34, 0.12);
}
.consent h2 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.consent p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.consent p a { color: var(--green); font-weight: 700; }
.consent__actions { display: flex; gap: 10px; }
.consent__actions .text-btn { flex: 1; }

/* Legal pages */
.legal h3 { font-size: 17px; font-weight: 800; margin: 24px 0 8px; }
.legal a { color: var(--green); font-weight: 600; }
.legal code { font-size: 14px; background: var(--tint); padding: 1px 6px; border-radius: 6px; }
.legal__table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.legal__table th, .legal__table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal__table th { font-weight: 800; color: var(--ink); background: var(--tint); }
.legal__table tr:last-child td { border-bottom: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; }
@media (max-width: 720px) { .site-footer__links { justify-content: flex-start; } }
/* Phones: each cookie becomes a small labelled card instead of a squeezed table row. */
@media (max-width: 560px) {
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; }
  .legal__table thead { display: none; }
  .legal__table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .legal__table tr:last-child { border-bottom: 0; }
  .legal__table td { padding: 3px 0; border: 0; display: grid; grid-template-columns: 76px 1fr; gap: 12px; justify-items: start; }
  .legal__table td::before { content: attr(data-label); font-weight: 800; color: var(--ink); }
}

/* Guides, FAQ and contact */
.faq__more { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); }
.faq__more a, .eyebrow a { color: var(--green); font-weight: 700; }
.eyebrow a { text-decoration: none; }
.prose ol { padding-left: 1.3em; }
.prose ol li::marker { color: var(--green); font-weight: 800; }
.prose a { color: var(--green); font-weight: 600; }
.guide-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.guide-list__item a { display: block; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; transition: border-color .15s; }
.guide-list__item a:hover { border-color: var(--line-strong); }
.guide-list__item h2, .guide-list__item h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--ink); }
.guide-list__item p { margin: 0; color: var(--ink-3); }
.guide-cta { margin: 48px 0 0; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.guide-cta h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.guide-more { margin: 40px 0 0; }
.guide-more h2 { font-size: 15px; font-weight: 800; margin: 0 0 10px; color: var(--ink-3); }
.guide-more ul { margin: 0; padding-left: 1.1em; }
.guide-more li { margin-bottom: 8px; }
.guide-more a { color: var(--ink); font-weight: 600; }
.contact-email { font-size: 20px; font-weight: 800; }
.contact-email a { color: var(--green); }

/* Language menu in the footer */
.site-footer__langs { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; font-size: 14px; grid-column: 1 / -1; max-width: none !important; }
.site-footer__langs a { color: var(--ink-3); }
.site-footer__langs [aria-current] { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) { .site-footer__langs { justify-content: flex-start; } }
