:root {
  --brand: #c4161c;
  --brand-dark: #991b1f;
  --brand-soft: #fff1f1;
  --text: #101828;
  --secondary: #475467;
  --muted: #667085;
  --line: #d0d5dd;
  --line-soft: #eaecf0;
  --surface: #ffffff;
  --canvas: #f8f9fb;
  --blue: #175cd3;
  --green: #067647;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

a { color: inherit; }

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  min-height: 68px;
  margin: 0 -24px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 7px;
  font-size: 12px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--secondary);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--brand); }

.intro {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line-soft);
}

.intro-label {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 16px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.section-head span {
  color: var(--muted);
  font-size: 12px;
}

.directory {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.directory-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(260px, 2fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.directory-row:last-child { border-bottom: 0; }

.directory-row:hover { background: #fcfcfd; }

.directory-title {
  font-weight: 700;
  text-decoration: none;
}

.directory-title:hover { color: var(--brand); }

.directory-description { color: var(--secondary); }

.directory-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.badge {
  padding: 3px 8px;
  color: var(--green);
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.open-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.open-link:hover { text-decoration: underline; }

.footer {
  padding: 26px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .shell { padding: 0 16px 32px; }
  .topbar { margin: 0 -16px; padding: 0 16px; }
  .intro { padding-top: 30px; }
  h1 { font-size: 27px; }
  .directory-row { grid-template-columns: 1fr; gap: 6px; }
  .directory-meta { justify-content: space-between; margin-top: 5px; }
}
