/* Prime Deals components. Uses only tokens from tokens.css.
   Names follow block__element--modifier. Catalogue: .claude/skills/ui-system/SKILL.md */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh);
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: var(--lh-tight); letter-spacing: var(--track-tight); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: var(--s2); top: -100px; z-index: 50;
  background: var(--btn); color: var(--on-btn); padding: var(--s2) var(--s3); border-radius: var(--radius); }
.skip-link:focus { top: var(--s2); }

/* Tabular figures only for aligned columns of numbers: in Schibsted they widen "," and ":" in prose. */
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--muted); }
.cap {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
/* Highlighter: only for "% off"/offer text and the wordmark */
.hl {
  background: linear-gradient(transparent 14%, var(--hi) 14%, var(--hi) 90%, transparent 90%);
  color: var(--on-hi); padding: 0 3px; font-weight: 700; white-space: nowrap;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: var(--s7); padding-bottom: var(--s9); }
.with-rail { display: flex; flex-wrap: wrap; gap: var(--s8); align-items: flex-start; }
.with-rail__main { flex: 999 1 600px; min-width: 0; }
.with-rail__rail { flex: 1 1 280px; max-width: 320px; display: flex; flex-direction: column; gap: var(--s7); }
.stack > * + * { margin-top: var(--s4); }
.section { margin-top: var(--s5); }
.section__label { margin: 0 0 var(--s2); display: flex; justify-content: space-between; gap: var(--s3); }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .page { padding-top: var(--s4); }
  .with-rail__rail { max-width: none; }
}

/* ---------- Utility bar + masthead ---------- */
.utility-bar { border-bottom: var(--hairline); font-size: 12px; color: var(--muted); }
.utility-bar__inner { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-top: var(--s2); padding-bottom: var(--s2); }

.masthead { padding-top: var(--s5); }
.masthead__row { display: flex; align-items: center; gap: var(--s7); flex-wrap: wrap; padding-bottom: 18px; }
.wordmark { text-decoration: none; font-weight: 800; font-size: 28px; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.masthead__actions { display: flex; align-items: center; gap: var(--s1); }
.masthead .masthead__search-toggle { display: none; }

.search { flex: 1 1 320px; display: flex; height: var(--tap); border: 1px solid var(--ink);
  border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.search__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; outline: none; }
.search__submit { border: 0; border-left: 1px solid var(--ink); background: transparent; font-weight: 700; padding: 0 18px; cursor: pointer; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }

.catnav { display: flex; gap: 22px; border-top: var(--rule-heavy); border-bottom: var(--hairline);
  overflow-x: auto; scrollbar-width: none; font-size: 14px; font-weight: 600; }
.catnav::-webkit-scrollbar { display: none; }
.catnav__link { flex: none; padding: 11px 0 10px; text-decoration: none; color: var(--muted); }
.catnav__link:hover { color: var(--ink); text-decoration: none; }
.catnav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--hi); }

