/* A field diary: observation, records, then a separate model result. */
.calculator-notebook{--notebook-line:#cbd9cf;--notebook-paper:#fffdf7;--notebook-muted:#425b50;padding-top:44px}
.calculator-notebook .notebook-intro{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);gap:48px;align-items:start;margin-bottom:32px;max-width:none;width:100%}
.calculator-notebook .notebook-opening h1{font-size:clamp(38px,4.8vw,68px);line-height:1.08;max-width:15ch;margin:12px 0 18px;letter-spacing:-.035em}
.calculator-notebook .notebook-opening>p{font-size:18px;line-height:1.65;max-width:58ch;margin:0;color:var(--notebook-muted)}
.calculator-notebook .notebook-principle{border-left:1px solid var(--notebook-line);padding:8px 0 8px 28px;display:grid;gap:8px}
.calculator-notebook .notebook-principle strong{font-family:Georgia,serif;font-size:25px;font-weight:400;line-height:1.3}
.calculator-notebook .notebook-principle p{font-size:16px;line-height:1.6;margin:0;color:var(--notebook-muted)}
.calculator-notebook .notebook-principle .help{font-size:13px}
.notebook-icon{display:block;width:40px;height:40px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.notebook-rule-icon{color:#08776e;margin-bottom:4px}
.calculator-notebook .calculator-modes{gap:24px;border:0;border-bottom:1px solid var(--notebook-line);border-radius:0;background:transparent;width:100%;max-width:none;margin-bottom:24px;padding:0}
.calculator-notebook .calculator-modes a{border:0;border-radius:0;background:transparent;padding:12px 0;min-height:48px;font-size:16px;line-height:1.4;color:var(--notebook-muted);border-bottom:3px solid transparent;transition:color 160ms ease,border-color 160ms ease}
.calculator-notebook .calculator-modes a[aria-current=page]{border-bottom-color:#08776e;color:#233e37;background:transparent;font-weight:600}
.calculator-notebook .calculator-modes a:hover{color:#08776e;background:transparent}
.calculator-notebook .mode-icon{background:transparent;color:currentColor}
.calculator-notebook .calculator-workbench{background:#f8f7f2;border:1px solid var(--notebook-line);border-radius:24px;padding:32px;box-shadow:none}
.calculator-notebook .notebook-sheet-heading{display:flex;gap:18px;align-items:start;padding-bottom:24px;border-bottom:1px solid var(--notebook-line);margin-bottom:24px}
.notebook-folio{font:32px/1.1 Georgia,serif;color:#08776e;flex:none}
.calculator-notebook .notebook-sheet-heading h2{font-size:30px;line-height:1.25;margin:6px 0}
.calculator-notebook .notebook-sheet-heading p{font-size:16px;line-height:1.6;margin:0;color:var(--notebook-muted)}
.notebook-free{font-size:13px;line-height:1.5;margin-left:auto;color:var(--notebook-muted);white-space:nowrap;border-bottom:1px solid var(--notebook-line);padding-bottom:4px}
.calculator-notebook .notebook-parent-spread{gap:24px;align-items:start;margin:0}
.calculator-notebook .parent-card{position:relative;border:1px solid var(--notebook-line);border-radius:18px;background:var(--notebook-paper);padding:20px 24px 24px;box-shadow:none;transition:border-color 160ms ease,box-shadow 160ms ease}
.calculator-notebook .parent-card:focus-within{border-color:#08776e;box-shadow:0 0 0 2px #08776e22}
.calculator-notebook .parent-card>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.calculator-notebook .parent-preview{padding:20px 0;gap:18px;border-bottom:1px solid var(--notebook-line);margin:0 0 20px;align-items:center}
.calculator-notebook .parent-color-disc{width:76px;height:76px;flex:0 0 76px;border:1px solid #b7c9bb;border-radius:50%;display:grid;place-items:center;color:#233e37;box-shadow:none}
.calculator-notebook .parent-color-disc.is-unknown{background:#e9f1e9}
.calculator-notebook .parent-color-disc::after{content:none}
.calculator-notebook .parent-color-disc .notebook-icon{width:52px;height:52px}
.calculator-notebook [data-parent-selection]{font:26px/1.3 Georgia,serif;letter-spacing:-.02em;overflow-wrap:anywhere}
.calculator-notebook .parent-kicker{font-size:13px;letter-spacing:.12em;color:var(--notebook-muted);text-transform:uppercase;display:flex;align-items:center;gap:10px;margin-bottom:6px}
.notebook-parent-number{font-family:Georgia,serif;letter-spacing:0;font-size:16px;color:#08776e}
.calculator-notebook .parent-preview-note{font-size:13px;line-height:1.5;margin-top:6px;color:var(--notebook-muted)}
.calculator-notebook .parent-source-picker{margin:0;padding:0;border:0;border-bottom:1px solid var(--notebook-line);border-radius:0;background:transparent}
.calculator-notebook .parent-source-picker>summary{font-size:13px;color:var(--notebook-muted);min-height:44px;padding:6px 0;line-height:1.5}
.calculator-notebook .parent-source-picker[open]{padding-bottom:16px}
.calculator-notebook .parent-state-summary{padding:0;background:transparent;border:0;border-bottom:1px solid var(--notebook-line);margin:0 0 16px;border-radius:0}
.calculator-notebook .parent-state-summary>summary{font-size:13px;min-height:44px;padding:8px 0}
.calculator-notebook .parent-state-summary li{font-size:16px;line-height:1.6}
.calculator-notebook .parent-color-choices{border:0;margin:0;background:transparent;padding:0}
.calculator-notebook .parent-color-choices>summary{font-size:16px;font-weight:600;padding:10px 0;min-height:44px;color:#233e37}
.calculator-notebook .basic-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin:10px 0 16px}
.calculator-notebook .basic-color{border:0;border-bottom:1px solid var(--notebook-line);border-radius:0;min-height:62px;padding:10px 0;background:transparent;display:flex;align-items:center;gap:10px;justify-content:start;text-align:left;transition:color 160ms ease,background-color 160ms ease}
.calculator-notebook .basic-color>span:not(.color-swatch):not(.color-check){font-size:13px;line-height:1.4}
.calculator-notebook .basic-color[aria-pressed=true]{background:#e9f1e9;color:#233e37;border-color:#08776e}
.calculator-notebook .basic-color:hover{background:#f0f4ed;color:#233e37}
.calculator-notebook .color-check{margin-left:auto}
.calculator-notebook .basic-colors .color-unknown{grid-column:1/-1;justify-self:start;min-height:44px;font-size:13px;padding:8px 0;color:var(--notebook-muted)}
.calculator-notebook .all-colors{border:0;border-top:1px solid var(--notebook-line);border-radius:0;background:transparent;padding:0}
.calculator-notebook .all-colors>summary{font-size:13px;min-height:44px;padding:10px 0}
.calculator-notebook .parent-color-hint{font-size:13px!important;line-height:1.6;color:var(--notebook-muted);margin:12px 0 0;padding:0;background:transparent}
.calculator-notebook .notebook-records{grid-column:1/-1;min-width:0;border-top:1px solid var(--notebook-line);margin-top:20px;padding-top:4px}
.calculator-notebook .parent-color-disc::before{content:none}
.calculator-notebook .notebook-records>summary{display:flex;gap:12px;align-items:center;min-height:64px;padding:14px 0;list-style:none;color:#233e37}
.calculator-notebook .notebook-records>summary::-webkit-details-marker{display:none}
.calculator-notebook #genetics-wizard .notebook-records>summary{min-height:64px;padding:14px 0;justify-content:start}
.calculator-notebook #genetics-wizard .notebook-records>summary::after{content:none}
.calculator-notebook #genetics-wizard .parent-color-choices>summary{font-size:16px;padding:10px 0;background:transparent;border:0;justify-content:space-between}
.notebook-chapter-icon{flex:0 0 28px;color:#08776e}
.notebook-chapter-icon .notebook-icon{width:28px;height:32px}
.notebook-records>summary strong{font-size:16px;line-height:1.4;font-weight:600;display:block}
.notebook-records>summary small{font-size:13px;line-height:1.5;color:var(--notebook-muted);display:block;margin-top:3px}
.notebook-chapter-arrow{margin-left:auto;transition:transform 160ms ease;flex:none}
.notebook-records[open]>.notebook-chapter-arrow,.notebook-records[open]>summary .notebook-chapter-arrow{transform:rotate(180deg)}
.calculator-notebook .inheritance-input{padding:18px 0 0;margin:20px 0 0;border:0;border-top:1px solid var(--notebook-line);background:transparent}
.calculator-notebook .inheritance-heading h3{font-family:Georgia,serif;font-size:24px;line-height:1.3}
.calculator-notebook .inheritance-input .inheritance-intro{font-size:13px;line-height:1.65;color:var(--notebook-muted)}
.calculator-notebook .inheritance-explanation{border:0;border-top:1px solid var(--notebook-line);border-radius:0;background:transparent;padding:0;margin:16px 0 0}
.calculator-notebook .inheritance-explanation>summary{min-height:44px;padding:10px 0;font-size:13px}
.calculator-notebook .notebook-records .genetics-details{border-radius:0;border:0;border-top:1px solid var(--notebook-line);background:transparent;padding:0;margin:16px 0}
.calculator-notebook .notebook-records .genetics-details>summary{min-height:44px;padding:10px 0;font-size:13px}
.calculator-notebook .notebook-records p{font-size:16px;line-height:1.65}
.calculator-notebook .notebook-records .help{font-size:13px}
.calculator-notebook .notebook-action{border-top:1px solid var(--notebook-line);padding:24px 0 0;margin:28px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;background:transparent}
.notebook-action strong{font:25px/1.3 Georgia,serif;display:block;margin:6px 0}
.calculator-notebook .notebook-action p{font-size:13px;line-height:1.6;max-width:55ch;margin:0;color:var(--notebook-muted)}
.calculator-notebook .calculator-submit{min-height:54px;font-size:16px;padding:16px 22px;border-radius:14px;box-shadow:none;background:#08776e;color:#fff;transition:background-color 160ms ease,transform 160ms ease}
.calculator-notebook .calculator-submit:hover{background:#075e57;transform:translateY(-1px)}
.calculator-notebook .calculation-options{background:transparent;border:0;border-top:1px solid var(--notebook-line);border-radius:0;margin-top:20px;padding:0}
.calculator-notebook .calculation-options>summary{min-height:44px;padding:10px 0;font-size:13px}
.calculator-notebook .calculation-result{margin-top:48px;border-radius:24px;border:1px solid var(--notebook-line);background:var(--notebook-paper);padding:32px;animation:notebook-result-in 180ms ease-out both}
.calculator-notebook .calculation-result>h2{font-size:clamp(30px,3.3vw,44px);line-height:1.18;max-width:24ch;margin:12px 0 20px}
.calculator-notebook .target-choice{background:var(--notebook-paper);border:1px solid var(--notebook-line);border-radius:18px;padding:24px}
@keyframes notebook-result-in{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.calculator-notebook .notebook-intro{grid-template-columns:1fr;gap:24px}.calculator-notebook .notebook-principle{grid-template-columns:40px 1fr;border-left:0;border-top:1px solid var(--notebook-line);padding:20px 0 0}.notebook-rule-icon{grid-row:1/5}.calculator-notebook .notebook-principle>p,.calculator-notebook .notebook-principle>strong,.calculator-notebook .notebook-principle>.eyebrow{grid-column:2}.calculator-notebook .notebook-parent-spread{grid-template-columns:1fr}.notebook-free{white-space:normal}.calculator-notebook .notebook-action{grid-template-columns:1fr;gap:20px}.calculator-notebook .calculator-submit{width:100%}}
@media(max-width:520px){.calculator-notebook{padding-top:28px}.calculator-notebook .notebook-opening h1{font-size:38px;max-width:15ch}.calculator-notebook .notebook-opening>p{font-size:16px}.calculator-notebook .notebook-principle{padding-top:16px;gap:6px 14px}.calculator-notebook .notebook-principle strong{font-size:22px}.calculator-notebook .calculator-modes{gap:18px;align-items:stretch}.calculator-notebook .calculator-modes a{font-size:13px;flex:1;max-width:50%;padding:12px 0}.calculator-notebook .calculator-workbench{padding:20px 16px;border-radius:20px}.calculator-notebook .notebook-sheet-heading{gap:12px;padding-bottom:20px}.calculator-notebook .notebook-sheet-heading h2{font-size:27px}.notebook-folio{font-size:28px}.notebook-free{display:none}.calculator-notebook .parent-card{padding:14px 16px 20px}.calculator-notebook .parent-preview{gap:14px;padding:16px 0}.calculator-notebook .parent-color-disc{width:64px;height:64px;flex-basis:64px}.calculator-notebook .parent-color-disc .notebook-icon{width:44px;height:44px}.calculator-notebook [data-parent-selection]{font-size:23px}.calculator-notebook .calculation-result{padding:22px 16px;border-radius:20px;margin-top:32px}.calculator-notebook .target-choice{padding:20px 16px}}
@media(prefers-reduced-motion:reduce){.calculator-notebook *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
