/* alltools.css: the All tools pages (/tools/ and its two sub pages), 11 Nov 2026.
   Loaded after helix-look.css. Every rule sits under an at- class, so no other page changes.
   Warm paper and sand, oxblood accents, no blue. The role filter is CSS only: radio inputs and sibling rules.
   Built by scripts/build.py from scripts/alltools.base.css plus the generated role rules at the end. */

/* ---- hero: text only (no example window, so no helix behind it) ---- */
.hx-look .at-hero .hx-lead { max-width: 62ch; }
.hx-look .at-hero .hx-where { max-width: 70ch; margin-top: 12px; }
.hx-look .at-hero .hx-lead a, .hx-look .at-hero .hx-where a { color: var(--ox); font-weight: 600; }
.hx-look .at-hero.at-hero-sub h1 { font-size: clamp(32px, 4vw, 54px); max-width: 24ch; }

/* ---- section heads ---- */
.hx-look .at-main .sh h2 { max-width: 26ch; }
.hx-look .at-main .sh .lede { max-width: 64ch; }
.hx-look .at-main .idx { display: block; margin-bottom: 12px; }

/* ---- role filter: hidden radios, visible labels ---- */
.at-cat { position: relative; }
.at-r { position: fixed; top: 50%; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.at-bar { margin: 0 0 clamp(22px, 2.6vw, 34px); }
.at-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.at-bar-l { margin: 0; font: 600 15px/1.2 var(--display); color: var(--muted); }
.at-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.at-role { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border: 1.5px solid rgba(29, 20, 22, .26); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 15px/1 var(--display); cursor: pointer; user-select: none; transition: background .2s, color .2s, border-color .2s; }
.at-role:hover { border-color: var(--ox); color: var(--ox); }
.at-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; flex-basis: 100%; font: 600 15px/1.2 var(--display); }
.at-jump span { color: var(--muted); }
.at-jump a { display: inline-flex; align-items: center; min-height: 42px; color: var(--ox); text-decoration: underline; text-decoration-color: rgba(100, 18, 32, .35); text-underline-offset: 4px; }
.at-jump a:hover { text-decoration-color: var(--ox); }
.at-sub .at-bar { position: sticky; top: 69px; z-index: 20; margin: 0 calc(var(--gut) * -1); padding: 10px var(--gut); background: rgba(251, 247, 241, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(6px)) { .at-sub .at-bar { background: rgba(251, 247, 241, .86); backdrop-filter: blur(8px); } }

/* ---- landing: two chapters of four decisions ---- */
.at-chapter + .at-chapter { margin-top: clamp(40px, 4.6vw, 64px); }
.at-chapter-h { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 28px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1.5px solid rgba(29, 20, 22, .2); }
.hx-look .at-chapter-t { margin: 0; font-size: clamp(25px, 2.4vw, 33px); grid-column: 1; }
.at-chapter-h p { margin: 0; grid-column: 1; color: var(--muted); font-size: 16.5px; max-width: 64ch; }
.at-chapter-h .tlink { grid-column: 2; grid-row: 1 / span 2; align-self: end; white-space: nowrap; }
.at-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.at-tile { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 26px 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--soft); }
.at-owner { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 500 14.5px/1.3 var(--display); color: var(--muted); }
.at-stage { padding: 5px 11px; border-radius: 999px; background: var(--rose); color: var(--ox-d); font: 600 13px/1.2 var(--display); }
.hx-look .at-q { margin: 0; font: 560 clamp(23px, 2vw, 28px)/1.14 var(--serif); letter-spacing: -.014em; }
.at-q a { color: var(--ink); text-decoration: none; }
.at-q a:hover { color: var(--ox); }
.at-also { font-size: 15.5px; color: var(--muted); }
.at-also p { margin: 0 0 4px; font: 600 13.5px/1.3 var(--display); color: var(--ink); }
.at-also ul { margin: 0; padding: 0 0 0 18px; }
.at-also li { margin: 2px 0; }
.at-all { margin: auto 0 0; padding-top: 4px; }

