/* Public Blog, article reading and About. Scoped to these rebuilt surfaces. */
.res-page { color:var(--text); background:var(--surface); }
.res-page *, .res-page *::before, .res-page *::after { box-sizing:border-box; }
.res-wrap { width:min(1180px,calc(100% - 64px)); margin-inline:auto; }
.res-page h1,.res-page h2,.res-page h3,.res-page p { margin:0; }
.res-page a { color:inherit; }
.res-page :is(a,button,input,summary):focus-visible { outline:3px solid var(--brand-deep-purple); outline-offset:4px; }
.res-kicker { font-size:.75rem; font-weight:750; letter-spacing:.13em; text-transform:uppercase; color:var(--brand-deep-purple); }
.res-hero { padding:68px 0 60px; background:var(--surface-command); color:var(--text-on-dark); }
.res-hero .res-kicker { color:var(--brand-teal); }
.res-hero h1 { color:inherit; max-width:26ch; }
.res-hero .res-intro { color:var(--text-on-dark-muted); }
.res-intro { margin-top:20px!important; font-size:1.125rem; line-height:1.65; max-width:54ch; color:var(--text-muted); }
.res-hero-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:64px; align-items:center; }
.res-hero-copy .res-kicker { margin-bottom:20px; }
.res-hero-art { margin:0; min-width:0; }
.res-hero-art img { display:block; width:100%; height:auto; object-fit:contain; }
.res-breadcrumb { display:flex; gap:10px; flex-wrap:wrap; align-items:center; font-size:.8125rem; margin-bottom:28px; color:var(--text-muted); }
.res-hero .res-breadcrumb { color:var(--text-on-dark-muted); }
.res-breadcrumb a:hover { text-decoration:underline; text-underline-offset:4px; }
.res-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.res-btn { display:inline-flex; justify-content:center; align-items:center; gap:10px; min-height:46px; padding:12px 20px; border-radius:var(--radius-pill); background:var(--btn-action-bg); color:var(--btn-action-fg)!important; border:1px solid transparent; font:inherit; font-size:.875rem; font-weight:700; cursor:pointer; text-decoration:none; }
.res-btn.secondary { background:transparent; color:inherit!important; border-color:currentColor; }
.res-btn:hover { filter:brightness(.97); }
.res-link { display:inline-flex; gap:10px; align-items:center; min-height:44px; font-size:.875rem; font-weight:700; text-decoration:underline; text-underline-offset:5px; }
.res-section { padding:64px 0; border-bottom:1px solid var(--border-hairline); scroll-margin-top:100px; }
.res-section.soft { background:var(--surface-canvas); }
.res-section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.res-section-head h2,.res-feature h2,.res-about h2 { font-size:clamp(1.6rem,2.8vw,2.4rem); line-height:1.18; letter-spacing:-.025em; font-weight:720; }
.res-section-head p { margin-top:9px; color:var(--text-muted); font-size:.9375rem; }
.res-meta { display:flex; gap:10px 16px; align-items:center; flex-wrap:wrap; color:var(--text-muted); font-size:.75rem; line-height:1.5; }
.res-tag { display:inline-flex; font-size:.6875rem; letter-spacing:.08em; font-weight:750; text-transform:uppercase; }
.res-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 24px; }
.res-card { display:flex; flex-direction:column; min-width:0; text-decoration:none; border:1px solid var(--border-hairline); border-radius:var(--radius-card); overflow:hidden; background:var(--surface); }
.res-card:hover { border-color:var(--brand-deep-purple); }
.res-card-media { display:grid; place-items:center; aspect-ratio:1.65; overflow:hidden; background:var(--surface-alt); color:var(--brand-deep-purple); }
.res-card-media img { width:100%; height:100%; object-fit:cover; }
.res-card-media .res-media-fallback { font-size:2rem; }
.res-card-copy { padding:24px; display:flex; flex:1; flex-direction:column; gap:14px; }
.res-card h3 { color:var(--text); font-size:1.125rem; font-weight:700; line-height:1.4; letter-spacing:-.015em; overflow-wrap:anywhere; }
.res-card:hover h3 { color:var(--brand-deep-purple); }
.res-excerpt { color:var(--text-muted); font-size:.875rem; line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.res-card-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; font-size:.75rem; color:var(--text-muted); padding-top:6px; }
.res-feature { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); border:1px solid var(--border-hairline); border-radius:var(--radius-xl); overflow:hidden; text-decoration:none; }
.res-feature-media { background:var(--surface-alt); display:grid; min-height:330px; }
.res-feature-media img { width:100%; height:100%; max-height:480px; object-fit:cover; }
.res-feature-copy { padding:40px; display:flex; flex-direction:column; align-items:start; justify-content:center; gap:20px; }
.res-feature:hover h2 { color:var(--brand-deep-purple); }
.res-feature .res-excerpt { -webkit-line-clamp:3; font-size:1rem; }
.res-search { padding:24px; background:var(--surface); border-radius:var(--radius-card); color:var(--text); }
.res-search label { font-weight:650; font-size:.9375rem; display:block; margin-bottom:14px; }
.res-search-row { display:flex; gap:8px; }
.res-search input { flex:1; min-width:0; min-height:48px; padding:12px 14px; border:1px solid var(--border-strong); border-radius:var(--radius-md); background:var(--surface); color:var(--text); font:inherit; font-size:1rem; }
.res-search .res-btn { border-radius:var(--radius-md); }
.res-search-hint { color:var(--text-muted); font-size:.8125rem; margin-top:14px!important; }
.res-search-hint a { text-decoration:underline; text-underline-offset:3px; }
.res-tabs { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding-block:22px; }
.res-tabs a { display:inline-flex; min-height:42px; padding:9px 16px; border-radius:var(--radius-pill); border:1px solid var(--border-hairline); background:var(--surface); text-decoration:none; font-size:.8125rem; font-weight:600; }
.res-tabs a:hover,.res-tabs a[aria-current="page"] { background:var(--surface-inverse); color:var(--text-on-dark); }
.res-topic-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:48px; }
.res-topic { display:grid; grid-template-columns:1fr auto; gap:8px 24px; padding:24px 0; border-top:1px solid var(--border-hairline); text-decoration:none; }
.res-topic h3 { font-size:1.0625rem; font-weight:700; }
.res-topic p { grid-column:1; color:var(--text-muted); font-size:.875rem; line-height:1.6; }
.res-topic span { grid-column:2; grid-row:1/3; align-self:center; font-size:.8125rem; color:var(--text-muted); white-space:nowrap; }
.res-topic:hover h3 { text-decoration:underline; text-underline-offset:4px; }
.res-state-index { padding:24px; border:1px solid var(--border-hairline); border-radius:var(--radius-card); margin-bottom:32px; }
.res-state-index summary { font-weight:700; cursor:pointer; min-height:24px; }
.res-state-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px 16px; margin-top:20px; }
.res-state-links a { display:flex; align-items:center; min-height:44px; font-size:.875rem; text-decoration:underline; text-underline-offset:4px; }
.res-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:24px; margin-top:40px; font-size:.875rem; }
.res-empty { padding:52px 24px; border:1px solid var(--border-hairline); border-radius:var(--radius-card); text-align:center; }
.res-empty h2 { font-size:1.5rem; margin-bottom:12px; }
.res-empty p { color:var(--text-muted); }
.res-help-band { display:flex; justify-content:space-between; align-items:center; gap:28px; padding:32px; border-radius:var(--radius-card); background:var(--surface-alt); }
.res-help-band h2 { font-size:1.4rem; font-weight:700; margin-bottom:8px; }
.res-help-band p { color:var(--text-muted); font-size:.9375rem; }
.res-about-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:80px; }
.res-about-grid h2 { margin-top:16px; max-width:18ch; }
.res-about-copy { font-size:1.125rem; line-height:1.75; color:var(--text-secondary); }
.res-about-copy p+p { margin-top:20px; }
.res-founder { margin:0; width:100%; max-width:420px; justify-self:end; }
.res-founder img { display:block; width:100%; height:auto; border-radius:var(--radius-xl); }
.res-founder figcaption { display:flex; flex-direction:column; gap:5px; margin-top:18px; }
.res-founder strong { color:var(--text-on-dark); font-size:1.125rem; font-weight:700; }
.res-founder figcaption span { color:var(--text-on-dark-muted); font-size:.875rem; }
.res-workflow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; margin-top:40px; }
.res-workflow a { border-top:2px solid var(--border-hairline); padding-top:24px; text-decoration:none; }
.res-workflow .res-step { font-size:.75rem; color:var(--brand-deep-purple); font-weight:750; }
.res-workflow h3 { font-size:1.125rem; margin:16px 0 10px; font-weight:700; }
.res-workflow p { font-size:.875rem; line-height:1.6; color:var(--text-muted); }
.res-workflow a:hover { border-color:var(--brand-deep-purple); }
.res-values { list-style:none; margin:0; padding:0; }
.res-values li { border-top:1px solid var(--border-hairline); padding:24px 0; }
.res-values h3 { font-size:1.125rem; font-weight:700; margin-bottom:10px; }
.res-values p { color:var(--text-muted); line-height:1.65; }
.res-reader { padding:44px 0 64px; }
.res-reading-wrap { width:min(940px,calc(100% - 64px)); margin-inline:auto; }
.res-story-header { max-width:820px; margin-inline:auto; padding:0 0 32px; }
.res-story-header h1 { font-size:clamp(2rem,4vw,3.35rem); line-height:1.13; letter-spacing:-.035em; margin:16px 0 22px; color:var(--text); font-weight:740; }
.res-story-header .res-intro { max-width:none; margin:0 0 24px!important; }
.res-byline { display:flex; gap:12px; align-items:center; color:var(--text-muted); font-size:.8125rem; flex-wrap:wrap; }
.res-byline img { width:36px; height:36px; object-fit:contain; }
.res-story-image { display:block; margin:0 0 38px; border-radius:var(--radius-card); overflow:hidden; background:var(--surface-alt); }
.res-story-image img { display:block; width:100%; height:auto; max-height:520px; object-fit:contain; }
.res-reading-column { max-width:680px; margin-inline:auto; }
.res-reader-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 28px; padding:14px 0; border-block:1px solid var(--border-hairline); }
.res-reader-tools button { border:0; background:transparent; color:var(--text-muted); font:inherit; font-size:.8125rem; font-weight:650; padding:8px 12px; min-height:44px; cursor:pointer; border-radius:var(--radius-md); }
.res-reader-tools button:hover { background:var(--surface-alt); }
.res-reader-tools [role="status"] { font-size:.8125rem; color:var(--text-muted); }
.res-copy-fallback { width:100%; padding:10px; border:1px solid var(--border-strong); color:var(--text); background:var(--surface); }
.res-toc { background:var(--surface-canvas); border:1px solid var(--border-hairline); padding:20px 24px; margin-bottom:32px; border-radius:var(--radius-card); }
.res-toc summary { min-height:24px; font-size:.9375rem; font-weight:700; cursor:pointer; }
.res-toc ol { list-style:none; padding:16px 0 0; margin:0; }
.res-toc a { display:block; padding:9px 0; color:var(--text-muted); font-size:.875rem; text-decoration:underline; text-underline-offset:4px; }
.res-prose { color:var(--text-secondary); font-size:1.25rem; line-height:1.6; overflow-wrap:anywhere; }
.res-prose :is(h2,h3,h4) { color:var(--text); line-height:1.25; font-weight:700; scroll-margin-top:110px; }
.res-prose h2 { font-size:1.8rem; margin:2.5rem 0 1rem; }
.res-prose h3 { font-size:1.4rem; margin:2rem 0 .8rem; }
.res-prose h4 { font-size:1.125rem; margin:1.5rem 0 .75rem; }
.res-prose p { margin:0 0 1.25em; }
.res-prose :is(ul,ol) { margin:0 0 1.5em; padding-left:1.5em; }
.res-prose ul { list-style:disc; } .res-prose ol { list-style:decimal; }
.res-prose li { margin-bottom:.5em; }
.res-prose a { color:var(--brand-deep-purple); text-decoration:underline; text-underline-offset:3px; }
.res-prose img,.res-prose video { max-width:100%; height:auto; border-radius:var(--radius-lg); }
.res-prose blockquote { margin:1.5em 0; border-left:3px solid var(--brand-deep-purple); padding:16px 24px; background:var(--surface-canvas); }
.res-prose table { width:100%; border-collapse:collapse; font-size:.875rem; }
.res-prose :is(th,td) { padding:12px; border:1px solid var(--border-hairline); text-align:left; min-width:100px; }
.res-prose th { background:var(--surface-alt); }
.res-table-scroll { overflow-x:auto; margin:24px 0; max-width:100%; }
.res-prose pre { overflow-x:auto; padding:20px; background:var(--surface-alt); font-size:.875rem; }
.res-prose .lead { font-size:1.25rem; font-weight:500; }
.res-disclaimer { padding-top:20px; border-top:1px solid var(--border-hairline); font-size:.875rem; color:var(--text-muted); }
.res-story-end { margin-top:40px; padding-top:24px; border-top:1px solid var(--border-hairline); }
.res-story-next { padding:56px 0; background:var(--surface-canvas); }
.res-story-next .res-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.res-page [hidden] { display:none!important; }
@media(max-width:900px) {
  .res-hero-grid { gap:32px; } .res-feature-copy { padding:28px; }
  .res-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .res-about-grid { gap:40px; } .res-workflow { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .res-state-links { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:640px) {
  .res-wrap,.res-reading-wrap { width:calc(100% - 40px); }
  .res-hero { padding:40px 0; } .res-hero-grid,.res-feature,.res-about-grid { grid-template-columns:1fr; gap:28px; }
  .res-founder { justify-self:start; max-width:360px; }
  .res-about #founder-story-title { max-width:none; }
  .res-hero-art { max-width:380px; margin:auto; } .res-hero h1 { font-size:2.5rem; }
  .res-section { padding:40px 0; } .res-section-head { align-items:start; flex-direction:column; gap:12px; }
  .res-card-grid,.res-story-next .res-card-grid,.res-topic-list { grid-template-columns:1fr; }
  .res-feature-media { min-height:0; aspect-ratio:1.6; } .res-feature-copy { padding:24px; }
  .res-search { padding:20px; } .res-search-row { flex-wrap:wrap; } .res-search-row input { flex-basis:100%; } .res-search-row .res-btn { width:100%; }
  .res-help-band { flex-direction:column; align-items:start; padding:24px; }
  .res-workflow { gap:24px; } .res-topic span { white-space:normal; }
  .res-state-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .res-story-header h1 { font-size:2rem; } .res-prose { font-size:1.125rem; line-height:1.7; }
  .res-reader { padding-top:28px; } .res-toc { padding:18px; }
}
@media print {
  body:has(.res-reader) :is(#site-nav,header:not(.res-story-header),footer,#site-footer,#chat-toggle-btn,.res-reader-tools,.res-toc,.res-story-next,.res-story-end,.res-section) { display:none!important; }
  .res-story-header { display:block!important; } .res-reading-wrap,.res-reading-column { width:100%; max-width:none; }
  .res-reader { padding:0; } .res-prose { font-size:11pt; } .res-prose a { color:inherit; }
}
