/* circlegenerator.net: the setting-out sheet. Tokens follow DESIGN.md. System fonts only. */
:root {
  --sheet: #F2F3EE; --paper: #FFFFFF; --ink: #1A1D24; --ink-2: #434956; --ink-3: #5B6170; --rule: #D3D6CE;
  --grid: #858A93; --block: #FFC62B; --block-hover: #F2B900; --block-edge: #1A1D24; --block-tint: #FCEFC4;
  --mark: #B3261E; --link: #5B2A86; --on-block: #1A1D24;
  --shadow: 0 1px 2px rgb(26 29 36 / .08), 0 8px 24px rgb(26 29 36 / .08);
  --f-head: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --f-body: system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --t-display: 2.25rem; --t-h2: 1.75rem; --t-h3: 1.3125rem; --t-body: 1.0625rem; --t-result: 2.5rem;
  --gut: 16px; --sec: 72px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gut: 24px; } }
@media (min-width: 1024px) {
  :root { --t-display: 3rem; --t-h2: 2.125rem; --t-h3: 1.5rem; --t-body: 1.125rem; --t-result: 3.25rem; --gut: 32px; --sec: 112px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sheet: #14161B; --paper: #1D2027; --ink: #ECEDF2; --ink-2: #B6BAC6; --ink-3: #9499A6; --rule: #343843;
    --grid: #7A808D; --block: #FFD25A; --block-hover: #FFE08A; --block-edge: #14161B; --block-tint: #2B2718;
    --mark: #FF8F85; --link: #CDB0F2; --on-block: #14161B; color-scheme: dark;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
  }
}
:root[data-theme="dark"] {
  --sheet: #14161B; --paper: #1D2027; --ink: #ECEDF2; --ink-2: #B6BAC6; --ink-3: #9499A6; --rule: #343843;
  --grid: #7A808D; --block: #FFD25A; --block-hover: #FFE08A; --block-edge: #14161B; --block-tint: #2B2718;
  --mark: #FF8F85; --link: #CDB0F2; --on-block: #14161B; color-scheme: dark;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--grid) var(--sheet); scrollbar-width: thin; accent-color: var(--ink); scroll-padding-top: 16px; }
body { margin: 0; background: var(--sheet); color: var(--ink); font: 400 var(--t-body)/1.6 var(--f-body); }
img, svg, video, iframe, canvas { max-width: 100%; height: auto; }
::selection { background: var(--block); color: #1A1D24; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--t-display); line-height: 1.08; }
h2 { font-size: var(--t-h2); line-height: 1.15; margin: 56px 0 16px; }
h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 600; margin: 32px 0 12px; }
p, ul, ol, dl, table, figure, details { margin: 0 0 1em; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--block); border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 10; border: 1.5px solid var(--ink); border-radius: 6px; }
.skip:focus { top: 8px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gut); }
.small { font-size: .875rem; color: var(--ink-2); }
.n { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--sheet); }
.head-in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--f-head); padding: 8px 0; }
.brand .mark { color: var(--ink); flex: none; }
.mk-f { fill: var(--block); stroke: var(--ink); stroke-width: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--grid); }
.nav a[aria-current] { border-bottom-color: var(--block); }
.menu-btn, .theme-btn { display: none; min-height: 44px; padding: 0 14px; font: 600 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer; }
.js .theme-btn { display: inline-flex; align-items: center; margin-left: auto; }
@media (min-width: 720px) { .nav { margin-left: 8px; } }
@media (max-width: 719px) {
  .head-in { column-gap: 8px; }
  .brand { font-size: 1.125rem; gap: 8px; }
  .menu-btn, .theme-btn { padding: 0 12px; }
  .js .menu-btn { display: inline-flex; align-items: center; margin-left: auto; }
  .js .theme-btn { margin-left: 0; }
  .js .nav { display: none; flex-basis: 100%; order: 5; }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; border-top: 1px solid var(--rule); }
  .nav a { width: 100%; }
}

/* page head */
.pagehead { padding-top: 24px; padding-bottom: 16px; }
.pagehead h1 { max-width: 22ch; }
.lede { font-size: var(--t-h3); font-weight: 400; line-height: 1.35; color: var(--ink-2); max-width: 46rem; margin: 12px 0 0; }
.meta { font-size: .875rem; color: var(--ink-2); margin: 12px 0 0; }
.crumb { font-size: .875rem; color: var(--ink-2); margin-bottom: 12px; }
.crumb a { color: var(--ink-2); }

/* buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; font: 600 1rem var(--f-body); color: var(--on-block); background: var(--block); border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--block-hover); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--paper); color: var(--ink); }
.btn.secondary:hover { background: var(--sheet); }
.field { margin-bottom: 16px; }
.field label, .field .lab { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.inrow { display: flex; align-items: center; gap: 8px; }
input[type=text], select { width: 100%; min-height: 44px; padding: 0 12px; font: 500 1rem var(--f-mono); color: var(--ink); background: var(--paper); border: 1px solid var(--ink-2); border-radius: 6px; }
select { font-family: var(--f-body); font-weight: 400; appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23878c99' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; }
input[type=text], select { caret-color: var(--ink); }
.btn:disabled { background: var(--paper); color: var(--ink-3); border-style: solid; border-color: var(--rule); opacity: .6; cursor: not-allowed; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
input[type=text]:focus, select:focus { border-width: 2px; padding-left: 11px; }
.inrow input[type=text] { max-width: 9rem; }
input[type=file] { font: 400 1rem var(--f-body); max-width: 100%; }
.unit { color: var(--ink-2); font-size: 1rem; }
.hint { font-size: .875rem; color: var(--ink-2); margin: 4px 0 0; }
.rg { width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.rg::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--ink-3); }
.rg::-moz-range-track { height: 6px; border-radius: 3px; background: var(--ink-3); }
.rg::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.rg::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--block); border: 2px solid var(--ink); }
.rg::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--block); border: 2px solid var(--ink); }
.err { color: var(--mark); font-weight: 600; margin: 8px 0 0; padding: 8px 12px 8px 36px; position: relative; border: 1px solid var(--mark); border-radius: 6px; background: var(--paper); }
.err::before { content: "!"; position: absolute; left: 10px; top: 8px; width: 18px; height: 18px; line-height: 16px; text-align: center; font: 700 .875rem var(--f-body); border: 2px solid var(--mark); border-radius: 50%; }
.note { font-size: .875rem; color: var(--ink-2); margin: 8px 0 0; }
.formrow { display: flex; flex-wrap: wrap; gap: 0 16px; }
.formrow .field { flex: 1 1 8rem; }

/* tool shell */
.tool { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "plan" "out" "rows"; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.tool-form { grid-area: form; } .tool-plan { grid-area: plan; } .tool-out { grid-area: out; } .tool-rows { grid-area: rows; }
.tool-form form { margin: 0; }
@media (min-width: 900px) {
  .tool { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "plan form" "plan out" "rows out"; align-items: start; gap: 16px; }
  .tool-plan, .tool-rows { align-self: stretch; }
  .rows { max-height: 28rem; overflow: auto; scrollbar-width: auto; }
}
.plan { text-align: center; transition: opacity .12s; }
.plan.stale { opacity: .5; }
.plan-svg { display: block; width: 100%; max-width: 40rem; height: auto; margin: 0 auto; max-height: 80vh; }
.plan-svg .gl { stroke: var(--grid); stroke-width: .3; fill: none; opacity: .6; }
.plan-svg .gb { fill: none; stroke: var(--grid); stroke-width: .5; }
.plan-svg .c { fill: var(--block); stroke: var(--block-edge); stroke-width: 1; }
.plan-svg .c2 { fill: var(--block); stroke: var(--block-edge); stroke-width: .6; }
.plan-svg .c3 { fill: var(--paper); stroke: var(--block-edge); stroke-width: 1; }
.plan-svg .mk { stroke: var(--mark); stroke-width: 2px; vector-effect: non-scaling-stroke; fill: none; stroke-linecap: round; paint-order: stroke; }
@media (max-width: 719px) {
  .pagehead { padding-top: 16px; padding-bottom: 8px; }
  .pagehead h1 { font-size: 2rem; max-width: none; }
  .lede { font-size: 1rem; line-height: 1.45; margin-top: 8px; }
  .tool { margin-top: 8px; }
  .field { margin-bottom: 12px; }
}
.plan-svg .lb { font: 500 7.5px var(--f-mono); fill: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .plan.fresh .cells { animation: fade .18s cubic-bezier(.16, 1, .3, 1); } }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.plan-table { margin: 0 auto; border-collapse: collapse; font-family: var(--f-mono); font-size: .8125rem; }
.plan-table td { min-width: 2.4em; height: 2.4em; text-align: center; border: 1px solid var(--grid); padding: 0 2px; }
.plan-table td.st { background: var(--block); color: var(--on-block); border-color: var(--block-edge); font-weight: 600; }
.plan-table td.pil { background: var(--paper); color: var(--mark); font-weight: 700; border: 2px solid var(--mark); }
.plan-table small { font-size: .7em; font-weight: 400; }
.plan:has(.plan-table) { overflow: auto; }

.results { margin: 0; }
.res { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.res dt { color: var(--ink-2); font-size: 1rem; }
.res dd { margin: 0; text-align: right; }
.res .num { font-size: 1.5rem; }
.res:first-child { padding-bottom: 12px; }
.res:first-child .num { font-size: var(--t-result); line-height: 1; }
.tool-out .btn { margin-top: 16px; }
.rowsbox summary { font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.rows.scrolls { background: linear-gradient(var(--paper) 30%, transparent) top / 100% 20px local no-repeat, linear-gradient(transparent, var(--paper) 70%) bottom / 100% 20px local no-repeat,
  linear-gradient(var(--rule), transparent) top / 100% 8px scroll no-repeat, linear-gradient(transparent, var(--rule)) bottom / 100% 8px scroll no-repeat; }
.layerrow { display: flex; align-items: center; gap: 8px; }
.layerrow .rg, .layerrow input { flex: 1 1 auto; min-width: 0; width: auto; }
.step { padding: 0 12px; flex: none; }
.ends { display: flex; justify-content: space-between; margin: 0; font-family: var(--f-mono); }
.zoomctl { display: flex; gap: 8px; margin-bottom: 12px; }
.zoomctl .btn { flex: 0 0 auto; min-width: 44px; padding: 0 14px; }
.zoomctl .btn[data-zoom=fit] { margin-left: auto; }
.plan.zoomed { overflow: auto; max-height: 80vh; text-align: left; overscroll-behavior: contain; }
.plan.zoomed .plan-svg { width: calc(100% * var(--z, 1)); max-width: none; max-height: none; margin: 0; }
.plankey { margin: 12px 0 0; text-align: left; }
.sw.y { background: var(--block); }
.copybox { display: block; width: 100%; margin-top: 8px; font: 400 .875rem/1.5 var(--f-mono); color: var(--ink); background: var(--paper); border: 1px solid var(--ink-2); border-radius: 6px; padding: 8px 12px; }
.rows { font-family: var(--f-mono); font-size: .875rem; font-weight: 400; line-height: 1.75rem; margin: 8px 0 0; padding-left: 0; list-style: none; }
.rows li { padding: 0; border-bottom: 1px solid var(--rule); }
.layerctl { margin-bottom: 16px; }
.layerctl label { display: block; font-weight: 600; font-family: var(--f-mono); font-size: .9375rem; }
.layerctl input { width: 100%; height: 44px; }
.layerctl input { background: transparent; -webkit-appearance: none; appearance: none; }
.layerctl input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--ink-3); }
.layerctl input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--ink-3); }
.layerctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--block); border: 2px solid var(--ink); }
.layerctl input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--block); border: 2px solid var(--ink); }

