/* The RAIN bookshop: built on editorial.css. Covers and type do the work; few boxes. */
.ed .st-top { padding-top: clamp(52px, 8vw, 104px); display: flex; justify-content: space-between; gap: 24px; align-items: end; flex-wrap: wrap; }
.st-top h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 760; font-stretch: 122%; letter-spacing: -.035em; line-height: .98; max-width: 13ch; }
.st-bag { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.st-bag i { font-style: normal; background: var(--gold); color: var(--ink); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: .82rem; padding: 0 6px; }
.ed .st-group { margin-top: 64px; }
.st-group h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: none; }
.st-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 44px 28px; margin-top: 26px; }
.st-item { color: var(--ink); }
.st-item > a { text-decoration: none; color: var(--ink); display: block; }
.st-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; box-shadow: -3px 0 0 rgba(0,0,0,.22) inset, 4px 8px 18px rgba(16,17,19,.22); border-radius: 2px 4px 4px 2px; transition: transform .35s var(--ease); }
.st-item.kit img { aspect-ratio: 4/3; border-radius: 8px; box-shadow: 0 8px 22px rgba(16,17,19,.16); }
.st-item > a:hover img { transform: translateY(-6px); }
.st-item b { display: block; margin-top: 14px; font-size: 1rem; line-height: 1.3; }
.st-item .from { display: block; color: var(--text-2); font-size: .9rem; margin-top: 4px; }
.st-item .links { display: flex; gap: 16px; margin-top: 8px; font-size: .9rem; flex-wrap: wrap; }
.st-free { display: inline-block; margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--ok, #1E7A45); }
.st-note { color: var(--text-2); max-width: 70ch; }
.st-sets { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gutter); margin-top: 26px; align-items: start; }
@media (max-width: 860px) { .st-sets { grid-template-columns: 1fr; } }
.st-pick { columns: 2; column-gap: 28px; margin: 16px 0 0; padding: 0; list-style: none; }
.st-pick li { break-inside: avoid; padding: 5px 0; }
.st-pick label { display: flex; gap: 10px; align-items: baseline; cursor: pointer; }
.st-pick input { accent-color: var(--ink); width: 17px; height: 17px; }
@media (max-width: 600px) { .st-pick { columns: 1; } }
.st-quick { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.st-quick button { background: none; border: 0; padding: 0 0 2px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; border-bottom: 2px solid var(--gold); }
.st-opts { display: grid; gap: 12px; margin-top: 22px; }
.st-opts .row { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; }
.st-opts label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.st-opts select, .st-opts input[type=number] { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.st-btn { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 13px 26px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.st-btn:hover { background: var(--ink-3); }
.st-btn.gold { background: var(--gold); color: var(--ink); }
.st-btn.gold:hover { background: var(--gold-hi); }
/* product */
.ed .sp { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: var(--gutter); padding-top: clamp(44px, 7vw, 90px); align-items: start; }
.sp .cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: -4px 0 0 rgba(0,0,0,.22) inset, 6px 12px 26px rgba(16,17,19,.28); border-radius: 2px 5px 5px 2px; }
.sp .gallery img { width: 100%; border-radius: 10px; display: block; }
.sp .thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sp .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.sp h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 760; font-stretch: 118%; letter-spacing: -.03em; line-height: 1; max-width: 18ch; }
.sp .code { color: var(--gold-text); font-weight: 700; margin-bottom: 10px; }
.sp .sub { font-size: 1.2rem; color: var(--text-2); margin-top: 12px; }
.fmt { display: grid; gap: 10px; margin-top: 24px; max-width: 560px; }
.fmt label { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.fmt label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.fmt input { accent-color: var(--ink); width: 18px; height: 18px; margin-top: 3px; }
.fmt b { display: block; }
.fmt small { color: var(--text-2); }
.fmt .pr { font-weight: 760; font-size: 1.1rem; white-space: nowrap; }
.buyrow { display: flex; gap: 14px; align-items: end; margin-top: 18px; flex-wrap: wrap; }
.buyrow label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.buyrow input { width: 110px; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.kit-items { margin-top: 18px; columns: 2; column-gap: 30px; padding-left: 18px; color: var(--text-2); }
.kit-items li { break-inside: avoid; padding: 2px 0; }
@media (max-width: 820px) { .ed .sp { grid-template-columns: 1fr; } .sp .cover { max-width: 260px; } .kit-items { columns: 1; } }
/* basket, checkout, order */
.ed .narrow2 { max-width: 980px; padding-top: clamp(44px, 7vw, 90px); }
.narrow2 h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 760; letter-spacing: -.03em; line-height: 1.02; }
.bl { width: 100%; border-collapse: collapse; margin-top: 26px; }
.bl td, .bl th { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.bl th { font-size: .82rem; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bl .num { text-align: right; white-space: nowrap; }
.bl img { width: 46px; border-radius: 2px 4px 4px 2px; display: block; }
.bl input[type=number] { width: 80px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.bl .rm { background: none; border: 0; color: var(--text-2); cursor: pointer; font: inherit; text-decoration: underline; }
.sum { margin-left: auto; max-width: 420px; margin-top: 18px; }
.sum div { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; }
.sum .tot { font-size: 1.25rem; font-weight: 760; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; }
.sum small { color: var(--text-2); }
.co { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gutter); margin-top: 26px; align-items: start; }
@media (max-width: 860px) { .co { grid-template-columns: 1fr; } }
.co .ed-form select, .co .ed-form textarea { font: inherit; }
.co .ed-form select { height: 44px; }
.radios { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 500; }
.radios label { display: flex !important; gap: 8px; align-items: center; font-weight: 500 !important; }
.side { position: sticky; top: 90px; background: var(--paper, #FBF8F0); border-radius: 18px; padding: 22px; }
.side .sum { max-width: none; margin: 0; }
.side ul { list-style: none; padding: 0; margin: 0 0 12px; font-size: .95rem; }
.side li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.errs { background: #FDF0EE; color: #8A2A1C; border-radius: 12px; padding: 12px 16px; margin-top: 18px; }
.steps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; color: var(--text-2); font-size: .92rem; }
.steps b { color: var(--ink); }
.codes { font-family: var(--mono, monospace); columns: 3; column-gap: 24px; margin-top: 10px; }
@media (max-width: 600px) { .codes { columns: 2; } }
