/* 내몸봄 건강검진 수치 해석기 — 테마 v2(11/19) 색·글꼴 변수 사용 */
.nmb-tool { margin: 6px 0 0; }
.nmb-privacy { display: flex; gap: 10px; align-items: flex-start; background: var(--panel, #f2f5f7); border-radius: 8px; padding: 12px 16px; font-size: .9rem; color: var(--ink-2, #4a5866); margin: 0 0 22px; line-height: 1.6; }
.nmb-privacy::before { content: ""; flex: none; width: 16px; height: 18px; margin-top: 3px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Crect x='1' y='8' width='14' height='9' rx='2' fill='%230b6b63'/%3E%3Cpath d='M4 8V5.5a4 4 0 0 1 8 0V8' stroke='%230b6b63' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.nmb-form fieldset { border: 0; border-top: 2px solid var(--ink, #14202b); padding: 16px 0 6px; margin: 0 0 18px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.nmb-form legend { font-weight: 800; padding: 0 10px 0 0; font-size: 1.12rem; }
.nmb-form legend small, .nmb-form label small { font-weight: 500; color: var(--ink-3, #6b7885); font-size: .8rem; }
.nmb-form label { display: flex; flex-direction: column; gap: 6px; font-size: .93rem; font-weight: 700; color: var(--ink-2, #4a5866); }
.nmb-form input[inputmode] { font-family: inherit; font-size: 1.35rem; font-weight: 800; line-height: 1.2; font-feature-settings: "tnum" 1; padding: 12px 14px; min-height: 56px; border: 1.5px solid var(--line, #d9e1e7); border-radius: 8px; width: 100%; color: var(--ink, #14202b); background: #fff; }
.nmb-form input[inputmode]::placeholder { font-weight: 500; color: #a3afb9; font-size: 1.05rem; }
.nmb-form input[inputmode]:focus { outline: none; border-color: var(--brand, #0b6b63); box-shadow: 0 0 0 3px var(--brand-soft, #e3f1ef); }
.nmb-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 22px; font-weight: 700; }
.nmb-row > span { margin-right: 6px; }
.nmb-row label { position: relative; display: inline-flex; flex-direction: row; align-items: center; font-size: 1rem; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--line, #d9e1e7); border-radius: 8px; cursor: pointer; font-weight: 700; color: var(--ink, #14202b); }
.nmb-row label:has(input:checked) { border-color: var(--ink, #14202b); background: var(--ink, #14202b); color: #fff; }
.nmb-row label input { position: absolute; opacity: 0; }
.nmb-row label:has(input:focus-visible) { outline: 3px solid var(--brand, #0b6b63); outline-offset: 2px; }
.nmb-row small { color: var(--ink-3, #6b7885); font-weight: 500; flex-basis: 100%; }
.nmb-hint { color: var(--ink-3, #6b7885); font-size: .9rem; margin: 2px 0 14px; }
.nmb-go { width: 100%; font-size: 1.15rem; min-height: 60px; }
.nmb-result { margin-top: 34px; scroll-margin-top: 90px; }
.nmb-summary { border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 2px; background: var(--ink, #14202b); color: #fff; }
.nmb-summary b { font-size: 1.25rem; }
.nmb-summary span { font-size: .92rem; color: #c7d2da; }
.nmb-item { border-top: 1px solid var(--line, #d9e1e7); padding: 22px 0 18px; }
.nmb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nmb-name { font-weight: 800; font-size: 1.15rem; }
.nmb-badge { margin-left: auto; font-size: .88rem; font-weight: 800; padding: 4px 12px; border-radius: 6px; color: #fff; }
.nmb-ok .nmb-badge { background: var(--ok-text, #22704a); }
.nmb-mid .nmb-badge { background: var(--mid-text, #b4541a); }
.nmb-high .nmb-badge { background: var(--t3, #c23b2a); }
.nmb-item .ruler { margin: 40px 0 18px; }
.nmb-what { margin: 6px 0 8px; color: var(--ink-2, #4a5866); font-size: .98rem; }
.nmb-todo { margin: 0 0 8px; font-size: 1rem; background: var(--panel, #f2f5f7); border-radius: 8px; padding: 12px 14px; }
.nmb-todo b { display: block; font-size: .82rem; color: var(--brand, #0b6b63); margin-bottom: 2px; }
.nmb-more { font-size: .93rem; font-weight: 700; display: inline-block; padding: 6px 0; }
.nmb-again { text-align: center; margin-top: 18px; }
.nmb-empty { color: var(--t3, #c23b2a); font-weight: 700; }
.nmb-sources { margin-top: 34px; font-size: .86rem; color: var(--ink-3, #6b7885); border-top: 1px solid var(--line, #d9e1e7); padding-top: 18px; line-height: 1.7; }
.nmb-sources ul { margin: 6px 0 8px; padding-left: 1.2em; }
.nmb-kcal { width: 100%; border-collapse: collapse; margin: 10px 0 12px; font-size: 1rem; }
.nmb-kcal td { padding: 10px 0; border-bottom: 1px solid var(--line, #d9e1e7); }
.nmb-kcal td:last-child { text-align: right; font-feature-settings: "tnum" 1; }
.nmb-kcal b { font-size: 1.15rem; }
.nmb-acts { display: grid; gap: 8px; grid-column: 1 / -1; }
.nmb-acts label { flex-direction: row !important; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line, #d9e1e7); border-radius: 8px; cursor: pointer; color: var(--ink, #14202b) !important; font-weight: 600 !important; }
.nmb-acts label:has(input:checked) { border-color: var(--brand, #0b6b63); background: var(--brand-soft, #e3f1ef); }
.nmb-acts input { width: 20px; height: 20px; accent-color: var(--brand, #0b6b63); flex: none; }
.nmb-acts small { display: block; }

/* 결과 공유(11/19) */
.nmb-share { margin: 26px 0 8px; padding: 20px; border: 1.5px solid var(--ink, #14202b); border-radius: 10px; background: #fff; }
.nmb-share > b { font-size: 1.1rem; display: block; }
.nmb-share > p { margin: 4px 0 12px; color: var(--ink-2, #4a5866); font-size: .95rem; }
.nmb-hide { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600 !important; color: var(--ink-2, #4a5866); margin: 0 0 12px; cursor: pointer; }
.nmb-hide input { width: 20px; height: 20px; accent-color: var(--brand, #0b6b63); }
.nmb-share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.nmb-share-btns .nmb-sh-go { grid-column: 1 / -1; background: #fee500; color: #191919; min-height: 60px; font-size: 1.15rem; }
.nmb-share-btns .nmb-sh-go:hover { background: #f5dc00; color: #191919; }
.nmb-sh-msg { display: block; min-height: 1.4em; margin-top: 8px; font-size: .9rem; color: var(--brand, #0b6b63); font-weight: 600; }

/* 혈압 기록장(11/19) */
.bp-form fieldset { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .bp-form fieldset { grid-template-columns: 1fr 1fr; } .bp-form fieldset label:last-child { grid-column: 1 / -1; } }
.bp-when { font-weight: 600; color: var(--brand, #0b6b63); margin-left: 6px; }
.bp-msg { min-height: 1.5em; margin: 10px 0 0; font-weight: 700; color: var(--brand, #0b6b63); }
.bp-out { margin-top: 26px; }
.bp-empty { background: var(--panel, #f2f5f7); border-radius: 10px; padding: 22px; }
.bp-empty b { font-size: 1.1rem; }
.bp-empty p { margin: 6px 0 14px; color: var(--ink-2, #4a5866); }
.bp-note { background: #fff7e6; border-radius: 8px; padding: 10px 14px; font-size: .92rem; font-weight: 600; }
.bp-week { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink, #14202b); border-bottom: 1px solid var(--line, #d9e1e7); margin-bottom: 6px; }
.bp-week div { padding: 14px 6px; text-align: center; }
.bp-week div + div { border-left: 1px solid var(--line, #d9e1e7); }
.bp-week b { display: block; font-size: 1.6rem; line-height: 1.2; font-feature-settings: "tnum" 1; }
.bp-week span { font-size: .82rem; color: var(--ink-3, #5c6874); }
.bp-chart { margin: 24px 0 10px; }
.bp-chart svg { width: 100%; height: auto; display: block; border: 1px solid var(--line, #d9e1e7); border-radius: 8px; }
.bp-chart figcaption { font-size: .82rem; color: var(--ink-3, #5c6874); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.bp-chart figcaption span { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin-right: -6px; }
.bp-chart .k1 { background: #14202b; } .bp-chart .k2 { background: #0b6b63; } .bp-chart .k3 { border-top: 2px dashed #c23b2a; height: 0; }
.bp-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .98rem; font-feature-settings: "tnum" 1; }
.bp-table th { text-align: left; font-size: .85rem; color: var(--ink-3, #5c6874); border-bottom: 2px solid var(--ink, #14202b); padding: 8px 6px; }
.bp-table td { border-bottom: 1px solid var(--line, #d9e1e7); padding: 10px 6px; }
.bp-table td:nth-child(2), .bp-table td:nth-child(3) { font-weight: 800; }
.bp-del { background: none; border: 0; color: var(--ink-3, #5c6874); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; min-height: 40px; }
.bp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bp-clear { background: none; border: 0; color: var(--t3, #c23b2a); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; min-height: 44px; margin-left: auto; }

/* 진료용 인쇄: 기록장만 깔끔하게 */
@media print {
  body.nmb-printing .site-header, body.nmb-printing .site-footer, body.nmb-printing .page-top .breadcrumb, body.nmb-printing .entry > *:not(.nmb-tool), body.nmb-printing .np, body.nmb-printing .nmb-share, body.nmb-printing .bp-form, body.nmb-printing .nmb-privacy, body.nmb-printing ins.adsbygoogle, body.nmb-printing .note, body.nmb-printing .related { display: none !important; }
  body.nmb-printing .page-top { background: none; border: 0; }
  body.nmb-printing .bp-table { font-size: 11pt; }
}

/* 11/19 결과 단순화(5060 원칙) */
.nmb-summary b { font-size: 1.45rem; line-height: 1.35; }
.nmb-summary span { font-size: 1rem; }
.nmb-item .nmb-name { font-size: 1.25rem; }
.nmb-badge { font-size: 1rem; padding: 6px 14px; }
.nmb-todo { font-size: 1.08rem; line-height: 1.6; }
.nmb-why { margin-top: 6px; }
.nmb-why summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--brand, #0b6b63); font-size: .98rem; }
.nmb-why p { margin: 4px 0 8px; color: var(--ink-2, #4a5866); font-size: 1rem; line-height: 1.7; }
.nmb-oks { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; border-top: 1px solid var(--line, #d9e1e7); padding: 18px 0; font-size: 1.05rem; }
.nmb-oks b { color: var(--ok-text, #22704a); font-size: 1.15rem; }