@media (max-width: 640px) {
  .utility-bar { display: none; }
  .masthead { padding-top: 0; }
  .masthead__row { height: 56px; padding: 0; gap: var(--s1); flex-wrap: nowrap; }
  .wordmark { font-size: 22px; flex: 1; }
  .masthead .masthead__search-toggle { display: inline-flex; }
  .masthead .search { display: none; }
  .masthead.is-searching .search { display: flex; position: absolute; left: var(--gutter); right: var(--gutter); top: 6px; z-index: 5; }
  .masthead { position: relative; }
  .masthead .btn--alerts { height: 36px; padding: 0 12px; font-size: 14px; }
  .catnav { gap: var(--s5); }
  .btn--alerts .long { display: none; }
}
.btn--alerts .short { display: none; }
@media (max-width: 640px) { .btn--alerts .short { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: var(--tap); padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.btn--primary:hover { opacity: .88; }
.btn--quiet { border-color: var(--rule); background: var(--panel); font-weight: 600; }
.btn--sm { height: 34px; padding: 0 12px; font-size: var(--fs-sm); }
.btn--lg { height: 52px; padding: 0 40px; font-size: var(--fs-lg); font-weight: 800; }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: var(--tap); padding: 0; border: 0; }
.btn-link { border: 0; background: transparent; padding: 0; color: var(--muted); font-size: 12px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 28px; }
.btn-link:hover { color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* Segmented control (sort) */
.seg { display: inline-flex; border: var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--panel); font-size: var(--fs-sm); font-weight: 600; }
.seg__btn { border: 0; background: transparent; padding: var(--s2) var(--s3); cursor: pointer; text-decoration: none; }
.seg__btn + .seg__btn { border-left: var(--hairline); }
.seg__btn[aria-pressed="true"], .seg__btn[aria-current="true"] { background: var(--ink); color: var(--paper); }

/* Filter checkboxes */
.checks { display: flex; gap: var(--s5); flex-wrap: wrap; padding: var(--s3) 0; border-top: var(--hairline); font-size: 14px; }
@media (max-width: 640px) { .checks { gap: var(--s2) var(--s4); } }
.check { display: flex; align-items: center; gap: var(--s2); cursor: pointer; min-height: 28px; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }

/* ---------- Page heading ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-bottom: 14px; }
.page-head__title { font-size: var(--fs-3xl); font-weight: 800; }
.page-head__sub { margin-top: 6px; color: var(--muted); }
@media (max-width: 640px) { .page-head__title { font-size: var(--fs-2xl); } .page-head__sub { font-size: var(--fs-sm); } }

.disclosure-line { font-size: 12px; color: var(--muted); }
.paid-note { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Price ---------- */
.price { display: inline-flex; align-items: flex-start; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price__cur, .price__cents { font-size: .47em; margin-top: .1em; }
.price__cents { margin-left: 1px; }
.price--sm { font-size: 24px; }
.price--md { font-size: 30px; }
.price--lg { font-size: 46px; }
.price--xl { font-size: 64px; }
.price-meta { font-size: var(--fs-sm); color: var(--muted); }
.price-meta .hl { color: var(--on-hi); }
.price-asof { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Deal list (hairline rows) ---------- */
.deal-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: var(--hairline); border-radius: var(--radius-box); }
.deal-row {
  display: grid; gap: 4px 20px; align-items: center; padding: 16px 18px;
  grid-template-columns: 88px minmax(0, 1fr) 168px 150px;
  grid-template-areas: "img body price actions" "img body asof actions";
}
.deal-row + .deal-row { border-top: var(--hairline); }
.deal-row__img { grid-area: img; width: 88px; height: 88px; border-radius: var(--radius); background: var(--tile); overflow: hidden; display: grid; place-items: center; }
.deal-row__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.deal-row__body { grid-area: body; min-width: 0; }
.deal-row__cat { font-size: 12px; color: var(--muted); }
.deal-row__title { display: block; margin-top: 2px; font-weight: 600; font-size: 16px; line-height: 1.3; text-decoration: none; }
.deal-row__title:hover { text-decoration: underline; }
.deal-row__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mini-list__item a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 640px) { .deal-row__title { -webkit-line-clamp: 3; } }
.deal-row__how { margin-top: 6px; font-size: var(--fs-sm); font-weight: 600; }
.deal-row__price { grid-area: price; text-align: right; align-self: end; }
.deal-row__price .price-meta { margin-top: 6px; }
.deal-row__asof { grid-area: asof; text-align: right; align-self: start; }
.deal-row__actions { grid-area: actions; display: flex; flex-direction: column; gap: 4px; }
.deal-row--expired { opacity: .6; }

@media (max-width: 640px) {
  .deal-list { border-left: 0; border-right: 0; border-radius: 0; margin: 0 calc(var(--gutter) * -1); }
  .deal-row {
    padding: 14px 16px; gap: 6px 14px;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas: "img body body" "img price price" "asof asof actions";
  }
  .deal-row__img { width: 80px; height: 80px; align-self: start; }
  .deal-row__cat { display: none; }
  .deal-row__title { font-size: var(--fs-md); margin-top: 0; }
  .deal-row__how { order: 2; font-size: 12px; margin-top: 4px; }
  .deal-row__price { text-align: left; display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; align-self: start; }
  .deal-row__price .price { font-size: 24px; }
  .deal-row__price .price-meta { margin-top: 0; font-size: 12px; }
  .deal-row__asof { text-align: left; align-self: center; margin-top: 6px; }
  .deal-row__actions { flex-direction: row; justify-content: flex-end; align-items: center; margin-top: 6px; }
  .deal-row__actions .btn { height: 40px; padding: 0 16px; font-size: 14px; width: auto; }
  .deal-row__actions .btn-link { display: none; }
}

/* ---------- Rail boxes ---------- */
.box { background: var(--panel); border: var(--hairline); border-radius: var(--radius-box); padding: 18px; }
.box--ruled { border-top: 3px solid var(--ink); border-radius: 0 0 var(--radius-box) var(--radius-box); }
.box__title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.box__text { margin: 6px 0 14px; font-size: 14px; color: var(--muted); }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list__item { display: flex; gap: var(--s3); justify-content: space-between; padding: 10px 0; border-top: var(--hairline); font-size: 14px; }
.mini-list__item a { text-decoration: none; font-weight: 500; }
.mini-list__item a:hover { text-decoration: underline; }
.mini-list__price { font-weight: 700; flex: none; }

.note { font-size: var(--fs-sm); color: var(--muted); border-top: var(--hairline); padding-top: 14px; }

/* ---------- Deal page ---------- */
.crumbs { font-size: var(--fs-sm); color: var(--muted); }
.deal-hero { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s8); align-items: flex-start; }
.deal-hero__media { flex: 1 1 380px; max-width: 520px; aspect-ratio: 1 / 1; background: #fff; border: var(--hairline); border-radius: var(--radius-box); display: grid; place-items: center; overflow: hidden; }
.deal-hero__media img { width: 80%; height: 80%; object-fit: contain; }
.deal-hero__info { flex: 1 1 420px; min-width: 0; }
.deal-hero__meta { font-size: var(--fs-sm); color: var(--muted); }
.deal-hero__title { margin-top: var(--s2); font-size: var(--fs-3xl); font-weight: 800; }
.deal-hero__price { margin-top: var(--s5); display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.deal-hero__price .price-meta { padding-bottom: 8px; font-size: 16px; }
.deal-hero__asof { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--muted); }
.deal-hero__cta { margin-top: var(--s5); display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.deal-hero__tools { margin-top: 14px; display: flex; gap: var(--s5); }
.deal-hero__tools .btn-link { font-size: 14px; color: var(--ink); }

.steps { margin-top: var(--s5); border-top: var(--hairline); border-bottom: var(--hairline); padding: 14px 0; }
.steps ol { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: var(--s2); }
.steps li + li { margin-top: 4px; }
.steps li::before { content: counter(step); flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.code-copy { display: inline-flex; align-items: center; gap: var(--s2); border: 1px dashed var(--ink); border-radius: var(--radius); padding: 2px 4px 2px 10px; font-weight: 700; }

.deal-sections { margin-top: 48px; display: flex; flex-wrap: wrap; gap: var(--s8); align-items: flex-start; }
.deal-sections > section { flex: 1 1 340px; min-width: 0; }
.ruled-title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.02em; border-top: var(--rule-heavy); padding-top: 10px; }

@media (max-width: 640px) {
  .deal-hero { gap: var(--s4); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .deal-hero__media { max-width: none; aspect-ratio: auto; height: 248px; border-radius: 0; border-left: 0; border-right: 0; }
  .deal-hero__info { padding: 0 var(--gutter); }
  .deal-hero__title { font-size: 22px; font-weight: 700; }
  .deal-hero__price .price { font-size: 46px; }
  .deal-hero__cta .btn { width: 100%; }
  .deal-hero__tools .btn-link { flex: 1; height: var(--tap); border: var(--hairline); border-radius: var(--radius); background: var(--panel); text-decoration: none; font-weight: 600; }
  .ruled-title { font-size: var(--fs-lg); border-top: 0; padding-top: 0; }
  .deal-sections { margin-top: var(--s7); gap: var(--s7); }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: var(--s2) 14px; border-bottom: var(--hairline); }
.table td { padding: 11px 14px; border-top: var(--hairline); vertical-align: middle; }
.table--plain td { padding: 9px 0; }
.table .right { text-align: right; }
.table .nowrap { white-space: nowrap; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-sm); font-weight: 600; }
.field__hint { font-size: 12px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--panel); padding: 10px 12px; min-height: var(--tap);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px var(--focus); }
.field--error .input, .field--error .textarea { border-color: var(--bad); }
.field__error { font-size: 12px; color: var(--bad); }

/* ---------- Comments ---------- */
.comments { list-style: none; margin: 0; padding: 0; }
.comment { padding: var(--s3) 0; border-top: var(--hairline); }
.comment__meta { font-size: 12px; color: var(--muted); }
.comment__body { margin-top: 2px; font-size: 14px; white-space: pre-line; }

/* ---------- Status, notices, toasts ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot--ok { background: var(--ok); }
.dot--bad { background: var(--bad); }
.text-bad { color: var(--bad); }
.text-ok { color: var(--ok); }

.notice { border: var(--hairline); border-left-width: 1px; background: var(--panel); border-radius: var(--radius-box); padding: var(--s3) var(--s4); font-size: 14px; }
.notice--expired { border-color: var(--ink); }

.toast-region { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: var(--s2); pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 10px var(--s4); font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.18); pointer-events: auto; }
.toast--bad { background: var(--bad); color: #fff; }

.empty { padding: var(--s8) var(--s4); text-align: center; color: var(--muted); }

/* ---------- Drawer (quick view on the feed) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(17,18,19,.45); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); border-left: var(--hairline); overflow-y: auto; padding: var(--s6); }
.drawer__close { position: absolute; top: var(--s2); right: var(--s2); }
@media (max-width: 640px) { .drawer__panel { top: auto; height: 88vh; width: 100%; border-left: 0; border-top: var(--rule-heavy); padding: var(--s4); } }

/* ---------- Footer ---------- */
.site-footer { border-top: var(--rule-heavy); margin-top: var(--s9); padding: var(--s6) 0 var(--s8); font-size: var(--fs-sm); color: var(--muted); }
.site-footer__row { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.site-footer__row + .site-footer__row { margin-top: var(--s3); }
.site-footer nav { display: flex; gap: var(--s4); flex-wrap: wrap; }

/* ---------- Admin ---------- */
.admin-bar { background: var(--panel); border-bottom: var(--hairline); }
.admin-bar__inner { display: flex; align-items: center; gap: var(--s7); flex-wrap: wrap; min-height: 56px; }
.admin-bar .wordmark { font-size: 19px; }
.admin-bar__tag { font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--muted); }
.admin-nav { display: flex; gap: var(--s5); flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.admin-nav a { padding: 17px 0; text-decoration: none; color: var(--muted); }
.admin-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.admin-bar__status { margin-left: auto; font-size: var(--fs-sm); color: var(--muted); display: flex; align-items: center; gap: var(--s2); }
.stat-list { margin: 0; display: flex; gap: var(--s7); flex-wrap: wrap; }
.stat-list dd { margin: 2px 0 0; font-size: var(--fs-xl); font-weight: 800; }
.panel { background: var(--panel); border: var(--hairline); border-radius: var(--radius-box); }
.panel--ruled { border-top: 3px solid var(--ink); border-radius: 0 0 var(--radius-box) var(--radius-box); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 14px; }
.panel__title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.01em; }
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list > li { padding: var(--s3) 14px; display: flex; gap: 14px; align-items: center; }
.row-list > li + li { border-top: var(--hairline); }

/* ---------- Feed extras ---------- */
.deal-list__group { padding: 18px 18px 8px; background: var(--paper); border-top: var(--hairline); }
.deal-list__group:first-child { border-top: 0; border-radius: var(--radius-box) var(--radius-box) 0 0; padding-top: 12px; }
.deal-list__group + .deal-row { border-top: var(--hairline); }
.feed-more { margin-top: var(--s5); display: flex; justify-content: center; gap: var(--s3); flex-wrap: wrap; }
.only-mobile { display: none; }
.box__foot { margin-top: 10px; font-size: var(--fs-sm); text-align: center; }
.mini-list__off { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; }
.mini-list--media .mini-list__item a { display: flex; gap: var(--s3); align-items: center; font-weight: 600; }
.mini-list__img { flex: none; width: 52px; height: 52px; border-radius: var(--radius); background: #fff; border: var(--hairline); overflow: hidden; display: grid; place-items: center; }
.mini-list__img img { width: 100%; height: 100%; object-fit: contain; }
.section-note { margin: 4px 0 10px; font-size: var(--fs-sm); color: var(--muted); }
.steps__code { margin: 8px 0 4px; font-size: 14px; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.comment-form { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.comment-form .field { width: 100%; }
.empty { border-radius: var(--radius-box); }
.empty p + p { margin-top: 6px; }
.notice { margin: var(--s3) 0; }
.panel.empty { padding: var(--s8) var(--s4); }

@media (max-width: 640px) {
  .only-mobile { display: block; margin-bottom: var(--s2); }
  .deal-list__group { padding: 14px 16px 6px; }
  .deal-list__group:first-child { border-radius: 0; }
  .feed-more .btn { width: 100%; }
}

/* ---------- Bridge (/{slug}) ---------- */
.bridge { max-width: 520px; }
.bridge__card { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s3); }
.bridge__media { align-self: center; width: 200px; height: 200px; display: grid; place-items: center; }
.bridge__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bridge__title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.bridge__actions { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.bridge__more { font-size: var(--fs-sm); text-align: center; }

/* ---------- Alerts, disclosure, search page ---------- */
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); margin-top: var(--s2); }
.option-grid .box { display: flex; flex-direction: column; }
.option-grid .box__text { flex: 1; }
.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.btn-row .btn { flex: 1; }
.inline-form { display: flex; gap: var(--s2); flex-wrap: wrap; }
.inline-form .input { flex: 1 1 180px; }
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: var(--hairline); }
.link-grid li { border-bottom: var(--hairline); }
.link-grid a { display: block; padding: 12px 0; font-weight: 600; text-decoration: none; }
.link-grid a:hover { text-decoration: underline; }
.prose { max-width: 760px; }
.prose section { margin-top: var(--s7); }
.prose p, .prose ul { margin: 10px 0 0; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose h3 { margin-top: var(--s5); font-size: var(--fs-lg); letter-spacing: -0.01em; }
.search--page { margin: var(--s2) 0 var(--s5); max-width: 560px; }

/* ---------- Sticky buy bar (deal page, phones only) ---------- */
.buy-bar { display: none; }
@media (max-width: 640px) {
  .buy-bar {
    display: flex; align-items: center; gap: var(--s3); justify-content: space-between;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--panel); border-top: var(--rule-heavy);
  }
  .buy-bar__price { display: flex; flex-direction: column; gap: 2px; }
  .buy-bar__note { font-size: var(--fs-xs); color: var(--muted); }
  .has-buy-bar .site-footer { padding-bottom: 96px; }
  .has-buy-bar .toast-region { bottom: 84px; }
}
