/* =====================================================================
   SWIN website — styles inherited from the AIA SWIN magazine:
   raspberry pill headings, salmon display type, forest-green body accents,
   cream cards with warm brown borders, rounded corners everywhere.
   Colours come from CSS variables set by the active theme (Theme::css()).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(rgba(var(--accent-rgb), .08) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
img { max-width: 100%; height: auto; }
a { color: var(--secondary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: 'Fredoka', 'Poppins', sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--primary); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: #6b6b6b; }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.inline { display: inline; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 0 0 12px 0; z-index: 1000; }
.skip:focus { left: 0; }

/* ---- Typography flourishes ---------------------------------------- */
.display { font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--accent); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; letter-spacing: .5px; }
.handwritten { font-family: 'Caveat', cursive; color: var(--secondary); font-size: 1.6rem; font-weight: 700; line-height: 1.1; margin: 0; }
.kicker { font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.green { color: var(--secondary); }
.pill {
  display: inline-block; background: var(--primary); color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 600;
  padding: .35em 1.1em; border-radius: 999px; font-size: 1.15rem; line-height: 1.3; box-shadow: 0 3px 0 rgba(0,0,0,.12);
}
.pill-green { background: var(--secondary); }
.pill-accent { background: var(--accent); }
.pill-gold { background: var(--highlight); color: #3b2a00; }
.pill-block { display: block; text-align: center; font-size: 1.4rem; border-radius: 22px; padding: .5em 1em; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2.2rem 0 1rem; }
.section-head h2 { margin: 0; }
.section-head .pill { font-size: 1.3rem; }
.section-head h1 .pill { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* ---- Header ---------------------------------------------------------- */
.announce { background: var(--highlight); color: #3b2a00; text-align: center; font-weight: 600; padding: 6px 12px; font-size: .95rem; }
.site-header { background: #fff; border-bottom: 3px solid var(--border); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #c9d1f0; background: #fff; }
.brand-kicker { display: block; font-size: .72rem; color: var(--secondary); font-weight: 600; }
.brand-title { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.25rem; color: var(--primary); font-weight: 600; line-height: 1.1; }
.brand-title strong { color: var(--accent); font-weight: 700; }
.nav-toggle { display: none; background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; text-decoration: none;
  color: var(--secondary); font-weight: 600; font-size: .92rem; background: transparent; border: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav-link.is-active { background: rgba(var(--primary-rgb), .1); color: var(--primary); }
.nav-group { position: relative; }
.nav-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--cream); border: 2.5px solid var(--border);
  border-radius: 16px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 60;
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.open .nav-menu { display: block; }
.nav-menu a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 500; }
.nav-menu a:hover { background: rgba(var(--primary-rgb), .1); color: var(--primary); }
.nav-user { display: flex; align-items: center; gap: 4px; margin-left: 8px; padding-left: 8px; border-left: 2px solid rgba(0,0,0,.08); }
.nav-profile img, .nav-profile .avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; }
.nav-team { background: var(--highlight); color: #3b2a00; }
.nav-team .count { background: var(--primary); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; }
.nav-logout { color: #777; font-weight: 500; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  body.nav-open .nav { display: flex; }
  .nav-menu { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
  .nav-group > button { display: none; }
  .nav-user { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 2px solid rgba(0,0,0,.08); flex-wrap: wrap; }
  .brand-title { font-size: 1.05rem; }
}

/* ---- Layout helpers -------------------------------------------------- */
main { padding: 24px 0 48px; min-height: 60vh; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cols-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 860px) { .cols-sidebar { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.mt { margin-top: 1.5rem; }
.mb { margin-bottom: 1.5rem; }

/* ---- Cards ----------------------------------------------------------- */
.card {
  background: var(--cream); border: 3px solid var(--border); border-radius: 20px; padding: 20px 22px;
  box-shadow: 0 4px 0 rgba(0,0,0,.08); position: relative;
}
.card-plain { background: #fff; }
.card-green { border-color: var(--secondary); }
.card-accent { border-color: var(--accent); }
.card-primary { border-color: var(--primary); }
.card-soft { border-width: 2px; border-style: dashed; box-shadow: none; }
.card > :last-child { margin-bottom: 0; }
.card-title { font-size: 1.25rem; margin-bottom: .35em; }
.card-title a { text-decoration: none; color: var(--primary); }
.card-title a:hover { text-decoration: underline; }
.card-img { width: calc(100% + 44px); margin: -20px -22px 14px; border-radius: 17px 17px 0 0; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-emoji { font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }
.ribbon { position: absolute; top: -12px; right: 16px; }
.quote-card { background: var(--cream); border: 3px solid var(--border); border-radius: 22px; padding: 22px 26px; text-align: center; font-weight: 600; font-size: 1.2rem; color: #4a3a2a; box-shadow: 6px 6px 0 var(--border); }
.quote-card .author { display: block; margin-top: .5em; font-size: 1rem; }

/* ---- Hero ----------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 20px 0 10px; }
.hero h1 { margin: 0; }
.hero .display { display: block; }
.hero-edition { display: block; }
.hero-side { display: grid; gap: 14px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.toc { columns: 1; }
.toc li { margin: 2px 0; color: var(--secondary); font-weight: 600; }
.toc a { text-decoration: none; }
.events-list { list-style: none; padding: 0; margin: 0; }
.events-list li { padding: 6px 0 6px 24px; position: relative; font-weight: 600; color: #4a3a2a; }
.events-list li::before { content: '•'; position: absolute; left: 6px; color: var(--primary); font-size: 1.3em; line-height: 1; }

/* ---- Buttons & forms ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; background: var(--primary); color: #fff; border: 0; cursor: pointer;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.05rem; padding: 10px 22px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 3px 0 rgba(0,0,0,.15); transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn-secondary { background: var(--secondary); }
.btn-accent { background: var(--accent); }
.btn-gold { background: var(--highlight); color: #3b2a00; }
.btn-ghost { background: transparent; color: var(--primary); border: 2.5px solid var(--primary); box-shadow: none; }
.btn-ghost:hover { background: rgba(var(--primary-rgb), .08); color: var(--primary); }
.btn-small { font-size: .9rem; padding: 7px 16px; }
.btn-danger { background: #b23a3a; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
label { display: block; font-weight: 600; margin-bottom: 4px; color: #4a3a2a; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=month], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 10px 14px; border: 2.5px solid var(--border); border-radius: 14px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(var(--primary-rgb), .35); border-color: var(--primary); }
textarea { min-height: 120px; resize: vertical; }
input[type=file] { width: 100%; }
input[type=color] { width: 64px; height: 40px; border: 2.5px solid var(--border); border-radius: 10px; padding: 2px; background: #fff; }
.field { margin-bottom: 16px; }
.field .help { font-size: .82rem; color: #777; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.chip input { margin: 0; }
.chip-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-green { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.chip-gold { background: var(--highlight); color: #3b2a00; border-color: var(--highlight); }
.chip-soft { background: rgba(var(--accent-rgb), .18); border-color: transparent; color: #7a3a2a; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #e8e8e8; color: #555; }
.badge-pending { background: #ffe9b3; color: #6b4b00; }
.badge-approved, .badge-published, .badge-fulfilled, .badge-chosen { background: #d7f0d9; color: #1d5d2a; }
.badge-rejected, .badge-cancelled, .badge-declined, .badge-hidden { background: #f6d2d2; color: #7a1f1f; }
.badge-draft, .badge-new, .badge-superseded { background: #e5e9ff; color: #2d3a8c; }
.badge-archived { background: #ddd; }

/* ---- Flash messages ------------------------------------------------- */
.flash { padding: 12px 18px; border-radius: 14px; margin-bottom: 16px; font-weight: 500; border: 2px solid; }
.flash-success { background: #e6f5e8; border-color: #8fcf9a; color: #1d5d2a; }
.flash-error { background: #fbe4e4; border-color: #e39a9a; color: #7a1f1f; }
.flash-info { background: #e9edff; border-color: #aab6f0; color: #2d3a8c; }

/* ---- Star rating ---------------------------------------------------- */
.stars { display: inline-flex; gap: 4px; font-size: 1.6rem; line-height: 1; }
.stars .on { color: var(--highlight); }
.stars .off { color: #d6d0c4; }
.star-form { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-form input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-form label { font-size: 2.2rem; color: #d6d0c4; cursor: pointer; margin: 0; transition: transform .1s; }
.star-form label:hover, .star-form label:hover ~ label, .star-form input:checked ~ label { color: var(--highlight); }
.star-form label:hover { transform: scale(1.15); }

/* ---- Tables --------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 2px solid var(--border); font-size: .92rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; vertical-align: top; }
.table th { background: rgba(var(--primary-rgb), .08); font-family: 'Fredoka', sans-serif; color: var(--primary); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---- Content pieces ------------------------------------------------- */
.rich h3, .rich h4 { color: var(--secondary); margin-top: 1.2em; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich blockquote { border-left: 4px solid var(--accent); margin: 1em 0; padding: .4em 1em; background: rgba(var(--accent-rgb), .1); border-radius: 0 12px 12px 0; }
.rich img { border-radius: 14px; }
.rich table { width: 100%; border-collapse: collapse; } .rich td, .rich th { border: 1px solid #ddd; padding: 6px 8px; }
.numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.numbered li { position: relative; padding: 8px 0 8px 48px; counter-increment: n; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: 'Fredoka', sans-serif; font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 4px 0 4px 28px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 4px; color: var(--secondary); font-weight: 700; }
.hadith { font-size: 1.15rem; font-style: italic; color: #3b2a1a; }
.hadith-source { font-style: normal; font-weight: 600; color: var(--secondary); }
.banner { color: #fff; padding: 18px 24px; border-radius: 18px 18px 0 0; }
.banner h2, .banner h3 { color: #fff; margin: 0; }
.banner .kicker { color: rgba(255,255,255,.85); }
.cover { border: 3px solid var(--border); border-radius: 14px; box-shadow: 6px 6px 0 var(--border); background: #fff; }
.avatar-lg { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); background: #fff; }
.avatar-fallback { display: grid; place-items: center; font-family: 'Fredoka', sans-serif; font-size: 2.5rem; color: #fff; background: var(--accent); }
.house { text-align: center; padding: 18px; border-radius: 18px; border: 3px solid; background: #fff; }
.house .num { font-family: 'Fredoka', sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.house-temperance { border-color: #f2b544; color: #8a5a00; }
.house-justice { border-color: #3a66c4; color: #1e3f8a; }
.house-courage { border-color: #d64545; color: #8a1e1e; }
.house-wisdom { border-color: #3f8a3a; color: #1e5d1e; }
.bar { height: 14px; background: #eee; border-radius: 999px; overflow: hidden; border: 1px solid #ddd; }
.bar > span { display: block; height: 100%; background: var(--secondary); border-radius: 999px; }
.points-big { font-family: 'Fredoka', sans-serif; font-size: 3.4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.pdf-frame { width: 100%; height: 80vh; border: 3px solid var(--border); border-radius: 14px; background: #fff; }
.login-box { max-width: 520px; margin: 30px auto; text-align: center; }
.google-btn { background: #fff; color: #333; border: 2.5px solid var(--border); box-shadow: 0 3px 0 var(--border); font-family: 'Poppins', sans-serif; }
.google-btn:hover { color: #333; background: #f7f7f7; }
.empty { text-align: center; padding: 40px 20px; color: #777; }
.empty .big { font-size: 3rem; }

/* ---- Quiz ------------------------------------------------------------ */
.question { margin-bottom: 18px; }
.question .q { font-weight: 600; margin-bottom: 8px; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border: 2px solid #e4ddd0; border-radius: 12px; background: #fff; margin-bottom: 6px; cursor: pointer; font-weight: 500; }
.option:hover { border-color: var(--accent); }
.option input { margin-top: 5px; }
.option.correct { border-color: var(--secondary); background: #eaf7ec; }
.option.wrong { border-color: #d64545; background: #fbe4e4; }
.result-band { font-size: 1.3rem; font-family: 'Fredoka', sans-serif; color: var(--secondary); }

/* ---- Games ----------------------------------------------------------- */
.game { min-height: 300px; }
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; margin: 0 auto; }
.mcard { aspect-ratio: 1; border-radius: 14px; border: 3px solid var(--border); background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; font-weight: 600; font-size: .85rem; padding: 6px; text-align: center; user-select: none; transition: transform .2s; }
.mcard.flipped { background: #fff; color: var(--text); }
.mcard.matched { background: #eaf7ec; border-color: var(--secondary); color: var(--secondary); cursor: default; }
.breath { width: 180px; height: 180px; border-radius: 50%; margin: 20px auto; background: radial-gradient(circle, rgba(var(--accent-rgb), .9), rgba(var(--primary-rgb), .9)); display: grid; place-items: center; color: #fff; font-family: 'Fredoka', sans-serif; font-size: 1.3rem; transition: transform 4s ease-in-out; box-shadow: 0 0 0 12px rgba(var(--accent-rgb), .2); }
.breath.in { transform: scale(1.5); }
.garden { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 90px; font-size: 2rem; }
.mood-btn { font-size: 1.8rem; background: #fff; border: 2.5px solid var(--border); border-radius: 14px; padding: 8px 14px; cursor: pointer; }
.mood-btn:hover, .mood-btn.on { border-color: var(--primary); background: rgba(var(--primary-rgb), .08); }
.sanctuary { position: relative; min-height: 320px; border-radius: 22px; overflow: hidden; border: 3px solid var(--border); background: linear-gradient(#bfe3ff 0 45%, #9fd38a 45% 70%, #6fb6e8 70% 100%); }
.sanctuary .capy { position: absolute; font-size: 2.2rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.sanctuary .sun { position: absolute; top: 14px; right: 24px; font-size: 3rem; }
.sanctuary .plant { position: absolute; font-size: 2rem; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { margin-top: 30px; background: #fff; border-top: 3px solid var(--border); }
.deco-strip { line-height: 0; overflow: hidden; background: linear-gradient(to bottom, var(--bg), #fff); }
.meadow { width: 100%; height: 90px; display: block; }
.emoji-strip { display: flex; justify-content: space-around; font-size: 1.6rem; padding: 12px 0; line-height: 1; overflow: hidden; white-space: nowrap; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 24px 0 30px; font-size: .92rem; }
.footer-logo { width: 56px; float: left; margin-right: 12px; }

/* ---- Admin ----------------------------------------------------------- */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-nav { background: var(--cream); border: 3px solid var(--border); border-radius: 18px; padding: 12px; position: sticky; top: 100px; }
.admin-nav h4 { margin: 10px 8px 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--secondary); }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .92rem; font-weight: 500; }
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(var(--primary-rgb), .1); color: var(--primary); }
.admin-nav .count { background: var(--primary); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; }
.stat { background: #fff; border: 2.5px solid var(--border); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--text); display: block; }
.stat .num { font-family: 'Fredoka', sans-serif; font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat:hover { border-color: var(--primary); }
.diff { background: #fff8e6; border: 2px dashed #e0c070; border-radius: 12px; padding: 8px 12px; font-size: .85rem; margin-top: 6px; }
.diff del { background: #fbe4e4; text-decoration: line-through; color: #7a1f1f; }
.diff ins { background: #e6f5e8; text-decoration: none; color: #1d5d2a; }
.qb-question { background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.qb-option { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.qb-option input[type=text] { padding: 6px 10px; }
.qb-option input[type=number] { width: 80px; padding: 6px; }
.qb-band { display: grid; grid-template-columns: 80px 80px 1fr 2fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.qb-band input { padding: 6px 10px; }
.icon-btn { background: transparent; border: 0; cursor: pointer; font-size: 1.1rem; }
.preview-img { max-height: 140px; border-radius: 10px; border: 2px solid var(--border); display: block; margin-bottom: 6px; }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.2); vertical-align: middle; }

@media print { .site-header, .site-footer, .nav-toggle { display: none; } }
