/* Muapee — minimal light theme */
:root {
  --bg: #ffffff;
  --soft: #f6f7f6;
  --soft-2: #eff1f0;
  --ink: #0f1412;
  --ink-2: #2b322f;
  --muted: #6b7470;
  --line: #e7eae8;
  --accent: #0f9d76;
  --accent-ink: #0b7a5c;
  --accent-soft: #e7f6f0;
  --warn-soft: #fff5e6;
  --warn: #c27a00;
  --danger: #c0392b;
  --star: #e5a100;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(15, 20, 18, .04), 0 8px 24px rgba(15, 20, 18, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Korean & Chinese: tighter tracking looks cramped, and Korean should break between words */
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: -.01em; }
:lang(ko) { word-break: keep-all; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons, inputs, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn .icon { width: 18px; height: 18px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 9px;
  border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--ink); text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--soft); }

.input {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--soft-2); }
.input-sm { width: 96px; padding: 7px 10px; font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: .9rem; cursor: pointer; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: #c9cfcc; background: var(--soft); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .icon { width: 15px; height: 15px; }
.chip .count { color: var(--muted); font-size: .8em; }
.chip[aria-pressed="true"] .count { color: #b9c2be; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; background: var(--warn-soft); color: var(--warn); padding: 3px 10px; border-radius: 999px; }
.hint { font-size: .87rem; color: var(--muted); margin: 8px 0 0; }
.error { color: var(--danger); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; color: var(--ink); }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-search { position: relative; display: flex; align-items: center; background: var(--soft); border-radius: 999px; padding: 0 14px; height: 40px; width: 240px; margin-right: 6px; }
.header-search .icon { width: 17px; height: 17px; color: var(--muted); }
.header-search input { border: 0; background: transparent; font: inherit; font-size: .92rem; padding: 0 8px; width: 100%; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search:focus-within { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(0, 0, 0, .06); }
.lang-code { font-size: .78rem; font-weight: 600; }
.fav-count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 50; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: .93rem; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--soft); }
.dropdown-menu [aria-current="true"] { font-weight: 600; }
.dropdown-menu [aria-current="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); }

@media (max-width: 1020px) { .header-search { display: none; } }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, .06); }
  .menu-open .nav { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .header-row { gap: 12px; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero-inner { max-width: 820px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.hero-search {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 7px 7px 20px; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s;
}
.hero-search:focus-within { border-color: #cdd3d0; box-shadow: 0 0 0 5px var(--soft-2), var(--shadow); }
.hero-search > .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 10px 4px; background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search .btn { padding: 12px 22px; }
.hero-chips { justify-content: center; margin-top: 22px; }
.recent { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: .88rem; }
.recent .chip { font-size: .82rem; padding: 4px 11px; }
@media (max-width: 640px) {
  .hero { padding: 44px 0 28px; }
  .hero-search { padding-left: 16px; }
  .hero-search .btn { padding: 11px 16px; }
}

/* ---------- autocomplete ---------- */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 6px; z-index: 60; text-align: left; max-height: 360px; overflow-y: auto; }
.suggest button { display: flex; justify-content: space-between; gap: 16px; width: 100%; border: 0; background: none; padding: 10px 14px; border-radius: 12px; cursor: pointer; font-size: .95rem; }
.suggest button[aria-selected="true"], .suggest button:hover { background: var(--soft); }
.suggest .s-vi { color: var(--accent-ink); font-weight: 500; white-space: nowrap; }
.suggest mark { background: none; color: inherit; font-weight: 700; }

/* ---------- sections ---------- */
.section { padding: 36px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.link-arrow { font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none; }
.link-arrow:hover { color: var(--accent-ink); }

/* result */
.result { margin-top: 8px; padding: 22px; border-color: #dfe3e1; box-shadow: var(--shadow); }
.result-top { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.result-field { flex: 1 1 320px; }
.result label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.vi-input { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; padding: 12px 16px; }
.result-actions { display: flex; gap: 8px; }
.sort-row { margin-top: 16px; font-size: .88rem; }
.sort-row .chip { font-size: .84rem; padding: 6px 12px; }
@media (max-width: 560px) { .result-actions { width: 100%; } .result-actions .btn { flex: 1; } }

/* sale strip */
.sale-strip { display: flex; align-items: center; gap: 14px; margin: 24px 0 0; padding: 16px 20px; border-radius: var(--r); background: var(--warn-soft); color: var(--ink); text-decoration: none; }
.sale-strip:hover { background: #ffefd6; }
.sale-icon { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--warn); flex-shrink: 0; }
.sale-text { font-weight: 600; }
.sale-dates { margin-left: auto; color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) { .sale-dates { display: none; } .sale-strip > .icon { margin-left: auto; } }

/* categories */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 400px) { .cat-grid { grid-template-columns: 1fr; } }
.cat { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cat-head { display: flex; align-items: center; gap: 12px; }
.cat-head h3 { margin: 0; flex: 1; }
.cat-head .icon-btn { color: var(--muted); }
.cat-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; flex-shrink: 0; }
.cat-icon .icon { width: 21px; height: 21px; }
.cat .chip { font-size: .86rem; padding: 6px 12px; }
.cat-more { font-size: .88rem; font-weight: 600; color: var(--ink); text-decoration: none; margin-top: auto; }
.cat-more:hover { color: var(--accent-ink); }

/* guide list */
.guide-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
@media (max-width: 400px) { .guide-list { grid-template-columns: 1fr; } }
.narrow .guide-list { grid-template-columns: 1fr; }
.guide-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.guide-item:hover { border-color: #cfd5d2; background: var(--soft); }
.guide-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.guide-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-text b { font-weight: 600; letter-spacing: -.01em; }
.guide-text span { font-size: .87rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-item .chevron { margin-left: auto; color: var(--muted); width: 18px; }

/* tools */
.tools { display: grid; gap: 16px; grid-template-columns: 1.3fr 1fr 1fr; }
.tools:has(#tg-block[hidden]) { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 960px) { .tools { grid-template-columns: 1fr 1fr; } .converter { grid-column: 1 / -1; } }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } }
.converter h3, .tool-link h3 { margin-bottom: 6px; }
.converter .hint { display: block; margin: 0 0 10px; }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.rates div { background: var(--soft); border-radius: var(--r-sm); padding: 10px 12px; font-variant-numeric: tabular-nums; min-width: 0; }
.rates span { display: block; font-size: .75rem; color: var(--muted); }
.rates b { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tool-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.tool-link:hover { background: var(--soft); }
.tool-link .cat-icon { margin-bottom: 8px; }
.tool-link p { font-size: .92rem; }
.tool-link .link-arrow { margin-top: auto; }

/* best sellers (links) */
.top-note { margin: -8px 0 16px; font-size: .9rem; }
.top-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 480px) { .top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.top-link { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; min-width: 0; }
.top-link:hover { border-color: #cfd5d2; background: var(--soft); }
.top-link b { font-weight: 600; letter-spacing: -.01em; }
.top-link .vi { font-size: .85rem; }
.top-cta { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--muted); }
.top-cta .icon { width: 14px; height: 14px; }
.top-pick { border-color: #cfe9df; background: var(--accent-soft); }
.top-pick .badge { align-self: flex-start; background: #fff; color: var(--accent-ink); margin-bottom: 4px; }
.top-price { font-weight: 700; }

/* ---------- products ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 16px; }
.price-filter { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.product { position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; height: 100%; }
.product-img { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.product-link:hover .product-img img { transform: scale(1.03); }
.product-body { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; flex: 1; }
.product-title { font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; margin-top: auto; }
.product-meta { display: flex; gap: 10px; font-size: .8rem; color: var(--muted); }
.product-meta .rating { color: var(--ink); }
.product-meta .rating::before { content: "★ "; color: var(--star); }
.product-shop { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-actions { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; }
.product-actions .icon-btn { min-width: 34px; height: 34px; padding: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.product-actions .icon-btn .icon { width: 17px; height: 17px; }
.fav-btn[aria-pressed="true"] { color: #e0475b; }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.product-check { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; accent-color: var(--ink); }
.product-skeleton { aspect-ratio: .72; border-radius: var(--r); background: linear-gradient(90deg, var(--soft) 25%, #fbfbfb 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 210px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.product-row .product { scroll-snap-align: start; }
.load-more { margin-top: 24px; }
.empty-state { color: var(--muted); padding: 16px 0; }
.empty-big { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty-big .icon { width: 40px; height: 40px; margin-bottom: 12px; }

/* compare */
.compare { margin-bottom: 24px; }
.compare td img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.compare th:first-child { width: 120px; }

/* ---------- pages ---------- */
.page { padding: 28px 0 72px; }
.page-head { padding: 24px 0 20px; }
.page-head .lead { margin: 0; text-align: left; }
.crumbs { display: flex; gap: 8px; font-size: .87rem; color: var(--muted); margin: 8px 0 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.article { font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.article h1 { font-size: clamp(2rem, 5vw, 2.9rem); color: var(--ink); margin-bottom: .6em; }
.article h2 { font-size: 1.45rem; color: var(--ink); margin: 2em 0 .6em; }
.article h3 { color: var(--ink); margin: 1.6em 0 .5em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.article li::marker { color: var(--muted); }
.article b { color: var(--ink); font-weight: 600; }
.callout { background: var(--accent-soft); border-radius: var(--r); padding: 16px 20px; margin: 1.6em 0; font-size: .98rem; }
.callout.warn { background: var(--warn-soft); }
.vi { color: var(--accent-ink); font-weight: 500; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--soft); white-space: nowrap; }
tbody tr:last-child td, table tr:last-child td { border-bottom: 0; }
td.vi { white-space: nowrap; }
.example-address { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: 16px 18px; border-radius: var(--r); white-space: pre-line; font-size: .92rem; }
.article-foot { display: flex; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.more-guides { margin-top: 56px; }
.more-guides h2 { font-size: 1.2rem; }

/* checklist */
.checklist { list-style: none; padding: 0 !important; border: 1px solid var(--line); border-radius: var(--r); }
.checklist li { margin: 0 !important; padding: 12px 16px 12px 50px; border-bottom: 1px solid var(--line); position: relative; cursor: pointer; user-select: none; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border: 1.5px solid #c4cbc8; border-radius: 6px; background: #fff; }
.checklist li.done { color: var(--muted); }
.checklist li.done::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--accent); }
.checklist li.done .vi { color: var(--muted); }
.checklist-progress { font-size: .9rem; color: var(--muted); margin: -.4em 0 1em; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--r); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 1.7px solid var(--muted); border-bottom: 1.7px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 20px 6px; }

/* phrasebook */
.dict-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 0 18px; margin-bottom: 16px; }
.dict-search .icon { color: var(--muted); }
.dict-search input { flex: 1; border: 0; background: transparent; font: inherit; padding: 13px 0; color: var(--ink); }
.dict-search input:focus { outline: none; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs .chip { white-space: nowrap; font-size: .86rem; }
.dict-table td:first-child { width: 46%; }
.vi-copy { border: 0; background: none; padding: 0; text-align: left; cursor: copy; color: var(--accent-ink); font-weight: 500; font-size: 1rem; }
.vi-copy:hover { text-decoration: underline; text-underline-offset: 3px; }
.vi-copy.copied::after { content: " ✓"; color: var(--accent); }
.dict-table .note { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.actions-cell { width: 48px; text-align: right; }
.row-action { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: var(--muted); }
.row-action:hover { background: var(--soft); color: var(--ink); }
.row-action .icon { width: 17px; height: 17px; }

/* share popover & toast */
.share-pop { position: fixed; z-index: 80; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; z-index: 90; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; padding-top: 48px; padding-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { max-width: 380px; }
.fine { font-size: .8rem; }
.site-footer h4 { color: var(--ink); font-size: .85rem; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: .82rem; }

/* root language choice & 404 */
.lang-choice { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; }
.lang-choice .logo-mark { width: 56px; height: 56px; color: var(--ink); }
.lang-choice h1 { font-size: 2rem; margin-top: 8px; }
.lang-choice p { color: var(--muted); }
.lang-choice .btn { margin: 4px; }
