/* Bigland health calculators */
.bnc { --navy: #123055; --navy2: #0d2543; --blue: #1a6fb0; --teal: #17968c; --amber: #f0900f; --amber-d: #d97c06; --bd: #e6e6e1; --muted: #5c6b78; margin: 28px 0 36px; }
.bnc *, .bnc *::before, .bnc *::after { box-sizing: border-box; }
.bnc-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--bd); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(18,48,85,.14); }
@media (max-width: 859px) { .bnc-card { grid-template-columns: 1fr; border-radius: 20px; } }

/* ---------- form ---------- */
.bnc-form { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 520px) { .bnc-form { padding: 22px 18px 24px; } }
.bnc-form-head { display: flex; flex-direction: column; gap: 2px; }
.bnc-form-head strong { font-size: 20px; color: var(--navy); }
.bnc-form-head span { font-size: 13px; color: var(--muted); }
.bnc-form-head span::before { content: "\1F512"; margin-right: 6px; font-size: 12px; }
.bnc-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin: 0 0 7px; letter-spacing: .01em; }
.bnc-row { display: flex; gap: 10px; }
.bnc-in { position: relative; flex: 1; }
.bnc-in input { width: 100%; height: 52px; padding: 0 56px 0 16px; border: 1.5px solid var(--bd); border-radius: 14px; background: #fbfbf9; font-size: 17px; font-weight: 600; color: var(--navy); transition: border-color .15s, box-shadow .15s, background .15s; -moz-appearance: textfield; appearance: textfield; }
.bnc-in input[type=time] { padding-right: 16px; }
.bnc-in input::-webkit-outer-spin-button, .bnc-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bnc-in input::placeholder { color: #b3bcc4; font-weight: 500; }
.bnc-in input:focus, .bnc-sel select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(26,111,176,.14); }
.bnc-in span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13.5px; font-weight: 600; color: var(--muted); pointer-events: none; }
.bnc-hint { margin: 6px 2px 0; font-size: 12.5px; color: var(--muted); }
.bnc-err { margin: 6px 2px 0; font-size: 13px; color: #c0392b; font-weight: 600; min-height: 0; }
.bnc-err:empty { display: none; }
.bnc-field.has-err .bnc-in input { border-color: #d6432b; background: #fff7f5; }
.bnc-sel { position: relative; }
.bnc-sel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.bnc-sel select { width: 100%; height: 52px; padding: 0 40px 0 16px; border: 1.5px solid var(--bd); border-radius: 14px; background: #fbfbf9; font-size: 15.5px; font-weight: 600; color: var(--navy); -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.bnc-seg { display: flex; gap: 6px; padding: 5px; background: #eef2f6; border-radius: 14px; }
.bnc-seg button { flex: 1; height: 42px; border: 0; border-radius: 10px; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; padding: 0 10px; }
.bnc-seg button.is-on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(18,48,85,.14); }
.bnc-seg button:focus-visible, .bnc-units button:focus-visible, .bnc-go:focus-visible { outline: 3px solid rgba(26,111,176,.45); outline-offset: 2px; }
.bnc-units { display: flex; gap: 6px; padding: 5px; background: #eef2f6; border-radius: 14px; }
.bnc-units button { flex: 1; height: 42px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: all .15s; }
.bnc-units button small { font-weight: 500; opacity: .75; margin-left: 4px; }
.bnc-units button.is-on { background: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(18,48,85,.3); }
.bnc-form .bnc-imp { display: none; }
.bnc-form.is-imp .bnc-imp { display: block; }
.bnc-form.is-imp .bnc-metric { display: none; }
.bnc-go { height: 56px; border: 0; border-radius: 16px; background: linear-gradient(180deg, #f6a21f, var(--amber-d)); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .02em; cursor: pointer; box-shadow: 0 10px 24px rgba(217,124,6,.35); transition: transform .12s, box-shadow .12s; margin-top: 4px; }
.bnc-go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(217,124,6,.42); }
.bnc-go:active { transform: translateY(0); }
.bnc-reset { align-self: center; border: 0; background: none; color: var(--muted); font-size: 13.5px; text-decoration: underline; cursor: pointer; padding: 2px 8px; }
.bnc-reset:hover { color: var(--navy); }

/* ---------- result panel ---------- */
.bnc-out { position: relative; background: radial-gradient(120% 90% at 100% 0%, #1d4b7d 0%, rgba(29,75,125,0) 55%), linear-gradient(160deg, var(--navy), var(--navy2)); color: #fff; padding: 30px 30px 28px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 520px) { .bnc-out { padding: 26px 18px 24px; } }
.bnc-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #cfe0f1; }
.bnc-empty strong { font-size: 19px; color: #fff; }
.bnc-empty span { font-size: 14.5px; opacity: .85; }
.bnc-pulse { width: 74px; height: 74px; border-radius: 50%; margin-bottom: 8px; background: radial-gradient(circle at 35% 30%, #f6a21f, #d97c06); box-shadow: 0 0 0 0 rgba(240,144,15,.5); animation: bncp 2.4s infinite; position: relative; }
.bnc-pulse::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #fff; opacity: .9; clip-path: polygon(50% 8%, 90% 34%, 90% 70%, 50% 96%, 10% 70%, 10% 34%); border-radius: 0; }
@keyframes bncp { 70% { box-shadow: 0 0 0 22px rgba(240,144,15,0); } 100% { box-shadow: 0 0 0 0 rgba(240,144,15,0); } }
.bnc-res.is-new { animation: bncin .5s ease both; }
@keyframes bncin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bnc-label { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fc3e6; margin-bottom: 4px; }
.bnc-big { font-size: clamp(54px, 9vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.bnc-big small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: #b9d3ee; }
.bnc-chip { display: inline-block; margin: 10px 0 4px; padding: 6px 14px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.bnc-scale { position: relative; margin: 22px 0 8px; }
.bnc-scale-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.bnc-scale-bar i { display: block; }
.bnc-marker { position: absolute; top: -5px; width: 4px; height: 22px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 3px 8px rgba(0,0,0,.4); transform: translateX(-50%); transition: left .6s cubic-bezier(.2,.8,.2,1); }
.bnc-scale-labels { display: flex; margin-top: 10px; font-size: 11.5px; color: #a9c6e3; }
.bnc-scale-labels span { text-align: center; overflow: hidden; text-overflow: ellipsis; }
.bnc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.bnc-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.bnc-stat span { font-size: 12px; color: #a9c6e3; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.bnc-stat strong { font-size: 19px; }
.bnc-stat em { font-size: 12px; font-style: normal; color: #9fc3e6; }
.bnc-text { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: #e3eefa; }
.bnc-small { font-size: 12.5px; color: #a9c6e3; }
.bnc-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; line-height: 1.5; color: #8fb2d6; }
.bnc-alert { margin: 10px 0 4px; padding: 10px 14px; border-radius: 12px; background: rgba(240,144,15,.2); border: 1px solid rgba(240,144,15,.55); font-size: 13.5px; color: #ffe2b8; }
.bnc-table { width: 100%; border-collapse: collapse; margin: 14px 0 0; font-size: 14.5px; }
.bnc-table th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #9fc3e6; padding: 6px 8px; font-weight: 700; }
.bnc-table td { padding: 9px 8px; border-top: 1px solid rgba(255,255,255,.1); color: #fff; }
.bnc-table td:last-child, .bnc-table th:last-child { text-align: right; }
.bnc-table tr.is-on td { background: rgba(240,144,15,.18); font-weight: 700; }
.entry-content .bnc-table, .entry-content .bnc-table td, .entry-content .bnc-table th { border-color: rgba(255,255,255,.1); background: transparent; }
.bnc-donut-wrap { position: relative; width: 190px; height: 190px; margin: 6px auto 4px; }
.bnc-donut { width: 100%; height: 100%; filter: drop-shadow(0 8px 18px rgba(0,0,0,.3)); }
.bnc-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bnc-donut-center strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.bnc-donut-center span { font-size: 12px; color: #a9c6e3; text-transform: uppercase; letter-spacing: .1em; }
.bnc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13.5px; color: #dbe9f8; }
.bnc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.bnc-glasses { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.bnc-glass { width: 22px; height: 30px; border-radius: 4px 4px 8px 8px; background: linear-gradient(180deg, rgba(255,255,255,.22) 0 22%, #4cb8ef 22% 100%); border: 1.5px solid rgba(255,255,255,.55); animation: bncg .5s ease both; }
.bnc-glass:nth-child(n+2) { animation-delay: .04s; } .bnc-glass:nth-child(n+5) { animation-delay: .12s; } .bnc-glass:nth-child(n+9) { animation-delay: .2s; }
@keyframes bncg { from { opacity: 0; transform: translateY(8px) scale(.8); } to { opacity: 1; transform: none; } }
.bnc-zones { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bnc-zone { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 9px 12px; }
.bnc-zone i { width: 6px; align-self: stretch; border-radius: 4px; }
.bnc-zone div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bnc-zone strong { font-size: 14.5px; }
.bnc-zone span { font-size: 12px; color: #a9c6e3; }
.bnc-zone b { font-size: 17px; white-space: nowrap; }
.bnc-zone b small { font-size: 11px; color: #a9c6e3; font-weight: 600; }
.bnc-times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.bnc-time { position: relative; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.bnc-time strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.bnc-time span { font-size: 12.5px; color: #a9c6e3; }
.bnc-time em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #2ea85a; color: #fff; padding: 3px 8px; border-radius: 999px; }
.bnc-time.is-rec { border-color: #2ea85a; background: rgba(46,168,90,.14); }

/* ---------- calculator pages ---------- */
.bnc-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 26px 0; }
.bnc-tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--bd, #e6e6e1); border-radius: 20px; text-decoration: none !important; color: #16202b; box-shadow: 0 1px 2px rgba(18,48,85,.05), 0 8px 24px rgba(18,48,85,.06); transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; overflow: hidden; }
.bnc-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(18,48,85,.16); border-color: #bcd3ea; }
.bnc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--g, linear-gradient(135deg, #1a6fb0, #17968c)); box-shadow: 0 8px 18px rgba(18,48,85,.22); }
.bnc-tile strong { font-size: 18.5px; color: #123055; line-height: 1.25; }
.bnc-tile span { font-size: 14.5px; color: #5c6b78; line-height: 1.5; }
.bnc-tile em { margin-top: auto; font-style: normal; font-weight: 700; font-size: 14px; color: #1a6fb0; }
.bnc-tile em::after { content: " \2192"; transition: margin .15s; }
.bnc-tile:hover em::after { margin-left: 4px; }
.bnc-tools-box { margin: 36px 0 10px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(135deg, #f3f8fc, #eaf4f3); border: 1px solid #d6e6f3; }
.bnc-tools-box h2 { margin: 0 0 6px !important; font-size: 22px !important; }
.bnc-tools-box p { margin: 0 0 12px; color: #5c6b78; font-size: 15px; }
.bnc-tools-box .bnc-hub { margin: 10px 0 0; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.bnc-tools-box .bnc-tile { padding: 14px 16px; flex-direction: row; align-items: center; gap: 12px; border-radius: 16px; }
.bnc-tools-box .bnc-ico { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; flex: none; }
.bnc-tools-box .bnc-tile strong { font-size: 15.5px; }
.bnc-tools-box .bnc-tile span, .bnc-tools-box .bnc-tile em { display: none; }
.bnc-home { margin: 10px 0; }
.bnc-home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.bnc-home-head h2 { margin: 0 !important; }
.bnc-home-head a { font-weight: 700; text-decoration: none; }
.bnc-scale-note { font-size: 13px; color: #5c6b78; }
@media (prefers-reduced-motion: reduce) { .bnc *, .bnc-tile { animation: none !important; transition: none !important; } }

/* ---------- additions: progress bar, date field, links, small text in tables ---------- */
.bnc-in input[type=date] { padding-right: 16px; min-width: 0; }
.bnc-bigtxt { font-size: clamp(34px, 7vw, 48px); letter-spacing: -.01em; }
.bnc-text a, .bnc-note a { color: #9fd0ff; text-decoration: underline; }
.bnc-table small { font-size: 12px; color: #a9c6e3; font-weight: 500; }
.bnc-prog { margin: 18px 0 6px; }
.bnc-prog-bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.bnc-prog-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #17968c, #2ea85a 60%, #f0900f); transform-origin: left; animation: bncgrow .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bncgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bnc-prog-l { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: #a9c6e3; }
.bnc-prog-l span:last-child { text-align: right; }
