/* jimmy-rose.com: styles for the content sections added in iteration 2 (13 Nov 2026).
   Loaded after site.css. Uses site.css tokens only; the look itself lives in site.css and DESIGN.md. */

/* ---- Home hero: the five roles, one per line --------------------------------- */
.intro .roles-stack { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.intro .roles-stack li { margin: 0; padding: 0; line-height: 1.35; }
.intro .roles-stack li + li { margin-top: 2px; }

/* ---- Home: where to find me (restored from the old site) -------------------- */
.socials { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); }
.socials li { margin: 0; }
.socials a { display: flex; align-items: center; gap: 10px; padding: var(--s2) 10px; min-height: 48px; border-radius: var(--r); color: var(--ink); text-decoration: none; transition: background .2s var(--ease); }
.socials a:hover { background: var(--surface-2); }
.socials a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.socials .logo { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; background: var(--soc, var(--ink)); -webkit-mask: none; mask: none; position: relative; vertical-align: 0; }
.socials a { --fg: #fff; }
.socials a .logo::after { content: ""; position: absolute; inset: 8px; background: var(--fg); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.socials a.snap { --fg: #000; }
.socials b { display: block; font-size: .875rem; line-height: 1.2; font-weight: 600; }
.socials small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.25; }

/* ---- Home: what I do, five rows with bullets --------------------------------- */
.what-list { display: grid; margin-top: var(--s4); border-top: 1px solid var(--line); }
.what-row { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: var(--s3) var(--s6); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.what-head { display: flex; align-items: center; gap: var(--s3); align-self: start; }
.what-head h3 { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.what-head .ico { display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.what-head .ico svg { width: 22px; height: 22px; }
.what-body ul { margin: 0; padding-left: 1.2em; }
.what-body li { margin: 0 0 var(--s1); }
.what-body .text-link { display: inline-block; margin-top: var(--s2); font-weight: 600; }
@media (max-width: 720px) { .what-row { grid-template-columns: 1fr; } }

/* ---- Portfolio: experience, short first, more on click ---------------------- */
.job .job-lead { margin: 0 0 var(--s2); }
.job-more > summary { cursor: pointer; display: inline-flex; align-items: center; gap: var(--s1); min-height: 32px; font-weight: 600; font-size: .9375rem; color: var(--accent); list-style: none; }
.job-more > summary::-webkit-details-marker { display: none; }
.job-more > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.job-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.job-more[open] > summary { margin-bottom: var(--s2); }
.job-more ul { margin: 0 0 var(--s2); }

/* ---- Case studies: results with a lead row ---------------------------------- */
.case-body h3 { margin: var(--s5) 0 0; font-size: 1.0625rem; }
.case-body h2 + h3 { margin-top: var(--s3); }
.stats-lead .stat { border-color: var(--line-strong); }
.stats-lead .stat b { font-size: clamp(2rem, 5vw, 2.625rem); }
.case-body li > ul { margin-top: var(--s1); }

/* ---- Calls to action at the end of a page ------------------------------------ */
.role-cta { padding: var(--s8) 0; border-top: 1px solid var(--line); }
.cta-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s5) var(--s7); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cta-card[hidden] { display: none; }
.cta-card h2 { margin: var(--s1) 0 var(--s2); }
.cta-card p { margin: 0; max-width: var(--measure); }
.cta-card .btns { margin: 0; }
.cta-roles { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4) !important; font-size: .9375rem; }
.cta-roles span { color: var(--muted); margin-right: var(--s1); }
.cta-roles a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; }
.cta-roles a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .cta-card { grid-template-columns: 1fr; padding: var(--s5); } }

/* ---- The AI page ---------------------------------------------------------- */
.ai-numbers { padding: 0 0 var(--s6); }
.ai-numbers .stats { margin: 0; }
.agent-flow { list-style: none; counter-reset: af; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.agent-flow li { counter-increment: af; position: relative; margin: 0; padding: var(--s5) var(--s4) var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.agent-flow li::before { content: counter(af); position: absolute; top: var(--s4); right: var(--s4); font: 600 .8125rem/1 var(--sans); color: var(--muted); }
.af-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.af-when { display: block; margin-top: var(--s3); font-size: .8125rem; font-weight: 600; color: var(--clay); }
.agent-flow h4 { margin: var(--s1) 0 var(--s2); font-size: 1.0625rem; }
.agent-flow p { margin: 0; font-size: .9375rem; }
.af-note { margin-top: var(--s5); padding: var(--s4) var(--s5); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; max-width: var(--measure); }
@media (max-width: 900px) { .agent-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .agent-flow { grid-template-columns: 1fr; } }
.ai-list { margin: var(--s4) 0; padding-left: 1.2em; }
.ai-list li { margin-bottom: var(--s1); }
.ai-projects { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s6); }
.ai-projects li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s3); margin: 0; padding: var(--s4) 0; border-top: 1px solid var(--line); }
.ap-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.ai-projects h3 { margin: 0 0 var(--s1); font-size: 1rem; }
.ai-projects p { margin: 0; font-size: .9375rem; }
@media (max-width: 720px) { .ai-projects { grid-template-columns: 1fr; } }
.ai-figure { margin: var(--s5) 0 0; max-width: 420px; }
.ai-figure img { width: 100%; height: auto; }
.ai-figure figcaption { margin-top: var(--s2); font-size: .875rem; color: var(--muted); }
.socials .logo { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); }
.what-list + .cases-teaser { border-top: 0; padding-top: 0; }

