/* Existing graphite artwork, self-hosted type and native product images are
   authoritative. This layer adds navigation, comparison and reading tools. */
:root {
  --enh-panel: #111517;
  --enh-panel-hover: #1b2420;
  --enh-edge: #3d4a44;
  --enh-soft: #c6d4cc;
  --enh-label: #a8d4bd;
  --enh-rule: #2b3330;
  --enh-shade: #030505c9;
  --enh-clear: transparent;
  --enh-ease: cubic-bezier(.2,.7,.2,1);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; border: 0; }
.section-label { display: flex; gap: 10px; align-items: center; color: var(--enh-label); font-size: 11px; font-weight: 500; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; }
.section-label::before { content: ''; height: 1px; width: 22px; background: currentColor; }
.hero > .section-label { justify-content: center; margin: 0 auto 22px; }
.hero > h1 { max-width: 1020px; }
/* Route headings receive screen-reader focus without an interactive control ring. */
main h1[tabindex="-1"]:focus { outline: none; }
.section-head > div > .section-label { margin-bottom: 16px; }
.hero-facts { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 21px auto 0; font-size: 12px; color: var(--enh-soft); }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .icon { width: 14px; height: 14px; color: var(--enh-label); }
.command-trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--enh-edge); border-radius: 7px; background: var(--enh-clear); color: var(--enh-soft); font-size: 13px; }
.command-trigger:hover { background: var(--enh-panel-hover); color: var(--ink); }
kbd { font-family: inherit; font-size: 11px; line-height: 1; border: 1px solid var(--enh-edge); border-radius: 4px; padding: 4px 5px; color: var(--muted); }
.nav-actions { gap: 12px; }
#products .product-overview { gap: 20px; }
#products .product-overview article { position: relative; display: flex; flex-direction: column; border: 1px solid var(--enh-edge); border-radius: 12px; padding: 28px; background: linear-gradient(145deg,var(--enh-panel-hover),var(--enh-panel) 55%); transition: border-color 180ms var(--enh-ease),background 180ms var(--enh-ease); }
#products .product-overview article:hover,#products .product-overview article:focus-within { border-color: var(--enh-label); }
.collection-number { font-size: 11px; letter-spacing: .1em; color: var(--enh-soft); margin-bottom: 25px; display: flex; align-items: center; justify-content: space-between; }
.collection-number > span:last-child { display: inline-flex; gap: 7px; align-items: center; }
#products .product-overview .product-identity { margin-bottom: 18px; }
#products .product-overview h3 { font-size: 21px; margin-bottom: 12px; }
#products .product-overview p { min-height: 110px; font-size: 15px; }
#products .product-overview .channel-label { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 20px; }
#products .product-overview .text-link { justify-content: space-between; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--enh-rule); }
.fit-section { margin-top: 36px; padding-bottom: 50px; }
.fit-section > h2 { font-size: 28px; margin-bottom: 22px; }
.fit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--enh-edge); border-radius: 12px; overflow: clip; background: var(--enh-panel); }
.fit-grid article { padding: 25px 27px; border-right: 1px solid var(--enh-rule); }
.fit-grid article:last-child { border-right: 0; }
.fit-grid h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 4px; }
.fit-grid h3 .icon { color: var(--enh-label); }
.fit-grid .fit-channel { color: var(--enh-soft); font-size: 13px; }
.fit-grid dl { margin: 23px 0 16px; }
.fit-grid dl > div { margin-top: 16px; }
.fit-grid dt { color: var(--muted); font-size: 12px; }
.fit-grid dd { margin: 5px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.fit-grid .text-link { justify-content: space-between; width: 100%; margin-top: 8px; border-top: 1px solid var(--enh-rule); padding-top: 12px; }
.guide-tools { border: 1px solid var(--enh-edge); border-radius: 10px; background: var(--enh-panel); padding: 18px 20px; margin-bottom: 25px; }
.guide-search-row { display: flex; gap: 10px; align-items: center; }
.guide-search-row .search { flex: 1; width: auto; background: var(--bg); min-width: 0; }
.guide-search-row .search input { min-width: 0; width: 100%; }
.guide-search-clear { padding: 8px 12px; border: 1px solid var(--enh-edge); background: var(--enh-clear); color: var(--enh-soft); border-radius: 7px; min-height: 44px; flex-shrink: 0; font-size: 13px; }
.guide-search-clear:hover { background: var(--enh-panel-hover); }
.guide-tools .note { font-size: 12px; margin-top: 10px; }
.chapter-empty { padding: 30px 22px; border: 1px solid var(--enh-rule); border-radius: 10px; }
.chapter-empty h3 { margin: 0 0 10px; }
.chapter-empty .text-link { margin-top: 12px; border: 0; background: none; padding: 0; }
.feature-catalog [data-chapter-index] { scroll-margin-top: 120px; }
.feature-catalog [data-chapter-index]:target { border-color: var(--enh-label); }
.chapter-number { color: var(--enh-label); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 400; margin-right: 10px; }
.site-search-dialog { width: min(620px,calc(100% - 32px)); max-height: min(740px,calc(100dvh - 48px)); padding: 0; margin: auto; color: var(--ink); background: var(--enh-panel); border: 1px solid var(--enh-edge); border-radius: 14px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 100px var(--enh-shade); }
.site-search-dialog::backdrop { background: var(--enh-shade); }
.search-dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 28px 28px 22px; }
.search-dialog-head h2 { font-size: 29px; line-height: 1.2; margin-top: 10px; }
.search-close { background: var(--enh-clear); border: 1px solid var(--enh-edge); color: var(--enh-soft); border-radius: 7px; width: 40px; height: 40px; flex-shrink: 0; font-size: 26px; line-height: 1; }
.search-close:hover { background: var(--enh-panel-hover); }
.site-search-field { display: flex; gap: 12px; align-items: center; border-block: 1px solid var(--enh-rule); background: var(--bg); padding: 14px 28px; }
.site-search-field > .icon { color: var(--enh-label); }
.site-search-field input { width: 100%; min-width: 0; min-height: 36px; border: 0; background: var(--enh-clear); color: var(--ink); font-size: 16px; }
.site-search-field input::placeholder { color: var(--muted); opacity: 1; }
.site-search-field input:focus-visible { outline-offset: 3px; }
.search-count { padding: 16px 28px 5px; color: var(--muted); font-size: 12px; }
.site-search-results { padding: 6px 12px 16px; }
.site-search-results ol { list-style: none; padding: 0; margin: 0; }
.site-search-results a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 16px; border-radius: 8px; min-height: 66px; }
.site-search-results a:hover,.site-search-results a:focus-visible { background: var(--enh-panel-hover); }
.site-search-results a:focus-visible { outline-offset: -2px; }
.site-search-results strong { display: block; font-weight: 500; font-size: 14px; line-height: 1.5; }
.site-search-results small { display: block; color: var(--enh-soft); font-size: 12px; margin-top: 4px; }
.site-search-results a > span:last-child { color: var(--enh-label); }
.search-empty { padding: 28px 16px; }
.search-empty p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.search-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 15px 28px; font-size: 11px; color: var(--enh-soft); border-top: 1px solid var(--enh-rule); }
.download-release[data-state="loading"] #installer-download { cursor: progress; }
.download-release[data-state="unavailable"] .release-empty > .icon { color: var(--amber); }
.release-empty .text-link { margin-top: 15px; }

