/* AILaw components. One block per component ID from plan section 5 (C01–C30) and frames from section 4.
   Rule: no literal colours or sizes outside tokens.css except measured geometry noted inline. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* audit fix: component display rules were overriding the hidden attribute */
html { background: var(--page); color: var(--text-1); }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 24px; letter-spacing: .08px;
  background: var(--page); color: var(--text-1); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (max-width: 899px) { body { font-size: 15px; line-height: 22.5px; } }
a { color: inherit; text-decoration: none; transition: color var(--ease), background-color var(--ease), border-color var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
::selection { background: var(--selection); color: var(--text-1); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shell ---------- */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* C01 Wordmark */
.wordmark { font-size: 18px; line-height: 21px; letter-spacing: -.02em; color: var(--text-1); white-space: nowrap; }
.wordmark b { font-weight: 600; } .wordmark span { font-weight: 400; }
.footer .wordmark { opacity: .4; }

/* Header (R3-01) */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.header-nav { display: flex; align-items: center; gap: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.header-mobile { display: none; align-items: center; gap: 8px; }
@media (max-width: 899px) { .header-nav, .header-actions { display: none; } .header-mobile { display: flex; } }
.page-top { padding-top: var(--header-h); }

/* C02 Nav link (R3-07) */
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 37px; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; line-height: 21px; font-weight: 500; letter-spacing: .14px; color: var(--text-2); }
.nav-link:hover, .nav-link[aria-current] { color: var(--text-1); }
.nav-link .icon { width: 14px; height: 14px; }

/* C03 Primary button (R3-08) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border-radius: var(--r-pill);
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .14px; border: 1px solid transparent;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease); }
.btn .icon { width: 14px; height: 14px; }
.btn-sm { height: 32px; padding: 0 16px; } .btn-md { height: 36px; padding: 0 16px; } .btn-lg { height: 40px; padding: 0 24px; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); }
/* C04 Outline button (R4 "Join the community") */
.btn-outline { background: var(--raised); border-color: var(--line-2); color: var(--text-1); }
.btn-outline:hover { background: color-mix(in oklab, var(--ink) 4%, var(--raised)); }
.btn-outline img { width: 16px; height: 16px; border-radius: 3px; }
/* C05 Accent button (R2-03) */
.btn-accent { height: 40px; padding: 0 20px; background: var(--accent); color: #fff; border-color: rgba(255,255,255,.08);
  font-size: 16px; line-height: 22px; font-weight: 500; letter-spacing: -.15px; gap: 8px; }
.btn-accent:hover { background: color-mix(in srgb, var(--ink) 10%, var(--accent)); }
@media (max-width: 899px) { .btn-accent { height: 44px; width: 100%; } }

/* C06 Quiet text actions */
.see-all { font-size: 14px; line-height: 21px; color: var(--text-4); }
.see-all:hover { color: var(--text-2); }
.view-more { display: inline-block; margin-top: 15px; font-size: 14px; line-height: 21px; color: var(--text-4); }
.view-more:hover { color: var(--text-2); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 21px; color: var(--text-2); }
.back:hover { color: var(--text-1); } .back .icon { width: 14px; height: 14px; }
.inline-link { color: var(--text-1); border-bottom: 1px dashed var(--line-2); padding-bottom: 1px; }
.inline-link:hover { border-color: var(--text-3); }
.ext { display: inline-flex; align-items: center; gap: 2px; color: var(--text-2); }
.ext:hover { color: var(--text-1); } .ext .icon { width: 12px; height: 12px; }

/* C07 Dropdown menu (R1-09) */
.menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; z-index: 60; display: none;
  background: var(--page); border: 1px solid var(--line-1); border-radius: var(--r-card); padding: 8px 15px 13px; box-shadow: var(--shadow-float); }
.menu[data-open] .menu-panel { display: block; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 6px; margin: 0 -6px; border-radius: var(--r-chip);
  font-size: 14px; line-height: 21px; color: var(--text-1); text-align: left; letter-spacing: .14px; }
.menu-item:hover { background: var(--fill-hover-quiet); }
.menu-item img { width: 16px; height: 16px; border-radius: 3px; }
.menu-rule { height: 1px; background: var(--line-1); margin: 6px 0; }

/* C09 Search field */
.search-compact { flex: none; display: flex; align-items: center; width: 300px; height: 40px; padding: 8px 14px; border-radius: 100px; background: var(--fill-field); }
.search-compact input, .search-index input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text-1); }
.search-compact input { font-size: 16px; line-height: 24px; letter-spacing: .08px; }
.search-compact input::placeholder, .search-index input::placeholder { color: var(--text-4); }
.search-compact:focus-within, .search-index:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 899px) { .search-compact { width: 100%; } }
.search-index { display: flex; align-items: center; width: 520px; max-width: 100%; height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--raised); border: 1px solid var(--line-2); }
.search-index .icon { width: 14px; height: 14px; color: var(--text-4); }
.search-index input { padding: 0 12px; font-size: 14px; line-height: 20px; letter-spacing: .07px; }

/* C10 Sort select (R4-05) and C11 Filters trigger */
.select { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 8px 16px;
  border-radius: var(--r-pill); background: var(--raised); border: 1px solid var(--line-2); font-size: 14px; line-height: 20px; color: var(--text-1); }
.select .icon { color: var(--text-4); }
.select-sort { width: 160px; } /* R4-05 measured 160 x 44 */

/* C13 Segmented type pills (R4-04) */
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 8px 16px; border-radius: var(--r-pill);
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .14px; color: var(--text-2); }
.pill:hover { color: var(--text-1); }
.pill[aria-pressed="true"], .pill[aria-current] { background: var(--fill-pill-active); color: var(--text-1); }
@media (max-width: 639px) { .pills { mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); } }

/* C14 Underline tabs (R3-05) */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line-1); }
.tab { margin-bottom: -1px; padding: 8px 0; border-bottom: 1px solid transparent; font-size: 14px; line-height: 20px; letter-spacing: .08px; color: var(--text-2); }
.tab:hover { color: var(--text-1); }
.tab[aria-current], .tab[aria-selected="true"] { color: var(--text-1); border-bottom-color: var(--text-1); }

