@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root { color-scheme: light; --ink: #192a24; --forest: #102f26; --green: #376954; --mint: #d2f277; --paper: #f8f8f1; --cream: #edeee4; --line: #d9dfd1; --muted: #626f66; --radius: 12px; --button-ink: #f8f8f1; --art: #e7ebdc; --footer: #e9ede1; --warning: #f1ead8; --inline-code: #e7ebdf; --code-ink: #254c36; --starter: #e9f0df; --starter-line: #b7cba4; }
:root[data-theme="dark"] { color-scheme: dark; --ink: #edf3e8; --forest: #234e3b; --green: #a8d478; --paper: #101b17; --cream: #1c2b22; --line: #354739; --muted: #bcc8b8; --art: #233229; --footer: #19281f; --warning: #342c1c; --inline-code: #233629; --code-ink: #cfecb5; --starter: #213b29; --starter-line: #506d42; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; --ink: #edf3e8; --forest: #234e3b; --green: #a8d478; --paper: #101b17; --cream: #1c2b22; --line: #354739; --muted: #bcc8b8; --art: #233229; --footer: #19281f; --warning: #342c1c; --inline-code: #233629; --code-ink: #cfecb5; --starter: #213b29; --starter-line: #506d42; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand { font-family: "Space Grotesk", sans-serif; }
h1 { font-size: clamp(3.8rem, 6.2vw, 6.3rem); line-height: 1.02; letter-spacing: -.065em; font-weight: 500; margin-bottom: 30px; }
h2 { font-size: clamp(2.5rem, 4.1vw, 4.2rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 500; }
h3 { letter-spacing: -.035em; }
em { font-style: normal; color: var(--green); }
p { line-height: 1.75; }
::selection { background: var(--mint); color: var(--forest); }
:focus-visible { outline: 3px solid #64852d; outline-offset: 5px; }
.page-width { max-width: 1440px; margin-inline: auto; padding-inline: clamp(24px, 6vw, 96px); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--mint); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--cream); font-size: .7rem; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle > span:first-child { font-size: 1rem; }
.theme-toggle:hover { border-color: var(--green); }
.site-header { min-height: 104px; max-width: 1600px; margin: auto; padding: 20px clamp(24px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.brand small { display: block; font-size: .5rem; letter-spacing: .19em; margin-top: 5px; font-weight: 500; }
.brand-mark { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: .82rem; letter-spacing: -.07em; flex-shrink: 0; }
.brand-mark > span { color: var(--green); }
.site-header nav { display: flex; gap: clamp(18px, 2.6vw, 40px); align-items: center; }
.site-header nav a { font-size: .86rem; text-decoration: none; color: var(--muted); }
.site-header nav a[aria-current] { color: var(--ink); font-weight: 700; }
.site-header nav a:hover, .text-link:hover { color: var(--green); }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 32px; padding: 17px 23px; border: 1px solid var(--forest); border-radius: 6px; background: var(--forest); color: var(--button-ink); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .15s, transform .15s; }
.button:hover { background: #27513e; transform: translateY(-2px); }
.button span { font-size: 1.2rem; font-weight: 400; }
.button-small { padding: 11px 16px; font-size: .8rem; gap: 20px; }
.button-light { background: var(--mint); color: #102f26; border-color: var(--mint); }
.button-light:hover { background: #e1ffa1; }
.eyebrow { font: 600 .68rem "DM Sans", sans-serif; letter-spacing: .13em; color: var(--green); margin-bottom: 25px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 100%; background: var(--green); margin-right: 8px; flex-shrink: 0; }
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.85; max-width: 550px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding-block: 90px 100px; }
.hero-copy h1 em { position: relative; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-block: 30px 20px; flex-wrap: wrap; }
.text-link { text-decoration: none; font-weight: 600; font-size: .9rem; }
.text-link span { margin-left: 12px; }
.microcopy { color: var(--muted); font-size: .73rem; margin-top: 20px; }
.hero-art { position: relative; padding: 36px 22px 12px; border-radius: 22px; background: var(--art); background-image: radial-gradient(#9cae8c55 .8px, transparent .8px); background-size: 17px 17px; }
.art-label { font-size: .6rem; letter-spacing: .13em; margin-bottom: 28px; color: var(--green); }
.screen-preview { display: block; overflow: hidden; border: 9px solid #1f2b25; background: #122b41; border-radius: 11px; box-shadow: 0 18px 34px #102f2625; }
.screen-stand { width: 140px; height: 29px; margin: auto; border-bottom: 5px solid #26372b; background: linear-gradient(90deg, transparent 32%, #314332 32%, #314332 68%, transparent 68%); }
.hardware-note { display: flex; align-items: center; gap: 14px; margin: 26px -5px 0; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px #102f2608; }
.hardware-note b { display: block; font-size: .77rem; }
.hardware-note div > span { display: block; font-size: .62rem; margin-top: 6px; color: var(--muted); }
.mini-board { width: 48px; height: 37px; border-radius: 4px; background: #3d6a43; display: grid; place-items: center; border-top: 5px dotted #d4c86e; flex-shrink: 0; transform: rotate(-8deg); }
.mini-board i { width: 17px; height: 17px; background: #142c22; border: 2px solid #89aa77; }
.note-arrow { margin-left: auto; }
.art-caption { text-align: center; font-size: .59rem; color: var(--muted); margin: 17px 0 0; }
.platform-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; padding: 29px 24px; border-block: 1px solid var(--line); }
.platform-strip span { color: var(--muted); font-size: .59rem; letter-spacing: .1em; }
.platform-strip b { font-family: "Space Grotesk", sans-serif; font-size: .95rem; font-weight: 500; }
.features { padding-block: 95px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 45px; }
.section-heading h2 { margin: 0; }
.section-heading > p { max-width: 320px; color: var(--muted); font-size: .9rem; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-grid article { position: relative; padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff38; }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 9px; font-size: 1.7rem; color: var(--green); }
.feature-number { position: absolute; right: 28px; top: 35px; color: #88957f; font: .65rem monospace; }
.feature-grid h3 { font-size: 1.24rem; margin: 34px 0 14px; font-weight: 500; }
.feature-grid p { color: var(--muted); font-size: .86rem; margin-bottom: 28px; }
.feature-tag { font-size: .55rem; letter-spacing: .12em; color: var(--green); }
.product-showcase { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: center; padding-block: 0 95px; }
.product-showcase h2 { font-size: clamp(2.3rem, 3.6vw, 3.6rem); }
.product-showcase .lead { font-size: .94rem; }
.admin-screenshot { padding: 10px; background: var(--art); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.admin-screenshot > a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.admin-screenshot figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 7px 7px; font-size: .55rem; letter-spacing: .04em; color: var(--muted); }
.admin-screenshot figcaption a { color: var(--green); }
.room-feature-section { padding-block: 0 95px; }
.room-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.room-feature-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.room-feature-image { display: flex; align-items: center; aspect-ratio: 1.75; background: var(--art); padding: 8px; }
.room-feature-image img { max-height: 100%; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; }
.room-feature-card > div { padding: 26px; }
.room-feature-card h3 { margin: 18px 0 12px; font-size: 1.35rem; font-weight: 500; }
.room-feature-card p { color: var(--muted); font-size: .84rem; }
.room-feature-card .text-link { font-size: .8rem; }
.room-feature-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px; background: var(--forest); color: var(--button-ink); }
.room-feature-cta .eyebrow { color: var(--mint); }
.room-feature-cta h3 { font-size: 2rem; line-height: 1.15; margin-top: 0; }
.room-feature-cta p { color: #c2cdb9; }
.room-feature-cta .button { font-size: .78rem; gap: 16px; padding-inline: 17px; margin-top: 12px; }
.build-section { background: var(--forest); color: var(--button-ink); padding-block: 85px; }
.build-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; align-items: center; }
.build-section em, .build-section .eyebrow { color: var(--mint); }
.build-section .lead, .build-section .microcopy { color: #bdcab8; }
.build-section .button { margin-top: 20px; }
.topology-figure { background: #17392d; border: 1px solid #537348; border-radius: var(--radius); padding: 14px; }
.topology-figure figcaption { font-size: .5rem; letter-spacing: .1em; color: #becbb2; padding: 4px 12px 10px; text-align: center; }
.start-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-block: 95px; align-items: center; }
.start-section p:not(.eyebrow) { color: var(--muted); max-width: 440px; }
.start-section h2 { margin-bottom: 0; }
.donate-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-block: 65px 85px; border-top: 1px solid var(--line); }
.donate-section > div > p:not(.eyebrow) { color: var(--muted); max-width: 510px; font-size: .91rem; }
.kofi-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.kofi-card iframe { display: block; border: none; width: 100%; padding: 4px; background: #f9f9f9; border-radius: 7px; }
.coming-soon { display: inline-block; padding: 13px 18px; border: 1px solid #b2bda5; border-radius: 6px; color: var(--green); background: var(--cream); font-size: .65rem; letter-spacing: .12em; }
.site-footer { display: flex; justify-content: space-between; align-items: start; gap: 50px; padding: 55px clamp(24px, 6vw, 96px); background: var(--footer); border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); font-size: .75rem; margin: 24px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { font-size: .78rem; text-decoration: none; }
.footer-donate { align-self: flex-start; margin-top: 4px; }
.site-footer .footer-note { margin-top: 0; text-align: right; font-size: .65rem; }
.install-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; padding-block: 80px; align-items: center; }
.install-note { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.note-symbol { font-size: 2rem; color: var(--green); }
.install-note h2 { font-size: 1.4rem; margin-top: 24px; }
.install-note p { font-size: .86rem; color: var(--muted); }
.install-note > span:last-child { font-size: .55rem; letter-spacing: .11em; color: var(--green); }
.platform-section { padding-bottom: 80px; }
.compact h2 { font-size: 2rem; }
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.platform-card { display: block; position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s; }
.platform-card:hover { border-color: var(--green); transform: translateY(-3px); }
.platform-card .eyebrow { display: block; font-size: .59rem; }
.platform-symbol { display: inline-block; font-size: 2rem; color: var(--green); margin: 5px 0 20px; }
.platform-card h3 { font-size: 1.9rem; font-weight: 500; margin-bottom: 13px; }
.platform-card h3 span { float: right; color: var(--green); }
.platform-card p { max-width: 400px; font-size: .87rem; color: var(--muted); }
.platform-card small { display: block; font-size: .67rem; border-top: 1px solid var(--line); padding-top: 19px; color: var(--muted); }
.platform-card-pi { background: var(--forest); color: var(--button-ink); }
.platform-card-pi .eyebrow, .platform-card-pi .platform-symbol, .platform-card-pi h3 span { color: var(--mint); }
.platform-card-pi p, .platform-card-pi small { color: #c2cdb9; }
.platform-card-pi small { border-color: #4b6551; }
.network-intro { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 60px; padding-block: 65px; background: var(--cream); }
.network-intro p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.network-intro figure { background: var(--forest); border-radius: var(--radius); padding: 12px; }
.faq-section { padding-block: 85px; max-width: 1040px; }
details { border-bottom: 1px solid var(--line); padding-block: 20px; }
summary { font-weight: 600; cursor: pointer; font-size: .94rem; padding-right: 20px; }
details p { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
.guide-hero { padding-block: 50px 65px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; font-size: .8rem; color: var(--muted); text-decoration: none; margin-bottom: 45px; }
.guide-hero h1 { font-size: clamp(3.4rem, 6vw, 5.7rem); }
.guide-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .65rem; letter-spacing: .03em; }
.guide-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 65px; padding-block: 55px 90px; }
.guide-nav { position: sticky; top: 25px; align-self: start; max-height: calc(100vh - 50px); overflow-y: auto; }
.guide-nav nav { display: flex; flex-direction: column; gap: 16px; }
.guide-nav nav a { text-decoration: none; color: var(--muted); font-size: .75rem; }
.guide-nav nav a:hover { color: var(--green); }
.source-link { display: block; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; font-size: .68rem; color: var(--green); }
.guide-body { max-width: 860px; min-width: 0; }
.guide-body > section { padding-block: 12px 45px; margin-bottom: 25px; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
.guide-body h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: 24px; }
.guide-body h3 { font-size: 1.25rem; margin-top: 30px; }
.guide-body p { font-size: .95rem; color: var(--muted); }
.guide-body strong, .guide-body b { color: var(--ink); }
.step-number { display: inline-block; padding: 8px 11px; background: var(--cream); color: var(--green); font: .8rem monospace; border-radius: 6px; margin-bottom: 22px; }
.callout { border-left: 3px solid var(--green); border-radius: 0 7px 7px 0; background: var(--cream); padding: 23px 26px; margin-block: 24px; }
.callout p { font-size: .85rem; margin: 8px 0 0; }
.callout.warning { border-color: #9c782e; background: var(--warning); }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
p code { padding: 2px 5px; background: var(--inline-code); color: var(--code-ink); border-radius: 3px; }
.code-block { background: #142d24; color: #e2ebd5; border: 1px solid #3b5442; border-radius: 8px; overflow: hidden; margin-block: 23px; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 9px 17px; border-bottom: 1px solid #3b5442; background: #1e382b; color: #b7c5a9; font: .65rem monospace; }
.copy-button { padding: 4px 9px; border-radius: 4px; border: 1px solid #6e8561; background: transparent; color: #e5efdb; font-size: .65rem; cursor: pointer; }
.copy-button:hover { background: #35533c; }
.copy-button:focus-visible { outline-color: var(--mint); }
pre { overflow-x: auto; margin: 0; padding: 21px; line-height: 1.75; font-size: .85rem; }
pre code { overflow-wrap: normal; font-size: inherit; }
.copy-status { display: block; font-size: .75rem; color: var(--muted); min-height: 1.4em; }
.diagram-card { background: var(--forest); border-radius: 10px; padding: 15px; margin-block: 25px; }
.diagram-card figcaption { color: #c7d2bd; font-size: .7rem; padding: 14px 12px 8px; line-height: 1.6; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 22px; }
.address-grid > * { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; min-width: 0; }
.address-grid small { display: block; margin-bottom: 12px; color: var(--green); font-size: .6rem; letter-spacing: .1em; }
.address-grid code { font-size: .76rem; }
kbd { padding: 3px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; font-size: .8rem; }
.guide-finish { background: var(--cream); padding: 30px; border-radius: var(--radius); }
.guide-finish h2 { margin-top: 20px; }
.source-note { font-style: italic; font-size: .8rem !important; }
.not-found { padding-block: 100px 140px; }
.not-found p { color: var(--muted); }

.help-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 80px; }
.help-guide-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.help-guide-card h2 { font-size: 2rem; }
.help-guide-card p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.help-guide-card .button { margin-top: auto; }
.help-guide-card-wide { grid-column: 1 / -1; }
.operation-steps { padding-left: 22px; color: var(--muted); font-size: .94rem; line-height: 1.8; }
.operation-steps li { padding-left: 5px; margin-bottom: 15px; }
.board-reference-grid, .setting-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.board-reference-grid > div, .setting-guide-grid > div { border: 1px solid var(--line); border-radius: 9px; padding: 22px; }
.board-reference-grid h3, .setting-guide-grid h3 { margin-top: 16px; }
.board-reference-grid p, .setting-guide-grid p { font-size: .85rem; margin-bottom: 0; }
.board-label { font-size: .6rem; letter-spacing: .1em; color: var(--green); }
.numbering-example { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 24px; margin-block: 25px; border: 1px solid var(--line); border-radius: 9px; background: var(--cream); }
.numbering-example small { display: block; color: var(--green); font-size: .55rem; letter-spacing: .06em; margin-bottom: 10px; }
.numbering-example b { font: 500 clamp(1rem, 2vw, 1.5rem) "Space Grotesk", sans-serif; }
.pin-legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 25px 0; padding: 0; font-size: .7rem; color: var(--muted); }
.pin-legend li { display: flex; align-items: center; gap: 8px; }
.pin-gpio { --pin-colour: #b9e781; --pin-text: #e5f5d4; }
.pin-shared { --pin-colour: #e6c36b; --pin-text: #fae9be; }
.pin-power3 { --pin-colour: #efaa68; --pin-text: #ffe4c9; }
.pin-power5 { --pin-colour: #f18686; --pin-text: #ffe1df; }
.pin-ground { --pin-colour: #98aaa3; --pin-text: #dde7e2; }
.pin-reserved { --pin-colour: #c5a5e8; --pin-text: #eadff7; }
.pin-swatch { width: 12px; height: 12px; background: var(--pin-colour); border: 1px solid #20382b44; border-radius: 3px; flex-shrink: 0; }
.pinout-figure { padding: 22px; background: #142d24; color: #e5efda; border: 1px solid #476346; border-radius: 12px; margin-block: 25px; }
.pinout-orientation { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 20px; font-size: .6rem; letter-spacing: .04em; color: #d2f277; }
.pinout-map { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pinout-map caption { text-align: left; color: #bacab2; font-size: .7rem; line-height: 1.6; margin-bottom: 18px; }
.pinout-map th { font-size: .55rem; font-weight: 500; letter-spacing: .04em; color: #bccdb3; padding-bottom: 14px; }
.pinout-map td { padding: 3px 4px; }
.pin-node { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 8px; border: 1px solid #42613e; border-left: 3px solid var(--pin-colour); border-radius: 5px; padding: 10px; background: #203b2b; min-height: 82px; }
.pin-node.pin-even { grid-template-columns: 32px minmax(0, 1fr); border-left: 1px solid #42613e; border-right: 3px solid var(--pin-colour); }
.pin-even .pin-number { grid-column: 1; grid-row: 1; }
.pin-even .pin-info { grid-column: 2; }
.pin-info { min-width: 0; }
.pin-info b { display: block; color: var(--pin-text); font: 600 .88rem "Space Grotesk", sans-serif; }
.pin-info > span { display: block; color: #c4d3b8; font-size: .64rem; line-height: 1.4; margin-top: 4px; }
.pin-info small { display: block; font-size: .48rem; letter-spacing: .04em; color: var(--pin-text); margin-top: 6px; }
.pin-number { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--pin-colour); border-radius: 50%; background: #102a20; color: var(--pin-text); font: 600 .78rem monospace; }
.pin-node[data-physical="1"] .pin-number { border-radius: 2px; }
.pinout-figure figcaption { color: #bbccaf; font-size: .7rem; line-height: 1.6; padding-top: 18px; }
.reference-table-wrap { max-width: 100%; overflow-x: auto; margin-top: 20px; }
.reference-table { width: 100%; border-collapse: collapse; font-size: .8rem; line-height: 1.65; }
.reference-table caption { text-align: left; color: var(--muted); font-size: .72rem; margin-bottom: 16px; }
.reference-table th, .reference-table td { padding: 13px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.reference-table thead th { background: var(--cream); }
.reference-table td { color: var(--muted); }
.starter-pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 24px; }
.starter-pin-grid > div { padding: 20px; border: 1px solid var(--starter-line); border-radius: 8px; background: var(--starter); }
.starter-pin-grid small { display: block; font-size: .5rem; letter-spacing: .08em; color: var(--green); }
.starter-pin-grid b { display: block; margin-block: 10px; font: 500 1.4rem "Space Grotesk", sans-serif; }
.starter-pin-grid span { font-size: .74rem; color: var(--muted); }
.power-reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.power-card { border: 1px solid var(--line); border-top-width: 4px; border-radius: 7px; padding: 18px; }
.power-card h3 { margin-top: 0; }
.power-card b { font-size: .77rem; line-height: 1.7; }
.power-card p { font-size: .8rem; margin: 14px 0 0; }
.power-card-3 { border-top-color: #c48642; }
.power-card-5 { border-top-color: #bd5353; }
.power-card-ground { border-top-color: #738078; }
.wiring-checklist { padding-left: 20px; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.wiring-checklist li { margin-bottom: 12px; }
.colour-example { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; margin-block: 24px; }
.colour-example > span { width: 45px; height: 45px; border-radius: 7px; flex-shrink: 0; }
.colour-navy { background: #102a43; }
.colour-yellow { background: #f6c453; margin-left: auto; }
.colour-example b { font-size: .85rem; }
.colour-example small { display: block; margin-top: 8px; color: var(--muted); font: .7rem monospace; }

@media (min-width: 1500px) { .hero { gap: 100px; } }
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .hero { gap: 35px; }
  .hero-art { padding-inline: 15px; }
  .platform-strip .strip-end { display: none; }
  .build-grid, .start-section, .donate-section, .product-showcase { gap: 45px; }
  .feature-grid article { padding: 22px; }
  .guide-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 35px; }
  .room-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; gap: 18px; }
  .site-header nav { gap: 20px; }
  .site-header nav a { font-size: .76rem; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; }
  .theme-toggle { order: 2; }
  .hero { grid-template-columns: 1fr; padding-block: 55px 65px; gap: 45px; }
  .hero-copy { max-width: 600px; }
  .hero-art { max-width: 560px; width: 100%; justify-self: center; padding: 30px 22px 12px; }
  .platform-strip { gap: 24px; }
  .platform-strip > span:first-child { flex-basis: 100%; text-align: center; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 22px; max-width: 500px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid h3 { margin-top: 25px; }
  .features, .build-section, .faq-section { padding-block: 65px; }
  .build-grid, .start-section, .donate-section, .install-hero, .network-intro, .product-showcase { grid-template-columns: 1fr; gap: 40px; }
  .product-showcase { padding-bottom: 65px; }
  .room-feature-section { padding-bottom: 65px; }
  .start-section { padding-block: 65px; }
  .donate-section { padding-block: 45px 65px; }
  .install-hero { padding-block: 55px; }
  .install-note { max-width: 560px; }
  .guide-layout { grid-template-columns: 1fr; gap: 35px; }
  .guide-nav { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 25px; }
  .guide-nav nav { flex-direction: row; flex-wrap: wrap; gap: 14px 20px; }
  .source-link { border: 0; padding-top: 0; }
  .site-footer { flex-wrap: wrap; }
  .help-guide-grid { grid-template-columns: 1fr; padding-bottom: 55px; }
  .power-reference-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  h1 { font-size: 3.6rem; }
  .site-header { padding: 20px 24px; gap: 16px; }
  .site-header .brand { width: auto; }
  .site-header nav { justify-content: space-between; width: 100%; gap: 12px; }
  .site-header nav a { font-size: .7rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 23px; }
  .hero-actions .text-link { text-align: center; }
  .hero-art { padding-inline: 12px; }
  .screen-preview { border-width: 6px; }
  .hardware-note { padding: 13px; gap: 10px; }
  .hardware-note b { font-size: .68rem; }
  .hardware-note div > span { font-size: .55rem; }
  .platform-strip { gap: 19px; }
  .platform-strip b { font-size: .79rem; }
  .platform-grid, .address-grid { grid-template-columns: 1fr; }
  .platform-card { padding: 26px; }
  .site-footer { gap: 35px; }
  .site-footer .footer-note { text-align: left; flex-basis: 100%; }
  .guide-meta { gap: 14px; }
  .guide-finish, .callout { padding: 22px; }
  pre { padding: 16px; font-size: .77rem; }
  .diagram-card { margin-inline: -10px; padding: 4px; }
  .diagram-card figcaption { padding-inline: 12px; }
  .board-reference-grid, .setting-guide-grid { grid-template-columns: 1fr; }
  .starter-pin-grid { grid-template-columns: repeat(2, 1fr); }
  .starter-pin-grid > div { padding: 16px; }
  .numbering-example { padding: 18px; gap: 10px; }
  .numbering-example small { font-size: .47rem; }
  .pin-legend { grid-template-columns: 1fr; }
  .pinout-figure { padding: 12px 5px; margin-inline: -12px; }
  .pinout-orientation { padding-inline: 7px; font-size: .5rem; }
  .pinout-map th { font-size: .45rem; }
  .pinout-map caption { padding-inline: 7px; }
  .pinout-map td { padding: 3px 2px; }
  .pin-node { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px; padding: 8px 5px; min-height: 85px; }
  .pin-node.pin-even { grid-template-columns: 24px minmax(0, 1fr); }
  .pin-number { width: 24px; height: 24px; font-size: .67rem; }
  .pin-info b { font-size: .75rem; }
  .pin-info > span { font-size: .58rem; }
  .pin-info small { font-size: .43rem; letter-spacing: 0; }
  .pinout-figure figcaption { padding-inline: 7px; }
  .reference-table { min-width: 520px; }
  .colour-example { padding: 14px; gap: 10px; }
  .colour-example > span { width: 30px; height: 40px; }
  .colour-example b { font-size: .75rem; }
  .room-feature-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
