/* Sewing Machine Fit. Rules live in DESIGN.md.
   Look: "quilt shop", modeled on Missouri Star Quilt Co. Mint header band, white rounded cards on a pale
   page, coral buttons, Nunito type, and a dashed stitch line under the header as the one ornament.
   Light colors only, on every device. Part 1 is the shared layout; part 2 sets the colors and the quilt-shop changes. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--body-size); line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg.i { width: 1.35em; height: 1.35em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--h-weight); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: var(--h-spacing); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

header.site { background: var(--hdr-bg); color: var(--hdr-ink); }
header.site .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hdr-ink); text-decoration: none; font-family: var(--font-display); font-weight: var(--h-weight); font-size: 1.3rem; }
.brand svg.i { width: 1.5em; height: 1.5em; color: var(--logo); }
.preview-pill { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: var(--on-badge); background: var(--badge); border-radius: 4px; padding: 1px 8px; margin-left: 4px; letter-spacing: 0; text-transform: none; }
nav.top { display: flex; flex-wrap: wrap; gap: 2px 4px; }
nav.top a { color: var(--hdr-link); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-size: 1rem; }
nav.top a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }

main { padding-block: 32px 80px; }
.crumbs { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--ink-soft); }

.hero { padding-block: 8px 0; }
.hero h1 { margin-bottom: 14px; max-width: 22ch; }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 44ch; }
.searchbox { margin-top: 26px; max-width: 640px; }
.searchbox label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; }
.searchbox .field { position: relative; }
.searchbox svg.i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.searchbox input { width: 100%; font: inherit; font-size: 1.15rem; padding: 17px 18px 17px 54px; border: 2px solid var(--field-border); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.searchbox input::placeholder { color: var(--ink-soft); opacity: 1; }
.searchbox input:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

.facts { max-width: 760px; margin-block: 36px 48px; }
.facts p { color: var(--ink-soft); font-size: 1rem; }
.section-head { margin-block: 8px 16px; }
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.brands a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; background: var(--surface); }
.brands a:hover { border-color: var(--link); color: var(--link); }
.brands a span { font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }

.brand-block { margin-bottom: 44px; scroll-margin-top: 20px; }
.brand-block h2 { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 2px solid var(--line-strong); }
.grid { margin: 0; padding: 0; }
.mcard { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto; gap: 6px 24px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mcard:hover { background: var(--tint); }
.mcard h3 { font-size: 1.25rem; color: var(--link); }
.mcard .brandname { display: block; color: var(--ink-soft); font-size: 0.92rem; }
.mcard dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; font-size: 0.98rem; }
.mcard dt { color: var(--ink-soft); }
.mcard dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.mcard .go { color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 760px) { .mcard { grid-template-columns: 1fr; } }
.empty { color: var(--ink-soft); padding: 18px 0; font-size: 1.05rem; }

.mhead { margin-bottom: 28px; }
.mhead h1 { margin-bottom: 8px; }
.mhead .sub { margin-top: 6px; font-size: 1.1rem; color: var(--ink-soft); }
.checked { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.98rem; color: var(--ink); background: var(--tint); border-radius: var(--radius); padding: 8px 14px; }
.checked svg.i { color: var(--link); }

.specs { border: var(--frame); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.spec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 28px; padding: 22px 24px; border-top: 1px solid var(--line); }
.spec:first-child { border-top: 0; }
.spec .label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.spec .label svg.i { color: var(--link); width: 1.5em; height: 1.5em; }
.spec .body { min-width: 0; display: grid; gap: 8px; }
.spec .value { font-family: var(--font-display); font-weight: var(--h-weight); font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; overflow-wrap: anywhere; }
.badge { display: inline-block; vertical-align: middle; margin-left: 10px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; color: var(--on-badge); background: var(--badge); border-radius: 4px; padding: 1px 8px; letter-spacing: 0; text-transform: none; }
.spec .qual { color: var(--ink-soft); font-size: 0.98rem; }
.spec .src { display: flex; align-items: flex-start; gap: 8px; font-size: 0.98rem; color: var(--ink-soft); }
.spec .src svg.i { width: 1.15em; height: 1.15em; margin-top: 4px; color: var(--link); }
.spec .differs { font-size: 0.98rem; border-left: 4px solid var(--badge); padding: 4px 0 4px 12px; }
.spec details, .drow details { font-size: 0.98rem; color: var(--ink-soft); }
.spec summary, .drow summary { cursor: pointer; color: var(--link); font-weight: 700; width: fit-content; }
.spec details ul, .drow details ul { margin: 6px 0 0; padding-left: 20px; }
.spec details li, .drow details li { margin: 6px 0; overflow-wrap: anywhere; }
.spec .more { font-size: 0.98rem; }
.spec.missing { background: var(--tint); }
.spec.missing .label svg.i { color: var(--ink-soft); }
.spec.missing .value { color: var(--ink-soft); font-size: 1.2rem; }
@media (max-width: 680px) { .spec { grid-template-columns: 1fr; padding: 18px; } }

.details-card { margin-block: 40px; }
.details-card h2 { margin-bottom: 8px; }
.drow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.drow svg.i { color: var(--link); }
.drow .k { color: var(--ink-soft); }
.drow .v { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.drow .v.missing { font-weight: 400; color: var(--ink-soft); }
.drow details { grid-column: 2 / -1; }
@media (max-width: 560px) { .drow { grid-template-columns: auto minmax(0, 1fr); } .drow .v { grid-column: 2; text-align: left; } }

.manual { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--tint); margin-block: 40px; }
.manual svg.i.big { width: 2.3em; height: 2.3em; color: var(--link); }
.manual .txt { flex: 1 1 260px; min-width: 0; }
.manual .txt span { display: block; color: var(--ink-soft); font-size: 0.98rem; overflow-wrap: anywhere; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--btn); color: var(--on-btn); font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: var(--radius); font-size: 1.02rem; }
.btn:hover { color: var(--on-btn); filter: brightness(1.08); }

.shop { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.shop svg.i { color: var(--ink-soft); width: 1.5em; height: 1.5em; }
.shop .tag { font-weight: 700; }
.shop p { margin-top: 2px; color: var(--ink-soft); font-size: 0.98rem; }

.prose { max-width: 700px; }
.prose p + p { margin-top: 14px; }
.prose h2 { margin: 40px 0 12px; }
.lede-lg { font-size: 1.15rem; color: var(--ink-soft); margin-top: 14px; max-width: 50ch; }
.hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; margin-top: 24px; }
.hubs a { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hubs a:hover strong { text-decoration: underline; }
.hubs svg.i { color: var(--link); width: 1.5em; height: 1.5em; }
.hubs strong { display: block; font-size: 1.08rem; color: var(--link); }
.hubs span span { color: var(--ink-soft); font-size: 0.92rem; }
.note { color: var(--ink-soft); font-size: 0.98rem; }

footer.site { background: var(--ftr-bg); color: var(--ftr-ink); }
footer.site .inner { padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; font-size: 0.98rem; }
footer.site a { color: var(--ftr-ink); }
.selvedge { display: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Quilt shop look, part 2. Taken from Missouri Star Quilt Co: a mint header band, white rounded cards
   on a pale page, coral buttons, friendly rounded type, and a stitched line as the one ornament. */
