a{color:var(--brand-2);text-underline-offset:.15em;text-decoration-thickness:.06em}
a:hover{color:var(--brand)}
p,ul,ol,table{margin:0 0 1.05rem}
h2{font-family:var(--font-display);font-weight:700;font-size:1.42rem;line-height:1.2;margin:2.25rem 0 .7rem;
letter-spacing:-.015em;font-variation-settings:'opsz' 40,'SOFT' 24;display:flex;align-items:baseline;gap:.5rem}
h2::before{content:"";flex:none;width:.5rem;height:.5rem;border-radius:2px;background:var(--accent);transform:translateY(-.15em)}
h2 .icon{margin-right:0}
h3{font-family:var(--font-display);font-weight:700;font-size:1.1rem;margin:1.4rem 0 .45rem;letter-spacing:-.01em}
section>*:first-child+*{margin-top:0}
section>p:last-child{margin-bottom:0}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:var(--brand-soft);padding:.1em .3em;border-radius:4px}
small,.muted{color:var(--ink-soft)}
hr{border:0;border-top:1px solid var(--line);margin:1.5rem 0}
.crumbs{font-size:.85rem;margin:.15rem 0 .25rem;overflow-x:auto;scrollbar-width:none}
.crumbs::-webkit-scrollbar{display:none}
.crumbs ol{list-style:none;padding:0;margin:0;display:flex;gap:.25rem;white-space:nowrap}
.crumbs li+li::before{content:"›";margin:0 .35rem;color:var(--ink-soft)}
.crumbs a{color:var(--ink-soft);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.field input:hover,.field select:hover{border-color:#9fada7}
.field input:focus,.field select:focus,button:focus-visible,a:focus-visible,summary:focus-visible{
outline:2px solid var(--brand);outline-offset:2px;border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}
.field .hint{font-size:.85rem;color:var(--ink-soft)}
.field .err{font-size:.85rem;color:var(--danger);display:none}
.field.is-invalid input{border-color:var(--danger)}
.field.is-invalid .err{display:block}
.grid3{display:grid;grid-template-columns:1fr;gap:0 1rem}
@media(min-width:640px){.grid3{grid-template-columns:1fr 1fr 1fr}}
.check{display:flex;align-items:center;gap:.5rem;font-size:.95rem;min-height:44px}
.check input{width:1.2rem;height:1.2rem;margin:0}
fieldset{border:1px solid var(--line);border-radius:8px;padding:.5rem .85rem .25rem;margin:0 0 1rem}
legend{font-weight:600;font-size:.95rem;padding:0 .3rem}
.seg{display:inline-flex;flex-wrap:wrap;gap:.35rem;margin:0 0 .85rem}
.seg button{font:inherit;font-size:.93rem;padding:.5rem .9rem;border:1px solid #c6cec9;border-radius:999px;background:#fff;
color:var(--ink);cursor:pointer;min-height:42px;transition:background .15s,border-color .15s,color .15s}
.seg button:hover{border-color:var(--brand);color:var(--brand)}
.seg button[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600;box-shadow:var(--shadow-1)}
.btn{font:inherit;font-weight:600;padding:.65rem 1.1rem;border-radius:8px;border:1px solid var(--brand);background:var(--brand);color:#fff;cursor:pointer;min-height:44px}
.btn:hover{background:var(--brand-2)}
.btn-ghost{background:#fff;color:var(--brand)}
.btn-ghost:hover{background:var(--brand-soft)}
.btn-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 0}
.calc-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}
.calc-actions .btn{min-height:40px;padding:.45rem .8rem;font-size:.92rem}
.result{margin-top:1rem;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:8px;padding:.85rem 1rem}
.result:empty{display:none}
.result.is-hint{background:transparent;border:1px dashed var(--line);color:var(--ink-soft)}
.result-hint{margin:0;font-size:.92rem}
.result{border-left:4px solid var(--accent)}
.result .big{font-family:var(--font-display);font-size:2rem;font-weight:700;color:var(--accent);line-height:1.1;
margin:0 0 .55rem;letter-spacing:-.025em;font-variant-numeric:tabular-nums;font-variation-settings:'opsz' 60,'SOFT' 20}
.result .big small{display:block;font-family:var(--font-ui);font-size:.88rem;font-weight:500;color:var(--ink-soft);
letter-spacing:.01em;margin-top:.15rem;font-variation-settings:normal}
.result table{width:100%;border-collapse:collapse;font-size:.92rem;line-height:1.3;margin:.5rem 0 0}
.result th,.result td{text-align:left;padding:.42rem .25rem;border-bottom:1px solid var(--accent-line);vertical-align:top}
.result td:last-child,.result th:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.result tr.long td:last-child{white-space:normal;text-align:left;overflow-wrap:anywhere}
.result{overflow-x:auto}
.result tr.total td{font-weight:700;border-top:2px solid var(--accent);font-size:.98rem;padding-top:.55rem}
.result tr.neg td:last-child{color:var(--danger)}
.result tr.zero td,.result tr.zero td:last-child{color:var(--ink-soft);font-weight:400}
.result tr:last-child td{border-bottom:0}
.result .note{font-size:.85rem;color:var(--ink-soft);margin:.5rem 0 0}
.result-msg{color:var(--danger);font-size:.95rem}
.calc-peek{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:center;gap:.75rem;
padding:.5rem max(.75rem,env(safe-area-inset-left)) calc(.5rem + env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-right));
background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 18px -10px rgba(20,32,30,.4)}
.calc-peek[hidden]{display:none}
.calc-peek-val{font-weight:700;color:var(--accent);font-size:1.05rem;font-variant-numeric:tabular-nums;flex:1;
overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calc-peek-btn{font:inherit;font-size:.9rem;font-weight:600;padding:.5rem .8rem;min-height:40px;border-radius:8px;
border:1px solid var(--brand);background:var(--brand);color:#fff;cursor:pointer;flex:none}
@media(min-width:640px){.calc-peek{display:none}}
.tbl{width:100%;border-collapse:collapse;font-size:.95rem;overflow-x:auto;display:block}
.tbl thead th{background:var(--brand-soft);color:var(--brand);font-size:.88rem;letter-spacing:.02em;text-transform:uppercase}
.tbl th,.tbl td{border:1px solid var(--line);padding:.55rem .7rem;text-align:left;vertical-align:top}
.tbl tbody tr:nth-child(even){background:#fcfcfa}
.tbl td.num,.tbl th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(min-width:640px){.tbl{display:table}}
.steps{counter-reset:s;list-style:none;padding:0}
.steps li{position:relative;padding-left:2.2rem;margin:0 0 .6rem}
.steps li::before{counter-increment:s;content:counter(s);position:absolute;left:0;top:.05rem;width:1.6rem;height:1.6rem;border-radius:50%;background:var(--brand);color:#fff;font-weight:700;font-size:.85rem;display:flex;align-items:center;justify-content:center}
.notice{background:var(--brand-soft);border-left:4px solid var(--brand);padding:.6rem .85rem;border-radius:0 8px 8px 0}
.disclaimer{background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:8px;padding:.75rem 1rem;margin:1.5rem 0;font-size:.95rem}
.disclaimer p{margin:0}
.faq-item{border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);margin:0 0 .55rem;box-shadow:var(--shadow-1)}
.faq-item[open]{border-color:var(--brand-ring)}
.faq-item summary{cursor:pointer;padding:.8rem .95rem;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:.5rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";color:var(--brand);font-weight:700;flex:none}
.faq-item[open] summary::after{content:"−"}
.faq-a{padding:0 .9rem .8rem}
.faq-a p:last-child{margin-bottom:0}
.cards{list-style:none;padding:0;margin:0 0 1.25rem;display:grid;grid-template-columns:1fr;gap:.7rem}
@media(min-width:560px){.cards{grid-template-columns:1fr 1fr}}
@media(min-width:860px){.cards{grid-template-columns:1fr 1fr 1fr}}
.card a{display:block;height:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
padding:1rem 1.05rem;text-decoration:none;color:inherit;box-shadow:var(--shadow-1);
transition:box-shadow .18s ease-out,border-color .18s ease-out,transform .18s ease-out}
.card a:hover{border-color:var(--brand-ring);box-shadow:var(--shadow-2);transform:translateY(-2px)}
.card strong{display:block;font-family:var(--font-display);font-weight:700;font-size:1.02rem;color:var(--brand);
margin:0 0 .25rem;letter-spacing:-.01em;line-height:1.25}
.card span{display:block;font-size:.9rem;line-height:1.45;color:var(--ink-soft)}
.card-hub a{background:linear-gradient(180deg,var(--brand-soft),var(--surface))}
.card .card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;
background:linear-gradient(160deg,#dcebe6,#eef4f1);color:var(--brand);margin:0 0 .75rem;
box-shadow:inset 0 0 0 1px rgba(12,74,63,.08)}
.card a:hover .card-icon{background:linear-gradient(160deg,#cfe4dd,#e4efeb)}
.icon{display:block;width:22px;height:22px}
h2 .icon{width:20px;height:20px;color:var(--brand);transform:translateY(.12em)}
h2:has(.icon)::before{display:none}
@media(prefers-reduced-motion:reduce){.card a{transition:none}.card a:hover{transform:none}}
.linklist{padding-left:1.1rem}
.linklist li{margin:0 0 .4rem}
.sources ul{padding-left:1.1rem;font-size:.92rem}
.updated{font-size:.9rem;color:var(--ink-soft);margin:1.5rem 0}
.more{margin:-.25rem 0 1.5rem}
.home-group{margin-bottom:.5rem}
.home-group:first-of-type>h2,.static-page>section:first-of-type>h2{margin-top:1.25rem}
.keypad{display:grid;gap:.35rem;margin-top:.75rem}
.keypad button{font:inherit;font-size:1.05rem;min-height:46px;border:1px solid #c6cec9;border-radius:8px;background:#fff;cursor:pointer;color:var(--ink)}
.keypad button:hover{background:var(--brand-soft)}
.keypad button.op{background:var(--brand-soft);color:var(--brand);font-weight:600}
.keypad button.fn{font-size:.9rem;background:#f4f6f6}
.keypad button.eq{background:var(--brand);color:#fff;font-weight:700}
.keypad button.wide{grid-column:span 2}
.display{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--ink);color:#e7fff9;border-radius:8px;padding:.6rem .8rem;text-align:right;min-height:3.4rem;overflow-x:auto;white-space:nowrap}
.display .expr{display:block;font-size:.85rem;color:#8fbfb8;min-height:1.2em}
.display .val{display:block;font-size:1.5rem}
.display input{width:100%;font:inherit;font-size:1.3rem;background:transparent;border:0;color:inherit;text-align:right;outline:none}
.hp .keypad button{background:#2b2b2b;color:#f2f2f2;border-color:#111;font-size:.95rem}
.hp .keypad button .f{display:block;font-size:.65rem;color:#e8b04b;font-weight:600}
.hp .keypad button .g{display:block;font-size:.65rem;color:#7fb2e6;font-weight:600}
.hp .keypad button.op{background:#3a3a3a;color:#fff}
.hp .keypad button.enter{background:#4b4b4b}
.hp .keypad button.f-key{background:#e8b04b;color:#111}
.hp .keypad button.g-key{background:#7fb2e6;color:#111}
.hp .stack{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem;color:#8fbfb8;display:flex;gap:1rem;justify-content:flex-end;flex-wrap:wrap}
.hp .regs{font-size:.85rem;color:var(--ink-soft);margin:.4rem 0 0}
.hp .hp-ind{display:flex;gap:.4rem;justify-content:flex-end;margin:.35rem 0 0;min-height:1.4rem}
.hp .ind{font-size:.72rem;font-weight:700;letter-spacing:.03em;border-radius:4px;padding:.1rem .35rem;background:#dfe7e7;color:#334}
.hp .ind-f{background:#e8b04b;color:#1a1a1a}
.hp .ind-g{background:#7fb2e6;color:#1a1a1a}
.hp .regs b{font-variant-numeric:tabular-nums;color:var(--ink)}
.hp-pad{overflow-x:auto;padding-bottom:.25rem}
.hp .keypad{grid-template-columns:repeat(10,minmax(30px,1fr));min-width:330px;gap:.25rem}
.hp .keypad button{font-size:.62rem;line-height:1.15;padding:.25rem .05rem;min-height:52px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.05rem}
.hp .keypad button .lbl{font-size:.85rem;font-weight:600}
.hp .keypad button .f,.hp .keypad button .g{font-size:.6rem}
.hp .keypad button.enter-tall{grid-row:span 2}
@media(min-width:600px){.hp .keypad{gap:.35rem}
.hp .keypad button{font-size:.7rem;min-height:58px}
.hp .keypad button .lbl{font-size:1rem}}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;font-size:.8rem;margin:.5rem 0}
.cal .dow{text-align:center;color:var(--ink-soft);font-weight:600}
.cal .d{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#fff;border:1px solid var(--line)}
.cal .d.off{visibility:hidden}
.cal .d.mens{background:#fecdd3;border-color:#fda4af}
.cal .d.fert{background:#bbf7d0;border-color:#86efac}
.cal .d.ovu{background:#16a34a;color:#fff;font-weight:700}
.cal .d.today{outline:2px solid var(--brand)}
.cal-legend{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.85rem}
.cal-legend span::before{content:"";display:inline-block;width:.9em;height:.9em;border-radius:3px;margin-right:.3em;vertical-align:-.1em}
.cal-legend .mens::before{background:#fecdd3}
.cal-legend .fert::before{background:#bbf7d0}
.cal-legend .ovu::before{background:#16a34a}
.cal-month{font-weight:600;margin:.75rem 0 .25rem}
.days{width:100%;border-collapse:collapse;font-size:.92rem}
.days th,.days td{padding:.3rem .25rem;border-bottom:1px solid var(--line)}
.days input{width:100%;font:inherit;padding:.4rem;border:1px solid #c6cec9;border-radius:6px;min-height:40px}
.days td.tot{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.site-footer{border-top:1px solid var(--line);background:var(--surface);padding:1.75rem 0 2.25rem;font-size:.9rem;color:var(--ink-soft)}
.site-footer p{margin:0 0 .5rem}
.site-footer a{color:var(--ink-soft)}
.site-footer a:hover{color:var(--brand)}
.foot-cols{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem 1.5rem;margin:1.25rem 0 1.5rem}
@media(min-width:640px){.foot-cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem 2rem}}
.foot-title{font-family:var(--font-ui);font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
color:var(--ink);margin:0 0 .6rem;display:block}
.foot-title::before{display:none}
.foot-cols ul{list-style:none;padding:0;margin:0}
.foot-cols li{margin:0 0 .45rem}
.foot-cols a{text-decoration:none;display:inline-block;min-height:26px}
.foot-cols a:hover{text-decoration:underline}
.foot-copy{padding-top:1rem;border-top:1px solid var(--line-soft)}