/* Readable type and distinct home / collection surfaces. */
html { scroll-padding-top: 110px; }
body { font-size: 16px; }
button, select { min-height: 46px; }
.sidebar { width: 290px; padding: 26px 18px 20px; overflow: hidden; }
.page { margin-left: 290px; }
.brand { font-size: 28px; }
.brand-sub { font-size: 10px; line-height: 1.7; letter-spacing: .4px; }
.sidebar-status { font-size: 11px; padding: 18px 10px; }
.nav-label { font-size: 11px; line-height: 1.6; margin: 20px 10px 10px; }
#collections { min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.nav-item { font-size: 14px; line-height: 1.6; padding: 11px 12px; gap: 10px; min-height: 48px; }
.nav-item > span:not(.nav-number) { min-width: 0; }
.nav-item small { font-size: 11px; padding: 2px 5px; }
.nav-number { font-size: 13px; }
.home-nav { margin-top: 18px; flex-shrink: 0; }
.home-nav-hint { margin-left: auto; font: 10px var(--mono); color: var(--muted); }
.nav-group { margin-top: 12px; }
.nav-group summary { cursor: pointer; min-height: 44px; padding: 12px 8px; color: var(--ink); font: 500 12px/1.7 var(--mono); }
.nav-group .nav-item { padding-left: 15px; }
.sidebar-bottom { flex-shrink: 0; padding-top: 14px; }
.sidebar-bottom > p { display: none; }
.sidebar-bottom > a { font-size: 10px; padding-top: 14px; }
.topbar { height: 76px; position: sticky; top: 0; z-index: 4; background: var(--bg); font-size: 12px; letter-spacing: .3px; }
.breadcrumb { display: flex; align-items: center; gap: 18px; min-width: 0; }
.breadcrumb > span { color: var(--muted); padding: 0; }
#back-home { background: transparent; border: 1px solid var(--line); padding: 8px 12px; white-space: nowrap; font-size: 13px; }
.public-label { font-size: 11px; }
#theme span { font: 12px var(--sans); }
.mobile-navigation { display: none; }
main { padding-top: 34px; max-width: 1540px; }
.intro { gap: 38px; padding: 24px 0 55px; }
.eyebrow, .tiny-label { font-size: 12px; line-height: 1.8; letter-spacing: .7px; }
h1 { font-size: clamp(76px, 6.3vw, 108px); }
.intro-copy > p { font-size: 17px; line-height: 1.85; max-width: 620px; margin-bottom: 16px; }
.intro-actions { margin-top: 27px; }
.primary-link { font-size: 13px; line-height: 1.7; padding: 16px 19px; min-height: 52px; }
.primary-link span { font-size: 21px; }
.index-visual { height: 360px; }
.visual-top, .visual-bottom { font-size: 10px; line-height: 1.7; letter-spacing: .3px; }
.visual-bottom { font-size: 9px; }
.orbit-core > small { font-size: 10px; }
.orbit-label { font-size: 10px; }
.home-start, .home-directory { margin: 10px 0 65px; }
.home-section-heading { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: end; padding-top: 25px; border-top: 1px solid var(--line); margin-bottom: 25px; }
.home-section-heading h2, .how-to-use h2 { font: 600 42px/1.13 var(--display); letter-spacing: .1px; margin: 10px 0 0; }
.home-section-heading > p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0; max-width: 480px; }
.starting-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.starting-points > a { display: flex; flex-direction: column; text-decoration: none; padding: 25px 0; border-top: 1px solid var(--line); transition: color .15s; }
.starting-points > a:hover h3 { color: var(--accent); }
.starting-points h3 { font: 600 29px/1.25 var(--display); margin: 10px 0 13px; }
.starting-points p { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 480px; margin-bottom: 20px; }
.path-link { font: 500 13px/1.8 var(--mono); color: var(--accent); margin-top: auto; }
#home-search { margin-top: 24px; background: var(--surface); border: 1px solid var(--line-bright); padding: 25px; }
#home-search > label { display: block; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.home-search-row { display: flex; gap: 12px; }
#home-query { font-size: 16px; padding: 14px; border: 1px solid var(--line); background: var(--bg); }
.home-search-row > button { flex-shrink: 0; padding: 12px 20px; min-height: 52px; background: var(--accent); color: #08212a; font-size: 15px; font-weight: 700; }
.home-search-row > button span { margin-left: 12px; }
.section-kicker { margin-bottom: 21px; padding-top: 25px; }
.section-kicker h2, .section-kicker > span { font-size: 12px; line-height: 1.8; letter-spacing: .5px; }
.feature-strip { gap: 20px; margin-bottom: 60px; }
.feature { padding: 26px; min-height: 290px; }
.feature-meta { font-size: 11px; line-height: 1.8; letter-spacing: .4px; }
.feature-copy { max-width: 95%; }
.feature h3 { font-size: 38px; margin-top: 22px; }
.feature p { font-size: 16px; line-height: 1.8; max-width: 440px; }
.feature-link { font-size: 12px; line-height: 1.8; letter-spacing: .4px; }
.waveform, .source-stack { opacity: .15; }
#home-collections { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
#home-collections > a { display: flex; justify-content: space-between; gap: 20px; padding: 24px 22px 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; }
#home-collections > a:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
#home-collections > a:hover { background: var(--surface); }
#home-collections h3 { font-size: 19px; line-height: 1.5; margin: 0 0 9px; }
#home-collections p { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0; }
.directory-count { flex-shrink: 0; color: var(--muted); font: 11px/1.8 var(--mono); text-align: right; }
.directory-count b { display: block; font-size: 21px; color: var(--accent); margin-top: 10px; font-weight: 400; }
.how-to-use { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px 50px; border: 1px solid var(--line); padding: 32px; background: var(--surface); margin-bottom: 60px; }
.how-to-use p { font-size: 16px; line-height: 1.85; color: var(--muted); margin: 20px 0 0; }
.how-to-use ol { list-style: none; padding: 0; margin: 0; counter-reset: home-step; }
.how-to-use li { counter-increment: home-step; padding: 0 0 22px 38px; position: relative; }
.how-to-use li:before { content: '0' counter(home-step); position: absolute; left: 0; top: 3px; font: 12px var(--mono); color: var(--accent); }
.how-to-use li:last-child { padding-bottom: 0; }
.how-to-use li strong { display: block; font-size: 17px; line-height: 1.6; margin-bottom: 5px; }
.how-to-use li span { color: var(--muted); font-size: 15px; line-height: 1.8; }
.how-to-use > a { grid-column: 1/-1; padding-top: 23px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.8; text-underline-offset: 4px; color: var(--accent); }
.library-heading { align-items: flex-start; margin-bottom: 10px; }
.library-heading h1 { font: 600 clamp(38px, 4vw, 55px)/1.12 var(--display); margin: 10px 0 16px; letter-spacing: .1px; text-transform: none; }
.library-heading p { font-size: 17px; line-height: 1.8; max-width: 780px; margin-bottom: 24px; }
#result-count { font-size: 12px; padding: 11px; margin-top: 30px; }
.controls { gap: 12px; margin-bottom: 25px; }
input { font-size: 16px; padding: 17px 0; }
select { font: 14px var(--sans); padding: 0 12px; width: 175px; min-height: 54px; }
kbd { font-size: 12px; }
.list-header { font-size: 11px; line-height: 1.7; letter-spacing: .3px; padding-left: 74px; }
.resource { grid-template-columns: 40px minmax(165px,.85fr) minmax(220px,1.25fr) 115px 44px; gap: 16px; padding: 27px 12px; }
.resource-open { display: grid; grid-column: 1/5; grid-template-columns: subgrid; align-items: center; gap: 16px; width: 100%; min-height: 46px; }
.resource > .save-small { grid-column: 5; }
.resource-mark { width: 40px; height: 40px; font-size: 14px; }
.resource-main h3 { font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.resource-main p { font-size: 14px; line-height: 1.75; }
.resource-description { font-size: 16px; line-height: 1.8; }
.tag { font: 11px/1.8 var(--mono); padding: 6px 8px; }
.favorite-badge { font: 11px/1.8 var(--mono); margin-top: 9px; }
.resource-notice { font: 12px/1.8 var(--mono); }
.save-small { width: 44px; height: 46px; font-size: 25px; }
.section-context { padding: 30px; margin-bottom: 36px; }
.section-heading { align-items: flex-start; }
.section-heading h2, .notice h2 { font: 600 36px/1.2 var(--display); margin: 13px 0 22px; }
.section-copy, .section-context p { font-size: 16px; line-height: 1.85; }
.hardware { margin: 28px 0; }
.hardware > div { padding: 20px; }
.hardware h3 { font-size: 18px; line-height: 1.6; }
.hardware p { font-size: 14px; line-height: 1.8; }
.setup-notes h3 { font-size: 19px; line-height: 1.6; }
.setup-notes code { font-size: 14px; }
.workflow { gap: 18px; flex-wrap: wrap; }
.workflow b { font: 11px/1.8 var(--mono); }
.workflow h3 { font-size: 18px; line-height: 1.6; }
.workflow p { font-size: 15px; }
.learning { font-size: 16px; padding: 0 19px; }
.learning summary { padding: 18px 0; min-height: 54px; line-height: 1.7; }
.learning li { font-size: 16px; line-height: 1.85; }
.learning p { font-size: 16px; }
footer { font-size: 12px; line-height: 1.9; margin-top: 42px; padding: 30px 0; }
footer > a { font-size: 14px; }
footer > a span, footer > span { font-size: 11px; }
footer p { font-size: 13px; }
dialog { max-width: 850px; padding: 42px; }
#detail-title { font-size: 54px; line-height: 1.1; padding-right: 12px; overflow-wrap: anywhere; }
.detail-subtitle { font-size: 18px; line-height: 1.7; }
.detail-description, dialog p, dialog li { font-size: 16px; line-height: 1.9; }
dialog h3 { font-size: 21px; line-height: 1.6; margin-top: 31px; }
dialog .resource-notice { font-size: 14px; }
.guide-step { padding: 21px; }
.guide-step h4 { font-size: 18px; line-height: 1.6; }
.guide-step h4:before { font-size: 13px; }
.guide-step p { font-size: 16px; line-height: 1.9; }
.source-list a { font-size: 15px; line-height: 1.8; }
.verified-date { font: 12px/1.9 var(--mono); }
.detail-actions a, .detail-actions button { font: 14px/1.7 var(--sans); padding: 13px 17px; min-height: 48px; }
#toast { font: 14px/1.8 var(--sans); }
.library-heading #result-count { font-size: 12px; line-height: 1.8; }
#empty p { font-size: 16px; line-height: 1.8; }
#empty h3 { font-size: 21px; }
#reset { font-size: 15px; min-height: 46px; }
.light .home-search-row > button { color: white; }
@media (max-width: 1250px) {
  .resource { grid-template-columns: 40px minmax(150px,.85fr) minmax(200px,1.25fr) 44px; gap: 14px; }
  .resource-open { grid-column: 1/4; gap: 14px; }
  .resource > .save-small { grid-column: 4; }
  .resource .tag { display: none; }
  .list-header { grid-template-columns: 1fr 1.25fr; }
  .list-header > span:last-child { display: none; }
  .controls { flex-wrap: wrap; }
  .search { flex-basis: 100%; }
  .select-label { flex: 1; }
  .select-label select { width: 100%; }
  .intro { grid-template-columns: 1fr .8fr; gap: 25px; }
  .intro h1 { font-size: 80px; }
  .index-visual { height: 325px; }
  .visual-top, .visual-bottom { font-size: 9px; }
  .visual-bottom > span:last-child { display: none; }
  .how-to-use { gap: 25px; padding: 27px; }
}
@media (max-width: 1000px) {
  .sidebar { position: relative; width: 100%; padding: 19px 24px; overflow: visible; }
  .page { margin-left: 0; }
  .sidebar-status, .sidebar .nav-label, #collections, #home-nav, .sidebar-bottom > p, .sidebar-bottom > a { display: none; }
  .brand { font-size: 27px; padding: 0; max-width: calc(100% - 60px); }
  .brand-sub { font-size: 10px; }
  .sidebar-bottom { padding: 0; margin: 0; }
  #saved-toggle { position: absolute; top: 21px; right: 24px; width: 50px; min-height: 46px; font-size: 0; padding: 7px; justify-content: center; gap: 4px; border-color: var(--line); }
  #saved-toggle .nav-number { display: none; }
  #saved-toggle:before { content: '⌑'; font-size: 22px; }
  #saved-toggle small { font-size: 11px; padding: 0; border: 0; }
  .topbar { padding: 0 24px; height: 68px; }
  #back-home { display: none; }
  .mobile-navigation { display: flex; position: sticky; top: 68px; z-index: 4; padding: 10px 24px; background: var(--bg); border-bottom: 1px solid var(--line); gap: 12px; align-items: center; }
  .mobile-navigation > button { background: var(--surface); padding: 9px 14px; border: 1px solid var(--line-bright); font-size: 15px; min-height: 48px; flex-shrink: 0; }
  .mobile-navigation > label { flex: 1; min-width: 0; }
  #collection-jump { width: 100%; min-height: 48px; font: 15px var(--sans); padding: 0 12px; }
  .topbar-actions .public-label { display: none; }
  .topbar-actions { gap: 8px; }
  main { padding-top: 27px; }
  .intro { padding-top: 10px; }
  .section-kicker h2, .section-kicker > span { font-size: 11px; }
  .nav-item { font-size: 14px; }
}
@media (max-width: 700px) {
  main { padding: 24px 22px 0; }
  .sidebar { padding: 18px 22px; }
  .brand { font-size: 25px; gap: 10px; }
  .brand-sub { font-size: 9px; letter-spacing: .2px; }
  .brandmark { font-size: 28px; }
  #saved-toggle { right: 20px; top: 18px; }
  .topbar { height: 58px; padding: 0 22px; }
  .breadcrumb { max-width: 65%; }
  #breadcrumb-current { font: 12px/1.6 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #theme { min-width: 44px; min-height: 44px; justify-content: flex-end; }
  #theme span { display: none; }
  .mobile-navigation { top: 58px; padding: 10px 22px; gap: 9px; }
  .mobile-navigation > button { padding: 8px 12px; font-size: 14px; }
  #collection-jump { font-size: 14px; }
  .intro { display: block; padding: 12px 0 40px; }
  .intro h1 { font-size: clamp(50px, 16.4vw, 64px); line-height: .97; margin: 24px 0; letter-spacing: -1px; }
  .intro-copy > p { font-size: 17px; max-width: none; line-height: 1.85; }
  .index-visual { display: none; }
  .eyebrow { font-size: 11px; line-height: 1.9; letter-spacing: .2px; }
  .tiny-label { font-size: 12px; letter-spacing: .4px; }
  .primary-link { font-size: 12px; padding: 15px 17px; }
  .home-start, .home-directory { margin-bottom: 45px; }
  .home-section-heading { grid-template-columns: 1fr; gap: 17px; padding-top: 24px; margin-bottom: 24px; }
  .home-section-heading h2, .how-to-use h2 { font-size: 36px; }
  .home-section-heading > p { font-size: 16px; }
  .starting-points { grid-template-columns: 1fr; }
  .starting-points > a { padding: 24px 0; }
  .starting-points h3 { font-size: 29px; }
  .starting-points p { font-size: 16px; }
  .path-link { font-size: 13px; }
  #home-search { padding: 20px; }
  #home-search > label { line-height: 1.7; }
  .home-search-row { flex-direction: column; gap: 10px; }
  .home-search-row > button { text-align: left; padding: 14px; font-size: 16px; }
  .home-search-row > button span { float: right; }
  #home-query { min-height: 52px; }
  .section-kicker { display: block; }
  .section-kicker h2 { font-size: 12px; }
  .section-kicker > span { display: block; font-size: 11px; margin-top: 9px; }
  .feature-strip { grid-template-columns: 1fr; gap: 16px; margin-bottom: 45px; }
  .feature { padding: 23px; min-height: 260px; }
  .feature-meta { font-size: 11px; }
  .feature-meta > span:first-child { max-width: none; }
  .feature h3 { font-size: 38px; margin-top: 20px; }
  .feature p { font-size: 16px; }
  .feature-link { font-size: 12px; }
  .feature-copy { max-width: 100%; }
  #home-collections { grid-template-columns: 1fr; }
  #home-collections > a, #home-collections > a:nth-child(even) { padding: 23px 0; border-left: 0; gap: 15px; }
  #home-collections h3 { font-size: 19px; }
  #home-collections p { font-size: 16px; line-height: 1.8; }
  .directory-count { font-size: 11px; max-width: 75px; }
  .how-to-use { grid-template-columns: 1fr; padding: 23px; gap: 25px; margin-bottom: 40px; }
  .how-to-use p, .how-to-use li span { font-size: 16px; }
  .how-to-use li { padding-left: 34px; }
  .how-to-use > a { font-size: 16px; }
  .library-heading { display: block; }
  .library-heading h1 { font-size: 42px; margin: 12px 0 18px; }
  .library-heading p { font-size: 17px; margin-bottom: 15px; }
  #result-count { display: inline-block; margin: 0 0 20px; font-size: 12px; padding: 8px 10px; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .search { padding: 0 12px; }
  input { font-size: 16px; padding: 17px 0; }
  select { font-size: 14px; min-height: 50px; padding: 0 8px; width: 100%; }
  .search kbd { display: none; }
  .list-header { padding: 12px 8px; font-size: 11px; grid-template-columns: 1fr; }
  .list-header > span:nth-child(2) { display: none; }
  .resource { grid-template-columns: 1fr 44px; gap: 11px; padding: 25px 2px; }
  .resource-open { display: block; grid-column: 1/-1; padding: 0; }
  .resource-mark { display: none; }
  .resource-main { grid-column: 1; grid-row: 1; padding-right: 54px; }
  .resource-main h3 { font-size: 21px; line-height: 1.5; margin-bottom: 7px; }
  .resource-main p { font-size: 14px; }
  .resource-description { grid-column: 1/-1; grid-row: 2; font-size: 16px; line-height: 1.85; margin: 14px 0 0; }
  .resource > .save-small { position: absolute; right: 0; top: 25px; width: 44px; min-height: 46px; }
  .favorite-badge { font-size: 11px; }
  .resource-notice { font-size: 12px; }
  .section-context { padding: 22px; margin-bottom: 30px; }
  .section-heading { display: block; }
  .section-heading h2, .notice h2 { font-size: 32px; line-height: 1.2; }
  .section-heading .tag { font-size: 11px; }
  .section-context p { font-size: 16px; line-height: 1.85; }
  .hardware { grid-template-columns: 1fr; }
  .hardware > div { padding: 18px; }
  .hardware h3 { font-size: 18px; }
  .hardware p { font-size: 15px; }
  .setup-notes { grid-template-columns: 1fr; gap: 12px; }
  .setup-notes h3 { font-size: 19px; }
  .setup-notes code { font-size: 14px; }
  .workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .workflow > span { display: none; }
  .workflow b { font-size: 11px; }
  .workflow h3 { font-size: 18px; }
  .workflow p { font-size: 15px; }
  .learning { font-size: 16px; padding: 0 14px; }
  .learning summary { min-height: 54px; }
  .learning li, .learning p { font-size: 16px; }
  .learning ol { padding-left: 20px; }
  dialog { padding: 33px 22px; max-height: 90vh; }
  #detail-title { font-size: 44px; }
  .detail-subtitle { font-size: 17px; }
  .detail-description, dialog p, dialog li { font-size: 16px; }
  dialog h3 { font-size: 20px; }
  .guide-step { padding: 17px; }
  .guide-step h4 { font-size: 17px; }
  .guide-step p { font-size: 16px; }
  .source-list a { font-size: 15px; }
  .detail-actions a, .detail-actions button { font-size: 14px; padding: 13px 14px; }
  footer { display: block; padding: 25px 0; }
  footer > a { font-size: 14px; }
  footer > a span { display: block; font-size: 11px; margin: 6px 0; }
  footer p { font-size: 14px; margin-top: 12px; }
  footer > span { display: none; }
}
