/* HL A refresh — article and tool shell only. Opt in with body.hl-refreshed. */
body.hl-refreshed {
  --bg: #f5f4ec;
  --paper: #fffef8;
  --sunk: #ebece1;
  --ink: #171d1c;
  --ink2: #3c4640;
  --muted: #626b60;
  --line: #d9dccf;
  --line2: #bbc2b3;
  --accent: #4e651a;
  --accent-soft: #e7edce;
  --mark: #4e651a;
  --hl-lime: #d3f34b;
  --hl-charcoal: #171d1c;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
  margin: 0;
  padding: 24px clamp(20px, 4vw, 44px) 48px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.hl-refreshed *, body.hl-refreshed *::before, body.hl-refreshed *::after { box-sizing: border-box; }
body.hl-refreshed .wrap {
  width: 100%; max-width: 720px; margin: 0 auto;
  padding: 0; border: 0; border-radius: 0; background: transparent;
}
body.hl-refreshed .sitebar {
  max-width: 1120px; margin: 0 auto 58px; padding: 0 0 20px;
  min-height: 66px; display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; border-bottom: 1px solid var(--line);
}
body.hl-refreshed .sitebar a.home {
  display: inline-flex; align-items: center; gap: 11px; min-width: 0;
  font-family: var(--sans); font-size: 18px; line-height: 1.3;
  font-weight: 700; letter-spacing: -.04em; color: var(--ink); text-decoration: none;
}
body.hl-refreshed .hl-brand-mark { display: inline-flex; flex: 0 0 auto; }
body.hl-refreshed .hl-brand-mark img, body.hl-refreshed .sitebar a.home > img {
  display: block; width: 44px; height: 44px; object-fit: contain; border-radius: 11px;
}
body.hl-refreshed .sitebar .tag { font-size: 12px; color: var(--muted); }
body.hl-refreshed .sitebar .play {
  margin-left: auto; padding: 10px 15px; border: 1px solid var(--line2);
  border-radius: 999px; font: 600 13px/1.5 var(--sans); color: var(--ink);
  text-decoration: none; background: transparent;
}
body.hl-refreshed .sitebar .play:hover { background: var(--hl-lime); color: var(--hl-charcoal); border-color: var(--hl-lime); }
body.hl-refreshed h1, body.hl-refreshed h2, body.hl-refreshed h3 { font-family: var(--sans); letter-spacing: -.045em; word-break: keep-all; overflow-wrap: anywhere; }
body.hl-refreshed h1 { max-width: 19em; font-size: clamp(31px, 4.6vw, 48px); line-height: 1.32; font-weight: 700; margin-bottom: 22px; text-wrap: balance; }
body.hl-refreshed h2 { margin: 56px 0 20px; font-size: clamp(23px, 3vw, 29px); line-height: 1.45; scroll-margin-top: 24px; }
body.hl-refreshed h2::before { width: 28px; height: 5px; border-radius: 9px; background: var(--hl-lime); margin-bottom: 16px; }
body.hl-refreshed .eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent); margin-bottom: 18px; }
body.hl-refreshed .dek { font-size: 18px; line-height: 1.85; max-width: 38em; color: var(--ink2); margin-bottom: 22px; }
body.hl-refreshed .by { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 34px; font-size: 13px; }
body.hl-refreshed .wrap > p, body.hl-refreshed .story p { max-width: none; line-height: 1.95; margin-bottom: 22px; }
body.hl-refreshed .wrap > ul, body.hl-refreshed .wrap > ol { max-width: none; }
body.hl-refreshed a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
body.hl-refreshed strong { background: var(--accent-soft); border-radius: 3px; padding: 1px 2px; }
body.hl-refreshed blockquote { font-family: var(--sans); font-size: 19px; border-left-color: var(--line2); }
body.hl-refreshed .pull { padding: 28px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); font-family: var(--sans); font-size: 23px; line-height: 1.7; }
body.hl-refreshed .story-toc { margin: 30px 0 38px; padding: 17px 0; }
body.hl-refreshed .story-toc summary { min-height: 30px; font-weight: 600; }
body.hl-refreshed .story-toc a { padding: 3px 0; }
body.hl-refreshed :is(.calc, .qbox, .rbox, .total, .actionbox) { border: 1px solid var(--line); background: var(--paper); border-radius: 18px; padding: clamp(20px, 4vw, 30px); box-shadow: 0 8px 30px rgb(23 29 28 / 3%); }
body.hl-refreshed :is(.st, .lf, .mv, .m, .pain, .gate) { border-radius: 12px; }
body.hl-refreshed :is(.funbox, .evidence) { background: var(--sunk); border-radius: 12px; padding: 18px 20px; }
body.hl-refreshed :is(.sexrow, .moderow) { gap: 9px; }
body.hl-refreshed :is(.sexrow, .moderow) button { border-radius: 9px; min-height: 46px; padding: 10px 9px; }
body.hl-refreshed :is(.sexrow, .moderow) button.on { background: var(--hl-charcoal); color: var(--hl-lime); border-color: var(--hl-charcoal); }
body.hl-refreshed .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.hl-refreshed .fields > *, body.hl-refreshed .repinputs > * { min-width: 0; }
body.hl-refreshed .fld label { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; margin-bottom: 7px; }
body.hl-refreshed .fld .ib { padding: 12px; min-height: 53px; border-radius: 9px; background: var(--bg); }
body.hl-refreshed .fld .ib:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
body.hl-refreshed :is(input, select, textarea) { accent-color: var(--accent); max-width: 100%; }
body.hl-refreshed select { min-height: 46px; font-size: 16px; border-radius: 9px; }
body.hl-refreshed :is(.calcbtn, .maincta, button.maincta) { min-height: 50px; padding: 13px 20px; background: var(--hl-lime); color: var(--hl-charcoal) !important; border: 1px solid transparent; border-radius: 10px; font-weight: 700; }
body.hl-refreshed .calcbtn:hover { filter: brightness(.96); }
body.hl-refreshed .opts { gap: 10px; }
body.hl-refreshed .opts button { border-radius: 11px; padding: 16px; min-height: 56px; font-size: 16px; color: var(--ink); background: var(--bg); border-color: var(--line); }
body.hl-refreshed .opts button:hover { border-color: var(--accent); background: var(--accent-soft); }
body.hl-refreshed .prog .bar { height: 7px; }
body.hl-refreshed .prog .bar i { background: var(--accent); }
body.hl-refreshed :is(.again, .backq, .otherbw a) { min-height: 44px; }
body.hl-refreshed .again { color: var(--ink); border-radius: 9px; }
body.hl-refreshed .otherbw { display: flex; flex-wrap: wrap; gap: 8px; }
body.hl-refreshed .otherbw a { display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line2); text-decoration: none; }
body.hl-refreshed .tablewrap { max-width: 100%; overflow-x: auto; border-radius: 12px; }
body.hl-refreshed .more { max-width: 720px; margin-top: 54px; border-top: 1px solid var(--line2); padding-top: 28px; }
body.hl-refreshed .more h3 { font-size: 22px; }
body.hl-refreshed .more ul { max-width: none; }
body.hl-refreshed :is(.more li a, .recs a) { align-items: center; padding: 17px 2px; gap: 12px; line-height: 1.65; }
body.hl-refreshed .more li a .mt { font-size: 16px; color: var(--ink); min-width: 0; }
body.hl-refreshed .more li a .ml { margin: 0 0 5px; font-family: var(--sans); font-size: 11px; letter-spacing: .04em; }
body.hl-refreshed :is(.allposts, .backhome a) { display: inline-block; min-height: 44px; padding: 9px 0; color: var(--accent); }
body.hl-refreshed .allposts { display: block; }
body.hl-refreshed footer { margin-top: 42px; padding-top: 24px; font-size: 13px; line-height: 1.8; }
body.hl-refreshed :is(.backhome, .sitelinks, .hl-footer) { max-width: 720px; }
body.hl-refreshed .sitelinks { gap: 8px 20px; margin-top: 24px; }
body.hl-refreshed .sitelinks a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
body.hl-refreshed .hl-footer { display: flex; gap: 12px; align-items: center; margin: 28px auto 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
body.hl-refreshed .hl-footer img { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; }
body.hl-refreshed :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
body.hl-refreshed [hidden] { display: none !important; }
@media (max-width: 560px) {
  body.hl-refreshed { padding: 18px 20px 34px; font-size: 16px; }
  body.hl-refreshed .sitebar { gap: 12px; margin-bottom: 34px; padding-bottom: 18px; }
  body.hl-refreshed .sitebar .tag { order: 3; flex-basis: 100%; padding-left: 55px; margin-top: -10px; }
  body.hl-refreshed .sitebar a.home { font-size: 16px; }
  body.hl-refreshed .sitebar .play { font-size: 12px; padding: 9px 12px; }
  body.hl-refreshed h1 { font-size: 32px; }
  body.hl-refreshed .dek { font-size: 17px; }
  body.hl-refreshed .repinputs { grid-template-columns: 1fr; }
  body.hl-refreshed .more li a > span:last-child:not(.mt), body.hl-refreshed .recs a .go { font-size: 12px; white-space: nowrap; }
}
@media (max-width: 360px) {
  body.hl-refreshed { padding-inline: 16px; }
  body.hl-refreshed .sitebar .tag { padding-left: 0; margin-top: 0; }
  body.hl-refreshed .sitebar .play { margin-left: 0; }
  body.hl-refreshed h1 { font-size: 29px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.hl-refreshed {
    color-scheme: dark; --bg: #171d1c; --paper: #202725; --sunk: #29312b;
    --ink: #f5f4ec; --ink2: #d2d8cc; --muted: #adb7a7; --line: #3b463d;
    --line2: #57624f; --accent: #d3f34b; --accent-soft: #344028; --mark: #d3f34b;
    --carb: #e0b37a; --carb-soft: #3b3021; --pro: #8dc4da; --fat: #baa8d4;
  }
}
:root[data-theme="dark"] body.hl-refreshed {
  color-scheme: dark; --bg: #171d1c; --paper: #202725; --sunk: #29312b;
  --ink: #f5f4ec; --ink2: #d2d8cc; --muted: #adb7a7; --line: #3b463d;
  --line2: #57624f; --accent: #d3f34b; --accent-soft: #344028; --mark: #d3f34b;
  --carb: #e0b37a; --carb-soft: #3b3021; --pro: #8dc4da; --fat: #baa8d4;
}
@media (prefers-reduced-motion: reduce) {
  body.hl-refreshed *, body.hl-refreshed *::before, body.hl-refreshed *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  body.hl-refreshed { --bg: #fff; --paper: #fff; --ink: #000; --ink2: #222; --muted: #444; --accent: #222; --accent-soft: #eee; background: #fff; color: #000; padding: 0; font-size: 11pt; }
  body.hl-refreshed :is(.sitebar, .hl-footer, .sitelinks, .backhome) { display: none; }
  body.hl-refreshed :is(.calc, .qbox, .rbox, .total, .actionbox) { box-shadow: none; }
}