/* C16 icon well: copies R1 'Featured Automations' tile icon (grey variant). Exact fill and border: verify */
.icon-well { flex: none; width: 40px; height: 40px; border-radius: 22%; display: grid; place-items: center; background: var(--fill-pill-active); border: 1px solid var(--line-2); color: var(--text-2); }
.icon-well .icon { width: 18px; height: 18px; }
.menu-panel.left { left: 0; right: auto; }
.menu-item[aria-checked="true"] { font-weight: 500; }

/* C25 Logo well */
.logo { flex: none; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--line-1); border-radius: 22%; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-40 { width: 40px; height: 40px; } .logo-28 { width: 28px; height: 28px; }
.logo-16 { width: 16px; height: 16px; border-radius: 3px; border: 0; }
.mosaic { display: grid; grid-template-columns: 16px 16px; gap: 2px; padding: 3px; background: #fff; }
.mosaic img { width: 16px; height: 16px; border-radius: 3px; }

/* C15 Firm tile and C16 Collection tile (R1-05) */
.tile { position: relative; display: flex; align-items: center; gap: 12px; height: 77px; padding: 16px 16px 16px 16px; border-radius: var(--r-card);
  background: var(--fill-tile); min-width: 0; }
.tile { transition: background-color .1s; } .tile:hover { background: var(--fill-tile-hover); }
.tile-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.tile-title { font-size: 17px; line-height: 21px; font-weight: 400; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-desc { font-size: 14px; line-height: 16px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.tile-chevron { color: var(--text-4); margin-right: 3px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 639px) { .tiles { grid-template-columns: 1fr; } .tile-desc { font-size: 14px; } }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* R4 live: 3 columns at 1024, 2 at 768 */
@media (max-width: 639px) { .tiles-3 { grid-template-columns: 1fr; } }
[data-more-hidden] { display: none !important; }

/* C17 Firm row (R3-06) */
.rows { border-top: 0; }
.row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-1); }
.row-name { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-1); }
.row-desc { display: block; font-size: 12px; line-height: 16px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60ch; }
.row:hover .row-desc { color: var(--text-1); }
.row-meta { font-size: 14px; line-height: 20px; color: var(--text-2); text-align: right; white-space: nowrap; }
.row-meta.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.row-more { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-1); font-size: 12px; line-height: 16px; color: var(--text-2); }
.row-more b { font-weight: 400; color: var(--text-1); }
@media (max-width: 639px) { .row-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .row-meta { display: none; } }

/* C18 Person card (R4 member card) */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 639px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; align-items: center; gap: 12px; height: 66px; padding: 12px; border: 1px solid var(--line-1); border-radius: var(--r-card); }
a.person:hover { border-color: var(--line-2); }
.person img, .person .initials { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-1); object-fit: cover; }
.person .initials { display: grid; place-items: center; background: var(--fill-tile); font-size: 14px; color: var(--text-2); }
.person-name { display: flex; align-items: center; gap: 2px; font-size: 14px; line-height: 20px; font-weight: 500; }
.person-name .icon { width: 12px; height: 12px; color: var(--text-3); }
.person-role { font-size: 13px; line-height: 20px; color: var(--text-2); }

/* C19 Profile row (R2-08) */
.prow-list { display: grid; gap: 8px; }
.prow-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) { .prow-list.two { grid-template-columns: 1fr; } }
.prow { display: grid; grid-template-columns: 20px 1fr auto; column-gap: 16px; align-items: start; padding: 11px 16px; min-height: 46px; border-radius: var(--r-card); background: var(--white-row); }
.prow .icon { margin-top: 4px; color: var(--text-4); }
.prow img.fav { width: 16px; height: 16px; margin-top: 4px; border-radius: 3px; }
.prow-title { font-size: 16px; line-height: 24px; color: var(--text-1); }
.prow-desc { font-size: 16px; line-height: 24px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-right { font-size: 16px; line-height: 24px; color: var(--text-1); white-space: nowrap; }
.prow-right.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.prow-right.date { color: var(--text-3); font-size: 14px; }
.prow-main { min-width: 0; }
a.prow:hover .prow-title { text-decoration: none; color: var(--text-1); }
a.prow:hover { background: color-mix(in oklab, var(--ink) 2%, var(--white-row)); }
@media (max-width: 899px) { .prow-title, .prow-desc, .prow-right { font-size: 15px; line-height: 22.5px; } }

/* C20 Prompt box (R2-04) */
.prompt { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 16px; border-radius: var(--r-card); background: var(--white-row); }
.prompt code { font-family: var(--font-mono); font-size: 16px; line-height: 24px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt button { color: var(--text-4); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; }
.prompt button:hover { color: var(--text-1); }
@media (max-width: 899px) { .prompt { height: 54.5px; } .prompt code { font-size: 15px; } } /* R2-04 390 measured */

/* C21 Section header (R1-03 + R2-07) */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 0 8px; }
.section-label { font-size: 17px; line-height: 21px; font-weight: 500; letter-spacing: .08px; color: var(--text-2); }
.section-label .count { margin-left: 4px; font-weight: 400; color: var(--text-4); }

/* C22 Rail (R1 + R2-05) */
.rail-title { font-size: 17px; line-height: 21px; color: var(--text-2); }
.rail-title a:hover { color: var(--text-1); }
.rail-nav { display: grid; gap: 8px; margin-top: 48px; }
.rail-nav + .rail-nav { margin-top: 24px; }
.rail-nav a { font-size: 16px; line-height: 24px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* keep R1 32 px pitch */
.rail-nav a:hover, .rail-nav a[aria-current] { color: var(--text-1); }
.rail-meta { display: grid; gap: 8px; margin-top: 48px; font-size: 16px; line-height: 24px; color: var(--text-2); }
.rail-meta b { font-weight: 400; color: var(--text-1); }
.rail-meta button { text-align: left; color: var(--text-2); }
.rail-meta button:hover { color: var(--text-1); }
.rail-toc { display: grid; gap: 6px; margin-top: 40px; }
.rail-toc a { font-size: 14px; line-height: 21px; color: var(--text-2); }
.rail-toc a[data-active] { color: var(--text-1); }

/* C23 Tag chip */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
/* D-detail live 2026-11-28: 26 tall, mono 12/16, fill ink 8%, border ink 8%, radius 8, padding 4 8 */
.tag { display: inline-flex; align-items: center; height: 26px; padding: 4px 8px; border-radius: var(--r-card); background: var(--fill-pill-active); border: 1px solid var(--line-1);
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .08px; color: var(--text-2); }
.tag.first { color: var(--text-1); }

/* C24 Accordion card */
.faq { display: grid; gap: 12px; }
/* D-detail live 2026-11-28: closed item 60 tall (1 + 19 + 20 + 19 + 1), header x+17 */
.acc { border: 1px solid var(--line-1); border-radius: var(--r-accordion); padding: 19px 16px; }
.acc summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; line-height: 20px; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { color: var(--text-3); transition: transform var(--ease); }
.acc[open] summary .icon { transform: rotate(90deg); }
.acc-body { margin-top: 19px; padding: 16px; border-radius: var(--r-accordion); background: var(--raised); border: 1px solid var(--line-1); }

/* C26 Empty state */
.empty { padding: 64px 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--text-2); }
.empty a { display: inline-block; margin-top: 8px; }

/* C27 Footer (R3-09) and C28 Theme toggle */
.footer { margin-top: 96px; border-top: 1px solid var(--line-1); }
.footer-inner { padding-top: 64px; padding-bottom: 64px; }   /* keep .shell side gutters (D footer columns at x 24) */
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 767px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer h2 { font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 17px; }   /* D: first link 40 below heading top (inline box) */
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }   /* D: 36 px link pitch */
.footer li a { font-size: 14px; line-height: 20px; color: var(--text-2); }
.footer li a:hover { color: var(--text-1); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-1); }
.theme-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-1); border-radius: var(--r-pill); }
.theme-toggle button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-pill); color: var(--text-2); }
.theme-toggle button[aria-pressed="true"] { background: var(--fill-pill-active); color: var(--text-1); }
.theme-toggle .icon { width: 14px; height: 14px; }

