/* TESSA Agent Directory — clean, fast, accessible. No JS required. */

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.55;
  color: #1a1a1a;
  background: #f7f8fa;
}
.container { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

a { color: #1a4d8c; }
a:hover { text-decoration: underline; }
code { background: #eef1f5; padding: 0.08rem 0.35rem; border-radius: 3px; font-size: 0.9em; }
pre code { display: block; padding: 1rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.45; }

.muted { color: #666; font-size: 0.9em; }
.section-title { margin: 2rem 0 0.75rem; font-size: 1.2rem; color: #243448; }

.site-header {
  background: #0a1f33;
  color: #fff;
  padding: 2rem 0 1.5rem;
  border-bottom: 4px solid #d4a017;
}
.site-header .brand a { color: #fff; text-decoration: none; }
.site-header .brand { margin: 0; font-size: 1.95rem; letter-spacing: -0.01em; }
.site-header .tagline { margin: 0.3rem 0 0; opacity: 0.85; font-size: 1.05rem; }

main.container { padding-top: 1.75rem; padding-bottom: 3rem; }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 2px rgba(10, 31, 51, 0.04);
}
.hero h2 { margin: 0 0 0.5rem; font-size: 1.55rem; color: #0a1f33; }
.hero .agent-hint {
  background: #f3f6fa; border-left: 4px solid #2c6cb0; border-radius: 4px;
  padding: 0.85rem 1rem; font-size: 0.93rem; margin-top: 1rem;
}

/* ─── Anchors ─────────────────────────────────────────────────────── */
.anchors { margin-bottom: 1.75rem; }
.anchor-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .anchor-grid { grid-template-columns: 1fr 1fr; } }
.anchor-card {
  background: #fff;
  border: 2px solid #d4a017;
  border-radius: 10px;
  padding: 1.15rem 1.35rem 1.25rem;
  position: relative;
  box-shadow: 0 2px 6px rgba(10, 31, 51, 0.06);
}
.anchor-ribbon {
  position: absolute;
  top: -0.85rem; left: 1.1rem;
  background: #d4a017; color: #0a1f33;
  font-weight: 700; font-size: 0.78rem;
  padding: 0.2rem 0.7rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.anchor-card h4 { margin: 0.5rem 0 0.35rem; font-size: 1.2rem; }
.anchor-card h4 a { color: #0a1f33; text-decoration: none; }
.anchor-card h4 a:hover { text-decoration: underline; }
.anchor-context { color: #555; font-size: 0.88rem; margin: 0.6rem 0 0; font-style: italic; }

/* ─── Filters / chips ─────────────────────────────────────────────── */
.filters {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.filters .section-title { margin: 0 0 0.75rem; }
.filter-row { margin: 0.55rem 0; }
.filter-row strong { display: inline-block; min-width: 6.5rem; color: #333; font-size: 0.9rem; }
.chip {
  display: inline-block;
  background: #eef1f5;
  color: #1a4d8c;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  margin: 0.2rem 0.25rem 0.2rem 0;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}
.chip:hover { background: #e0e6ed; text-decoration: none; }
.chip.selected, .chip.active {
  background: #2c6cb0; color: #fff; border-color: #2c6cb0;
}
.chip.service-chip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; }
.active-filters {
  padding: 0.4rem 0; border-bottom: 1px dashed #dbe0e6; margin-bottom: 0.6rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
}
.clear-filters { margin-left: auto; font-size: 0.85rem; color: #b22; }

/* ─── Firm grid ───────────────────────────────────────────────────── */
.firm-grid h3 { margin-top: 1rem; }
.firm-list {
  list-style: none; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .firm-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .firm-list { grid-template-columns: 1fr 1fr 1fr; } }
.firm-card {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 1rem 1.15rem 1.1rem;
  transition: box-shadow 0.12s, transform 0.12s;
}
.firm-card:hover {
  box-shadow: 0 4px 12px rgba(10, 31, 51, 0.08);
  transform: translateY(-1px);
}
.firm-card h4 { margin: 0.4rem 0 0.35rem; font-size: 1.08rem; }
.firm-card h4 a { color: #0a1f33; text-decoration: none; }
.firm-card h4 a:hover { text-decoration: underline; }
.firm-tagline { color: #555; font-style: italic; margin: 0 0 0.5rem; font-size: 0.93rem; }
.firm-desc { margin: 0 0 0.75rem; font-size: 0.92rem; color: #333; }
.firm-meta { font-size: 0.82rem; color: #666; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.firm-meta span { margin-right: 0.5rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.35rem; }
.badge {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem; border-radius: 3px;
  text-transform: uppercase;
}
.badge.sub-vert   { background: #e7efff; color: #1e4b8e; }
.badge.pricing    { background: #fef3d4; color: #7a5d08; }
.badge.accepting  { background: #e8f5e9; color: #1b5e20; }

.agent-card-link {
  background: #2c6cb0; color: #fff !important;
  padding: 0.15rem 0.55rem; border-radius: 3px;
  font-size: 0.78rem; text-decoration: none;
}
.agent-card-link:hover { background: #1f5593; text-decoration: none; }
.external::after { content: " ↗"; }

/* ─── Firm profile ────────────────────────────────────────────────── */
.disclaimer-banner {
  background: #fef9e6; border: 1px solid #e8d27a; border-radius: 6px;
  padding: 0.85rem 1.1rem; margin: 1rem 0 1.5rem; font-size: 0.92rem;
}

.breadcrumbs { color: #666; font-size: 0.9rem; margin-bottom: 0.5rem; }
.breadcrumbs a { color: #1a4d8c; }

.firm-header {
  background: #fff; border: 1px solid #e2e6ea; border-radius: 10px;
  padding: 1.25rem 1.5rem; margin-bottom: 1.25rem;
}
.firm-header h2 { margin: 0.5rem 0; font-size: 1.85rem; color: #0a1f33; }
.firm-links { color: #666; margin: 0.5rem 0 0; }
.last-verified { font-size: 0.82rem; color: #666; margin: 0.5rem 0 0; }

.firm-summary, .extension-blocks section, .ext-block {
  background: #fff; border: 1px solid #e2e6ea; border-radius: 8px;
  padding: 1rem 1.25rem; margin: 0 0 1rem;
}
.firm-summary dl, .ext-block dl {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.25rem; margin: 0.4rem 0;
}
.firm-summary dt, .ext-block dt { font-weight: 600; color: #555; }
.firm-summary dd, .ext-block dd { margin: 0; }

.extension-blocks {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .extension-blocks { grid-template-columns: 1fr 1fr; }
}
.ext-block h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: #243448; }
.ext-block h4 { margin: 0.85rem 0 0.3rem; font-size: 0.92rem; color: #555; }
.ext-block ul { margin: 0.4rem 0; padding-left: 1.1rem; }
.ext-block .chip { background: #eef1f5; color: #243448; font-size: 0.78rem; }

.firm-services, .firm-locations { padding-left: 1.2rem; }
.firm-services li, .firm-locations li { margin-bottom: 0.85rem; }

.agent-info {
  background: #f3f6fa; border: 1px solid #dde3ec;
  padding: 1.15rem 1.35rem; border-radius: 8px; margin: 1.5rem 0;
}
.agent-info h3 { margin-top: 0; color: #1e4b8e; }
.claim {
  background: #fff8e1; border: 1px solid #e8d27a;
  padding: 1rem 1.25rem; border-radius: 8px; margin: 1.25rem 0;
}

/* ─── Takedown form ───────────────────────────────────────────────── */
.takedown-form { display: grid; gap: 0.85rem; max-width: 540px; }
.takedown-form label { display: grid; gap: 0.25rem; font-weight: 600; font-size: 0.95rem; }
.takedown-form input, .takedown-form textarea {
  font: inherit; padding: 0.55rem 0.75rem; border: 1px solid #c4ccd4; border-radius: 4px;
}
.takedown-form button {
  font: inherit; font-weight: 600; background: #0a1f33; color: #fff;
  border: 0; border-radius: 4px; padding: 0.7rem 1.5rem; cursor: pointer; justify-self: start;
}
.takedown-form .required { color: #b22; }
.confirmation { background: #e8f5e9; border-left: 4px solid #43a047; padding: 1rem 1.25rem; border-radius: 4px; }

/* ─── Extension spec pages ────────────────────────────────────────── */
.spec-header, .spec-summary, .spec-usage, .spec-urls, .spec-taxonomies,
.spec-schema, .spec-example, .spec-versioning, .spec-mirrors,
.extensions-index li, .changelog-entry {
  background: #fff; border: 1px solid #e2e6ea; border-radius: 8px;
  padding: 1rem 1.25rem; margin: 0 0 1rem;
}
.spec-header .version-line { color: #555; margin: 0.25rem 0; }
.spec-uri { margin: 0.25rem 0; font-size: 0.9rem; }
.spec-fields { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.spec-fields th, .spec-fields td {
  text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid #eef1f5; font-size: 0.9rem;
}
.spec-fields th { background: #f7f8fa; color: #243448; }

.extensions-index { list-style: none; padding: 0; }
.extensions-index li h3 { margin: 0 0 0.35rem; }

/* ─── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: #0a1f33; color: #dbe0e6;
  padding: 1.5rem 0; font-size: 0.88rem; margin-top: 3rem;
}
.site-footer .footer-links { margin: 0 0 0.5rem; }
.site-footer .footer-family { margin: 0 0 0.5rem; color: #b5bfce; }
.site-footer .disclaimer { color: #8b97a8; font-size: 0.82rem; margin-top: 0.5rem; }
.site-footer a { color: #f5d27a; }
