/* JP Bound Clinic Finder — Korean / English / Japanese price pages.
   Tokens follow app 0.5.0: white field, brand blue #2B6BE6, soft surface #E0ECFF.
   Spacing scale 4/8/12/16/24/32/48/64/96. Type scale 14/16/18/22/28/36/52. */

:root {
  --paper: #ffffff;
  --ink: #15201C;
  --muted: #4E5C58;
  --tint: #F3F7FF;
  --tint-2: #E0ECFF;
  --line: #D3DDEA;
  --mint: #2B6BE6;
  --mint-ink: #1851C7;
  --peach: #3A4A62;
  --peach-bg: #E0ECFF;
  --warn: #9A3B1A;
  --good-bg: #E3F6E6;
  --good: #187A2C;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-s: 10px; --r: 16px; --r-l: 24px;
  --tap: 48px;
  --wrap: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
  --press: cubic-bezier(.2, .8, .25, 1.15);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--font);
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--mint-ink); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--r-s); z-index: 10; }
.skip:focus { top: var(--s3); }

.wrap { width: min(100% - 2 * var(--s5), var(--wrap)); margin-inline: auto; }
.narrow > * { max-width: 760px; }

/* Buttons: one solid style, one small variant. Press feedback = scale, no glow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 var(--s5); border-radius: 999px;
  background: var(--mint); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: scale 130ms var(--press), background-color 150ms;
}
.btn:hover { background: var(--mint-ink); }
.btn:active { scale: .96; }
.btn-small { min-height: 40px; padding: 0 var(--s4); font-size: .9375rem; white-space: nowrap; flex: none; }
.play { display: inline-block; border-radius: 10px; transition: scale 130ms var(--press); }
.play:active { scale: .96; }
.play img { width: 184px; }
.text-link { font-weight: 700; color: var(--mint-ink); text-underline-offset: 4px; min-height: var(--tap); display: inline-flex; align-items: center; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 60px; }
.brand { display: flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; min-width: 0; }
.brand img { border-radius: 9px; flex: none; }
.brand span { min-width: 0; }

/* Sections */
.section { padding-block: var(--s9) var(--s8); }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s3); }
.pose-card {
  background: var(--tint-2); border-radius: var(--r);
  padding: 8px 10px 0; display: inline-grid; width: max-content; place-items: end center;
}
.pose-card img { width: auto; height: 72px; max-width: none; }
.section-lede { margin-top: var(--s3); color: var(--muted); max-width: 40em; font-size: 1.0625rem; }

/* How-to */
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s5); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s4); }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint-2); color: var(--mint-ink); font-weight: 800;
}
.steps h3 { font-size: 1.125rem; font-weight: 800; padding-top: 6px; }
.steps p { margin-top: var(--s1); color: var(--muted); }

/* Tsushima */
.tsushima-grid { display: grid; gap: var(--s6); }
.ferry-map { margin: var(--s5) 0 0; }
.ferry-map svg { width: 100%; height: auto; display: block; }
.ferry-map figcaption { margin-top: var(--s2); font-size: .875rem; color: var(--muted); }
.m-label { font: 800 15px var(--font); fill: var(--ink); }
.m-sub { font: 500 12px var(--font); fill: var(--muted); }
.tips { display: grid; gap: var(--s5); align-content: start; }
.tips h3 { font-size: 1.125rem; font-weight: 800; }
.tips p { margin-top: var(--s1); color: var(--muted); }
.soon { padding: var(--s4); border-radius: var(--r); background: var(--tint-2); color: var(--ink); }
.soon strong { display: inline-block; margin-right: var(--s2); padding: 0 10px; border-radius: 999px; background: var(--mint); color: #fff; font-size: .875rem; }

/* FAQ — native details, exclusive via name */
.faq { margin-top: var(--s5); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 64px; padding: var(--s3) 0; font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--mint); flex: none; transition: rotate 200ms; }
.faq details[open] summary::after { rotate: 45deg; }
.faq-a { padding-bottom: var(--s5); color: var(--muted); }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { transition: block-size .28s ease-in-out, content-visibility .28s allow-discrete; }
}

