/* Cheap Mattress Sale — "Midnight sleep". Indigo night bands, moonlight lavender, warm amber calls to action, white product areas. */
@font-face { font-family: "Urbanist"; src: url("../fonts/Urbanist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/Mulish.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/Mulish-Italic.woff2") format("woff2"); font-weight: 200 1000; font-style: italic; font-display: swap; }

:root {
  --night: #1B1F4B;
  --night-2: #262B66;
  --night-3: #323880;
  --lav: #B9B4F0;
  --lav-mid: #DAD6FA;
  --lav-soft: #F1EFFD;
  --amber: #FFB347;
  --amber-deep: #F29A2E;
  --ink: #1E2147;
  --text: #2C2F52;
  --muted: #5A5E80;
  --line: #E3E0F5;
  --paper: #FFFFFF;
  --moonlight: #F4F3FF;
  --link: #3A3D99;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(27, 31, 75, .06), 0 8px 24px rgba(27, 31, 75, .07);
  --head: "Urbanist", "Segoe UI", system-ui, sans-serif;
  --body: "Mulish", "Segoe UI", system-ui, sans-serif;
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160'%3E%3Cg fill='%23B9B4F0'%3E%3Ccircle cx='12' cy='18' r='1.1' opacity='.7'/%3E%3Ccircle cx='70' cy='60' r='.8' opacity='.5'/%3E%3Ccircle cx='140' cy='22' r='1.3' opacity='.6'/%3E%3Ccircle cx='190' cy='96' r='.9' opacity='.5'/%3E%3Ccircle cx='40' cy='120' r='1' opacity='.45'/%3E%3Ccircle cx='110' cy='140' r='.7' opacity='.5'/%3E%3C/g%3E%3Ccircle cx='166' cy='58' r='1.2' fill='%23FFB347' opacity='.55'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--night-3); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible, .site-head :focus-visible, .site-foot :focus-visible { outline-color: var(--amber); }
code { font-size: .9em; background: var(--lav-soft); padding: .05em .35em; border-radius: 5px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--night); padding: 10px 16px; border-radius: 0 0 12px 12px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 0; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .55em 1.35em; border-radius: 999px; border: 2px solid transparent; font: 800 1rem/1.2 var(--head); letter-spacing: .01em; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s, color .15s; }
.btn-amber, a.btn-amber, .night a.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: var(--amber-deep); }
.btn-ghost { background: transparent; color: var(--night); border-color: var(--night); }
.btn-ghost:hover { background: var(--lav-soft); }
.night .btn-ghost { color: var(--moonlight); border-color: var(--lav); }
.night .btn-ghost:hover { background: var(--night-2); }
.btn-sm { min-height: 38px; padding: .35em 1em; font-size: .92rem; }

/* ---------- header */
.site-head { background: var(--night); color: var(--moonlight); position: relative; z-index: 5; border-bottom: 1px solid var(--night-3); }
.head-row { display: flex; align-items: center; gap: 12px 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--moonlight); text-decoration: none; margin-right: auto; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { font: 650 1.22rem/1 var(--head); letter-spacing: -.01em; white-space: nowrap; }
.logo-text b { font-weight: 850; color: var(--lav); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 10px 12px; color: var(--moonlight); text-decoration: none; font: 650 .98rem/1.2 var(--head); border-radius: 10px; }
.main-nav a:hover { background: var(--night-2); }
.main-nav a[aria-current="page"] { color: var(--amber); }
.head-search { display: flex; align-items: center; background: var(--night-2); border-radius: 999px; padding: 3px 3px 3px 14px; border: 1px solid var(--night-3); }
.head-search input { background: transparent; border: 0; color: var(--moonlight); font: inherit; font-size: .95rem; width: 13em; min-height: 36px; }
.head-search input::placeholder { color: #A9A6D6; }
.head-search input:focus { outline: none; }
.head-search:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.head-search button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--amber); color: var(--night); display: grid; place-items: center; cursor: pointer; }
.head-search button svg { width: 18px; height: 18px; }
.wide-nav { display: none; align-items: center; gap: 14px; }
.menu { order: 3; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 12px; border-radius: 10px; font: 700 .98rem var(--head); border: 1px solid var(--night-3); }
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--moonlight); border-radius: 2px; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu[open] > nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--night); padding: 8px 16px 18px; border-bottom: 3px solid var(--lav); box-shadow: 0 16px 30px rgba(0, 0, 0, .25); }
.menu[open] > nav ul { flex-direction: column; }
.menu[open] > nav a { font-size: 1.1rem; padding: 12px 8px; border-bottom: 1px solid var(--night-2); border-radius: 0; }
.menu[open] .head-search { margin-top: 14px; }
.menu[open] .head-search input { width: 100%; }
.saved-link { order: 2; display: inline-flex; align-items: center; gap: 6px; color: var(--moonlight); text-decoration: none; font: 700 .95rem var(--head); padding: 8px 10px; border-radius: 10px; }
.saved-link svg, .head-search button svg, .save-btn svg { flex: none; max-width: none; }
.saved-link svg { width: 22px; height: 22px; }
.saved-link:hover { background: var(--night-2); }
.saved-count { background: var(--amber); color: var(--night); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .8rem; }
@media (max-width: 420px) { .saved-link > span:first-of-type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .logo-text { font-size: 1.05rem; } }
@media (min-width: 1020px) {
  .wide-nav { display: flex; }
  .menu { display: none; }
  .saved-link { order: 4; }
}