/* résumé request page */
.resume-page { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.rs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s6) var(--s7); align-items: start; }
.rs-intro h1 { margin: 0 0 var(--s3); }
.rs-how { margin: var(--s4) 0 var(--s5); padding-left: 1.2em; max-width: var(--measure); }
.rs-how li { margin: 0 0 var(--s2); }
.rs-pick { display: block; margin-top: var(--s2); font-weight: 400; font-size: .875rem; color: var(--muted); }
.rs-card .access-form .fine { margin: var(--s3) 0 0; }
.rs-card h2 { font-size: 1.3125rem; line-height: 1.3; margin: 0 0 var(--s4); }
.rs-card h2:focus { outline: none; }
.rs-card h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rs-card .access-form .rs-signed { margin: calc(-1 * var(--s2)) 0 var(--s4); }
.rs-hello { margin: 0 0 var(--s1); font-size: .875rem; color: var(--muted); }
.rs-question { overflow-wrap: anywhere; }
.rs-question b { font-weight: 600; }
.rs-who { margin: calc(-1 * var(--s2)) 0 var(--s5); font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.rs-who .linkish { display: inline-block; padding: 6px 0; }
.rs-roles { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
.rs-roles legend { padding: 0; margin-bottom: var(--s2); font-weight: 600; font-size: .875rem; color: var(--ink); }
.rs-req { margin-left: var(--s1); font-weight: 400; color: var(--muted); }
.rs-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.access-form label.rs-role { flex-direction: row; align-items: center; gap: var(--s3); margin: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--bg); font-weight: 500; font-size: .9375rem; line-height: 1.3; color: var(--ink); cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.access-form label.rs-role:hover { border-color: var(--accent); }
.access-form label.rs-role:has(:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.access-form label.rs-role:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rs-role input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
.rs-role input[type="radio"]:focus { outline: none; }
.rs-roles[data-invalid] label.rs-role { border-color: var(--bad); }
.rs-roles .field-error { display: block; margin-top: var(--s2); font-size: .875rem; }
.rs-roles[data-invalid] .rs-pick { display: none; }
.rs-card .access-form .field-error { color: var(--bad); }
@media (max-width: 400px) { .access-form label.rs-role { padding: 10px; gap: var(--s2); font-size: .875rem; } }
.rs-done { display: grid; justify-items: start; gap: var(--s1); }
.rs-done[hidden] { display: none; }
.rs-done h2 { margin: var(--s2) 0 var(--s1); }
.rs-done p { margin: 0 0 var(--s2); max-width: 46ch; }
.rs-done .btns { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
@media (max-width: 860px) { .rs-grid { grid-template-columns: 1fr; } }

/* tools page */
.tools-jump { margin-top: var(--s5) !important; }
main > section.tools-cat { padding: clamp(32px, 5vw, 56px) 0; scroll-margin-top: 72px; }
.tools-cat-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); }
.tools-cat-head h2 { margin: 0; }
.tools-ico { display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.tools-note { color: var(--muted); max-width: var(--measure); margin: 0 0 var(--s4); }
.tools-group + .tools-group { margin-top: var(--s4); }
.tools-sub { font: 600 .75rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s2); }
.tools-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: 0; }
.tools-chips li { margin: 0; max-width: 100%; }
.tools-chips .tool { max-width: 100%; }
.tools-chips .tool span { min-width: 0; overflow-wrap: anywhere; }
.tools-chips .tool-text { padding: var(--s1) var(--s4); }
.tools-chips a.tool:hover { border-color: var(--accent); }
.tools-chips .tool-key { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* books */
/* An optional note under a cover on /interests (content/books.json, lib/books.js). */
.carousel.books .book-note { margin: var(--s1) 0 0; font-size: .75rem; line-height: 1.35; color: var(--muted); }
