/* Hand-written, no framework and no CDN.
 *
 * It should work offline, with nothing installed and no build step; a framework
 * would add a toolchain to maintain and buy nothing for two pages.
 *
 * Follows the system theme. Every colour is a token on :root, redefined once
 * for dark, so a component never names a colour of its own. Company avatars get
 * a hue from app.js/companies.js (`--hue`) and take saturation and lightness
 * from the theme, so they read well in both.
 */

:root {
  --bg:            #f6f5f1;
  --surface:       #ffffff;
  --surface-2:     #f1f0ea;
  --surface-hover: #fbfaf7;
  --border:        #e5e3db;
  --border-strong: #cfccc1;
  --text:          #16171b;
  --text-dim:      #54565f;
  --text-faint:    #85868e;
  --accent:        #2f5bea;
  --accent-hover:  #2449c7;
  --accent-soft:   rgba(47, 91, 234, .10);
  --accent-ink:    #ffffff;
  --brand:         #d7263d;
  --good:          #127a52;
  --good-soft:     rgba(18, 122, 82, .10);
  --danger:        #b42318;
  --mark:          rgba(255, 196, 0, .38);
  --shadow:        0 1px 2px rgba(20, 20, 30, .04), 0 4px 16px rgba(20, 20, 30, .05);
  --shadow-lift:   0 2px 4px rgba(20, 20, 30, .05), 0 10px 28px rgba(20, 20, 30, .09);

  --av-bg-s: 65%;  --av-bg-l: 91%;
  --av-fg-s: 45%;  --av-fg-l: 30%;

  --radius:    14px;
  --radius-sm: 9px;
  --topbar-h:  58px;
  --maxw:      min(880px, 100% - 2.5rem);
  --maxw-wide: min(1080px, 100% - 2.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0f1013;
    --surface:       #17181c;
    --surface-2:     #1e2025;
    --surface-hover: #1b1d22;
    --border:        #2a2c33;
    --border-strong: #3b3e48;
    --text:          #ececef;
    --text-dim:      #a6a8b1;
    --text-faint:    #72747d;
    --accent:        #86a4ff;
    --accent-hover:  #a3bbff;
    --accent-soft:   rgba(134, 164, 255, .14);
    --accent-ink:    #0b1030;
    --brand:         #ff5a6e;
    --good:          #4fd1a5;
    --good-soft:     rgba(79, 209, 165, .12);
    --danger:        #ff9b9b;
    --mark:          rgba(255, 196, 0, .28);
    --shadow:        0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lift:   0 4px 20px rgba(0, 0, 0, .4);

    --av-bg-s: 30%;  --av-bg-l: 23%;
    --av-fg-s: 70%;  --av-fg-l: 80%;
  }
}

/* --- base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 1rem); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  padding: .7rem 1.1rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shell { width: var(--maxw); margin: 0 auto; flex: 1; }
.page-companies .shell { width: var(--maxw-wide); }

/* --- top bar ---------------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  width: var(--maxw-wide); height: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text); text-decoration: none;
  font-weight: 700; letter-spacing: -.015em; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; fill: var(--brand); }

.topnav { display: flex; align-items: center; gap: .25rem; }
.topnav a {
  padding: .45rem .75rem; white-space: nowrap;
  color: var(--text-dim); text-decoration: none;
  font-size: .92rem; font-weight: 560;
  border-radius: 999px;
}
.topnav a:hover { color: var(--text); background: var(--surface-2); }
.topnav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.topnav .topnav-cta { margin-left: .35rem; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); }
.topnav .topnav-cta:hover { color: var(--accent-hover); background: var(--accent-soft); border-color: var(--accent); }

/* --- hero + search ------------------------------------------------------------ */

/* The pitch is for a first visit only. Once results are on screen the hero
   collapses (see [data-state="results"] below) and the search bar takes over
   the top of the page, so the list starts as high as it can. */
.hero { padding: clamp(2rem, 7vh, 4rem) 0 1.25rem; transition: padding .3s var(--ease); }
.hero-copy { max-width: 42rem; }

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--brand);
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

.hero-title {
  margin: 0 0 .85rem;
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  font-weight: 760; letter-spacing: -.035em; line-height: 1.05;
}
.hero-title-accent { display: block; color: var(--text-dim); }