/* C29 Mobile menu (R1-10) */
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; background: var(--page); padding: 0 16px; display: none; overflow: auto; }   /* D 390: panel from y 56, page bg */
.mobile-menu[data-open] { display: block; }
.mobile-menu-top { display: none; }
.mobile-menu-links, .mobile-menu-sub { display: grid; margin: 0; }
.mobile-menu-links a, .mobile-menu-sub a { display: block; padding: 20px 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-2); }   /* rows 60 tall */
.mobile-menu-links a[aria-current] { color: var(--text-1); }
.mobile-menu > .btn { margin-top: 24px; height: 36px; }

.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; color: var(--text-1); }
.icon-btn .icon { width: 24px; height: 24px; stroke-width: 1.75; }

/* C30 Form field */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; }
.field input, .field select, .field textarea { height: 44px; padding: 0 14px; border-radius: var(--r-card); background: var(--raised); border: 1px solid var(--line-2); font: inherit; font-size: 16px; color: var(--text-1); }
.field textarea { height: auto; min-height: 160px; padding: 12px 14px; }

/* ---------- Frames ---------- */
/* Frame A hero (R3) */
.hero { padding-top: 84px; text-align: center; } /* H1 top at 144 px from the viewport (R3-02), header is 60 */
@media (max-width: 767px) { .hero { padding-top: 56px; } } /* 112 - 56 */
.display { max-width: 980px; margin: 0 auto; font-size: clamp(42px, 4vw + 20px, 72px); line-height: .98; font-weight: 500; letter-spacing: -.04em; }
.hero-sub { max-width: 760px; margin: 20px auto 0; font-size: 16px; line-height: 28px; color: var(--text-2); letter-spacing: 0; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 56px; }
@media (max-width: 639px) { .hero-actions { flex-direction: column; } .hero-actions .menu, .hero-actions .menu > .btn { width: 100%; } }
.home-col { max-width: var(--main); margin: 80px auto 0; }
.home-section + .home-section { margin-top: 56px; }
.memo p { padding: 0 8px; } .memo p + p { margin-top: 12px; }

/* Frame A index (R4) */
.index-head { padding-top: 68px; /* H1 at 128 px from the viewport (R4-01) */ display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
@media (max-width: 767px) { .index-head { padding-top: 40px; flex-direction: column; } }
.index-h1 { font-size: clamp(32px, 2vw + 20px, 52px);   /* R4 live: 45.6 at 1280, 40.48 at 1024, 35.36 at 768, 32 at 390 */ line-height: 1.02; font-weight: 500; letter-spacing: -.03em; }
.index-sub { margin-top: 8px; max-width: 680px; font-size: 16px; line-height: 28px; color: var(--text-2); letter-spacing: 0; }
.controls { display: flex; align-items: center; gap: 16px; margin-top: 48px; flex-wrap: nowrap; }
.controls .spacer { flex: 1; }
@media (max-width: 1099px) { .controls { flex-wrap: wrap; } .controls .search-index { width: 100%; } .controls .spacer { display: none; } }
.type-pills { margin-top: 24px; }
.results { margin-top: 32px; }

/* Frame B (R1/R2) */
.frame-b { display: grid; grid-template-columns: var(--rail) minmax(0, var(--main)); column-gap: 20px; padding-top: 107px; }
.frame-b .rail { position: sticky; top: 120px; align-self: start; padding-top: 2px; }
@media (max-width: 899px) { .frame-b { grid-template-columns: minmax(0, 1fr); padding-top: 124px; } /* rail label at 182 px (R1/R2 390 capture) */
  .frame-b .rail { position: static; } .frame-b .rail .rail-nav, .frame-b .rail .rail-meta { display: none; }
  .main-col > .back { margin-top: 19px; } /* profile H1 at 260.8 px (R2 390) */ }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 8px; }
