/* Explore by Giveaway Ninja — neo-brutalist design system.
   Tokens first, then layout, then components. Mobile first. Lime is background-only (contrast). */

/* Self-hosted Poppins (OFL, latin subset, ~8 KB per weight). System fonts render hard-edged on Windows.
   The fallback face is Arial scaled to Poppins' metrics, so the swap does not shift the layout (CLS). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); ascent-override: 92.33%; descent-override: 30.78%; line-gap-override: 8.79%; size-adjust: 113.73%; }

:root {
  --ink: #000;
  --paper: #f6f6f3;
  --card: #fff;
  --lime: #acff00;
  --lime-soft: #f0ffe0;
  --lime-pale: #f4ffd6;
  --muted: #666;
  --muted-2: #888;
  --line: #e6e6e2;
  --danger: #c0162c;
  --ok: #157a3a;
  --radius: 16px;
  --radius-s: 10px;
  /* Sprint 3: the offset is 2px everywhere (cards, boxes, buttons, toasts); hover lifts by one more pixel. */
  --shadow: 2px 2px 0 var(--ink);
  --shadow-s: 2px 2px 0 var(--ink);
  --shadow-hover: 3px 3px 0 var(--ink);
  --border: 2px solid var(--ink);
  --font: "Poppins", "Poppins Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
/* Focus rings (WCAG 2.4.7, 1.4.11): ink on light surfaces, white on the black header, lime on black toasts. Never lime on a
   light surface (about 1.1:1, invisible). Containers that clip their children (overflow hidden) ring as a whole instead. */
