/* KalosTCG - Ledger theme, page-specific layout. Requires tokens.css and
   components.css. Everything here is a layout concern for one page; shared
   vocabulary belongs in components.css.

   Two-column layouts all stack at 760px, per the design's responsive
   checklist, and every one of them uses flex-wrap with a flex-basis rather
   than a fixed grid so the stacking happens on its own. */

.k-section { max-width: var(--k-max); margin: 0 auto; padding-inline: var(--k-gutter); }
.k-section--pad { padding-block: 64px; }

/* A section head with a title block on the left and a link on the right,
   under a double rule - "This week's pulls", "More from the vault". */
.k-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 3px double var(--k-ink); padding-bottom: 14px; margin-bottom: 40px; }
.k-section-head__link { font-weight: 500; white-space: nowrap; }

.k-error { border: 1px solid var(--k-accent); background: var(--k-paper-band); padding: 16px 20px; margin: 0 0 24px; color: var(--k-ink-soft); }

/* ---- Home ---------------------------------------------------------- */

.k-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 64px; }
.k-hero__copy { display: flex; flex-direction: column; gap: 24px; flex: 2 1 520px; min-width: 0; }
.k-hero__lead { max-width: 560px; font-size: 22px; }
.k-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* The featured-card panel, with the decorative burst bleeding out behind
   it. The panel's own opaque background is what crops the burst to a ring
   of facets around the edges. */
.k-hero__card { position: relative; flex: 1 1 300px; max-width: 380px; }
/* Centred on the panel, not offset to one corner: the burst is a half-sun
   whose rays fan upward, so centring it is what makes them arc evenly over
   the panel's top edge instead of reading as stray spikes off one side.
   Widths are kept close to the panel's own so the overhang stays inside the
   hero's 56px column gap and never crowds the headline. */
.k-hero__burst { position: absolute; top: -92px; left: 50%; transform: translateX(-50%); width: 400px; opacity: .7; pointer-events: none; }
.k-hero__burst--ring { top: -132px; width: 520px; opacity: .25; }
.k-hero__panel { position: relative; }
.k-hero__panel-title { margin: 0 0 16px; font: 12px var(--k-font-mono); letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--k-rule); padding-bottom: 10px; }
.k-hero__panel-name { margin: 16px 0 0; font: 28px/1.1 var(--k-font-display); }
.k-hero__panel-name a { color: var(--k-ink); text-decoration: none; }
.k-hero__panel-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; font-family: var(--k-font-mono); }
.k-hero__panel-row span:first-child { font-size: 13px; color: var(--k-ink-muted); }
.k-hero__panel-row span:last-child { font-size: 20px; color: var(--k-accent); }

/* Three category tiles (I. Singles / II. Sealed / III. Sell to us) */
.k-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.k-tile { text-decoration: none; color: var(--k-ink); background: var(--k-paper-raised); border: 1px solid var(--k-ink); padding: 32px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.k-tile--dashed { border: 2px dashed var(--k-ink); }
.k-tile__num { font: 12px var(--k-font-mono); letter-spacing: .14em; color: var(--k-ink-muted); text-transform: uppercase; }
.k-tile__line { font: 30px/1.15 var(--k-font-display); }
.k-tile__cta { color: var(--k-accent); font-weight: 500; }

/* "Why buy direct" - three numbered columns */
.k-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.k-why__col { border-top: 1px solid var(--k-ink); padding-top: 20px; }
.k-why__col .k-numeral { font-size: 48px; }
.k-why__col h3 { margin: 12px 0 8px; font: 500 26px var(--k-font-display); }
.k-why__col p { margin: 0; color: var(--k-ink-soft); }

/* ---- Shop ---------------------------------------------------------- */

.k-filter { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 20px; }
.k-filter__q { flex: 3 1 280px; position: relative; }
.k-filter__sel { flex: 1 1 170px; }
.k-filter .k-input, .k-filter select { width: 100%; }
.k-filter__colors { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.k-filter__colors > span { margin-right: 8px; }
/* Search autocomplete, anchored to the search field. */
.k-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; background: var(--k-paper-raised); border: 1px solid var(--k-ink); border-top: 0; max-height: 300px; overflow-y: auto; }
.k-suggest[hidden] { display: none; }
.k-suggest a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; color: var(--k-ink); text-decoration: none; border-top: 1px solid var(--k-rule); min-height: var(--k-tap); align-items: center; }
.k-suggest a:first-child { border-top: 0; }
.k-suggest a:hover { background: var(--k-paper-band); }
.k-suggest__meta { font: 12px var(--k-font-mono); color: var(--k-ink-muted); white-space: nowrap; }

