/* Our additions on top of the mockup's site.css (which a mockup sync overwrites): theme toggle,
   phone nav and tables, phone figures, anchor offsets, privacy page. Loaded after site.css. */
/* light/dark toggle in the nav; dark is the default (data-theme on <html>) */
.nav .theme{font-family:"IBM Plex Mono",monospace;font-size:13px;color:var(--ink);background:none;border:1.5px solid var(--ink);padding:4px 8px;cursor:pointer;min-height:28px}
.nav .theme:hover{background:var(--soft)}
.nav .theme:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* phones: two tidy rows. Row 1: logo + theme toggle. Row 2: Notebook · Experiments · Email us */
.key-short{display:none}
@media(max-width:600px){
.top .nav{display:grid;grid-template-columns:auto auto 1fr;grid-template-areas:"mark mark theme" "nb ex key";align-items:center;column-gap:20px;row-gap:12px;padding:14px 0}
.top .nav>.mark{grid-area:mark;margin-right:0}
.top .nav>:nth-child(2){grid-area:nb}
.top .nav>:nth-child(3){grid-area:ex}
.top .nav>.key{grid-area:key;justify-self:end}
.top .nav>.theme{grid-area:theme;justify-self:end}
.top .nav .key-long{display:none}
.top .nav .key-short{display:inline}
.top .nav a::after{height:40px}
}
.nav .key{white-space:nowrap}
@media(max-width:360px){.top .nav{column-gap:14px}}
.foot nav{flex-wrap:wrap;row-gap:8px}
/* phones: stacked tables. Row title left and bold; labels on one line; values right-aligned beside them */
@media(max-width:600px){
.stack td{align-items:baseline;text-align:right}
.stack td::before{flex:none;white-space:nowrap;text-align:left}
.stack td:not([data-l]){justify-content:flex-start;text-align:left;font-weight:600;padding-top:8px}
.stack td:not([data-l])::before{display:none}
}
/* Fig 0.1 and Fig 0.2 scale to fit instead of side-scrolling (phones get their own layout from figs-phone.js) */
.scroll>svg#gp,.scroll>svg#clock{min-width:0;width:100%;height:auto}
/* smallest phones: a little less space between label and value so "measurements" fits */
@media(max-width:360px){.stack td{gap:10px}}
/* links to #sections land below the sticky header (87px desktop, 99px phones), not under it */
[id]{scroll-margin-top:104px}
@media(max-width:600px){[id]{scroll-margin-top:116px}}
/* phones: receipts read top to bottom (label, then result), since "With LiquidMetal Optimize" is too long to sit beside a result */
@media(max-width:600px){
.receipts td[data-l]{display:block;text-align:left}
.receipts td[data-l]::before{display:block;margin-bottom:2px}
}
/* privacy page: a three-cell title block (doc, updated, contact); one column on phones */
.tb.tb3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tb.tb3 div{border-bottom:0}
.tb.tb3 div:nth-child(3){border-right:0}
@media(max-width:720px){.tb.tb3{grid-template-columns:minmax(0,1fr)}.tb.tb3 div{border-right:0;border-bottom:1px solid var(--ink)}.tb.tb3 div:last-child{border-bottom:0}}
