/* The crumb line and "Near this" (toolbox/_pages/pages.mjs), on every tool page and on the hubs; self-contained, so a
   tool's own styles never need to know them. Two looks, one set of rules: .bn-dark (the template's) and .bn-pear (kids). */
.bn-dark { --bn-ink: #f1f3ea; --bn-subtle: #adb8a7; --bn-muted: #8b9a87; --bn-line: #34413a; --bn-panel: #151c17; --bn-pear: #d8f697; --bn-pear-ink: #192310; }
.bn-pear { --bn-ink: #192310; --bn-subtle: #3a4a2a; --bn-muted: #5f6f4f; --bn-line: #0f1311; --bn-panel: #ffffff; --bn-pear: #d8f697; --bn-pear-ink: #192310; }
.bn-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font: 700 12px/1.2 Figtree, "Avenir Next", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--bn-muted); }
.bn-crumb a { color: var(--bn-subtle); text-decoration: none; }
.bn-dark.bn-crumb a:first-child { color: var(--bn-pear); }
.bn-pear.bn-crumb a:first-child { color: var(--bn-ink); }
.bn-crumb i { font-style: normal; opacity: .6; }
.bn-near { display: grid; gap: 12px; padding: 16px; margin-top: 32px; background: var(--bn-panel); color: var(--bn-ink); text-align: left; }
.bn-dark.bn-near { border: 1px solid var(--bn-line); border-radius: 18px; }
.bn-pear.bn-near { border: 2.5px solid #0f1311; box-shadow: 6px 6px 0 #0f1311; }
.bn-near h3 { font: 700 12px/1 Figtree, "Avenir Next", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--bn-muted); margin: 0; }
.bn-near .l { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-near .l a { font: 700 14px/1.2 Figtree, "Avenir Next", system-ui, sans-serif; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--bn-line); color: var(--bn-ink); text-decoration: none; overflow-wrap: anywhere; }
.bn-pear.bn-near .l a { border-radius: 0; border-width: 2px; box-shadow: 3px 3px 0 #0f1311; background: #fff; }
.bn-near .l a.fam { background: var(--bn-pear); color: var(--bn-pear-ink); border-color: var(--bn-pear); }
.bn-pear.bn-near .l a.fam { border-color: #0f1311; }
.bn-near .l a.fam::after, .bn-near .l a.hub::after { content: " ›"; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font: 700 13px/1.4 Figtree, "Avenir Next", system-ui, sans-serif; color: var(--bn-muted); }
.langs a { color: var(--bn-subtle); text-decoration: underline; text-underline-offset: 2px; }
.langs span { color: var(--bn-ink); }
.bn-by { margin: 0; font: 600 13px/1.4 Figtree, "Avenir Next", system-ui, sans-serif; color: var(--bn-muted); }
.bn-by a { color: var(--bn-subtle); text-decoration: underline; text-underline-offset: 2px; }
.bn-ask { margin: 0; font: 700 14px/1.4 Figtree, "Avenir Next", system-ui, sans-serif; }
.bn-ask a { color: var(--bn-ink); text-decoration: underline; text-underline-offset: 3px; }
.bn-tech { margin: 24px 0 0; font: 500 13px/1.5 Figtree, "Avenir Next", system-ui, sans-serif; color: var(--bn-subtle); text-align: left; }
.bn-tech a { color: var(--bn-subtle); text-decoration: underline; text-underline-offset: 2px; }
.bn-checked { margin: 24px 0 0; font: 500 13px/1.5 Figtree, "Avenir Next", system-ui, sans-serif; color: var(--bn-subtle); text-align: left; }
.bn-tech + .bn-checked { margin-top: 4px; }
.bn-bench { margin: 8px 0 0; font: 500 13px/1.5 Figtree, "Avenir Next", system-ui, sans-serif; color: var(--bn-subtle); text-align: left; }
.bn-bench a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bn-method { margin-top: 32px; color: var(--bn-ink); text-align: left; }
.bn-method h2 { font: 800 20px/1.2 Figtree, "Avenir Next", system-ui, sans-serif; margin: 0 0 12px; }
.bn-method dl { display: grid; gap: 4px 16px; margin: 0; }
.bn-method dt { font: 700 12px/1.3 Figtree, "Avenir Next", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--bn-muted); margin-top: 8px; }
.bn-method dd { margin: 0; font: 400 16px/1.5 Figtree, "Avenir Next", system-ui, sans-serif; color: var(--bn-ink); }
/* "Found what you came for?" on the grown-ups' hubs, family pages and collections (pages.mjs found()). */
.bn-found { display: grid; gap: 10px; justify-items: center; text-align: center; margin-top: 24px; padding: 18px 16px; border: 1px solid var(--bn-line); border-radius: 18px; color: var(--bn-ink); }
.bn-found [hidden] { display: none !important; }
.bn-found .q { font: 700 17px/1.3 Figtree, "Avenir Next", system-ui, sans-serif; }
.bn-found .taps { display: flex; gap: 10px; justify-content: center; }
.bn-found button { font: 700 16px/1 Figtree, "Avenir Next", system-ui, sans-serif; min-height: 44px; min-width: 96px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--bn-pear); background: none; color: var(--bn-pear); cursor: pointer; }
.bn-found form { display: grid; gap: 10px; justify-items: center; width: min(100%, 360px); }
.bn-found label { display: grid; gap: 6px; width: 100%; text-align: left; font: 400 14px/1.4 Figtree, "Avenir Next", system-ui, sans-serif; color: var(--bn-subtle); }
.bn-found input { font: 400 16px/1.4 Figtree, "Avenir Next", system-ui, sans-serif; color: var(--bn-ink); background: var(--bn-panel); border: 1px solid var(--bn-line); border-radius: 12px; min-height: 44px; padding: 0 12px; width: 100%; }
.bn-found .kept, .bn-found .done { font: 400 13px/1.4 Figtree, "Avenir Next", system-ui, sans-serif; color: var(--bn-muted); }
.bn-found .done { font-size: 15px; color: var(--bn-ink); }
/* The hubs and the family pages (toolbox/_pages/pages.mjs), from the drawing prototypes/design-2026-10/toolbox.html:
   one page, two looks as a token swap on the body (.bn-dark, the tool template's; .bn-pear, the kids site's). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/site/fonts/bricolage-grotesque-latin.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/site/fonts/figtree-latin.woff2) format("woff2"); }
:root { --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif; --body: Figtree, "Avenir Next", system-ui, sans-serif; }
body.bn-dark { color-scheme: dark; --bg: #0f1311; --panel: #1b241c; --coral: #ff8b6a; --ice: #9cc8ff; }
body.bn-pear { color-scheme: light; --bg: #d8f697; --panel: #ffffff; --coral: #ff8b6a; --ice: #9cc8ff; --sun: #ffd84a; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--bn-ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--bn-pear); outline-offset: 3px; }
.bn-pear :focus-visible { outline: 3px solid #0f1311; }
.in { width: 100%; max-width: 720px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
/* the header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.bn-dark .top { border-bottom: 1px solid #ffffff0d; }
.mark { font: 800 22px/1 var(--display); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 2px; }
.mark small { font: 600 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--bn-muted); }
.bn-pear .mark { text-transform: uppercase; align-items: center; gap: 10px; }
.stk { display: inline-block; font: 800 11.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px 6px; border: 2px solid #0f1311; box-shadow: 3px 3px 0 #0f1311; transform: rotate(-3deg); background: var(--coral); color: #0f1311; white-space: nowrap; }
.top nav { display: flex; gap: 16px; font-size: 14px; color: var(--bn-subtle); }
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.bn-dark .btn { min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--bn-pear); color: var(--bn-pear-ink); font-weight: 700; font-size: 15px; }
.bn-pear .btn { min-height: 44px; padding: 0 16px; border: 2.5px solid #0f1311; box-shadow: 5px 5px 0 #0f1311; background: var(--coral); color: #0f1311; font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.bn-pear .btn.small { min-height: 38px; padding: 0 12px; font-size: 13px; }
/* the page head */
main { flex: 1; padding-top: 22px; padding-bottom: 36px; display: grid; gap: 18px; align-content: start; }
main > * { min-width: 0; }
.bn-crumb { margin: 0; }
.eyebrow { font: 700 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--bn-muted); }
h1 { font: 800 clamp(34px, 10vw, 44px)/1.02 var(--display); letter-spacing: -0.03em; margin: 4px 0 0; text-wrap: balance; overflow-wrap: anywhere; }
.bn-pear h1 { font-size: clamp(30px, 9vw, 38px); text-transform: uppercase; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--bn-pear); }
.bn-pear h1 em { color: var(--coral); }
.lead { font-size: 17px; color: var(--bn-subtle); margin-top: 8px; max-width: 60ch; }
.bn-pear .lead { font-weight: 600; }
/* The kids hubs' age line, for parents and child-safe directories (fragFINN looks for it on the page). */
.hub-age { font-size: 15px; font-weight: 700; margin-top: 10px; max-width: 60ch; }
/* The intro past its first paragraph: who made it, why, what it is (docs/specs/2026-10-28-hub-intros.md). */
.intro { font-size: 16px; color: var(--bn-subtle); margin-top: 14px; max-width: 62ch; display: grid; gap: 12px; }
.lead a, .intro a { color: inherit; text-decoration: underline; }
.how h2 { font: 800 22px/1.1 var(--display); letter-spacing: -0.02em; color: var(--bn-ink); margin: 14px 0 0; }
.how ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
/* The longer answers under the list (`guide`): its own h2s, lists and tables. */
.guide h2 { font: 800 22px/1.1 var(--display); letter-spacing: -0.02em; color: var(--bn-ink); margin: 18px 0 0; }
.guide h3 { font: 700 17px/1.2 var(--display); color: var(--bn-ink); margin: 8px 0 0; }
.guide ol, .guide ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.guide table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.guide th, .guide td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--bn-line, rgba(127, 127, 127, 0.3)); vertical-align: top; }
.hub-photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 340px; border-radius: 18px; }
.bn-pear .hub-photo { border: 2.5px solid #0f1311; box-shadow: 6px 6px 0 var(--bn-pear); }
/* Mika's circle beside the page's line, the breath only (rule 4). Copied from toolbox/_template/style.css, the Mika block's
   rest-only part (handed over by the thread "Mika in the circle"); keep the two alike. */
.mika-line { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 12px; }
.mika-line > p { flex: 1; min-width: 0; margin: 0; }
/* An intro's first paragraph runs around the circle (display: flow-root keeps the float inside the row). */
.mika-line.wraps { display: flow-root; }
.mika-line.wraps > .mika { float: left; margin: 4px 14px 6px 0; }
.mika-says { font-size: 15px; color: var(--bn-muted); max-width: 60ch; }
.mika { --d: 40px; --ring: var(--bn-pear); position: relative; flex: none; width: var(--d); height: var(--d); }
.mika::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2a2420; box-shadow: 0 0 0 2px var(--ring); }
.mika i { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.mika i img { position: absolute; left: -37.5%; top: -4%; width: 175%; height: auto; max-width: none; animation: mika-breath 2.1818s ease-in-out infinite; }
@keyframes mika-breath { 0%, 100% { transform: translateY(calc(var(--d) * .125)); } 50% { transform: translateY(calc(var(--d) * .05)); } }
.mika.is-hub { --d: 64px; }
.mika.is-kids { --ring: #0f1311; }
@media (prefers-reduced-motion: reduce) { .mika i img { animation: none; transform: translateY(calc(var(--d) * .0875)); } }
.words { display: grid; gap: 10px; }
.words p { max-width: 62ch; }
/* the door to the app */
.door { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; }
.door > span { min-width: 0; }
.bn-dark .door { background: var(--panel); border: 1px solid var(--bn-line); border-radius: 18px; }
.bn-pear .door { background: #0f1311; color: #f1f3ea; border: 2.5px solid #0f1311; box-shadow: 6px 6px 0 var(--bn-pear); }
.door b { font: 800 17px/1.15 var(--display); display: block; }
.door small { font-size: 13px; color: var(--bn-subtle); display: block; margin-top: 3px; }
.bn-pear .door small { color: #adb8a7; }
.door .dog { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; position: relative; background: #2a2420; border: 2.5px solid var(--bn-pear); flex: none; }
.door .dog img { position: absolute; width: 170%; left: -37%; top: -4%; max-width: none; }
/* groups and rows */
.grp { display: grid; gap: 8px; scroll-margin-top: 16px; }
.grp header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; }
.grp h2 { font: 800 22px/1 var(--display); letter-spacing: -0.02em; margin: 0; }
.bn-pear .grp h2 { text-transform: uppercase; font-size: 24px; }
.grp header a { font: 700 13px/1 var(--body); color: var(--bn-subtle); white-space: nowrap; }
.bn-dark .grp header a { color: var(--bn-pear); }
.grp header a::after { content: " ›"; }
.rows { display: grid; gap: 8px; }
.r { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; }
.r > span { min-width: 0; }
.bn-dark .r { background: var(--panel); border: 1px solid var(--bn-line); border-radius: 14px; }
.bn-pear .r { background: #fff; border: 2.5px solid #0f1311; box-shadow: 4px 4px 0 #0f1311; }
.r b { font: 700 15.5px/1.2 var(--body); display: block; }
.bn-pear .r b { font: 800 16px/1.2 var(--display); }
.r small { font-size: 13px; color: var(--bn-muted); display: block; margin-top: 2px; }
.bn-pear .r small { color: var(--bn-subtle); }
.r .meta { display: block; margin-top: 2px; font-weight: 700; }
.r .need { font: 700 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--bn-muted); border: 1px solid var(--bn-line); border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.bn-pear .r .need { border-width: 2px; border-radius: 0; color: var(--bn-ink); background: var(--bn-pear); }
.r .need.ear { color: var(--ice); border-color: color-mix(in srgb, var(--ice) 50%, transparent); }
.bn-pear .r .need.ear { background: var(--ice); color: var(--bn-ink); border-color: #0f1311; }
.r.more { grid-template-columns: 1fr; text-align: center; color: var(--bn-subtle); font-weight: 700; font-size: 14px; }
.bn-dark .r.more { background: transparent; border-style: dashed; }
.bn-pear .r.more { background: transparent; box-shadow: none; border-style: dashed; }
.bn-near { margin-top: 10px; }
/* the footer */
.foot { padding-top: 16px; padding-bottom: 22px; font-size: 13px; color: var(--bn-muted); display: grid; gap: 8px; }
.bn-dark .foot { border-top: 1px solid #ffffff0d; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { text-decoration: underline; text-underline-offset: 2px; }
.foot nav a { text-decoration: none; }
.bn-pear .foot nav a { font-weight: 700; color: var(--bn-ink); }
.bn-dark .r.ask { border-color: color-mix(in srgb, var(--bn-pear) 55%, transparent); }