.nav :focus-visible { outline-color: #fff; }
.nav .nav__dd-menu :focus-visible { outline-color: var(--ink); }
.toast :focus-visible { outline-color: var(--lime); }
@media (forced-colors: active) { :focus-visible { outline-color: Highlight; } }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--lime); color: var(--ink); padding: 10px 14px; border: var(--border); border-radius: var(--radius-s); font-weight: 700; z-index: 100; }
.skip:focus { top: 10px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- nav ---------- */
.nav { background: var(--ink); color: #fff; }
.nav__in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: block; flex: 0 1 246px; min-width: 0; }
.brand__logo { width: 100%; height: auto; }
.nav__links { display: none; margin-left: auto; align-items: center; gap: 6px; list-style: none; padding: 0; }
.nav__links a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; padding: 8px 12px; border-radius: var(--radius-s); border: 2px solid transparent; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Sign in: white fill on the black bar, inverting to black on hover (no underline). */
.nav__links a.nav__signin { display: inline-flex; align-items: center; background: #fff; color: var(--ink); border-color: #fff; }
.nav__links a.nav__signin:hover, .nav__links a.nav__signin:focus-visible { text-decoration: none; background: var(--ink); color: #fff; border-color: #fff; }
.nav__signin .nav__icon { margin-right: 6px; }
.nav__links a.btn--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.nav__links a.btn--lime:hover { text-decoration: none; background: #c4ff4d; }
.nav__toggle { margin-left: auto; background: transparent; border: 2px solid #fff; color: #fff; border-radius: var(--radius-s); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.nav__icon { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-right: 6px; }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__menu { display: none; padding: 8px 0 16px; }
.nav__menu[data-open] { display: block; }
.nav__menu a { display: block; color: #fff; text-decoration: none; font-weight: 600; padding: 12px 4px; border-top: 1px solid #333; }
.nav__menu-label { display: block; color: var(--muted-2); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 16px 4px 4px; border-top: 1px solid #333; }
.nav__menu-sub { list-style: none; margin: 0; padding: 0; }
.nav__menu .nav__menu-sub a { display: flex; align-items: center; gap: 10px; border-top: 0; padding: 10px 4px; font-weight: 400; }
.nav__menu-sub svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav__end { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Resources dropdown (header, desktop): the free tools on giveaway.ninja, laid out like GN's menu in Explore's style. */
.nav__dd { position: relative; }
.nav__dd-toggle { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; color: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; padding: 8px 12px; border-radius: var(--radius-s); border: 2px solid transparent; }
.nav__dd-toggle::-webkit-details-marker { display: none; }
.nav__dd-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__dd[open] > .nav__dd-toggle { border-color: #fff; }
.nav__caret { width: 16px; height: 16px; transition: transform .15s ease; }
.nav__dd[open] .nav__caret { transform: rotate(180deg); }
.nav__dd-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; min-width: 330px; margin: 0; padding: 8px; list-style: none; display: grid; gap: 2px; background: var(--card); color: var(--ink); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav__links .nav__dd-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 0; border-radius: 12px; color: var(--ink); white-space: normal; }
.nav__links .nav__dd-item:hover, .nav__links .nav__dd-item:focus-visible { background: var(--lime-soft); text-decoration: none; }
.nav__dd-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--lime-pale); border: var(--border); }
.nav__dd-icon svg { width: 20px; height: 20px; }
.nav__dd-text { display: grid; gap: 2px; min-width: 0; }
.nav__dd-label { font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap; }
.nav__dd-label .arrow { width: 12px; height: 12px; vertical-align: 0; }
.nav__dd-desc { font-weight: 400; font-size: .8rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
/* Last slot: our own CTA, black like GN's featured item, with the lime icon tile. */
.nav__links .nav__dd-item--feature { margin-bottom: 6px; background: var(--ink); color: #fff; }
.nav__links .nav__dd-item--feature:hover, .nav__links .nav__dd-item--feature:focus-visible { background: #222; }
.nav__dd-item--feature .nav__dd-icon { background: var(--lime); border-color: var(--lime); }
.nav__dd-item--feature .nav__dd-icon svg { color: var(--ink); }
.nav__dd-item--feature .nav__dd-desc { color: #ccc; }
/* Desktop: logo | Explore · From Brands & Creators · Weekly | CTA, sign-in/avatar.
   Equal 1fr side columns keep the links centred on the bar; a side only grows past half when its content needs it. */
@media (min-width: 1020px) {
  .nav__in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { width: 246px; max-width: 100%; justify-self: start; }
  .nav__links { display: flex; margin: 0; }
  .nav__end { justify-self: end; margin-left: 0; }
  .nav__toggle, .nav__menu { display: none !important; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 28px 0 8px; }
.hero h1 { grid-column: 1; align-self: end; }
.hero p { grid-column: 1; align-self: start; font-size: clamp(1rem, 2.2vw, 1.25rem); color: #222; margin: 10px 0 0; }
.hero__mascot { grid-column: 2; grid-row: 1 / span 2; width: clamp(96px, 15vw, 150px); height: auto; }
/* Home page: the text sits on the page's center line, in line with the search and chips, and the mascot beside it.
   Phones have no room for the empty left column, so there the text centers in the space the mascot leaves. */
.hero--hub { grid-template-columns: minmax(0, 1fr) auto; text-align: center; }
/* Category pages (vertical, subcategory): heading and intro centred, like their filters. */
.hero--center { grid-template-columns: minmax(0, 1fr); text-align: center; }
.hero--center p { max-width: 70ch; justify-self: center; }
@media (min-width: 700px) {
  .hero--hub { grid-template-columns: 1fr auto 1fr; }
  .hero--hub h1, .hero--hub p { grid-column: 2; }
  .hero--hub .hero__mascot { grid-column: 3; justify-self: start; }
}
/* Home page band. Absolute with no top: it stays where it falls, right under the header, and spans the viewport
   from <main> without 100vw (which would add sideways scroll next to a scrollbar). The fixed height keeps the art at one
   scale, so narrower screens crop its sides instead of shrinking the branch and gift under the headline. */
.hub-bg { position: absolute; left: 0; right: 0; z-index: -1; width: 100%; max-width: none; height: 640px; object-fit: cover; object-position: center top; opacity: .3; }
.hl { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); padding: 0 .06em; }

/* ---------- search ---------- */
/* Same width on every list page (hub, category, collection, search), centered. */
.search { display: flex; max-width: 560px; margin: 20px auto 14px; border: var(--border); border-radius: var(--radius-s); background: #fff; overflow: hidden; }
.search__input { flex: 1; min-width: 0; border: 0; padding: 14px 14px 14px 44px; font-size: 1rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; }
.search__input:focus { outline: none; }
/* The box clips its children's rings, so the whole box shows focus (input or button). */
.search:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.search__btn { border: 0; border-left: var(--border); background: var(--ink); color: #fff; font-weight: 700; padding: 0 22px; cursor: pointer; }
.search__btn:hover { background: #222; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; list-style: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: #ebebe7; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .82rem; border: 2px solid transparent; min-height: 34px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; }
.chip:focus-visible { outline-offset: 1px; } /* the scrolling row clips anything past its 4px top padding */
.chip__n { font-size: .72rem; opacity: .7; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; margin: 0; padding-left: 0; padding-right: 0; } }
/* "safe": when the row overflows on a phone it starts at the left, so the first chips stay reachable by scrolling. */
.chips--hub { justify-content: safe center; }

/* ---------- list header + filters ---------- */
.listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.listhead h2 { font-size: 1.35rem; }
.listhead--center, .listhead--center .filters, .listhead--center .filters__panel { justify-content: center; }
/* Wider screens: three columns, so the platform buttons sit in the centre of the screen whatever the fact line or the sort take. */
.listhead__mid .filters__panel { justify-content: center; }
@media (min-width: 700px) {
  .listhead { display: grid; grid-template-columns: 1fr auto 1fr; }
  .listhead__start { grid-column: 1; justify-self: start; }
  .listhead__mid { grid-column: 2; justify-content: center; }
  .listhead__end { grid-column: 3; justify-self: end; }
}
@media (max-width: 699px) { .listhead__start { flex: 1 1 100%; } .listhead__mid { flex: 1 1 auto; } .listhead__end { margin-left: auto; } }
/* Sort: a dropdown with the up/down arrows in front, so it reads as sorting rather than filtering. */
.select--sort svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; }
.select.select--sort select { border: 0; padding-left: 36px; background-color: transparent; }
/* Breadcrumb row; on a category page Follow sits at its right end. */
.crumbrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.crumbrow__follow { margin-left: auto; padding-top: 14px; }
.crumbrow .btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.fact { color: #333; font-size: .95rem; margin: 0 0 6px; }
.fact strong { font-weight: 800; }
.updated { color: var(--muted); font-size: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; border: 2px solid #d8d8d3; border-radius: var(--radius-s); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; padding: 10px 34px 10px 12px; font-weight: 600; font-size: .9rem; min-height: 44px; cursor: pointer; }
.select select:hover { border-color: var(--ink); }
.filters__toggle { display: inline-flex; align-items: center; gap: 8px; border: var(--border); border-radius: var(--radius-s); background: #fff; padding: 10px 14px; font-weight: 700; min-height: 44px; cursor: pointer; }
.filters__toggle svg { width: 18px; height: 18px; }
.filters__panel { display: none; width: 100%; }
.filters__panel[data-open] { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 700px) { .filters__toggle { display: none; } .filters__panel { display: flex; gap: 8px; width: auto; } }

/* ---------- empty list ---------- */
.empty { max-width: 520px; margin: 0 auto 32px; text-align: center; }
/* The blossom picture (1254 square) has transparent margins around a 1134 x 904 cloud: 110% and the position fit the cloud
   to the box, and the mascot stands on the waves. The file is cached for a year: raise ?v when the picture changes,
   and measure the cloud again (the size, position and the mascot's place depend on it). */
.empty__scene { position: relative; aspect-ratio: 5 / 4; margin: 10px auto 0; background: url("../content/blossom-background.png?v=2") 55% 54% / 110% auto no-repeat; }
.empty__img { position: absolute; left: 50%; bottom: 10%; width: 34%; height: auto; transform: translateX(-50%); }
.empty h2 { white-space: pre-line; } /* the message breaks where the text has a line break */
.empty p { margin: 8px 0 0; }

/* ---------- grid + card ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 4px 0 24px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card:focus-within, .card:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-hover); transition: transform .12s, box-shadow .12s; }
/* Fixed picture box: the image is absolutely placed and cropped, so a tall picture can never stretch the card. */
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #e9e9e4; border-bottom: var(--border); }
@media (min-width: 560px) { .card__media { aspect-ratio: 4 / 3; } }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #444; }
.card__title { font-size: 1.1rem; font-weight: 800; margin: 2px 0 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__brand { color: #222; font-size: .95rem; }
.card__meta { color: #444; font-size: .9rem; margin-bottom: 10px; }
.card .btn { position: relative; z-index: 1; margin-top: auto; width: 100%; }
.badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: var(--border); font-weight: 700; font-size: .8rem; background: #fff; color: var(--ink); z-index: 1; }
.badge--gn { background: var(--lime); }
.badge svg { width: 14px; height: 14px; }
.badge--inline { position: static; }
/* Verified (2026-11-13): gold ground, black text, black seal with a gold tick; a gold shine sweeps across it twice when
   the page loads. The one place the no-gradients rule gives way. Black on this gold is over 9:1. */
.badge--verified { position: relative; top: auto; left: auto; overflow: hidden; gap: 5px; background: linear-gradient(100deg, #e3a817, #f5c842 40%, #ffe27a 60%, #f5c842 80%, #e3a817); color: var(--ink); isolation: isolate; }
.badge--verified svg { width: 17px; height: 17px; }
.badge--verified svg path:first-of-type { fill: var(--ink); }
.badge--verified svg path:last-of-type { stroke: #f5c842; }
.badge--verified .gold { color: var(--ink); }
.badge--verified::after { content: ""; position: absolute; inset: -2px; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.95) 48%, #fff7c2 52%, transparent 70%); transform: translateX(-120%); animation: gold-shine 1.1s ease-in-out .35s 2 both; pointer-events: none; }
.badge--verified svg { animation: seal-pop .5s ease .2s both; }
@keyframes gold-shine { to { transform: translateX(120%); } }
@keyframes seal-pop { 0% { transform: scale(.4) rotate(-30deg); } 70% { transform: scale(1.2) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
/* On the detail page's host row the badge sits at the right end. */
.host .badge--verified { margin-left: auto; flex: 0 0 auto; align-self: center; }
/* Featured: a corner ribbon across the top-right of the picture (cards and the detail page). The media box clips it. */
.ribbon { position: absolute; top: 22px; right: -38px; z-index: 1; width: 150px; padding: 5px 0; transform: rotate(45deg); background: var(--ink); color: var(--lime); border-block: 2px solid var(--lime); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-align: center; line-height: 1.2; pointer-events: none; }

/* locked teaser */
.card--locked .card__media { background: repeating-linear-gradient(135deg, #ededea 0 12px, #e4e4df 12px 24px); display: grid; place-items: center; }
.card--locked .card__media svg { width: 44px; height: 44px; }
.card--locked .card__title { filter: blur(4px); user-select: none; }
.card--locked .card__brand { filter: blur(4px); user-select: none; }
.card--locked .card__lock { font-size: .9rem; color: #333; margin-bottom: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-s); border: var(--border); font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; background: #fff; color: var(--ink); line-height: 1.1; }
.btn:hover { background: #f1f1ee; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #222; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #c4ff4d; }
.btn--sm { min-height: 38px; padding: 6px 12px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.arrow { display: inline-block; vertical-align: -2px; width: 14px; height: 14px; }
.btn__icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 28px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 2px solid #d8d8d3; background: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.pager [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager .is-disabled { opacity: .45; }

/* ---------- banner + panels ---------- */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: var(--lime-soft); border: 2px solid var(--lime); border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 24px; }
.banner__icon { width: auto; height: 36px; }
.banner h2 { font-size: 1.3rem; }
.banner p { margin: 0; color: #222; }
.banner .btn { margin-left: auto; }
.panel { background: var(--lime-pale); border: 2px solid var(--lime); border-radius: var(--radius); padding: 20px; }
.panel h3 { font-size: 1.15rem; margin-bottom: 6px; }
.panel h3 svg { display: inline-block; vertical-align: -3px; width: 20px; height: 20px; }
.panel p { color: #222; font-size: .95rem; }
.panel hr { border: 0; border-top: 2px solid #dff5a8; margin: 16px 0; }
.box { background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }

/* ---------- email capture ---------- */
.capture { display: grid; gap: 12px; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 24px 0; }
.capture h2 { font-size: 1.3rem; }
.capture p { margin: 0; color: #333; }
.capture form { display: flex; flex-wrap: wrap; gap: 8px; }
.input { flex: 1 1 220px; min-height: 44px; padding: 10px 14px; border: var(--border); border-radius: var(--radius-s); background: #fff; font-size: 1rem; }
.input:focus-visible { border-radius: var(--radius-s); } /* the global ring, keeping the field's own corners */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .92rem; }
.field .hint { color: var(--muted); font-size: .85rem; }
/* A field the server refused (FieldErrorTagHelper): red border, and the message under it with an icon, so colour is never the only cue. */
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: #7a0b1b; font-size: .88rem; font-weight: 600; }
.field__error svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.field textarea.input { min-height: 110px; resize: vertical; }
.field select.input { appearance: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; }
.msg { border: var(--border); border-radius: var(--radius-s); padding: 12px 14px; font-weight: 600; margin: 0 0 16px; background: var(--lime-soft); }
.msg--error { background: #ffe5e9; border-color: var(--danger); color: #7a0b1b; }
.msg--ok { background: var(--lime-soft); }
/* A notice with an info icon on the left, across the whole content width (Add a giveaway, the editor of a giveaway in review). */
.msg--info { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
.msg--info > svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }

/* ---------- detail page ---------- */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.detail { display: grid; gap: 22px; padding: 14px 0 20px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.3fr 1fr; gap: 32px; padding-top: 0; } .crumbs--spaced { padding-top: 0; margin: 20px 0; } nav + .hero, .crumbrow + .hero { padding-top: 0; } .crumbrow__follow { padding-top: 0; } }
.detail__media { position: relative; border: var(--border); border-radius: var(--radius); overflow: hidden; background: #e9e9e4; aspect-ratio: 1 / 1; }
/* The whole picture, never cropped: covers are 4:3 and Instagram posts are often 4:5, so filling the square cut their edges. */
.detail__media img { width: 100%; height: 100%; object-fit: contain; }
/* Gallery (2026-11-12): a listing with more than one picture. The strip fills the square, one slide per picture, and snaps. */
.gallery { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.gallery__slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery img { -webkit-user-drag: none; user-select: none; }
.gallery.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.gallery__count { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: .7rem; font-weight: 600; line-height: 1.6; pointer-events: none; }
.gallery__thumbs { list-style: none; display: flex; gap: 8px; margin: 10px 0 0; padding: 0; }
.gallery__thumbs a { display: block; width: 64px; height: 64px; border: 2px solid var(--ink); border-radius: var(--radius-s); overflow: hidden; background: #e9e9e4; opacity: .6; }
.gallery__thumbs a:hover, .gallery__thumbs a:focus-visible { opacity: 1; }
.gallery__thumbs a[aria-current="true"] { opacity: 1; box-shadow: var(--shadow); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .gallery { scroll-behavior: smooth; } }
.credit { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }
/* Sprint 7: our generated cover says so on the picture itself (cards and detail), and unclaimed listings say who vouched for what. */
.illus { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: .7rem; font-weight: 600; line-height: 1.6; pointer-events: none; }
.unclaimed { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.detail h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.15; margin: 6px 0 14px; }
.host { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; text-decoration: none; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: var(--border); display: grid; place-items: center; font-weight: 800; background: #ffd9a8; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav__me { position: relative; display: block; flex: 0 0 auto; margin-left: auto; text-decoration: none; border-radius: 50%; }
.avatar.nav__avatar { width: 40px; height: 40px; border-color: #fff; color: var(--ink); font-size: .9rem; }
.nav__me + .nav__toggle { margin-left: 0; }
/* Notification counter: new giveaways from what the user follows. Lime with an ink ring, readable on the black bar and on white. */
.count-badge { position: absolute; top: -6px; right: -8px; z-index: 2; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); font-size: .72rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; }
.nav__me .count-badge { box-shadow: 0 0 0 2px #fff; animation: badge-pulse 2.4s ease-in-out 2; }
/* A soft lime halo breathing around the avatar badge: noticeable on the black bar, never a blink. Off with reduced motion (rule at the top).
   Two breaths (4.8 s), then still: movement past 5 s would need a pause control (WCAG 2.2.2). */
@keyframes badge-pulse { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(172, 255, 0, 0); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(172, 255, 0, .45); } }
.count-badge--tab { position: static; margin-left: 2px; min-width: 20px; height: 20px; font-size: .68rem; }
.count-badge--chip { top: -9px; right: -9px; }
.avatar--lg { width: 96px; height: 96px; font-size: 1.8rem; }
.avatar-edit { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
/* Host row: "Hosted by <brand>". Follow, Save and Visit shop are under the CTA (.cta-links, 2026-11-13). */
.hostrow { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.hostrow .host { flex: 1 1 0; min-width: 0; margin: 0; }
.host__text { color: var(--muted); }
.host__text b { color: var(--ink); font-weight: 800; }
.host__text small { display: block; font-size: .85rem; }
/* A button or link that reads as an underlined text link; keeps the 44px touch target. */
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; cursor: pointer; }
.linkbtn:hover { text-decoration-thickness: 3px; }
.linkbtn[aria-pressed="true"] { font-weight: 800; }
.linkbtn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.linkbtn .arrow { width: 13px; height: 13px; }
/* Follow: heart + label, no underline; the heart fills once followed. */
.linkbtn--follow, .linkbtn--follow:hover { text-decoration: none; }
.linkbtn--follow:hover svg { transform: scale(1.1); }
.linkbtn--follow[aria-pressed="true"] svg { fill: currentColor; }
/* Follow / Save turned on (explore.js burst()): the icon pops and eight rays fly out of it. Rays start invisible, so
   with reduced motion (animations off) nothing shows. Save's rays are green to tell the two apart. */
.linkbtn--follow { position: relative; }
.linkbtn--follow.is-popping svg { animation: icon-pop .45s ease; }
.burst { position: absolute; left: 9px; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -1.5px; top: -4px; width: 3px; height: 8px; border-radius: 2px; background: var(--ink); opacity: 0; transform: rotate(var(--a)) translateY(-8px) scaleY(.4); animation: ray .6s ease-out forwards; }
.linkbtn--save .burst i { background: #3d7a00; }
.burst i:nth-child(even) { height: 6px; animation-delay: .05s; }
@keyframes icon-pop { 0% { transform: scale(1); } 35% { transform: scale(.75); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes ray { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-8px) scaleY(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-20px) scaleY(1); } }
/* Report: no underline; the flag waves on hover. */
.linkbtn--report, .linkbtn--report:hover { text-decoration: none; }
.linkbtn--report svg { transform-origin: 15% 90%; }
.linkbtn--report:hover svg, .linkbtn--report:focus-visible svg { animation: flag-wave .6s ease; }
@keyframes flag-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-4deg); } }
/* Visit shop: no underline; on hover the bag swings and the ↗ arrow nudges out (2026-11-13). */
.linkbtn--shop, .linkbtn--shop:hover { text-decoration: none; }
.linkbtn--shop svg { transition: transform .2s ease; transform-origin: 50% 20%; }
.linkbtn--shop:hover svg:not(.arrow), .linkbtn--shop:focus-visible svg:not(.arrow) { animation: shop-swing .5s ease; }
.linkbtn--shop:hover .arrow, .linkbtn--shop:focus-visible .arrow { transform: translate(2px, -2px); }
@keyframes shop-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 85% { transform: rotate(-3deg); } }
.linkbtn--quiet { font-weight: 500; font-size: .92rem; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lead { color: #222; margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--border); border-radius: var(--radius-s); overflow: hidden; margin-bottom: 16px; background: #fff; }
/* Each cell (2026-11-12): the label stays at the top, the value is centred both ways in the space under it, so the three
   cells line up whatever the length of the value. */
.facts > div { padding: 10px 12px 12px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.facts > div:last-child { border-right: 0; }
.facts dt { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 400; }
.facts dt svg { width: 16px; height: 16px; flex: 0 0 auto; }
.facts dd { margin: 0; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 26px; }
.facts dd small { color: var(--muted); font-size: .75rem; }
.facts b { font-size: .95rem; overflow-wrap: anywhere; }
.facts .status { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 14px; border-radius: 999px; line-height: 1; }
.facts .ok { color: var(--ok); background: #dcf5e3; }
.facts .ended { color: var(--danger); background: #ffe5e9; }
@media (max-width: 479px) { .facts > div { padding: 8px 6px 10px; } .facts b { font-size: .88rem; } }
/* Main action row: the outbound CTA, with Save (and Remind me when reminders are on) beside it. */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row > .btn { flex: 1 1 220px; }
.cta-row form { flex: 0 0 auto; display: flex; }
.cta-row .btn { min-height: 54px; padding: 12px 20px; font-size: 1.05rem; }
.cta-row form .btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
@media (min-width: 480px) { .cta-row form .btn { min-width: 128px; } }
.cta-note { color: var(--muted); font-size: .9rem; margin: 10px 0 0; text-align: center; }
/* Follow · Save · Visit shop under the giveaway button. */
.cta-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 24px; margin-top: 8px; }
.cta-links form { display: flex; }
.cta-links .linkbtn { white-space: nowrap; }
.panel__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.panel__kicker svg { width: 20px; height: 20px; flex: 0 0 auto; }
.panel__kicker b { color: #3d7a00; font-weight: 800; }
.detail .panel h3 { font-size: 1.3rem; }
.listing-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin-top: 18px; }
.section { margin: 10px 0 24px; }
.detail figure + .section { margin-top: 30px; }
.section h2 { margin-bottom: 8px; }
.prize-value { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; } /* looks like the h2 it replaced */
.section ol { padding-left: 22px; margin: 0; }
.section li { margin-bottom: 4px; }
.lastchecked { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.actions .btn svg, .listhead .btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.detail .panel { margin-top: 24px; }
.notice { background: #fff; border: var(--border); border-radius: var(--radius-s); padding: 12px 14px; font-weight: 600; margin: 0 0 16px; }
.notice--ended { background: #ffe5e9; border-color: var(--danger); }

/* related (horizontal cards) */
.rel { display: grid; gap: 14px; margin: 6px 0 18px; }
@media (min-width: 700px) { .rel { grid-template-columns: 1fr 1fr; } }
.relcard { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 14px; border: var(--border); border-radius: var(--radius); background: #fff; padding: 12px; align-items: center; }
.relcard img, .relcard .ph { width: 110px; height: 90px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.relcard b { display: block; font-size: 1.05rem; }
.relcard a::after { content: ""; position: absolute; inset: 0; }
.relcard .badge { position: static; margin-top: 8px; }
.more { display: flex; justify-content: flex-end; margin-bottom: 24px; }

/* ---------- brand page ---------- */
.bhead { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 20px 0 10px; }
.bhead .avatar { width: 72px; height: 72px; font-size: 1.6rem; }
.bhead h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.bhead__meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; }
.bhead__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tabs { display: flex; gap: 8px; border-bottom: var(--border); margin: 12px 0 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; text-decoration: none; border: var(--border); border-bottom: 0; border-radius: var(--radius-s) var(--radius-s) 0 0; background: #ebebe7; white-space: nowrap; }
.tabs a[aria-current="page"] { background: #fff; }
.tabs a:focus-visible { outline-offset: -5px; } /* inside the tab: the scrolling row clips a ring drawn outside */
/* "safe": on a phone the row overflows from the left, so the first tabs stay reachable by scrolling. */
.tabs--account { justify-content: safe center; margin: 0 0 20px; }
.tabs--account a { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.tabs--account a[aria-current="page"] { background: var(--ink); color: #fff; }
.tabs--account a[aria-current="page"]:focus-visible { outline-color: var(--lime); }
.tabs--account svg { width: 16px; height: 16px; flex: 0 0 auto; }
/* Each icon moves the way the real thing would, once per hover, pivoting where the object would hang or hinge.
   Percent origins map onto the 24-unit viewBox. The global reduced-motion rule switches all of this off. */
.tabs--account a:hover svg, .tabs--account a:focus-visible svg { animation-duration: .7s; animation-timing-function: cubic-bezier(.36, .07, .19, .97); animation-fill-mode: both; }
.tabs--account [data-tab="account"]:hover svg, .tabs--account [data-tab="account"]:focus-visible svg { animation-name: tab-nod; transform-origin: 50% 85%; }
.tabs--account [data-tab="reminders"]:hover svg, .tabs--account [data-tab="reminders"]:focus-visible svg { animation-name: tab-ring; transform-origin: 50% 12%; }
.tabs--account [data-tab="brands"]:hover svg, .tabs--account [data-tab="brands"]:focus-visible svg { animation-name: tab-beat; animation-duration: .9s; transform-origin: 50% 55%; }
.tabs--account [data-tab="categories"]:hover svg, .tabs--account [data-tab="categories"]:focus-visible svg { animation-name: tab-swing; animation-duration: .9s; transform-origin: 33% 33%; }
.tabs--account [data-tab="saved"]:hover svg, .tabs--account [data-tab="saved"]:focus-visible svg { animation-name: tab-tuck; animation-duration: .5s; transform-origin: 50% 0; }
.tabs--account [data-tab="mine"]:hover svg, .tabs--account [data-tab="mine"]:focus-visible svg { animation-name: tab-rattle; animation-duration: .6s; transform-origin: 50% 70%; }
@keyframes tab-nod { 0%, 100% { transform: none; } 30% { transform: rotate(-9deg); } 60% { transform: rotate(6deg); } }
@keyframes tab-ring { 0%, 100% { transform: none; } 15% { transform: rotate(16deg); } 35% { transform: rotate(-13deg); } 55% { transform: rotate(9deg); } 75% { transform: rotate(-5deg); } }
@keyframes tab-beat { 0%, 50%, 100% { transform: none; } 15% { transform: scale(1.28); } 30% { transform: scale(1.06); } 65% { transform: scale(1.22); } }
@keyframes tab-swing { 0%, 100% { transform: none; } 20% { transform: rotate(-22deg); } 50% { transform: rotate(14deg); } 75% { transform: rotate(-7deg); } }
@keyframes tab-rattle { 0%, 100% { transform: none; } 20% { transform: rotate(-12deg) translateY(-1px); } 40% { transform: rotate(10deg) translateY(-2px); } 60% { transform: rotate(-7deg) translateY(-1px); } 80% { transform: rotate(4deg); } }
@keyframes tab-tuck { 0% { transform: none; } 35% { transform: translateY(-4px) scaleY(.9); } 70% { transform: translateY(1.5px) scaleY(1.04); } 100% { transform: none; } }
.sr-only:focus-visible + .btn { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { margin: 20px 0 28px; }
.faq h2 { padding: 20px 0; } /* padding, not margin: a margin would collapse into the section's own and add nothing */
.faq details { border: var(--border); border-radius: var(--radius-s); background: #fff; margin-bottom: 8px; }
.faq summary { padding: 12px 14px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 14px 14px; color: #222; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 20px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: .9rem; color: #333; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; }
.foot small { display: block; width: 100%; color: var(--muted); font-size: .8rem; }

/* ---------- modal + sheet ---------- */
.modal { border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0; max-width: 460px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(0,0,0,.55); }
.modal__in { padding: 22px; }
.modal h2 { font-size: 1.3rem; margin-bottom: 6px; }
.modal__close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: var(--border); border-radius: 8px; background: #fff; font-weight: 800; cursor: pointer; }
.modal form { display: grid; gap: 8px; margin-top: 12px; }

/* ---------- account / simple pages ---------- */
.page { max-width: 720px; margin-top: 20px; margin-bottom: 30px; padding: 24px 0 40px; }
.page--wide { max-width: none; }
.page--center { margin-left: auto; margin-right: auto; }
.folds { display: grid; gap: 16px; }
.fold { padding: 0; }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin: -4px 4px 0 0; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
.fold[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.fold__title { font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
/* With JS (explore.js) each fold becomes a section with <h2><button aria-expanded>: a real heading, which a heading inside
   <summary> is not for every screen reader. Same look as the summary above. */
.fold .fold__head { margin: 0; font-size: 1.15rem; }
.fold__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 22px; border: 0; border-radius: var(--radius); background: none; color: inherit; font: inherit; font-weight: 800; line-height: 1.15; text-align: left; cursor: pointer; }
.fold__toggle::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin: -4px 4px 0 0; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
.fold__toggle[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
.fold__body { padding: 0 22px 22px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 30px; }
.page h1 > svg { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; margin-right: 10px; }
.page h2 { margin: 24px 0 8px; }
.page--wide h2 { margin-bottom: 20px; }
/* Text pages (About): more air around the section headers and between list items. */
.page--prose h2 { margin: 40px 0 16px; }
.page--prose .lead { font-size: 1.1rem; }
.page--prose ul:not([class]) { margin: 0 0 8px; }
.page--prose li { margin: 0 0 22px; padding-left: 6px; line-height: 1.65; }
.page--prose li:last-child { margin-bottom: 0; }
.page__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.page__head h1 { margin-bottom: 0; }
.badge--type { font-size: .72rem; letter-spacing: .08em; background: #fff; }
.badge--type-brand { background: var(--lime); }
/* "In review" (My Giveaways list and editor): orange pill with a pulsing orange dot. Dark orange text on pale orange passes AA. */
.preview-bar { margin-top: 16px; }
/* A team member signed in as this account (admin → Users → Sign in as this user). On every page of the session. */
.support-bar { background: #ffb020; border-bottom: 2px solid #000; font-weight: 600; font-size: .92rem; }
.support-bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 8px; }
.support-bar form { margin: 0; }
.status-review { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border: 2px solid #f07800; border-radius: 999px; background: #fff3e3; color: #a14b00; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status-review--sm { padding: 1px 8px; gap: 6px; font-size: .66rem; border-width: 1.5px; vertical-align: 1px; }
.status-review__dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #ff8a00; animation: review-pulse 1.6s ease-out 3; } /* three pulses (4.8 s), then still (WCAG 2.2.2) */
@keyframes review-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 0, .6); } 70% { box-shadow: 0 0 0 7px rgba(255, 138, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 0, 0); } }
.h-icon { display: inline-block; vertical-align: -4px; margin-right: 8px; }
/* Prose bullets only: styled lists (.list, .follows, ...) set their own spacing and stay flush left. */
.page ul:not([class]) { padding-left: 22px; }
/* Terms and Privacy: long bullets, so each one gets room under it (nested lists included). */
.page--legal li { margin-bottom: 10px; }
.page--legal li > ul { margin-top: 10px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: var(--border); border-radius: var(--radius-s); background: #fff; padding: 10px 14px; }
.list__item { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Status and button share one grid so they stay the same size and line up. */
.list__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 0 0 auto; }
.list__actions .btn { width: 100%; white-space: nowrap; }
/* My Giveaways: status pill, Preview and Edit side by side, as wide as they need. */
.list__actions--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.list__actions--row .btn { width: auto; }
.claim-status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: var(--border); border-radius: var(--radius-s); background: #fff; font-size: .88rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.claim-status--claiming { background: #ff9f1c; }
.claim-status svg { width: 16px; height: 16px; flex: 0 0 auto; }
@media (max-width: 640px) { .list__claim { flex-wrap: wrap; } .list__actions { width: 100%; } }
/* My Giveaways editor */
/* Columns are minmax(0, 1fr), not 1fr: a long <select> option or link must not widen one column past the other (or past
   the page, which made the full-width Pictures box above look narrower than the form). */
.editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.editor > .box { min-width: 0; }
.editor .input { width: 100%; min-width: 0; }
.editor .row { display: grid; gap: 12px; }
@media (min-width: 560px) { .editor .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.editor .field { margin-bottom: 0; }
.editor textarea.input { min-height: 90px; }
.editor__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.editor__media { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; width: 100%; margin-bottom: 18px; }
.editor__pictures { display: flex; flex-wrap: wrap; gap: 12px; }
.editor__picture { position: relative; display: grid; gap: 6px; margin: 0; width: 160px; }
.editor__picture figcaption { display: flex; flex-wrap: wrap; gap: 6px; }
.editor__picture .btn { min-height: 36px; padding: 6px 10px; font-size: .8rem; }
/* A box of the editor form that spans both columns (When and where). */
.editor__wide { grid-column: 1 / -1; }
.editor__upload { flex: 1 1 280px; min-width: 0; }
.editor__cover { width: 160px; height: 160px; object-fit: cover; border: var(--border); border-radius: 8px; flex: 0 0 auto; background: #e9e9e4; }
/* Add a giveaway: chosen pictures as square previews (explore.js, data-picks). The square matches the crop made on upload. */
.picks { display: grid; gap: 12px; justify-items: start; }
.picks__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; }
.picks__item { position: relative; display: grid; gap: 6px; }
.picks__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border: var(--border); border-radius: 8px; background: #e9e9e4; }
.picks__cover { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.picks__item .btn { justify-self: start; }
.editor__status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Sign-up: personal or brand */
.segmented { position: relative; display: flex; border: var(--border); border-radius: var(--radius-s); padding: 0; margin: 0; overflow: hidden; background: #fff; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; font-weight: 700; cursor: pointer; }
.segmented label + input + label { border-left: var(--border); }
.segmented input:checked + label { background: var(--ink); color: #fff; }
.segmented input:focus-visible + label { outline: 3px solid var(--lime); outline-offset: -3px; }
.segmented input:not(:checked):focus-visible + label { outline-color: var(--ink); } /* lime only shows on the black, checked button */
.segmented svg { width: 18px; height: 18px; }
/* List platform filter: attached buttons sized like the old dropdowns; labels wrap on narrow phones instead of overflowing. */
/* The fieldset carries no border; each button has its own and they overlap by the border width so they read as one strip. */
.segmented--sm { min-height: 44px; min-width: 0; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.segmented--sm label svg { width: 16px; height: 16px; flex: 0 0 auto; }
.segmented--sm label { flex: 0 1 auto; gap: 6px; padding: 8px 14px; font-size: .88rem; line-height: 1.15; text-align: center; border: var(--border); background: #fff; }
.segmented--sm label + input + label { margin-left: -2px; }
.segmented--sm label:first-of-type { border-radius: var(--radius-s) 0 0 var(--radius-s); }
.segmented--sm label:last-of-type { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.segmented--sm label:hover { background: var(--lime-soft); }
/* Apply (no-JS only) in the filter row: same height, padding and type as the platform buttons. */
.filters .btn--sm { min-height: 44px; padding: 8px 14px; font-size: .88rem; line-height: 1.15; }
.segmented--sm input:checked + label:hover { background: var(--ink); }
@media (max-width: 699px) { .filters__panel .segmented--sm { width: 100%; } .segmented--sm label { flex: 1 1 0; flex-direction: column; gap: 4px; padding: 8px 6px; font-size: .8rem; } }
/* Brand fields show only for the Brand choice. Without :has() support they stay visible, so nobody is locked out. */
@supports selector(:has(a)) {
  .signup__brand { display: none; }
  .signup:has(#type-brand:checked) .signup__brand { display: block; }
}
.list__thumb { width: 48px; height: 48px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; flex: 0 0 auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; }
.center { text-align: center; }
.page.center { margin-inline: auto; }
/* Sign in / Create account (/account/login, /account/signup): two attached tabs over the form, the current one black. */
/* My Giveaways while the brand account waits (or was rejected): room between the heading and the text. */
.box--status h3 { margin-bottom: 10px; }
.box--status p { margin: 0; }
.auth { max-width: 520px; }
.auth h1 { margin-bottom: 12px; }
.authtabs { display: flex; margin: 8px 0 16px; border: var(--border); border-radius: var(--radius-s); background: #fff; overflow: hidden; }
.authtabs a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.authtabs a + a { border-left: var(--border); }
.authtabs a:not([aria-current]):hover { background: var(--lime-soft); }
.authtabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.authtabs a:focus-visible { outline: 3px solid var(--ink); outline-offset: -5px; }
.authtabs a[aria-current="page"]:focus-visible { outline-color: var(--lime); }
.authtabs svg { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.auth__switch { margin: 14px 0 0; }
.page.center .list { padding-left: 0; }
.page.center .check { text-align: left; }
.page.center .capture form { justify-content: center; }
.tiny { font-size: .82rem; color: var(--muted); }
/* reCAPTCHA v2 checkbox (_Recaptcha): its own row in the form. Forms that show it on load keep its height so nothing jumps;
   the email boxes show it only once the visitor starts (empty slot = no space). 304 x 78, compact 158 x 138 on narrow phones. */
.recaptcha { flex: 1 1 100%; display: flex; justify-content: center; }
.recaptcha > div { margin-inline: auto; }
.recaptcha:empty { display: none; }
form[data-recaptcha-eager] .recaptcha { display: flex; min-height: 78px; }
.recaptcha__msg { flex: 1 1 100%; margin: 0; }
.stack > * + * { margin-top: 12px; }
.share { display: grid; gap: 12px; }
.share img, .share svg { border: var(--border); border-radius: var(--radius-s); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: 3px; border: var(--border); border-radius: var(--radius-s); padding: 10px 16px; display: inline-block; background: #fff; }
.tablewrap { overflow-x: auto; margin: 0 0 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat { border: var(--border); border-radius: var(--radius-s); background: #fff; padding: 12px 14px; }
.stat b { display: block; font-size: 1.6rem; }
.stat > svg { display: block; width: 28px; height: 28px; margin: 0 auto 6px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 20px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- for brands (/explore/for-brands) ---------- */
/* Hero (copy | account preview on a pale-lime oval), four benefit cards, then one row per situation:
   art | text | action, the action dropping under the text below 980px and everything stacking on phones. */
.fb { padding: 20px 0 40px; }
.fb-hero { position: relative; isolation: isolate; display: grid; gap: 20px; align-items: center; padding: 12px 0 4px; }
.fb-hero::before { content: ""; position: absolute; z-index: -1; right: 0; top: 4%; width: 78%; height: 92%; border-radius: 50%; background: var(--lime-pale); }
.fb-hero h1 { font-size: clamp(2rem, 5.6vw, 2.9rem); letter-spacing: -0.03em; margin: 0 0 14px; }
.fb-hero__lead { font-size: 1.08rem; color: #222; margin: 0 0 20px; max-width: 34em; }
.fb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.fb-hero__shot { margin: 0; }
.fb-hero__shot img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .fb-hero { grid-template-columns: 1.05fr 1fr; gap: 28px; }
  .fb-hero::before { width: 60%; }
}
.fb-perks { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .fb-perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .fb-perks { grid-template-columns: repeat(4, 1fr); } }
.fb-perk { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; color: #333; }
.fb-perk b { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.2; color: var(--ink); }
.fb-perk__icon { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--lime-soft); color: var(--ink); }
.fb-perk__icon svg { width: 28px; height: 28px; }
.fb-rows { display: grid; gap: 16px; scroll-margin-top: 90px; }
.fb-row { display: grid; gap: 12px 24px; align-items: center; padding: 20px; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.fb-row--lime { background: var(--lime-soft); }
.fb-row h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0 0 6px; }
.fb-row p { margin: 0; color: #222; }
.fb-row__art { display: flex; align-items: center; }
.fb-row__art svg { width: 88px; height: auto; }
.fb-row__art svg[width] { width: 44px; }
.fb-row__art img { width: 60px; height: 60px; }
.fb-link { text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fb-form { display: grid; gap: 8px; margin: 0; }
.fb-row__action .msg { margin: 0 0 8px; }
@media (min-width: 640px) {
  .fb-row { grid-template-columns: 120px 1fr; padding: 22px 26px; }
  .fb-row__art { justify-content: center; align-self: stretch; padding-right: 22px; border-right: 1px solid rgba(0, 0, 0, .18); }
  .fb-row:has(.fb-row__action) .fb-row__art { grid-row: span 2; }
  .fb-row__action { grid-column: 2; }
  .fb-row__art svg { width: 100px; }
  .fb-row__art svg[width] { width: 48px; }
  .fb-row__art img { width: 72px; height: 72px; }
}
@media (min-width: 980px) {
  .fb-row { grid-template-columns: 140px 1fr auto; }
  .fb-row:has(.fb-row__action) .fb-row__art { grid-row: auto; }
  .fb-row__action { grid-column: auto; justify-self: end; }
  .fb-form, .fb-row__action [data-capture-msg], .fb-row__action > .msg { width: 340px; }
  .fb-row__action .btn { white-space: nowrap; }
}

/* ---------- daily charts (My Giveaways) ---------- */
.charts { margin: 0 0 20px; }
.page--wide .charts h2, .charts h2 { font-size: 1.15rem; margin: 0 0 12px; }
.charts__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) { .charts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart { margin: 0; border: var(--border); border-radius: var(--radius-s); background: #fff; padding: 12px 14px; }
.chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 32px; font-weight: 700; }
.chart figcaption b { font-size: 1.6rem; font-weight: 800; }
.chart__plot { display: flex; gap: 8px; height: 120px; }
.chart__y { display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 34px; text-align: right; font-size: .72rem; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart__bars { position: relative; flex: 1; min-width: 0; display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--muted-2); }
.chart__bars::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.chart__col { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; }
.chart__bar { position: relative; display: block; width: 100%; max-width: 24px; min-height: 2px; background: var(--ink); border-radius: 4px 4px 0 0; }
.chart__col:hover .chart__bar, .chart__col.is-on .chart__bar { background: var(--lime); box-shadow: 0 0 0 1px var(--ink); }
.chart__tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 2; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .78rem; white-space: nowrap; pointer-events: none; }
.chart__col:hover .chart__tip, .chart__col.is-on .chart__tip { display: block; }
.chart__col:nth-child(-n+6) .chart__tip { left: 0; transform: none; }
.chart__col:nth-last-child(-n+6) .chart__tip { left: auto; right: 0; transform: none; }
.chart__x { display: flex; justify-content: space-between; margin: 6px 0 0 42px; font-size: .72rem; color: var(--muted); }
.charts__data { margin: 10px 0 6px; }
.charts__data summary { cursor: pointer; font-weight: 700; font-size: .9rem; padding: 6px 0; }
.charts__scroll { max-height: 280px; overflow: auto; }
.offline { padding: 80px 0; text-align: center; }

/* ---------- sprint 1 (2026-11-07) ---------- */
/* Centered callout: "Is <brand> your brand?" */
.panel--center { text-align: center; display: grid; justify-items: center; }
.panel--center p { max-width: 60ch; }
.panel--center .panel__kicker { justify-content: center; }

/* Brand management page: the breadcrumb sits close to the header and clear of the H1. */
.page--manage { margin-top: 0; padding-top: 4px; }
.page--manage .crumbs { padding-top: 0; margin: 0 0 22px; }

/* Page address + copy button in one field. */
.copyfield { display: flex; align-items: stretch; border: var(--border); border-radius: var(--radius-s); background: #fff; box-shadow: var(--shadow-s); overflow: hidden; margin: 0 0 24px; }
.copyfield__input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; font-weight: 600; background: transparent; text-overflow: ellipsis; }
.copyfield__input:focus { outline: none; }
.copyfield:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.copyfield__btn { flex: 0 0 auto; border: 0; border-left: var(--border); border-radius: 0; min-height: 48px; }
.copyfield__btn svg { width: 18px; height: 18px; }
.copyfield__btn.is-copied { background: var(--lime); color: var(--ink); }
@media (max-width: 420px) { .copyfield__btn [data-copy-text] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Account header: the person's avatar and name. */
.account-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.me { position: relative; display: inline-block; flex: 0 0 auto; }
.avatar--head { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar--sm { width: 32px; height: 32px; font-size: .8rem; }

/* Followed brands and categories as chips, each with its own counter. */
.follows { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.follow { position: relative; display: inline-flex; align-items: center; border: var(--border); border-radius: 999px; background: #fff; box-shadow: var(--shadow-s); }
.follow__chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; min-height: 44px; text-decoration: none; font-weight: 700; border-radius: 999px 0 0 999px; }
.follow__chip:has(.avatar) { padding-left: 6px; }
.follow__chip:hover .follow__name { text-decoration: underline; text-underline-offset: 3px; }
.follow form { display: flex; }
.follow__x { width: 36px; height: 36px; margin: 0 4px 0 2px; border: 0; border-radius: 50%; background: transparent; font-size: 1.25rem; font-weight: 700; line-height: 1; cursor: pointer; color: var(--muted); }
.follow__x:hover { background: #f1f1ee; color: var(--ink); }

/* My Giveaways: small statistic cards, icon left, text right. */
.stats--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0 14px; }
@media (min-width: 700px) { .stats--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.stat--row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; font-size: .9rem; }
.stat--row > svg { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; }
.stat--row b { display: inline; font-size: 1.15rem; margin-right: 2px; }

/* Notification switches: neo-brutalist toggles on real checkboxes (role="switch"), so the form and screen readers just work. */
.switches { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: var(--border); border-radius: var(--radius-s); background: #fff; cursor: pointer; }
.switch__text { display: grid; gap: 2px; }
.switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: 0 0 auto; width: 52px; height: 30px; border: var(--border); border-radius: 999px; background: #ebebe7; transition: background .15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; transition: transform .15s; }
.switch__input:checked + .switch__track { background: var(--lime); }
.switch__input:checked + .switch__track::after { transform: translateX(22px); background: var(--ink); }
.switch__input:focus-visible + .switch__track { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Saved giveaways that have ended. */
.list__ended .list__thumb { filter: grayscale(1); opacity: .6; }
.list__ended strong { color: #444; }
/* Account → Brands / Categories: new giveaways not opened yet, under the follow chips (sprint 3). The whole row opens the giveaway. */
.unread { margin-top: 26px; }
.unread h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.05rem; }
.unread__link { text-decoration: none; flex: 1; }
.unread__link:hover strong, .unread__link:focus-visible strong { text-decoration: underline; }
.pill-new { flex: 0 0 auto; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lime); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pill-ended { display: inline-block; vertical-align: 2px; padding: 1px 8px; border: 2px solid var(--danger); border-radius: 999px; background: #ffe5e9; color: #7a0b1b; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.check--terms a { font-weight: 700; }

/* Cookie consent (CookieConsent v3, theme only). "html #cc-main" outranks the library defaults on #cc-main, which load later. */
html #cc-main {
  --cc-font-family: var(--font);
  --cc-modal-border-radius: var(--radius);
  --cc-btn-border-radius: var(--radius-s);
  --cc-bg: #fff;
  --cc-primary-color: var(--ink);
  --cc-secondary-color: #333;
  --cc-link-color: var(--ink);
  --cc-btn-primary-bg: var(--ink);
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: var(--ink);
  --cc-btn-primary-hover-bg: #222;
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-primary-hover-border-color: var(--ink);
  --cc-btn-secondary-bg: #fff;
  --cc-btn-secondary-color: var(--ink);
  --cc-btn-secondary-border-color: var(--ink);
  --cc-btn-secondary-hover-bg: var(--lime);
  --cc-btn-secondary-hover-color: var(--ink);
  --cc-btn-secondary-hover-border-color: var(--ink);
  --cc-separator-border-color: var(--line);
  --cc-toggle-on-bg: var(--ink);
  --cc-toggle-off-bg: #8a8a84;
  --cc-toggle-on-knob-bg: var(--lime);
  --cc-toggle-off-knob-bg: #fff;
  --cc-toggle-readonly-bg: #d6d6d1;
  --cc-toggle-readonly-knob-bg: #fff;
  --cc-section-category-border: var(--line);
  --cc-cookie-category-block-bg: var(--paper);
  --cc-cookie-category-block-border: var(--ink);
  --cc-cookie-category-block-hover-bg: var(--lime-pale);
  --cc-cookie-category-block-hover-border: var(--ink);
  --cc-cookie-category-expanded-block-bg: #fff;
  --cc-cookie-category-expanded-block-hover-bg: var(--lime-pale);
  --cc-overlay-bg: rgba(0, 0, 0, .55);
  --cc-footer-bg: var(--paper);
  --cc-footer-color: #333;
  --cc-footer-border-color: var(--line);
  font-family: var(--font);
}
html #cc-main .cm, html #cc-main .pm { border: var(--border); box-shadow: var(--shadow); }
html #cc-main .cm__title, html #cc-main .pm__title { font-weight: 800; }
html #cc-main .cm__btn, html #cc-main .pm__btn { border-width: 2px; font-weight: 700; }
html #cc-main .cm__desc a, html #cc-main .pm__section-desc a { font-weight: 700; text-decoration: underline; }
html #cc-main .pm__badge { background: var(--lime); color: var(--ink); font-weight: 700; }
html #cc-main .cm__btn:focus-visible, html #cc-main .pm__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- toasts (save confirmations) ----------
   Without JS a .toast is an inline message where the server rendered it; explore.js moves it into .toasts.
   Phones: top of the screen (the cookie banner owns the bottom). Wider screens: bottom right. */
.toast { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 12px 14px; border: var(--border); border-radius: var(--radius-s); background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-s); }
.toast > svg { flex: 0 0 auto; width: 22px; height: 22px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.toast--error > svg { background: #ff8a99; }
.toast__text { flex: 1; min-width: 0; line-height: 1.35; }
.toast__text a { color: var(--lime); font-weight: 700; }
.toast__close { flex: 0 0 auto; width: 28px; height: 28px; margin: -3px -4px -3px 4px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.2rem; font-weight: 700; line-height: 1; cursor: pointer; }
.toast__close:hover { background: #333; }
.toast__close:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }
.toasts { position: fixed; z-index: 1000; left: var(--gutter); right: var(--gutter); top: calc(12px + env(safe-area-inset-top)); display: grid; gap: 8px; pointer-events: none; }
.toasts:empty { display: none; }
.toasts .toast { margin: 0; pointer-events: auto; box-shadow: var(--shadow); border-color: var(--ink); outline: 2px solid #fff; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
.toasts .toast.is-in { opacity: 1; transform: none; }
.toasts .toast.is-out { opacity: 0; transform: translateY(-8px); }
@media (min-width: 700px) {
  .toasts { left: auto; top: auto; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 48px)); }
  .toasts .toast, .toasts .toast.is-out { transform: translateY(8px); }
  .toasts .toast.is-in { transform: none; }
}

/* ----- Infinite scrolling (sprint 3): status row under the grid; the sentinel is an invisible trigger ----- */
.infinite { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 28px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.infinite[hidden] { display: none; }
.infinite__spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
.infinite__sentinel { height: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards appended by infinite scrolling fade in. */
.card.is-new { animation: card-in .35s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