@media (max-width: 899px) { .title-row { flex-direction: column; align-items: stretch; gap: 22px; margin-top: 37px; padding: 0; } } /* H1 at 239.6 px (R1 390) */
.page-h1 { font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -.08px; }
.intro { margin-top: 16px; padding: 0 8px; color: var(--text-2); max-width: 680px; }
.b-section { margin-top: 56px; }
.b-section.first { margin-top: 36px; }
.prose { padding: 0 8px; } .prose p + p { margin-top: 12px; } .prose h3 { font-size: 16px; line-height: 24px; font-weight: 500; margin: 20px 0 4px; }

.main-col { min-width: 0; }
/* Profile identity (R2-01) */
.identity { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; padding-left: 8px; }
.identity-name { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-h1 { font-size: 28px; line-height: 34px; font-weight: 400; letter-spacing: -.08px; padding-top: 3px; }
@media (max-width: 899px) { .identity { flex-direction: column; align-items: stretch; } }
.summary { margin-top: 34px; padding: 0 8px; }
.profile-tags { margin-top: 16px; padding: 0 8px; }
.profile-prompt { margin-top: 31px; }
.p-section { margin-top: 44px; }
.p-section.related { margin-top: 96px; }
.rail-meta-mobile { display: none; }
@media (max-width: 899px) { .rail-meta-mobile { display: grid; margin-top: 24px; padding: 0 8px; font-size: 15px; line-height: 22.5px; } } /* R2 390: rail meta stays a list under the summary */

/* Sheet (sources) */
.sheet { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(0,0,0,.24); }
.sheet[data-open] { display: grid; place-items: center; }
.sheet-panel { width: min(560px, calc(100vw - 40px)); max-height: 80vh; overflow: auto; background: var(--page); border: 1px solid var(--line-1); border-radius: var(--r-accordion); box-shadow: var(--shadow-float); padding: 20px; }
.sheet-panel h2 { font-size: 17px; line-height: 21px; font-weight: 500; margin-bottom: 8px; }
.sheet-note { font-size: 14px; line-height: 20px; color: var(--text-2); margin-bottom: 16px; }
.src { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-1); font-size: 14px; line-height: 20px; }
.src span { color: var(--text-3); font-family: var(--font-mono); font-size: 13px; }

/* Benchmark overlay (tooling, not part of the design) */
html.show-bm [data-bm] { outline: 1px dashed #e5484d; outline-offset: -1px; position: relative; }
html.show-bm [data-bm]::after { content: attr(data-bm); position: absolute; left: 0; top: 0; z-index: 99; transform: translateY(-100%);
  font: 500 10px/14px var(--font-mono); letter-spacing: 0; color: #fff; background: #e5484d; padding: 0 4px; white-space: nowrap; pointer-events: none; }
.bm-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 100; font: 500 12px/16px var(--font-mono); padding: 8px 12px; border-radius: 999px; background: #e5484d; color: #fff; }


/* ===== R2 detail re-port (Figma page, master), 2026-11-28 ===== */
.frame-b.detail { padding-top: 104px; }                      /* rail title and Back at 164 */
.frame-b.detail .rail { padding-top: 0; top: 104px; }
.frame-b.detail .rail-title { font-size: 17px; line-height: 28px; }
.frame-b.detail .rail-meta { margin-top: 45px; }            /* first meta line at 237 (164 + 28 + 45) */
.frame-b.detail .main-col > .back { font-size: 14px; line-height: 20px; color: var(--text-60); }
.frame-b.detail .main-col > .back:hover { color: var(--text-1); }
/* Section label (R2 "Skills 17"): link, padding-left 8, gap 6, 16/24 500, count 400 at 30% */
.p-label { display: flex; align-items: baseline; gap: 6px; padding-left: 8px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.p-label a { display: inline-flex; gap: 6px; border-radius: 4px; }
.p-label a:hover { color: var(--text-1); }
.p-label .count { font-weight: 400; color: var(--text-30); }
.frame-b.detail .p-section { margin-top: 34px; }            /* last element of a section -> next label */
.frame-b.detail .p-section.first { margin-top: 44px; }      /* copy box -> first label */
.frame-b.detail .p-section.related { margin-top: 179px; }   /* last card -> "Related" */
.related-label { padding-left: 8px; font-size: 17px; line-height: 21px; font-weight: 400; color: var(--text-2); margin-bottom: 12px; }
/* Grouped card: rows contiguous, 1 px divider, 71 px pitch */
.pcard { background: var(--white-row); border-radius: var(--r-card); overflow: hidden; }
.pcard .prow { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 16px; align-items: start; padding: 12px 14px 12px 18px; min-height: 0; border-radius: 0; background: none; }
.pcard .prow + .prow { border-top: 1px solid var(--line-1); }
.pcard .prow[data-more-hidden] { display: none; }
.pcard .prow > .icon, .pcard .prow > img.fav { width: 18px; height: 18px; margin-top: 2px; color: var(--icon-quiet); }
.pcard .prow-main { display: grid; gap: 2px; }
.pcard .prow-title, .pcard .prow-desc, .pcard .prow-right { font-size: 16px; line-height: 22px; }
.pcard .prow-desc { color: var(--text-2); }
.pcard .prow-right { color: var(--text-2); }
.pcard .prow-right.date { font-size: 16px; color: var(--text-3); }
.pcard a.prow:hover { background: color-mix(in oklab, var(--ink) 2%, var(--white-row)); }
.p-more { display: inline-block; margin-top: 8px; padding-left: 8px; font-size: 14px; line-height: 21px; color: var(--text-60); }
.p-more:hover { color: var(--text-1); }
.frame-b.detail .faq, .frame-b.detail .people, .frame-b.detail .prose { margin-top: 0; }
@media (max-width: 899px) {
  .frame-b.detail { padding-top: 112px; }                    /* rail title at 168 */
  .frame-b.detail .main-col > .back { margin-top: 22px; }   /* Back at 218 */
  .pcard .prow-title, .pcard .prow-desc, .pcard .prow-right { font-size: 15px; }
  .p-label { font-size: 16px; line-height: 24px; }
}
.frame-b.detail .identity { margin-top: 18px; align-items: flex-start; }   /* H1 at 206 */
.frame-b.detail .identity-name { align-items: flex-start; }
.frame-b.detail .identity .btn-accent { margin-top: 2px; }   /* Visit button at 208 */
.frame-b.detail .profile-h1 { padding-top: 0; }               /* H1 at 206 */
.frame-b.detail .summary { margin-top: 31px; }                /* description at 279 */
.frame-b.detail .profile-prompt { margin-top: 16px; }         /* tags -> copy box 16 */
@media (max-width: 899px) {
  .frame-b.detail .identity { padding-left: 0; }
  .frame-b.detail .identity-name { padding-left: 8px; }
  .frame-b.detail .identity .btn-accent { margin-top: 7.5px; } /* button at 323, 350 wide */
  .frame-b.detail .rail-meta-mobile { margin-top: 33px; }      /* description -> meta 33 */
}

/* ===== Marketing-page copies: N (cursor.com/blog), J (/careers), A (/security), C (/contact-sales). Live capture 2026-11-28 ===== */
.m-main.pg-news, .m-main.pg-jobs { padding-top: 112px; }           /* content at header + 112 */
.m-main.pg-about { padding-top: 134.4px; }                      /* main padding v6 */
.m-main.pg-contact { padding-top: 67.2px; }                     /* v3 */
.m-wrap + .footer { margin-top: 67.2px; }
.m-h1 { font-size: 26px; line-height: 32.5px; font-weight: 400; letter-spacing: -.325px; }   /* md-lg statement */
.m-h2 { font-size: 26px; line-height: 32.5px; font-weight: 400; letter-spacing: -.325px; }
.m-statement { margin-top: 33.5px; font-size: 26px; line-height: 32.5px; letter-spacing: -.325px; }
.sep { margin: 0 4px; }                                      /* mx-1 */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 5px; height: 27.5px; padding: 5.6px 10.5px 5.88px; border-radius: var(--r-pill);
  background: var(--fill-pill-active); border: 1px solid color-mix(in oklab, var(--ink) 3%, transparent); font-size: 14px; line-height: 14px; letter-spacing: .14px; color: var(--text-1); }
.dd-btn:hover { background: var(--fill-tile); }

/* N · News */
.news-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 67.2px; }
.topic-nav { display: flex; flex-wrap: wrap; margin-left: -10px; }
.topic-nav a { padding: 7.47px 10px; font-size: 16px; line-height: 24px; letter-spacing: .08px; color: var(--text-1); opacity: .5; text-transform: capitalize; transition: opacity var(--ease); }   /* N live: idle .5 */
.topic-nav a:hover, .topic-nav a[aria-current] { opacity: 1; }
.topic-dd { display: none; }
.m-search { position: relative; flex: none; width: 192px; height: 33.5px; }
.m-search .icon { position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--text-60); pointer-events: none; }
.m-search input { width: 100%; height: 100%; padding: 3.73px 32px; border-radius: var(--r-pill); border: 1px solid var(--line-10); background: var(--fill-field);
  font: inherit; font-size: 16px; line-height: 24px; color: var(--text-1); outline: none; }
