/* Original presentation, informed by the linked GitHub directory projects. */
:root {
  --home-line: color-mix(in srgb, var(--muted) 16%, transparent);
  --home-wash: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.directory-shell { max-width: 1800px; }
.directory-main { min-width: 0; padding-top: 30px; }
.directory-shell .sidebar { border-right-color: var(--home-line); padding-top: 34px; }
.sidebar-heading { color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.module-link { min-height: 43px; }
.module-link.active { background: var(--accent-bg); box-shadow: none; border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.module-link.active .module-symbol { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.module-symbol { display: inline-flex; justify-content: center; align-items: center; width: 29px; height: 29px; border-radius: 7px; flex-shrink: 0; }
.sidebar-note { background: transparent; border-style: solid; border-color: var(--home-line); }
.directory-shell .discovery-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 34px 38px; gap: 12px; min-height: 300px; border-radius: 22px;
  border-color: var(--home-line);
  background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 58%),
              radial-gradient(ellipse at 70% 100%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 50%), var(--surface);
}
.discovery-hero::before { content: ''; position: absolute; top: 0; left: 38px; right: 38px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent 75%); opacity: .7; }
.discovery-hero .hero-copy { flex: 1; }
.discovery-hero .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-bottom: 20px; }
.discovery-hero h1 { font-size: clamp(32px, 2.65vw, 50px); line-height: 1.3; font-weight: 650; letter-spacing: -.04em; margin-bottom: 18px; }
.discovery-hero h1 span { color: var(--accent); margin: 0; }
.discovery-hero p { font-size: 16px; line-height: 1.9; color: var(--muted); margin: 0; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 26px; }
.hero-links a { display: inline-flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 550; }
.hero-links a:first-child { color: var(--bg); background: var(--accent); padding: 10px 16px; border-radius: 8px; }
.hero-links a:last-child { color: var(--muted); }
.hero-links a:hover { filter: brightness(1.1); }
.hero-links a:last-child:hover { color: var(--text); }
.world-art { width: 31%; max-width: 360px; min-width: 265px; flex-shrink: 0; color: var(--accent); position: relative; }
.world-caption { display: flex; justify-content: space-between; align-items: center; color: var(--subtle); font: 9px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .07em; padding: 0 22px; }
.world-caption > span:last-child { color: var(--accent); font-size: 20px; }
.world-illustration { width: 100%; height: auto; display: block; fill: none; overflow: visible; }
.world-grid { stroke: var(--muted); stroke-opacity: .15; stroke-width: .65; }
.island-side { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke: currentColor; stroke-opacity: .35; }
.portal-back { fill: color-mix(in srgb, var(--violet) 8%, transparent); stroke: var(--violet); stroke-opacity: .5; }
.portal-wire { stroke: var(--accent); stroke-opacity: .45; }
.world-cube { stroke: var(--accent); stroke-opacity: .7; fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.cube-violet { stroke: var(--violet); fill: color-mix(in srgb, var(--violet) 14%, var(--surface)); }
.world-tile { stroke: currentColor; stroke-opacity: .4; fill: color-mix(in srgb, var(--accent) 9%, transparent); }
.world-sparks { stroke: currentColor; stroke-opacity: .65; }
.world-orbit { fill: var(--accent); filter: drop-shadow(0 0 9px var(--accent)); }
.world-legend { display: flex; justify-content: center; align-items: center; gap: 15px; font: 9px/1.6 ui-monospace, Consolas, monospace; letter-spacing: .13em; color: var(--muted); }
.world-legend i { display: inline-block; background: var(--accent); width: 5px; height: 5px; border-radius: 50%; margin-right: 5px; }
.directory-overview { padding: 23px 4px 27px; gap: 30px; border-bottom: 1px solid var(--home-line); margin-bottom: 28px; }
.directory-overview > div { gap: 9px; }
.directory-overview strong { font: 500 25px/1.2 ui-monospace, Consolas, monospace; }
.directory-overview > div > span { color: var(--muted); font-size: 13px; }
.overview-update { margin-left: auto; color: var(--subtle); font-size: 12px; }
.overview-all { color: var(--accent); font-size: 13px; white-space: nowrap; }
.scope-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px; margin-bottom: 24px; background: var(--accent-bg); border: 1px solid var(--home-line); border-radius: 12px; }
.scope-notice > div { flex: 1 1 320px; }
.scope-notice strong { font-size: 17px; }
.scope-notice p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.scope-notice > a { color: var(--accent); font-size: 15px; font-weight: 600; }
.scope-notice.compact { padding: 14px 18px; margin: 16px 0; }
.scope-notice.compact p { margin: 0; }
.results-page-info, .results-page-info nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.results-page-info { justify-content: space-between; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.results-page-info a { color: var(--accent); padding: 6px 0; }
.search-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 13px; }
.search-intro label { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.search-intro > span { font-size: 12px; color: var(--subtle); }
.search-box { height: 72px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--accent) 33%, var(--border)); background: var(--surface); box-shadow: 0 4px 22px #0000000a; padding: 8px 9px 8px 22px; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.search-box input { font-size: 17px; }
.search-box > svg { width: 22px; height: 22px; color: var(--accent); }
.search-box kbd { border-radius: 5px; color: var(--subtle); }
.search-submit { align-self: stretch; border-radius: 8px; padding: 0 21px; font-size: 15px; background: var(--accent); color: var(--bg); white-space: nowrap; }
.search-suggestions { margin: 15px 0 20px; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.search-suggestions > span { color: var(--subtle); margin-right: 4px; }
.search-suggestions a { padding: 4px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--home-line); }
.search-suggestions a:last-child { margin-left: 0; }
.search-suggestions a:hover { border-color: var(--accent); color: var(--accent); }
.workflow-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.workflow-shortcuts > a { padding: 15px 12px; border-color: var(--home-line); background: transparent; border-radius: 10px; gap: 10px; }
.workflow-shortcuts strong { font-size: 14px; font-weight: 550; }
.workflow-shortcuts .shortcut-arrow { margin-left: auto; }
.shortcut-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; }
.collection-section { margin: 30px 0 32px; }
.collection-heading { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; margin-bottom: 15px; }
.collection-heading h2 { font-size: 18px; font-weight: 600; margin: 0; }
.collection-heading > span { color: var(--subtle); font-size: 12px; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.collection-tile { --collection-accent: var(--accent); display: flex; flex-direction: column; min-width: 0; padding: 21px; border: 1px solid var(--home-line); border-radius: 13px; background: linear-gradient(140deg, color-mix(in srgb, var(--collection-accent) 8%, transparent), transparent 75%), var(--surface); transition: border-color .16s, transform .16s; }
.collection-tile[data-collection-tone=violet] { --collection-accent: var(--violet); }
.collection-tile[data-collection-tone=blue] { --collection-accent: var(--blue); }
.collection-tile:hover { border-color: var(--collection-accent); transform: translateY(-2px); }
.collection-tile-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 19px; }
.collection-symbol { color: var(--collection-accent); font: 500 14px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.collection-tile-top > span:last-child { color: var(--subtle); font-size: 12px; white-space: nowrap; }
.collection-tile-top > span:last-child > span { margin-left: 7px; font-size: 16px; }
.collection-tile h3 { font-size: 19px; line-height: 1.5; font-weight: 600; margin: 0 0 9px; }
.collection-tile p { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 0 0 19px; }
.collection-tile-bottom { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; color: var(--collection-accent); font-size: 13px; margin-top: auto; }
.collection-tile-bottom > span { color: var(--subtle); font-size: 12px; }
.discovery-controls { padding-top: 6px; }
.view-tabs { gap: 8px; padding: 4px; background: var(--surface); border: 1px solid var(--home-line); border-radius: 10px; min-width: 0; }
.view-tabs > a { padding: 9px 15px; border-bottom: 0; border-radius: 6px; color: var(--muted); font-size: 15px; }
.view-tabs > a.selected { background: var(--raised); color: var(--text); box-shadow: 0 2px 6px #00000012; border-bottom: 0; }
.view-tabs > a::after { display: none; }
.filters > summary { padding: 11px 14px; border-color: var(--home-line); border-radius: 8px; background: var(--surface); }
.results-toolbar { padding-top: 28px; }
.results-toolbar h2 { font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.results-note { max-width: 800px; line-height: 1.85; margin-bottom: 22px; }
.directory-shell .tool-grid { gap: 22px; }
.tool-card.tool-preview-card { border-color: var(--home-line); border-radius: 16px; background: var(--surface); box-shadow: none; }
.tool-card.tool-preview-card::before { display: none; }
.tool-card.tool-preview-card:hover { border-color: color-mix(in srgb, var(--accent) 65%, var(--border)); box-shadow: 0 12px 28px #00000010; transform: translateY(-2px); }
.preview-heading .tool-monogram { background: var(--raised); border: 1px solid var(--home-line); }
.preview-heading h3 { font-size: 23px; }
.preview-summary { font-size: 16px; line-height: 1.9; }
.preview-version { border-top-color: var(--home-line); }
.preview-version p { font-size: 15px; color: var(--muted); }
.preview-footer { margin-top: 22px; }
.pagination { margin-top: 32px; }
.collection-footer { border-top-color: var(--home-line); margin-top: 34px; }
#tool-search, #tool-results { scroll-margin-top: 100px; }
@media (max-width: 1350px) {
  .directory-shell .discovery-hero { padding: 30px; }
  .discovery-hero h1 { font-size: 34px; }
  .world-art { min-width: 230px; }
  .hero-break { display: none; }
  .workflow-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-tile { padding: 17px; }
}
@media (max-width: 1120px) {
  .world-art { display: none; }
  .directory-shell .discovery-hero { min-height: 0; }
  .collection-grid { grid-template-columns: 1fr; gap: 10px; }
  .collection-tile { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; padding: 18px 20px; }
  .collection-tile-top { grid-column: 1 / -1; margin-bottom: 9px; }
  .collection-tile h3 { margin-bottom: 5px; }
  .collection-tile p { grid-column: 1; margin: 0; }
  .collection-tile-bottom { grid-column: 2; grid-row: 2 / 4; align-self: center; display: flex; flex-direction: column; margin: 0; }
  .directory-overview { flex-wrap: wrap; gap: 16px 25px; }
  .overview-update { margin-left: 0; }
}
@media (max-width: 900px) {
  .directory-main { padding-top: 20px; }
  .directory-shell .sidebar { padding: 20px; }
  .world-art { display: block; min-width: 230px; }
  .discovery-hero h1 { font-size: 32px; }
}
@media (max-width: 680px) {
  .directory-shell .discovery-hero { padding: 26px 22px; border-radius: 16px; }
  .world-art { display: none; }
  .discovery-hero h1 { font-size: clamp(27px, 5.8vw, 37px); letter-spacing: -.04em; }
  .discovery-hero .eyebrow { font-size: 9px; letter-spacing: .07em; }
  .discovery-hero p { font-size: 15px; }
  .hero-links { gap: 18px; margin-top: 22px; }
  .hero-links a { font-size: 13px; gap: 10px; }
  .directory-overview { padding: 20px 0; margin-bottom: 23px; gap: 16px 22px; }
  .directory-overview strong { font-size: 22px; }
  .directory-overview > div > span { font-size: 12px; }
  .overview-update { display: none; }
  .search-intro label { font-size: 19px; }
  .search-intro > span { display: none; }
  .search-box { padding-left: 14px; height: 65px; gap: 10px; }
  .search-box input { font-size: 16px; }
  .search-submit { padding: 0 12px; font-size: 14px; }
  .search-box kbd { display: none; }
  .search-suggestions { gap: 7px; }
  .search-suggestions > span { display: none; }
  .workflow-shortcuts { gap: 8px; }
  .workflow-shortcuts > a { padding: 12px 10px; }
  .workflow-shortcuts .shortcut-arrow { display: none; }
  .collection-heading > span { display: none; }
  .collection-tile { display: flex; padding: 19px; }
  .collection-tile-bottom { flex-direction: row; align-self: stretch; margin-top: 15px; }
  .collection-tile h3 { font-size: 20px; }
  .view-tabs { gap: 3px; }
  .view-tabs > a { padding: 8px 10px; font-size: 14px; }
  .results-toolbar h2 { font-size: 21px; }
  .directory-shell .tool-grid { gap: 17px; }
  .preview-heading h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-tile, .tool-card.tool-preview-card { transition: none; transform: none; }
}