.hero-sub {
  margin: 0 0 1.6rem; max-width: 46ch;
  color: var(--text-dim); font-size: 1.04rem;
}
.hero-sub a { color: var(--text); font-weight: 600; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.hero-sub a:hover { color: var(--accent); text-decoration-color: currentColor; }

.search { position: relative; z-index: 10; }

.search-field {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.search-icon {
  flex: none; width: 19px; height: 19px; margin-left: .95rem;
  fill: none; stroke: var(--text-faint); stroke-width: 2; stroke-linecap: round;
}
.search-field:focus-within .search-icon { stroke: var(--accent); }

#q {
  flex: 1; min-width: 0;
  padding: .95rem .7rem;
  font: inherit; font-size: 1.05rem;
  color: var(--text); background: none; border: 0; outline: none;
}
#q::placeholder { color: var(--text-faint); }
#q::-webkit-search-cancel-button { display: none; }

.clear {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; margin-right: .2rem;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.clear svg { width: 14px; height: 14px; fill: none; stroke: var(--text-faint); stroke-width: 2.2; stroke-linecap: round; }
.clear:hover { background: var(--surface-2); }
.clear:hover svg { stroke: var(--text); }

.kbd {
  flex: none; margin-right: .55rem; padding: .05rem .45rem;
  font: 600 .75rem/1.5 var(--font); color: var(--text-faint);
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px;
}
.search-field:focus-within .kbd,
#q:not(:placeholder-shown) ~ .kbd { display: none; }

.go {
  flex: none; align-self: stretch;
  margin: .3rem; padding: 0 1.3rem;
  font: inherit; font-weight: 640;
  color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: calc(var(--radius) - 5px);
  cursor: pointer;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.go:hover { background: var(--accent-hover); }
.go:active { transform: translateY(1px); }
.go[disabled] { opacity: .5; cursor: default; }

.examples { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .85rem 0 0; }
.examples-label { color: var(--text-faint); font-size: .86rem; margin-right: .15rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
  padding: .3rem .75rem;
  font: inherit; font-size: .86rem; font-weight: 520;
  color: var(--text-dim); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }
.chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* Three promises, as plain lines rather than boxes: they are reassurance under
   a search bar, not three products to choose between. */
.promises {
  list-style: none; margin: 2.25rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.promises li {
  display: flex; gap: .65rem; align-items: flex-start;
  color: var(--text-dim); font-size: .88rem; line-height: 1.5;
}
.promises strong { display: block; color: var(--text); font-weight: 640; margin-bottom: .1rem; }
.promise-icon {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px;
  color: var(--accent); background: var(--accent-soft); border-radius: 7px;
  font-size: .8rem; font-weight: 700;
}

/* Once results show, the hero steps back: the pitch goes and the search bar
   sticks under the top bar, on its own band of page background so rows scroll
   under it cleanly. Driven by [data-state] on <body>. */
body[data-state="idle"] .shell { display: flex; flex-direction: column; justify-content: center; }
body[data-state="results"] .hero { padding: .5rem 0 0; }
body[data-state="results"] .hero-copy,
body[data-state="results"] .examples,
body[data-state="results"] .promises { display: none; }
body[data-state="results"] .search {
  position: sticky; top: var(--topbar-h);
  padding: .7rem 0 .6rem;
  background: var(--bg);
}
body[data-state="results"] .search::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
  background: linear-gradient(var(--bg), transparent);
  pointer-events: none;
}

/* --- results ------------------------------------------------------------------ */

.results { padding: 1.25rem 0 1rem; outline: none; }

.results-head { margin-bottom: .1rem; }
.results-title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 720; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.results-sub { margin: .15rem 0 0; color: var(--text-dim); font-size: .93rem; }

.related {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem;
  margin: .9rem 0 .1rem;
}
.related-label { color: var(--text-faint); font-size: .84rem; font-weight: 600; }

.toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text-dim); font-size: .85rem; cursor: pointer; user-select: none;
}
.toggle input { accent-color: var(--accent); width: 1rem; height: 1rem; cursor: pointer; }

.status {
  min-height: 1.1rem; margin: .5rem 0 .1rem;
  color: var(--text-faint); font-size: .84rem; font-variant-numeric: tabular-nums;
}
.status:empty { margin: .35rem 0 0; }
.status.error { color: var(--danger); }

/* One panel, hairline-separated rows -- not twenty floating cards. A list of
   twenty near-identical postings is scanned, so the rows carry the structure
   and the container carries the border. */
.roles {
  list-style: none; margin: .35rem 0 0; padding: 0;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.roles:empty { display: none; }

.role {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: .85rem;
  padding: .8rem 1rem;
  border-top: 1px solid var(--border);
  transition: background .14s var(--ease);
  animation: rise .25s var(--ease) both;
}
.role:first-child { border-top: 0; }
.role:hover { background: var(--surface-hover); }
.role:has(.role-link:focus-visible) { background: var(--surface-hover); }

@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.avatar {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: hsl(var(--hue, 220) var(--av-fg-s) var(--av-fg-l));
  background: hsl(var(--hue, 220) var(--av-bg-s) var(--av-bg-l));
  border-radius: 10px;
}

.role-main { min-width: 0; }
.role-title {
  margin: 0;
  font-size: 1rem; font-weight: 640; letter-spacing: -.01em; line-height: 1.35;
  overflow-wrap: anywhere;
}

/* The title's link covers the whole row, so the row is one target with one tab
   stop. Everything else in the row is quiet text, never a second link. */
.role-link { color: var(--text); text-decoration: none; }
.role-link::after { content: ""; position: absolute; inset: 0; }
.role-link:focus-visible { outline: none; }
.role:hover .role-link { color: var(--accent); }
.role:has(.role-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }

.role-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem;
  margin: .18rem 0 0;
  color: var(--text-faint); font-size: .86rem;
}
.role-company { color: var(--text-dim); font-weight: 560; }
.role-company + .role-facts::before { content: "· "; }
.role-facts { color: var(--text-faint); }
/* On a portal card the "via <portal>" line is the row's only identity, so it
   carries the weight the company name would have had. */
.role-meta > .role-facts:first-child { color: var(--text-dim); font-weight: 560; }
.role-facts { min-width: 0; overflow-wrap: anywhere; }

.tag {
  display: inline-flex; align-items: center;
  padding: .04rem .45rem;
  font-size: .7rem; font-weight: 650; letter-spacing: .02em;
  color: var(--text-dim); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px;
}
.tag-new { color: var(--good); background: var(--good-soft); border-color: transparent; }

.role-side { display: flex; align-items: center; gap: .6rem; }
.role-seen {
  color: var(--text-faint); font-size: .8rem; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.role-go {
  flex: none; width: 16px; height: 16px;
  fill: none; stroke: var(--text-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: .45;
  transition: opacity .14s var(--ease), stroke .14s var(--ease), transform .14s var(--ease);
}
.role:hover .role-go { opacity: 1; stroke: var(--accent); transform: translate(1px, -1px); }

/* skeletons */
.skeleton { animation: none; }
.skeleton .avatar { background: var(--surface-2); }
.skeleton .bar {
  display: block; height: .7rem; border-radius: 5px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skeleton .bar-title { width: 45%; height: .9rem; margin-bottom: .5rem; }
.skeleton .bar-meta { width: 25%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.empty {
  padding: 2rem 1.25rem; text-align: center;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
  list-style: none;
}
.empty h3 { margin: 0 0 .3rem; font-size: 1.02rem; font-weight: 650; }
.empty p { margin: 0; color: var(--text-dim); font-size: .92rem; }

.more-wrap { display: flex; justify-content: center; margin: .85rem 0 0; }
.more {
  padding: .55rem 1.25rem;
  font: inherit; font-size: .89rem; font-weight: 600;
  color: var(--text-dim); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer;
  transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.more:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border-strong); }
.more[disabled] { opacity: .5; cursor: default; }

/* --- mentions --------------------------------------------------------------- */

/* Deliberately quiet: these matched only in the description, so they are an
   offer to look further, not part of the answer. */
.mentions { margin: 1.25rem 0 0; }
.mentions summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .9rem;
  color: var(--text-dim); font-weight: 580; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; list-style: none;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.mentions summary:hover { color: var(--text); background: var(--surface-hover); }
.mentions summary::-webkit-details-marker { display: none; }
.mentions[open] summary { border-radius: var(--radius) var(--radius) 0 0; border-bottom-color: transparent; }
.chevron { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--text-faint); stroke-width: 2; transition: transform .2s var(--ease); }
.mentions[open] .chevron { transform: rotate(180deg); }
.mentions-note {
  margin: 0; padding: .1rem .9rem .6rem;
  color: var(--text-faint); font-size: .84rem;
  background: var(--surface); border: 1px solid var(--border); border-top: 0;
}

.mention-list {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface);
  border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.mention { position: relative; padding: .75rem .9rem; border-top: 1px solid var(--border); }
.mention:hover { background: var(--surface-hover); }
.mention-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; }
.mention-title { color: var(--text); font-weight: 620; font-size: .95rem; text-decoration: none; }
a.mention-title::after { content: ""; position: absolute; inset: 0; }
.mention:hover a.mention-title { color: var(--accent); }
.mention-company { color: var(--text-faint); font-size: .85rem; }
.mention-snippet {
  margin: .3rem 0 0;
  color: var(--text-dim); font-size: .85rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
mark { color: inherit; background: var(--mark); border-radius: 3px; padding: 0 .1em; }

/* --- portals ------------------------------------------------------------------ */

.portals { margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.section-head { margin-bottom: .15rem; }
.section-title { margin: 0; font-size: 1.08rem; font-weight: 700; letter-spacing: -.015em; }
.section-sub { margin: .15rem 0 0; color: var(--text-dim); font-size: .9rem; }

/* --- footer ------------------------------------------------------------------- */

.footer { margin-top: 4rem; border-top: 1px solid var(--border); }
.footer-inner {
  width: var(--maxw-wide); margin: 0 auto; padding: 1.3rem 0 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  color: var(--text-faint); font-size: .85rem;
}
.footer-links { display: flex; gap: 1.2rem; }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Company directory (/companies)
   ========================================================================== */

.page-head { padding: clamp(2rem, 6vh, 3.5rem) 0 1.25rem; }
.page-title {
  margin: 0 0 .5rem;
  font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 760; letter-spacing: -.03em; line-height: 1.08;
}
.page-sub { margin: 0; max-width: 60ch; color: var(--text-dim); font-size: 1rem; }

.dir-controls {
  position: sticky; top: calc(var(--topbar-h) + .6rem); z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  margin: .5rem 0 0; padding: .6rem 0;
  background: var(--bg);
}
.search-field.compact { flex: 1 1 280px; max-width: 420px; border-radius: var(--radius-sm); box-shadow: none; }
.search-field.compact input {
  flex: 1; min-width: 0;
  padding: .7rem .6rem;
  font: inherit; font-size: .95rem;
  color: var(--text); background: none; border: 0; outline: none;
}
.search-field.compact input::placeholder { color: var(--text-faint); }
.search-field.compact input::-webkit-search-cancel-button { display: none; }

.company-grid {
  list-style: none; margin: .75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: .75rem;
}
.company-grid .empty { grid-column: 1 / -1; }

.company-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .9rem;
  padding: 1rem 1.05rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.company-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lift); }
.company-card .avatar { width: 40px; height: 40px; font-size: .85rem; }

.company-main { min-width: 0; }
.company-name { margin: 0; font-size: 1rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.company-name a { color: var(--text); text-decoration: none; }
.company-name a:hover { color: var(--accent); }
.company-address {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem;
  margin: .25rem 0 0; color: var(--text-dim); font-size: .86rem;
}

.company-links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; margin-top: .55rem; }
.company-link { color: var(--accent); font-size: .87rem; font-weight: 620; text-decoration: none; }
.company-link::after { content: " \2197"; }
.company-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.company-host { color: var(--text-faint); font-size: .8rem; }
.company-city { white-space: nowrap; }

/* --- add-your-company --------------------------------------------------------- */

.add-company {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem;
  margin: 3.5rem 0 0; padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  scroll-margin-top: calc(var(--topbar-h) + 1.5rem);
}
/* Arriving from a link elsewhere ("Add a company"), the section says so for a
   moment instead of leaving the reader to find what changed. */
.add-company:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.add-copy h2 { margin: 0 0 .7rem; font-size: 1.35rem; font-weight: 720; letter-spacing: -.02em; }
.add-copy p { margin: 0 0 1rem; color: var(--text-dim); font-size: .95rem; }
.add-copy strong { color: var(--text); }
.add-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; color: var(--text-dim); font-size: .9rem; }
.add-rules li { display: flex; gap: .55rem; }
.add-rules span { flex: none; font-weight: 700; }
.add-rules li:first-child span { color: var(--good); }
.add-rules li:last-child span { color: var(--danger); }

/* What a submitter actually wants to know before typing: what we check, and
   when their roles show up. */
.add-next { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.add-next h3 {
  margin: 0 0 .6rem; color: var(--text-faint);
  font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.add-next ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; color: var(--text-dim); font-size: .89rem; line-height: 1.5; }
.add-next-note { margin: .8rem 0 0 !important; color: var(--text-faint); font-size: .85rem; }

.add-form { display: grid; gap: .95rem; align-content: start; }
.field { display: grid; gap: .32rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-dim); }
.field label small { font-weight: 400; color: var(--text-faint); }
.req { color: var(--brand); }

.field input,
.field textarea {
  width: 100%;
  padding: .68rem .8rem;
  font: inherit; font-size: .95rem;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 2.7rem; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-hint { color: var(--text-faint); font-size: .8rem; }

.add-form .go { margin: 0; padding: .75rem 1.4rem; }

/* Hidden from people and assistive tech; only a bot fills it in. Not
   display:none, because some bots skip those. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.add-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .2rem; }
.add-status { margin: 0; font-size: .88rem; color: var(--text-dim); }
.add-status.ok { color: var(--good); }
.add-status.error { color: var(--danger); }

/* ==========================================================================
   About (/about)
   ========================================================================== */

/* One reading column: the text, the facts strip and the contact panel all end
   at the same place, so the page has one edge rather than three. */
.page-about .shell { width: min(780px, 100% - 2.5rem); }
/* The lead fills the same column as the body, so the page has one left edge and
   one right edge rather than a narrower intro floating above wider text. */
.page-about .page-sub { max-width: none; }

.prose section { margin: 2rem 0 0; }
.prose h2 { margin: 0 0 .6rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; }
.prose p, .prose li { color: var(--text-dim); font-size: 1rem; line-height: 1.65; }
.prose p { margin: 0 0 .8rem; }
.prose ul { margin: 0; padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }
.prose code {
  padding: .05rem .35rem;
  font-size: .9em; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px;
}
.about-meta { margin-top: 2.5rem !important; color: var(--text-faint) !important; font-size: .88rem !important; }

/* Three facts, above the prose: the answers most readers came for, before they
   decide whether to read the rest. */
.facts {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.facts li { display: grid; gap: .3rem; padding: 1rem 1.05rem; background: var(--surface); }
.fact-key {
  color: var(--text-faint); font-size: .74rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
.fact-value { color: var(--text); font-size: .92rem; line-height: 1.45; }
.facts code { font-size: .85em; }

/* The promise a site owner came to check. Tinted rather than bordered, so it
   reads as a statement instead of another block of prose. */
.respect {
  margin: 2.25rem 0 0; padding: clamp(1.15rem, 3vw, 1.6rem);
  background: var(--accent-soft);
  border: 1px solid transparent; border-radius: var(--radius);
}
.respect h2 { margin: 0 0 .9rem; font-size: 1.1rem; line-height: 1.35; }
.respect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.respect-list li {
  position: relative; padding-left: 1.6rem;
  color: var(--text-dim); font-size: .95rem; line-height: 1.6;
}
.respect-list li::before {
  content: "✓"; position: absolute; left: 0; top: -.05em;
  color: var(--accent); font-weight: 700;
}
.respect-list strong { color: var(--text); }

/* Contact: the one thing a site owner is looking for, so it gets a panel of its
   own rather than a line in a paragraph. */
.contact {
  margin: 2.5rem 0 0; padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.contact h2 { margin-top: 0; }
.contact-lead { margin-bottom: 1rem !important; }
.contact-email {
  display: inline-block; margin-bottom: 1.1rem;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem); font-weight: 680; letter-spacing: -.01em;
  color: var(--accent); text-decoration: none;
  border-bottom: 2px solid var(--accent-soft);
}
.contact-email:hover { color: var(--accent-hover); border-bottom-color: currentColor; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.contact-list li { padding-left: 1rem; border-left: 2px solid var(--border); }
.contact-list strong { color: var(--text); }

/* --- small screens ------------------------------------------------------------- */

@media (max-width: 760px) {
  .promises { grid-template-columns: 1fr; gap: .85rem; margin-top: 1.75rem; }
  .facts { grid-template-columns: 1fr; }
  .add-company { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 620px) {
  :root { --topbar-h: 54px; --maxw: calc(100% - 1.75rem); --maxw-wide: calc(100% - 1.75rem); }
  .topnav { gap: .1rem; }
  .topnav a { padding: .35rem .55rem; font-size: .88rem; }
  .topnav a[href="/"] { display: none; }   /* the logo already goes home */
  .brand-name { font-size: .97rem; }
  .kbd { display: none; }
  .go { padding: 0 .95rem; font-size: .92rem; }
  #q { font-size: 1rem; padding: .85rem .5rem; }
  .hero-sub { font-size: .98rem; }

  /* Rows stay two lines at phone width: the arrow goes, and the title wraps
     into the space it leaves. */
  .role { grid-template-columns: auto minmax(0, 1fr); gap: .7rem; padding: .75rem .8rem; }
  .role-side { display: none; }   /* the whole row is the link; the date can go */
  .avatar { width: 34px; height: 34px; font-size: .75rem; border-radius: 9px; }
  .role-title { font-size: .97rem; }

  /* At this width the address usually wraps, and a leading "·" would dangle at
     the start of the new line. So it gets a line of its own, after the badge. */
  .role-meta { font-size: .82rem; gap: .15rem .4rem; }
  .role-facts { flex-basis: 100%; order: 2; }
  .role-meta .tag { order: 1; }
  .role-company + .role-facts::before { content: none; }

  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .footer-links { flex-wrap: wrap; gap: .5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
