/* Agents Lookup. One design: card tiles, bright body text, yellow only for the main action and the active filter.
   Dark by default, light follows the visitor's system setting until they pick one with the theme button. */
:root {
  --bg: #0e0e0c; --raised: #171714; --raised-2: #201f1b; --line: #2e2d28; --line-2: #45443d;
  --text: #ecebe6; --meta: #a8a69d; --accent: #e8f249; --on-accent: #0e0e0c;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #f7f6f2; --raised: #ffffff; --raised-2: #f0efea; --line: #e2e0d8; --line-2: #c9c7bd;
  --text: #161613; --meta: #5c5b55; --accent: #d9e62a; --on-accent: #161613; color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #f7f6f2; --raised: #ffffff; --raised-2: #f0efea; --line: #e2e0d8; --line-2: #c9c7bd;
  --text: #161613; --meta: #5c5b55; --accent: #d9e62a; --on-accent: #161613; color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
main.wrap { padding-bottom: 32px; }
.muted, .meta { color: var(--meta); }
.meta { font-size: 14px; }
[hidden] { display: none !important; }

/* Header: four links, search on every page, actions on the right */
header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.mark { width: 14px; height: 14px; background: var(--accent); transform: rotate(45deg) scale(.85); border-radius: 3px; display: inline-block; }
nav.main { display: flex; gap: 4px; }
nav.main a { padding: 8px 10px; border-radius: 8px; color: var(--meta); font-size: 14.5px; white-space: nowrap; text-decoration: none; }
nav.main a:hover, nav.main a[aria-current] { color: var(--text); background: var(--raised); }
.hsearch { flex: 1; max-width: 220px; min-width: 120px; position: relative; margin: 0; }
.hsearch input { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--raised); font-size: 15px; padding: 0 44px 0 14px; }
.hsearch input::placeholder { color: var(--meta); }
.hsearch kbd { position: absolute; right: 10px; top: 9px; font: 12px var(--mono); color: var(--meta); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.actions .btn { margin: 0; height: 40px; display: inline-flex; align-items: center; padding: 0 14px; }
.icon-btn { width: 40px; padding: 0 !important; justify-content: center; }
details.menu { display: none; }

footer.site { color: var(--meta); border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; font-size: 14px; }
footer.site a { color: var(--meta); margin-right: 16px; }
footer.site a:hover { color: var(--text); }

/* Type: medium weights, modest sizes */
h1, h2, h3 { color: var(--text); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 36px 0 10px; }
h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 56px 0 12px; }
h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.4; }
article h2 { font-size: 22px; margin-top: 40px; }
.lede { font-size: 15px; color: var(--meta); max-width: none; margin-top: 0; text-wrap: pretty; }
.narrow .lede { max-width: 66ch; }
.crumbs { margin-top: 28px; font-size: 14px; color: var(--meta); }
.crumbs a { color: var(--meta); }
.eyebrow { font-size: 14px; color: var(--meta); margin: 32px 0 -20px; }
.hero { padding: 8px 0 0; }

.btn { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; border: 1px solid var(--accent); cursor: pointer; margin: 0 6px 8px 0; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--raised); filter: none; }

