.mm{display:flex;align-items:center;align-self:stretch}
.site-nav{align-self:stretch}header{position:relative;z-index:30}
.mm-btn{background:none;border:0;font:inherit;font-size:13px;color:var(--mu,#4a625d);cursor:pointer;padding:0;min-height:44px}.mm-btn:hover{color:var(--g,#08784e)}
header .w>nav{display:flex;align-items:center;align-self:stretch}header .w .mm-btn{font-size:14px}
.mm-panel{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--ln,#e1e9e4);box-shadow:0 24px 48px rgba(16,44,41,.1);padding:22px 0 18px;z-index:40}
.mm-in{width:min(1160px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:8px 18px}
.mm-panel a.mm-item{display:block;margin:0;padding:14px;border-radius:14px;text-decoration:none;color:var(--ink,#102c29);font-size:14px}.mm-panel a.mm-item:hover,.mm-panel a.mm-item:focus-visible{background:var(--gs,#e8f4ec)}
.mm-ic{display:block;font-size:26px;line-height:1.2}.mm-item b{display:block;font-size:15px;margin:6px 0 2px}.mm-item .d{display:block;font-size:12.5px;line-height:1.4;color:var(--mu,#4a625d)}
.mm-foot{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:6px;padding-top:12px;border-top:1px solid var(--ln,#e1e9e4)}.mm-panel .mm-foot a{margin:0;font-size:13px;color:var(--g,#08784e);text-decoration:none;padding:6px 0}.mm-foot a:hover{text-decoration:underline}
.mm.open .mm-panel,.mm:has(:focus-visible) .mm-panel{display:block}
@media(hover:hover){.mm:hover .mm-panel{display:block}}
@media(max-width:850px){.mm-in{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.mm-in{grid-template-columns:1fr}}
@media(max-width:600px){.site-nav .mm{display:block;align-self:auto}.site-nav .mm-btn{font-size:15px;padding:8px 0}.site-nav .mm-panel{position:static;box-shadow:none;border:0;padding:4px 0 0}.site-nav .mm-in{width:100%}}
@media(prefers-reduced-motion:no-preference){.mm-panel{animation:mmin .15s ease-out}@keyframes mmin{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}}/* v2 fixes: panels anchor to the header (not the tiny button), stay on-screen, items wrap */
html body header .mm{position:static!important}
html body header .mm .mm-panel{position:absolute!important;top:calc(100% + 8px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(760px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:calc(100vh - 100px);overflow:auto;box-sizing:border-box;border-radius:18px;border:1px solid var(--ln,#e1e9e4)}
html body header .mm .mm-in{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px 14px!important;padding:16px!important;width:auto!important;margin:0!important}
.mm-in>*{min-width:0}
html body header .mm a.mm-item,html body header .mm a.mm-item b,html body header .mm a.mm-item .d{white-space:normal!important;overflow-wrap:break-word;word-break:normal}
@media(max-width:860px){html body header .mm .mm-in{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){html body header .mm .mm-in{grid-template-columns:minmax(0,1fr)!important}html body header .mm .mm-panel{top:100%!important;border-radius:0 0 18px 18px}}
@media(max-width:480px){html body header .mm .mm-in{padding:8px!important;gap:0!important}html body header .mm a.mm-item{display:grid!important;grid-template-columns:34px minmax(0,1fr);column-gap:10px;align-items:center;padding:9px 8px!important}html body header .mm .mm-ic{grid-row:1/3;font-size:22px}html body header .mm .mm-item b{margin:0;font-size:14.5px}html body header .mm .mm-item .d{font-size:12px}}
html body header .mm::after{display:none!important}
html body header .mm .mm-panel{top:calc(100% + 6px)!important}
/* only one dropdown at a time: whichever menu the pointer is on wins */
@media(hover:hover){html body header nav:has(.mm:hover) .mm:not(:hover) .mm-panel{display:none!important}html body header nav:has(.mm:hover) .mm:not(:hover){--x:0}}
html body header .mm:hover .mm-panel{display:block}

/* Kids card: sits in the last grid slot, tinted green and dashed so it reads as a separate, kids-only item */
html body header .mm a.mm-item.mm-kids-card{background:#f1f8f2;border:1px dashed #b9d9c4}
html body header .mm a.mm-item.mm-kids-card b{color:#176b45}
html body header .mm a.mm-item.mm-kids-card:hover,html body header .mm a.mm-item.mm-kids-card:focus-visible{background:#e3f1e7}

/* In use nav item */
.nav-inuse{white-space:nowrap}.nav-inuse .iu-count{display:inline-block;min-width:20px;padding:0 6px;margin-left:6px;border-radius:99px;background:#08784e;color:#fff;font-size:12px;line-height:20px;text-align:center;font-weight:700}.nav-inuse .iu-count[hidden]{display:none}@keyframes iu-bump{0%{transform:scale(1)}40%{transform:scale(1.5)}100%{transform:scale(1)}}.nav-inuse .bump{animation:iu-bump .5s ease}@media(prefers-reduced-motion:reduce){.nav-inuse .bump{animation:none}}

/* Phone header: keep all primary links on one row (v46) */
@media(max-width:600px){html body header>.w>nav{flex-wrap:nowrap!important;justify-content:space-between!important;gap:8px!important}html body header>.w>nav>a,html body header>.w>nav>.mm>.mm-btn{font-size:13.5px!important;padding:8px 0!important}}

/* Collapsed (hamburger) nav: Learn / Calculators open as inline accordions inside the menu, never behind the page */
@media(max-width:1180px){
html body header .site-nav .mm{display:block;align-self:stretch;width:100%}
html body header .site-nav .mm-btn{display:block;width:100%;text-align:left;font-size:15px;padding:8px 0}
html body header .site-nav .mm:not(.open) .mm-panel{display:none!important}
html body header .site-nav .mm.open .mm-panel{display:block!important;position:static!important;left:auto!important;transform:none!important;width:auto!important;max-width:none!important;max-height:none!important;overflow:visible;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent;animation:none}
html body header .site-nav .mm .mm-in{padding:4px 0 8px!important}
}

/* Small phones: the inline header nav wraps to a second row instead of overflowing */
@media(max-width:900px){html body header>.w>nav{flex-wrap:wrap!important;justify-content:flex-end!important;row-gap:2px!important;column-gap:14px!important;min-width:0}}
/* My numbers link: hidden only on phone widths where it would wrap the header onto another row */
.nav-mynums{white-space:nowrap}@media(min-width:420px) and (max-width:549px){.nav-mynums{display:none}}

/* ===== Mobile polish (v60) =====
   1. 16px form controls so iPhone Safari does not zoom the page on focus.
   2. Comfortable tap targets for inline text links (footer, breadcrumbs, link lists, TOC).
   3. Header nav that fits one row on narrow phones. */
@media(max-width:760px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]):not([type=reset]),select,textarea{font-size:16px!important}
  footer .w p a,footer .cf-legal a,footer .footer-note a{display:inline-block;padding:6px 2px}
  .crumbs a{display:inline-block;padding:6px 1px}
  ul.rel li a,ul.src li a,ul.cards li a,.about-list li a,nav.toc li a{display:inline-block;padding:4px 0}
  .iu-link{display:inline-block;padding:6px 0}
  .k-gloss dd a{display:inline-block;padding:5px 2px}
  .mn-x{min-width:40px;min-height:40px}
  .bk-q{position:relative}.bk-q::after{content:"";position:absolute;inset:-12px}
}
@media(max-width:419px){
  html body header>.w>nav{column-gap:9px!important}
  html body header>.w>nav>a,html body header>.w>nav>.mm>.mm-btn{font-size:13px!important}
}
@media(max-width:359px){html body header>.w>nav{justify-content:center!important;column-gap:14px!important}}

/* v62: keep the header the same height before and after search.js adds its 44px button (no 10px jump) */
header .w .logo{min-height:44px}

/* v62: skip link, balanced long headings, X-Ray name never splits at its hyphen */
.skip-link{position:absolute;left:12px;top:-60px;z-index:100;padding:10px 16px;border-radius:99px;background:#075b3d;color:#fff;text-decoration:none;font-size:14px;font-weight:650}
.skip-link:focus{top:12px;outline:2px solid #fff;outline-offset:2px}
main:focus{outline:none}
h1{text-wrap:balance}
.nw{white-space:nowrap}
/*cf-theme-btn*/
.theme-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:0;border:1px solid var(--ln,#e1e9e4);border-radius:99px;background:#fff;color:var(--mu,#4a625d);cursor:pointer;flex:0 0 auto;margin-right:-14px}
.theme-btn:hover{border-color:var(--g,#08784e);background:var(--gs,#e8f4ec)}
.theme-btn svg{display:block}.theme-btn .i-sun{display:none}
html[data-theme=dark] .theme-btn .i-sun{display:block}html[data-theme=dark] .theme-btn .i-moon{display:none}
@media(max-width:700px){.theme-btn{width:44px;height:44px;margin-left:auto;margin-right:-14px}.theme-btn+.srch-btn{margin-left:0}}
.theme-seg{display:inline-flex;gap:0;vertical-align:middle;border:1px solid var(--ln,#e1e9e4);border-radius:99px;overflow:hidden;margin-left:4px}
.theme-seg button{font:inherit;font-size:13px;padding:6px 12px;min-height:32px;border:0;background:transparent;color:inherit;cursor:pointer}
.theme-seg button[aria-pressed=true]{background:var(--gd,#075b3d);color:#fff}
@media print{.theme-btn,.theme-seg{display:none}}
/*cf-theme-btn-end*/
/*cf-dark*/@media screen{html[data-theme=dark]{color-scheme:dark}html[data-theme=dark] body{background:#0f1613!important;color:#d4e5e3}html[data-theme=dark] ::placeholder{color:#7f948c;opacity:1}html[data-theme=dark] ::selection{background:#0d8556;color:#fff}html[data-theme=dark] header:not(.site-header){background:rgba(17,26,22,0.96);border-bottom:1px solid #2b3a2f}html[data-theme=dark] header{background:rgba(17,26,22,0.96);border-bottom:1px solid #2b3a2f}html[data-theme=dark] .mm-btn{color:#aabfba}html[data-theme=dark] .mm-btn:hover{color:#67e9b9}html[data-theme=dark] .mm-panel{background:#17211d;border-bottom:1px solid #2b3b31}html[data-theme=dark] .mm-panel a.mm-item{color:#d4e5e3}html[data-theme=dark] .mm-panel a.mm-item:hover,html[data-theme=dark] .mm-panel a.mm-item:focus-visible{background:#1c2a21}html[data-theme=dark] .mm-item .d{color:#aabfba}html[data-theme=dark] .mm-foot{border-top:1px solid #2b3b31}html[data-theme=dark] .mm-panel .mm-foot a{color:#67e9b9}html[data-theme=dark] body header .mm .mm-panel{border:1px solid #2b3b31}html[data-theme=dark] body header .mm a.mm-item.mm-kids-card{background:#111a16;border:1px dashed #243c2c}html[data-theme=dark] body header .mm a.mm-item.mm-kids-card b{color:#70e0ae}html[data-theme=dark] body header .mm a.mm-item.mm-kids-card:hover,html[data-theme=dark] body header .mm a.mm-item.mm-kids-card:focus-visible{background:#1a2b1f}html[data-theme=dark] .nav-inuse .iu-count{color:#fff}html[data-theme=dark] .skip-link{color:#fff}html[data-theme=dark] .skip-link:focus{outline:2px solid #363636}html[data-theme=dark] .srch-btn{border:1px solid #2b3b31;background:#17211d;color:#aabfba}html[data-theme=dark] .srch-btn:hover{border-color:#08784e;background:#1c2a21}html[data-theme=dark] .srch-btn kbd{border:1px solid #2b3b31;color:#aabfba}html[data-theme=dark] .srch{color:#102c29}html[data-theme=dark] .srch-box{background:#17211d}html[data-theme=dark] .srch-in{border-bottom:2px solid #2b3b31;color:#aabfba}html[data-theme=dark] .srch .srch-in input,html[data-theme=dark] .srch .srch-in input:focus,html[data-theme=dark] .srch .srch-in input:focus-visible{color:#d4e5e3}html[data-theme=dark] .srch-x{color:#aabfba}html[data-theme=dark] .srch-x:hover{background:#1c2a21}html[data-theme=dark] .srch-status{color:#aabfba}html[data-theme=dark] .srch-list a:hover,html[data-theme=dark] .srch-list a.on{background:#1c2a21}html[data-theme=dark] .srch-pg{color:#67e9bb;background:#1c2a21}html[data-theme=dark] .srch-list a:hover .srch-pg,html[data-theme=dark] .srch-list a.on .srch-pg{background:#17211d}html[data-theme=dark] .srch-sn{color:#aabfba}html[data-theme=dark] .srch-h{color:#aabfba}html[data-theme=dark] input[type=range]{accent-color:#2fbf86}
html[data-theme=dark] .theme-btn{background:#17211d;border-color:#2b3b31;color:#aabfba}
html[data-theme=dark] .theme-btn:hover{background:#1c2a21;border-color:#2fbf86}
html[data-theme=dark] .theme-seg{border-color:#2b3b31}
html[data-theme=dark] .theme-seg button[aria-pressed=true]{background:#0d8556;color:#fff}
html[data-theme=dark] .cf-rh{background:#14231c!important;border-bottom-color:#2b3b31!important;color:#d4e5e3!important}
html[data-theme=dark] .cf-rh-go{color:#67e9b9!important}
html[data-theme=dark] .cf-rh-no{background:#17211d!important;border-color:#2b3b31!important;color:#d4e5e3!important}
html[data-theme=dark] .hb-th i{background:rgba(255,255,255,.88);color:#334}
html[data-theme=dark] .sv-feat p,html[data-theme=dark] .sv-feat .sv-eye{color:#fff}
html[data-theme=dark] .sv-chips span{color:#fff}
html[data-theme=dark] .hb-cardw .hb-th i{background:rgba(255,255,255,.88)!important;color:#334!important}}/*cf-dark-end*/

/* header buttons: keep a clear gap between theme and search (v75) */
@media(max-width:1180px){.theme-btn{margin-right:-6px!important}}

/* v75 header fixes (inner pages)
   a) Phones up to 419px: all five links share one row, even with the "Recent" count badge showing. Before, "My money"
      dropped onto its own row at 320-360px, and again at 375-390px once the badge appeared.
   b) Very small phones (up to 339px): the "My money" link moves to the footer/More tools, as it already does at 420-549px.
   c) Tablets (701-899px): the search button is icon-only, and at 761-899px the links are slightly tighter, so the nav stays
      on one row. Before, "My money" dropped to a second line at 761-800px, and the theme button floated mid-row at 701-760px. */
@media(max-width:419px){
html body header>.w>nav{justify-content:space-between!important;column-gap:4px!important;width:100%}
html body header>.w>nav>a,html body header>.w>nav>.mm>.mm-btn{font-size:clamp(11.5px,3.3vw,13px)!important}
html body header .nav-inuse .iu-count{min-width:16px;padding:0 4px;margin-left:4px;font-size:11px;line-height:16px}
}
@media(max-width:339px){html body header>.w>nav .nav-mynums{display:none}}
@media(min-width:701px) and (max-width:899px){
html body header .srch-btn{padding:0!important;width:44px;height:44px;justify-content:center}
html body header .srch-btn kbd,html body header .srch-lab{display:none!important}
html body header .theme-btn{width:44px;height:44px}
}
@media(min-width:701px) and (max-width:760px){
html body header .theme-btn{margin-left:auto}
html body header .theme-btn+.srch-btn{margin-left:0;margin-right:6px}
}
@media(min-width:761px) and (max-width:899px){
html body header>.w>nav{column-gap:9px!important}
html body header>.w>nav>a,html body header>.w>nav>.mm>.mm-btn{font-size:13.5px!important}
}

/* v75: home header on very small phones (up to 359px): the menu button was pushed off the right edge (and the page scrolled sideways) */
@media(max-width:359px){
html body .site-header .logo{font-size:clamp(16.5px,5.4vw,21px);gap:6px}
html body .site-header .logo-mark{width:28px}
html body .site-header .theme-btn,html body .site-header .srch-btn{width:40px;height:40px}
html body .site-header .srch-btn{margin-right:0}
html body .site-header .menu-toggle{min-width:40px;width:40px;min-height:40px;padding-left:0;padding-right:0}
}