.k-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--k-rule); }
.k-results-bar__count { margin: 0; font: 13px var(--k-font-mono); color: var(--k-ink-soft); }
/* Grid / Price list switch - the two chips butt together into one control. */
.k-viewswitch { display: flex; }
.k-viewswitch .k-chip + .k-chip { border-left: 0; }

.k-shop-grid { padding-top: 24px; }
.k-shop-list { padding-top: 8px; }
.k-shop-list .k-ledger { min-width: 720px; }
.k-shop-list__name { font: 21px var(--k-font-display); }
.k-shop-list__name a { color: var(--k-ink); text-decoration: none; }
.k-shop-list__actions { text-align: right; white-space: nowrap; }
.k-shop-list__actions a { margin-left: 12px; font-size: 14px; }

.k-empty { color: var(--k-ink-muted); padding-block: 48px; }

/* ---- Product ------------------------------------------------------- */

.k-breadcrumb { font: 13px var(--k-font-mono); color: var(--k-ink-muted); display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; }
.k-breadcrumb [aria-current] { color: var(--k-ink); }

.k-product { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-block: 32px 64px; }
.k-product__frame { flex: 1 1 380px; max-width: 460px; padding: 20px; }
.k-product__caption { margin: 12px 0 0; font: 11px var(--k-font-mono); color: var(--k-ink-muted); text-align: center; }
.k-product__buy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
/* Same stack rhythm as its parent, so the pickers and Add-to-cart row read
   as part of one column even though they're wrapped in a <form>. */