/* prose and guide */
.prose { max-width: 44rem; }
.prose, .guide { overflow-wrap: break-word; }
.prose p, .guide p { text-wrap: pretty; }
.guide { max-width: 44rem; margin-top: calc(var(--sec) * .75); }
.guide > h2:first-child { margin-top: 0; }
.prose > h2:first-child { margin-top: 24px; }
.guide section + section { margin-top: 0; }
.tablewrap { overflow-x: auto; padding: 8px; margin: 0 0 1.5em; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
td.n, th.n { text-align: right; }
.sizes thead th:not(:first-child) { text-align: right; }
.sizes td, .sizes th { font-variant-numeric: tabular-nums; }
thead th { font-weight: 600; background: var(--sheet); }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 719px) { tbody th:first-child { position: sticky; left: 0; background: var(--paper); } }
.sizes { min-width: 20rem; }
.sw { display: inline-block; width: 1em; height: 1em; border: 1px solid var(--ink); vertical-align: -2px; }
.hex { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); }
.bn { max-width: 11rem; min-height: 36px; font-family: var(--f-body); }
.fig { margin: 24px 0; max-width: 28rem; }
.fig .plan-svg { max-height: none; }
.fig figcaption { font-size: .875rem; color: var(--ink-2); margin-top: 8px; }
.figrow { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: 56rem; }
.callout { background: var(--block-tint); border: 1px solid var(--block-edge); border-radius: 6px; padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.disc-note { font-size: .9375rem; color: var(--ink-2); margin-top: 32px; }
details.faq { border-bottom: 1px solid var(--rule); margin: 0; }
details.faq summary { cursor: pointer; font-weight: 600; padding: 12px 32px 12px 0; list-style: none; position: relative; min-height: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center/100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 100% no-repeat; }
details.faq[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center/100% 2px no-repeat; }
details.faq > div { padding: 0 0 12px; }

/* article layout */
.art-grid { display: block; }
.toc-m { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 16px; margin: 0 0 24px; }
.toc-m summary { font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.toc h2 { font-size: 1rem; margin: 0 0 8px; }
.toc ol, .toc-m ol { padding-left: 1.2em; margin: 8px 0; font-size: .9375rem; }
.gutter { display: none; }
.gutter-slot { display: none; }
@media (min-width: 1100px) {
  .art-grid { display: grid; grid-template-columns: minmax(0, 44rem) 18rem; gap: 64px; }
  .toc-m { display: none; }
  .gutter { display: block; }
  .toc { position: sticky; top: 16px; }
}
.related { margin: var(--sec) 0 48px; }
.related h2 { margin-top: 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { display: block; height: 100%; padding: 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none; }
.card { transition: border-color .12s, box-shadow .12s; }
.card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.card-t { display: block; font: 700 1.125rem/1.25 var(--f-head); margin-bottom: 6px; text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: 3px; }
.card-s { display: block; font-size: .9375rem; color: var(--ink-2); }
.card-m { display: block; font-size: .875rem; color: var(--ink-2); margin-top: 8px; }

/* chart pages */
.chart { margin: 32px 0; }
.chart .plan-svg { max-width: 26rem; margin: 0; }
.lens { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; padding: 0; font-family: var(--f-mono); font-size: .9375rem; }
.lens li { counter-increment: r; }
.lens li::before { content: counter(r) ": "; color: var(--ink-3); }
.lens { counter-reset: r; }

/* slots: empty by default, no label, border or background while hidden */
.slot { margin: 24px auto; text-align: center; font-size: .875rem; color: var(--ink-3); }
.slot[data-filled] { border: 1px solid var(--rule); max-width: 336px; min-height: 250px; padding: 4px; }
.slot[data-filled]::before { content: "Advertisement"; display: block; font-size: .875rem; color: var(--ink-3); }
.slot[data-slot="guide-mid"][data-filled] { min-height: 280px; }
.slot[data-slot="gutter"][data-filled] { min-height: 600px; width: 300px; position: sticky; top: 16px; }
.slot[data-slot="affiliate-note"][data-filled] { min-height: 0; max-width: 44rem; text-align: left; }

/* footer */
.site-foot { margin-top: var(--sec); border-top: 1px solid var(--rule); padding: 32px 0 48px; background: var(--paper); }
.foot-cols { display: grid; gap: 16px 24px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
@media (max-width: 719px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .site-foot ul { columns: 2; column-gap: 24px; }
  .foot-cols > div:not(:first-child) ul { columns: 1; }
  .site-foot li a { padding: 4px 0; min-height: 32px; }
  .disclaimer { border-top: 1px solid var(--rule); padding-top: 16px; }
}
.site-foot h2 { font-size: 1rem; margin: 0 0 8px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-block; padding: 6px 0; }
.disclaimer { margin: 24px 0 8px; font-size: .9375rem; color: var(--ink-2); max-width: 44rem; }

@media print { .zoomctl, .layerrow .step { display: none !important; } }
noscript .note { margin: 8px 0; }

@media print {
  .site-head, .site-foot, .slot, .toc, .toc-m, .gutter, .related, .skip, .pagehead .lede, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .chart { break-inside: avoid; page-break-inside: avoid; }
  .chart .plan-svg { max-width: 14cm; }
  .plan-svg .gl { stroke: #888; } .plan-svg .c { fill: #ddd; stroke: #000; }
  a { color: #000; text-decoration: none; }
}

/* disclosure chevrons, layer picker */
.rowsbox summary, .toc-m summary { position: relative; padding-right: 28px; }
.rowsbox summary::after, .toc-m summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s ease-out; }
.rowsbox[open] > summary::after, .toc-m[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.rowsbox summary::-webkit-details-marker, .toc-m summary::-webkit-details-marker { display: none; }
.layerpick { display: flex; flex-wrap: wrap; gap: 6px; }
.layerpick li { border: 0; }
.layerpick .pick { min-height: 44px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-2); border-radius: 6px; cursor: pointer; }
.layerpick .pick[aria-current] { background: var(--block); color: var(--on-block); border-color: var(--ink); font-weight: 600; }
.linkbtn { min-height: 44px; padding: 0 4px; font: inherit; font-size: .9375rem; color: var(--link, var(--ink)); background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* shape tabs: links to the sibling generators */
.shapetabs { margin-top: 12px; }
.shapetabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--rule); }
.shapetabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.shapetabs a:hover { border-bottom-color: var(--grid); }
.shapetabs a[aria-current] { border-bottom-color: var(--block); }

/* calculator: inputs left, results right */
@media (min-width: 900px) { .tool.calc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "form out"; } }
.tool-out .btn + .btn, .tool-out .btn + #copy-status + .btn { margin-left: 8px; }
.tool-next { margin: 16px 0 0; }

/* footer groups */
.site-foot li a { text-decoration-thickness: 1px; }
.site-foot li a:hover, .site-foot li a:focus-visible { text-decoration-thickness: 3px; }
@media (max-width: 719px) { .site-foot ul { columns: 1; } .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:first-child { grid-column: auto; } }