.m-search input::placeholder { color: var(--text-60); }
.m-search input:hover { background: var(--fill-tile); }
.m-search input:focus { border-color: var(--text-1); background: var(--fill-tile); }   /* N live: hover/focus card-hover */
.list-card { position: relative; margin-top: 22.4px; border-radius: 4px; background: var(--fill-field); }
.list-card::before, .role-card::before, .toc-card::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-0); border-radius: 4px; pointer-events: none; }
.n-row { display: grid; grid-template-columns: 252px minmax(0, 1fr) 311.2px 58.8px;   /* firm 242.7 + 68.5 lead; read time 48.5 + 10.3 */ align-items: start; padding: 13.07px 17.5px 14.93px;
  font-size: 16px; line-height: 24px; letter-spacing: .08px; border-radius: 4px; }
.n-row:first-child { padding-top: 16.8px; }                   /* first row 55.7 tall */
.n-row + .n-row { margin-top: 1px; }                          /* 53 px pitch */
.n-row[data-more-hidden], .n-row[data-filtered], .role[data-more-hidden], .role[data-filtered] { display: none; }
.n-row:hover { background: var(--fill-tile); }
.n-meta { color: var(--text-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.n-title { color: var(--text-1); }
.n-firm { margin-left: 68.5px; color: var(--text-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-last { margin-left: 10.3px; text-align: right; color: var(--text-40); }
.n-more { display: block; width: calc(100% - 35px); margin: 18px 17.5px 0; padding: 13.07px 17.5px 14.93px; border-radius: 4px; background: var(--fill-tile);
  font-size: 16px; line-height: 24px; letter-spacing: .08px; color: var(--text-1); }
.list-card > .n-more { margin-bottom: 17.5px; }
.n-more:hover { background: var(--fill-pill-active); }

/* J · Jobs */
.jobs-intro { width: 729.7px; max-width: 100%; margin: 0 auto; }
.roles { width: 615px; max-width: 100%; margin: 144.5px auto 0; }
.roles-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.roles-head h2 { font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: .08px; }
.dd-group { display: flex; gap: 8px; }
.dd-btn[aria-expanded="true"] .glyph { transform: rotate(180deg); }
.flyout { position: absolute; top: calc(100% + 9.5px); left: 0; z-index: 30; min-width: 160px; max-height: 391px; overflow: auto; padding: 7.5px 0; border-radius: 4px;
  background: var(--fill-tile); box-shadow: var(--shadow-flyout); border: 1px solid var(--line-5); backdrop-filter: blur(24px); background-color: color-mix(in oklab, var(--page) 94%, var(--ink)); }
.flyout button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4.67px 15px; font-size: 14px; line-height: 21px; letter-spacing: .14px; color: var(--text-1); text-align: left; white-space: nowrap; }
.flyout button[aria-selected="true"] { color: var(--accent); }
.radio { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-10); display: grid; place-items: center; }
[aria-selected="true"] > .radio { background: var(--accent); border-color: var(--accent); }
[aria-selected="true"] > .radio::after { content: ""; width: 6px; height: 3px; border: 1.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.role-list { display: grid; gap: 10px; margin-top: 15.6px; }
.role-card { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 13.4px 15px 15px; border-radius: 4px; background: var(--fill-field); }
.role-card:hover { background: var(--fill-tile); }
.role-card:focus-visible { outline: 2px solid var(--text-1); outline-offset: .3ch; }
.role-main { display: grid; min-width: 0; }
.role-title { font-size: 16px; line-height: 24px; letter-spacing: .08px; color: var(--text-1); }
.role-meta { font-size: 16px; line-height: 24px; color: var(--text-60); }
.role-apply { flex: none; font-size: 16px; line-height: 24px; color: var(--accent); }
.role-card:hover .role-apply { color: color-mix(in oklab, var(--accent) 75%, transparent); }
.role-more { width: 100%; margin: 10px 0 0; }

/* A · About */
.about { width: 615px; max-width: 100%; margin: 0 auto; }
.a-h1 { font-size: 36px; line-height: 43.2px; font-weight: 400; letter-spacing: -.72px; }
.updated { margin-top: 7.8px; color: var(--text-60); }
.toc-card { position: relative; margin-top: 44.8px; padding: 13.4px 15px 15px; border-radius: 4px; background: var(--fill-field); }
.toc-toggle { display: flex; justify-content: space-between; width: 100%; font-size: 14px; line-height: 21px; color: var(--text-60); }
.toc-toggle h3 { font: inherit; letter-spacing: .14px; }
.toc-card ul { list-style: none; margin: 2px 0 0; padding: 0; }
.toc-card li a { display: block; padding: 1.87px 0; font-size: 14px; line-height: 21px; letter-spacing: .14px; color: var(--text-1); }
.toc-card li a:hover { text-decoration: underline; text-underline-offset: .125em; }
.toc-card[data-closed] ul { display: none; }
.a-prose { margin-top: 44.8px; }
.a-prose p { font-size: 16px; line-height: 24px; letter-spacing: .08px; }
.a-prose p + p { margin-top: 22.4px; }
.a-prose h2 { position: relative; margin-top: 44.8px; font-size: 22px; line-height: 28.6px; font-weight: 700; letter-spacing: -.11px; }
.a-prose h2 + p { margin-top: 11.4px; }
.a-prose .anchor { position: absolute; left: -28px; top: 0; font-weight: 400; color: color-mix(in oklab, var(--ink) 50%, transparent); }
.a-prose a:not(.anchor) { text-decoration: underline 1px; text-underline-offset: .125em; text-decoration-color: color-mix(in oklab, var(--ink) 50%, transparent); }

/* C · Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.contact-p { margin-top: 22.4px; color: var(--text-60); }
.form-card { padding: 20px; border-radius: var(--r-card); background: var(--fill-field); border: 1px solid color-mix(in oklab, var(--ink) 3%, transparent); }
.m-h2 { padding-top: 1px; }
.c-form { margin-top: 22.5px; display: grid; gap: 22px; }
.c-field { display: grid; gap: 8px; }
.c-field label { font-size: 14px; line-height: 21px; letter-spacing: .14px; }
.req { color: var(--accent); }
.c-input { width: 100%; height: 44.2px; padding: 8.96px 10px 9.28px; border-radius: 4px; border: 1px solid var(--line-10); background: var(--fill-field); font: inherit; font-size: 16px; line-height: 24px; color: var(--text-1); outline: none; }
.c-input::placeholder, .c-select .ph { color: var(--text-60); }
.c-input:hover { background: var(--fill-tile); }
.c-input:focus { border-color: var(--text-1); background: var(--fill-tile); }
.c-select { display: flex; align-items: center; justify-content: space-between; padding-right: 10px; text-align: left; cursor: pointer; }
.c-select .icon { width: 14px; height: 14px; color: var(--text-60); }
.c-listbox { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; list-style: none; margin: 0; padding: 0; border-radius: 4px; border: 1px solid var(--line-10); background: var(--page); box-shadow: var(--shadow-listbox); overflow: hidden; }
.c-listbox li { padding: 8px 10px; font-size: 16px; line-height: 24px; cursor: pointer; }
.c-listbox li:hover, .c-listbox li:focus { background: var(--fill-tile); outline: none; }
.c-continue { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 43.3px; padding: 12.48px 21.6px 12.8px; border-radius: var(--r-pill); background: var(--primary); color: var(--page); font-size: 16px; line-height: 16px; }
.c-continue:hover { background: var(--primary-hover); }
.c-continue:focus-visible, .role-card:focus-visible, .n-row:focus-visible { outline: 2px solid var(--text-1); outline-offset: .3ch; }   /* N/J/C live */

@media (max-width: 899px) {
  .m-main.pg-news, .m-main.pg-jobs { padding-top: 105px; } .m-main.pg-about { padding-top: 126px; } .m-main.pg-contact { padding-top: 42px; }
  .m-h1, .m-h2, .m-statement { font-size: 24.375px; line-height: 30.47px; letter-spacing: -.305px; }
  .topic-nav { display: none; } .topic-dd { display: inline-flex; height: 34.8px; padding: 8.85px 12px 9px; font-size: 15px; line-height: 15px; background: var(--fill-tile); }
  .m-search { width: 180px; height: 35.1px; } .m-search input { font-size: 15px; padding: 6.75px 30px 6.9px; }
  .n-row { grid-template-columns: 1fr; padding: 12.25px 16.4px 14px; font-size: 15px; line-height: 22.5px; }
  .n-row:first-child { padding-top: 15.75px; }
  .n-firm { margin: 10.5px 0 0; } .n-last { display: none; }
  .n-more, .role-title, .role-meta, .role-apply, .roles-head h2, .a-prose p { font-size: 15px; line-height: 22.5px; }
  .roles-head { flex-direction: column; align-items: flex-start; gap: 9.5px; }
  .dd-btn:not(.topic-dd) { height: 30.6px; padding: 6.75px 12px 6.9px; font-size: 15px; line-height: 15px; }
  .role-card { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 14px 14px; }
  .a-h1 { font-size: 33.75px; line-height: 40.5px; letter-spacing: -.675px; }
  .a-prose h2 { font-size: 20.625px; line-height: 26.8px; } .a-prose .anchor { display: none; }
  .contact-grid { grid-template-columns: 1fr; } .form-card { order: -1; padding: 14px; border-radius: 7.5px; }
  .c-input { height: 41.6px; padding: 8.4px 9.375px 8.7px; font-size: 15px; } .c-continue { height: 44px; font-size: 15px; }
}
/* Index pages (R1 marketplace home, live 2026-11-28): first section 36 below the intro (master), 48 between sections, View N more 12 below */
.idx-section { margin-top: 48px; }
.main-col > .intro + .idx-section { margin-top: 36px; }
.idx-more { margin-top: 12px; padding-left: 8px; font-size: 13px; line-height: 19.5px; }
.tile[data-more-hidden] { display: none; }
/* R1 title row, live: a one-line H1 sits at 167 with the search at 164; a two-line H1 keeps 167 with the search centred (181).
   Negative block margins stop the 40 px search from making the row taller than the H1. */
@media (min-width: 900px) { .title-row .search-compact { margin: -3px 0; } }

/* ===== Owner overrides, 2026-11-28 ===== */
h1, .display, .page-h1, .index-h1, .profile-h1, .m-h1, .a-h1 { font-family: var(--font-display); }
/* Country flags in place of the pin icon (rendered from Noto Color Emoji) */
.icon-well.flag-well { background: none; border: 0; }
.icon-well.flag-well img { width: 30px; height: auto; display: block; }
/* Ask AI hero button: assistant logos on the left */
.ai-stack { display: inline-flex; align-items: center; margin-right: 4px; }
.ai-stack img { width: 20px; height: 20px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 0 0 2px var(--primary); object-fit: contain; }
.ai-stack img + img { margin-left: -6px; }

/* Audit fixes 2026-11-28 */
.pcard, .prompt { box-shadow: 0 0 0 1px var(--line-1); }   /* white cards need an edge on the near-white #fefefe page; shadow keeps the measured geometry */
.c-form textarea.c-input { height: auto; min-height: 112px; resize: vertical; }
.c-note { font-size: 14px; line-height: 21px; color: var(--text-60); }
.toc-toggle .toc-title { font: inherit; }
/* Glossary (A template): run-in terms */
.g-term { font-weight: 500; }
.a-prose p[id] { scroll-margin-top: 80px; }
/* SEO plan: rail links and the In short line */
.rail-meta a.meta-link { color: inherit; text-decoration: none; }
.rail-meta a.meta-link:hover { text-decoration: underline; text-underline-offset: 2px; }
/* client cards + testimonials (Nov 29 2026) */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.client { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 8px; border-radius: var(--r-card); background: var(--fill-tile); color: var(--text-1); font-size: 14px; line-height: 18px; font-weight: 500; text-decoration: none; }
a.client:hover { background: color-mix(in oklab, var(--ink) 10%, transparent); }
.client .mono { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--white-row); border: 1px solid var(--line-1); font-size: 13px; font-weight: 600; color: var(--text-2); }
.client .mono img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.client span:last-child { overflow-wrap: anywhere; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quote { margin: 0; padding: 16px; border-radius: var(--r-card); background: var(--fill-tile); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.quote p { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-1); }
.quote footer { font-size: 13px; line-height: 18px; color: var(--text-2); }
@media (max-width: 599px) { .quotes { grid-template-columns: minmax(0, 1fr); } .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Owner round, Nov 29 2026 (evening) ===== */
/* Layout: a little less outer padding, more room between rail and content */
:root { --shell: 1360px; }
.frame-b { column-gap: clamp(20px, calc(100% - 1063px), 120px); }
/* Header: nav sits next to the wordmark, lighter */
.header-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.nav-link { font-weight: 400; color: var(--text-60); }
.nav-link:hover, .nav-link[aria-current] { color: var(--text-1); }
/* Footer wordmark in full color, like the header */
.footer .wordmark { opacity: 1; }
/* Text under an H1 is never wider than the H1 */
.fit-head { display: inline-flex; flex-direction: column; max-width: 100%; min-width: 0; }
.fit-head > p { width: 0; min-width: 100%; }
.hero .fit-head { align-items: center; }
.hero .fit-head > .hero-sub { max-width: none; }
.title-row .fit-head .intro { padding: 0; }
.title-row:has(.fit-head) { align-items: flex-start; }
.title-row:has(.fit-head) + .b-section, .title-row:has(.fit-head) + .idx-section { margin-top: 36px; }
/* Ask AI hero button: plain favicons, tighter left padding */
.btn-ask { padding-left: 12px; padding-right: 20px; gap: 8px; }
.ai-stack { gap: 4px; margin-right: 2px; }
.ai-stack img { width: 18px; height: 18px; border-radius: 4px; background: none; padding: 0; box-shadow: none; }
.ai-stack img + img { margin-left: 0; }
.ai-stack img[src*="openai"] { filter: invert(1); }
:root[data-theme="dark"] .ai-stack img[src*="openai"] { filter: none; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .ai-stack img[src*="openai"] { filter: none; } }
/* Home: start cards */
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 767px) { .start-grid { grid-template-columns: minmax(0, 1fr); } }
.start-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-card); background: var(--fill-tile); color: var(--text-1); text-decoration: none; }
.start-card:hover { background: color-mix(in oklab, var(--ink) 10%, transparent); }
.start-card .icon-well { margin-bottom: 4px; }
.start-title { font-size: 16px; line-height: 22px; font-weight: 500; }
.start-desc { font-size: 14px; line-height: 21px; color: var(--text-2); flex: 1; }
.start-cta { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; line-height: 20px; color: var(--text-1); }
.start-cta .icon { width: 14px; height: 14px; }
/* Companies index: search, then type pills left and selects right */
.controls-2 { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.controls-2 .type-pills { margin-top: 0; }
.controls-2 .selects { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.controls .search-index { width: 100%; }
/* Profile: smaller rail text, name with a grey subtitle, homepage screenshot card */
.frame-b.detail .rail-meta { font-size: 14px; line-height: 21px; gap: 7px; }
.frame-b.detail .rail-title { font-size: 15px; line-height: 24px; }
.logo-48 { width: 48px; height: 48px; } .logo-32 { width: 32px; height: 32px; }
.frame-b.detail .identity-name { align-items: center; gap: 14px; }
.id-text { display: grid; gap: 2px; min-width: 0; }
.frame-b.detail .profile-h1 { font-size: 24px; line-height: 30px; }
.profile-kind { font-size: 14px; line-height: 20px; color: var(--text-2); }
.frame-b.detail .identity { align-items: center; }
.frame-b.detail .identity .btn-accent { margin-top: 0; height: 36px; font-size: 15px; padding: 0 16px; }
.shot-card { display: block; margin-top: 20px; padding: 10px; border-radius: 12px; background: var(--fill-tile); }
.shot-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 0 0 1px var(--line-1); background: #fff; }
.shot-card:hover { background: color-mix(in oklab, var(--ink) 10%, transparent); }
.frame-b.detail .shot-card + .summary { margin-top: 24px; }
/* Profile: evidence score card */
.score-card { margin-top: 20px; border-radius: var(--r-card); background: var(--fill-tile); }
.score-card > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; cursor: pointer; }
.score-card > summary::-webkit-details-marker { display: none; }
.sc-num { flex: none; display: grid; place-items: center; min-width: 56px; height: 44px; padding: 0 8px; border-radius: 8px; background: var(--raised); box-shadow: 0 0 0 1px var(--line-1); font-size: 20px; line-height: 24px; font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; }
.sc-num span { font-size: 12px; font-weight: 400; color: var(--text-2); margin-left: 1px; }
.sc-num { display: flex; align-items: baseline; justify-content: center; padding-top: 10px; }
.sc-text { display: grid; flex: 1; min-width: 0; }
.sc-text b { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--text-1); }
.sc-text span { font-size: 14px; line-height: 20px; color: var(--text-2); }
.sc-chev { width: 16px; height: 16px; color: var(--text-2); transition: transform var(--ease); }
.score-card[open] .sc-chev { transform: rotate(180deg); }
.sc-body { padding: 4px 16px 16px; }
.sc-note, .sc-total { font-size: 14px; line-height: 21px; color: var(--text-2); margin: 0; }
.sc-rows { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.sc-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 56px; column-gap: 12px; row-gap: 5px; align-items: baseline; font-size: 14px; line-height: 20px; }
.sc-f { color: var(--text-1); }
.sc-why { color: var(--text-2); }
.sc-pts { text-align: right; color: var(--text-1); font-variant-numeric: tabular-nums; }
.sc-pts span { color: var(--text-2); }
.sc-pts.zero { color: var(--text-2); }
.sc-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line-1); overflow: hidden; }
.sc-bar i { display: block; height: 100%; background: var(--text-1); border-radius: 2px; }
.sc-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 14px; line-height: 20px; }
@media (max-width: 639px) { .sc-row { grid-template-columns: minmax(0, 1fr) 56px; } .sc-why { grid-column: 1 / -1; grid-row: 2; } .sc-bar { grid-row: 3; } }
/* Jobs: same width as the rest of the site, with logos */
.pg-jobs .jobs-intro, .pg-jobs .roles { width: var(--main); }
.pg-jobs .roles { margin-top: 72px; }
.role-card { align-items: center; gap: 14px; }
.role-card .logo { flex: none; }
.role-main { flex: 1; }
@media (max-width: 899px) { .role-card { flex-direction: row; align-items: center; gap: 12px; } .role-apply { display: none; } }
@media (max-width: 899px) { .frame-b.detail .identity .btn-accent { height: 44px; margin-top: 12px; } .frame-b.detail .identity { align-items: stretch; } }
.footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } @media (max-width: 899px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.sc-chev { width: 18px; height: 18px; } .sc-bar { height: 3px; } .sc-bar i { background: color-mix(in oklab, var(--ink) 70%, transparent); }
/* H1 descriptions are capped to the H1's widest line by app.js; the wrapper only groups them */
.fit-head { display: block; }
.fit-head > p { width: auto; min-width: 0; }
.hero .fit-head > .hero-sub { margin-left: auto; margin-right: auto; }
.title-row:has(.fit-head) > .fit-head { flex: 1; min-width: 0; }
/* Title rows: the H1 gets the full column, search sits on its own row under the description */
@media (min-width: 900px) {
  .title-row:has(.fit-head) { flex-direction: column; align-items: flex-start; gap: 24px; }
  .title-row:has(.fit-head) > .fit-head { width: 100%; }
  .title-row:has(.fit-head) .search-compact { margin: 0; }
}
/* Headings and their descriptions break into lines of similar length */
.hero-sub, .index-sub, .intro, .m-statement, .fit-head > p { text-wrap: balance; }
.fit-head > h1 { text-wrap: pretty; }
/* Companies index H1: smaller, two balanced lines (owner comment) */
.fit-head > .index-h1 { font-size: clamp(30px, 1.2vw + 20px, 40px); line-height: 1.08; max-width: 13em; text-wrap: balance; }
/* Nav: tighter items; active item slightly bolder with the site's dashed link underline (owner comments) */
.nav-link { padding: 8px 10px; }
.nav-link[aria-current] { font-weight: 500; text-decoration: underline dashed var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 599px) { .controls-2 .selects { gap: 8px; } .controls-2 .selects > * { flex: 1 1 auto; width: auto; } }
/* Owner rule: no text is cut off with an ellipsis anywhere; it wraps in full */
.prow-desc, .tile-title, .tile-desc, .rail-nav a, .n-meta, .n-firm, .row-desc { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.tile-desc { line-height: 18px; }
@media (max-width: 639px) { .row-desc { display: block; -webkit-line-clamp: unset; } }
.tile { height: auto; min-height: 77px; } .person { height: auto; min-height: 66px; }