.k-product__form { display: flex; flex-direction: column; gap: 24px; }
.k-product__h1 { font-size: 68px; margin-top: 10px; }
.k-product__price { margin: 14px 0 0; font: 34px var(--k-font-mono); color: var(--k-accent); }
.k-product__add { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.k-product__add .k-btn { flex: 1 1 220px; font-size: 16px; }
.k-product__stock { margin: 0; font: 13px var(--k-font-mono); color: var(--k-ink-soft); }
/* Set / Collector no. / Condition / Finish - a label-value ledger, so the
   row header is on the left and the value right-aligned. */
.k-detail { border-top: 3px double var(--k-ink); }
.k-detail table { width: 100%; border-collapse: collapse; font-size: 15px; }
.k-detail th { text-align: left; padding: 12px 0; font: 12px var(--k-font-mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--k-ink-soft); }
.k-detail td { padding: 12px 0; text-align: right; }
.k-detail tr { border-bottom: 1px solid var(--k-rule); }
.k-note--stack { flex-direction: column; align-items: flex-start; gap: 6px; }

/* ---- About --------------------------------------------------------- */

.k-about { display: flex; flex-wrap: wrap; gap: 56px; padding-block: 64px; }
.k-about__story { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font: 21px/1.6 var(--k-font-display); color: var(--k-ink-soft); }
.k-about__story h2 { margin: 0; font: 400 var(--k-size-h2-sm) var(--k-font-display); color: var(--k-ink); letter-spacing: -.02em; }
.k-about__story p { margin: 0; }
.k-about__panel { flex: 1 1 300px; max-width: 400px; align-self: flex-start; padding: 28px; }
.k-about__burst { display: flex; justify-content: center; margin-bottom: 16px; }
.k-about__burst svg { width: 140px; height: auto; }
.k-about__panel .k-detail { border-top: 0; }
.k-about__panel .k-detail tr { border-bottom: 0; border-top: 1px solid var(--k-rule); }

/* "How the vault works" - three columns inside a single ruled band */
.k-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--k-ink); border-bottom: 1px solid var(--k-ink); }
.k-steps > div { padding: 32px 28px; border-right: 1px solid var(--k-rule); }
.k-steps > div:last-child { border-right: 0; }
.k-steps h3 { margin: 12px 0 8px; font: 500 26px var(--k-font-display); }
.k-steps p { margin: 0; color: var(--k-ink-soft); }
.k-centered-actions { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---- Policy pages (shipping-returns, terms, privacy) --------------- */

.k-policy { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 48px 0; }
.k-toc { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--k-ink); padding-top: 14px; position: sticky; top: 24px; }
.k-toc p { margin: 0 0 6px; }
.k-toc a { color: var(--k-ink); min-height: 40px; display: flex; align-items: center; }
.k-policy__body { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.k-glance { padding: 24px 28px; }
.k-glance table { width: 100%; border-collapse: collapse; font-size: 16px; }
.k-glance th { text-align: left; padding: 14px 0; font: 12px var(--k-font-mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--k-ink-soft); vertical-align: top; white-space: nowrap; }
.k-glance td { padding: 14px 0 14px 24px; }
.k-glance tr { border-top: 1px solid var(--k-rule); }
.k-policy__body article { display: flex; flex-direction: column; gap: 14px; }
.k-policy__body article + article:not(.k-coupon) { border-top: 1px solid var(--k-rule); padding-top: 40px; }
.k-policy__body article h2 { margin: 0; font: 400 44px var(--k-font-display); letter-spacing: -.02em; }
.k-policy__body article p { margin: 0; font: 21px/1.6 var(--k-font-display); color: var(--k-ink-soft); }
.k-policy__body article p a { font-family: inherit; }
/* Must out-specify `.k-policy__body article` above, which sets
   flex-direction: column. A bare `.k-ask` loses that cascade, the row turns
   into a column, and the paragraph's `flex: 1 1 320px` basis then applies to
   HEIGHT - which is what blew this box up to ~440px tall. */
.k-policy__body article.k-ask { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px; }
.k-ask p { margin: 0; font: 26px/1.25 var(--k-font-display); flex: 1 1 320px; }

/* ---- Contact and Sell --------------------------------------------- */

.k-contact { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 56px 0; }
.k-contact__side { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.k-email-card { display: block; text-decoration: none; color: var(--k-ink); padding: 28px; }
.k-email-card span { display: block; }
.k-email-card__addr { margin-top: 8px; font: 30px/1.1 var(--k-font-display); color: var(--k-accent); word-break: break-word; }
.k-contact__before { border-top: 1px solid var(--k-ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--k-ink-soft); }
.k-contact__before p { margin: 0; }
.k-form { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 32px; }
.k-form__wide { grid-column: 1 / -1; }
.k-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
/* Allowed to shrink and wrap to a second line rather than shoving the
   submit button onto a row of its own - the reply-time note sits a few
   pixels off fitting beside it at the form's natural width. */
.k-form__foot p { flex: 1 1 260px; margin: 0; font-size: 14px; color: var(--k-ink-soft); }
.k-sent { flex: 2 1 520px; min-width: 0; padding: 48px 32px; text-align: center; }
.k-sent h2 { margin: 12px 0 0; font: 400 36px var(--k-font-display); }

/* ---- Sign in ------------------------------------------------------- */

.k-signin { display: flex; justify-content: center; padding-block: 80px 0; }
.k-signin__card { width: 100%; max-width: 560px; padding: 44px 40px; }
.k-signin__stack { display: flex; flex-direction: column; gap: 20px; }
.k-signin__card .k-h1 { font-size: 60px; }
.k-signin__card .k-lead { font-size: 19px; line-height: 1.55; }
.k-signin__form { display: flex; flex-direction: column; gap: 14px; border-top: 3px double var(--k-ink); padding-top: 22px; }
.k-signin__form .k-btn { font-size: 16px; }
.k-signin__status { display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.k-signin__status .k-h1 { font-size: 52px; }
.k-after-card { padding-block: 40px 0; text-align: center; color: var(--k-ink-soft); }
.k-after-card p { margin: 0; }

/* ---- Cart ---------------------------------------------------------- */

.k-cart { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 40px 0; }
.k-cart__lines { flex: 3 1 560px; min-width: 0; }
.k-cart__line { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--k-rule); }
.k-cart__thumb { width: 72px; aspect-ratio: 63 / 88; background: var(--k-paper-band); border: 1px solid var(--k-rule); flex: 0 0 auto; }
.k-cart__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-cart__detail { flex: 1 1 220px; min-width: 0; }
.k-cart__detail p { margin: 0; }
.k-cart__meta { font: 12px var(--k-font-mono); color: var(--k-ink-muted); }
.k-cart__name { margin-top: 2px !important; font: 24px/1.15 var(--k-font-display); }
.k-cart__name a { color: var(--k-ink); text-decoration: none; }
.k-cart__remove { font: 14px var(--k-font-body); background: none; border: 0; padding: 0; margin-top: 6px; min-height: 32px; color: var(--k-accent); text-decoration: underline; cursor: pointer; }
.k-cart__qty button { width: 44px; min-height: 44px; font-size: 18px; }
.k-cart__qty output { min-width: 40px; }
.k-cart__line-total { margin: 0; min-width: 90px; text-align: right; font: 18px var(--k-font-mono); color: var(--k-accent); }
.k-cart__keep { display: inline-flex; margin-top: 20px; font-weight: 500; }
.k-summary { flex: 1 1 320px; max-width: 420px; padding: 28px; }
.k-summary h2 { margin: 0 0 16px; font: 400 32px var(--k-font-display); }
.k-summary table { width: 100%; border-collapse: collapse; font-size: 15px; }
.k-summary th { text-align: left; padding: 12px 0; font-weight: 400; }
.k-summary td { padding: 12px 0; text-align: right; font-family: var(--k-font-mono); }
.k-summary tr { border-top: 1px solid var(--k-rule); }
.k-summary tr.k-summary__total { border-top: 3px double var(--k-ink); }
.k-summary__total th { padding: 14px 0; font: 500 22px var(--k-font-display); }
.k-summary__total td { padding: 14px 0; font-size: 22px; color: var(--k-accent); }
.k-summary .k-field { margin-top: 16px; }
.k-summary .k-btn { margin-top: 12px; font-size: 16px; }
.k-summary__policy { margin: 14px 0 0; font-size: 14px; color: var(--k-ink-soft); }
.k-cart-empty { padding-block: 72px 0; text-align: center; }
.k-cart-empty > div { display: inline-flex; flex-direction: column; align-items: center; gap: 18px; padding: 48px 56px; }
.k-cart-empty__head { margin: 0; font: 36px var(--k-font-display); }
.k-cart-empty p { margin: 0; }

/* ---- Account ------------------------------------------------------- */

.k-account { padding-block: 40px 0; }
.k-status { font: 12px var(--k-font-mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--k-ink); padding: 6px 10px; display: inline-block; white-space: nowrap; }
.k-status--shipped, .k-status--delivered { background: var(--k-ink); color: var(--k-paper); }
.k-status--refunded, .k-status--replaced { background: var(--k-paper-band); }
.k-order-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 32px; }
.k-order-foot .k-address { margin: 6px 0 0; color: var(--k-ink-soft); }
.k-totals { margin: 0; display: grid; grid-template-columns: auto auto; gap: 8px 32px; min-width: 240px; font-family: var(--k-font-mono); }
.k-totals dt { color: var(--k-ink-soft); }
.k-totals dd { margin: 0; text-align: right; }
.k-totals .k-grand { font-size: 20px; color: var(--k-accent); border-top: 3px double var(--k-ink); padding-top: 8px; }
.k-refund-panel { margin-top: 40px; }
/* display stays list-item. A <summary>'s disclosure triangle IS its
   ::marker, so switching it to flex (or anything but list-item) silently
   removes the only affordance saying the row opens. */
.k-refund-panel summary { cursor: pointer; display: list-item; list-style-position: inside; padding-block: 10px; min-height: var(--k-tap); font-weight: 500; }
.k-refund-panel .k-quoted { font-style: italic; color: var(--k-ink-soft); border-left: 2px solid var(--k-rule); padding-left: 14px; }
.k-hint { font-size: 14px; color: var(--k-ink-muted); margin: 0; }
.k-stack { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 760px) {
  /* Shadows read as clipped overflow once a panel is full-bleed on a phone,
     and the hero burst has nowhere to bleed into - drop both. */
  .k-panel--shadow, .k-panel--shadow-lg { box-shadow: none; }
  .k-hero__burst { display: none; }
  .k-product__frame, .k-about__panel, .k-summary, .k-contact__side, .k-toc { max-width: none; }
  .k-toc { position: static; }
  .k-hero, .k-product, .k-about, .k-policy, .k-contact, .k-cart { gap: 40px; }
  .k-product__h1 { font-size: 48px; }
  .k-policy__body article h2 { font-size: 34px; }
  .k-signin__card { padding: 32px 24px; }
  .k-signin__card .k-h1 { font-size: 44px; }
  .k-signin__status .k-h1 { font-size: 40px; }
  .k-cart-empty > div { padding: 36px 24px; display: flex; }
  .k-form { padding: 24px; }
  .k-steps > div { border-right: 0; border-bottom: 1px solid var(--k-rule); }
  .k-steps > div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  /* "At a glance" stacks label-over-value on a phone. The mono labels are
     white-space:nowrap, so "RETURNS WINDOW" alone holds a ~140px column and
     squeezes the value into ~150px of very ragged text - which the longer
     packaging and rates entries make worse, not better. */
  .k-glance table, .k-glance tbody, .k-glance tr, .k-glance th, .k-glance td { display: block; width: auto; }
  .k-glance th { white-space: normal; padding: 14px 0 2px; }
  .k-glance td { padding: 0 0 14px; }
}

@media (max-width: 420px) {
  .k-hero__panel-row { flex-direction: column; }
  .k-cart__line-total { text-align: left; }
  /* The shared grid is auto-fill minmax(170px, 1fr), which needs 360px of
     content box for two columns - a 390px phone has 342px after gutters, so
     it falls to one card per row and a page of 24 becomes a very long
     scroll. Two fixed columns with a tighter gap fit, and card art stays
     legible at ~155px wide. */
  .k-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .k-card { padding: 8px; }
  .k-card__name { font-size: 17px; }
}

/* ---- Messages (buyer side) ----------------------------------------- */
/* The visitor's half of the conversation feature. The seller's half is a
   separate UI in CardboardCounter; this is deliberately plainer - one
   thread at a time, no inbox pane, since a buyer has a handful of these
   and the seller has all of them. */

.k-threads { border-top: 1px solid var(--k-rule); }
.k-thread-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--k-rule); text-decoration: none; color: var(--k-ink); }
.k-thread-row:hover { background: var(--k-paper-raised); }
.k-thread-row__main { min-width: 0; }
.k-thread-row__subject { margin: 0; font: 500 21px/1.25 var(--k-font-display); }
.k-thread-row__meta { margin: 4px 0 0; font: 13px var(--k-font-mono); color: var(--k-ink-muted); }
.k-thread-row__when { font-size: 13px; color: var(--k-ink-muted); white-space: nowrap; }
.k-thread-dot { display: inline-block; width: 8px; height: 8px; background: var(--k-accent); margin-right: 8px; vertical-align: middle; }