/* ---------- night sections */
.night { background-color: var(--night); background-image: var(--stars); color: #E4E2FA; }
.night h1, .night h2, .night h3 { color: #FFFFFF; }
.night a { color: var(--amber); }
.night .lead { color: #D8D5F6; }
.lead { font-size: 1.15rem; line-height: 1.55; }
.eyebrow { font: 800 .82rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--lav); margin-bottom: 14px; }

/* ---------- hero */
.hero { padding: 44px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 34px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 38em; }
.finder { margin-top: 26px; background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--radius-lg); padding: 20px 20px 22px; max-width: 640px; }
.finder-line { font: 650 1.2rem/2.2 var(--head); color: #FFFFFF; margin: 0 0 14px; }
.finder-line label, .finder-line span { margin-right: .3em; }
.finder select { font: 750 1.08rem var(--head); color: var(--amber); background: transparent; border: 0; border-bottom: 2px dashed var(--lav); padding: 2px 22px 2px 2px; margin: 0 .35em .2em 0; min-height: 40px; max-width: 100%; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FFB347' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 12px; cursor: pointer; }
.finder select option { color: var(--ink); background: #fff; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 46% 46% var(--radius-lg) var(--radius-lg) / 34% 34% var(--radius-lg) var(--radius-lg); display: block; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-photo::before { content: ""; position: absolute; width: 74px; height: 74px; right: 8%; top: -14px; border-radius: 50%; box-shadow: -14px 10px 0 0 var(--lav); transform: rotate(-12deg); z-index: 1; }
.hero-photo figcaption, .head-photo figcaption, .guide-photo figcaption { font-size: .78rem; color: #C9C6EE; margin-top: 8px; }
.hero-photo figcaption a, .head-photo figcaption a, .guide-photo figcaption a { color: #E9E7FF; }
@media (min-width: 980px) { .hero { padding: 64px 0 76px; } .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

/* ---------- generic sections */
.section { padding: 56px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 46em; }
.inside { background: var(--paper); }
.type-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.type-list a { display: grid; grid-template-rows: auto auto auto; text-decoration: none; color: var(--ink); background: var(--lav-soft); border-radius: var(--radius); padding: 10px 10px 14px; height: 100%; border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.type-list a:hover { border-color: var(--lav); }
.type-list img { border-radius: 14px; aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.t-name { font: 750 1.04rem/1.25 var(--head); margin: 10px 4px 2px; }
.t-count { font-size: .85rem; color: var(--muted); margin: 0 4px; }
@media (min-width: 760px) { .type-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.beds-band { background: var(--lav-soft); }
.beds-grid { display: grid; gap: 22px; }
.mini-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.mini-cats a { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; background: var(--paper); border-radius: 16px; text-decoration: none; color: var(--ink); font: 700 1rem var(--head); border: 1px solid var(--line); }
.mini-cats a:hover { border-color: var(--lav); }
.mini-cats img { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.mini-cats small { margin-left: auto; color: var(--muted); font: 600 .85rem var(--body); }
@media (min-width: 700px) { .mini-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .beds-grid { grid-template-columns: .8fr 1.2fr; align-items: center; } }

/* ---------- product grid + cards */
.shelf { background: var(--paper); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 329px) { .grid { grid-template-columns: 1fr; } }
@media (min-width: 640px) { .grid { gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.card-media { display: block; background: var(--lav-soft); }
.card-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 14px 16px 6px; flex: 1; }
.card-kicker { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 700 .78rem/1.3 var(--head); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.card-brand { color: var(--night-3); }
.card-type { color: var(--muted); }
.card-title { font-size: 1.12rem; margin: 0 0 6px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0 0 64px 0; }
.card-title a:hover { text-decoration: underline; }
.card-cons { font-size: .92rem; color: var(--muted); margin: 0 0 10px; }
.card-sizes { font-size: .86rem; color: var(--text); margin: 8px 0 0; }
.card-sizes .more { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 10px 16px 14px; border-top: 1px dashed var(--line); position: relative; z-index: 1; min-height: 54px; }
.cmp-check { display: inline-flex; align-items: center; gap: 8px; font: 700 .9rem var(--head); color: var(--ink); cursor: pointer; padding: 6px 0; }
.cmp-check input { width: 20px; height: 20px; accent-color: var(--night); }
.save-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1.5px solid var(--line); color: var(--night); border-radius: 999px; padding: 6px 12px; font: 700 .88rem var(--head); cursor: pointer; min-height: 38px; }
.save-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.save-btn[aria-pressed="true"] { background: var(--lav-soft); border-color: var(--lav); }
.save-btn[aria-pressed="true"] svg { fill: var(--amber); stroke: var(--amber-deep); }
.save-btn:hover { border-color: var(--lav); }

@media (max-width: 639px) {
  .card-body { padding: 10px 12px 4px; }
  .card-title { font-size: 1rem; }
  .card-kicker { font-size: .7rem; }
  .card-cons { font-size: .85rem; }
  .card-actions { padding: 8px 12px 12px; }
  .firm-sm .firm-bar { width: 60px; }
}
/* firmness meter */
.firm { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.firm-bar { display: inline-grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: 120px; flex: none; }
.firm-bar i { height: 10px; background: var(--lav-mid); border-radius: 3px; }
.firm-bar i:first-child { border-radius: 6px 3px 3px 6px; } .firm-bar i:last-child { border-radius: 3px 6px 6px 3px; }
.firm-bar i.on { background: var(--night-3); }
.firm-label { font: 700 .95rem var(--head); color: var(--ink); }
.firm-sm .firm-bar { width: 80px; } .firm-sm .firm-bar i { height: 8px; } .firm-sm .firm-label { font-size: .85rem; }

/* compare bar */
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 16px; }
.compare-bar p { margin: 0; font-size: .92rem; color: var(--muted); }
.compare-tray { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; max-width: 720px; margin: 0 auto; background: var(--night); color: #fff; border-radius: 18px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; box-shadow: 0 18px 40px rgba(27, 31, 75, .4); }
.compare-tray p { margin: 0; font: 700 .95rem var(--head); flex: 1 1 200px; }
.compare-tray .btn-ghost { color: #fff; border-color: var(--lav); }

/* ---------- ruler band (size chart) */
.ruler-band { padding: 56px 0; }
.ruler-grid { display: grid; gap: 26px; align-items: center; }
@media (min-width: 980px) { .ruler-grid { grid-template-columns: .8fr 1.2fr; gap: 50px; } }
.size-chart { margin: 1.4em 0; }
.size-chart figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.night .size-chart figcaption { color: #C9C6EE; }
.size-svg { display: block; width: 100%; max-height: 540px; }
.size-svg .bed { fill: var(--lav-mid); stroke: var(--night); stroke-width: 2; }
.size-svg .bed-eu { fill: none; stroke: var(--amber-deep); stroke-width: 2.5; stroke-dasharray: 7 5; }
.size-svg .pillow { fill: #fff; stroke: var(--night); stroke-width: 1.5; }
.size-svg .bed-off { opacity: .35; }
.size-svg text { font-family: var(--head); fill: var(--ink); }
.size-svg .lbl { font-size: 15px; font-weight: 800; }
.size-svg .dim { font-size: 13px; fill: var(--muted); }
.size-svg .ruler line { stroke: var(--muted); stroke-width: 1.5; }
.size-svg .ruler text { font-size: 10px; fill: var(--muted); }
.night .size-svg .bed { fill: var(--night-3); stroke: var(--lav); }
.night .size-svg .pillow { fill: var(--lav); stroke: var(--lav); }
.night .size-svg text, .night .size-svg .dim { fill: #E9E7FF; }
.night .size-svg .ruler line { stroke: var(--lav); }
.night .size-svg .ruler text { fill: var(--lav); }
.size-chart.has-narrow .size-narrow { display: none; }
@media (max-width: 759px) {
  .size-chart.has-narrow .size-wide { display: none; }
  .size-chart.has-narrow .size-narrow { display: block; }
  .size-svg .lbl { font-size: 19px; } .size-svg .dim { font-size: 16px; }
}

/* ---------- deals */
.deals-teaser { background: var(--lav-soft); }
.deal-list { display: grid; gap: 14px; }
.deal { display: grid; gap: 10px 18px; grid-template-columns: auto 1fr; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.deal-price { font: 850 1.7rem/1 var(--head); color: var(--night); background: var(--lav-soft); border-radius: 16px; padding: 12px 14px; text-align: center; min-width: 120px; }
.deal-price small { display: block; font: 600 .78rem/1.3 var(--body); color: var(--muted); margin-top: 6px; }
.deal-body h3 { margin: 0 0 4px; font-size: 1.1rem; }
.deal-meta, .deal-notes { margin: 0; font-size: .92rem; color: var(--muted); }
.deal .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .deal { grid-template-columns: auto 1fr auto; } .deal .btn { grid-column: auto; } }
.empty-note { background: var(--lav-soft); border-radius: var(--radius); padding: 20px 22px; border: 1px dashed var(--lav); }
.empty-note h2 { font-size: 1.3rem; }
.empty-note p:last-child { margin: 0; }
.deals-page { padding: 34px 16px 60px; }

/* ---------- guides list on home */
.reading { background: var(--paper); }
.guide-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; counter-reset: g; }
.guide-list > li > a { display: grid; align-content: start; grid-template-columns: auto 1fr; gap: 2px 14px; text-decoration: none; color: var(--ink); padding: 14px 16px; border-radius: var(--radius); background: var(--lav-soft); border: 1px solid transparent; height: 100%; }
.guide-list > li > a:hover { border-color: var(--lav); }
.g-num { grid-row: span 2; font: 850 1.5rem/1 var(--head); color: var(--lav); padding-top: 2px; }
.g-title { font: 750 1.1rem/1.3 var(--head); }
.g-sum { font-size: .9rem; color: var(--muted); }
.guide-list > .lead-guide > a { background: var(--night); color: #fff; grid-template-columns: 1fr; }
.lead-guide > a img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 10px; }
.lead-guide .g-num { color: var(--amber); grid-row: auto; }
.lead-guide .g-title { color: #fff; font-size: 1.35rem; }
.lead-guide .g-sum { color: #D8D5F6; }
.g-credit { font-size: .76rem; color: var(--muted); margin: 6px 4px 0; }
.lead-guide { display: flex; flex-direction: column; }
.guide-list > .lead-guide > a { flex: 1; }
@media (min-width: 900px) { .guide-list { grid-template-columns: 1.15fr 1fr 1fr; } .lead-guide { grid-row: span 3; } }

.method { padding: 10px 0 64px; }
.method-panel { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--lav-soft); border-radius: var(--radius-lg); padding: 26px 22px; }
.method-moon { width: 52px; height: 52px; }
.method-panel h2 { font-size: 1.35rem; }
.method-panel p { margin: 0; }

/* ---------- listing pages */
.page-head { padding: 26px 0 0; }
.page-head .wrap > h1, .head-grid h1 { margin-top: 8px; }
.page-head .lead { max-width: 44em; }
.head-grid { display: grid; gap: 18px; padding-bottom: 22px; }
.head-photo { margin: 0; }
.head-photo img { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 90px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.head-illus { border-radius: var(--radius-lg); max-width: 300px; width: 100%; }
.head-link { font-size: .95rem; }
@media (min-width: 900px) { .head-grid.with-photo { grid-template-columns: 1fr 360px; align-items: end; } .head-grid { grid-template-columns: 1fr 300px; align-items: end; } }
.page-head > .wrap:only-child { padding-bottom: 30px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .88rem; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--lav); }
.crumbs a { color: inherit; }
.night .crumbs { color: #CFCBF4; }
.night .crumbs a { color: #E9E7FF; }
.crumbs [aria-current] { color: inherit; opacity: .85; }
.product .crumbs { padding: 18px 0 6px; color: var(--muted); }
.cat-nav { padding-top: 6px; padding-bottom: 0; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 18px; overflow-x: auto; scrollbar-width: thin; }
.cat-nav a { display: block; padding: 12px 2px 14px; color: #E9E7FF; text-decoration: none; font: 700 .97rem var(--head); white-space: nowrap; border-bottom: 3px solid transparent; }
.cat-nav a:hover { border-bottom-color: var(--lav); }
.cat-nav a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }
.cat-nav .n { color: var(--lav); font-weight: 600; font-size: .82rem; }

.shop { display: grid; gap: 26px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 900px) { .shop { grid-template-columns: 260px 1fr; align-items: start; } .filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }
.filters { background: var(--lav-soft); border-radius: var(--radius); padding: 16px 18px 18px; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; }
.filters-head h2 { font-size: 1.2rem; margin: 0 0 6px; }
.filters fieldset { border: 0; padding: 10px 0 12px; margin: 0; border-top: 1px solid var(--line); }
.filters legend { font: 800 .82rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--night); padding: 8px 0 6px; }
.legend-help { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .95rem; cursor: pointer; min-height: 32px; }
.opt input { width: 18px; height: 18px; accent-color: var(--night); flex: none; }
.opt .n { margin-left: auto; color: var(--muted); font-size: .85rem; }
.opt .dim { color: var(--muted); font-size: .8rem; }
.opt.none { opacity: .55; }
.firm-dots { display: inline-flex; gap: 2px; }
.firm-dots i { width: 7px; height: 7px; border-radius: 2px; background: var(--lav-mid); }
.firm-dots i.on { background: var(--night-3); }
.filters select { width: 100%; min-height: 42px; border-radius: 10px; border: 1px solid var(--lav); background: #fff; font: inherit; padding: 6px 10px; color: var(--ink); }
.filters-apply { width: 100%; margin-top: 6px; }
.filters-toggle { display: none; }
.js .filters-toggle { display: inline-flex; }
@media (max-width: 899px) {
  .js .filters.collapsed fieldset, .js .filters.collapsed .filters-apply { display: none; }
  .filters-head { gap: 10px; flex-wrap: wrap; }
}
@media (min-width: 900px) { .js .filters-toggle { display: none; } }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.results-head h2 { margin: 0; font-size: 1.3rem; }
.results-head .compare-bar { margin: 0; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 26px 0 0; font-weight: 700; }
.listing-note { margin-top: 26px; }

/* ---------- product page */
.prod-top { display: grid; gap: 26px; padding-bottom: 30px; }
@media (min-width: 900px) { .prod-top { grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; } }
.prod-media figure { margin: 0; }
.prod-media img { width: 100%; border-radius: var(--radius-lg); background: var(--lav-soft); display: block; }
.prod-media figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.kicker { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 800 .82rem var(--head); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.kicker span { color: var(--night-3); }
.prod-info h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: 8px; }
.prod-cons { font-size: 1.08rem; color: var(--muted); }
.facts { margin: 16px 0 8px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 700 .92rem var(--head); color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.buy-box { margin-top: 18px; padding: 18px; background: var(--night); background-image: var(--stars); border-radius: var(--radius); color: #E4E2FA; display: grid; gap: 10px; }
.buy-box .btn { width: 100%; }
.buy-box .btn-ghost { color: #fff; border-color: var(--lav); }
.buy-box .btn-ghost:hover { background: var(--night-2); }
.buy-box p { margin: 4px 0 0; color: #D8D5F6; }
.save-big { justify-self: start; color: #fff; border-color: var(--night-3); }
.save-big[aria-pressed="true"] { background: var(--night-2); border-color: var(--lav); }
.prod-body { display: grid; gap: 34px; padding-bottom: 40px; }
@media (min-width: 900px) { .prod-body { grid-template-columns: 1.2fr .8fr; } .prod-body > section { grid-column: 1 / -1; } .prod-body > .prose { grid-column: 1; grid-row: 1; } .prod-body > .checked { grid-column: 2; grid-row: 1; } }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--amber-deep); border-bottom: 3px solid var(--amber-deep); transform: rotate(-45deg); }
.checked { background: var(--lav-soft); border-radius: var(--radius); padding: 18px 20px; align-self: start; }
.checked h2 { font-size: 1.2rem; }
.checked ul { padding-left: 1.1em; margin: 0 0 10px; }
.see-also { font-weight: 700; margin: 24px 0 48px; }

/* ---------- compare table */
.compare-page { padding-top: 30px; padding-bottom: 60px; }
.lead-dark { font-size: 1.08rem; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.compare-table { border-collapse: separate; border-spacing: 0; min-width: 640px; width: 100%; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--lav-soft); vertical-align: bottom; }
.compare-table thead img { width: 100%; max-width: 220px; border-radius: 14px; display: block; margin-bottom: 8px; }
.compare-table thead a { display: block; font: 750 1.05rem var(--head); color: var(--ink); }
.compare-table .c-brand { display: block; font: 800 .78rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--night-3); }
.compare-table .c-remove { font: 600 .85rem var(--body); color: var(--muted); margin-top: 6px; }
.compare-table tbody th { font: 700 .92rem var(--head); color: var(--muted); width: 160px; }
.compare-table ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.c-buy { display: grid; gap: 8px; min-width: 180px; }

/* ---------- prose / guides */
.prose { max-width: 70ch; }
.guide .prose { max-width: none; }
.guide .prose > * { max-width: 70ch; }
.guide .prose > .size-chart, .guide .prose > .table-wrap, .guide .prose > .strip, .guide .prose > .layers, .guide .prose > .firm-scale { max-width: none; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose .note, .note { background: var(--lav-soft); border-left: 5px solid var(--lav); border-radius: 0 16px 16px 0; padding: 14px 18px; margin: 0 0 1.2em; }
.prose .ext::after { content: " ↗"; font-size: .8em; }
table.data { border-collapse: collapse; width: 100%; min-width: 420px; margin: 0 0 1.2em; font-size: .97rem; }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th { background: var(--night); color: #fff; font-family: var(--head); }
table.data thead th:first-child { border-radius: 12px 0 0 0; } table.data thead th:last-child { border-radius: 0 12px 0 0; }
table.data tbody tr:nth-child(even) { background: var(--lav-soft); }
.guide-head { padding: 26px 0 34px; }
.guide-head-grid { display: grid; gap: 20px; align-items: end; }
.guide-head h1 { max-width: 22ch; }
.byline { font-size: .9rem; color: var(--lav); margin: 0; }
.guide-photo { margin: 0; }
.guide-photo img { border-radius: 120px var(--radius-lg) var(--radius-lg) var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .guide-head-grid.with-photo { grid-template-columns: 1fr 420px; } .guide-head-grid { grid-template-columns: 1fr 300px; } }
.guide-body { display: grid; gap: 34px; padding-top: 34px; padding-bottom: 60px; }
@media (min-width: 1000px) { .guide-body { grid-template-columns: minmax(0, 1fr) 320px; } .guide-side { position: sticky; top: 16px; } }
.guide-side { align-self: start; display: grid; gap: 18px; }
.sources, .more-guides { background: var(--lav-soft); border-radius: var(--radius); padding: 18px 20px; }
.sources h2, .more-guides h2 { font-size: 1.15rem; }
.sources ol { padding-left: 1.2em; font-size: .9rem; margin: 0 0 10px; }
.sources li { margin-bottom: 6px; }
.more-guides ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.more-guides li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.strip { margin: 1.8em 0; padding: 20px; background: var(--lav-soft); border-radius: var(--radius-lg); max-width: none; }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.strip-head h2 { font-size: 1.25rem; margin: 0 0 12px; }
.firm-scale { margin: 1.4em 0; }
.firm-scale ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.firm-scale li { display: grid; grid-template-columns: 44px 9em 1fr; align-items: center; gap: 10px; background: var(--lav-soft); border-radius: 14px; padding: 8px 12px; }
.firm-scale .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem var(--head); color: #fff; background: var(--night-3); background: color-mix(in srgb, var(--night) calc(var(--n) * 20%), var(--lav)); }
.firm-scale li span:last-child { font-size: .92rem; color: var(--muted); }
.firm-scale figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 520px) { .firm-scale li { grid-template-columns: 40px 1fr; } .firm-scale li span:last-child { grid-column: 2; } }
.layers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 1.2em 0 1.6em; }
.layers figure { margin: 0; }
.layers img { border-radius: 16px; width: 100%; }
.layers figcaption { font: 750 .98rem var(--head); color: var(--ink); text-align: center; margin-top: 4px; }
.guide-index { list-style: none; padding: 34px 0 10px; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.gi-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gi-link img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; background: var(--lav-soft); }
.gi-text { padding: 14px 16px 16px; display: grid; gap: 6px; }
.gi-title { font: 750 1.15rem/1.25 var(--head); }
.gi-link:hover .gi-title { text-decoration: underline; }
.gi-sum { font-size: .93rem; color: var(--muted); }
.gi-date { font-size: .82rem; color: var(--night-3); font-weight: 700; }
.gi-credit { font-size: .75rem; color: var(--muted); margin: 6px 6px 0; }

/* FAQ */
.faq-wrap { padding-top: 34px; padding-bottom: 60px; max-width: 860px; }
.faq-wrap h2 { margin-top: 1.2em; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 4px; font: 750 1.08rem/1.35 var(--head); color: var(--ink); list-style: none; display: flex; gap: 12px; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--night-3); }
.faq[open] summary::after { content: "–"; }
.faq .prose { padding: 0 4px 12px; }

/* text pages */
.page-text { padding-top: 34px; padding-bottom: 60px; }
.contact-mail { font: 750 1.3rem var(--head); }
.search-page, .saved-page { padding-top: 30px; padding-bottom: 60px; }
.search-big { margin: 10px 0 28px; max-width: 640px; }
.search-big label { display: block; font: 700 1rem var(--head); margin-bottom: 6px; }
.search-big div { display: flex; gap: 8px; }
.search-big input { flex: 1; min-width: 0; min-height: 48px; border-radius: 999px; border: 2px solid var(--lav); padding: 6px 18px; font: inherit; }
.plain-list { padding-left: 1.2em; }
.notfound { padding-top: 50px; padding-bottom: 70px; max-width: 720px; }
.nf-art { width: 180px; display: block; margin-bottom: 10px; }

/* ---------- footer */
.site-foot { background: var(--night); background-image: var(--stars); color: #D8D5F6; padding: 46px 0 24px; margin-top: 0; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.foot-about { grid-column: 1 / -1; max-width: 40em; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-about { grid-column: auto; } }
.foot-logo { font: 650 1.3rem var(--head); color: #fff; }
.foot-logo b { color: var(--lav); font-weight: 850; }
.site-foot h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--lav); margin: 4px 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: #F1F0FF; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--amber); }
.foot-legal { border-top: 1px solid var(--night-3); margin-top: 30px; padding-top: 18px; font-size: .86rem; color: #C3C0EA; }
.foot-legal p { margin: 0 0 8px; }

/* photo credits page (kit) */
.kit-credits h1 { margin-top: .4em; }
.kit-credits-list img { border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print { .site-head, .site-foot, .buy-box, .filters, .compare-bar { display: none; } .night { background: none; color: #000; } }

/* keep grid children from stretching the page on small screens */
.guide-body > *, .shop > *, .prod-top > *, .prod-body > *, .hero-grid > *, .head-grid > *, .guide-head-grid > *, .ruler-grid > *, .beds-grid > * { min-width: 0; }
@media (max-width: 400px) {
  .head-row { gap: 6px; }
  .logo { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-text { font-size: .98rem; }
  .menu summary { padding: 9px 10px; }
  .menu summary > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .saved-link { padding: 8px 6px; }
}
