/* Seoul Bites V3 — quick takeaways, jump nav, saved checklist, smart filters, recent reads */
.v3-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- Quick takeaways ---------- */
.v3-takeaways{margin:1.4rem 0 1.8rem;padding:1.15rem 1.3rem;border:1px solid #e7d3d8;border-left:5px solid #a61736;border-radius:.9rem;background:linear-gradient(120deg,#fff7f4,#fffaf8)}
.v3-kicker{margin:0;color:#8d2640;font-size:.72rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.v3-takeaways .v3-h2{margin:.1rem 0 .6rem;font-size:1.25rem}
.v3-takeaway-list{margin:0 0 .9rem;padding-left:1.1rem}
.v3-takeaway-list li{margin:.4rem 0;font-size:.97rem;line-height:1.5}
.v3-glance{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:.55rem;margin:0}
.v3-glance>div{padding:.55rem .7rem;border:1px solid #eddfe2;border-radius:.6rem;background:#fff}
.v3-glance dt{margin:0;font-size:.68rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#8a5b66}
.v3-glance dd{margin:.15rem 0 0;font-size:.9rem;font-weight:650;line-height:1.35;color:#2d2226}
.v3-note{margin:.85rem 0 0;font-size:.76rem;color:#6b5b60}

/* ---------- Jump nav ---------- */
.v3-jump{position:sticky;top:0;z-index:40;margin:0 -1.25rem 1.4rem;padding:.5rem 1.25rem;background:#fffdfc;border-bottom:1px solid #efe3e6;box-shadow:0 4px 12px #2b101008}
.v3-jump[hidden]{display:none}
.v3-jump-title{margin:0 0 .35rem;font-size:.68rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:#8a5b66}
.v3-jump-links{display:flex;gap:.4rem;overflow-x:auto;padding-bottom:.25rem;scrollbar-width:thin}
.v3-jump-links a{flex:0 0 auto;padding:.32rem .7rem;border:1px solid #e3d2d6;border-radius:999px;background:#fff;color:#5c313c;font-size:.82rem;font-weight:700;text-decoration:none;white-space:nowrap}
.v3-jump-links a[aria-current="true"]{background:#82223a;border-color:#82223a;color:#fff}
.v3-jump-links a:focus-visible{outline:3px solid #d58b9d;outline-offset:2px}
.v3-jump-progress{margin:.15rem 0 0;font-size:.72rem;color:#7a6469}

/* ---------- Saved checklist ---------- */
.v3-checklist{margin:2.2rem 0 1rem;padding:1.2rem 1.35rem;border:1px solid #e2ebe4;border-radius:1rem;background:#f7fbf8}
.v3-checklist .v3-h2{margin:0 0 .3rem;font-size:1.2rem}
.v3-check-intro{margin:0 0 .8rem;font-size:.88rem;color:#4d5c53}
.v3-check-list{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
.v3-check-list label{display:flex;gap:.6rem;align-items:flex-start;padding:.55rem .7rem;border:1px solid #dfe9e1;border-radius:.6rem;background:#fff;font-size:.94rem;cursor:pointer;line-height:1.4}
.v3-check-list input{margin:.25rem 0 0;width:1.05rem;height:1.05rem;accent-color:#2f7a55;flex:0 0 auto}
.v3-check-list input:checked+span{color:#6a7a70;text-decoration:line-through}
.v3-check-list label:has(input:checked){background:#f1f8f3;border-color:#bcd9c6}
.v3-check-list input:focus-visible{outline:3px solid #7fbf9a;outline-offset:2px}
.v3-check-foot{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-top:.8rem}
.v3-check-status{margin:0;font-size:.85rem;font-weight:750;color:#2f7a55}
.v3-check-reset{border:1px solid #c9dccf;background:#fff;border-radius:999px;padding:.35rem .8rem;font:inherit;font-size:.78rem;font-weight:700;color:#4d5c53;cursor:pointer}
.v3-check-reset:hover{background:#eff7f1}

/* ---------- Recently viewed ---------- */
.v3-recent{margin:1.8rem 0;padding:1.1rem 1.25rem;border:1px dashed #e2d3d7;border-radius:.9rem;background:#fffdfd}
.v3-recent[hidden]{display:none}
.v3-recent h2,.v3-recent .v3-h2{margin:.1rem 0 .55rem;font-size:1.05rem}
.v3-recent-list{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.v3-recent-list li{margin:0}
.v3-recent-list a{display:flex;justify-content:space-between;gap:.75rem;align-items:baseline;padding:.5rem .65rem;border:1px solid #f0e5e7;border-radius:.55rem;background:#fff;text-decoration:none;color:#241923;font-size:.9rem;font-weight:650}
.v3-recent-list a:hover{border-color:#c98d9b}
.v3-recent-list small{color:#7a6469;font-weight:600;font-size:.72rem;white-space:nowrap}

/* ---------- Homepage smart filter ---------- */
.v3-filterbar{margin:0 0 1.1rem;padding:.9rem 1rem;border:1px solid #e9dbd6;border-radius:.9rem;background:#fffaf6}
.v3-filterbar-row{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.v3-filterbar label{font-size:.76rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8a5b66}
.v3-filterbar input[type="search"]{flex:1 1 220px;min-height:42px;padding:.5rem .75rem;border:1px solid #dcc9c6;border-radius:.55rem;font:inherit;font-size:.92rem;background:#fff}
.v3-filterbar select{min-height:42px;padding:.45rem .6rem;border:1px solid #dcc9c6;border-radius:.55rem;font:inherit;font-size:.9rem;background:#fff;color:#241923}
.v3-filter-toggle{min-height:42px;padding:.45rem .85rem;border:1px solid #dcc9c6;border-radius:999px;background:#fff;font:inherit;font-size:.86rem;font-weight:750;color:#5c313c;cursor:pointer}
.v3-filter-toggle[aria-pressed="true"]{background:#82223a;border-color:#82223a;color:#fff}
.v3-filter-clear{border:0;background:none;font:inherit;font-size:.8rem;font-weight:750;color:#8d2640;text-decoration:underline;cursor:pointer;padding:.3rem}
.v3-filter-status{margin:.6rem 0 0;font-size:.84rem;color:#5b4d51}
.v3-empty{margin:1rem 0;padding:1rem;border:1px dashed #dcc9c6;border-radius:.7rem;background:#fff;font-size:.92rem;color:#5b4d51}
.v3-empty[hidden]{display:none}
.card[data-v3-hidden]{display:none!important}

@media(max-width:600px){
  .v3-takeaways{padding:1rem}
  .v3-takeaways .v3-h2{font-size:1.12rem}
  .v3-jump{margin:0 -1rem 1rem;padding:.45rem 1rem}
  .v3-checklist{padding:1rem}
  .v3-glance{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media print{.v3-jump,.v3-filterbar,.v3-recent{display:none!important}}

/* Anchor jumps must clear the sticky "On this page" bar */
main :is(h2, h3)[id]{scroll-margin-top:88px}
/* Keep the saved-list dock clear of the mobile quick-action bar */
@media(max-width:768px){
  body:has(.mobile-quick-actions) .saved-dock,
  body:has(.mobile-quick-actions) .wishlist-dock{bottom:4.9rem}
}

/* Hidden legacy counters while the V3 filter is active */
.district-count[hidden]{display:none}