.k-chat { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.k-chat__bubble { max-width: 76%; padding: 14px 18px; border: 1px solid var(--k-rule); background: var(--k-paper-raised); }
/* The shop speaks on the left, you speak on the right - and the shop's
   side is the one tinted, so a transcript scanned quickly reads as
   "their answer, my answer". */
.k-chat__bubble--seller { align-self: flex-start; background: var(--k-paper-band); border-color: var(--k-ink); }
.k-chat__bubble--visitor { align-self: flex-end; }
.k-chat__bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.k-chat__when { display: block; margin-top: 10px; font-size: 12px; color: var(--k-ink-muted); }
.k-chat__photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.k-chat__photos img { max-width: 180px; max-height: 180px; border: 1px solid var(--k-rule); display: block; }
.k-chat__reply { display: flex; flex-direction: column; gap: 16px; }
.k-chat__reply-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.k-chat__reply-row .k-btn { margin-left: auto; }

/* A file input can't be made to match .k-input's height, so it gets its
   own padding rather than being stretched into the wrong shape. */
input[type="file"].k-input { min-height: 0; font-size: 15px; }

@media (max-width: 560px) {
  .k-chat__bubble { max-width: 100%; }
  .k-chat__reply-row .k-btn { margin-left: 0; width: 100%; }
}

/* Buylist terms acceptance. A real checkbox beside its own label rather
   than a styled div - it has to be a genuine required form control,
   because its whole job is to be evidence that it was ticked. */
.k-terms-accept { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--k-ink-soft); cursor: pointer; }
.k-terms-accept input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--k-ink); }

