/* ViraNestHub brand palette, measured from the public site on 2026-11-04. */
:root{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;--indigo:#4c57d6;--brand:#4c57d6;--orange:#ff8a00;--muted:#566176;--border:#dfe4ef;color:#1e293b;background:#fff}
.vnh-tools{max-width:1200px;padding:26px 28px 30px}.orange{color:var(--orange)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus,select:focus,textarea:focus{outline-color:#3240b4}.collection-intro{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:4px 0 20px}.collection-intro h1{font-size:clamp(27px,3vw,38px);line-height:1.18;letter-spacing:-1.1px;margin:0 0 12px;font-weight:750;max-width:800px}.collection-intro>div>p:last-child{font-size:15px;line-height:1.7;color:var(--muted);max-width:780px;margin:0}.eyebrow{font-size:11px;letter-spacing:1.1px;margin-bottom:9px}.intro-badge{flex-shrink:0;display:flex;gap:10px;align-items:center;padding:14px;border-left:3px solid var(--orange);font-size:12px;background:#fff8ef;border-radius:0 9px 9px 0}.intro-badge svg{color:var(--brand)}.intro-badge small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.preferences{margin:0;background:#fbfcff}.preferences summary{padding:11px 14px}.settings label{font-size:12px;flex:1;min-width:170px}.settings select{background:white;font-size:13px;min-height:42px}.settings-hint{font-size:12px}
.collection{padding-top:24px}.collection-head h2{font-size:22px}.search input{font-size:13px}.filters{gap:7px;margin-top:15px}.filters button{font-size:12px;min-height:42px;border-radius:7px;padding:9px 13px}.filters button[aria-pressed=true]{background:var(--brand);border-color:var(--brand)}.count{font-size:12px;margin:15px 0 12px}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tool-card{padding:0;border-radius:12px;overflow:hidden;min-width:0}.tool-card:hover{border-color:#a1a9ed;box-shadow:0 7px 24px #2538a00c}.card-image{display:block;width:100%;height:146px;padding:0;border:0;border-bottom:1px solid #e6e9f8;background:#f3f5ff;color:var(--brand);overflow:hidden}.card-image:focus-visible{outline-offset:-4px}.tool-illustration{display:block;width:100%;height:100%;max-height:164px;transition:transform .18s}.card-image:hover .tool-illustration{transform:scale(1.035)}.pregnancy .card-image{background:#fff6ea}.baby .card-image{background:#f1f4ff}.wellbeing .card-image{background:#fff8f0}.card-content{display:flex;flex:1;flex-direction:column;padding:14px 18px 16px}.card-top{gap:8px;min-height:27px;margin-bottom:5px}.card-category{font-size:10px!important;font-weight:750;letter-spacing:.7px;color:var(--brand)!important;margin:0!important}.favorite{padding:7px;color:#657089;min-width:36px;min-height:36px;margin:-5px -7px -5px 0}.favorite[aria-pressed=true] svg{fill:#dde1ff}.tool-card h3{font-size:19px;line-height:1.35;letter-spacing:-.4px;margin:0 0 9px}.tool-card h3 button{font-weight:750}.card-description{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 16px}.card-bottom{gap:10px;border-top-color:#eceef5;padding-top:11px}.card-bottom>span{font-size:10px;line-height:1.5;color:var(--muted);max-width:50%}.card-bottom .card-open{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 0 8px 6px;border:0;background:none;color:var(--brand);font-weight:700;font-size:12px;min-height:40px;width:auto;height:auto;margin:0;text-align:right}.card-open svg{width:17px;height:17px}
.back{margin:0 0 17px;font-size:13px;min-height:40px;padding:8px 0}.detail-head{gap:24px;align-items:center}.detail-picture{flex:0 0 170px;height:105px;background:#f3f5ff;border-radius:12px;color:var(--brand);overflow:hidden}.detail-head h1{font-size:32px;line-height:1.2;letter-spacing:-.8px;margin-bottom:10px}.detail-head p:not(.eyebrow){font-size:14px;line-height:1.7;max-width:800px}.context-line{font-size:12px;margin:18px 0;line-height:1.6}.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:22px}.form-panel,.result-panel{border-radius:12px;padding:24px}.result-panel{background:#f5f7ff;min-height:290px}.field{gap:7px;margin-bottom:18px}.field label,.split label{font-size:13px;font-weight:650}.field input,.field select,.field textarea,.split input{border-color:#c7cede;border-radius:7px;padding:11px;color:#1e293b}.field textarea{font-size:13px;line-height:1.7}.field small{font-size:12px}.split{gap:10px;margin-bottom:18px}.actions{gap:10px;margin-top:19px}.primary{font-size:13px;font-weight:700;border-radius:7px;padding:13px 17px;gap:10px}.primary:hover{background:#3541ba}.secondary{border-color:#c7cede;border-radius:7px;font-size:13px}.secondary:hover{background:#f3f5ff}.ready{padding:29px 9px;color:var(--muted)}.ready>svg{width:35px;height:35px;color:var(--brand)}.ready h2{font-family:inherit;font-size:21px;font-weight:650;letter-spacing:-.4px;line-height:1.4;color:#1e293b;margin:15px 0 10px}
.form-intro{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 17px}.form-section{border:1px solid var(--border);border-radius:9px;margin-top:11px;background:white}.form-section>summary{display:flex;align-items:center;gap:10px;padding:13px 12px;cursor:pointer;list-style:none;font-size:14px;font-weight:700}.form-section>summary::-webkit-details-marker{display:none}.step-number{display:flex;align-items:center;justify-content:center;flex:0 0 27px;height:27px;border-radius:50%;font-size:12px;background:#f3f5ff;color:var(--brand)}.form-section[open] .step-number{background:var(--brand);color:white}.form-section summary small{display:block;font-size:11px;line-height:1.5;font-weight:400;color:var(--muted);margin-top:4px}.section-chevron{margin-left:auto;font-size:17px;color:var(--brand);flex-shrink:0}.form-section[open] .section-chevron{transform:rotate(180deg)}.section-fields{padding:6px 14px 0}.section-note{font-size:12px;line-height:1.7;color:var(--muted);padding:10px;background:#f3f5ff;border-radius:7px;margin:0 0 17px}
.metric{margin:14px 0 21px}.metric span{font-size:12px;line-height:1.5;margin-bottom:7px}.metric strong{font-size:28px;line-height:1.3;font-weight:750;color:#3540a7}.metric-row{display:flex;gap:25px;flex-wrap:wrap}.metric-row .metric{flex:1}.result-explainer{border-color:#dce1f1;color:var(--muted)}.notice{background:#fff6e8;border-color:#eed5ae;padding:16px;border-radius:8px;color:#6a4b23}.notice h3{font-size:17px;margin-bottom:8px}.notice p{margin:0}.report-block{margin-top:20px;padding-top:19px;border-top:1px solid #dce1f1}.report-block h3{font-size:17px;line-height:1.4;margin:0 0 10px}.report-block p{font-size:12px;line-height:1.8;color:var(--muted)}.report-block summary{font-size:13px;font-weight:650;cursor:pointer;line-height:1.6}.test-result{border-left:3px solid var(--orange);padding-left:15px}.chart text{fill:#566176}.gridline{stroke:#d8deee}.table-scroll{border-color:var(--border)}table{background:white;font-size:12px}th,td{border-color:var(--border);padding:10px}th{background:#e9edff}.method{padding:0;border-radius:9px;margin-top:22px}.method>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:16px 19px;font-size:14px;font-weight:700;list-style:none}.method>summary::-webkit-details-marker{display:none}.method>div{padding:0 19px 16px}.method h3{font-size:14px;margin-top:18px}.tool-footer{margin-top:27px;padding-top:18px;font-size:11px}.tool-footer svg{color:var(--brand)}.tool-footer>span{margin-top:12px}#error:not(:empty){font-size:13px}
@media(max-width:1000px){.intro-badge{display:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-intro h1{font-size:32px}.detail-picture{flex-basis:145px}.workspace{gap:17px}.form-panel,.result-panel{padding:19px}}
@media(max-width:760px){.workspace{grid-template-columns:1fr}.detail-head h1{font-size:28px}.detail-head{gap:16px}.result-panel{min-height:220px}.ready{padding:16px 7px}.collection-head{align-items:stretch;flex-direction:column;gap:12px}.search input{width:100%;min-width:0}}
@media(max-width:560px){.vnh-tools{padding:18px 14px 24px}.collection-intro{padding:0 0 15px}.collection-intro h1{font-size:28px;line-height:1.16;letter-spacing:-.7px}.collection-intro>div>p:last-child{font-size:13px;line-height:1.65}.eyebrow{font-size:10px;letter-spacing:.8px}.preferences summary{font-size:11px;padding:11px}.preferences summary span:last-child{text-align:right}.settings{gap:11px;padding:5px 11px 0}.settings label{min-width:0;flex-basis:100%}.settings select{font-size:16px}.collection{padding-top:19px}.collection-head h2{font-size:20px}.search input{font-size:16px}.filters{gap:6px;margin-top:12px}.filters button{font-size:11px;padding:8px 10px;min-height:42px}.count{margin-top:13px}.cards{grid-template-columns:1fr;gap:15px}.tool-card{padding:0}.card-image{height:134px}.card-content{padding:12px 16px 14px}.tool-card h3{font-size:20px}.card-description{font-size:13px;margin-bottom:13px}.favorite{min-width:44px;min-height:44px;margin:-8px -8px -8px 0}.card-bottom .card-open{min-height:44px}.detail-head{align-items:flex-start;gap:12px}.detail-picture{flex-basis:83px;height:73px}.detail-head h1{font-size:25px}.detail-head p:not(.eyebrow){font-size:13px}.context-line{font-size:11px;margin:15px 0}.form-panel,.result-panel{padding:16px}.form-section>summary{padding:12px 10px;font-size:13px}.section-fields{padding:6px 11px 0}.field input,.field select,.field textarea,.split input{font-size:16px}.metric strong{font-size:25px}.actions .primary{flex:1}.method{padding:0}.method>summary{padding:15px}.method>div{padding:0 15px 14px}.tool-footer{font-size:11px}.back{margin-bottom:12px}.metric-row{gap:14px}.metric-row .metric strong{font-size:23px}}
@media print{.preferences{display:none!important}.report-block{break-inside:avoid}.result-panel{background:white}.method{display:none}.vnh-tools{padding:0}.workspace{display:block}}

/* Growth measurements: persistent labels and large, bordered inputs. */
.growth-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
.growth-child,.growth-visit,.growth-weight,.growth-choices{min-width:0;margin:0;padding:0;border:0}
.growth-child>legend,.growth-visit>legend,.growth-choices>legend{font-size:17px;font-weight:750;color:#3540a7;padding:0 0 14px}
.growth-child{margin-top:20px}.growth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.growth-grid>.field{min-width:0}
.growth-workspace .field label{display:block;line-height:1.5;margin-bottom:7px;font-weight:650;color:#273449;overflow-wrap:anywhere}
.growth-workspace .field input,.growth-workspace .field select{width:100%;min-width:0;background:#fff;border:1.5px solid #9daac1;border-radius:8px;min-height:49px;padding:11px 12px;color:#1e293b}
.growth-workspace input::placeholder{color:#7a8495;opacity:1}.growth-workspace .field small{display:block;margin-top:4px;font-size:12px;color:#59667a}
.growth-workspace .unit{font-weight:500;color:#566176}.growth-visit{margin-top:24px;border:1px solid #d4dcee;border-radius:10px;padding:16px;background:#f8faff}.growth-visit>legend{padding:0 7px;font-size:16px}
.growth-visit-top{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}.growth-visit-top>.field{flex:1;min-width:0}.growth-remove{border:0;background:none;color:#805037;font-size:12px;text-decoration:underline;min-height:44px;padding:8px 0;max-width:105px;text-align:right}
.growth-position{margin-bottom:0}.growth-weight>legend{font-size:14px;font-weight:650;margin:0 0 7px}.growth-weight .field label{font-weight:500}.growth-weight .growth-grid{gap:8px}
.growth-add{width:100%;margin:16px 0 2px;border-style:dashed;border-color:#7e8ace;background:#f5f6ff;color:#3540a7}.growth-privacy,.growth-chart-note{font-size:13px;line-height:1.7;color:#566176;margin:14px 0}.growth-privacy{font-size:12px}
.growth-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 23px}.growth-choices>legend{color:#1e293b;font-size:16px}.growth-choices>label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #cbd3e5;border-radius:8px;background:#fff;cursor:pointer;font-size:13px;font-weight:650;line-height:1.45;min-width:0;overflow-wrap:anywhere}.growth-choices>label:has(:checked){border-color:#4c57d6;background:#f0f2ff;color:#3540a7}.growth-choices>label:has(:disabled){color:#7b8495;cursor:default}.growth-choices small{display:block;font-size:11px;font-weight:400;margin-top:4px}.growth-choices input{accent-color:#4c57d6;width:19px;height:19px;flex-shrink:0;margin:0}
.growth-chart-panel{padding:22px 0;border-top:1px solid #d5dcef}.growth-chart-panel h2{font-size:21px;line-height:1.4;margin:0 0 15px}.growth-latest{display:flex;justify-content:space-between;gap:16px}.growth-latest>div{min-width:0}.growth-latest span{display:block;font-size:12px;color:#566176;line-height:1.6}.growth-latest strong{display:block;font-size:27px;line-height:1.4;color:#3540a7;margin-top:4px}.growth-chart-panel .chart{margin:8px 0 14px}.growth-chart-panel th,.growth-chart-panel td{font-size:12px}.growth-no-selection{font-size:14px;line-height:1.6}
@media(max-width:1000px){.growth-workspace{grid-template-columns:1fr}.growth-workspace .form-panel{padding:22px}.growth-workspace .result-panel{padding:22px}}
@media(max-width:560px){.growth-workspace .form-panel,.growth-workspace .result-panel{padding:16px}.growth-visit{padding:12px}.growth-grid{gap:0 11px}.growth-workspace .field label{font-size:13px;min-height:39px;display:flex;align-items:flex-end;gap:4px;flex-wrap:wrap}.growth-position label{min-height:0!important}.growth-child>.field label{min-height:0}.growth-workspace .field input,.growth-workspace .field select{padding:10px 8px}.growth-weight .growth-grid{grid-template-columns:1fr}.growth-weight .field label{min-height:0}.growth-choices{gap:8px}.growth-choices>label{padding:10px;font-size:12px}.growth-latest strong{font-size:24px}.growth-visit-top{flex-wrap:wrap}.growth-visit-top .field label{min-height:0}.growth-remove{max-width:100%;margin-left:auto}.growth-visit-top>.field{flex-basis:100%;margin-bottom:5px}.growth-remove{margin-bottom:7px;min-height:36px}.growth-visit-top:has([hidden])>.field{margin-bottom:18px}}
@media(max-width:360px){.growth-child>.growth-grid{grid-template-columns:1fr}.growth-choices{grid-template-columns:1fr}.growth-visit .growth-grid{grid-template-columns:1fr}.growth-workspace .field label{min-height:0}}
@media print{.growth-choices,.growth-no-selection{display:none!important}.growth-chart-panel{break-inside:avoid}.growth-workspace .result-panel{break-inside:auto}.growth-chart-panel .chart{max-height:340px}}

/* Shared calculator reading hierarchy, based on the 1.2 editorial review. */
.detail-head>div:last-child{min-width:0}.detail-head h1,.tool-card h3 button,.primary{overflow-wrap:anywhere;hyphens:auto}
.card-description{font-size:14px;line-height:1.65}.card-bottom>span{font-size:11px;max-width:53%}.detail-head p:not(.eyebrow){font-size:15px}.panel-title{font-size:20px;line-height:1.35;margin:0 0 10px;color:#1e293b;letter-spacing:-.3px}.form-intro{font-size:14px}.field label,.split label{font-size:14px}.field input,.field select,.field textarea,.split input{font-size:16px;min-height:46px}.field small,.section-note{font-size:13px;line-height:1.65}.form-section>summary{font-size:15px}.form-section summary small{font-size:12px}.primary,.secondary{font-size:14px;min-height:46px}.ready p{font-size:15px;line-height:1.7;max-width:440px;margin-inline:auto}.ready h2{font-size:22px}.report-block p,.result-explainer p,.notice p{font-size:14px;line-height:1.7}.result-explainer h3{font-size:17px;margin:0 0 10px;line-height:1.4}.result-explainer p{margin:0}.metric span{font-size:13px}.tool-guide{margin-top:26px}.tool-guide>h2{font-size:21px;margin:0 0 14px;line-height:1.35}.tool-guide>details{border:1px solid var(--border);border-radius:9px;margin:10px 0;background:#fff}.tool-guide summary{cursor:pointer;padding:16px 19px;font-size:15px;font-weight:650;line-height:1.5}.tool-guide details p{font-size:14px;line-height:1.8;color:var(--muted);margin:0;padding:0 19px 18px;max-width:900px}.method p,.method li{font-size:13px;line-height:1.75}.chart-legend{display:flex;flex-wrap:wrap;gap:9px 18px;margin:15px 0;font-size:12px;line-height:1.6;color:#42516a}.chart-legend span{display:inline-flex;align-items:center;gap:7px}.chart-legend span:before{content:"";width:20px;border-top:3px solid #4c57d6;flex-shrink:0}.chart-legend .legend-reference:before{border-color:#b4bbf1}.chart-legend .legend-measurements:before{width:8px;height:8px;border:0;border-radius:50%;background:#a95300}.table-scroll th{min-width:80px}.form-panel{align-self:start}@media(max-width:560px){.card-description,.detail-head p:not(.eyebrow){font-size:14px}.card-bottom>span{font-size:11px}.form-section>summary{font-size:14px}.tool-guide summary{padding:14px;font-size:14px}.tool-guide details p{padding:0 14px 15px}.ready h2{font-size:20px}.actions{flex-wrap:wrap}.actions .primary{min-width:min(100%,200px)}.panel-title{font-size:19px}}@media print{.tool-guide{display:none!important}.chart-legend{break-inside:avoid}}

/* The three WHO measurements share a compact form without an empty grid cell. */
.growth-visit>.growth-grid>.field:has(input[name^="head-"]){grid-column:1/-1}

/* Shared form system: persistent labels, examples and field-level feedback. */
.calc-field,.calc-group{min-width:0;border:0;padding:0;margin:0 0 21px}
.calc-field>label,.calc-field>legend,.calc-group>legend,.form-units>label{display:block;font-size:14px;font-weight:650;line-height:1.5;color:#273449;padding:0;margin:0 0 8px}
.calc-field input:not([type=radio]):not([type=checkbox]),.calc-field select,.form-units select{box-sizing:border-box;width:100%;min-width:0;min-height:49px;border:1.5px solid #9daac1;border-radius:8px;padding:11px 12px;background:#fff;color:#1e293b;font:inherit;font-size:16px;line-height:1.4}
.calc-field input::placeholder{color:#69768b;opacity:1}.calc-field input:focus-visible,.calc-field select:focus-visible,.form-units select:focus-visible{outline:3px solid #a8b1fa;outline-offset:2px;border-color:#4c57d6}
.calc-field small,.form-units small,.group-help{display:block;font-size:13px;line-height:1.65;color:#536077;margin:7px 0 0}.calc-field small:empty,.input-error:empty{display:none}.group-help{margin:0 0 14px}.optional{font-weight:400;color:#5f6a7b;font-size:12px}
.calc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;min-width:0}.calc-grid>.calc-field{min-width:0}.calc-group>.calc-grid>.calc-field{margin-bottom:0}.calc-group>legend{font-size:15px}
.choice-options{display:flex;flex-wrap:wrap;gap:9px}.choice-options>label{display:flex;align-items:center;gap:9px;flex:1 1 120px;min-width:0;min-height:48px;border:1px solid #9daac1;border-radius:8px;padding:11px 12px;background:#fff;color:#273449;font-size:14px;line-height:1.5;cursor:pointer}.choice-options input{margin:0;flex-shrink:0;width:19px;height:19px;accent-color:#4c57d6}.choice-options span{min-width:0;overflow-wrap:anywhere}.choice-options>label:has(:checked){border-color:#4c57d6;background:#eef0ff;box-shadow:inset 0 0 0 1px #4c57d6}.choice-options>label:focus-within{outline:3px solid #a8b1fa;outline-offset:2px}.choice-field[data-field=method] .choice-options{display:grid;grid-template-columns:1fr}
.form-units{margin:0 0 21px;padding:14px 16px;background:#f5f6ff;border:1px solid #d4dcee;border-radius:9px}.form-units>label{font-size:13px}.form-units small{font-size:12px}
.input-error{display:block;font-size:13px;line-height:1.6;color:#a12525;margin-top:7px;font-weight:550}.calc-field input[aria-invalid=true],.calc-field select[aria-invalid=true],.choice-options>label:has([aria-invalid=true]){border-color:#ad2727;border-width:2px}.inline-notice{border-left:3px solid #c57b1c;background:#fff6e8;border-radius:5px;padding:13px 15px;font-size:14px;line-height:1.7;color:#684821}
#error ul{margin:9px 0 0;padding-left:21px}#error a{color:inherit;text-decoration:underline}#error strong{display:block}.result-context{font-size:13px;line-height:1.7;color:#536077;overflow-wrap:anywhere}
.record-row{position:relative;min-width:0;margin:15px 0;border:1px solid #d4dcee;border-radius:9px;padding:16px;background:#f8faff}.record-row>legend{padding:0 7px;color:#3540a7;font-size:14px;font-weight:650}.record-row>.calc-grid{margin-top:20px}.record-row .calc-field{margin-bottom:7px}.record-remove{display:grid;place-items:center;position:absolute;right:6px;top:3px;min-width:44px;min-height:44px;border:0;border-radius:6px;background:transparent;color:#704731;font-size:25px;line-height:1;cursor:pointer}.record-remove:hover{background:#fff0df}.record-exclude{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6;margin-top:12px;cursor:pointer}.record-exclude input{width:19px;height:19px;flex-shrink:0;accent-color:#4c57d6;margin:2px 0 0}.cycle-row{padding:13px 56px 13px 14px;margin:10px 0}.cycle-row .record-remove{top:42px}.cycle-row .optional{display:none}.cycle-row .calc-field{margin-bottom:0}.add-record{width:100%;margin:0 0 17px;border-style:dashed;border-color:#8590cc;background:#f5f6ff;color:#3540a7}
[hidden]{display:none!important}
@media(max-width:1000px){.fertility-workspace{grid-template-columns:1fr}}
@media(max-width:560px){.calc-field>label,.calc-field>legend{font-size:14px}.calc-field input:not([type=radio]):not([type=checkbox]),.calc-field select{padding:11px 9px}.calc-grid{gap:0 10px}.record-row>.calc-grid{grid-template-columns:1fr}.record-row{padding:12px}.record-row>.calc-grid{margin-top:24px}.cycle-row{padding:12px 50px 12px 12px}.form-units{padding:12px}.choice-options>label{padding:10px;flex-basis:100px}.form-section summary small{font-size:13px}.form-section>summary{line-height:1.5}.section-fields{padding:8px 11px 0}}
@media print{.form-units,.input-error{display:none!important}}
@media print{details.method{display:block;margin-top:18px}.method summary{font-weight:700}.method a{color:#25263d}.result-panel{break-inside:auto}}
@media print{#result:focus{outline:none}}
.record-row .optional{display:none}
.growth-child [aria-invalid="true"],.growth-visit [aria-invalid="true"]{border-color:#b42318;box-shadow:0 0 0 1px #b42318}

/* 1.5: stronger controls, readable charts and a shorter path to the inputs. */
:root{--control-border:#7a89a4;--chart-reference:#7a86b5}
#calculator input:not([type=radio]):not([type=checkbox]):not([aria-invalid=true]),#calculator select:not([aria-invalid=true]),.settings select,.search{border-color:var(--control-border)}
.choice-options>label,.growth-choices>label{border-color:var(--control-border)}
.growth-choices>label:has(:checked){border-color:var(--brand)}
.choice-options>label:has(:checked){border-color:var(--brand)}
.choice-options>label:has([aria-invalid=true]){border-color:#ad2727}
.calc-field input:focus-visible,.calc-field select:focus-visible,.form-units select:focus-visible,.choice-options>label:focus-within{outline:3px solid #4c57d6;outline-offset:3px}
.favorite{min-width:44px;min-height:44px}.filters button,.preferences summary,.back{min-height:44px}
.result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.result-actions .secondary{min-height:46px;margin:0}
#result:focus{outline:2px solid #4c57d6;outline-offset:4px}#form-title:focus{outline:2px solid #4c57d6;outline-offset:5px;border-radius:2px}
.chart{width:100%;height:auto;overflow:visible}.chart text{font-size:14px;fill:#42516a}.chart-legend .legend-reference:before{border-color:var(--chart-reference);border-top-style:dashed}
.cycle-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:8px;padding:12px;margin:9px 0}
.cycle-row .record-remove{position:static;align-self:center;width:44px;height:44px;padding:0}
.cycle-row .calc-field{margin:0}.cycle-row .calc-field>label{margin-bottom:6px}.cycle-row .calc-field>small{font-size:12px;margin-top:4px}
@media(min-width:360px){.cycle-row .calc-field{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:2px 10px;align-items:center}.cycle-row .calc-field>label{grid-column:1;margin:0;font-size:13px}.cycle-row .calc-field>small{grid-column:1;margin:0}.cycle-row .calc-field>input{grid-column:2;grid-row:1/3}.cycle-row .input-error{grid-column:1/-1}}
@media(max-width:360px){.choice-options{flex-direction:column}.choice-options>label{flex-basis:auto;width:100%}}
@media(max-width:560px){
 .detail-head{display:grid;grid-template-columns:64px minmax(0,1fr);gap:7px 13px;align-items:center}
 .detail-head>.detail-picture{grid-column:1;grid-row:1/3;width:64px;height:64px}
 .detail-head>div:last-child{display:contents}.detail-head .eyebrow{grid-column:2;margin:0}
 .detail-head h1{grid-column:2;margin:0;font-size:25px}.detail-head p:not(.eyebrow){grid-column:1/-1;margin:5px 0 0;line-height:1.65}
 .chart text{font-size:23px}.chart-legend{font-size:12px;gap:7px 12px}
 .result-actions>.secondary{flex:1 1 140px}.result-actions{gap:9px}
 .form-section summary small{font-size:13px}.growth-remove{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.tool-illustration{transition:none}.card-image:hover .tool-illustration{transform:none}html{scroll-behavior:auto}}
@media print{.result-actions{display:none!important}#result:focus,#form-title:focus{outline:none}.chart text{font-size:14px}}
.table-hint{font-size:12px;line-height:1.6;color:#42516a;margin:12px 0 7px}.table-scroll:focus-visible{outline:3px solid #4c57d6;outline-offset:3px}
@media print{.table-hint{display:none!important}}

/* 1.5.1: named result heading is the single focus target after calculation. */
#result-title:focus{outline:2px solid var(--brand);outline-offset:5px;border-radius:2px}
@media print{#result-title:focus{outline:none}}
/* Direct links, compact sharing and related tools use the existing palette. */
.tool-card h3 a{display:block;color:inherit;font-weight:750;text-decoration:none;overflow-wrap:anywhere;hyphens:auto}
.tool-card h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.card-open{text-decoration:none}
.tool-navigation{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:18px 0}
.tool-navigation .back{margin:0;min-height:44px}
.share-tool{max-width:100%;width:320px;font-size:13px;color:var(--muted)}
.share-tool>summary{min-height:44px;padding:12px;cursor:pointer;color:var(--brand);text-align:right;font-weight:650}
.share-tool[open]{border:1px solid var(--border);border-radius:10px;background:white}
.share-tool>div{padding:0 14px 12px}
.share-tool label{display:block;font-weight:650;margin-bottom:8px}
.share-tool input{width:100%;min-height:44px;border:1px solid #7a89a4;border-radius:7px;padding:10px;font-size:16px;margin-bottom:10px;color:inherit;background:white}
.share-tool p{font-size:12px;line-height:1.6;margin:10px 0 0}
.share-tool #link-status:empty{display:none}
.related-tools{margin-top:28px;border-top:1px solid var(--border);padding-top:24px}
.related-tools h2{font-size:20px;line-height:1.4;margin:0 0 14px;color:#1e293b}
.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.related-link{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--border);background:white;border-radius:10px;padding:18px;color:var(--brand);text-decoration:none;min-height:80px}
.related-link:hover{border-color:var(--brand);background:#f7f8ff}
.related-link strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.related-link small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:5px}
@media(max-width:560px){.related-grid{grid-template-columns:1fr}.tool-navigation{gap:8px;margin:8px 0 14px}.share-tool{width:auto}.share-tool[open]{width:100%}.share-tool>summary{text-align:left;padding-left:0}.share-tool[open]>summary{padding-left:12px}}
#tool-title:focus,#form-title:focus,#collection-title:focus{outline:2px solid var(--brand);outline-offset:5px;border-radius:3px}
@media print{.tool-navigation,.related-tools{display:none!important}}
