/* 햇빛계산소 — navy report band, centered calculator card, articles below. Single light look. */
:root {
  --navy: #141b26;
  --navy-deep: #0d1219;
  --ink: #15171a;
  --text: #2b2f36;
  --muted: #5f6672;
  --soft: #c3cad4;
  --line: #e3e6ea;
  --field: #cfd4db;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --amber: #e8b44a;
  --amber-ink: #8f620a;
  --good: #2f7d4f;
  --warn: #a8690f;
  --bad: #b4432f;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.4; }
p { margin: 0; }
a { color: var(--navy); }
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.col { max-width: 920px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--amber); color: #1a1406; padding: 8px 12px; z-index: 30; }
.skip:focus { left: 16px; }

/* band */
.band { background: var(--navy); color: #ffffff; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 26px; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: #ffffff; line-height: 1.2; }
.logo .en { font-weight: 300; font-size: 25px; letter-spacing: 0.32em; }
.logo .ko { font-size: 13px; letter-spacing: 0.18em; color: var(--soft); }
nav { display: flex; gap: 6px 26px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
nav a { color: #ffffff; text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: rgba(255,255,255,0.4); }
nav a[aria-current="page"] { border-bottom-color: #ffffff; }
nav a.cta { color: var(--amber); }
.intro { padding-block: 40px 140px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; color: var(--amber); font-weight: 500; }
.intro h1 { color: #ffffff; font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.intro p { color: var(--soft); max-width: 640px; }
.band.short .intro { padding-block: 32px 48px; }

/* calculator */
.calc { position: relative; margin-top: -100px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(13, 18, 25, 0.45); }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 22px 28px 0; }
.calc-head h2 { font-size: 19px; font-weight: 800; }
.tag { font-size: 12px; color: var(--amber-ink); font-weight: 700; }
form.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px 18px; padding: 20px 28px 24px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 700; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--muted); }
input[type="text"], input[type="number"], input[type="password"], input[type="email"], select, textarea {
  width: 100%; min-width: 0; border: 1px solid var(--field); background: var(--paper); padding: 10px 11px; font-size: 15px; border-radius: 0;
}
textarea { min-height: 120px; resize: vertical; }
.seg { display: flex; border: 1px solid var(--field); }
.seg label { flex: 1; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 6px; font-size: 14.5px; }
.seg label + label span { border-left: 1px solid var(--field); }
.seg input:checked + span { background: var(--navy); color: #ffffff; }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: -2px; }
.btn { border: 0; cursor: pointer; font-weight: 700; font-size: 15px; padding: 12px 22px; background: var(--navy); color: #ffffff; text-decoration: none; display: inline-block; text-align: center; }
.btn.amber { background: var(--amber); color: #1a1406; }
.btn.line { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.result { border-top: 1px solid var(--line); padding: 26px 28px 28px; display: flex; gap: 28px; flex-wrap: wrap; align-items: stretch; }
.capbox { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.capbox .lbl { font-size: 13px; color: var(--muted); }
.capbox .big { font-family: var(--font-num); font-size: clamp(34px, 5vw, 46px); color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
.capbox .big small { font-size: 0.5em; margin-left: 6px; color: var(--muted); }
.capbox .sub { font-size: 14px; color: var(--text); }
.checks { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; }
.checks .row { display: grid; grid-template-columns: 78px auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checks .row:first-child { border-top: 1px solid var(--line); }
.pill { font-size: 11.5px; font-weight: 700; padding: 0 8px; border: 1px solid currentColor; white-space: nowrap; }
.s0 { color: var(--good); } .s1 { color: var(--warn); } .s2 { color: var(--bad); }
.next { flex: 1 1 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding-top: 6px; }
.next p { font-size: 14px; color: var(--muted); flex: 1 1 360px; min-width: 0; }
.fine { font-size: 12.5px; color: var(--muted); }
.caveat { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.6; }

/* home */
.home-body { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; padding-block: 72px 88px; }
.feed { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-size: 15px; font-weight: 800; letter-spacing: 0.06em; }
.post { display: flex; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.thumb { flex: 0 0 210px; height: 132px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; background: var(--mist); color: var(--ink); text-decoration: none; }
.thumb.dark { background: var(--navy); color: #ffffff; }
.thumb .k { font-size: 12px; color: var(--muted); }
.thumb.dark .k { color: var(--soft); }
.thumb .v { font-family: var(--font-num); font-size: 24px; }
.thumb.dark .v { color: var(--amber); }
.post .body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post h3 { font-size: 19.5px; font-weight: 700; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post p { font-size: 15px; color: #4a4f57; }
.post p b { color: var(--amber-ink); font-weight: 700; margin-right: 4px; }
.meta { font-size: 13px; color: var(--muted); }
aside.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.figs { display: flex; flex-direction: column; }
.fig { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fig span:first-child { font-size: 13px; color: var(--muted); }
.fig .num { font-size: 21px; color: var(--ink); }
.askbox { background: var(--mist); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.askbox b { font-size: 17px; color: var(--navy); }
.askbox p { font-size: 14px; color: #4a4f57; }

/* detail */
.summary { margin-top: -28px; position: relative; background: var(--paper); border: 1px solid var(--line); padding: 18px 24px; display: flex; gap: 14px 32px; flex-wrap: wrap; align-items: center; box-shadow: 0 14px 30px -24px rgba(13,18,25,.4); }
.summary .item { display: flex; flex-direction: column; min-width: 0; }
.summary .item span:first-child { font-size: 12px; color: var(--muted); }
.summary .item b { font-size: 15px; color: var(--ink); }
.summary .kw { display: flex; align-items: center; gap: 8px; }
.summary .kw input { width: 110px; }
.tabs { display: flex; border-bottom: 1px solid var(--ink); margin-top: 40px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 14px 22px; font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 4px; }
.subtabs button { background: var(--paper); border: 1px solid var(--field); padding: 9px 16px; font-size: 14.5px; font-weight: 700; cursor: pointer; color: var(--text); }
.subtabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.panel { padding-block: 28px 8px; display: flex; flex-direction: column; gap: 26px; }
.split { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.split > form { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > .out { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.headline { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.headline .lbl { font-size: 13px; color: var(--muted); }
.headline .big { font-family: var(--font-num); font-size: clamp(28px, 4vw, 38px); color: var(--ink); line-height: 1.2; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); border-top: 1px solid var(--line); }
.kv div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv span { font-size: 12.5px; color: var(--muted); }
.kv b { font-family: var(--font-num); font-weight: 500; font-size: 18px; color: var(--ink); }
.status { border: 1px solid var(--line); background: var(--mist); padding: 16px 18px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.status.warn { background: #fbf4e6; border-color: #ecd7ad; }
.status b { color: var(--ink); }
.status ul { margin: 0; padding-left: 18px; }
.formula { font-family: var(--font-num); font-size: 13.5px; background: var(--mist); padding: 12px 14px; overflow-x: auto; white-space: nowrap; }
table.assume { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.assume th, table.assume td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.assume th { font-size: 12px; color: var(--muted); font-weight: 500; }
.scroll { overflow-x: auto; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-block: 28px 80px; border-top: 1px solid var(--line); margin-top: 28px; }
.toast { font-size: 13.5px; color: var(--good); }

/* guide / news / about / board */
.page { padding-block: 56px 88px; display: flex; flex-direction: column; gap: 32px; }
.article { border-top: 2px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; gap: 16px; max-width: 70ch; }
.article h2 { font-size: clamp(22px, 3vw, 28px); }
.article h3 { font-size: 17px; margin-top: 8px; }
.article ul { margin: 0; padding-left: 20px; }
.sum3 { background: var(--mist); padding: 16px 18px; }
.sum3 ol { margin: 6px 0 0; padding-left: 20px; }
.soon { display: flex; flex-direction: column; gap: 6px; }
.soon ul { margin: 0; padding-left: 18px; color: #4a4f57; font-size: 14.5px; }
.news { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: baseline; }
.news a:hover span:nth-child(2) { text-decoration: underline; text-underline-offset: 4px; }
.news .src { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .news a { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.two { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.two > * { flex: 1 1 380px; min-width: 0; }
.two ul { margin: 8px 0 0; padding-left: 18px; }
table.posts { width: 100%; border-collapse: collapse; font-size: 14px; }
table.posts th, table.posts td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.posts th { font-size: 12px; color: var(--muted); font-weight: 500; border-top: 2px solid var(--ink); }
table.posts tr.mine td { background: #fbf4e6; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 6px; align-items: center; }
.linkbtn svg { width: 12px; height: 12px; }
.st { font-size: 12px; font-weight: 700; color: var(--muted); }
.st.done { color: var(--good); }
form.post-form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 5px; accent-color: var(--navy); }
.consent { border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.consent dl { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 10px; margin: 2px 0 0 24px; color: var(--muted); font-size: 12.5px; }
.consent dt { font-weight: 700; } .consent dd { margin: 0; }
.err { color: var(--bad); font-size: 13.5px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.empty { padding: 20px 0; color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 30px 40px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text); }
.sheet { position: fixed; inset: 0; background: rgba(13, 18, 25, 0.55); z-index: 20; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet .box { background: var(--paper); max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; padding: 26px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.legal { max-width: 72ch; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.legal h3 { font-size: 16px; margin-top: 10px; }
.legal ul { margin: 0; padding-left: 18px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal th, .legal td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-size: 12px; color: var(--muted); font-weight: 500; }

/* admin */
.admin-card { border: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.admin-card.new { border-color: var(--amber); background: #fffaf0; }
.admin-row { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: baseline; font-size: 14px; }
.admin-row b { color: var(--ink); }
.admin-body { white-space: pre-wrap; background: var(--mist); padding: 12px 14px; font-size: 14.5px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-actions select { width: auto; }
.qr { width: 200px; height: 200px; background: #ffffff; border: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .calc, .summary { transition: box-shadow .2s ease; } }