/* ---- the job card ---- */
.at-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.at-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px 22px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--soft); scroll-margin-top: 150px; }
.at-card.is-start { border-color: rgba(100, 18, 32, .5); }
.at-tile .at-card { padding: 18px 18px 16px; background: #F8F2E9; border: 0; box-shadow: none; border-radius: 10px; }
.at-flag { align-self: flex-start; margin: 0; padding: 5px 11px; border-radius: 999px; background: var(--ox); color: #FFF8F4; font: 600 12.5px/1.2 var(--display); }
.hx-look .at-job { margin: 0; font: 560 clamp(20px, 1.6vw, 23px)/1.18 var(--serif); letter-spacing: -.012em; }
.at-more > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--ox); font: 600 15px/1.25 var(--display); }
.at-more > summary::-webkit-details-marker { display: none; }
.at-more > summary::before { content: "+"; flex: 0 0 auto; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ox); border-radius: 50%; font: 400 20px/1 var(--display); transition: transform .2s; }
.at-more[open] > summary::before { transform: rotate(45deg); }
.at-io { margin: 0; display: grid; gap: 10px; }
.at-io div { margin: 0; }
.at-io dt { margin: 0 0 2px; font: 600 13px/1.3 var(--display); color: var(--ox); }
.at-io dd { margin: 0; font-size: 15.5px; line-height: 1.48; }
.at-names { margin: 10px 0 0; font: 500 13.5px/1.45 var(--display); color: var(--muted); }
.at-sample { margin: 8px 0 0; font: 600 14.5px/1.3 var(--display); }
.at-sample a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ox); text-underline-offset: 4px; }
.at-runs { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.at-tile .at-runs { border-top-color: rgba(29, 20, 22, .12); }
.at-runs-l { margin: 0; font: 600 13px/1.2 var(--display); color: var(--muted); }
.at-run { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.at-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1.5px solid rgba(29, 20, 22, .2); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 13.5px/1.1 var(--display); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.at-chip:hover { border-color: var(--ox); color: var(--ox); }
.at-chip-web { background: var(--ox); border-color: var(--ox); color: #FFF8F4; }
.at-chip-web:hover { background: var(--ox-d); border-color: var(--ox-d); color: #fff; }
.at-chip-skill { background: var(--rose); border-color: transparent; color: var(--ox-d); }
.at-chip-skill:hover { border-color: var(--ox); }

/* ---- sub page groups: paper, then sand, then paper ---- */
.at-sub .at-group { padding-top: clamp(34px, 4vw, 56px); padding-bottom: clamp(38px, 4.4vw, 60px); scroll-margin-top: 130px; }
.at-sub .at-group:nth-of-type(even) { background: var(--clay); box-shadow: 0 0 0 100vmax var(--clay); clip-path: inset(0 -100vmax); }
.at-sub .at-group .sh { margin-bottom: 4px; }

/* ---- next page, guides, by name, last word ---- */
.at-next-l { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 980px; }
.at-next-l li { border-bottom: 1px solid rgba(29, 20, 22, .16); }
.at-next-l a { display: flex; align-items: center; min-height: 54px; padding: 8px 0; color: var(--ink); font: 560 19px/1.25 var(--serif); text-decoration: none; }
.at-next-l a:hover { color: var(--ox); }
.at-next-cta, .at-enough-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 0; }
.at-guides .hx7-list { max-width: 900px; }
.at-compare { margin: 0 0 8px; }
.at-compare details > .hx-table { margin-top: 6px; }
.at-compare .hx-help { margin: 12px 0 18px; }
.at-byname { margin: clamp(30px, 3.4vw, 46px) 0 clamp(26px, 3vw, 40px); padding: 26px; background: var(--clay); border-radius: var(--r); }
.hx-look .at-byname h3 { margin: 0 0 16px; font-size: clamp(21px, 1.8vw, 25px); }
.at-byname-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.at-byname-l { margin: 0 0 6px; font: 600 14px/1.3 var(--display); color: var(--ox); }
.at-names-list { list-style: none; margin: 0; padding: 0; }
.at-names-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding: 4px 0; border-bottom: 1px solid rgba(29, 20, 22, .12); font-size: 15.5px; }
.at-names-list a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.at-names-list a:hover { color: var(--ox); }
.at-names-list span { color: var(--muted); }
.at-byname-more { margin: 10px 0 0; }
.at-note { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.hx-look .at-enough { background: var(--ox); color: #FFF4EE; box-shadow: 0 0 0 100vmax var(--ox); clip-path: inset(0 -100vmax); padding-top: clamp(40px, 4.6vw, 64px); padding-bottom: clamp(44px, 5vw, 68px); }
.at-enough-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 28px 56px; }
.hx-look .at-enough .idx { color: #F6C9C0; }
.hx-look .at-enough h2 { color: #FFF8F4; max-width: 20ch; margin-bottom: 14px; }
.at-enough-p { margin: 0; max-width: 62ch; color: #FBE6E0; font-size: 17px; line-height: 1.55; }
.hx-look .at-enough a.hx-btn { background: #FFF8F4; border-color: #FFF8F4; color: var(--ox-d); }
.hx-look .at-enough a.hx-btn:hover { background: #fff; border-color: #fff; color: var(--ox-d); }
.hx-look .at-enough .tlink { color: #FFF4EE; text-decoration-color: rgba(255, 244, 238, .55); }
.hx-look .at-enough .tlink:hover { color: #fff; text-decoration-color: #fff; }
.hx-look .at-main > .at-enough:last-child { padding-bottom: clamp(44px, 5vw, 68px); }

/* ---- desktop: details always open, no expander ---- */
@media (min-width: 760px) {
  .at-js .at-more > summary { display: none; }
  @supports selector(::details-content) {
    .at-more > summary { display: none; }
    .at-more::details-content { content-visibility: visible; display: block; }
  }
}

/* ---- tablet ---- */
@media (max-width: 1080px) {
  .at-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- phone: job plus chips; the detail sits behind the + ---- */
@media (max-width: 759px) {
  .at-tiles, .at-cards, .at-next-l, .at-byname-g, .at-enough-in { grid-template-columns: minmax(0, 1fr); }
  .at-cards { gap: 12px; }
  .at-tiles { gap: 16px; }
  .at-card { padding: 16px 16px 14px; gap: 6px; }
  .at-tile { padding: 20px 16px 18px; gap: 12px; }
  .at-tile .at-card { padding: 14px 14px 12px; }
  .hx-look .at-job { font-size: 19.5px; }
  .hx-look .at-q { font-size: 23px; }
  .at-more[open] > .at-io { margin-top: 4px; }
  .at-runs { padding-top: 10px; margin-top: 4px; }
  .at-chip { min-height: 40px; padding: 8px 13px; }
  .at-chapter-h { grid-template-columns: minmax(0, 1fr); }
  .at-chapter-h .tlink { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .at-bar-in { gap: 8px; }
  .at-bar-l { flex-basis: 100%; }
  .at-roles { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 6px; scrollbar-width: none; max-width: 100vw; }
  .at-roles::-webkit-scrollbar { display: none; }
  .at-roles { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent 100%); padding-right: 56px; }
  .at-bar-l::after { content: " (swipe for more)"; font-weight: 500; }
  .at-role { flex: 0 0 auto; min-height: 44px; }
  .at-sub .at-bar { position: static; padding: 14px var(--gut) 8px; }
  .at-jump { gap: 0 16px; }
  .at-jump a { min-height: 44px; }
  .at-byname { padding: 20px 16px; }
  .at-next-l a { font-size: 18px; }
  .at-next-cta .hx-btn, .at-enough-cta .hx-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .at-role, .at-chip, .at-more > summary::before { transition: none; } }
@media print { .at-bar { display: none; } .at-more > summary { display: none; } }

/* ---- role filter rules (generated: one block per role, for the landing "lr" and the sub pages "sr") ---- */
#lr-all:checked ~ .at-bar label[for="lr-all"], #lr-founder:checked ~ .at-bar label[for="lr-founder"], #lr-cmo:checked ~ .at-bar label[for="lr-cmo"], #lr-cro:checked ~ .at-bar label[for="lr-cro"], #lr-demandgen:checked ~ .at-bar label[for="lr-demandgen"], #lr-team:checked ~ .at-bar label[for="lr-team"], #lr-cs:checked ~ .at-bar label[for="lr-cs"], #lr-sales:checked ~ .at-bar label[for="lr-sales"] { background: var(--ox); border-color: var(--ox); color: #FFF8F4; }
#lr-all:focus-visible ~ .at-bar label[for="lr-all"], #lr-founder:focus-visible ~ .at-bar label[for="lr-founder"], #lr-cmo:focus-visible ~ .at-bar label[for="lr-cmo"], #lr-cro:focus-visible ~ .at-bar label[for="lr-cro"], #lr-demandgen:focus-visible ~ .at-bar label[for="lr-demandgen"], #lr-team:focus-visible ~ .at-bar label[for="lr-team"], #lr-cs:focus-visible ~ .at-bar label[for="lr-cs"], #lr-sales:focus-visible ~ .at-bar label[for="lr-sales"] { outline: 2px solid var(--ox); outline-offset: 3px; }
#sr-all:checked ~ .at-bar label[for="sr-all"], #sr-founder:checked ~ .at-bar label[for="sr-founder"], #sr-cmo:checked ~ .at-bar label[for="sr-cmo"], #sr-cro:checked ~ .at-bar label[for="sr-cro"], #sr-demandgen:checked ~ .at-bar label[for="sr-demandgen"], #sr-team:checked ~ .at-bar label[for="sr-team"], #sr-cs:checked ~ .at-bar label[for="sr-cs"], #sr-sales:checked ~ .at-bar label[for="sr-sales"] { background: var(--ox); border-color: var(--ox); color: #FFF8F4; }
#sr-all:focus-visible ~ .at-bar label[for="sr-all"], #sr-founder:focus-visible ~ .at-bar label[for="sr-founder"], #sr-cmo:focus-visible ~ .at-bar label[for="sr-cmo"], #sr-cro:focus-visible ~ .at-bar label[for="sr-cro"], #sr-demandgen:focus-visible ~ .at-bar label[for="sr-demandgen"], #sr-team:focus-visible ~ .at-bar label[for="sr-team"], #sr-cs:focus-visible ~ .at-bar label[for="sr-cs"], #sr-sales:focus-visible ~ .at-bar label[for="sr-sales"] { outline: 2px solid var(--ox); outline-offset: 3px; }
#lr-founder:checked ~ .at-chapter:not([data-r~="founder"]), #lr-founder:checked ~ .at-chapter .at-tile:not([data-r~="founder"]), #sr-founder:checked ~ .at-group:not([data-r~="founder"]), #sr-founder:checked ~ .at-group .at-card:not([data-r~="founder"]) { display: none; }
#lr-cmo:checked ~ .at-chapter:not([data-r~="cmo"]), #lr-cmo:checked ~ .at-chapter .at-tile:not([data-r~="cmo"]), #sr-cmo:checked ~ .at-group:not([data-r~="cmo"]), #sr-cmo:checked ~ .at-group .at-card:not([data-r~="cmo"]) { display: none; }
#lr-cro:checked ~ .at-chapter:not([data-r~="cro"]), #lr-cro:checked ~ .at-chapter .at-tile:not([data-r~="cro"]), #sr-cro:checked ~ .at-group:not([data-r~="cro"]), #sr-cro:checked ~ .at-group .at-card:not([data-r~="cro"]) { display: none; }
#lr-demandgen:checked ~ .at-chapter:not([data-r~="demandgen"]), #lr-demandgen:checked ~ .at-chapter .at-tile:not([data-r~="demandgen"]), #sr-demandgen:checked ~ .at-group:not([data-r~="demandgen"]), #sr-demandgen:checked ~ .at-group .at-card:not([data-r~="demandgen"]) { display: none; }
#lr-team:checked ~ .at-chapter:not([data-r~="team"]), #lr-team:checked ~ .at-chapter .at-tile:not([data-r~="team"]), #sr-team:checked ~ .at-group:not([data-r~="team"]), #sr-team:checked ~ .at-group .at-card:not([data-r~="team"]) { display: none; }
#lr-cs:checked ~ .at-chapter:not([data-r~="cs"]), #lr-cs:checked ~ .at-chapter .at-tile:not([data-r~="cs"]), #sr-cs:checked ~ .at-group:not([data-r~="cs"]), #sr-cs:checked ~ .at-group .at-card:not([data-r~="cs"]) { display: none; }
#lr-sales:checked ~ .at-chapter:not([data-r~="sales"]), #lr-sales:checked ~ .at-chapter .at-tile:not([data-r~="sales"]), #sr-sales:checked ~ .at-group:not([data-r~="sales"]), #sr-sales:checked ~ .at-group .at-card:not([data-r~="sales"]) { display: none; }