/* ---- Reviews ------------------------------------------------------- */
/* The page a packing slip points at, so it has to read well cold: the
   score sits in the page header beside the H1, the write half comes next
   (that is what the visitor came to do), and the reviews run below it. */

.k-reviews { padding-block: 40px 0; display: flex; flex-direction: column; gap: 40px; }
.k-review-score { text-align: right; flex: 0 0 auto; }
.k-review-score__num { margin: 0; font: 400 56px/1 var(--k-font-display); color: var(--k-accent); letter-spacing: -.02em; }
.k-reviews__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.k-reviews__cta > div { flex: 1 1 360px; min-width: 0; }
.k-reviews__cta .k-btn { flex: 0 0 auto; }

/* .k-form's own `repeat(auto-fit, minmax(220px, 1fr))` is sized for the
   contact page, where the form sits in a flex column ~700px wide. Here it
   is a direct child of the 1200px section, so auto-fit lays out FIVE
   columns and squeezes the order picker until its own text is clipped.
   Two explicit columns and a reading-width cap instead. */
.k-review-form { max-width: 760px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-review-form select { width: 100%; }

/* The star row. Sized in em so a rating inherits the scale of whatever it
   sits in - 56px next to the average, body-size in a review's byline -
   without a modifier class per context. */
.k-stars { display: inline-flex; gap: 2px; line-height: 0; }
.k-stars svg { width: 1.05em; height: 1em; fill: var(--k-accent); }
/* Qualified, not a bare `.k-stars__s--off`: the rule above is a descendant
   selector and would out-specify it, leaving a 4-star review drawing five
   gold stars. Caught by eye, and it is the same trap as .k-ask above. */
.k-stars svg.k-stars__s--off { fill: var(--k-rule); }

/* Rating picker: a real radio group. The inputs are visually hidden but
   still focusable and still in the tab order, and the focus ring is drawn
   on the label next to them, so keyboard users can see where they are -
   the usual trick of display:none here would take the control off the
   keyboard entirely. */
.k-rating-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.k-rating-pick legend { padding: 0; }
.k-rating-pick__row { display: flex; gap: 6px; margin-top: 8px; }
.k-rating-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.k-rating-pick label { cursor: pointer; padding: 6px; display: inline-flex; min-height: var(--k-tap); align-items: center; }
.k-rating-pick svg { width: 34px; height: 32px; fill: var(--k-rule); }
.k-rating-pick label:hover svg { fill: var(--k-ink-muted); }
.k-rating-pick input:focus-visible + label { outline: 2px solid var(--k-accent); outline-offset: 2px; }
/* Fills every star up to and including the checked one. ~ only reaches
   FORWARD, so the markup is ordered 1..5 and the rule is written as "a
   checked input fills its own label", repeated by also filling the labels
   of the inputs BEFORE it - which is what :has() on the row does. */
.k-rating-pick input:checked + label svg { fill: var(--k-accent); }
.k-rating-pick__row:has(#rv-r2:checked) label[for="rv-r1"] svg,
.k-rating-pick__row:has(#rv-r3:checked) label[for="rv-r1"] svg,
.k-rating-pick__row:has(#rv-r3:checked) label[for="rv-r2"] svg,
.k-rating-pick__row:has(#rv-r4:checked) label[for="rv-r1"] svg,
.k-rating-pick__row:has(#rv-r4:checked) label[for="rv-r2"] svg,
.k-rating-pick__row:has(#rv-r4:checked) label[for="rv-r3"] svg,
.k-rating-pick__row:has(#rv-r5:checked) label[for="rv-r1"] svg,
.k-rating-pick__row:has(#rv-r5:checked) label[for="rv-r2"] svg,
.k-rating-pick__row:has(#rv-r5:checked) label[for="rv-r3"] svg,
.k-rating-pick__row:has(#rv-r5:checked) label[for="rv-r4"] svg { fill: var(--k-accent); }

.k-review-list { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--k-ink); }
.k-review { padding: 24px 0; border-bottom: 1px solid var(--k-rule); }
.k-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.k-review__meta { margin: 0; font-size: 13px; color: var(--k-ink-muted); }
.k-review__verified { color: var(--k-ink-soft); }
/* pre-line, so a reviewer's paragraph breaks survive without the body
   being rendered as HTML. */
.k-review__body { margin: 12px 0 0; font: 19px/1.6 var(--k-font-display); color: var(--k-ink-soft); white-space: pre-line; }

@media (max-width: 760px) {
  .k-review-score { text-align: left; }
  .k-review-score__num { font-size: 44px; }
  .k-reviews__cta .k-btn { width: 100%; }
}

@media (max-width: 560px) {
  .k-review-form { grid-template-columns: 1fr; }
}
