@font-face {
  font-family: "Rethink Sans";
  src: url('/media/rethink-sans-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #17202b;
  --muted: #4e5b6b;
  --soft: #f4f6f9;
  --paper: #fff;
  --line: #e1e6ec;
  --canvas: #f6f7f9;
  --accent: #4339bb;
  --accent-soft: #eceaff;
  --rail: 226px;
  font-family: "Rethink Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 10px; background: var(--paper); }

.icon { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; position: relative; }
.icon::before, .icon::after { content: ''; display: block; position: absolute; }
.icon-home::before { width: 10px; height: 9px; border: 1.5px solid currentColor; border-top: 0; top: 8px; border-radius: 1px; }
.icon-home::after { width: 10px; height: 10px; border: solid currentColor; border-width: 1.5px 0 0 1.5px; transform: rotate(45deg); top: 4px; }
.icon-grid::before { width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 1px; top: 3px; left: 3px; }
.icon-grid::after { width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 1px; top: 3px; right: 3px; box-shadow: 0 8px 0 -1.5px var(--icon-fill, var(--canvas)), 0 8px 0 currentColor, -8px 8px 0 -1.5px var(--icon-fill, var(--canvas)), -8px 8px 0 currentColor; }
.icon-camera::before { width: 15px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-camera::after { width: 5px; height: 5px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-starter::before { width: 14px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-starter::after { content: '>_'; font: 700 .55rem/1 monospace; }
.icon-wifi::before { width: 17px; height: 17px; top: 3px; border: 1.5px solid transparent; border-top-color: currentColor; border-radius: 50%; }
.icon-wifi::after { width: 10px; height: 10px; top: 7px; border: 1.5px solid transparent; border-top-color: currentColor; border-radius: 50%; background: radial-gradient(circle at center 65%, currentColor 0 1.5px, transparent 1.7px); }
.icon-board::before { width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-board::after { width: 5px; height: 5px; border-radius: 1px; background: currentColor; }
.icon-assistant::before { width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid currentColor; transform: rotate(45deg); }
.icon-assistant::after { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.icon-search::before { width: 10px; height: 10px; top: 3px; left: 3px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-search::after { width: 6px; height: 1.5px; top: 13px; left: 11px; transform: rotate(45deg); background: currentColor; }
.icon-arrow { width: 17px; height: 17px; }
.icon-arrow::after { content: '↗'; position: static; font-size: .98em; font-weight: 700; }

.site-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; width: var(--rail); display: flex; flex-direction: column; padding: 24px 16px 22px; background: var(--canvas); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding-inline: 5px; white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 1.24rem; font-weight: 800; letter-spacing: -.038em; }
.brand strong { color: var(--accent); font-weight: inherit; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; background: var(--accent); color: white; }
.site-sidebar nav { display: grid; gap: 5px; margin-top: 27px; }
.site-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 7px; color: #394656; text-decoration: none; white-space: nowrap; font-size: .92rem; font-weight: 650; }
.site-sidebar nav a:is(:hover, [aria-current]) { --icon-fill: var(--accent-soft); background: var(--icon-fill); color: var(--accent); }
.sidebar-footer { display: flex; gap: 16px; margin-top: auto; padding: 28px 11px 0; color: var(--muted); font-size: .84rem; }
.sidebar-footer a, .footer a { text-decoration: none; }
.sidebar-footer a:hover, .footer a:hover { color: var(--accent); text-decoration: underline; }
.site-content { margin-left: var(--rail); }
.shell { max-width: 1370px; width: calc(100% - 64px); margin-inline: auto; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.topbar { min-height: 75px; }
.top-search { display: flex; align-items: center; width: min(100%, 322px); min-width: 0; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); }
.top-search input { flex: 1; border: 0; padding-left: 16px; border-radius: inherit; background: transparent; }
.top-search button { display: grid; place-items: center; border: 0; border-radius: 99px; background: transparent; color: var(--muted); }
.top-action { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--paper); color: var(--accent); text-decoration: none; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.top-action:hover { border-color: var(--accent); }

.hero { isolation: isolate; position: relative; display: flex; align-items: center; min-height: clamp(305px, 29vw, 414px); overflow: hidden; border-radius: 12px; background: #111e35; color: #fff; }
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 59%; height: 100%; object-fit: cover; object-position: center 52%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #111e35 0%, #111e35 33%, #111e35f5 42%, #111e3520 72%, #111e3512); }
.hero-copy { padding: 36px clamp(25px, 4vw, 57px); }
.hero h1 { max-width: 12ch; font-size: clamp(2.8rem, 5.1vw, 5.15rem); font-weight: 780; line-height: 1; letter-spacing: -.06em; }
.hero p { max-width: 37ch; margin-top: 16px; color: #e0e7f5; line-height: 1.58; font-size: clamp(.99rem, 1.45vw, 1.15rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px; background: var(--accent); color: white; text-decoration: none; font-weight: 700; font-size: .9rem; }
.button:hover { background: #342a9d; }
.hero-button { margin-top: 23px; background: #fff; color: #182647; }
.hero-button:hover { background: #eceaff; }
.hero-credit { position: absolute; right: 16px; bottom: 15px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 6px; background: #0e182de6; color: #fff; font-size: .81rem; text-decoration: none; }
.hero-credit:hover { background: #0e182d; text-decoration: underline; }
.hero :focus-visible { outline-color: #fff; }

.home-section, .directory { margin-top: 33px; }
.shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-head h2 { font-size: clamp(1.23rem, 2.1vw, 1.57rem); }
h2 { font-size: 1.24rem; font-weight: 780; letter-spacing: -.024em; }
.section-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); white-space: nowrap; font-size: .86rem; font-weight: 700; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }
#result-count { color: var(--muted); white-space: nowrap; font-size: .87rem; }
#browse { scroll-margin-top: 18px; }
.collection-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.collection-link { display: flex; align-items: center; min-width: 0; gap: 8px; padding: 12px 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.collection-link strong, .collection-link small { display: block; }
.collection-link strong { line-height: 1.22; font-size: .9rem; }
.collection-link small { margin-top: 3px; color: var(--muted); }
.collection-link > .icon { color: var(--accent); }
.collection-link > .icon:last-child { margin-left: auto; }
.collection-link:hover { border-color: #a7a0e4; background: #fbfaff; }
.page-heading { padding: 7px 0 0; margin-bottom: 22px; }
.page-heading h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.05em; line-height: 1.07; }
.page-heading p { max-width: 69ch; margin-top: 10px; line-height: 1.6; color: var(--muted); }

#filters { padding: 15px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
#more-projects { margin: 22px auto 0; display: flex; }
#filters label { display: grid; min-width: 0; gap: 5px; font-size: .81rem; font-weight: 700; color: #3b4858; }
input, select, button { min-width: 0; min-height: 39px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: .87rem; }
input, select { width: 100%; }
input::placeholder { color: var(--muted); }
button { cursor: pointer; }
button:hover { border-color: var(--accent); color: var(--accent); }
.filter-tools { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
#filters .filter-search { display: flex; align-items: center; width: min(100%, 326px); gap: 0; padding-left: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.filter-search input { border: 0; background: transparent; }
#empty { color: var(--muted); padding-block: 15px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: #9e94e5; box-shadow: 0 4px 16px #2c218e0b; }
.card-link:hover h3 { color: var(--accent); }
.card-photo { display: block; width: 100%; aspect-ratio: 1.63; object-fit: cover; background: var(--soft); }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; padding: 13px; }
.card-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.card-top > .icon { width: 30px; height: 30px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.card-top .icon-wifi::before { top: 8px; }
.card-top .icon-wifi::after { top: 12px; }
.card-board, .card-meta { color: var(--muted); font-size: .74rem; line-height: 1.35; overflow-wrap: anywhere; }
.card h3 { font-size: 1.035rem; font-weight: 735; line-height: 1.23; letter-spacing: -.019em; overflow-wrap: anywhere; }
.card-summary { color: var(--muted); font-size: .84rem; line-height: 1.43; overflow-wrap: anywhere; }
.card-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.card-meta span:last-child { flex-shrink: 0; text-align: right; }

.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .39fr); align-items: start; gap: 24px; }
.article-panel { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.article-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; min-height: 53px; padding: 9px 18px; border-bottom: 1px solid var(--line); }
.breadcrumbs, .article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .83rem; color: var(--muted); }
.breadcrumbs a { color: var(--ink); text-decoration: none; font-weight: 670; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.article-actions :is(a, button) { display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--muted); font-size: .78rem; text-decoration: none; }
.article-actions :is(a, button):hover { color: var(--accent); border-color: var(--accent); }
.project-header { padding: 19px 23px 15px; }
.project-header h1 { font-size: clamp(1.75rem, 3.25vw, 2.8rem); letter-spacing: -.046em; line-height: 1.09; }
.project-header p { margin-top: 10px; max-width: 64ch; color: var(--muted); line-height: 1.57; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.project-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.mobile-facts { display: none; }
.project-photo { margin: 0; background: #ebedf3; }
.project-photo img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.project-reading { min-width: 0; padding: 21px 23px 25px; }
.project-reading section { scroll-margin-top: 18px; }
.project-reading section + section { margin-top: 25px; }
.project-reading h2 { padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.project-reading p, .project-reading li { max-width: 72ch; line-height: 1.66; }
.project-reading p { margin-top: 8px; }
.project-reading ol { margin: 9px 0 0; padding-left: 22px; }
.project-reading li + li { margin-top: 8px; }
.project-reading :is(p, li) a, .upstream-byline a { color: var(--accent); }

.project-aside { display: grid; gap: 20px; min-width: 0; }
.project-facts, .outline { border: 1px solid var(--line); border-radius: 9px; background: var(--paper); padding: 17px; }
.project-aside h2 { font-size: 1.09rem; }
.project-facts dl { margin: 10px 0 0; overflow-wrap: anywhere; }
.project-facts dt { font-size: .79rem; font-weight: 730; padding-top: 8px; }
.project-facts dd { margin: 3px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.47; }
#build-details { scroll-margin-top: 16px; }
.source-button { width: 100%; margin-top: 16px; }
.outline { display: grid; gap: 6px; }
.outline a { font-size: .87rem; color: var(--muted); text-decoration: none; }
.outline a:hover { color: var(--accent); text-decoration: underline; }
.project-links { margin: 10px 0 0; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.project-links li + li { border-top: 1px solid var(--line); }
.project-links a { display: flex; gap: 9px; align-items: center; padding: 10px; text-decoration: none; }
.project-links a:hover strong { color: var(--accent); text-decoration: underline; }
.project-links strong, .project-links small { display: block; }
.project-links strong { font-size: .86rem; line-height: 1.26; }
.project-links small { color: var(--muted); margin-top: 3px; }
.project-links :is(img, .icon) { height: 35px; width: 35px; flex: none; object-fit: cover; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }

.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 20px; }
.project-reading .topics { margin-block: 23px 0; }
.topics a, .filter-tags a { display: block; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); font-size: .82rem; text-decoration: none; }
.topics a:hover, .filter-tags a:hover { color: var(--accent); border-color: var(--accent); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 6px 0 0; }
.filter-tags a { font-size: .74rem; padding: 2px 5px; }
.footer { margin-top: 44px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer div { display: flex; gap: 13px; }
.upstream-byline { font-size: .85rem; }
.readme-content { margin-top: 24px; overflow-wrap: anywhere; }
.readme-content :is(h3, h4, h5, h6) { margin-block: 1.4em .5em; scroll-margin-top: 28px; }
.readme-content h3 { font-size: 1.28rem; }
.readme-content h4 { font-size: 1.08rem; }
.readme-content img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
.readme-content ul { margin-block: 9px 0; padding-left: 23px; }
.readme-content pre, .readme-content table { max-width: 100%; overflow-x: auto; margin-block: 14px; }
.readme-content pre { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.readme-content table { display: block; border-collapse: collapse; }
.readme-content :is(th, td) { min-width: 90px; border: 1px solid var(--line); padding: 7px 9px; text-align: left; }
.readme-content blockquote { margin: 12px 0; padding: 1px 14px 9px; border-left: 3px solid var(--line); }
.readme-content summary { cursor: pointer; }

.camera-guide { margin-block: 25px; }
.camera-guide p { margin-block: 8px 14px; max-width: 74ch; line-height: 1.65; color: var(--muted); }
.camera-guide h3 { margin-top: 16px; font-size: 1.05rem; }
.comparison-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.comparison { width: 100%; min-width: 740px; border-collapse: collapse; text-align: left; font-size: .9rem; line-height: 1.5; }
.comparison :is(th, td) { padding: 12px 14px; vertical-align: top; }
.comparison thead { background: var(--surface); }
.comparison tbody tr { border-top: 1px solid var(--line); }
.comparison tbody th { min-width: 160px; }
.comparison td { color: var(--muted); }
.comparison a { color: var(--accent); }
.camera-guide + section > h2 { margin-bottom: 14px; }
.camera-checks { margin: 12px 0 0; max-width: 74ch; }
.camera-checks dt { margin-top: 12px; font-weight: 700; }
.camera-checks dd { margin: 2px 0 0; color: var(--muted); line-height: 1.65; }
.comparison-scroll { background: var(--paper); }
.readme-content a { color: var(--accent); }

@media (max-width: 1180px) {
  :root { --rail: 192px; }
  .shell { width: calc(100% - 42px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 910px) {
  :root { --rail: 0px; }
  .site-sidebar { position: static; width: 100%; padding: 14px 21px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-sidebar nav { display: flex; overflow-x: auto; gap: 4px; margin: 10px -5px 0; padding: 4px 5px 8px; scrollbar-width: thin; }
  .site-sidebar nav a { padding: 7px 9px; font-size: .84rem; }
  .sidebar-footer { display: none; }
  .topbar { min-height: 65px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); }
  .site-sidebar { padding-inline: 14px; }
  .hero { min-height: 290px; align-items: end; }
  .hero-copy { padding: 85px 18px 42px; }
  .hero-image { width: 100%; object-position: center 41%; }
  .hero::before { background: linear-gradient(0deg, #101b31 4%, #101b31ee 42%, #111e3540 100%); }
  .hero h1 { font-size: clamp(2.3rem, 8.8vw, 3.6rem); max-width: none; }
  .hero p { margin-top: 8px; max-width: 35ch; font-size: .91rem; }
  .hero-button { margin-top: 14px; }
  .hero-credit { right: 9px; bottom: 7px; font-size: .74rem; }
  .hero-credit .icon { width: 12px; height: 12px; }
  .grid, .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelves { grid-template-columns: 1fr; gap: 22px; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: 1fr; gap: 16px; }
  .mobile-facts { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; color: var(--accent); font-size: .85rem; font-weight: 700; }
  .project-header, .project-reading { padding-inline: 15px; }
  .article-toolbar { padding-inline: 13px; gap: 6px; }
  .card-body { padding: 10px; }
  .top-action { padding-inline: 7px; gap: 2px; }
}
@media (max-width: 340px) {
  .grid:not(.featured-grid) { grid-template-columns: 1fr; }
  .top-action { font-size: .74rem; }
  .top-search input { padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.ecosystem-guide { max-width: 1040px; }
.ecosystem-guide .topics { margin-top: 0; }
.ecosystem-guide .comparison th[scope="row"] { min-width: 86px; }
.ecosystem-guide .comparison-scroll { margin-top: 13px; }
.ecosystem-guide ul { margin: 9px 0 0; padding-left: 22px; }

.ecosystem-stats, .chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ecosystem-stats div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.ecosystem-stats dt { font-size: .81rem; color: var(--muted); }
.ecosystem-stats dd { margin: 4px 0 0; font-weight: 760; font-size: 1.24rem; }
.chapter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chapter-card { position: relative; display: grid; align-content: start; gap: 8px; padding: 16px 37px 16px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); text-decoration: none; scroll-margin-top: 18px; }
.chapter-card:hover, .chapter-card:target { border-color: var(--accent); }
.chapter-card strong { font-size: 1.04rem; line-height: 1.25; }
.chapter-card span { color: var(--muted); font-size: .87rem; line-height: 1.42; }
.chapter-card .chapter-arrow { position: absolute; top: 13px; right: 14px; color: var(--accent); }
.ecosystem-prose h2:not(:first-child) { margin-top: 29px; }
.ecosystem-prose h3 { margin: 17px 0 5px; font-size: 1.04rem; }
.ecosystem-prose ul { padding-left: 22px; }
.ecosystem-prose .comparison-scroll { margin: 14px 0; }
.ecosystem-prose .comparison { min-width: 610px; }
.ecosystem-prose .comparison th { text-wrap: normal; }
.chip-filter { display: grid; gap: 5px; max-width: 280px; margin-top: 12px; font-size: .88rem; font-weight: 650; }
.chapter-nav a { padding: 6px 3px; }
.chapter-nav a[aria-current] { font-weight: 750; color: var(--accent); }
.project-reading .snapshot-note { margin-top: 24px; font-size: .83rem; color: var(--muted); }
.chapter-adjacent { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chapter-adjacent a { display: grid; flex: 1 1 210px; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); text-decoration: none; }
.chapter-adjacent a:hover { border-color: var(--accent); }
@media (max-width: 680px) {
  .ecosystem-stats, .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 365px) {
  .chapter-grid { grid-template-columns: 1fr; }
}