.disclaimer { padding-block: var(--s6); background: var(--tint); font-size: .875rem; color: var(--muted); }

.foot { padding-block: var(--s6) var(--s7); font-size: .875rem; color: var(--muted); }
.foot-grid { display: grid; gap: var(--s4); }
.foot-name { font-weight: 800; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.foot nav a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.fine { font-size: .8125rem; }

/* Ferry legend */
.legend { list-style: none; padding: 0; margin: 0 0 var(--s2); display: grid; gap: var(--s1); font-size: .9375rem; color: var(--ink); }
.legend li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s2); }
.legend strong { font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-n { background: var(--mint); }
.dot-s { background: var(--peach); }


/* ---------- Finder (first screen) ---------- */
.finder { padding-block: var(--s5) var(--s8); }
.finder h1 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); font-weight: 800; }
.intro { margin-top: var(--s1); color: var(--muted); font-size: .9375rem; }
/* Running cat sits on a solid #E0ECFF card beside the title, not free-floating. */
.head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: var(--s3); margin-bottom: var(--s4); }
.head > div { padding-bottom: var(--s4); min-width: 0; }
.mascot-card {
  background: var(--tint-2); border-radius: var(--r);
  padding: 8px 10px 0; display: inline-grid; place-items: end center;
  width: max-content; pointer-events: none;
}
.mascot-card .mascot { width: auto; height: 84px; max-width: none; margin: 0; }
.highlight {
  margin: 0 0 var(--s4); padding: var(--s4);
  background: var(--tint-2); border-radius: var(--r);
  font-size: .9375rem; line-height: 1.6; color: var(--ink);
}
.sushi-row {
  display: flex; align-items: flex-end; justify-content: space-around;
  gap: var(--s2); list-style: none; margin: 0 0 var(--s5); padding: var(--s2) var(--s4);
  background: var(--tint-2); border-radius: var(--r);
}
.sushi-row img { width: auto; height: 36px; max-width: none; }
.controls { margin-top: 0; display: grid; gap: var(--s3); }
.no-js .controls, .no-js .result-bar .sort, .no-js .share, .no-js .rate { display: none; }

.search {
  display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s4);
  background: var(--tint); border-radius: 999px; color: var(--muted);
}
.search:focus-within { outline: 3px solid var(--mint); outline-offset: 2px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--ink); min-height: var(--tap); }
.search input:focus { outline: none; }

