:root {
  --paper: #f4f1eb;
  --card: #fffdf9;
  --ink: #18201d;
  --muted: #5e655f;
  --line: #dddcd5;
  --acid: #d9f45f;
  --orange: #ff6d4b;
  --blue: #4c5af3;
  --sky: #c9eafa;
  --shadow: 0 18px 50px rgba(30, 35, 31, .08);
  --radius: 24px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="ko"] { --font: ui-sans-serif, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(217,244,95,.19), transparent 20rem),
    radial-gradient(circle at 93% 28%, rgba(201,234,250,.34), transparent 22rem),
    var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] :is(h1, h2, h3, p, strong, small, button, a) { word-break: keep-all; overflow-wrap: break-word; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 12px;
  top: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(18px, 3vw, 44px);
  border-bottom: 1px solid rgba(24, 32, 29, .10);
  background: rgba(244, 241, 235, .86);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}
.brand-copy { display: grid; gap: 1px; line-height: 1; }
.brand-copy strong { font-size: 22px; font-weight: 800; letter-spacing: -1px; }
.brand-copy small { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.brand-dot { color: var(--orange); }
.brand-mark {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  padding: 6px;
  border-radius: 9px;
  background: var(--ink);
  transform: rotate(-4deg);
}
.brand-mark i { width: 4px; border-radius: 4px 4px 1px 1px; background: var(--acid); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 12px; }

.location-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  padding: 7px 13px 7px 10px;
  border: 1px solid rgba(24,32,29,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  cursor: pointer;
}
.location-pill:hover { border-color: rgba(24,32,29,.28); background: white; }
.location-pulse {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
}
.location-pulse::before, .location-pulse::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.location-pulse::after { inset: 5px; border: 1px solid var(--ink); background: transparent; opacity: .35; }
.location-copy { display: grid; text-align: left; line-height: 1.1; }
.location-copy small { color: var(--muted); font-size: 11px; font-weight: 500; }
.location-copy strong { margin-top: 2px; font-size: 13px; }
.location-pill > svg { width: 15px; height: 15px; margin-left: auto; }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.language-control { display: block; }
.language-control select {
  height: 34px;
  padding: 0 27px 0 10px;
  border: 1px solid rgba(24,32,29,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.language-control select:hover, .language-control select:focus-visible { border-color: rgba(24,32,29,.35); background-color: white; outline: 0; }
.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover { background: rgba(24,32,29,.07); }
.icon-button svg { width: 23px; height: 23px; }
.saved-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 99px;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.search-box {
  max-width: 680px;
  height: 48px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}
.search-box svg { width: 20px; height: 20px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.search-box button { border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }

.page-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 28px auto 100px;
  display: grid;
  grid-template-columns: 250px minmax(0, 680px) 250px;
  justify-content: center;
  align-items: start;
  gap: clamp(24px, 3vw, 48px);
}
.right-rail { position: sticky; top: 102px; display: grid; gap: 16px; }
.nearby-card { border: 1px solid rgba(24,32,29,.11); border-radius: 20px; background: rgba(255,253,249,.68); }
.section-kicker {
  color: #6b716c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.trust-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--acid); }
.trust-icon svg { width: 22px; height: 22px; }
.sort-button { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.5); font-size: 11px; font-weight: 700; cursor: pointer; }
.sort-button:hover { background: white; }
.sort-button svg { width: 16px; height: 16px; }
.active-notice { margin: 0 0 13px; display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-radius: 12px; background: #e7e4dd; color: var(--muted); font-size: 11px; }
.active-notice button { border: 0; background: transparent; color: var(--ink); font-size: 10px; font-weight: 800; text-decoration: underline; cursor: pointer; }

.feed { display: grid; gap: 22px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
.price-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; background: var(--acid); color: var(--ink); font-size: 11px; font-weight: 900; box-shadow: 0 5px 15px rgba(0,0,0,.15); }
.price-badge.discount { background: #ffd4c8; }
.price-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.empty-state { padding: 70px 30px; text-align: center; border: 1px dashed #c8c7c0; border-radius: var(--radius); background: rgba(255,255,255,.35); }
.empty-state > span { color: var(--muted); font-size: 24px; }
.empty-state h3 { margin: 17px 0 7px; font-size: 20px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 14px; }
.empty-state button { margin-top: 18px; padding: 11px 16px; border: 0; border-radius: 999px; background: var(--ink); color: white; font-size: 13px; font-weight: 700; cursor: pointer; }

.method-card { position: relative; overflow: hidden; margin-top: 24px; min-height: 250px; display: flex; align-items: center; padding: 38px; border-radius: 25px; background: var(--ink); color: white; }
.method-card > div { position: relative; z-index: 2; max-width: 410px; }
.method-card .section-kicker { color: var(--acid); }
.method-card h2 { margin: 10px 0 12px; font-size: 29px; letter-spacing: -1.1px; }
.method-card p { margin: 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.7; }
.method-card button { margin-top: 21px; padding: 0; border: 0; background: none; color: white; font-size: 13px; font-weight: 700; cursor: pointer; }
.method-card button > span:last-child { color: var(--acid); }
.method-card button .button-copy { color: white; }
.method-number { position: absolute; right: -4px; bottom: -37px; color: rgba(217,244,95,.10); font-size: 170px; font-weight: 900; letter-spacing: -16px; }

.nearby-card { padding: 22px; }
.nearby-card h3 { margin: 9px 0 16px; font-size: 19px; letter-spacing: -.6px; }
.nearby-list { display: grid; }
.nearby-city { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 11px 0; border: 0; border-bottom: 1px solid #dfded7; background: transparent; text-align: left; cursor: pointer; }
.nearby-city:last-child { border-bottom: 0; }
.nearby-city strong { display: block; font-size: 13px; }
.nearby-city small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.nearby-city > span:first-child { min-width: 0; }
.nearby-city > span:last-child { min-width: 35px; padding: 4px 6px; border-radius: 99px; background: #e8e5dd; color: #4f5751; font-size: 11px; text-align: center; }
.nearby-city:hover strong { color: var(--blue); }
.all-cities { width: 100%; margin-top: 12px; padding: 11px; border: 0; border-radius: 11px; background: var(--ink); color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.all-cities > span:last-child { color: var(--acid); }
.all-cities .button-copy { color: white; }
.mobile-nav { display: none; }

.modal-backdrop { position: fixed; z-index: 300; inset: 0; background: rgba(9,13,11,.55); backdrop-filter: blur(5px); animation: fadeIn .2s both; }
@keyframes fadeIn { from { opacity: 0; } }
dialog { color: var(--ink); }
dialog::backdrop { background: transparent; }
.sheet {
  position: fixed;
  z-index: 310;
  inset: auto 0 0;
  width: min(620px, 100%);
  max-height: min(82vh, 760px);
  margin: 0 auto;
  overflow: auto;
  padding: 12px 25px 24px;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--card);
  box-shadow: 0 -20px 60px rgba(0,0,0,.22);
  animation: sheetIn .25s both;
}
@keyframes sheetIn { from { transform: translateY(30px); opacity: 0; } }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 20px; border-radius: 99px; background: #d5d3cc; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.sheet-head h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -1px; }
.modal-close { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: #efede7; font-size: 25px; line-height: 1; cursor: pointer; }
.all-dfw-option, .detect-location { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 16px; text-align: left; cursor: pointer; }
.all-dfw-option { margin-top: 22px; border: 1px solid var(--line); background: white; }
.all-dfw-option:hover, .all-dfw-option.active { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(217,244,95,.65); }
.all-dfw-option > span:nth-child(2), .detect-location > span:nth-child(2) { display: grid; gap: 3px; }
.all-dfw-option strong, .detect-location strong { font-size: 13px; }
.all-dfw-option small, .detect-location small { color: rgba(24,32,29,.72); font-size: 11px; }
.all-dfw-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #dfe3ff; color: var(--blue); font-size: 10px; font-weight: 900; }
.area-check { margin-left: auto; color: transparent; font-weight: 900; }
.all-dfw-option.active .area-check { color: var(--ink); }
.detect-location { margin-top: 9px; border: 0; background: var(--acid); }
.detect-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: white; }
.detect-icon svg { width: 21px; height: 21px; }
.detect-location .arrow { margin-left: auto; font-size: 20px; }
.location-status { min-height: 18px; margin: 9px 0 2px; color: var(--muted); font-size: 12px; }
.city-grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--ink); font-size: 12px; font-weight: 800; }
.city-grid-head small { color: var(--muted); font-size: 10px; font-weight: 500; }
.city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.city-button { display: grid; gap: 2px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; cursor: pointer; }
.city-button strong { font-size: 13px; }
.city-button small { color: var(--muted); font-size: 10px; font-weight: 500; }
.city-button:hover, .city-button.active { border-color: var(--ink); background: var(--ink); color: white; }
.city-button:hover small, .city-button.active small { color: rgba(255,255,255,.7); }
.city-button:disabled { cursor: not-allowed; opacity: .45; }
.city-button:disabled:hover { border-color: var(--line); background: white; color: var(--ink); }
.city-button:disabled:hover small { color: var(--muted); }
.privacy-note { margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; }
.privacy-note svg { width: 14px; height: 14px; }

.detail-modal {
  position: fixed;
  z-index: 310;
  inset: 50% auto auto 50%;
  width: min(600px, calc(100% - 28px));
  max-height: min(88vh, 860px);
  margin: 0;
  overflow: auto;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 25px;
  background: var(--card);
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
  animation: detailIn .24s both;
}
@keyframes detailIn { from { opacity: 0; transform: translate(-50%, -47%) scale(.98); } }
.detail-close { position: fixed; z-index: 5; top: 13px; right: 13px; background: rgba(255,255,255,.88); }
.detail-hero { position: relative; min-height: 300px; display: flex; align-items: end; overflow: hidden; color: white; }
.detail-hero.methodology-hero { min-height: 250px; background: #18201d; }
.detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,15,12,.92), rgba(10,15,12,.05) 80%); }
.detail-hero-copy { position: relative; z-index: 2; padding: 28px; }
.detail-hero-copy .price-badge { margin-bottom: 13px; }
.detail-hero-copy h2 { max-width: 480px; margin: 0; font-size: 33px; line-height: 1.08; letter-spacing: -1.7px; }
.detail-body { padding: 26px 28px 30px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-fact { padding: 13px; border-radius: 13px; background: #f0eee8; }
.detail-fact small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.detail-fact strong { display: block; font-size: 11px; line-height: 1.45; }
.detail-summary { margin: 21px 0 0; font-size: 13px; line-height: 1.75; }
.condition-box { margin-top: 18px; padding: 15px; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: #fff1ec; }
.condition-box strong { display: block; margin-bottom: 5px; font-size: 10px; }
.condition-box p { margin: 0; color: #6d5f59; font-size: 10px; line-height: 1.6; }
.sources-panel { margin-top: 25px; }
.source-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.source-head h3 { margin: 0; font-size: 16px; }
.source-head span { padding: 5px 8px; border-radius: 99px; background: #e2f3e7; color: #187f49; font-size: 8px; font-weight: 800; }
.source-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #e2e0da; text-decoration: none; }
.source-index { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: white; font-size: 11px; font-weight: 700; }
.source-copy { min-width: 0; display: grid; gap: 3px; }
.source-copy strong { font-size: 13px; }
.source-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.source-item > span:last-child { margin-left: auto; font-size: 16px; }
.source-item:hover .source-copy strong { color: var(--blue); }
.sort-sheet { width: min(500px, 100%); }
.sort-options { margin-top: 15px; display: grid; }
.sort-options button { display: grid; grid-template-columns: 1fr 22px; padding: 14px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.sort-options button:disabled { cursor: not-allowed; opacity: .45; }
.sort-options span { font-size: 13px; font-weight: 800; }
.sort-options small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.sort-options i { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 18px; height: 18px; border: 1px solid #aaa; border-radius: 50%; }
.sort-options button.active i { border: 5px solid var(--ink); }

.toast { position: fixed; z-index: 400; left: 50%; bottom: 28px; max-width: calc(100% - 32px); padding: 12px 17px; transform: translate(-50%, 20px); border-radius: 999px; background: var(--ink); color: white; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

html[lang="ko"] :is(.method-card h2, .nearby-card h3, .sheet-head h2, .detail-hero-copy h2) { letter-spacing: -.45px; line-height: 1.35; text-wrap: balance; }
html[lang="ko"] :is(.detail-summary, .condition-box p, .method-card p) { line-height: 1.8; text-wrap: pretty; }

@media (max-width: 860px) {
  body { padding-bottom: 70px; }
  .topbar { height: 64px; padding: 0 16px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 25px; height: 25px; padding: 5px; }
  .brand-mark i { width: 3px; }
  .location-pill { min-width: 128px; padding: 6px 9px 6px 7px; }
  .location-pulse { width: 25px; height: 25px; }
  .location-copy strong { font-size: 10px; }
  .top-actions .saved-trigger { display: none; }
  .page-shell { width: 100%; margin: 0 auto 40px; display: block; }
  .right-rail { display: none; }
  .active-notice, .feed, .method-card { margin-left: 13px; margin-right: 13px; }
  .method-card { margin-bottom: 18px; }
  .mobile-nav {
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: 10px;
    width: min(410px, calc(100% - 28px));
    height: 61px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 22px;
    background: rgba(23,30,27,.93);
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
    backdrop-filter: blur(14px);
  }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 17px; background: transparent; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .mobile-nav .active { background: var(--acid); color: var(--ink); }
  .mobile-nav svg { width: 21px; height: 21px; }
  .toast { bottom: 82px; }
}

@media (max-width: 560px) {
  .top-actions .icon-button { width: 36px; height: 36px; }
  .brand { gap: 7px; }
  .location-copy small { display: none; }
  .location-pill > svg { width: 13px; }
  .method-card { min-height: 270px; padding: 30px 24px; }
  .method-card h2 { font-size: 25px; }
  .method-number { font-size: 130px; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .sheet { padding-left: 18px; padding-right: 18px; }
  .detail-hero { min-height: 330px; }
  .detail-hero-copy { padding: 24px 20px; }
  .detail-hero-copy h2 { font-size: 29px; }
  .detail-body { padding: 22px 20px 27px; }
  .detail-facts { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand > span:last-child { display: none; }
  .location-pill { min-width: 108px; }
  .language-control select { width: 67px; padding-left: 8px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Discovery-first home */
.page-shell {
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: minmax(0, 880px) 250px;
  gap: clamp(26px, 4vw, 50px);
}
.home-main { min-width: 0; }
.discovery-panel {
  padding: 24px;
  border: 1px solid rgba(24,32,29,.10);
  border-radius: 24px;
  background: rgba(255,253,249,.72);
  box-shadow: 0 12px 35px rgba(30,35,31,.05);
}
.home-location { display: none; }
.discovery-search.search-box {
  max-width: none;
  height: 58px;
  margin: 0;
  padding: 0 18px;
  border-color: rgba(24,32,29,.18);
  border-radius: 17px;
  box-shadow: 0 5px 18px rgba(30,35,31,.04);
}
.discovery-search.search-box:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(217,244,95,.58);
}
.discovery-search.search-box svg { width: 23px; height: 23px; color: var(--ink); }
.discovery-search.search-box input { font-size: 15px; font-weight: 600; }
.discovery-search.search-box input::placeholder { color: #747b76; font-weight: 400; }
.intent-scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.intent-group { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.intent-group-label {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.intent-chip {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d7d6cf;
  border-radius: 999px;
  background: white;
  color: #4f5551;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.intent-chip:hover { border-color: #8c918d; transform: translateY(-1px); }
.intent-chip.active { border-color: var(--ink); background: var(--ink); color: white; }
.intent-chip.value-intent.active { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.intent-chip.intent-default.active { border-color: #c9c8c1; background: #ebe9e3; color: #4f5551; }
.results-toolbar {
  scroll-margin-top: 86px;
  margin: 25px 0 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.results-count { display: grid; gap: 5px; }
.results-count strong { font-size: 14px; }
.results-count small { color: var(--muted); font-size: 11px; }
.active-notice { margin-bottom: 20px; }
.feed { gap: 44px; }
.listing-section { min-width: 0; }
.listing-section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(24,32,29,.13);
  padding-bottom: 12px;
}
.listing-section-head > div { display: flex; align-items: center; gap: 9px; }
.listing-section-head h2 { margin: 0; font-size: 24px; line-height: 1.1; letter-spacing: -.9px; }
.listing-section-head p { max-width: 320px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.section-symbol {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--acid);
  font-size: 12px;
  font-weight: 900;
}
.listing-section:nth-child(2) .section-symbol { background: #ffd5c9; }
.listing-section:nth-child(3) .section-symbol { background: var(--sky); }
.listing-section:nth-child(4) .section-symbol { background: #dfe3ff; color: var(--blue); }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.listing-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(24,32,29,.14);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(30,35,31,.055);
  animation: cardIn .4s both;
  transition: transform .2s ease, box-shadow .2s ease;
}
.listing-card:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(30,35,31,.09); }
.listing-media { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; background: #39423d; }
.listing-media-open { position: absolute; inset: 0; width: 100%; padding: 0; overflow: hidden; border: 0; background: #39423d; cursor: pointer; }
.listing-media-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.listing-card:hover .listing-media-open img { transform: scale(1.025); }
.listing-media-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,15,12,.38), transparent 42%); }
.listing-price {
  position: absolute;
  z-index: 2;
  left: 13px;
  bottom: 13px;
  max-width: calc(100% - 76px);
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 5px 17px rgba(0,0,0,.18);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.2px;
  text-transform: uppercase;
}
.listing-price.discount { background: #ffd4c8; }
.listing-save {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(14,20,17,.55);
  color: white;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.listing-save svg { width: 21px; height: 21px; }
.listing-save.saved { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.listing-save.saved svg { fill: currentColor; }
.listing-body { flex: 1; display: flex; flex-direction: column; padding: 16px 16px 14px; }
.listing-schedule { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid #e8e5de; }
.listing-time-status { color: #a63d29; font-size: 11px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.listing-date { color: #353d38; font-size: 13px; font-weight: 600; line-height: 1.5; }
.listing-title {
  width: 100%;
  margin: 11px 0 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -.7px;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.listing-title-base { display: block; text-wrap: balance; }
.listing-title-benefit {
  display: block;
  color: #34423a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.35px;
  text-wrap: balance;
}
.listing-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.listing-summary {
  margin: 7px 0 0;
  overflow: hidden;
  display: -webkit-box;
  color: #4d5751;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.58;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.listing-place { margin-top: 11px; display: flex; align-items: flex-start; gap: 8px; }
.listing-place > svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: #686f6a; }
.listing-place-copy { min-width: 0; display: grid; gap: 3px; }
.listing-place-copy strong { overflow: hidden; color: #2f3833; font-size: 13px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.listing-place-copy > span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.listing-verification {
  width: 100%;
  margin-top: 12px;
  padding: 11px 0 1px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  border: 0;
  border-top: 1px solid #e6e3dc;
  background: transparent;
  color: #33704f;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.verified-check { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #e1f3e7; color: #197b47; font-size: 11px; }
.rail-verify { padding: 22px; border: 1px solid rgba(24,32,29,.11); border-radius: 20px; background: var(--ink); color: white; }
.rail-verify .trust-icon { margin-bottom: 15px; color: var(--ink); }
.rail-verify > strong { display: block; font-size: 14px; line-height: 1.35; }
.rail-verify p { margin: 9px 0 0; color: rgba(255,255,255,.74); font-size: 11px; line-height: 1.6; }
.rail-verify button { margin-top: 15px; padding: 0; border: 0; background: transparent; color: var(--acid); font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }
.method-card { margin-top: 44px; }

@media (max-width: 960px) {
  .page-shell { grid-template-columns: minmax(0, 760px); }
  .right-rail { display: none; }
}

@media (max-width: 680px) {
  body { padding-bottom: 78px; }
  .topbar { height: 60px; grid-template-columns: 1fr auto; padding: 0 14px; }
  .brand > span:last-child { display: grid; }
  .brand-copy strong { font-size: 20px; }
  .brand-mark { width: 27px; height: 27px; }
  .location-pill { display: none; }
  .top-actions .saved-trigger { display: grid; }
  .top-actions { grid-column: 2; }
  .language-control select { height: 32px; }
  .page-shell { width: 100%; margin: 0 auto 32px; display: block; }
  .home-main { width: 100%; }
  .discovery-panel { padding: 14px 14px 17px; border: 0; border-bottom: 1px solid rgba(24,32,29,.10); border-radius: 0; background: rgba(255,253,249,.72); box-shadow: none; }
  .home-location { display: flex; align-items: center; gap: 7px; margin: 1px 0 13px; padding: 5px 2px; border: 0; background: transparent; cursor: pointer; }
  .home-location > svg:first-child { width: 17px; height: 17px; color: var(--orange); }
  .home-location strong { font-size: 13px; }
  .home-location .location-chevron { width: 14px; height: 14px; }
  .discovery-search.search-box { height: 52px; padding: 0 14px; border-radius: 15px; }
  .discovery-search.search-box input { font-size: 14px; }
  .intent-scroll { flex-wrap: nowrap; gap: 7px; margin: 13px -14px 0; padding: 1px 14px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .intent-scroll::-webkit-scrollbar { display: none; }
  .intent-chip { min-height: 36px; padding: 8px 13px; scroll-snap-align: start; }
  .intent-group-label { flex: 0 0 auto; scroll-snap-align: start; }
  .results-toolbar { margin: 18px 14px 13px; scroll-margin-top: 72px; }
  .results-count strong { font-size: 12px; }
  .sort-button { padding: 9px 10px; }
  .sort-button span { display: none; }
  .active-notice { margin: 0 14px 18px; }
  .feed { gap: 38px; margin: 0; }
  .listing-section { margin: 0 14px; }
  .listing-section-head { align-items: flex-start; margin-bottom: 12px; }
  .listing-section-head h2 { font-size: 21px; }
  .listing-section-head p { display: none; }
  .listing-grid { grid-template-columns: 1fr; gap: 12px; }
  .listing-card { border-radius: 20px; }
  .listing-media { aspect-ratio: 16 / 9.5; }
  .listing-price { font-size: 16px; }
  .listing-title { font-size: 22px; }
  .method-card { margin: 40px 14px 18px; }
  .empty-state { margin: 0 14px; }
  .mobile-nav { bottom: 9px; }
}

@media (max-width: 390px) {
  .language-control select { width: 61px; }
  .top-actions { gap: 2px; }
  .listing-body { padding: 15px 14px 13px; }
  .listing-title { font-size: 20px; }
  .listing-price { max-width: calc(100% - 68px); font-size: 14px; }
}

/* Decision-first listing detail */
.detail-modal {
  width: min(680px, calc(100% - 28px));
  max-height: min(92vh, 920px);
  overflow: hidden;
  flex-direction: column;
  border-radius: 24px;
}
.detail-modal[open] { display: flex; }
.detail-scroll-area {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #9ca39e transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  background: var(--card);
}
.detail-scroll-area::-webkit-scrollbar { width: 11px; }
.detail-scroll-area::-webkit-scrollbar-track { margin-block: 9px; background: transparent; }
.detail-scroll-area::-webkit-scrollbar-thumb {
  min-height: 54px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: #9ca39e;
  background-clip: content-box;
}
.detail-scroll-area::-webkit-scrollbar-thumb:hover { background-color: #68716b; }
.detail-dialog-bar {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  border-bottom: 1px solid rgba(24,32,29,.12);
  background: rgba(255,253,249,.96);
  box-shadow: 0 5px 16px rgba(24,32,29,.055);
  backdrop-filter: blur(14px);
}
.detail-back-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: #efede7;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.detail-back-button > span:first-child { font-size: 20px; font-weight: 500; line-height: 1; }
.detail-dialog-actions { display: flex; align-items: center; gap: 4px; }
.detail-toolbar-button, .detail-close-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.detail-toolbar-button:hover { background: #efede7; }
.detail-toolbar-button svg { width: 21px; height: 21px; }
.detail-toolbar-button.saved { background: var(--acid); }
.detail-toolbar-button.saved svg { fill: currentColor; }
.detail-close-button { margin-left: 3px; border: 1px solid #d7d5ce; background: #efede7; color: var(--ink); }
.detail-close-button svg { width: 20px; height: 20px; stroke-width: 2.1; }
.detail-close-button:hover { border-color: #bcbeb9; background: #e2dfd7; }
.detail-dialog-bar :is(button):focus-visible { outline: 3px solid var(--acid); outline-offset: 2px; }
.detail-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #39423d; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,15,12,.16), transparent 42%); }
.detail-decision { padding: 30px 32px 28px; }
.detail-price { display: inline-flex; padding: 8px 11px; border-radius: 9px; background: var(--acid); font-size: 14px; font-weight: 950; line-height: 1; text-transform: uppercase; }
.detail-price.discount { background: #ffd4c8; }
.detail-decision h2 { max-width: 580px; margin: 16px 0 12px; display: grid; gap: 9px; font-size: 35px; font-weight: 800; line-height: 1.15; letter-spacing: -1.25px; text-wrap: balance; overflow-wrap: anywhere; }
.detail-title-base { display: block; text-wrap: balance; }
.detail-title-benefit { display: block; color: #34423a; font-size: 25px; font-weight: 700; line-height: 1.32; letter-spacing: -.45px; text-wrap: balance; }
.detail-overview { max-width: 560px; margin: 0 0 26px; color: #3f4943; font-size: 16px; font-weight: 400; line-height: 1.7; letter-spacing: 0; text-wrap: pretty; }
.detail-primary-facts { display: grid; gap: 13px; }
.detail-primary-facts p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #343d37; font-size: 14px; line-height: 1.55; }
.detail-primary-facts svg { width: 19px; height: 19px; flex: 0 0 auto; color: #606862; }
.detail-primary-facts strong { font-weight: 700; }
.detail-primary-facts span { color: var(--muted); }
.detail-action-row { margin-top: 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.detail-action-row a { min-height: 50px; display: flex; align-items: center; justify-content: center; border: 1px solid #cfcfc8; border-radius: 13px; background: white; font-size: 14px; font-weight: 700; text-decoration: none; }
.detail-action-row .official-action { border-color: var(--ink); background: var(--ink); color: white; }
.detail-action-row a:hover { transform: translateY(-1px); border-color: #9da29d; box-shadow: 0 7px 18px rgba(24,32,29,.08); }
.detail-action-row a:focus-visible { outline: 3px solid var(--acid); outline-offset: 2px; }
.detail-section { padding: 30px 32px; border-top: 1px solid #e1dfd8; }
.detail-section > h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.highlights-section { background: #f7f5ef; }
.detail-highlight-list { margin-top: 15px; display: grid; gap: 0; }
.detail-highlight { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid #dedbd1; border-radius: 0; background: transparent; box-shadow: none; }
.detail-highlight:last-child { border-bottom: 0; }
.detail-highlight-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--acid); font-size: 11px; font-weight: 800; letter-spacing: .2px; }
.detail-highlight p { margin: 0; color: #2f3833; font-size: 14px; font-weight: 600; line-height: 1.58; text-wrap: pretty; }
.visit-section { background: #fffdfa; }
.visit-fact-grid { margin-top: 18px; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid #dcd9d1; border-radius: 15px; background: white; }
.visit-fact { min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 13px; padding: 17px 18px; border: 0; border-bottom: 1px solid #e0ddd5; border-radius: 0; background: transparent; }
.visit-fact:last-child { border-bottom: 0; }
.visit-fact-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #eef1e5; color: #344239; }
.visit-fact-icon svg { width: 18px; height: 18px; }
.visit-fact div > span { display: block; color: #58615b; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.visit-fact strong { display: block; margin-top: 4px; color: #26302a; font-size: 15px; font-weight: 600; line-height: 1.6; }
.practical-tips { margin-top: 12px; padding: 16px; border: 1px solid #d8e1d2; border-radius: 15px; background: #f4f8ef; }
.practical-tips h4 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.1px; }
.practical-tip-list { margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; list-style: none; }
.practical-tip-list li { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 8px; }
.practical-tip-list li > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #dcefdc; color: #247346; font-size: 11px; font-weight: 800; }
.practical-tip-list p { margin: 0; color: #344139; font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.before-callout { margin-top: 14px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 11px; padding: 16px 18px; border: 1px solid #f0c9b8; border-left: 4px solid var(--orange); border-radius: 12px; background: #fff5ef; }
.before-callout-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--orange); color: white; font-size: 14px; font-weight: 800; }
.before-callout h4 { margin: 0 0 5px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.before-callout p { margin: 0; color: #4f453f; font-size: 15px; line-height: 1.65; }
.verification-section { background: #f4f8ec; }
.verification-title { display: flex; align-items: center; gap: 11px; }
.verified-seal { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #1f8a50; color: white; font-size: 17px; font-weight: 900; }
.verification-title h3 { margin: 0; font-size: 17px; }
.verification-title p { margin: 4px 0 0; color: #496353; font-size: 12px; font-weight: 600; }
.verification-grid { margin: 20px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.verification-grid span { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #dce5d2; color: #3b453f; font-size: 13px; font-weight: 600; }
.verification-grid b { color: #1d8a4f; }
.detail-sources { margin-top: 14px; border-top: 1px solid #d7e0cd; }
.detail-sources summary { padding: 17px 0 3px; display: flex; justify-content: space-between; color: var(--ink); font-size: 13px; font-weight: 700; list-style: none; cursor: pointer; }
.detail-sources summary::-webkit-details-marker { display: none; }
.detail-sources[open] summary span { transform: rotate(90deg); }
.detail-source-list { margin-top: 12px; border-radius: 13px; background: rgba(255,255,255,.58); }
.detail-source-list .source-item { padding-left: 10px; padding-right: 10px; }
.similar-list { margin-top: 15px; display: grid; gap: 8px; }
.similar-card { width: 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 7px; border: 1px solid #dfddd6; border-radius: 14px; background: white; text-align: left; cursor: pointer; }
.similar-card:hover { border-color: #aaada7; }
.similar-card img { width: 76px; height: 65px; object-fit: cover; border-radius: 10px; }
.similar-copy { min-width: 0; display: grid; gap: 3px; }
.similar-copy small { color: #a63d29; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.similar-copy strong { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.similar-copy > span { color: var(--muted); font-size: 12px; }
.similar-card > span:last-child { padding-right: 7px; }

@media (max-width: 680px) {
  .detail-modal {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    transform: none;
    border-radius: 0;
    animation: none;
  }
  .detail-scroll-area::-webkit-scrollbar { width: 9px; }
  .detail-dialog-bar { min-height: 60px; padding: 8px 10px; }
  .detail-back-button { min-height: 42px; }
  .detail-photo { aspect-ratio: 4 / 2.7; }
  .detail-decision { padding: 23px 20px 22px; }
  .detail-decision h2 { margin-top: 13px; font-size: 29px; letter-spacing: -1.1px; }
  .detail-title-benefit { font-size: 21px; }
  .detail-overview { margin-bottom: 22px; font-size: 15px; line-height: 1.7; }
  .detail-section { padding: 24px 20px; }
  .detail-highlight { padding: 14px 0; }
  .visit-fact { padding: 15px 14px; }
  .before-callout { padding: 15px 14px; }
  .practical-tip-list { grid-template-columns: 1fr; }
  .detail-action-row { position: static; margin: 22px 0 0; padding: 0; border: 0; background: transparent; }
  .verification-grid { grid-template-columns: 1fr; gap: 0; }
}

html[lang="ko"] :is(
  .brand-copy strong,
  .listing-section-head h2,
  .listing-title,
  .listing-title-benefit,
  .detail-decision h2,
  .detail-title-benefit,
  .detail-section > h3
) { letter-spacing: -.02em; }

html[lang="ko"] :is(
  .listing-time-status,
  .visit-fact div > span,
  .similar-copy small
) {
  letter-spacing: 0;
  text-transform: none;
}
