/* Project site template v6 (20 Oct 2026) — the Better Outcomes look. One identical file in every Digital Worker's repo; copy it, never fork.
   One family, BO (shared/bo.ttf, regular and bold, taken from the Better Outcomes site), for sentences and data alike; headings weight 500
   (H1 64, H2 30); body 16–17; regular data never below 15px, hints never below 14px. Warm-white #f7f9f7, ink #152e34, muted #52676b,
   line #cbd8d5, soft #e8f0ed, accent teal #006f86 for links; near-black teal on the Night switch. Whitespace groups things, boxes are rare,
   one solid primary button, no gradients or glow. The shared top bar (shared/bar.js) sits on every page. */
@font-face { font-family: "Newsreader"; src: url("newsreader-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("newsreader-latin-500-normal.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("newsreader-latin-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "BO"; src: url("bo.ttf") format("truetype"); font-style: normal; font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f7f9f7; --panel: #ffffff; --sunk: #e8f0ed; --track: #e8f0ed; --line: #dde6e3; --line2: #cbd8d5;
  --text: #152e34; --text2: #2f464b; --muted: #52676b; --dim: #7f9296; --accent: #006f86;
  --btn: #152e34; --btn-ink: #ffffff; --btn-hover: #274349;
  --ok: #1f6f4a; --warn: #8a5a10; --bad: #a8372c;
  --shadow: 0 1px 1.5px #0000000a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "BO", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "BO", ui-sans-serif, system-ui, sans-serif; /* codes and scores: BO with tabular figures + slashed zero */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f191b; --panel: #142225; --sunk: #19292c; --track: #19292c; --line: #223336; --line2: #2c4144; --accent: #4cc0d8;
  --text: #eef4f2; --text2: #cbd8d5; --muted: #93a8ab; --dim: #647a7d;
  --btn: #eef4f2; --btn-ink: #152e34; --btn-hover: #ffffff;
  --ok: #73c995; --warn: #e0b061; --bad: #ec8b7f;
  --shadow: 0 1px 1.5px #00000040;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
code, .mono, .num { font-family: var(--mono); font-size: .9em; font-variant-numeric:tabular-nums slashed-zero; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* controls — 30px, 13.5px text, 7px radius */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--line2);
  border-radius: 7px; background: var(--panel); color: var(--text); font: 400 15px var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow); white-space: nowrap; transition: background .12s; }
.btn:hover { background: var(--sunk); }
.btn.primary { font-weight: 500; background: var(--btn); color: var(--btn-ink); border-color: var(--btn); box-shadow: none; }
.btn.primary:hover { background: var(--btn-hover); }
.btn.lg { height: 44px; padding: 0 18px; font-size: 16px; border-radius: 10px; }
.btn svg { width: 14px; height: 14px; }

.theme-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px;
  background: var(--panel); color: var(--muted); font: 400 15px var(--sans); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); }
.theme-btn:hover { color: var(--text); background: var(--sunk); }
.theme-btn svg { width: 13px; height: 13px; }
.theme-float { position: fixed; right: 14px; bottom: 14px; z-index: 60; }

/* tabs (Skills · Connectors · Plugins) and segmented (Yours | Discover) */
.tabs { display: inline-flex; gap: 2px; }
.tabs a, .tabs button { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none;
  color: var(--muted); font: 400 15px var(--sans); text-decoration: none; cursor: pointer; }
.tabs .on, .tabs [aria-current] { background: var(--sunk); color: var(--text); }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--track); }
.seg a, .seg button, .seg span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: none;
  color: var(--muted); font: 400 15px var(--sans); text-decoration: none; cursor: pointer; }
.seg .on, .seg [aria-current] { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line2), var(--shadow); }

/* page frame — narrow column, lots of air */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 32px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font: 600 23px var(--serif); letter-spacing: -.035em; color: var(--text); text-decoration: none; }
.menu { display: flex; align-items: center; gap: 6px; }

