/* Seoul Glow V3 — quick takeaways, routine builder, jump nav, saved checklist, smart filter */
.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.3rem 0 1.8rem;padding:1.15rem 1.3rem;border:1px solid #dfe7d3;border-left:5px solid #58763b;border-radius:16px;background:linear-gradient(120deg,#f7faf1,#fbfaf6)}
.v3-kicker{margin:0;color:#58763b;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.v3-takeaways .v3-h2{margin:.1rem 0 .6rem;font-size:1.25rem;line-height:1.25}
.v3-takeaway-list{margin:0 0 .9rem;padding-left:1.1rem}
.v3-takeaway-list li{margin:.4rem 0;font-size:.96rem;line-height:1.5}
.v3-glance{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,158px),1fr));gap:.55rem;margin:0}
.v3-glance>div{padding:.55rem .7rem;border:1px solid #e4ead9;border-radius:12px;background:#fff}
.v3-glance dt{margin:0;font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#6b7c52}
.v3-glance dd{margin:.15rem 0 0;font-size:.9rem;font-weight:650;line-height:1.35;color:#26312a}
.v3-note{margin:.85rem 0 0;font-size:.76rem;color:#5f6b58}

/* ---------- Jump nav ---------- */
.v3-jump{position:sticky;top:0;z-index:40;margin:0 -1.5rem 1.3rem;padding:.5rem 1.5rem;background:#fffef9;border-bottom:1px solid #e8eddf;box-shadow:0 4px 12px #2f3a2210}
.v3-jump[hidden]{display:none}
.v3-jump-title{margin:0 0 .35rem;font-size:.66rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#6b7c52}
.v3-jump-links{display:flex;gap:.4rem;overflow-x:auto;padding-bottom:.25rem}
.v3-jump-links a{flex:0 0 auto;padding:.32rem .7rem;border:1px solid #dde5cf;border-radius:999px;background:#fff;color:#3f5228;font-size:.82rem;font-weight:650;text-decoration:none;white-space:nowrap}
.v3-jump-links a[aria-current="true"]{background:#416525;border-color:#416525;color:#fff}
.v3-jump-links a:focus-visible{outline:3px solid #a7c184;outline-offset:2px}

/* ---------- Saved checklist ---------- */
.v3-checklist{margin:2.2rem 0 1rem;padding:1.2rem 1.35rem;border:1px solid #e2ebd8;border-radius:16px;background:#f8fbf3}
.v3-checklist .v3-h2{margin:0 0 .3rem;font-size:1.18rem}
.v3-check-intro{margin:0 0 .8rem;font-size:.87rem;color:#4d5c46}
.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 #e0e8d5;border-radius:12px;background:#fff;font-size:.93rem;cursor:pointer;line-height:1.4}
.v3-check-list input{margin:.25rem 0 0;width:1.05rem;height:1.05rem;accent-color:#416525;flex:0 0 auto}
.v3-check-list input:checked+span{color:#6d7a63;text-decoration:line-through}
.v3-check-list label:has(input:checked){background:#f1f7e9;border-color:#c6d9b2}
.v3-check-foot{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-top:.8rem}
.v3-check-status{margin:0;font-size:.84rem;font-weight:750;color:#416525}
.v3-check-reset{border:1px solid #cfdcbe;background:#fff;border-radius:999px;padding:.35rem .8rem;font:inherit;font-size:.78rem;font-weight:650;color:#4d5c46;cursor:pointer}
.v3-check-reset:hover{background:#eff6e6}

/* ---------- Recently viewed ---------- */
.v3-recent{margin:1.6rem 0;padding:1.1rem 1.25rem;border:1px dashed #dfe6d2;border-radius:14px;background:#fffef9}
.v3-recent[hidden]{display:none}
.v3-recent .v3-h2,.v3-recent 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 a{display:flex;justify-content:space-between;gap:.75rem;align-items:baseline;padding:.5rem .65rem;border:1px solid #edf1e5;border-radius:10px;background:#fff;text-decoration:none;color:#26312a;font-size:.9rem;font-weight:650}
.v3-recent-list a:hover{border-color:#a7c184}
.v3-recent-list small{color:#6d7a63;font-weight:600;font-size:.72rem;white-space:nowrap}

/* ---------- Routine builder ---------- */
.v3-routine-btn{display:inline-flex;align-items:center;gap:.35rem;margin:.35rem 0 .1rem;padding:.4rem .75rem;border:1px solid #b8caa4;border-radius:999px;background:#fff;color:#416525;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}
.v3-routine-btn[aria-pressed="true"]{background:#416525;border-color:#416525;color:#fff}
.v3-routine-btn:focus-visible{outline:3px solid #a7c184;outline-offset:2px}
.v3-routine-dock{position:fixed;right:1rem;bottom:1rem;z-index:70;display:flex;flex-direction:column;align-items:flex-end;gap:.5rem}
.v3-routine-toggle{border:0;border-radius:999px;background:#26312a;color:#fff;padding:.7rem 1.05rem;font:inherit;font-size:.88rem;font-weight:750;cursor:pointer;box-shadow:0 8px 22px #0004}
.v3-routine-panel{width:min(340px,calc(100vw - 2rem));max-height:min(62vh,460px);overflow:auto;background:#fff;border:1px solid #e2e8d8;border-radius:16px;padding:1rem;box-shadow:0 18px 44px #0003}
.v3-routine-panel[hidden]{display:none}
.v3-routine-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}
.v3-routine-head strong{font-size:1rem}
.v3-routine-step{margin:.7rem 0 .25rem;font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6b7c52}
.v3-routine-list{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.v3-routine-list li{display:flex;gap:.5rem;justify-content:space-between;align-items:flex-start;font-size:.88rem;border-bottom:1px solid #f0f3ea;padding-bottom:.4rem}
.v3-routine-list a{color:#26312a;font-weight:650;text-decoration:none}
.v3-routine-list a:hover{text-decoration:underline}
.v3-routine-remove{border:1px solid #e2e8d8;background:#fff;border-radius:999px;font:inherit;font-size:.72rem;padding:.15rem .5rem;cursor:pointer;color:#5f6b58;white-space:nowrap}
.v3-routine-empty{margin:.2rem 0 .5rem;font-size:.86rem;color:#5f6b58}
.v3-routine-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.6rem}
.v3-routine-copy,.v3-routine-clear{border:1px solid #cfdcbe;background:#fff;border-radius:999px;padding:.35rem .75rem;font:inherit;font-size:.78rem;font-weight:700;color:#416525;cursor:pointer}
.v3-routine-copy{background:#416525;border-color:#416525;color:#fff}

/* ---------- Homepage smart filter ---------- */
.v3-filterbar{margin:0 0 1.1rem;padding:.9rem 1rem;border:1px solid #e2e9d6;border-radius:14px;background:#fbfcf7}
.v3-filterbar-row{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.v3-filterbar label{font-size:.74rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6b7c52}
.v3-filterbar input[type="search"]{flex:1 1 220px;min-height:42px;padding:.5rem .75rem;border:1px solid #dbe3cd;border-radius:10px;font:inherit;font-size:.92rem;background:#fff}
.v3-filterbar select{min-height:42px;padding:.45rem .6rem;border:1px solid #dbe3cd;border-radius:10px;font:inherit;font-size:.9rem;background:#fff;color:#26312a}
.v3-filter-toggle{min-height:42px;padding:.45rem .85rem;border:1px solid #dbe3cd;border-radius:999px;background:#fff;font:inherit;font-size:.85rem;font-weight:700;color:#3f5228;cursor:pointer}
.v3-filter-toggle[aria-pressed="true"]{background:#416525;border-color:#416525;color:#fff}
.v3-filter-clear{border:0;background:none;font:inherit;font-size:.8rem;font-weight:700;color:#58763b;text-decoration:underline;cursor:pointer;padding:.3rem}
.v3-filter-status{margin:.6rem 0 0;font-size:.84rem;color:#5f6b58}
.v3-empty{margin:1rem 0;padding:1rem;border:1px dashed #dbe3cd;border-radius:12px;background:#fff;font-size:.92rem;color:#5f6b58}
.v3-empty[hidden]{display:none}
.card[data-v3-hidden]{display:none!important}

@media(max-width:650px){
  .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))}
  .v3-routine-dock{right:.75rem;bottom:.75rem}
}
@media print{.v3-jump,.v3-filterbar,.v3-recent,.v3-routine-dock{display:none!important}}

/* ---------- Tables inside guide articles ---------- */
.table-wrap{width:100%;overflow-x:auto;margin:1.2rem 0;border:1px solid #e4ead9;border-radius:12px;background:#fff}
.table-wrap table{border-collapse:collapse;width:100%;min-width:460px;text-align:left;font-size:.92rem}
.table-wrap th,.table-wrap td{padding:.7rem .8rem;border-bottom:1px solid #eef2e7;vertical-align:top}
.table-wrap th{background:#f5f8ef;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;color:#4f6337}
.table-wrap tbody tr:last-child td{border-bottom:0}
.guide .table-wrap caption{text-align:left;padding:.6rem .8rem;font-weight:700;color:#4f6337}

/* Anchor jumps must clear the sticky "On this page" bar */
main :is(h2, h3)[id]{scroll-margin-top:88px}

/* Hidden legacy counter while the V3 filter is active */
#guide-filter-status[hidden]{display:none}