@media(max-width:1100px) {
  .nav-links { gap: 16px; }
  .command-trigger kbd { display: none; }
  #products .product-overview article { padding: 23px; }
  .fit-grid article { padding: 23px; }
}
@media(max-width:900px) {
  .command-trigger > span,.command-trigger kbd { display: none; }
  .command-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; }
}
@media(max-width:760px) {
  .hero > .section-label { margin-bottom: 18px; font-size: 10px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; max-width: 440px; font-size: 11px; line-height: 1.5; }
  .hero-facts span { justify-content: center; align-items: flex-start; text-align: left; }
  .hero-facts .icon { flex-shrink: 0; margin-top: 1px; }
  #products .product-overview { grid-template-columns: minmax(0,1fr); gap: 16px; }
  #products .product-overview article { padding: 25px; }
  #products .product-overview p { min-height: 0; margin-bottom: 24px; }
  #products .product-overview .channel-label { margin-bottom: 18px; }
  .collection-number { margin-bottom: 20px; }
  .fit-grid { grid-template-columns: minmax(0,1fr); }
  .fit-grid article { border-right: 0; border-bottom: 1px solid var(--enh-rule); }
  .fit-grid article:last-child { border-bottom: 0; }
  .fit-grid dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; margin-top: 8px; }
  .fit-section { padding-bottom: 32px; }
}
@media(max-width:480px) {
  .nav { gap: 8px; }
  .nav-actions { gap: 8px; }
  .company-logo { width: 128px; height: 40px; }
  .nav-actions .lang,.menu,.command-trigger { min-width: 44px; width: 44px; min-height: 44px; }
  .guide-tools { padding: 16px; }
  .guide-search-row { flex-wrap: wrap; }
  .guide-search-clear { min-height: 40px; }
  .site-search-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 11px; }
  .search-dialog-head { padding: 22px 20px 18px; gap: 10px; }
  .search-dialog-head h2 { font-size: 25px; }
  .site-search-field { padding: 13px 20px; }
  .search-count { padding-inline: 20px; }
  .search-hint { padding-inline: 20px; }
  .fit-grid dl { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media(prefers-reduced-motion:reduce) {
  #products .product-overview article { transition: none; }
}
@media(forced-colors:active) {
  #products .product-overview article,.site-search-dialog,.fit-grid,.guide-tools { background: Canvas; color: CanvasText; border-color: CanvasText; }
}