:root {
  color-scheme: light;
  --bg: #f4f8f7; --surface: #ffffff; --ink: #1d2b2a; --ink-soft: #4b5d5b;
  --link: #0f6b66; --accent: #c4442c; --line: #dfe8e6; --line-strong: #b9cbc8; --tint: #eaf4f2;
  --hdr-bg: #d6efea; --hdr-ink: #123f3c; --hdr-link: #123f3c; --logo: #c4442c;
  --ftr-bg: #123f3c; --ftr-ink: #d6efea;
  --btn: #c4442c; --on-btn: #ffffff; --badge: #ffd9a8; --on-badge: #5a2a0c; --field-border: #9fbdb8;
  --frame: 0; --radius: 12px; --radius-lg: 18px;
  --font-display: "Nunito", "Trebuchet MS", sans-serif; --h-weight: 800; --h-spacing: -0.01em;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif; --body-size: 18px;
  --shadow: 0 1px 2px rgba(18,63,60,0.08), 0 6px 18px rgba(18,63,60,0.08);
  --stitch: #c4442c;
}
/* Stitched line: a dashed seam under the header and over the footer */
header.site { position: relative; padding-bottom: 6px; }
header.site::after, footer.site::before { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 2.5px dashed var(--stitch); opacity: 0.8; }
header.site::after { bottom: 8px; }
footer.site { position: relative; }
footer.site::before { top: 10px; border-color: var(--hdr-bg); }
nav.top a { border-radius: 999px; font-weight: 700; }
nav.top a:hover { background: rgba(255,255,255,0.6); }
nav.top a[aria-current="page"] { background: var(--surface); text-decoration: none; color: var(--accent); }
.brand { font-size: 1.4rem; }

.hero { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px clamp(20px, 4vw, 40px) 36px; }
.hero h1 { color: var(--hdr-ink); }
.searchbox input { border-radius: 999px; }
.facts { background: var(--tint); border-radius: var(--radius); padding: 16px 20px; max-width: none; }
.brands a { border-radius: 999px; border-color: var(--line-strong); }
.brand-block h2 { border-bottom: 0; color: var(--hdr-ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 10px; }
.mcard { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 20px; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.mcard:hover { background: var(--surface); outline: 2px solid var(--link); }
.mcard dl { flex: 1; }
.mcard .go { color: var(--accent); font-weight: 700; }

.checked { background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; }
.specs { display: grid; gap: 14px; overflow: visible; background: transparent; }
.spec { background: var(--surface); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.spec.missing { background: var(--tint); box-shadow: none; }
.spec .label svg.i { color: var(--accent); }
.badge { border-radius: 999px; }
.details-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 24px 8px; }
.drow:last-child { border-bottom: 0; }
.manual { background: var(--hdr-bg); }
.btn { border-radius: 999px; }
.shop { background: var(--surface); }
.hubs a { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; }
