/* Cadence direction C. Shared by the directory and all sixteen tools. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  color-scheme: light;
  --ink: #17171b;
  --muted: #666670;
  --faint: #767680;
  --line: #e5e5ed;
  --field: #dcdce5;
  --bg: #f3f2f7;
  --card: #fff;
  --blue: #007aff;
  --graphite: #007aff;
  --slate: #dde8f6;
  --amber: #aa5800;
  --shadow: 0 12px 40px rgba(35, 42, 67, .06), 0 2px 8px rgba(35, 42, 67, .025);
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.nav { position: relative; z-index: 5; max-width: 1200px; margin: 24px auto 0; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.nav-logo { font-size: 26px; line-height: 1; font-weight: 750; color: var(--ink); letter-spacing: -1.2px; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-links .nav-cta { background: var(--blue); color: #fff; padding: 11px 18px; border-radius: 13px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-cta:hover, .cta-button:hover { background: #0068dc; }
.nav-burger, .nav-menu { display: none; }
.content { max-width: 1248px; margin: 48px auto 88px; padding: 0 24px; }
.crumbs { color: var(--faint); font-size: 13px; margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.tool-hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; }
.hero-copy { padding: 18px 0 24px; }
.content h1 { font-size: clamp(44px, 4.7vw, 68px); font-weight: 780; letter-spacing: -.055em; line-height: 1.02; margin: 0 0 24px; text-wrap: balance; overflow-wrap: break-word; }
.content .subtitle { max-width: 40ch; font-size: 20px; color: var(--muted); line-height: 1.5; margin: 0; }
.tool-stack { min-width: 0; display: grid; gap: 24px; }
.tool-stack .tool + .tool { margin: 0; }
.tool { min-width: 0; background: #fff; border: 0; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.content h2 { font-size: 28px; letter-spacing: -.035em; line-height: 1.2; font-weight: 720; margin: 44px 0 16px; text-wrap: balance; }
.content h3 { font-size: 18px; line-height: 1.35; font-weight: 650; margin-bottom: 8px; }
.content p { font-size: 16px; line-height: 1.75; color: #464650; margin-bottom: 18px; }
.content strong { font-weight: 650; color: var(--ink); }
.tool h2 { margin: 0 0 8px; font-size: 23px; }
.tool > p.lead { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.tool-reading { width: 100%; max-width: 65ch; margin: 80px auto 0; }
.tool-reading > h2:first-child { margin-top: 0; }
.content ul.plain { list-style: none; margin-bottom: 24px; }
.content ul.plain li { position: relative; padding-left: 20px; margin-bottom: 12px; font-size: 16px; line-height: 1.7; color: #464650; }
.content ul.plain li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.badge { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 8px; color: #9b5000; background: #fff2df; margin-left: 8px; }
.fields, .reveal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.fields .wide { grid-column: 1 / -1; }
.field, .with-unit, .rows, .row, .time-row { min-width: 0; }
.field label, .field .label { display: block; font-size: 13px; font-weight: 600; color: #555560; margin-bottom: 7px; line-height: 1.4; }
.field .hint { display: block; font-size: 12px; color: var(--faint); margin-top: 7px; line-height: 1.5; }
.field input, .field select { width: 100%; min-width: 0; max-width: 100%; height: 52px; padding: 0 14px; color: var(--ink); background-color: #f6f6fa; border: 1px solid transparent; border-radius: 12px; font-size: 16px; outline: none; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field input:hover, .field select:hover { border-color: var(--field); }
.field input:focus, .field select:focus { background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px #007aff18; }
.field input[type="date"], .field input[type="time"] { display: flex; align-items: center; }
.field select { cursor: pointer; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 19px) 23px, calc(100% - 14px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.with-unit { position: relative; }
.with-unit input { padding-right: 64px; }
.with-unit span { position: absolute; right: 14px; top: 0; height: 52px; display: flex; align-items: center; font-size: 14px; color: var(--muted); pointer-events: none; }
.seg { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 13px; padding: 4px; background: #eeeef3; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 6px; border-radius: 10px; font-size: 14px; text-align: center; cursor: pointer; }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: #fff; box-shadow: 0 2px 5px #20203510; transition: transform .25s; }
.seg input:nth-of-type(2):checked ~ .thumb { transform: translateX(100%); }
.seg input:checked + label { color: var(--blue); }
.seg input:focus-visible + label { outline: 3px solid var(--blue); }
.result { margin-top: 26px; padding: 26px; border-radius: 22px; background: #eef6ff; color: var(--ink); overflow-wrap: anywhere; transition: opacity .2s; }
.result.empty { color: var(--muted); background: #f6f6fa; }
.result .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #526a88; }
.result .eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ff9500; }
.result.empty .eyebrow::before { background: #aaaaba; }
.result .big { margin: 8px 0; color: #102e50; font-size: clamp(30px, 3.2vw, 46px); font-weight: 750; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result .sub { font-size: 15px; line-height: 1.55; color: #586b81; }
.result .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.result .cell { min-width: 0; padding: 14px; border-radius: 15px; background: #fff; box-shadow: 0 3px 10px #183e6810; }
.result .cell .k { font-size: 12px; line-height: 1.45; color: var(--muted); margin-bottom: 5px; }
.result .cell .v { font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; color: #183a60; font-variant-numeric: tabular-nums; }
.result .cell.alert .v, .result .line.warn, .result .rt td.hl { color: #a45400; }
.result .rt th, .result .rt .soft, .result .line, .result .days-more, .result .key, .result .steps small, .result .track .lab, .result .gap .lab, .result .meter .tl { color: #586b81; }
.result .rt td, .result .cmp .yr b { color: var(--ink); border-color: #dce6f2; }
.result .rt { table-layout: fixed; }
.result .rt td { overflow-wrap: anywhere; }
.result .chips span { background: #fff; color: #205180; box-shadow: 0 2px 6px #183e6808; }
.result .chips span.dim { color: var(--muted); }
.result .plan { background: #fff; box-shadow: 0 3px 10px #183e680a; }
.result .plan h3, .result .plan td { color: var(--ink); }
.result .plan p, .result .plan th { color: var(--muted); }
.result .plan td { border-color: var(--line); }
.result .track { background: #d9e9fb !important; }
.result .track .fill { background: var(--blue); }
.result .track .mark { background: #ff9500; }
.result .track .mark .lab { color: #a45400; }
.result .gap, .result .meter { background: #d9e9fb; }
.result .gap .fill, .result .meter .fill, .result .steps i, .result .days i { background: var(--blue); }
.result .gap .now { background: #ff9500; }
.result .meter .tick { background: #fff; }
.result .days i.wk { background: #83baff; }
.result .days i.off { background: #dae6f5; }
.result .tabs i { background: var(--blue); box-shadow: inset 0 0 0 2px #007aff30; }
.result .tabs i.h { background: linear-gradient(90deg, var(--blue) 50%, #fff 50%); }
.result .tabs i.q { background: conic-gradient(var(--blue) 0 25%, #fff 25% 100%); }
.result .tabs i.tq { background: conic-gradient(var(--blue) 0 75%, #fff 75% 100%); }
.result .bar { background: #fff; }
.result .bar.sub span { background: #cbd2df; }
.result .bar.once span { background: #b2d5ff; }
.result .bar em { color: #183a60; }
.notes { display: grid; gap: 8px; margin-top: 24px; }
.content .note { position: relative; padding-left: 16px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.content .note::before { content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: #b8b8c4; }
.content .note.lock::before { background: #40a17d; }
.tool .warnbox, .tool .caution { margin-top: 20px; background: #faf7f2; border-left: 3px solid #ff9500; color: #715738; }
.tool > .warnbox:first-child { margin-top: 0; }
.tool .caution strong { color: #715738; }
.tool .act, .tool .add-btn { height: auto; min-height: 44px; border-radius: 12px; padding: 10px 16px; font-size: 14px; line-height: 1.4; }
.tool .add-btn, .tool .act.ghost { background: #f2f7ff; border: 1px solid #d8e8ff; }
.tool .icon-btn { background: #f6f6fa; border-color: transparent; }
.tool .sheet { min-width: 0; border-radius: 18px; border-color: var(--line); }
.tool .sheet td { overflow-wrap: anywhere; }
.tool .check { display: flex; align-items: center; gap: 10px; line-height: 1.5; }
.tool .field .check input { flex: none; width: 20px; height: 20px; padding: 0; margin: 0; appearance: auto; accent-color: var(--blue); }
.cta-box { background: #fff; box-shadow: var(--shadow); border-radius: 24px; padding: 32px; text-align: left; margin-top: 48px; }
.content .cta-box h2 { margin: 0 0 12px; font-size: 27px; }
.content .cta-box p { color: var(--muted); }
.cta-button { display: inline-block; background: var(--blue); color: #fff; border-radius: 13px; padding: 13px 20px; font-size: 15px; font-weight: 600; }
.cta-button:hover { color: #fff; text-decoration: none; }
.links { display: grid; gap: 10px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-radius: 15px; padding: 17px 20px; color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: 0 2px 8px #20203504; }
.links a:hover { color: var(--blue); text-decoration: none; }
.links a::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 2px solid #a6a6b0; border-right: 2px solid #a6a6b0; transform: rotate(45deg); }
.pop { animation: pop .3s ease-out; }
@keyframes pop { from { opacity: .6; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (max-width: 1248px) {
  .nav { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 1023px) {
  .tool-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { padding: 0; }
  .content h1 { max-width: 18ch; font-size: 56px; }
  .content .subtitle { max-width: 52ch; }
  .tool-reading { margin-top: 64px; }
}
@media (min-width: 641px) and (max-width: 800px) {
  .nav-links .hide-sm { display: none; }
}
/* Repeating rows must fit the card, including when the hero has two columns. */
.tool .row.org { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tool .row.org .nm { grid-column: 1 / -1; }
.tool .row.org .dy { grid-column: 1 / 4; }
.tool .row.org .icon-btn { width: 100%; }
.tool .row.wmed { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tool .row.wmed .hw { grid-column: 1 / -1; }
.tool .row.med { grid-template-columns: minmax(0, 1fr) minmax(90px, .5fr) 44px; }
.tool .row.med .icon-btn { width: 44px; }
.tool .row.step { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; }
.tool .row.step .icon-btn { width: 44px; }
@media screen {
  .tool .cards .card { width: 100%; max-width: 340px; box-shadow: 0 8px 24px #183e6815; }
  .tool .grid7 { min-width: 0; }
  .tool .grid7 th:first-child { width: 54px; }
  .tool .grid7 th { font-size: 10px; white-space: normal; }
  .tool .grid7 td { font-size: 10px; }
  .tool .grid7 th, .tool .grid7 td { padding-left: 2px; padding-right: 2px; }
  .tool .month td.on span { background: #e7f2ff; color: #005fc9; }
}
@media (max-width: 640px) {
  .nav { margin: 16px 16px 0; padding: 12px 14px; border-radius: 17px; gap: 10px; }
  .nav-logo { font-size: 24px; }
  .nav-links { gap: 8px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { padding: 10px 13px; font-size: 13px; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
  .nav-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-menu { display: flex; flex-direction: column; position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; right: 0; padding: 0 20px; border-radius: 17px; background: #fff; box-shadow: var(--shadow); max-height: 0; opacity: 0; visibility: hidden; overflow: hidden; transition: max-height .25s, opacity .25s, padding .25s, visibility .25s; }
  .nav.open .nav-menu { max-height: 320px; opacity: 1; visibility: visible; padding: 10px 20px; }
  .nav-menu a { padding: 12px 0; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-menu a:last-child { border: 0; }
  .content { padding: 0 20px; margin-top: 30px; margin-bottom: 56px; }
  .crumbs { font-size: 12px; margin-bottom: 24px; }
  .content h1 { font-size: 43px; letter-spacing: -.05em; margin-bottom: 20px; }
  .content .subtitle { font-size: 18px; line-height: 1.55; }
  .tool-hero { gap: 28px; }
  .tool { padding: 22px 20px; border-radius: 23px; }
  .fields, .reveal { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .result { padding: 22px 18px; border-radius: 18px; }
  .result .big { font-size: 32px; }
  .result .grid { gap: 8px; }
  .result .cell { padding: 12px; }
  .result .cell .v { font-size: 18px; }
  .result .rt td { font-size: 13px; }
  .result .rt th { font-size: 11px; }
  .tool .row.step { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .tool .row.step .icon-btn { width: 100%; }
  .tool .row.med { grid-template-columns: minmax(0, 1fr) 44px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .tool .row.med > .field:first-child { grid-column: 1 / -1; }
  .tool .grid7 th:first-child { width: 42px; }
  .tool .grid7 td, .tool .grid7 th { font-size: 9px; }
  .tool-reading { margin-top: 48px; }
  .content h2 { font-size: 25px; margin-top: 36px; }
  .tool h2 { margin-top: 0; font-size: 22px; }
  .cta-box { padding: 26px; }
  .content .cta-box h2 { font-size: 25px; }
}
@media print {
  body { background: #fff; }
  .tool-hero, .tool-stack { display: block; }
  .tool, .result { box-shadow: none; }
  .tool .sheet { overflow: visible; }
  .tool .cards .card { box-shadow: none; }
  /* Keep printable sheets in normal flow, without space from the screen hero. */
  body:has(.printable) :is(.nav, .crumbs, .hero-copy, .tool-reading, .footer),
  .tool:has(.printable) > :not(.printable):not(:has(.printable)),
  .result:has(.printable) > :not(.printable) { display: none; }
  body:has(.printable) .content,
  .tool:has(.printable),
  .result:has(.printable) { margin: 0; padding: 0; max-width: none; background: #fff; border: 0; border-radius: 0; }
  .tool .printable { position: static; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Layout A (29 Oct 2026): two columns on desktop, result left, controls right, smaller scale. ===== */
.tool-a { --line: #e5e5ea; --soft: #f6f6fa; --tint: #eaf3ff; --ink2: #3a3a40; --muted: #63636b; }
.tool-a .nav { max-width: 1100px; margin-top: 20px; padding: 10px 18px; border-radius: 18px; }
.tool-a .nav-logo { font-size: 23px; }
.tool-a .nav-links { gap: 22px; }
.tool-a .nav-links .nav-cta { padding: 9px 15px; border-radius: 11px; }
.tool-a .content { max-width: 1148px; margin: 22px auto 64px; padding: 0 24px; }
.tool-a .tool-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-a .hero-main { min-width: 0; }
.tool-a .crumbs { font-size: 13px; margin-bottom: 14px; line-height: 1.4; }
.tool-a .hero-copy { padding: 0; margin-bottom: 18px; }
.tool-a .content h1 { font-size: 42px; font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 10px; max-width: 16ch; }
.tool-a .content .subtitle { font-size: 16px; line-height: 1.5; max-width: 52ch; color: var(--muted); }
.tool-a .content h2 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 10px; }
.tool-a .content h3 { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 18px 0 6px; }
.tool-a .content p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; color: #48484f; }
.tool-a .content p:last-child { margin-bottom: 0; }

/* Result card */
.tool-a .answer { position: relative; min-width: 0; background: #fff; border-radius: 22px; padding: 22px 24px 24px; box-shadow: var(--shadow); }
.tool-a .answer-live { position: absolute; top: 22px; right: 24px; font-size: 13px; font-weight: 500; color: var(--blue); line-height: 1.4; }
.tool-a .answer .result { margin: 0; padding: 0; border-radius: 0; background: none; }
.tool-a .answer .result.empty { background: none; }
.tool-a .result .eyebrow { display: block; padding-right: 92px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.4; }
.tool-a .result .eyebrow::before { display: none; }
.tool-a .result .big { margin: 6px 0 4px; color: var(--blue); font-size: 46px; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.tool-a .result .big.long { font-size: 34px; letter-spacing: -.03em; }
.tool-a .result .when { font-size: 17px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.tool-a .result .sub { font-size: 15px; line-height: 1.5; color: var(--ink2); margin-top: 4px; }
.tool-a .result.empty .sub { color: var(--muted); }
.tool-a .result .grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 18px; }
.tool-a .result .cell { padding: 10px 12px; border-radius: 12px; background: var(--soft); box-shadow: none; }
.tool-a .result .cell .k { font-size: 12px; margin-bottom: 2px; }
.tool-a .result .cell .v { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.tool-a .result .cell.alert .v { color: #a45400; }
.tool-a .result .rt { margin-top: 16px; }
.tool-a .result .rt th { font-size: 12px; }
.tool-a .result .rt td { font-size: 14px; padding: 7px 8px 7px 0; border-color: var(--line); }
.tool-a .result .line { font-size: 13.5px; margin-top: 12px; }
.tool-a .result .chips { gap: 6px; margin-top: 14px; }
.tool-a .result .chips span { background: var(--soft); color: var(--ink); box-shadow: none; font-size: 14px; padding: 5px 10px; border-radius: 8px; }
.tool-a .result .chips span.dim { color: var(--muted); }
.tool-a .result .plans { gap: 10px; margin-top: 16px; }
.tool-a .result .plan { background: var(--soft); box-shadow: none; padding: 14px; border-radius: 14px; }
.tool-a .result .plan h3 { margin: 0 0 2px; font-size: 14px; }
.tool-a .result .plan p { font-size: 13px; margin-bottom: 8px; }
.tool-a .result .plan td { font-size: 14px; padding: 6px 0; }
.tool-a .result .tabs { margin-top: 16px; gap: 10px; }
.tool-a .result .tabs i { width: 34px; height: 34px; }
.tool-a .result .steps { height: 84px; margin-top: 18px; }
.tool-a .result .steps i { border-radius: 6px 6px 2px 2px; }
.tool-a .result .gap { height: 10px; margin: 26px 0 30px; background: var(--tint); }
.tool-a .result .gap .now { background: var(--ink); }
.tool-a .result .gap .lab { color: var(--muted); }
.tool-a .result .cmp { margin-top: 16px; gap: 12px; }
.tool-a .result .bar { background: var(--soft); height: 24px; }
.tool-a .result .bar em { height: 24px; }
.tool-a .result .bar.sub span { background: #c7ccd6; }
.tool-a .result .bar.once span { background: #9cc8ff; }
.tool-a .result .bar em { color: var(--ink); }
.tool-a .result .key { margin-top: 12px; }
.tool-a[data-tool="days-supply"] .result .days, .tool-a[data-tool="days-supply"] .result .days-more,
.tool-a[data-tool="refill-date"] .result .track, .tool-a[data-tool="liquid-medicine-dose"] .result .meter { display: none; }
.tool-a .answer-more { margin-top: 16px; }
.tool-a .answer-more .checklist { margin: 0; border: 0; border-radius: 22px; padding: 20px 24px; box-shadow: var(--shadow); }
.tool-a .answer-more .checklist li { font-size: 14.5px; }

/* Small visuals inside the result card */
.tool-a .viz-a { margin: 18px 0 2px; color: var(--ink); }
.tool-a .viz-a svg { display: block; max-width: 100%; height: auto; }
.tool-a .viz-cap { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.tool-a .viz-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-a .viz-arrow { flex: none; color: #8e8e93; font-size: 20px; line-height: 1; }
.tool-a .blister { flex: 1; min-width: 0; max-width: 118px; text-align: center; }
.tool-a .blister .pack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border-radius: 12px; background: #eef0f4; box-shadow: inset 0 0 0 1px #dfe2e8; }
.tool-a .blister .pack i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--blue); box-shadow: inset 0 -2px 3px #0050b030; }
.tool-a .blister .pack i.e { background: #d9dce3; box-shadow: inset 0 1px 2px #0000000f; }
.tool-a .blister b { display: block; margin-top: 7px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.tool-a .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 360px; }
.tool-a .cal .h { font-size: 11px; font-weight: 600; text-align: center; color: var(--muted); padding-bottom: 2px; }
.tool-a .cal .d { position: relative; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: #9a9aa2; }
.tool-a .cal .d.in { background: var(--tint); color: #20406a; }
.tool-a .cal .d.today { box-shadow: inset 0 0 0 1.5px #8e8e93; }
.tool-a .cal .d.re { background: #fff3e0; color: #9b5000; font-weight: 600; box-shadow: inset 0 0 0 1.5px #ff9500; }
.tool-a .cal .d.out { background: var(--blue); color: #fff; font-weight: 600; }
.tool-a .cal .d.on { background: var(--blue); color: #fff; font-weight: 600; }
.tool-a .cal .d.first { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--blue); }
.tool-a .cal .d .m { position: absolute; top: 1px; left: 4px; font-size: 8.5px; font-weight: 600; line-height: 1; opacity: .8; }
.tool-a .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.tool-a .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tool-a .pages { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-a .page { width: 56px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.tool-a .page .mo { display: block; background: var(--blue); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 0; }
.tool-a .page .dn { display: block; font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; padding: 3px 0 0; font-variant-numeric: tabular-nums; }
.tool-a .page .wd { display: block; font-size: 10px; color: var(--muted); padding-bottom: 4px; }
.tool-a .page.first { box-shadow: inset 0 0 0 2px var(--blue); }
.tool-a .clocks { display: flex; align-items: center; gap: 16px; }
.tool-a .clock { text-align: center; flex: none; }
.tool-a .clock b { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.tool-a .clock small { display: block; font-size: 12px; color: var(--muted); }
.tool-a .strip { display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); gap: 4px; }
.tool-a .strip i { display: block; height: 22px; border-radius: 5px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.tool-a .strip i.on { background: var(--blue); box-shadow: none; }
.tool-a .strip i.spare { background: #9cc8ff; box-shadow: none; }
.tool-a .strip i.first { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--blue); }
.tool-a .strip-lab { display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); gap: 4px; margin-top: 4px; font-size: 10.5px; color: var(--muted); text-align: center; }
.tool-a .org { display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); gap: 4px; align-items: center; max-width: 430px; }
.tool-a .org .h { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; }
.tool-a .org .s { font-size: 11px; color: var(--muted); }
.tool-a .org .c { height: 30px; border-radius: 8px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px; padding: 3px; }
.tool-a .org .c.f { background: var(--tint); box-shadow: inset 0 0 0 1px #cfe3ff; }
.tool-a .org .c i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.tool-a .packs-yr { display: flex; flex-wrap: wrap; gap: 5px; }
.tool-a .packs-yr i { width: 22px; height: 30px; border-radius: 5px; background: var(--blue); box-shadow: inset 0 -6px 0 #0060d0; }
.tool-a .packs-yr i.part { background: linear-gradient(0deg, var(--blue) var(--p, 50%), #d9dce3 var(--p, 50%)); box-shadow: none; }

.tool-a .tl { position: relative; height: 14px; margin: 10px 7px 0; border-radius: 7px; background: #e5e5ea; }
.tool-a .tl .awake { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--tint); box-shadow: inset 0 0 0 1px #cfe3ff; }
.tool-a .tl i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2.5px #fff; }
.tool-a .tl i.off { background: #8e8e93; }
.tool-a .tl-lab { position: relative; height: 18px; margin: 6px 7px 0; font-size: 12px; color: var(--muted); }
.tool-a .tl-lab span { position: absolute; top: 0; white-space: nowrap; }
.tool-a .tl-lab span.c { transform: translateX(-50%); }
.tool-a .tl-lab span.r { transform: translateX(-100%); }
.tool-a .drift { display: flex; gap: 6px; }
.tool-a .drift .dc { flex: 1; min-width: 0; text-align: center; }
.tool-a .drift .dz { display: flex; align-items: flex-end; justify-content: center; height: 60px; padding: 0 22%; border-radius: 10px; background: var(--soft); }
.tool-a .drift i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: #c7ccd6; transition: height .4s cubic-bezier(.3,.7,.2,1); }
.tool-a .drift i.moved { background: var(--blue); }
.tool-a .drift b { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.tool-a .drift small { display: block; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tool-a .scale { position: relative; height: 8px; margin: 34px 14px 30px; border-radius: 4px; background: var(--tint); }
.tool-a .scale .tk { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: #b8c9e0; }
.tool-a .scale .tk small { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.tool-a .scale .mk { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #fff, 0 2px 6px #007aff40; transition: left .4s cubic-bezier(.3,.7,.2,1); }
.tool-a .scale .mk small { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.tool-a .syr { position: relative; display: flex; align-items: center; height: 40px; }
.tool-a .syr .tip { flex: none; width: 16px; height: 8px; border-radius: 3px 0 0 3px; background: #d1d5dd; }
.tool-a .syr .barrel { position: relative; flex: 1; height: 34px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px #c7ccd6; overflow: hidden; }
.tool-a .syr .fill { position: absolute; left: 0; top: 0; bottom: 0; background: #9cc8ff; transition: width .4s cubic-bezier(.3,.7,.2,1); }
.tool-a .syr .stop { position: absolute; top: 2px; bottom: 2px; width: 6px; margin-left: -3px; border-radius: 2px; background: #3a3a40; transition: left .4s cubic-bezier(.3,.7,.2,1); }
.tool-a .syr .g { position: absolute; bottom: 0; width: 1px; height: 8px; background: #7c8594; }
.tool-a .syr .g.big { height: 14px; }
.tool-a .syr .rod { flex: none; width: 22px; height: 26px; margin-left: 2px; border-radius: 3px; background: #e5e5ea; box-shadow: inset 0 0 0 1.5px #c7ccd6; }
.tool-a .syr-lab { position: relative; height: 16px; margin: 4px 24px 0 16px; font-size: 11px; color: var(--muted); }
.tool-a .syr-lab span { position: absolute; transform: translateX(-50%); }

/* Controls panel */
.tool-a .tool-stack { gap: 16px; }
.tool-a .tool { border-radius: 22px; padding: 22px 24px 20px; }
.tool-a .panel-head { margin-bottom: 16px; }
.tool-a .content .panel-head h2 { font-size: 21px; margin: 0; }
.tool-a .content .panel-head .lead { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.tool-a .tool > h2 { font-size: 21px; margin: 0 0 2px; }
.tool-a .content .tool > p.lead { font-size: 14px; margin-bottom: 16px; color: var(--muted); }
.tool-a .fields, .tool-a .reveal { gap: 14px 14px; }
.tool-a .field label, .tool-a .field .label { font-size: 13px; font-weight: 500; color: var(--ink2); margin-bottom: 6px; }
.tool-a .field .hint { font-size: 12px; margin-top: 5px; }
.tool-a .field input, .tool-a .field select { height: 40px; padding: 0 12px; font-size: 15px; border-radius: 10px; background-color: var(--soft); }
.tool-a .field select { background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; padding-right: 30px; }
.tool-a .with-unit span { height: 40px; font-size: 13px; }
.tool-a .stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; height: 40px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.tool-a .stepper .step { border: 0; background: #f2f7ff; color: var(--blue); font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .15s; }
.tool-a .stepper .step:hover { background: var(--tint); }
.tool-a .stepper .step:active { background: #d6e8ff; }
.tool-a .field .stepper input { height: 40px; padding: 0 4px; border: 0; border-radius: 0; background: #fff; text-align: center; font-size: 16px; font-weight: 500; -moz-appearance: textfield; }
.tool-a .field .stepper input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.tool-a .stepper input::-webkit-outer-spin-button, .tool-a .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tool-a .chips-seg { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tool-a .chips-seg.wrap { grid-template-columns: repeat(auto-fit, minmax(var(--min, 76px), 1fr)); }
.tool-a .chips-seg button { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 34px; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--ink2); font-size: 14px; line-height: 1.25; cursor: pointer; transition: background-color .2s, color .2s; }
.tool-a .chips-seg button:hover { color: var(--blue); }
.tool-a .chips-seg button[aria-checked="true"] { background: var(--tint); color: var(--blue); font-weight: 500; }
.tool-a .weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.tool-a .weekdays button { height: 34px; border: 0; border-radius: 8px; background: var(--soft); color: #8e8e93; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.tool-a .weekdays button[aria-pressed="true"] { background: var(--tint); color: var(--blue); }
.tool-a .seg { padding: 3px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tool-a .seg label { min-height: 34px; padding: 4px 6px; font-size: 14px; border-radius: 8px; color: var(--ink2); margin: 0; }
.tool-a .seg .thumb { top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 8px; background: var(--tint); box-shadow: none; }
.tool-a .seg input:checked + label { color: var(--blue); font-weight: 500; }
.tool-a .panel-foot { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tool-a .panel-foot span + span { padding-left: 16px; border-left: 1px solid var(--line); }
.tool-a .notes { gap: 4px; margin-top: 14px; }
.tool-a .content .note { font-size: 12px; }
.tool-a .tool .act, .tool-a .tool .add-btn { min-height: 38px; height: auto; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.tool-a .actions { margin-top: 14px; }
.tool-a .rows { gap: 8px; }
.tool-a .row { gap: 8px; }
.tool-a .icon-btn { height: 40px; width: 40px; border-radius: 10px; font-size: 19px; }
.tool-a .time-row { grid-template-columns: 1fr 40px; gap: 8px; }
.tool-a .time-row input { height: 40px; }
.tool-a .times { gap: 8px; }
.tool-a .tool .warnbox, .tool-a .tool .caution { margin-top: 0; margin-bottom: 14px; padding: 12px 14px; font-size: 13.5px; border-radius: 12px; }
.tool-a .tool .caution { margin: 14px 0 0; }
.tool-a .ics-hint { font-size: 12.5px; }
.tool-a .tool .check { font-size: 14px; }
.tool-a .tool .row.org { grid-template-columns: repeat(4, minmax(0, 1fr)) 40px; padding-bottom: 10px; }
.tool-a .tool .row.org .nm { grid-column: 1 / -1; }
.tool-a .tool .row.org .dy { grid-column: 1 / 5; }
.tool-a .tool .row.org .icon-btn { width: 40px; }
.tool-a .tool .row.org .field select { background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; }
.tool-a .tool .row.step { grid-template-columns: repeat(3, minmax(0, 1fr)) 40px; }
.tool-a .tool .row.step .icon-btn, .tool-a .tool .row.med .icon-btn { width: 40px; }
.tool-a .tool .row.med { grid-template-columns: minmax(0, 1fr) minmax(90px, .45fr) 40px; }
.tool-a .tool .row.wmed { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) 40px; padding-bottom: 10px; }
.tool-a .tool .row.wmed .hw { grid-column: 1 / 3; grid-row: 2; }
.tool-a .tool .row.wmed .icon-btn { grid-column: 3; grid-row: 1; }
.tool-a .row .field label { font-size: 12px; margin-bottom: 4px; }

.tool-a .rows > .row + .row .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool-a .tool .row.org .nm { grid-column: 1 / 5; }
.tool-a .tool .row.org > .icon-btn { grid-column: 5; grid-row: 1; align-self: end; }
.tool-a[data-tool="taper-schedule"] .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-a[data-tool="taper-schedule"] .fields > .field:nth-child(3) { grid-column: auto; }
.tool-a .extra-tool .tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
.tool-a .extra-tool .tool > * { grid-column: 1; }
.tool-a .extra-tool .tool > .result { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
.tool-a .content .extra-tool .tool .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Printable sheet, second tool, explanation and app cards */
.tool-a .sheet-card, .tool-a .extra-tool .tool { margin-top: 24px; background: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); }
.tool-a .sheet-card .sheet { margin: 0; padding: 0; border: 0; border-radius: 0; }
.tool-a .sheet-card:has(.sheet:empty) { display: none; }
.tool-a .sheet .grid7 { min-width: 0; }
.tool-a .extra-tool .tool .result { background: var(--soft); border-radius: 16px; padding: 20px; margin-top: 18px; }
.tool-a .extra-tool .tool .result .big { font-size: 36px; }
.tool-a .below { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.tool-a .info { min-width: 0; background: #fff; border-radius: 22px; padding: 22px 24px 24px; box-shadow: var(--shadow); }
.tool-a .content .info h3:first-of-type { margin-top: 4px; }
.tool-a .content .formula { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.tool-a .content .cta-line { font-size: 14px; color: var(--muted); margin: 14px 0 16px; }
.tool-a .content .cta-line strong { color: var(--ink); font-weight: 600; }
.tool-a .cta-button { padding: 10px 18px; border-radius: 11px; font-size: 15px; }
.tool-a .ref table { font-size: 14px; }
.tool-a .ref th, .tool-a .ref td { padding: 8px 12px; font-size: 14px; }
.tool-a .more-tools { margin-top: 40px; }
.tool-a .content .more-tools h2 { font-size: 19px; margin-bottom: 12px; }
.tool-a .links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tool-a .links a { padding: 12px 16px; font-size: 14px; border-radius: 13px; }
@media screen {
  .tool-a .cards .card { width: 100%; max-width: 340px; box-shadow: 0 6px 20px #183e6815; }
  .tool-a .cards { justify-content: flex-start; gap: 12px; }
}
@media (min-width: 1000px) and (max-width: 1180px) {
  .tool-a .content h1 { font-size: 38px; }
}
@media (max-width: 999px) {
  .tool-a .extra-tool .tool { display: block; }
  .tool-a .extra-tool .tool > .result { margin-top: 18px; }
  .tool-a .nav { margin-left: 16px; margin-right: 16px; }
  .tool-a .content { padding: 0 16px; }
  .tool-a .tool-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tool-a .content h1 { font-size: 36px; max-width: 20ch; }
  .tool-a .below { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
  .tool-a .sheet-card, .tool-a .extra-tool .tool { margin-top: 16px; }
  .tool-a .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tool-a .content { margin-top: 18px; }
  .tool-a .content h1 { font-size: 31px; letter-spacing: -.025em; }
  .tool-a .content .subtitle { font-size: 15px; }
  .tool-a .crumbs { margin-bottom: 12px; }
  .tool-a .answer, .tool-a .tool, .tool-a .info, .tool-a .sheet-card, .tool-a .extra-tool .tool { padding: 18px; border-radius: 20px; }
  .tool-a .answer-live { top: 18px; right: 18px; }
  .tool-a .result .big { font-size: 38px; }
  .tool-a .fields, .tool-a .reveal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .tool-a .extra-tool .tool .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-a .fields > .field:has(input[type="text"]), .tool-a .fields > .field:has(select:not([data-chips]):not([hidden])) { grid-column: 1 / -1; }
  .tool-a[data-tool="missed-dose"] .fields > .field, .tool-a[data-tool="medication-schedule"] .fields > .field { grid-column: auto; }
  .tool-a[data-tool="missed-dose"] .fields > .field.wide, .tool-a[data-tool="medication-schedule"] .fields > .field.wide { grid-column: 1 / -1; }
  .tool-a .stepper { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .tool-a[data-tool="taper-schedule"] .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-a .links { grid-template-columns: minmax(0, 1fr); }
  .tool-a .tool .row.step { grid-template-columns: repeat(3, minmax(0, 1fr)) 40px; padding-bottom: 0; border-bottom: 0; }
  .tool-a .tool .row.step .icon-btn { width: 40px; }
  .tool-a .tool .row.med { grid-template-columns: minmax(0, 1fr) 84px 40px; padding-bottom: 0; border-bottom: 0; }
  .tool-a .tool .row.med > .field:first-child { grid-column: auto; }
  .tool-a .clocks { gap: 10px; }
  .tool-a .weekdays { gap: 4px; }
}
@media print {
  .tool-a .tool-hero, .tool-a .below { display: block; }
  .tool-a .answer, .tool-a .tool, .tool-a .info, .tool-a .sheet-card { box-shadow: none; }
  /* Printable tools: print only the sheet (or the wallet cards), in normal flow from the top of the page. */
  body.tool-a:has(.printable) :is(.nav, .footer, .nav-menu) { display: none !important; }
  body.tool-a:has(.printable) main :not(.printable):not(.printable *):not(:has(.printable)) { display: none !important; }
  body.tool-a:has(.printable) main :has(.printable) { display: block !important; position: static !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; max-width: none !important; width: auto !important; }
  body.tool-a .printable { position: static !important; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; visibility: visible; }
  body.tool-a .printable .cards { display: flex !important; }
  body.tool-a .printable .months { display: grid !important; }
}

/* Layout A, stripped back (29 Oct 2026): only what the reference shows on the first two screens. */
.tool-a .answer .result :is(.grid, .rt, .chips, .plans, .line, .days, .days-more, .track, .meter) { display: none; }
.tool-a .answer .result:has(.when) .sub { display: none; }
.tool-a[data-tool="tablet-count"] .answer .result .line.warn { display: block; margin-top: 6px; font-size: 15px; }
.tool-a[data-tool="tablet-count"] .answer .result:has(.line.warn) .sub { display: none; }
.tool-a .result .eyebrow { padding-right: 0; }
.tool-a .result .when { font-size: 17px; font-weight: 500; color: var(--ink); margin-top: 4px; line-height: 1.45; }
.tool-a .result .sub { font-size: 16px; color: var(--ink); }
.tool-a .viz-a { margin-top: 22px; }
.tool-a .viz-cap { display: none; }
.tool-a .panel-foot { margin-top: 20px; padding-top: 14px; font-size: 14px; color: var(--muted); }
@media screen { .tool-a .sheet-card { display: none; } }
.tool-a .info .formula { margin-bottom: 8px; }
.tool-a .content .info p { color: var(--muted); }
.tool-a .content .info .formula { color: var(--ink); }
.tool-a .content .keep p { margin-bottom: 16px; }
.tool-a .reading { max-width: 680px; margin: 72px auto 0; }
.tool-a .content .reading h2 { font-size: 20px; margin: 36px 0 10px; }
.tool-a .content .reading h2:first-child { margin-top: 0; }
.tool-a .content .reading h3 { font-size: 17px; margin: 24px 0 8px; }
.tool-a .content .reading p, .tool-a .reading li { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 14px; }
.tool-a .reading ol, .tool-a .reading ul { margin: 0 0 14px 22px; }
.tool-a .reading li { margin-bottom: 6px; }
.tool-a .reading .ref { margin: 4px 0 18px; }
.tool-a .content .reading .more-line { margin-top: 40px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.tool-a .footer-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 999px) { .tool-a .reading { margin-top: 48px; } }

/* ---- Simpler (Alex, 29 Oct): one calm surface, no cards inside cards ---- */
.tool-a .tool-hero { background: #fff; border-radius: 28px; padding: 36px 40px 32px; box-shadow: 0 1px 2px rgba(29, 29, 31, .04); gap: 48px; }
.tool-a .answer, .tool-a .tool { background: none; box-shadow: none; border-radius: 0; padding: 0; }
.tool-a .tool-stack { gap: 0; padding-left: 40px; border-left: 1px solid var(--line); }
.tool-a .panel-head h2, .tool-a .tool .panel-head h2 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tool-a .panel-head p, .tool-a .panel-head .hint { display: none; }
.tool-a .answer { margin-top: 28px; }
.tool-a .result .eyebrow { font-size: 13px; color: var(--muted); }
.tool-a .result .big { color: #1d1d1f; font-size: 52px; font-weight: 600; }
.tool-a .result .big.long { font-size: 36px; }
.tool-a .result .when { font-size: 16px; font-weight: 400; color: var(--muted); }
.tool-a .panel-foot { border-top: 1px solid var(--line); color: var(--muted); }
.tool-a .info.how { display: none; }
.tool-a .info.keep { background: none; box-shadow: none; padding: 0; margin: 22px 4px 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tool-a .info.keep h2 { display: none; }
.tool-a .info.keep p { margin: 0; font-size: 15px; color: var(--muted); }
.tool-a .info.keep .cta-button, .tool-a .info.keep a.cta-button { padding: 0; background: none; color: var(--blue); font-size: 15px; font-weight: 500; box-shadow: none; }
.tool-a .info.keep .cta-button::after { content: " \2192"; }
.tool-a .stepper button, .tool-a .step { background: #f2f2f6; color: #1d1d1f; box-shadow: none; }
@media (max-width: 999px) {
  .tool-a .tool-hero { padding: 24px 20px; gap: 28px; }
  .tool-a .tool-stack { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
}
/* Quieter controls */
.tool-a .stepper .step { background: #f2f2f6; color: #1d1d1f; }
.tool-a .stepper .step:hover, .tool-a .stepper .step:active { background: #e8e8ee; }
.tool-a .field .hint { display: none; }
.tool-a .blister { max-width: 96px; }
/* How it works: full width, matching the tool above (Alex, 29 Oct) */
.tool-a .reading { max-width: none; width: 100%; margin: 24px 0 0; background: #fff; border-radius: 28px; padding: 36px 40px; box-shadow: 0 1px 2px rgba(29, 29, 31, .04); column-count: 2; column-gap: 56px; }
.tool-a .reading h2, .tool-a .reading h3 { break-after: avoid; }
.tool-a .reading p, .tool-a .reading ul, .tool-a .reading ol, .tool-a .reading .note { break-inside: avoid; }
.tool-a .reading > :first-child { margin-top: 0; }
@media (max-width: 999px) { .tool-a .reading { column-count: 1; padding: 24px 20px; } }

/* Site footer, same as lib/footer.mjs */
.footer { margin-top: 56px; padding: 48px 24px; border-top: 1px solid #e8e8ed; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; }
.footer-logo { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #6e6e73; }
.footer-brand p { margin: 12px 0 0; max-width: 340px; font-size: 12px; line-height: 1.6; color: #6e6e73; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.footer-col:last-child { grid-column: span 2; }
.footer-col:last-child ul { columns: 2; column-gap: 24px; }
.footer-title { display: block; font-size: 13px; font-weight: 600; color: #1d1d1f; text-decoration: none; margin-bottom: 8px; }
a.footer-title:hover { color: #007aff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; break-inside: avoid; }
.footer-col li a { display: block; padding: 5px 0; font-size: 14px; color: #6e6e73; text-decoration: none; transition: color 0.15s; }
.footer-col li a:hover { color: #007aff; }
@media (min-width: 600px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-col:last-child { grid-column: auto; }
  .footer-col:last-child ul { columns: 1; }
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1.6fr; gap: 64px; }
}

/* One column: the tool in a card with its result, then the reading. Same as the medication cost page (Alex, 2 Nov 2026). */
.tool-a .content.tool-page { max-width: 640px; }
.tool-page .hero-copy { padding: 14px 0 24px; margin: 0; }
.tool-a .tool-page .subtitle { max-width: 60ch; font-size: 18px; line-height: 1.55; }
.tool-a .tool-page .tool { padding: 24px; background: #fff; border-radius: 24px; box-shadow: 0 10px 34px rgba(24,62,104,.09); }
.tool-a .tool-page .fields { gap: 14px; }
.tool-a .tool-page .field input, .tool-a .tool-page .field select { height: 46px; }
.tool-a .tool-page .answer { margin-top: 20px; }
.tool-a .tool-page .result { margin: 0; padding: 22px; background: #eef6ff; border-radius: 22px; }
.tool-a .tool-page .result.empty { background: #f6f6fa; }
.tool-a .tool-page .result .big { font-size: 44px; }
.tool-a .tool-page .result .big.long { font-size: 32px; }
.tool-a .content.tool-page .reading { column-count: 1; margin: 44px 0 0; padding: 0 2px; background: none; box-shadow: none; border-radius: 0; }
.tool-a .content.tool-page .reading h2 { margin: 34px 0 8px; font-size: 22px; }
.tool-a .content.tool-page .reading > h2:first-child { margin-top: 0; }
.tool-a .content.tool-page .reading p { font-size: 16px; line-height: 1.6; color: #444450; margin-bottom: 10px; }
.tool-page .cost-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 24px; background: #fff; border-radius: 24px; box-shadow: 0 10px 34px rgba(24,62,104,.09); }
.tool-a .content.tool-page .cost-cta h2 { margin: 0 0 4px; font-size: 19px; }
.tool-a .content.tool-page .cost-cta p { margin: 0; font-size: 14px; }
.tool-page .cost-cta .cta-button { flex: none; color: #fff; }
.tool-a .content.tool-page .reading .more-line { margin-top: 28px; font-size: 14px; }
@media (max-width: 640px) {
  .tool-a .tool-page .tool { padding: 18px; }
  .tool-page .cost-cta { flex-direction: column; align-items: flex-start; }
}
@media print { .tool-page .cost-cta { display: none; } }
