/* Monipick shared look: cobalt palette, check logo, header/footer. Loaded first on every page. */

/* Doto: dot-matrix numerals (SIL OFL 1.1, fonts/doto/OFL.txt). Latin only; Korean falls through to Pretendard. */
@font-face { font-family: "Doto"; src: url("fonts/doto/doto-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Showroom look (2026-12): one dark world, like monitors lit in a dark showroom. Light surfaces are reserved
   for "lit" things: primary buttons and seller photos. */
:root {
  color-scheme: dark;
  --bg: #05070b;
  --surface: #0e1219;
  --ink: #f2f5fa;
  --ink-2: #c5ccd9;
  --muted: #939cae;
  --line: #202736;
  --brand: #6a90ff;
  --brand-ink: #c9d6ff;
  --tint: #141d3a;
  --accent: #6a90ff;
  --on-accent: #05070b;
  --accent-on-dark: #9db8ff;
  --warn: #f0b055;
  --inv: #1a2547;
  --inv-ink: #fff;
  --lit: #fff;
  --on-lit: #05070b;
  --screen: #0a1024;
  --sub-r: #ff5d5d;
  --sub-g: #46d886;
  --sub-b: #6a90ff;
  --stage-a: #161c28;
  --stage-b: #0e1219;
  --header-bg: rgba(5, 7, 11, 0.84);
  --dialog-top-bg: rgba(14, 18, 25, 0.94);
  --warn-bg: #33260f;
  --diff-bg: #121b36;
  --hover-line: #36405a;
  --c1: #6a90ff;
  --c2: #ff8a5c;
  --c3: #46d886;
  --r-lg: 18px;
  --r-md: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(0, 0, 0, 0.45);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --num: "Doto", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.mp {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.mp *, .mp *::before, .mp *::after { box-sizing: border-box; }
.mp a { color: inherit; }
.mp button, .mp input, .mp select { font: inherit; color: inherit; }
.mp :focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mp [hidden] { display: none !important; }
.mp .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mp .skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.mp .skip:focus { top: 10px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header-in { max-width: 1200px; margin: auto; min-height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.site-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -0.04em; text-decoration: none; color: var(--ink); flex: none; }
.site-logo svg { width: 28px; height: 28px; display: block; }
.logo-screen { fill: var(--accent); }
.logo-check { fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.logo-stand { fill: var(--accent); }
.site-nav { display: flex; gap: 4px; }
.site-nav a, .site-nav button { border: 0; background: none; cursor: pointer; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.site-nav a:hover, .site-nav button:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
.site-nav [aria-current="page"] { background: var(--inv); color: var(--inv-ink); }
.site-nav [aria-current="page"]:hover { background: var(--inv); color: var(--inv-ink); }
.nav-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.site-footer-in { max-width: 1200px; margin: auto; padding: 32px 24px 100px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; font-size: 13px; color: var(--muted); }
.site-footer .site-logo { font-size: 17px; }
.site-footer .site-logo svg { width: 22px; height: 22px; }
.site-footer p { margin: 8px 0 0; }
.site-footer a { color: var(--ink-2); }

/* shared pieces */
.mp .eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.mp .btn { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mp .btn-accent { background: var(--lit); color: var(--on-lit); }
.mp .btn-accent:disabled { opacity: 0.4; cursor: default; }
.mp .btn-line { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.mp .btn-line:hover { border-color: var(--ink); }
.mp .badge { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: var(--bg); color: var(--ink-2); }
.mp .badge-strong { background: var(--inv); color: var(--inv-ink); }
.mp .badge-tint { background: var(--tint); color: var(--brand-ink); }

/* screen art (shared by cards, detail, compare) */
.screen-art { display: block; max-width: 100%; height: auto; overflow: visible; }
.screen-art .bezel { fill: #05070c; }
.screen-art .neck { fill: #b9bfca; }
.screen-art .foot { fill: #a8afbb; }
.screen-art .shadow { fill: rgba(0, 0, 0, 0.35); }
.screen-art .size-label { fill: rgba(255, 255, 255, 0.88); font-weight: 800; font-family: var(--font); }

@media (max-width: 720px) {
  .site-header-in { flex-wrap: wrap; padding: 10px 16px; gap: 8px 12px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a, .site-nav button { font-size: 14px; padding: 7px 12px; }
  .site-footer-in { grid-template-columns: 1fr; padding: 28px 16px 100px; }
}

/* Older page stylesheets style bare header/footer/nav; keep the shared chrome independent of them. */
header.site-header { display: block; max-width: none; margin: 0; padding: 0; gap: 0; border-top: 0; }
footer.site-footer { display: block; max-width: none; padding: 0; }
.site-header nav.site-nav { flex-direction: row; flex-wrap: nowrap; font-size: inherit; margin-left: 0; }
.site-header .site-nav a { text-decoration: none; }
.site-header .site-logo { color: var(--ink); text-decoration: none; }
.site-header .site-nav a, .site-header .site-nav button { border: 0; box-shadow: none; }


/* Motion layer (see monipick-motion.js). Content stays visible without JS; reduced motion disables all of it. */
.motion-ready .reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease; }
.motion-ready .reveal.is-in { opacity: 1; transform: none; filter: none; }
.spotlight::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s; background: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%); }
.spotlight:hover::after { opacity: 1; }
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.beam-border { position: relative; isolation: isolate; }
.beam-border::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--beam-angle), transparent 0 58%, var(--accent-on-dark) 80%, #fff 86%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam-spin 6s linear infinite; }
@keyframes beam-spin { to { --beam-angle: 360deg; } }
.flow-art { width: 100%; max-width: 640px; height: auto; display: block; margin: 8px auto 0; }
.flow-art .device { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.flow-art .screen { fill: var(--tint); }
.flow-art .cable { fill: none; stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.flow-art .beam { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 22; }
.flow-art .beam-video { stroke: var(--accent); animation: flow 1.6s linear infinite; }
.flow-art .beam-power { stroke: var(--c3); animation: flow 1.6s linear infinite reverse; }
.flow-art text { font-family: var(--font); font-size: 18px; font-weight: 700; }
.flow-art .label-video { fill: var(--brand); }
.flow-art .label-power { fill: color-mix(in srgb, var(--c3) 65%, var(--ink)); }
.flow-art .label-device { fill: var(--muted); font-weight: 600; }
@keyframes flow { to { stroke-dashoffset: -72; } }
@media (prefers-reduced-motion: reduce) {
  .beam-border::before, .flow-art .beam { animation: none; }
  .spotlight::after { display: none; }
}
.q-art { margin: 8px 0 20px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* Fixed seller photos overlay the intact specification drawing. */
.card-stage, .detail-stage, .vs-stage { position: relative; }
.card-stage > .product-photo, .detail-stage > .product-photo, .vs-stage > .product-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; background: #fff; border-radius: 16px;
}
.product-photo[hidden], .question-photo[hidden] { display: none; }
.q-model > .question-photo { float: left; width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; margin-right: 12px; }
.page .q-model:has(> .question-photo:not([hidden])) { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; }
.page .q-model > .question-photo { grid-row: 1 / 3; margin: 0; }

/* picks: three owner-approved models per use, one per spec step. Static HTML from scripts/build_picks.py: every set
   behind tabs on the home, the one fitting set on a situation page. The big number on each card is the step it
   was picked for. One copy for both pages, so nothing here may lean on a page stylesheet. */
.pk-disclosure { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.pk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mp .pk-tabs button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.mp .pk-tabs button[aria-pressed="true"] { background: var(--lit); border-color: var(--lit); color: var(--on-lit); }
.pk-rule { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); max-width: 34em; }
.pk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 12px 14px; align-items: start; }
.pk-card .card-stage { display: grid; place-items: center; width: 96px; height: 96px; min-height: 0; padding: 10px; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, var(--stage-a) 0%, var(--stage-b) 70%); }
.pk-card .card-stage > .product-photo { border-radius: 12px; }
.pk-card .card-stage svg { max-width: 100%; height: auto; }
.pk-body { display: grid; gap: 5px; min-width: 0; }
.pk-step { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.pk-step b { font: 900 27px / 1 var(--num); color: var(--brand); }
.pk-step span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
/* The model name is an h4 on the home and an h3 on a situation page; document pages style bare h3. */
.pk-card .pk-body h3, .pk-card .pk-body h4 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.pk-card .pk-body h3 small, .pk-card .pk-body h4 small { margin-right: 6px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pk-why { margin: 0; font-size: 13.5px; color: var(--muted); }
.pk-btns { grid-column: 1 / -1; display: flex; gap: 10px; }
.pk-btns a { flex: 1; text-align: center; border-radius: 10px; padding: 12px 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.pk-btns .buy { flex: 1.25; background: var(--lit); color: var(--on-lit); }
.pk-btns .spec { border: 1px solid var(--line); color: var(--ink); }
.pk-more { margin: 14px 0 0; font-size: 14.5px; }
.pk-more a, .pk-note a { color: var(--brand); text-underline-offset: 3px; }
.pk-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
@media (min-width: 900px) { .pk-list { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

/* Respect reduced motion across page-specific transitions and smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body.mp *, body.mp *::before, body.mp *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .motion-ready .reveal { opacity: 1; transform: none; filter: none; }
}
