/* Shared repository and tools catalog stylesheet. */
:root {
  --bg: #080808;
  --panel: #11100e;
  --panel2: #161513;
  --line: rgba(255,255,255,.13);
  --text: #f2f2ef;
  --muted: #aaa9a5;
  --amber: #d6a14a;
  --soft: #e0b56a;
  --max: 1220px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #080808;
  color: var(--text);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height: 1.55;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 80% 8%,rgba(214,161,74,.10),transparent 37%),radial-gradient(circle at 12% 60%,rgba(255,255,255,.04),transparent 44%),#080808;
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .30;
  background: linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom,rgba(0,0,0,.6),transparent 70%);
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,input,select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 2px solid var(--soft);
  outline-offset: 3px;
}
::selection {
  background: #ad7c2b;
  color: #080808;
}
header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(15px);
  background: rgba(6,6,6,.86);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: auto;
  padding: 0 26px;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.logo {
  width: 35px;
  height: 35px;
  border: 1px solid #eee;
  display: grid;
  place-items: center;
  letter-spacing: -.1em;
}
.navlinks {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  color: #d9d8d3;
}
.navlinks a {
  padding: 10px 0;
}
.navlinks a.active {
  color: var(--soft);
  border-bottom: 2px solid var(--amber);
}
.navcta {
  margin-left: 10px;
  border: 1px solid var(--amber);
  padding: 10px 14px;
  font-size: 12px;
  white-space: nowrap;
}
.navcta:hover {
  background: var(--amber);
  color: #080808;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--text);
  margin-left: auto;
}
.mobile-nav {
  display: none;
  background: #090909;
  padding: 10px 24px 24px;
  border-top: 1px solid var(--line);
}
.mobile-nav.open {
  display: grid;
}
.mobile-nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
main {
  max-width: var(--max);
  margin: auto;
  padding: 66px 26px 100px;
}
.eyebrow {
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.eyebrow b {
  color: var(--amber);
  margin-right: 10px;
}
.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 46px;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: end;
}
.hero h1 {
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 400;
  font-size: clamp(51px,6.2vw,87px);
  line-height: .99;
  letter-spacing: -.035em;
  max-width: 970px;
  margin: 21px 0;
}
.hero h1 em {
  color: var(--soft);
  font-weight: 400;
  font-style: normal;
}
.lede {
  color: #c9c9c4;
  max-width: 740px;
  font-size: 18px;
  line-height: 1.7;
}
.motto {
  padding: 24px;
  border: 1px solid rgba(214,161,74,.30);
  background: rgba(214,161,74,.035);
}
.motto .label {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10px;
}
.motto p {
  color: #dad9d4;
  line-height: 1.7;
  margin: 10px 0 0;
}
.metrics {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.metric strong {
  font: 400 33px Georgia,serif;
  color: var(--soft);
}
.metric span {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.jump-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 0;
}
.jump-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  font-size: 12px;
}
.jump-links a:hover {
  border-color: var(--amber);
  color: var(--soft);
}
.featured-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 66px 0 22px;
}
.featured-title h2,.section-head h2 {
  font: 400 clamp(28px,3vw,43px) Georgia,serif;
  margin: 10px 0 0;
}
.section-head {
  margin: 46px 0 25px;
}
.section-head p {
  color: var(--muted);
  max-width: 770px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
}
.feature {
  padding: 25px;
  border: 1px solid rgba(214,161,74,.35);
  background: linear-gradient(140deg,rgba(214,161,74,.09),rgba(7,7,7,.94));
  min-height: 210px;
  display: flex;
  flex-direction: column;
}
.feature small {
  color: var(--soft);
  letter-spacing: .17em;
  text-transform: uppercase;
  font-size: 10px;
}
.feature h3 {
  font: 400 27px Georgia,serif;
  margin: 16px 0 6px;
}
.feature p {
  font-size: 13px;
  color: #c5c5c0;
  line-height: 1.65;
  flex: 1;
}
.text-link {
  color: var(--soft);
  font-size: 12px;
  margin-top: 10px;
  align-self: start;
}
.text-link:hover {
  text-decoration: underline;
}
.controlbar {
  padding: 22px;
  background: rgba(10,10,10,.8);
  border: 1px solid var(--line);
  margin: 28px 0 23px;
  position: sticky;
  top: 73px;
  z-index: 20;
  backdrop-filter: blur(18px);
}
.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-wrap {
  position: relative;
  flex: 1;
}
.search-wrap:before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 9px;
  color: var(--soft);
  font-size: 23px;
}
.search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(0,0,0,.7);
  border-radius: 0;
}
.search-input::placeholder {
  color: #8f8e88;
}
.clear-btn {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.7);
  color: #dadad6;
}
.utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12px;
}
.utility label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.utility select {
  background: #0c0c0c;
  color: #dededb;
  border: 1px solid var(--line);
  padding: 7px 10px;
}
.sections {
  display: grid;
  gap: 44px;
}
.group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  margin-bottom: 13px;
}
.group-title h3 {
  font: 400 clamp(25px,2.7vw,35px) Georgia,serif;
  margin: 0;
}
.group-title .num {
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}
.group-description {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 19px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 13px;
}
.card {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 21px;
  background: rgba(6,6,6,.83);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform .16s ease,border-color .16s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(214,161,74,.52);
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  align-items: start;
}
.card h4 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 650;
}
.card h4 a:hover {
  color: var(--soft);
}
.source {
  font-size: 10px;
  color: #898985;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}
.card p {
  font-size: 13px;
  color: #b8b8b3;
  line-height: 1.6;
  margin: 0 0 15px;
  flex: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 13px;
}
.tag {
  color: #aaa9a5;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.1);
  font-size: 10px;
}
.tag.gold {
  color: var(--soft);
  border-color: rgba(214,161,74,.30);
}
.note {
  font-size: 11px;
  color: #dab985;
  border-left: 2px solid var(--amber);
  padding: 5px 0 5px 10px;
  margin: 4px 0 13px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}
.card-bottom a {
  font-size: 12px;
  color: var(--soft);
}
.card-bottom a:hover {
  text-decoration: underline;
}
.domain {
  color: #74746f;
  font-size: 10px;
  max-width: 55%;
  overflow-wrap: anywhere;
}
.empty {
  display: none;
  padding: 34px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.empty.show {
  display: block;
}
.advisory {
  border-left: 2px solid var(--amber);
  padding: 24px 27px;
  background: rgba(214,161,74,.045);
  margin-top: 60px;
}
.advisory h3 {
  font: 400 27px Georgia,serif;
  margin: 0 0 10px;
}
.advisory p {
  color: #bdbdb9;
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0;
}
.advisory a {
  text-decoration: underline;
  color: var(--soft);
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 26px 50px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  max-width: var(--max);
  margin: auto;
  font-size: 12px;
  color: #979691;
}
@media (max-width:1050px) {
  .cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .motto {
    max-width: 600px;
  }
  .navlinks {
    gap: 14px;
  }
}
@media (max-width:820px) {
  .navlinks,.navcta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .controlbar {
    top: 74px;
  }
  main {
    padding-top: 42px;
  }
}
@media (max-width:620px) {
  .nav {
    padding: 0 18px;
  }
  .brand {
    font-size: 11px;
  }
  .brand span:nth-child(2) {
    display: none;
  }
  main {
    padding: 35px 16px 65px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .lede {
    font-size: 16px;
  }
  .featured-grid,.cards {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 23px;
  }
  .controlbar {
    position: relative;
    top: auto;
    padding: 15px;
  }
  .filter {
    font-size: 10px;
  }
  .featured-title {
    margin-top: 44px;
  }
  .feature {
    min-height: 170px;
  }
  .card {
    min-height: 190px;
  }
  footer {
    padding-inline: 16px;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.facet-row {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-top: 15px;
}
.facet-row label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
}
.facet-row select {
  background: #0c0c0c;
  color: #f2f2ef;
  border: 1px solid var(--line);
  padding: 12px 13px;
  min-width: 0;
  width: 100%;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
}
.facet-row select:hover {
  border-color: rgba(214,161,74,.55);
}
.class-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 1px 0 12px;
}
.classification {
  font-size: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(214,161,74,.20);
  background: rgba(214,161,74,.025);
  color: #b5a58d;
}
.classification.excellence {
  border-color: rgba(214,161,74,.62);
  color: var(--soft);
}
.reader-note {
  padding: 18px 22px;
  background: rgba(255,255,255,.025);
  border-left: 2px solid rgba(214,161,74,.55);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.reader-note strong {
  color: #e0b56a;
}
@media (max-width:700px) {
  .facet-row {
    grid-template-columns: 1fr;
  }
  .reader-note {
    font-size: 12px;
  }
}
/* Keyboard navigation and progressive accessibility */
.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--amber);
  color: #080808;
}
.skip-link:focus {
  top: 1rem;
}

/* Responsive select-based facets: discoverable and compact on small screens. */
.facet-row.tools-facets { grid-template-columns: minmax(0, 380px); }
@media (max-width: 1050px) {
  .facet-row:not(.tools-facets) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .facet-row:not(.tools-facets), .facet-row.tools-facets { grid-template-columns: 1fr; }
}