.hero { padding: 72px 0 24px; }
.eyebrow { color: var(--muted); font: 400 15px var(--sans); }
h1 { max-width: 850px; margin: 10px 0 18px; font: 500 64px/1.07 var(--serif); letter-spacing: -.05em; }
.lede { max-width: 680px; margin: 0; color: var(--text2); font-size: 21px; line-height: 1.6; }
.lede b { color: var(--text); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

section.s { padding: 64px 0 0; }
.s-head { margin-bottom: 18px; }
.s-head .n { color: var(--dim); font: 400 15px var(--sans); }
h2 { margin: 2px 0 8px; font: 500 30px/1.2 var(--serif); letter-spacing: -.025em; }
.s-head p { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; }
h3 { margin: 0; font: 500 20px/1.35 var(--serif); }
.sub { margin: 40px 0 0; color: var(--muted); font: 400 15px var(--sans); }

/* rows — the connector list */
.rows-head, .row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px; gap: 20px; align-items: center; }
.rows-head { padding: 12px 0 8px; color: var(--muted); font: 400 15px var(--sans); border-bottom: 1px solid var(--line); }
.row { min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row .name { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.row p { margin: 2px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.row .meta { color: var(--muted); font: 400 15px/1.45 var(--sans); }
.row .st { color: var(--muted); font: 400 15px var(--sans); white-space: nowrap; }
.tile { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); box-shadow: var(--shadow); color: var(--text); margin-top: -1px; }
.tile svg { width: 13px; height: 13px; }
.ck { width: 14px; height: 14px; display: block; color: var(--text2); }

/* points — short statements, no boxes */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { min-width: 0; }
.card p { margin: 4px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.card .k { display: block; margin-bottom: 2px; color: var(--dim); font: 400 15px var(--sans); }

/* grey panel (Build for the Claude Directory) */
.block { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-radius: 12px; background: var(--sunk); }
.block h3 { margin-bottom: 4px; }
.block p { margin: 0; color: var(--muted); font-size: 17px; }
.block .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.note { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 760px; }
.note b { color: var(--text); font-weight: 500; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px;
  background: var(--panel); box-shadow: var(--shadow); color: var(--text2); font: 400 15px var(--sans); }
.chips .ck { width: 12px; height: 12px; }

/* tables */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: 400 15px/1.5 var(--sans); font-variant-numeric:tabular-nums; }
th, td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { padding-top: 12px; padding-bottom: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
td { color: var(--muted); }
td b { color: var(--text); font-weight: 600; }
.pill { color: var(--text2); font: 400 15px var(--sans); white-space: nowrap; }
.pill.warn { color: var(--warn); } .pill.ok { color: var(--ok); } .pill.bad { color: var(--bad); }

.foot { padding: 72px 0 40px; color: var(--dim); font: 400 14px var(--sans); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 40px 0 8px; }
  h1 { font-size: 41px; } h2 { font-size: 25px; } .lede { font-size: 18px; }
  section.s { padding-top: 48px; }
  .grid, .grid.two { grid-template-columns: 1fr; gap: 18px; }
  .rows-head, .row { grid-template-columns: minmax(0, 1fr) auto; }
  .rows-head .meta, .row .meta { display: none; }
  .block { flex-direction: column; align-items: flex-start; }
}

/* shared top bar (v6) — shared/bar.js puts it first on every page */
.note a, .lede a, .card p a, .s-head p a { color: var(--accent); text-decoration-color: var(--accent); }
.bo-bar { display: flex; align-items: center; gap: 18px; min-height: 44px; padding: 6px 20px; border-bottom: 1px solid var(--line); background: var(--bg);
  font: 400 15px var(--sans); white-space: nowrap; position: relative; z-index: 50; }
.bo-bar a { color: var(--muted); text-decoration: none; }
.bo-bar a:hover, .bo-bar a[aria-current], .bo-bar a:focus-visible { color: var(--text); }
.bo-bar .bo-home { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; letter-spacing: -.02em; }
.bo-bar .bo-home svg { width: 24px; height: 24px; stroke: var(--accent); }
.bo-bar .bo-sp { flex: 1 1 auto; }
.bo-bar .bo-areas { display: flex; align-items: center; gap: 18px; }
.bo-bar .bo-dd { position: relative; display: inline-block; }
.bo-bar .bo-dd-list { display: none; position: absolute; left: -12px; top: 100%; min-width: 230px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; flex-direction: column; gap: 2px; }
.bo-bar .bo-dd.open .bo-dd-list { display: flex; }
.bo-bar .bo-dd-list a { padding: 8px 10px; border-radius: 4px; }
.bo-bar .bo-dd-list a:hover, .bo-bar .bo-dd-list a:focus-visible { background: var(--sunk); }
.bo-bar .bo-menu-btn { display: none; font: inherit; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; cursor: pointer; }
@media (max-width: 860px) {
  .bo-bar { flex-wrap: wrap; row-gap: 6px; }
  .bo-bar .bo-menu-btn { display: inline-block; margin-left: auto; }
  .bo-bar .bo-sp { display: none; }
  .bo-bar .bo-areas { display: none; order: 5; width: 100%; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 6px; }
  .bo-bar.bo-menu-open .bo-areas { display: flex; }
  .bo-bar .bo-dd-list { position: static; border: 0; padding: 4px 0 0 12px; min-width: 0; }
}