.field { display: grid; gap: var(--s1); }
.field-label { font-size: .8125rem; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: var(--s1); }
select {
  appearance: none; font: inherit; font-size: 1rem; color: var(--ink); min-height: var(--tap);
  padding: 0 40px 0 var(--s4); border: 0; border-radius: var(--r-s); background-color: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315201C' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; cursor: pointer;
}
.field select { width: 100%; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); }
.seg { display: inline-flex; padding: 3px; background: var(--tint); border-radius: 999px; }
.seg input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  min-height: 40px; padding: 0 var(--s4); display: inline-flex; align-items: center; border-radius: 999px;
  font-weight: 700; font-size: .9375rem; color: var(--muted); cursor: pointer; transition: background-color 150ms, color 150ms;
}
.seg input:checked + label { background: var(--ink); color: #fff; }
.seg input:focus-visible + label, .chips input:focus-visible + label { outline: 3px solid var(--mint); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips label {
  min-height: 40px; padding: 0 var(--s4); display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  background: var(--tint); font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: background-color 150ms, color 150ms, scale 130ms var(--press);
}
.chips label:active { scale: .96; }
.chips input:checked + label { background: var(--mint); color: #fff; }
.chips input:checked + label::before { content: "✓"; font-weight: 800; }

/* Result bar */
.result-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s5); }
.count { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.list-cheer { width: 56px; height: auto; max-width: none; margin: -4px 0 0; margin-right: auto; }
@media (max-width: 499px) {
  .list-cheer { width: 40px; margin: 0; margin-right: auto; }
}
.sort select { min-height: 40px; font-size: .9375rem; padding-left: var(--s3); }
.share {
  min-height: 40px; padding: 0 var(--s4); border: 0; border-radius: var(--r-s); background: var(--tint);
  font: inherit; font-size: .9375rem; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: scale 130ms var(--press);
}
.share:active { scale: .96; }
.list-basis { margin-top: var(--s1); font-size: .875rem; color: var(--muted); }

/* Rows */
.rows { list-style: none; margin: var(--s3) 0 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 104px; }
.row summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; column-gap: var(--s4); row-gap: 2px;
  padding: var(--s4) 0 var(--s1); -webkit-tap-highlight-color: transparent;
}
.row summary::-webkit-details-marker { display: none; }
.row summary:focus-visible { outline-offset: 2px; }
.r-name { min-width: 0; display: grid; }
.r-name strong { font-size: 1.0625rem; font-weight: 800; line-height: 1.4; }
.r-ja { font-size: .8125rem; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-price { display: grid; justify-items: end; align-content: start; grid-row: span 2; }
.r-yen { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; font-variant-numeric: tabular-nums; }
.r-won { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.r-meta { font-size: .875rem; color: var(--muted); grid-column: 1; grid-row: 3; }
.r-fee.is-unknown { color: var(--warn); font-weight: 600; }
.r-tags { grid-column: 1 / -1; grid-row: 4; list-style: none; margin: var(--s1) 0 0; padding: 0; display: flex; gap: 6px; }
.r-tags li { font-size: .8125rem; font-weight: 600; padding: 1px 10px; border-radius: 999px; background: var(--good-bg); color: var(--good); }
.r-src { font-size: .8125rem; color: var(--muted); padding-bottom: var(--s4); margin-top: var(--s1); }
.r-src a { color: var(--muted); text-underline-offset: 3px; }
.row details[open] summary .r-name strong { color: var(--mint-ink); }
.r-more { margin-top: var(--s3); padding: var(--s4); background: var(--tint); border-radius: var(--r); }
.r-more dl { margin: 0; display: grid; gap: var(--s2); }
.r-more dl div { display: grid; grid-template-columns: 8.5em 1fr; gap: var(--s3); font-size: .9375rem; }
.r-more dt { color: var(--muted); }
.r-more dd { margin: 0; }
.r-app { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: var(--s2); font-weight: 700; font-size: .9375rem; text-underline-offset: 4px; }
.row details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.row details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .row details::details-content { transition: block-size .24s ease-in-out, content-visibility .24s allow-discrete; }
}
.empty:not([hidden]) { display: flex; align-items: flex-end; gap: var(--s3); padding: var(--s5) 0 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.empty img { width: auto; height: 64px; margin-bottom: -3px; }
.empty p { padding-bottom: var(--s4); }
.r-report { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: var(--s2); font-size: .875rem; font-weight: 600; color: var(--mint-ink); text-underline-offset: 4px; }
.r-more q { font-style: normal; }

/* Price basis + rate */
.basis-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s3); margin-top: var(--s2); }
.basis-line .list-basis { margin: 0; }
.rate { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); }
.rate input { width: 4.5em; min-height: 40px; padding: 0 var(--s2); border: 0; border-radius: var(--r-s); background: var(--tint); font: inherit; font-weight: 700; color: var(--ink); text-align: center; }
.basis { font-size: .875rem; color: var(--muted); }
.basis summary { cursor: pointer; font-weight: 700; color: var(--mint-ink); min-height: var(--tap); display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.basis ul { margin: 0; padding: 0 0 var(--s3) 1.1em; display: grid; gap: var(--s1); }

/* App card (the one place the app is suggested in the content) */
.app-card { margin-top: var(--s7); display: grid; grid-template-columns: 64px 1fr; gap: var(--s4); align-items: start; padding: var(--s5); background: var(--tint); border-radius: var(--r-l); }
.app-card > img { width: 64px; border-radius: 14px; }
.app-card h2 { font-size: 1.125rem; font-weight: 800; }
.app-card p { margin-top: var(--s1); font-size: .9375rem; color: var(--muted); }
.app-card .play { margin-top: var(--s3); }
.app-card .play img { width: 160px; }

@media (min-width: 1000px) {
  .finder { padding-top: var(--s7); }
  .finder-grid { display: grid; grid-template-columns: 320px 1fr; gap: var(--s7); align-items: start; }
  .finder-side { position: sticky; top: 84px; }
  .result-bar { margin-top: 0; }
  .row summary { grid-template-columns: 1fr auto; padding-top: var(--s4); }
}
.ctl-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); align-items: center; }
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--s5)); padding-inline: var(--s5); }
.chips::-webkit-scrollbar { display: none; }
.chips label { flex: none; }
@media (min-width: 1000px) {
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.finder-side, .finder-main, .controls > * { min-width: 0; }

/* Expand cue: one small "+" per row, turns into "×" when open (same cue as the FAQ). */
.row summary::after { content: "+"; grid-column: 2; grid-row: 3; justify-self: end; align-self: center; font-size: 1.375rem; line-height: 1; color: var(--mint); transition: rotate 200ms; }
.row details[open] summary::after { rotate: 45deg; }

/* Language switch: three plain links with small flags, current one filled. Not a dropdown. */
.top-bar .brand { margin-right: auto; }
.langs { display: flex; gap: var(--s1); }
.langs a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 600; transition: background-color 150ms;
}
.langs a:hover { background: var(--tint); }
.langs a[aria-current="page"] { background: var(--tint-2); font-weight: 800; }
.langs svg { flex: none; border-radius: 2px; }
/* Phones: the language row sits above the brand row and scrolls away; the brand row stays pinned. */
@media (max-width: 719px) {
  .top { top: -45px; }
  .top-bar { flex-wrap: wrap; row-gap: 0; }
  .langs { order: -1; width: 100%; height: 45px; align-items: center; border-bottom: 1px solid var(--line); margin-inline: calc(-1 * var(--s5)); padding-inline: var(--s4); width: calc(100% + 2 * var(--s5)); }
  .langs a { min-height: 36px; font-size: .875rem; padding: 0 var(--s3); }
  /* Brand + button share one row: basis 0 so wrap doesn't park the button on a new line first. */
  .top-bar .brand { flex: 1 1 0%; min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html { scroll-padding-top: 72px; }
}

/* Map: our own SVG outline with region pins. Folded under "map" on phones, open in the side column on desktop. */
.map-box { margin-top: var(--s4); }
.map-box > summary {
  list-style: none; cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s4); border-radius: var(--r-s); background: var(--tint); font-weight: 700;
}
.pose-map { width: auto; height: 36px; max-width: none; flex: none; }
.map-box > summary::-webkit-details-marker { display: none; }
.map-box > summary::after { content: "+"; margin-left: auto; font-size: 1.375rem; line-height: 1; color: var(--mint); transition: rotate 200ms; }
.map-box[open] > summary::after { rotate: 45deg; }
.jp-map { position: relative; margin-top: var(--s3); max-width: 360px; margin-inline: auto; }
.jp-map svg { display: block; width: 100%; height: auto; }
.jp-map .land { fill: var(--tint-2); }
.jp-map .inset { fill: none; stroke: var(--line); stroke-width: 1; }
.jp-map .lead path { stroke: var(--mint); stroke-width: 1.25; }
.jp-map .lead circle { fill: var(--mint); }
.pin {
  position: absolute; translate: -50% -50%; min-height: 36px; padding: 0 var(--s3); border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer;
  background: var(--paper); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 600;
  box-shadow: 0 1px 2px rgb(21 32 28 / .14), 0 0 0 1px var(--line);
  transition: background-color 150ms, color 150ms, scale 130ms var(--press);
}
.pin::before { content: ""; position: absolute; inset: -4px; }   /* 44px tap area */
.pin b { font-weight: 800; color: var(--mint-ink); font-variant-numeric: tabular-nums; }
.pin:active { scale: .95; }
.pin[aria-pressed="true"] { background: var(--mint); color: #fff; box-shadow: none; }
.pin[aria-pressed="true"] b { color: #fff; }
.pin:disabled { opacity: .45; cursor: default; }
.pin-flat { position: relative; translate: none; background: var(--tint); box-shadow: none; min-height: 40px; }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.map-reset {
  min-height: 40px; padding: 0 var(--s3); border: 0; background: none; font: inherit; font-size: .9375rem; font-weight: 700;
  color: var(--mint-ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
@media (min-width: 1000px) {
  .map-box > summary {
    display: flex; pointer-events: none; cursor: default;
    background: transparent; padding: 0; min-height: 0; margin-bottom: var(--s3);
  }
  .map-box > summary::after { content: none; }
  .pose-map { height: 44px; }
  .map-box { margin-top: var(--s5); }
  .jp-map { margin-top: 0; max-width: none; }
  .finder-side { max-height: calc(100dvh - 100px); overflow-y: auto; scrollbar-width: thin; padding: 4px; margin: -4px; }
}
.no-js .map-box { display: none; }
.nw { white-space: nowrap; }
.count, .share, .sort select { white-space: nowrap; }
:lang(ja) body { word-break: normal; line-break: strict; }
:lang(ja) {
  --font: "Pretendard Variable", Pretendard, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
:lang(ja) .finder h1 { font-size: clamp(1.375rem, 1.2rem + .9vw, 1.75rem); }
:lang(en) .finder h1 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); }

/* Batch 5 — desktop only (≥1000px): wider left column (~39/61), tighter list rows.
   Phones keep the original layout. */
@media (min-width: 1000px) {
  /* 1280px → 384px left, 1440px → 420px left (≈39/61); the list keeps the page's right edge. */
  .finder-grid { grid-template-columns: clamp(340px, 30vw, 420px) minmax(0, 1fr); gap: var(--s7); }
  .finder h1 { font-size: 1.875rem; }
  .h1a { display: block; }
  /* Keep the title + intro in a column next to a shrink-wrapped mascot card (no overlap). */
  .head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .head > div { padding-bottom: var(--s4); padding-right: 0; }
  .mascot-card { position: static; margin: 0; }
  /* Tighter row rhythm: 12px above the name, 12px below the check line. */
  .row summary { padding-top: var(--s3); column-gap: var(--s5); }
  .r-src { padding-bottom: var(--s3); }
  .row { contain-intrinsic-size: auto 96px; }
}
/* Batch 5b — desktop only: five filter chips as a tidy 3 + 2 grid, less space above the map. */
@media (min-width: 1000px) {
  .finder { padding-top: var(--s5); }
  .chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
  .chips label { grid-column: span 2; justify-content: center; padding: 0 var(--s3); font-size: .875rem; white-space: nowrap; }
  .chips label:nth-of-type(n + 4) { grid-column: span 3; }
  .map-box { margin-top: var(--s4); }
}
/* Batch 5c — three control types read differently (desktop and mobile):
   pick-one switches = solid track + dark active segment; filter tags = outlined on/off toggles. */
:root { --track: #E3E7EE; --tag-line: #C9D0DA; }
.controls { gap: var(--s4); }
.seg { display: flex; padding: 4px; background: var(--track); border-radius: 999px; }
.seg label { flex: 1 1 auto; justify-content: center; color: var(--ink); }
.seg input:checked + label { background: var(--ink); color: #fff; }
.seg-field:not(.ctl-row .seg-field) .seg label { flex: 1 1 0; }
.chips label {
  background: transparent; border: 1px solid var(--tag-line); color: var(--ink);
  --pad: var(--s3); padding: 0 var(--pad); gap: var(--s1); font-size: .9375rem; font-weight: 600;
  transition: background-color 150ms, border-color 150ms, color 150ms, scale 130ms var(--press);
}
.chips input:checked + label { background: var(--mint); border-color: var(--mint); color: #fff; padding-left: calc(var(--pad) - 4px); }
.chips input:checked + label::before {
  content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) {
  .chips input:not(:checked) + label:hover { border-color: var(--muted); }
}
@media (min-width: 1000px) {
  .chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s2); }
  .chips label, .chips label:nth-of-type(n + 4) { grid-column: auto; justify-content: flex-start; font-size: .9375rem; }
  .chips input:not(:checked) + label { padding: 0 var(--pad); }
  .map-box { margin-top: var(--s5); }
}
/* Tag sizing per script so the five tags wrap 3 + 2 at 1280–1440 instead of leaving one alone. */
@media (min-width: 1000px) {
  :lang(ko) .chips label { --pad: var(--s4); font-size: 1rem; }
  :lang(en) .chips label { font-size: .875rem; }
}