/* Cards: whole tile is the link */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { margin: 0; }
.card h3 { font-size: 16px; line-height: 1.3; }
.card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--meta); }
.card .go { color: var(--text); white-space: nowrap; font-weight: 500; }
.card .tools { margin-top: auto; font-size: 13px; color: var(--meta); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.sponsored { border-style: dashed; }
.empty { padding: 40px; text-align: center; color: var(--meta); border: 1px dashed var(--line-2); border-radius: 14px; grid-column: 1 / -1; }
.more { display: flex; justify-content: center; margin-top: 24px; }

/* Directory: category sidebar left, cards right; on narrow screens the sidebar becomes a scrolling chip row */
.dir { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 8px; }
.side h2 { font-size: 13px; color: var(--meta); font-weight: 500; margin: 8px 0 8px 10px; letter-spacing: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; white-space: nowrap; }
.chip .n { color: var(--meta); font-size: 13px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .75; }
.side h2 { display: none; }
@media (min-width: 981px) {
  .dir { grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
  .side { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .side h2 { display: block; }
  .side .chips { flex-direction: column; gap: 2px; overflow: visible; }
  .side .chip { display: flex; justify-content: space-between; gap: 8px; border: 0; border-radius: 8px; text-align: left; padding: 7px 10px; font-size: 14.5px; white-space: normal; }
  .side .chip:hover { background: var(--raised); }
  .side .chip[aria-pressed="true"] { background: var(--raised-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
  .side .chip[aria-pressed="true"] .n { opacity: 1; color: var(--meta); }
}
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.controls .count { margin-left: auto; }

/* Content blocks */
.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tier { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.tier.pick { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.price { font-size: 34px; font-weight: 500; color: var(--text); margin: 4px 0; }
.tier ul { padding-left: 18px; margin: 12px 0 20px; flex: 1; font-size: 15px; }
.box { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin: 32px 0; }
.fine { font-size: 13px; color: var(--meta); margin: 24px 0 0; max-width: 72ch; }
.fine a { color: var(--meta); }
.note { background: var(--raised-2); border-left: 3px solid var(--accent); color: var(--text); border-radius: 8px; padding: 12px 16px; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 24px 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts div { background: var(--raised); padding: 12px 16px; font-size: 15px; }
.facts b { display: block; font-size: 13px; font-weight: 400; color: var(--meta); margin-bottom: 2px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; }
.stats div { display: flex; align-items: baseline; gap: 6px; }
.stats dt { font-size: 20px; font-weight: 500; }
.stats dd { margin: 0; color: var(--meta); font-size: 14px; }

form.stack { display: grid; gap: 12px; max-width: 560px; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; }
form.inline input { flex: 1 1 220px; }
label { font-weight: 500; font-size: 14px; display: grid; gap: 4px; }
input, textarea, select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raised); color: var(--text); width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--meta); }

ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 20px; }
pre, code, kbd { font-family: var(--mono); }
pre { white-space: pre-wrap; background: var(--raised-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: 13px; line-height: 1.6; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td, th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; font-weight: 400; color: var(--meta); }
.scroll { overflow-x: auto; }
.scroll table { min-width: 640px; overflow-wrap: normal; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 500; }
.legal h2 { font-size: 20px; }

/* Sponsors: every paid placement carries a visible "Sponsored" label */
.sp-label { font-size: 12px; color: var(--meta); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.sp-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.sp-strip a { text-decoration: none; }
.sp-strip .sp-open { margin-left: auto; color: var(--meta); }
.sp-strip .sp-open:hover { color: var(--text); }
ol.board { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
ol.board li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--raised); font-size: 15px; counter-increment: slot; }
ol.board li:first-child { border-top: 0; }
ol.board li::before { content: "#" counter(slot); font-size: 13px; color: var(--meta); min-width: 2.5ch; }
ol.board li a { font-weight: 500; }
ol.board li.open { background: transparent; }
ol.board li.open a { color: var(--meta); font-weight: 400; }
ol.board .meta { margin-left: auto; }

@media (max-width: 1240px) {
  nav.main { display: none; }
  details.menu { display: block; position: relative; }
  details.menu summary { list-style: none; }
  details.menu summary::-webkit-details-marker { display: none; }
  details.menu .panel { position: absolute; right: 0; top: 46px; background: var(--raised); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; min-width: 200px; display: grid; }
  details.menu .panel a { padding: 10px 12px; border-radius: 8px; text-decoration: none; }
}
@media (max-width: 640px) {
  .bar { gap: 8px; }
  .brand b { display: none; }
  .actions .hide-sm { display: none; }
  .hsearch kbd { display: none; }
  .hsearch input { padding-right: 12px; }
  .controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .controls .count { display: none; }
}

/* Tools dropdown: opens on hover or keyboard focus; inside the phone menu it is always open and indented */


/* Tool details page */
blockquote.quote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); }
blockquote.quote p { margin: 8px 0; }
ul.actions { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
ul.actions code { font-size: 13px; background: var(--raised-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
code { font-size: .9em; overflow-wrap: anywhere; }

/* Page numbers under listing grids */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 24px; }
.pager button { font: inherit; font-size: 14px; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.pager button:hover:not([disabled]) { background: var(--raised); }
.pager button[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager button[disabled] { opacity: .4; cursor: default; }
.pager .gap { color: var(--meta); padding: 0 4px; }
.pager .of { margin-left: auto; color: var(--meta); font-size: 14px; }
@media (max-width: 640px) { .pager .of { width: 100%; margin: 4px 0 0; } }

/* Forms: honeypot field hidden from people, Turnstile check sits above the submit button */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
