/* KoreaPlus Hansik — app styles. Scoped to .life-hansik; loaded only on /hansik pages. */
.life-hansik .hs-article p, .life-hansik .hs-article li, .life-hansik .life-table td { color: #0f172a; }
.life-hansik .hs-article .lead { color: #1e293b; }
.life-hansik .life-note, .life-hansik .life-bc, .life-hansik .life-credit, .life-hansik .life-credit-mini { color: #334155; }
.life-hansik .life-rel a { color: #7c2d12; border-color: #fdba74; font-weight: 650; }
html:not(.light) .life-hansik .hs-article p, html:not(.light) .life-hansik .hs-article li, html:not(.light) .life-hansik .life-table td { color: #f1f5f9; }
html:not(.light) .life-hansik .hs-article .lead { color: #e2e8f0; }
html:not(.light) .life-hansik .life-note, html:not(.light) .life-hansik .life-bc, html:not(.light) .life-hansik .life-credit, html:not(.light) .life-hansik .life-credit-mini { color: #cbd5e1; }
html:not(.light) .life-hansik .life-rel a { color: #fed7aa; border-color: rgba(253,186,116,.5); }
html:not(.light) .life-hansik .kp-hero-title { color: #f8fafc; }
html.light .life-hansik .kp-hero-title { color: #0f172a; }

/* breadcrumbs, headings */
.life-hansik .life-bc .hs-bc-en { opacity: .85; }
.life-hansik .hs-h1-ko, .life-hansik .hs-h2-ko { font-size: .62em; font-weight: 600; color: #7c2d12; margin-left: 6px; }
html:not(.light) .life-hansik .hs-h1-ko, html:not(.light) .life-hansik .hs-h2-ko { color: #fdba74; }
.life-hansik .life-rel-label { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #334155; margin: 20px 0 -14px; }
html:not(.light) .life-hansik .life-rel-label { color: #cbd5e1; }

/* actions */
.hs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.hs-actions .life-btn { text-decoration: none; }
.hs-save[aria-pressed="true"] { border-color: var(--life); color: var(--life-deep); background: var(--life-soft); }
html:not(.light) .hs-save[aria-pressed="true"] { color: #fdba74; }
.hs-save-ic { font-size: 15px; }
.life-btn.is-flash, .hs-add.is-flash { border-color: #16a34a; color: #166534; background: rgba(22,163,74,.12); }
html:not(.light) .life-btn.is-flash, html:not(.light) .hs-add.is-flash { color: #86efac; }

/* meta chips */
.hs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hs-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: #1e293b; }
html:not(.light) .hs-chip { color: #e2e8f0; }
.hs-heat { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; background: #64748b; }
.hs-heat-0 { background: #16a34a; }
.hs-heat-1 { background: #ca8a04; }
.hs-heat-2 { background: #ea580c; }
.hs-heat-3 { background: #dc2626; }
.hs-heat-4 { background: #7f1d1d; }
.hs-spice .hs-heat { margin-right: 6px; }

/* path stepper */
.hs-path { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--life-soft); font-size: 13.5px; }
.hs-path a { color: #7c2d12; text-decoration: none; font-weight: 650; }
html:not(.light) .hs-path a { color: #fed7aa; }
.hs-path-name { display: inline-flex; gap: 6px; align-items: baseline; }
.hs-path-pos { font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--life); color: #fff; }
.hs-path-nav { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.hs-path-end { color: #334155; }
html:not(.light) .hs-path-end { color: #cbd5e1; }

/* ingredients + scaler */
.hs-ing { margin: 20px 0 8px; padding: 14px 16px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.hs-ing-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hs-ing-head h2 { margin: 0; }
.hs-scaler { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: #334155; }
html:not(.light) .hs-scaler { color: #cbd5e1; }
.hs-scale-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg, #fff); color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.hs-scale-btn:hover { border-color: var(--life); color: var(--life-deep); }
.hs-serves { min-width: 28px; text-align: center; font-size: 17px; font-weight: 900; color: var(--life-deep); }
html:not(.light) .hs-serves { color: #fdba74; }
.hs-scale-reset { border: 0; background: transparent; color: #7c2d12; text-decoration: underline; font-size: 12.5px; cursor: pointer; }
html:not(.light) .hs-scale-reset { color: #fed7aa; }
.hs-yield { font-size: 13px; color: #334155; margin: 6px 0 0; }
html:not(.light) .hs-yield { color: #cbd5e1; }
.hs-ing-list { list-style: none; margin: 10px 0 6px !important; padding: 0; }
.hs-ing-list li { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 15px; }
.hs-ing-list li:first-child { border-top: 0; }
.hs-ing-list label { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; cursor: pointer; }
.hs-ing-chk { width: 17px; height: 17px; margin: 3px 2px 0 0; accent-color: var(--life-deep); }
.hs-ing-list li:has(.hs-ing-chk:checked) .hs-n, .hs-ing-list li:has(.hs-ing-chk:checked) .hs-q { text-decoration: line-through; opacity: .6; }
.hs-q { font-weight: 800; min-width: 3.2em; color: var(--life-deep); }
html:not(.light) .hs-q { color: #fdba74; }
.hs-ko { font-style: normal; color: #475569; font-size: 13px; }
html:not(.light) .hs-ko { color: #cbd5e1; }
.hs-note { display: block; flex-basis: 100%; font-size: 12.5px; color: #475569; }
html:not(.light) .hs-note { color: #cbd5e1; }
.hs-add { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; flex: none; }
.hs-add:hover { border-color: var(--life); color: var(--life-deep); background: var(--life-soft); }
.hs-ing-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 !important; }
.hs-ing-foot .life-btn { text-decoration: none; }
.life-hansik .hs-primary { background: var(--life-deep); color: #fff !important; border-color: var(--life-deep); }
.life-hansik .hs-primary:hover { background: #9a3412; }

/* steps */
.hs-steps { list-style: none; margin: 8px 0 6px !important; padding: 0; counter-reset: none; }
.hs-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border); }
.hs-steps li:first-child { border-top: 0; }
.hs-step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--life-soft); color: var(--life-deep); font-weight: 800; font-size: 13px; cursor: pointer; }
html:not(.light) .hs-step-n { color: #fdba74; }
.hs-steps li.done .hs-step-n { background: #16a34a; border-color: #16a34a; color: #fff; }
.hs-steps li.done > span { opacity: .55; text-decoration: line-through; }
.hs-steps-note { font-size: 12.5px !important; }

/* FAQ */
.hs-faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 8px 0; padding: 0 14px; }
.hs-faq-item summary { cursor: pointer; padding: 11px 0; font-weight: 700; font-size: 15px; color: #0f172a; }
html:not(.light) .hs-faq-item summary { color: #f1f5f9; }
.hs-faq-item[open] summary { border-bottom: 1px solid var(--border); }
.hs-faq-item p { padding: 10px 0 12px; margin: 0; }

/* rails */
.hs-continue, .hs-pair { margin: 16px 0 6px; }
.hs-continue h2, .hs-pair h2 { font-size: 16px; margin: 0 0 8px; }
.hs-rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.hs-rail-a { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; min-width: 150px; max-width: 220px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: inherit; scroll-snap-align: start; }
.hs-rail-a:hover { border-color: var(--life); }
.hs-rail-a b { font-size: 14px; color: #0f172a; line-height: 1.3; }
.hs-rail-a span { font-size: 12.5px; color: #475569; }
html:not(.light) .hs-rail-a b { color: #f8fafc; }
html:not(.light) .hs-rail-a span { color: #cbd5e1; }

/* nav badges + KO/EN toggle */
.hs-badges { display: inline-flex; gap: 6px; align-items: center; }
.hs-badge { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; font-size: 13px; color: inherit; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.hs-badge b { font-size: 11px; font-weight: 800; color: #fff; background: var(--life-deep); border-radius: 999px; padding: 0 6px; line-height: 16px; }
.hs-lang-toggle { appearance: none; border: 1px solid var(--border); background: var(--surface); color: inherit; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 800; cursor: pointer; letter-spacing: .02em; }
.hs-lang-toggle.is-ko { border-color: var(--life); color: var(--life-deep); background: var(--life-soft); }
html:not(.light) .hs-lang-toggle.is-ko { color: #fdba74; }

/* cook filters */
.hs-heat-row .life-chip, .hs-ing-row .life-chip { display: inline-flex; align-items: center; gap: 6px; }
.hs-filter-state { margin: 0 !important; font-weight: 650; }

/* shopping list v2 */
.hs-list-group { margin: 14px 0 4px; }
.hs-list-group h3 { font-size: 14px; margin: 0 0 6px; color: #0f172a; }
.hs-list-group h3 span { font-weight: 500; color: #475569; }
html:not(.light) .hs-list-group h3 { color: #f1f5f9; }
html:not(.light) .hs-list-group h3 span { color: #cbd5e1; }
.hs-list { list-style: none; margin: 0 !important; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.hs-list-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; border-top: 1px solid var(--border); }
.hs-list-item:first-child { border-top: 0; }
.hs-list-item label { flex: 1; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.hs-list-chk { width: 17px; height: 17px; accent-color: var(--life-deep); }
.hs-list-item.done .hs-list-t { text-decoration: line-through; opacity: .55; }
.hs-list-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: #64748b; font-size: 18px; line-height: 1; cursor: pointer; }
.hs-list-x:hover { border-color: #dc2626; color: #dc2626; }
.hs-list-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 !important; }
.hs-shop { list-style: none; margin: 8px 0 14px !important; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hs-shop li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; }
.hs-shop .life-btn { padding: 3px 9px; font-size: 12.5px; }

/* saved page */
.hs-saved-card { position: relative; padding-right: 40px !important; }
.hs-saved-card .hs-list-x { position: absolute; top: 10px; right: 8px; }
.hs-kind { display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--life-deep); margin-bottom: 4px; }
html:not(.light) .hs-kind { color: #fdba74; }

/* spice picker */
.hs-picker { margin: 10px 0 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.hs-picker-out { margin-top: 12px; }
.hs-picker-say { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--life-soft); margin: 0 0 12px !important; }
.hs-picker-say span { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #7c2d12; }
.hs-picker-say b { font-size: 19px; }
.hs-picker-say i { font-style: normal; font-size: 13px; color: #7c2d12; }
.hs-picker-say em { font-style: normal; font-size: 13.5px; color: #334155; }
html:not(.light) .hs-picker-say span, html:not(.light) .hs-picker-say i { color: #fdba74; }
html:not(.light) .hs-picker-say em { color: #e2e8f0; }
.hs-picker-say .life-speak { justify-self: start; }

/* tables: compare, matrix, calendar, spice scale */
.hs-tablewrap { overflow-x: auto; margin: 10px 0 18px; -webkit-overflow-scrolling: touch; }
.hs-tablewrap .life-table { min-width: 560px; margin: 0; }
.hs-tablewrap .life-table th { color: #334155; }
html:not(.light) .hs-tablewrap .life-table th { color: #cbd5e1; }
.hs-tablewrap .life-table td:first-child { font-weight: 700; white-space: nowrap; }
.hs-compare td:first-child, .hs-matrix td:first-child { white-space: normal; }
.hs-matrix td { font-size: 13.5px; }
.hs-cal td:first-child { color: var(--life-deep); }
html:not(.light) .hs-cal td:first-child { color: #fdba74; }

/* regional map */
.hs-map { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-areas: "n n gw" "se se gw" "cc gb gb" "jl gb gb" "jj jj jj"; gap: 8px; margin: 12px 0 18px; }
.hs-map-cell { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: inherit; min-height: 96px; }
.hs-map-cell:hover { border-color: var(--life); transform: translateY(-2px); transition: .15s; }
.hs-map-cell b { font-size: 14.5px; color: #0f172a; }
.hs-map-cell span { font-size: 12.5px; color: #7c2d12; }
.hs-map-cell small { font-size: 12.5px; line-height: 1.45; color: #334155; }
html:not(.light) .hs-map-cell b { color: #f8fafc; }
html:not(.light) .hs-map-cell span { color: #fdba74; }
html:not(.light) .hs-map-cell small { color: #cbd5e1; }
.hs-map-n { grid-area: n; background: linear-gradient(135deg, rgba(96,165,250,.14), var(--surface)); }
.hs-map-gw { grid-area: gw; background: linear-gradient(135deg, rgba(34,197,94,.14), var(--surface)); }
.hs-map-se { grid-area: se; background: linear-gradient(135deg, rgba(251,146,60,.16), var(--surface)); }
.hs-map-cc { grid-area: cc; background: linear-gradient(135deg, rgba(234,179,8,.14), var(--surface)); }
.hs-map-gb { grid-area: gb; background: linear-gradient(135deg, rgba(239,68,68,.14), var(--surface)); }
.hs-map-jl { grid-area: jl; background: linear-gradient(135deg, rgba(168,85,247,.14), var(--surface)); }
.hs-map-jj { grid-area: jj; background: linear-gradient(135deg, rgba(14,165,233,.14), var(--surface)); }
@media (max-width: 560px) { .hs-map { grid-template-columns: 1fr 1fr; grid-template-areas: "n n" "gw se" "cc gb" "jl gb" "jj jj"; } }

/* cards */
.hs-card-ko { display: block; font-size: 12.5px; color: #7c2d12; margin: -2px 0 4px; }
html:not(.light) .hs-card-ko { color: #fdba74; }
.life-hansik .life-card.has-img .hs-card-ko { padding: 0 14px; }
.life-hansik .life-card-media img { aspect-ratio: 16 / 9; height: auto; }
.life-hansik .life-fig img { aspect-ratio: 16 / 9; }
.hs-updated { font-size: 12px; color: #475569 !important; margin: 22px 0 0 !important; }
html:not(.light) .hs-updated { color: #cbd5e1 !important; }
.hs-hub-ing { margin: 10px 0 0; }

/* print */
@media print {
  .life-hansik .hub-nav, .life-hansik .kp-hub-tools, .life-hansik .life-ad, .life-hansik .hs-actions, .life-hansik .hs-path,
  .life-hansik .hs-pair, .life-hansik .life-rel, .life-hansik .life-rel-label, .life-hansik .life-foot, .life-hansik .hs-ing-foot,
  .life-hansik .hs-add, .life-hansik .hs-scaler, .life-hansik .hs-steps-note, .life-hansik .life-speak, .life-hansik .life-toolbar,
  .life-hansik .hs-continue, .life-hansik .life-rcp, .life-hansik .hs-list-tools, .life-hansik .hs-list-x, .life-hansik #life-lang-note,
  .life-hansik .life-fig, .life-hansik .hs-updated, .life-hansik .hs-faq { display: none !important; }
  .life-hansik .life-article { max-width: none; padding: 0; }
  .life-hansik .hs-ing, .life-hansik .hs-faq-item, .life-hansik .hs-list { border: 0; padding: 0; background: none; }
  .life-hansik .hs-steps li, .life-hansik .hs-ing-list li { break-inside: avoid; border-top-color: #ddd; }
  .life-hansik .hs-step-n { border: 1px solid #333; background: none; color: #000; }
  .life-hansik body, .life-hansik .hs-article p, .life-hansik .hs-article li { color: #000 !important; }
  .life-hansik .hs-q { color: #000; }
  .life-hansik .hs-ing-list li:has(.hs-ing-chk:checked) .hs-n { text-decoration: none; opacity: 1; }
  .life-hansik .hs-ing-chk { appearance: none; width: 12px; height: 12px; border: 1px solid #000; }
}
