/* Portfolio refinement layer. Retains the existing floral/plum identity.
   Authored independently so the original generated portfolio.css stays reproducible. */
:root{
  --upgrade-ink:#2d2635;--upgrade-accent:#8e4168;--upgrade-line:#e4d8e2;
  --upgrade-surface:#fff;--upgrade-muted:#5d5264;
  /* Photo accents share the site palette; components use these tokens. */
  --photo-gallery-heading:#493649;
  --photo-gallery-description:#6d596a;
  --photo-awards-border:#d8bdcf;
  --photo-awards-background:rgba(255,251,254,.7);
  --photo-awards-text:#594658;
  --photo-awards-heading:#683653;
  --photo-gallery-label:var(--ink);
  --photo-gallery-label-secondary:var(--secondary);
  --project-caption-text:#3e3040;
  --project-caption-surface:#f8f3f7;
  --project-caption-border:#e5d8e2;
  --picture-caption-text:#3e3040;
  --picture-caption-muted:#59475d;
  --picture-caption-bg:#f8f3f7;
  --picture-caption-border:#e5d8e2;
}
html{scroll-padding-top:86px}
body{line-height:1.72}
:focus-visible{outline:3px solid #b23d78;outline-offset:4px}
section[id]{scroll-margin-top:86px}
.site-header{box-shadow:0 5px 26px rgba(51,36,51,.045)}
.nav{min-height:76px}
.nav-links{gap:clamp(10px,1.5vw,22px)}
.nav-links a{font-size:12px;letter-spacing:.015em}
.nav-links .nav-cta{min-width:102px;text-align:center}
.nav-links a[href="#contact"]{color:var(--upgrade-accent)}
.hero{grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);gap:clamp(35px,6vw,84px);padding-top:clamp(54px,8vw,110px);padding-bottom:75px;min-height:auto}
.hero h1{font-size:clamp(64px,7.2vw,100px);text-wrap:balance;line-height:1.04}
.hero .eyebrow{max-width:max-content;padding:8px 13px;border:1px solid #dfcad7;border-radius:100px;background:rgba(255,255,255,.8);letter-spacing:.105em}
.hero-subtitle{font-size:clamp(24px,2.8vw,35px);max-width:620px;text-wrap:pretty}
.hero-description{font-size:15px;line-height:1.8}
.hero-photo img{height:clamp(390px,41vw,525px);border-radius:155px 155px 24px 24px;object-position:center 35%;box-shadow:0 25px 60px rgba(68,39,68,.11)}
.hero-photo figcaption{font-size:12px}
.hero-trust-row{display:flex;flex-wrap:wrap;gap:9px 17px;margin:21px 0 0;align-items:center;color:#685467;font-size:12px;font-weight:600}
.hero-trust-row span{display:flex;align-items:center;gap:7px}
.hero-trust-row span::before{content:"";width:7px;height:7px;border-radius:50%;background:#a65f83}
.hero-buttons .btn{min-height:50px}
.featured-projects-section{padding-top:35px!important;padding-bottom:80px!important}
.featured-projects-head{align-items:end}
.featured-projects-head p:last-child{max-width:460px}
.featured-project-grid{gap:18px}
.featured-project-card{position:relative;isolation:isolate;overflow:hidden;min-height:235px;padding:24px 25px;border-radius:16px;box-shadow:0 8px 28px rgba(62,40,58,.04);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.featured-project-card:hover,.featured-project-card:focus-visible{transform:translateY(-4px);box-shadow:0 18px 38px rgba(62,40,58,.11);border-color:#bd9eb3}
.featured-project-card:focus-visible{outline:3px solid #9c426c}
.featured-project-card strong{position:relative;z-index:1;font-size:clamp(21px,2vw,26px);line-height:1.18;text-wrap:balance}
.featured-project-card small{position:relative;z-index:1;font-size:12px;line-height:1.55}
.featured-project-card .featured-more{position:relative;z-index:1}
.featured-project-visual{position:absolute;right:-11px;bottom:5px;width:140px;height:140px;z-index:0;opacity:.13;pointer-events:none;transform:rotate(-11deg)}
.featured-project-visual svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.2}
.featured-project-card:nth-child(2) .featured-project-visual{transform:rotate(9deg)}
.featured-project-card:nth-child(3) .featured-project-visual{transform:rotate(-2deg)}
.featured-project-card:nth-child(4) .featured-project-visual{transform:rotate(11deg)}
.featured-projects-head .eyebrow{margin-bottom:9px}
.section-heading h2{max-width:850px;text-wrap:balance}
.repo-card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.repo-card:hover,.repo-card:focus-within{transform:translateY(-3px);box-shadow:0 13px 34px rgba(60,46,60,.09)}
.repo-filters{flex-wrap:wrap}
.repo-search-wrap input{min-height:46px;max-width:100%;border-radius:8px}
.repo-card[hidden],.featured-project-card[hidden]{display:none!important}
.project-page .project-paper{padding-top:clamp(32px,5vw,68px)}
.project-page .detail-container{max-width:1060px}
.project-page .detail-heading h1{text-wrap:balance;line-height:1.15}
.project-page .detail-card{border-radius:16px;box-shadow:0 18px 40px rgba(39,30,49,.065)}
.project-page .detail-panel{border-radius:11px}
.project-page .detail-results{border-radius:0 12px 12px 0}
.detail-jump{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:22px 0 24px;font:600 12px/1.5 var(--sans)}
.detail-jump a{border:1px solid #d9cad8;border-radius:100px;padding:9px 14px;background:#fff;color:#5e425c}
.detail-jump a:hover,.detail-jump a:focus-visible{background:#f5ebf2;text-decoration:underline}
.directory-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:end;flex-wrap:wrap;margin:0 0 24px}
.directory-toolbar label{display:grid;gap:6px;color:#524255;font-size:12px;font-weight:700;flex:1 1 300px}
.directory-toolbar input{width:100%;min-height:49px;padding:10px 15px;border:1px solid #c7b8c7;border-radius:8px;background:#fff;color:#312637}
.directory-filter-set{display:flex;flex-wrap:wrap;gap:6px}
.directory-filter-set button{border:1px solid #c9b9c9;border-radius:100px;background:#fff;color:#5e4e60;padding:10px 12px;font-size:12px;font-weight:700}
.directory-filter-set button[aria-pressed="true"]{background:#53405a;color:white;border-color:#53405a}
.directory-result-count{font-size:12px;color:#605365;margin:0 0 15px}
.directory-empty{padding:25px;border:1px dashed #b6a0b2;border-radius:12px;color:#66516b}
.project-directory-grid .featured-project-card{min-height:185px}
.project-directory-grid .featured-project-card small{max-width:35ch}
.resume-note{border-radius:16px}
.resume-actions{margin-bottom:16px}
.resume-actions .btn{min-height:51px}
.resume-quick-links{display:flex;flex-wrap:wrap;gap:14px;font-size:12px}
.resume-quick-links a{color:var(--upgrade-accent);text-decoration:underline;text-underline-offset:4px}
.contact-links{flex-wrap:wrap}
.contact-inner .btn-dark{min-height:52px}
.theme-toggle{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid #d7c4d2;border-radius:50px;background:#fff;padding:8px 12px;color:#543c54;font-size:12px;font-weight:700}
.theme-toggle:hover{background:#f3e5ef}
.mobile-contact-link{display:none}
/* True perspective-projected, hardware-independent robot visualization. */
.robot-3d-details{margin-top:14px;border:1px solid #a58da5;border-radius:12px;background:#1e1a2c;overflow:hidden;color:#f6e9f4}
.robot-3d-details summary{cursor:pointer;padding:13px 17px;font:700 12px/1.6 var(--sans);letter-spacing:.05em;color:#f7e5ef}
.robot-3d-details summary:hover{background:#30283e}
.robot-3d-body{padding:0 14px 16px}
.robot-3d-canvas-wrap{position:relative;background:radial-gradient(circle at 50% 43%,#34404d 0%,#1d2231 55%,#171b28 100%);border-radius:8px;overflow:hidden}
.robot-3d-canvas{display:block;width:100%;height:auto;aspect-ratio:1.3;touch-action:pan-y}
.robot-3d-caption{position:absolute;left:12px;bottom:10px;pointer-events:none;color:#eee0eb;font:600 11px/1.45 var(--sans);text-shadow:0 2px 4px #171b28}
.robot-3d-tools{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0 10px}
.robot-3d-tools button{border:1px solid #9884a6;background:#352c44;color:#fff;border-radius:50px;padding:8px 13px;font-size:12px;font-weight:650}
.robot-3d-tools button:hover,.robot-3d-tools button:focus-visible{background:#6e4878}
.robot-3d-tools button[aria-pressed="true"]{background:#b87f9e;color:#211729;border-color:#b87f9e}
.robot-3d-sliders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 17px}
.robot-3d-control{display:grid;grid-template-columns:1fr auto;column-gap:8px;color:#f3eaf1;font-size:11px}
.robot-3d-control output{font-variant-numeric:tabular-nums}
.robot-3d-control input{grid-column:1/-1;width:100%;accent-color:#e9a2ca}
.robot-3d-help{font-size:11px;line-height:1.65;color:#d7c5dd;margin:9px 0 0}
.robot-3d-status{font-size:12px;font-weight:700;color:#bbefda;margin:10px 0 0}
.robot-3d-status[data-warning="true"]{color:#ffb9b9}
.robot-console{min-width:0}
/* Centralized dark-mode design tokens. Keep component-specific rules below. */
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#191923;
  --paper:#242332;
  --soft:#302b3c;
  --soft-alt:#393247;
  --plum:#f8f2fa;
  --ink:#f8f5fc;
  --secondary:#e6ddea;
  --border:#61556d;
  --rose:#f1a7cd;
  --rose-dark:#ffbedb;
  --upgrade-ink:#f7e8f3;
  --upgrade-accent:#ecb0d0;
  --upgrade-line:#59485d;
  --upgrade-surface:#292332;
  --upgrade-muted:#ded0db;
  --eng-ink:#f8f5fc;
  --eng-graphite:#dfd5e4;
  --eng-rule:#65596f;
  --muted:#e0d4e1;
  --pink-deep:#ffc1df;
  --dark-text:#f8f5fc;
  --dark-body:#e6ddea;
  --dark-muted:#d7c9dd;
  --dark-link:#ffc5e0;
  --dark-surface:#282636;
  --dark-raised:#343044;
  --dark-border:#655b74;
  --draft-paper:#1d1c29;
  --draft-minor:rgba(196,177,205,.075);
  --draft-major:rgba(196,177,205,.14);
  --berry-deep:#682443;
  --berry:#982e62;
  --berry-hover:#b6477b;
  --berry-link:#ffc1dc;
  --berry-outline:#b15c88;
  --berry-wash:rgba(167,48,104,.15);
  --photo-gallery-heading:#fff2fa;
  --photo-gallery-description:#ead4e6;
  --photo-awards-border:#835c7d;
  --photo-awards-background:#34273c;
  --photo-awards-text:#eedbea;
  --photo-awards-heading:#f4bddb;
  --photo-gallery-label:#fff0fa;
  --photo-gallery-label-secondary:#e3d5e7;
  --project-caption-text:#f6eef5;
  --project-caption-surface:#342b3e;
  --project-caption-border:#6b5875;
  --picture-caption-text:#f6eef5;
  --picture-caption-muted:#e6d8e8;
  --picture-caption-bg:#312a3a;
  --picture-caption-border:#64536e;
}
:root[data-theme="dark"] .site-header{background:rgba(29,26,39,.98)}
:root[data-theme="dark"] .nav-links a{color:#eeddea}
:root[data-theme="dark"] .nav-links .nav-cta{background:#ac6791;color:#fff}
:root[data-theme="dark"] .hero .eyebrow{background:#312635;border-color:#695168}
:root[data-theme="dark"] .hero-description,:root[data-theme="dark"] .hero-trust-row,:root[data-theme="dark"] p{color:#d7c6d3}
:root[data-theme="dark"] .about-section,:root[data-theme="dark"] .feature-project,:root[data-theme="dark"] .project-card,:root[data-theme="dark"] .repo-card,:root[data-theme="dark"] .featured-project-card,:root[data-theme="dark"] .resume-note,:root[data-theme="dark"] .detail-card{background:#292331;color:#f7e8f3;border-color:#625067}
:root[data-theme="dark"] .section,:root[data-theme="dark"] .work-section{background-color:#1f1c29}
:root[data-theme="dark"] .hero,:root[data-theme="dark"] .robot-section,:root[data-theme="dark"] .contact-section{background-color:#201c29}
:root[data-theme="dark"] .theme-toggle,:root[data-theme="dark"] .directory-toolbar input,:root[data-theme="dark"] .directory-filter-set button,:root[data-theme="dark"] .detail-jump a{background:#342b3d;color:#f7e7f3;border-color:#7d6279}
:root[data-theme="dark"] .project-page .detail-panel,:root[data-theme="dark"] .project-page .detail-results{background:#332a3c;border-color:#69576c}
:root[data-theme="dark"] .project-page .detail-panel p,:root[data-theme="dark"] .project-page .detail-results p,:root[data-theme="dark"] .project-page .detail-source-note{color:#d8c7d7}
:root[data-theme="dark"] .project-page .detail-panel h2,:root[data-theme="dark"] .project-page .detail-results h2{color:#f1c5df}
:root[data-theme="dark"] .project-page .detail-heading,:root[data-theme="dark"] .project-page .detail-lead{color:#f4e9f0}
:root[data-theme="dark"] .project-page .detail-buttons a{background:#392d42;color:#f4d8ea}
:root[data-theme="dark"] .project-page .detail-buttons a:first-child{background:#a66b90;color:#fff}
:root[data-theme="dark"] .btn-outline{color:#f1d9e9;border-color:#94738a}
:root[data-theme="dark"] .engineering-focus>div{background:#34293b;border-color:#715974}
:root[data-theme="dark"] .featured-project-card small,:root[data-theme="dark"] .repo-card p,:root[data-theme="dark"] .hero-subtitle{color:#e0cedb}
:root[data-theme="dark"] .project-page .project-paper{background-color:#1e1b27}
:root[data-theme="dark"] .project-page .detail-heading h1{color:#f3e8f1}
:root[data-theme="dark"] .footer{background:#191720}
@media(max-width:1100px){.nav-links{gap:12px}.nav-links a{font-size:11px}}
@media(max-width:900px){
 .hero{grid-template-columns:minmax(0,1fr) minmax(245px,.7fr);gap:28px}
 .hero-photo img{height:450px}
 .nav{gap:12px}
 .nav-links{gap:10px}
 .nav-links a{font-size:11px}
}
@media(max-width:760px){
 .container,.featured-projects-inner,.technical-dossiers{width:calc(100% - 36px)}
 .section{padding:70px 0}
 .nav{height:68px;min-height:68px}
 .nav-links{max-height:calc(100svh - 68px);overflow-y:auto}
 .nav-links a{min-height:43px;display:flex;align-items:center}
 .mobile-contact-link{display:flex}
 .theme-toggle{margin:5px 0}
 .hero{display:flex;flex-direction:column;align-items:stretch;padding-top:42px;padding-bottom:54px;gap:32px}
 .hero h1{font-size:clamp(53px,11vw,77px)}
 .hero-photo{max-width:480px;width:100%;margin:auto}
 .hero-photo img{height:380px;border-radius:120px 120px 18px 18px}
 .hero-photo figcaption{text-align:center}
 .hero .eyebrow{font-size:10px}
 .featured-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .featured-project-card{min-height:200px;padding:18px}
 .featured-project-card strong{font-size:22px}
 .robot-3d-sliders{grid-template-columns:repeat(2,minmax(0,1fr))}
 .directory-toolbar{align-items:stretch}
}
@media(max-width:520px){
 .hero-buttons .btn{width:100%}
 .hero-photo img{height:340px}
 .featured-project-grid{grid-template-columns:1fr}
 .featured-project-card{min-height:165px}
 .featured-projects-section{padding-bottom:56px!important}
 .robot-3d-sliders{grid-template-columns:1fr}
 .robot-3d-canvas{aspect-ratio:1}
 .detail-jump{gap:8px}
 .detail-jump a{font-size:11px}
 .project-page .detail-card{padding:18px}
 .directory-filter-set button{padding:9px 11px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.featured-project-card,.repo-card{transition:none!important}.featured-project-card:hover,.repo-card:hover{transform:none}}

/* Compact toggle prevents stacking two tall motion visualizations. */
.robot-view-picker{display:flex;gap:4px;align-items:center;margin-left:auto}
.robot-view-picker button{font:700 11px/1.3 var(--sans);border:1px solid #8a7191;border-radius:5px;background:#352a40;color:#f2e5f4;padding:7px 12px}
.robot-view-picker button[aria-pressed="true"]{background:#e2accb;color:#2f1a33;border-color:#e2accb}
.robot-console[data-view="3d"] #arm-svg,.robot-console[data-view="3d"] .console-bottom{display:none}
.robot-console[data-view="2d"] .robot-3d-details{display:none}
.robot-console[data-view="3d"] .robot-3d-details{border-radius:0 0 11px 11px;margin-top:0;border:0}
.robot-console[data-view="3d"] .robot-3d-details>summary{font-size:11px}
.robot-console .console-header{flex-wrap:wrap;gap:8px}
.robot-console .console-title{min-width:0}
:root[data-theme="dark"] .resume-page{background:#171520}
:root[data-theme="dark"] .resume-page .page{background:#fff;color:#182e40}
:root[data-theme="dark"] .resume-page .page p{color:#243a4a}
:root[data-theme="dark"] .resume-page .page h1{color:#0b273d}
:root[data-theme="dark"] .resume-page .page h2{color:#155c69}
:root[data-theme="dark"] .resume-page .page a{color:#087b89}
:root[data-theme="dark"] .resume-page .page .sub{color:#526b78}
@media(max-width:520px){
 .robot-console .console-header{padding:12px}
 .robot-view-picker{width:100%;margin-left:0;justify-content:flex-end}
}


/* Dark mode readability pass: October 2026.
   High-contrast text and matching surfaces, while keeping paper book pages
   and the printable résumé light with their original dark ink. */

:root[data-theme="dark"] body,
:root[data-theme="dark"] body.project-page{
  background:#191923;color:var(--dark-text);
}
:root[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6){
  color:var(--dark-text);
}
:root[data-theme="dark"] :is(p,li,dd,blockquote){
  color:var(--dark-body);
}
:root[data-theme="dark"] :is(small,figcaption,dt,output){
  color:var(--dark-muted);
}
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] :is(h1,h2,h3) em,
:root[data-theme="dark"] .project-kicker{
  color:var(--dark-link);
}
:root[data-theme="dark"] :is(.hero-subtitle,.hero-description,.hero-trust-row,
 .hero-photo figcaption,.figure-index,.section-heading>p,.section-description,
 .section-heading>p:not(.eyebrow),.hero-signoff,.robot-aside,
 .timeline-date,.resume-small,.resume-caption,.footer-inner p,.top-link){
  color:var(--dark-body);
}
:root[data-theme="dark"] .site-header .logo,
:root[data-theme="dark"] .footer-logo{color:var(--dark-text)}
:root[data-theme="dark"] .nav-links a,
:root[data-theme="dark"] .detail-nav-actions a{color:var(--dark-text)}
:root[data-theme="dark"] .nav-links a:hover,
:root[data-theme="dark"] .nav-links a[aria-current="location"],
:root[data-theme="dark"] :is(.text-link,.repo-link,.repo-more a,.github-intro a,
 .resume-quick-links a,.detail-home-link,.detail-home,.dossier-detail-link){
  color:var(--dark-link);
}
:root[data-theme="dark"] :is(.btn-primary,.nav-links .nav-cta,.back-top){
  background:#82335c;color:#fff;border-color:#a85b83;
}
:root[data-theme="dark"] :is(.btn-primary,.nav-links .nav-cta,.back-top):hover{
  background:#9b4872;color:#fff;
}
:root[data-theme="dark"] .btn-outline{
  border-color:#ad8faa;background:#2e293a;color:#f8f2fa;
}
:root[data-theme="dark"] .btn-outline:hover{background:#41334b;color:#fff}
:root[data-theme="dark"] .btn-dark{background:#f5d9e8;color:#271f2d;border-color:#f5d9e8}
:root[data-theme="dark"] .btn-dark:hover{background:#fff;color:#271f2d}
:root[data-theme="dark"] .skip-link{background:#f4dce8;color:#1f1728}
:root[data-theme="dark"] :is(.hero .eyebrow,.engineering-focus,
 .feature-project,.repo-card,.project-card,.featured-project-card,
 .education-panel,.resume-note,.video-demo){
  border-color:var(--dark-border);
}
:root[data-theme="dark"] .engineering-focus{background:rgba(44,40,54,.85)}
:root[data-theme="dark"] .engineering-focus>div+div{border-left-color:var(--dark-border)}
:root[data-theme="dark"] .engineering-focus .focus-code,
:root[data-theme="dark"] .engineering-focus small{color:var(--dark-muted)}
:root[data-theme="dark"] .engineering-focus strong{color:var(--dark-text)}
:root[data-theme="dark"] .feature-project,
:root[data-theme="dark"] .work-section .feature-project,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .repo-card,
:root[data-theme="dark"] .featured-project-card,
:root[data-theme="dark"] .resume-note,
:root[data-theme="dark"] .video-demo{
  background:var(--dark-surface);color:var(--dark-text);
}
:root[data-theme="dark"] :is(.featured-project-card strong,.repo-card h3,
 .project-card h3,.resume-note strong,.project-metrics strong){
  color:var(--dark-text);
}
:root[data-theme="dark"] :is(.featured-project-card small,.featured-project-card .featured-category,
 .featured-project-card .featured-more,.project-card small,.project-year,
 .repo-card>p,.github-section .repo-card>p,.repo-category,
 .repo-meta,.repo-result-count,.github-section .repo-result-count,
 .repo-more,.feature-content>p:not(.project-kicker),.work-section .feature-content>p:not(.project-kicker),
 .project-metrics span){
  color:var(--dark-body);
}
:root[data-theme="dark"] :is(.about-chips span,.tag-row span,.repo-meta span,.interest-tags span){
  color:var(--dark-body);background:var(--dark-raised);
  border-color:var(--dark-border);
}
:root[data-theme="dark"] .featured-project-card:hover,
:root[data-theme="dark"] .repo-card:hover{border-color:#d6a8c6}
:root[data-theme="dark"] .feature-visual{background:#30293a}
:root[data-theme="dark"] .feature-visual figcaption{
  background:var(--picture-caption-bg);
  color:var(--picture-caption-text);
  border-color:var(--picture-caption-border);
}
:root[data-theme="dark"] .github-section,
:root[data-theme="dark"] .bookshelf-section,
:root[data-theme="dark"] .resume-section,
:root[data-theme="dark"] .case-studies-section,
:root[data-theme="dark"] .interests-section,
:root[data-theme="dark"] .experience-section,
:root[data-theme="dark"] .about-section{
  background:#1f1d2b;border-color:var(--dark-border);
}
:root[data-theme="dark"] :is(.pathway,.project-index,.github-refine,
 .repo-empty,.engineering-flow li,.shelf-preview,.shelf-level.is-previewing .shelf-preview){
  background:var(--dark-surface);border-color:var(--dark-border);
}
:root[data-theme="dark"] :is(.pathway strong,.project-index-heading,
 .github-refine>summary,.shelf-preview strong,.shelf-label-row h3){
  color:var(--dark-text);
}
:root[data-theme="dark"] :is(.pathway small,.project-index-caption,
 .shelf-preview [data-preview-text],.shelf-collection-description,
 .shelf-label-row h3 span,.shelf-swipe-hint,.bookshelf-help){
  color:var(--dark-body);
}
:root[data-theme="dark"] .pathway-icon{
  background:var(--dark-raised);color:var(--dark-link);
}
:root[data-theme="dark"] :is(.project-index>summary:hover,
 .project-index[open]>summary,.github-refine>summary:hover,
 .github-refine[open]>summary){background:var(--dark-raised)}
:root[data-theme="dark"] .project-index-symbol{
  background:var(--dark-raised);border-color:var(--dark-border);
}
:root[data-theme="dark"] .project-index-symbol:before,
:root[data-theme="dark"] .project-index-symbol:after{background:var(--dark-link)}
:root[data-theme="dark"] .github-profile-link,
:root[data-theme="dark"] .repo-filter,
:root[data-theme="dark"] :is(.pose-button,.sequence-button,.sequence-stop,.tuner-reset){
  background:var(--dark-raised);color:var(--dark-text);
  border-color:var(--dark-border);
}
:root[data-theme="dark"] .repo-filter.active,
:root[data-theme="dark"] :is(.pose-button.active,.pose-button[aria-pressed="true"]){
  background:#82335c;color:#fff;border-color:#a55a80;
}
:root[data-theme="dark"] .repo-filter:hover,
:root[data-theme="dark"] :is(.pose-button,.sequence-button,.sequence-stop):hover{
  background:#51405b;color:#fff;
}
:root[data-theme="dark"] .repo-search-wrap label,
:root[data-theme="dark"] .directory-toolbar label,
:root[data-theme="dark"] .joint-row label{
  color:var(--dark-text);
}
:root[data-theme="dark"] :is(.repo-search-wrap input,.directory-toolbar input){
  background:#302b3d;color:var(--dark-text);
  border-color:#887994;
}
:root[data-theme="dark"] :is(.repo-search-wrap input,.directory-toolbar input)::placeholder{
  color:#d0bfd8;opacity:1;
}
:root[data-theme="dark"] .directory-filter-set button[aria-pressed="true"]{
  background:#82335c;color:#fff;border-color:#ae688c;
}
:root[data-theme="dark"] .directory-result-count,
:root[data-theme="dark"] .repo-result-count{color:var(--dark-body)}
:root[data-theme="dark"] .directory-empty{color:var(--dark-text);border-color:var(--dark-border)}
:root[data-theme="dark"] .directory-empty button{color:var(--dark-link)}
:root[data-theme="dark"] .engineering-flow{
  border-color:var(--dark-border);
}
:root[data-theme="dark"] .engineering-flow .flow-label,
:root[data-theme="dark"] .engineering-flow li>span{
  color:var(--dark-link);
}
:root[data-theme="dark"] .engineering-flow li{color:var(--dark-text)}
:root[data-theme="dark"] .timeline-date,
:root[data-theme="dark"] .skill-column p,
:root[data-theme="dark"] .about-honors{color:var(--dark-body)}
:root[data-theme="dark"] .skill-column{border-color:var(--dark-border)}
:root[data-theme="dark"] .bookshelf-cabinet{
  background:linear-gradient(160deg,#302636,#252333);
  border-color:var(--dark-border);
}
:root[data-theme="dark"] .shelf-preview-label,
:root[data-theme="dark"] .shelf-label-row h3 span{color:var(--dark-link)}
:root[data-theme="dark"] .shelf-collection-link{
  background:#3b3047;color:var(--dark-text);
  border-color:#89788f;
}
:root[data-theme="dark"] .shelf-collection-link:hover{background:#51405b;color:#fff}
:root[data-theme="dark"] .shelf-level{
  --collection-ink:#e8c0df;
}
:root[data-theme="dark"] .book-spine{
  color:var(--spine-text);
}
:root[data-theme="dark"] .book-page,
:root[data-theme="dark"] .book-spread{
  color:#3b2e3d;
}
/* Book pages are intentionally light paper, so restore dark text in that context. */
:root[data-theme="dark"] .book-page :is(p,li,dd,dt,small,figcaption,blockquote){
  color:#534450;
}
:root[data-theme="dark"] .book-page :is(h1,h2,h3,h4,h5,strong){
  color:#382b3c;
}
:root[data-theme="dark"] .book-page :is(.book-page-number,.book-page-chapter,
 .book-project-link,.book-project-facts dt){
  color:#704258;
}
:root[data-theme="dark"] .project-book-dialog .book-modal-subtitle{
  color:#574452;
}
/* Dossier cards use many hand-authored fixed colors and nested figure surfaces. */
:root[data-theme="dark"] .case-studies-section .technical-dossier,
:root[data-theme="dark"] .section .technical-dossier{
  background:var(--dark-surface);border-color:var(--dark-border);
  border-left-color:#d9a1c3;color:var(--dark-text);
}
:root[data-theme="dark"] .dossier-intro h2,
:root[data-theme="dark"] .dossier-head h4,
:root[data-theme="dark"] .dossier-notes h5,
:root[data-theme="dark"] .dossier-notes strong,
:root[data-theme="dark"] .dossier-footer strong,
:root[data-theme="dark"] .dossier-chain strong,
:root[data-theme="dark"] .dossier-evidence strong,
:root[data-theme="dark"] .nasa-arch-stage strong,
:root[data-theme="dark"] .nasa-arch-branch strong,
:root[data-theme="dark"] .dossier-verification h5,
:root[data-theme="dark"] .verification-table tbody th{
  color:var(--dark-text);
}
:root[data-theme="dark"] :is(.dossier-intro>p:last-child,.dossier-summary,
 .dossier-notes p,.dossier-notes li,.dossier-evidence small,
 .dossier-chain small,.dossier-footer p,.dossier-source-note,
 .dossier-figure .figure-foot,.nasa-system-architecture p){
  color:var(--dark-body);
}
:root[data-theme="dark"] :is(.dossier-id,.dossier-figure figcaption,.chain-index,
 .dossier-evidence>div>span,.nasa-arch-label,.verification-table caption){
  color:var(--dark-muted);
}
:root[data-theme="dark"] :is(.dossier-head,.dossier-footer,.dossier-verification){
  border-color:var(--dark-border);
}
:root[data-theme="dark"] .dossier-status{
  background:var(--dark-raised);color:var(--dark-text);
  border-color:var(--dark-border);
}
:root[data-theme="dark"] :is(.dossier-role,.dossier-evidence>div,
 .dossier-chain li,.nasa-arch-stage,.nasa-arch-branch){
  background:var(--dark-raised);border-color:var(--dark-border);
}
:root[data-theme="dark"] .dossier-role strong{color:var(--dark-link)}
:root[data-theme="dark"] .dossier-role p{color:var(--dark-body)}
:root[data-theme="dark"] .dossier-figure{
  background:linear-gradient(to right,rgba(230,215,238,.045) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(230,215,238,.045) 1px,transparent 1px),
    #2d2a3a;
  border-color:var(--dark-border);
}
:root[data-theme="dark"] .dossier-footer a,
:root[data-theme="dark"] .dossier-footer a:is(:hover,:focus-visible){
  color:var(--dark-link);
}
:root[data-theme="dark"] .verification-scroll{
  background:var(--dark-raised);border-color:var(--dark-border);
}
:root[data-theme="dark"] .verification-table{color:var(--dark-body)}
:root[data-theme="dark"] .verification-table thead th{
  background:#443a50;color:var(--dark-text);
}
:root[data-theme="dark"] .verification-table caption{
  background:#352d40;color:var(--dark-body);
}
:root[data-theme="dark"] .verification-table :is(th,td){
  border-bottom-color:var(--dark-border);
}
/* Project directory and individual case studies. */
:root[data-theme="dark"] body.project-page,
:root[data-theme="dark"] .project-page .project-paper{
  background:#1d1c29;color:var(--dark-text);
}
:root[data-theme="dark"] .project-page .detail-navigation{
  background:#272333;border-color:var(--dark-border);
}
:root[data-theme="dark"] .project-page :is(.detail-home,.detail-nav-actions a,
 .detail-home-link){color:var(--dark-link)}
:root[data-theme="dark"] .project-page :is(.detail-heading h1,.detail-heading>p:last-child,
 .detail-tag,.detail-lead,.detail-footer){color:var(--dark-text)}
:root[data-theme="dark"] .project-page .detail-card{
  background:var(--dark-surface);border-color:var(--dark-border);
  color:var(--dark-text);
}
:root[data-theme="dark"] .project-page :is(.detail-panel,.detail-results){
  background:var(--dark-raised);border-color:var(--dark-border);
}
:root[data-theme="dark"] .project-page :is(.detail-panel h2,.detail-results h2){
  color:var(--dark-link);
}
:root[data-theme="dark"] .project-page :is(.detail-panel p,.detail-results p,
 .detail-source-note){color:var(--dark-body)}
:root[data-theme="dark"] .project-page .detail-buttons a{
  background:#3e3349;color:var(--dark-text);
  border-color:var(--dark-border);
}
:root[data-theme="dark"] .project-page .detail-buttons a:first-child{
  background:#82335c;color:#fff;border-color:#a85b83;
}
:root[data-theme="dark"] .project-page .detail-buttons a:is(:hover,:focus-visible){
  background:#51405b;color:#fff;
}
:root[data-theme="dark"] .project-page .detail-jump a{
  background:var(--dark-raised);color:var(--dark-text);
  border-color:var(--dark-border);
}
:root[data-theme="dark"] .project-page .detail-jump span{
  color:var(--dark-muted);
}
/* The original 2D simulator is an inverse-color console; preserve its palette. */
:root[data-theme="dark"] :is(.console-title,.console-tag,.console-bottom,
 .telemetry,.robot-view-picker button,.robot-3d-tools button){
  color:#f8f2fa;
}
:root[data-theme="dark"] .robot-3d-help{color:#e7dbea}
:root[data-theme="dark"] .robot-3d-status{color:#c0f4d9}
:root[data-theme="dark"] .robot-3d-status[data-warning="true"]{color:#ffc9c9}
:root[data-theme="dark"] .robot-view-picker button[aria-pressed="true"],
:root[data-theme="dark"] .robot-3d-tools button[aria-pressed="true"]{
  color:#271d31;
}
/* Contrast in résumé intentionally stays dark text on white paper, including
   print and browser dark-mode preferences. */
:root[data-theme="dark"] .resume-page .page :is(p,li,small,dt,dd){
  color:#243a4a;
}
:root[data-theme="dark"] .resume-page .page :is(h1,h2,h3,strong,b){
  color:#162d40;
}
:root[data-theme="dark"] .resume-page .page a{color:#095f7b}
:root[data-theme="dark"] .resume-page .page .sub{color:#405b70}
:root[data-theme="dark"] .resume-page .actions a,
:root[data-theme="dark"] .resume-page .actions button{
  background:#17475a;color:#fff;
}


/* Pink accents and active joint control surfaces, October 2026 */
/* Accessible custom range inputs: colorful, visible, keyboard operable. */
.joint-row input[type="range"],
.robot-3d-control input[type="range"]{
  --range-progress:50%;
  --range-active:#ba497d;
  --range-inactive:#a994ab;
  -webkit-appearance:none;
  appearance:none;
  display:block;
  width:100%;
  height:32px;
  min-height:32px;
  margin:6px 0 3px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  cursor:grab;
  opacity:1;
  touch-action:pan-y;
}
.joint-row input[type="range"]:active,
.robot-3d-control input[type="range"]:active{cursor:grabbing}
.joint-row input[type="range"]::-webkit-slider-runnable-track,
.robot-3d-control input[type="range"]::-webkit-slider-runnable-track{
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--range-active) 0 var(--range-progress),var(--range-inactive) var(--range-progress) 100%);
  border:1px solid rgba(64,41,68,.16);
}
.joint-row input[type="range"]::-moz-range-track,
.robot-3d-control input[type="range"]::-moz-range-track{
  height:10px;border-radius:999px;
  background:linear-gradient(90deg,var(--range-active) 0 var(--range-progress),var(--range-inactive) var(--range-progress) 100%);
  border:1px solid rgba(64,41,68,.16);
}
.joint-row input[type="range"]::-webkit-slider-thumb,
.robot-3d-control input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:23px;height:23px;margin-top:-7px;
  border:3px solid #fff;
  border-radius:50%;
  background:#a93370;
  box-shadow:0 0 0 2px #822754,0 3px 8px rgba(43,23,43,.3);
  transition:box-shadow .16s ease,background-color .16s ease;
}
.joint-row input[type="range"]::-moz-range-thumb,
.robot-3d-control input[type="range"]::-moz-range-thumb{
  width:18px;height:18px;
  border:3px solid #fff;
  border-radius:50%;
  background:#a93370;
  box-shadow:0 0 0 2px #822754,0 3px 8px rgba(43,23,43,.3);
}
.joint-row input[type="range"]:is(:hover,:focus-visible)::-webkit-slider-thumb,
.robot-3d-control input[type="range"]:is(:hover,:focus-visible)::-webkit-slider-thumb{
  background:#d74f94;
  box-shadow:0 0 0 5px rgba(186,73,125,.33),0 3px 8px rgba(43,23,43,.3);
}
.joint-row input[type="range"]:is(:hover,:focus-visible)::-moz-range-thumb,
.robot-3d-control input[type="range"]:is(:hover,:focus-visible)::-moz-range-thumb{
  background:#d74f94;
  box-shadow:0 0 0 5px rgba(186,73,125,.33),0 3px 8px rgba(43,23,43,.3);
}
.joint-row input[type="range"]:focus-visible,
.robot-3d-control input[type="range"]:focus-visible{
  outline:3px solid #ee93c0;
  outline-offset:5px;
  border-radius:8px;
}
.joint-row input[type="range"]:disabled,
.robot-3d-control input[type="range"]:disabled{cursor:not-allowed;opacity:.6}

/* Saturated berry for important surfaces, pale pink only for text on dark.
   Deep backgrounds stay distinct so that the site isn't monochromatic. */

:root[data-theme="dark"] .hero{
  background-image:radial-gradient(ellipse 65% 72% at 6% 22%,rgba(143,37,83,.18),transparent 80%);
}
:root[data-theme="dark"] .featured-projects-section,
:root[data-theme="dark"] .skills-section{
  background-image:radial-gradient(ellipse 65% 50% at 100% 0%,rgba(147,47,91,.12),transparent 80%);
}
:root[data-theme="dark"] .section-heading::after{
  content:"";
  display:block;
  width:65px;height:4px;
  margin-top:20px;
  border-radius:999px;
  background:linear-gradient(90deg,#b94480,#f2a7cb);
}
:root[data-theme="dark"] .hero .eyebrow{
  color:#ffd2e7;background:#54243e;border-color:#ae4c79;
}
:root[data-theme="dark"] :is(.eyebrow,.project-kicker,.featured-project-card .featured-category,.repo-category){
  color:var(--berry-link);
}
:root[data-theme="dark"] :is(.feature-project,.repo-card,.project-card,.featured-project-card){
  border-top:2px solid var(--berry-outline);
}
:root[data-theme="dark"] .featured-project-card{
  background:linear-gradient(155deg,rgba(108,38,78,.21),rgba(40,38,54,.93) 46%);
}
:root[data-theme="dark"] :is(.feature-project,.repo-card,.project-card,.technical-dossier){
  box-shadow:0 12px 34px rgba(18,10,22,.2);
}
:root[data-theme="dark"] .featured-project-card:is(:hover,:focus-visible),
:root[data-theme="dark"] .repo-card:focus-within{
  border-color:#dd88b3;
  box-shadow:0 16px 40px rgba(116,31,74,.2);
}
:root[data-theme="dark"] :is(.nav-links a[aria-current="location"],.nav-links a[href="#contact"],
 .github-intro a,.resume-quick-links a,.repo-link,.text-link){
  color:var(--berry-link);
}
:root[data-theme="dark"] :is(.btn-primary,.nav-links .nav-cta,.back-top,
 .repo-filter.active,.repo-filter[aria-pressed="true"],
 .directory-filter-set button[aria-pressed="true"],.pose-button.active,
 .pose-button[aria-pressed="true"]){
  background:var(--berry);color:#fff;border-color:#c06190;
}
:root[data-theme="dark"] :is(.btn-primary,.nav-links .nav-cta,.back-top,
 .repo-filter.active,.directory-filter-set button[aria-pressed="true"],
 .pose-button.active):hover{
  background:var(--berry-hover);color:#fff;
}
:root[data-theme="dark"] .resume-note{
  border-left:4px solid #c2588f;
  background:linear-gradient(120deg,#382438,#282636 60%);
}
:root[data-theme="dark"] .project-page .detail-card,
:root[data-theme="dark"] .case-studies-section .technical-dossier{
  border-top:3px solid #b84c81;
}
:root[data-theme="dark"] .timeline-dot{background:#eb88b4}
:root[data-theme="dark"] .skill-column{border-top-color:#b94c83}
:root[data-theme="dark"] .project-metrics{border-color:#745271}
:root[data-theme="dark"] .robot-tuner{
  background:linear-gradient(145deg,#43253c,#2e293b 72%);
  border:2px solid #b24d83;
  box-shadow:0 12px 28px rgba(27,14,30,.18),inset 0 1px 0 rgba(255,189,222,.12);
  color:var(--dark-text);
}
:root[data-theme="dark"] .robot-tuner h3{
  color:#fff3f9;font-size:17px;font-weight:750;
}
:root[data-theme="dark"] .robot-tuner :is(.tuner-hint,.tuner-bottom p){
  color:#f0dce9;
}
:root[data-theme="dark"] .robot-tuner .joint-row{
  background:rgba(29,21,36,.5);
  border:1px solid #875074;
  border-radius:12px;
  padding:9px 12px 10px;
  margin:11px 0;
}
:root[data-theme="dark"] .robot-tuner .joint-row label{
  color:#fff4fa;font-size:13px;font-weight:700;
}
:root[data-theme="dark"] .robot-tuner .joint-row output{
  color:#fff3f8;
  background:#912c5e;
  border:1px solid #d46b9f;
  min-width:60px;
  padding:5px 9px;
  border-radius:8px;
  font-weight:750;
  text-align:center;
}
:root[data-theme="dark"] .robot-tuner .tuner-reset{
  background:#962f63;
  color:#fff;
  border:1px solid #d780ad;
}
:root[data-theme="dark"] .robot-tuner .tuner-reset:hover{
  background:#ba477f;
  color:#fff;
}
:root[data-theme="dark"] .robot-3d-details{
  border-color:#9e4c7a;
  background:#211d2d;
}
:root[data-theme="dark"] .robot-3d-details>summary{
  background:#51223e;
  color:#fff3fa;
  border-bottom:1px solid #98507e;
}
:root[data-theme="dark"] .robot-3d-details>summary:hover{
  background:#762d55;
  color:#fff;
}
:root[data-theme="dark"] .robot-3d-control{
  background:#352438;
  border:1px solid #91517a;
  padding:11px 12px;
  border-radius:11px;
  color:#fff4fa;
  font-size:12px;
  font-weight:700;
}
:root[data-theme="dark"] .robot-3d-control label{
  color:#fff4fa;
}
:root[data-theme="dark"] .robot-3d-control output{
  color:#fff;
  background:#922f64;
  border:1px solid #d46b9f;
  border-radius:7px;
  padding:2px 7px;
  font-size:12px;
  min-width:44px;
  text-align:center;
}
:root[data-theme="dark"] .robot-3d-tools button{
  background:#492b44;
  border-color:#ab6595;
  color:#fff3fb;
}
:root[data-theme="dark"] .robot-3d-tools button:hover,
:root[data-theme="dark"] .robot-3d-tools button:focus-visible{
  background:#793055;color:#fff;
}
:root[data-theme="dark"] .robot-3d-tools button[aria-pressed="true"]{
  background:#d773a7;
  color:#261727;
  border-color:#ef9bc4;
}
:root[data-theme="dark"] .robot-view-picker button[aria-pressed="true"]{
  background:#d773a7;color:#261727;border-color:#ef9bc4;
}
:root[data-theme="dark"] .joint-row input[type="range"],
:root[data-theme="dark"] .robot-3d-control input[type="range"]{
  --range-active:#dc5f9a;
  --range-inactive:#7f6885;
}
:root[data-theme="dark"] .robot-3d-help{
  color:#eee2ec;
}
@media(prefers-reduced-motion:reduce){
  .joint-row input[type="range"]::-webkit-slider-thumb,
  .robot-3d-control input[type="range"]::-webkit-slider-thumb{
    transition:none;
  }
}


/* Site-wide layout consistency and duplicate-control cleanup (2026-10). */
/* Only expose the active robot editor, rather than two separate control panels. */
.robot-layout{align-items:start;gap:clamp(28px,4vw,64px)}
.robot-copy{min-width:0}
.robot-2d-controls{margin-top:20px}
.robot-2d-controls[hidden],.robot-console [hidden]{display:none!important}
.robot-view-picker{flex-wrap:wrap}
.robot-view-picker button{
  min-height:37px;
  padding:9px 15px;
  transition:background-color .15s ease,border-color .15s ease;
}
.robot-view-picker button[aria-pressed="true"]{
  background:#ecacd0;color:#2a1c30;border-color:#ecacd0;
}
.robot-view-picker button[aria-pressed="false"]{
  background:#392e48;color:#f8e7f4;border-color:#967d9e;
}
.robot-view-picker button:hover,.robot-view-picker button:focus-visible{
  border-color:#f8bcdd;background:#614065;color:#fff;
}
.robot-view-picker button[aria-pressed="true"]:hover,.robot-view-picker button[aria-pressed="true"]:focus-visible{
  color:#26192b;background:#f4c3dc;
}
.robot-copy #robot-view-description{
  border-left:4px solid #b94780;
  padding:12px 16px;
  border-radius:0 10px 10px 0;
  background:rgba(175,92,143,.075);
  color:#4e4357;
  font-size:13px;
  line-height:1.7;
}
.robot-console{width:100%;min-width:0}
.robot-console[data-view="2d"] #arm-svg{display:block;width:100%;height:auto}
.robot-console[data-view="3d"] .robot-3d-details{margin:0;border:0;border-radius:0 0 14px 14px}
.robot-3d-canvas-wrap{outline-offset:2px}
.robot-3d-controls .robot-3d-control{min-width:0}
.robot-3d-control label{overflow-wrap:break-word}
.robot-3d-control output{white-space:nowrap}
.robot-3d-status{line-height:1.6}
.robot-3d-details>summary:focus-visible{
  outline:3px solid #f0b2cf;
  outline-offset:-3px;
}
:root[data-theme="dark"] .robot-copy #robot-view-description{
  background:rgba(158,42,100,.25);
  border-color:#e07fac;color:#f5e6f1;
}
:root[data-theme="dark"] .robot-view-picker button[aria-pressed="false"]{
  background:#382d48;color:#fff3fb;border-color:#92729d;
}
:root[data-theme="dark"] .robot-view-picker button[aria-pressed="true"]{
  background:#db80b0;color:#2b1830;border-color:#f2b0d2;
}
/* Older project photographs and diagrams should be as readable as newer galleries. */
.project-page .detail-figure{
  width:100%;max-width:100%;
  padding:clamp(10px,1.7vw,17px);
  margin:23px 0 28px;
  border-radius:14px;
}
.project-page .detail-figure img,
.project-page .detail-figure video{
  width:100%;height:auto;max-height:560px;
  object-fit:contain;
  border-radius:9px;
}
.project-page .detail-figure figcaption{
  padding:0 4px;
  font-size:12px;
  line-height:1.75;
  color:#605267;
}
.project-page .detail-jump{max-width:100%}
.project-page .detail-jump a{min-height:39px;display:inline-flex;align-items:center}
.project-page .detail-nav-actions{row-gap:10px}
.project-page .detail-card,.project-page .detail-panel{min-width:0}
.project-page .detail-card p,.project-page .detail-panel p{overflow-wrap:break-word}
.project-page .detail-buttons{flex-wrap:wrap}
.project-page .detail-buttons a{max-width:100%;text-align:center;min-height:43px}
.project-directory-grid .featured-project-card{min-width:0}
.project-directory-grid .featured-project-card strong{overflow-wrap:anywhere}
.project-directory-grid .featured-category{overflow-wrap:anywhere}
:root[data-theme="dark"] .project-page .detail-figure{
  background:#302b3c;border-color:#78637a;
}
:root[data-theme="dark"] .project-page .detail-figure img,
:root[data-theme="dark"] .project-page .detail-figure video{
  background:#1c2230;
}
:root[data-theme="dark"] .project-page .detail-figure figcaption{
  color:#eee0ee;
}
:root[data-theme="dark"] .project-page .detail-heading>p:last-child,
:root[data-theme="dark"] .project-page .directory-intro{
  color:#e6d9e8;
}
/* Clear, shared focus treatment and better hit areas for all content types. */
:where(.theme-toggle,.repo-filter,.directory-filter-set button,
       .robot-3d-tools button,.pose-button,.robot-view-picker button):focus-visible{
  outline:3px solid #c05288;outline-offset:3px;
}
:root[data-theme="dark"] :where(.theme-toggle,.repo-filter,.directory-filter-set button,
       .robot-3d-tools button,.pose-button,.robot-view-picker button):focus-visible{
  outline-color:#ffc1df;
}
@media(max-width:860px){
  .robot-layout{grid-template-columns:1fr;gap:24px}
  .robot-console{max-width:720px}
  .robot-copy{max-width:720px}
}
@media(max-width:590px){
  .robot-view-picker{width:100%;justify-content:stretch}
  .robot-view-picker button{flex:1;min-width:0}
  .robot-3d-details summary{font-size:12px}
  .robot-3d-tools button{min-height:38px}
  .project-page .detail-figure{padding:9px;margin:17px 0 25px}
  .project-page .detail-nav-actions{gap:10px 14px}
  .project-page .detail-nav-actions a{font-size:11px}
}


/* Consolidated project figure and directory styles. */
.project-page .detail-figure{border:1px solid #ded5df;background:#f9f7fa;width:100%;max-width:100%;margin:23px 0 28px;padding:clamp(10px,1.7vw,17px);border-radius:14px}
.project-page .detail-figure img,.project-page .detail-figure video{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;border-radius:9px;background:#ece7ed}
.project-page .detail-figure figcaption{margin-top:10px;padding:0 4px;font-size:12px;line-height:1.75;color:#605267}
.project-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.project-directory-grid .featured-project-card{min-height:175px}
.project-page .directory-intro{max-width:78ch;color:#5d5867;line-height:1.8;margin:0 0 26px}
.project-directory-grid .featured-category{overflow-wrap:anywhere}
:root[data-theme="dark"] .project-page .detail-figure{background:#302b3c;border-color:#78637a}
:root[data-theme="dark"] .project-page .detail-figure img,:root[data-theme="dark"] .project-page .detail-figure video{background:#1c2230}
:root[data-theme="dark"] .project-page .detail-figure figcaption,:root[data-theme="dark"] .project-page .directory-intro{color:#ede0ee}
@media(max-width:850px){.project-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.project-directory-grid{grid-template-columns:1fr}.project-directory-grid .featured-project-card{min-height:0}}


/* Project-page content hierarchy and grouped directory (October 2026). */
.project-page .detail-container{display:flow-root}
.project-page .detail-heading{margin-bottom:20px}
.project-page .detail-jump{
  display:flex;flex-wrap:wrap;align-items:center;
  gap:8px;margin:12px 0 25px;
  border-bottom:1px solid #dfd3e0;
  padding:0 0 17px;
}
.project-page .detail-jump>span{
  flex-basis:100%;font-size:10px;letter-spacing:.1em;
  font-weight:750;color:#846681;
}
.project-page .detail-jump a{
  border-color:#d1bcd0;
  background:#fff9fd;
  font-weight:700;
  text-decoration:none;
  min-height:40px;
  padding:10px 15px;
}
.project-page .detail-jump a:focus-visible{outline:3px solid #b4477f;outline-offset:3px}
.project-overview{
  position:relative;
  padding:clamp(23px,3.2vw,35px);
  margin:0 0 24px;
  background:linear-gradient(110deg,#fffafa,#f8f0f7);
  border:1px solid #e0ccd9;
  border-top:4px solid #ad4579;
  border-radius:16px;
  box-shadow:0 12px 28px rgba(54,26,48,.04);
}
.project-overview .detail-tag{display:inline-block;margin:0 0 13px}
.project-overview .detail-lead{
  max-width:78ch;
  font-size:clamp(15px,1.6vw,18px);
  line-height:1.85;
  color:#463c4e;
  margin:0;
}
.project-overview__role{
  border-top:1px solid #e5d5e0;
  margin-top:18px;
  padding-top:15px;
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:7px 14px;
}
.project-overview__role strong{
  color:#794b70;
  font:750 12px/1.5 var(--sans);
}
.project-overview__role p{
  flex:1 1 300px;
  color:#564a5a;
  font-size:13px;
  line-height:1.75;
  margin:0;
}
.project-overview .detail-figure{margin:20px 0 0}
.project-page .detail-card{
  padding:clamp(23px,3.3vw,38px);
  margin:22px 0 25px;
}
.project-details-title{
  font:500 clamp(25px,3vw,34px)/1.3 var(--serif);
  color:#382a42;
  letter-spacing:-.025em;
  margin:0 0 19px;
}
.project-page .detail-grid{margin:0 0 25px}
.project-page .detail-grid>.detail-panel h2{
  font-size:clamp(16px,1.9vw,20px);
  margin-bottom:11px;
}
.project-page .detail-grid>.detail-panel p{
  font-size:13px;line-height:1.8
}
.project-page .detail-results{margin:18px 0}
.project-page .detail-card>.detail-panel{
  margin-top:17px;
}
.project-related{margin:20px 0 0}
.project-related a{
  color:#824266;
  font-size:13px;font-weight:700;
  text-underline-offset:4px;
}
.project-evidence{
  border:1px solid #e3d3e0;
  border-left:4px solid #af5d8b;
  border-radius:11px;
  padding:clamp(19px,2.8vw,27px);
  margin:23px 0 28px;
  background:#fbf5f9;
}
.project-evidence h2{
  color:#553650;
  font:500 clamp(22px,2.6vw,27px)/1.3 var(--serif);
  margin:0 0 10px;
}
.project-evidence p{
  max-width:92ch;
  color:#564958;
  font:400 13px/1.85 var(--sans);
  margin:0;
}
.project-evidence p+p{margin-top:10px}
.project-page :is(#project-overview,#project-method,#project-results,#project-evidence,.project-visual-gallery,.thermal-showcase,.iverify-showcase){
  scroll-margin-top:95px;
}
:root[data-theme="dark"] .project-page .detail-jump{border-bottom-color:#735f77}
:root[data-theme="dark"] .project-page .detail-jump>span{color:#edb1d2}
:root[data-theme="dark"] .project-page .detail-jump a{
  background:#3a2c41;
  color:#f8e9f3;
  border-color:#895e80;
}
:root[data-theme="dark"] .project-overview{
  background:linear-gradient(115deg,#432c3f,#292636);
  border-color:#845b7a;
  border-top-color:#d56e9e;
}
:root[data-theme="dark"] .project-overview .detail-lead,
:root[data-theme="dark"] .project-overview__role p{color:#f0e2f0}
:root[data-theme="dark"] .project-overview__role{
  border-top-color:#7d5b78
}
:root[data-theme="dark"] .project-overview__role strong{color:#ffc3df}
:root[data-theme="dark"] .project-details-title{color:#fff2fa}
:root[data-theme="dark"] .project-related a{color:#ffc0de}
:root[data-theme="dark"] .project-evidence{
  background:#362a3d;
  border-color:#865f83;
  border-left-color:#e086b5;
}
:root[data-theme="dark"] .project-evidence h2{color:#fff2fa}
:root[data-theme="dark"] .project-evidence p{color:#eddfef}
/* A browsable library has actual subject groupings, not a flat 16-card wall. */
.directory-group{margin:25px 0 38px;min-width:0}
.directory-group[hidden]{display:none!important}
.directory-group__head{
  display:flex;justify-content:space-between;
  align-items:baseline;flex-wrap:wrap;
  gap:7px 18px;
  padding:0 0 13px;
  border-bottom:1px solid #d9c6d5;
  margin-bottom:16px;
}
.directory-group__head h2{
  margin:0;
  font:500 clamp(23px,2.8vw,30px)/1.26 var(--serif);
  color:#3a2a43;
}
.directory-group__head p{margin:0;font:400 12px/1.6 var(--sans);color:#695769}
.directory-group .project-directory-grid{margin:0}
:root[data-theme="dark"] .directory-group__head{border-bottom-color:#775f76}
:root[data-theme="dark"] .directory-group__head h2{color:#fff1fa}
:root[data-theme="dark"] .directory-group__head p{color:#e5d3e5}
@media(max-width:640px){
  .project-page .detail-jump{gap:7px}
  .project-page .detail-jump a{font-size:11px;min-height:40px;padding:10px 12px}
  .project-overview{padding:20px;margin-bottom:19px}
  .project-page .detail-card{padding:20px;margin:19px 0}
  .project-page .detail-grid{grid-template-columns:1fr}
  .project-overview__role{display:block}
  .project-overview__role p{margin-top:6px}
  .directory-group{margin:18px 0 28px}
}
@media(prefers-reduced-motion:reduce){
  .project-page .detail-jump a{transition:none!important}
}


/* Three complementary facts are easier to scan in one row than a broken 2×2 grid. */
@media(min-width:890px){
  .project-page .detail-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
}
@media(min-width:641px) and (max-width:889px){
  .project-page .detail-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
  }
}
@media(max-width:640px){
  .project-page .detail-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:11px;
  }
}


/* Final project reading-scale and semantic card pass (2026-10). */
/* Treat each card title as a useful heading, not an 11px metadata label. */
.project-page .detail-grid>.detail-panel h3{
  margin:0 0 10px;
  color:#6b3359;
  font:750 clamp(16px,1.65vw,19px)/1.4 var(--sans);
  letter-spacing:-.015em;
  text-transform:none;
}
.project-page .detail-grid>.detail-panel p{
  color:#4c4555;
  font-size:15px;
  line-height:1.8;
  overflow-wrap:break-word;
}
.project-page .detail-results{
  margin:18px 0;
  padding:clamp(18px,2.7vw,27px);
  border-left:4px solid #b44a82;
}
.project-page .detail-results h2{
  font:650 clamp(20px,2vw,24px)/1.4 var(--serif);
  color:#513a56;
  letter-spacing:-.01em;
  text-transform:none;
  margin:0 0 9px;
}
.project-page .detail-results p,
.project-page .detail-card>.detail-panel p{
  font-size:15px;
  line-height:1.85;
  color:#4b4653;
  max-width:84ch;
}
.project-page .detail-card>.detail-panel h2{
  color:#543b5d;
  font:650 clamp(18px,2vw,22px)/1.4 var(--serif);
  letter-spacing:0;
  text-transform:none;
  margin-bottom:10px;
}
.project-page .detail-heading>p:last-child{
  color:#5a4d5b;
  font-size:clamp(15px,1.7vw,18px);
  line-height:1.7;
}
.project-visual-gallery__top p,
.thermal-feature-heading p{
  font-size:15px;
  line-height:1.78;
  color:#554b5b;
}
.project-visual-gallery__figure figcaption,
.thermal-feature figcaption,
.iverify-concept-figure figcaption{
  font-size:13px;
  line-height:1.8;
}
.project-visual-gallery__head p:last-child,
.thermal-showcase-head>p:last-child,
.iverify-showcase-header p:last-child{
  font-size:15px;
  line-height:1.8;
}
.project-page .project-evidence p{font-size:14px;line-height:1.8}
.project-page .detail-jump a{font-size:12px}
.project-page .detail-card :is(code,kbd){
  font-size:.93em;
  border-radius:4px;
  padding:1px 4px;
  overflow-wrap:anywhere;
}
.project-page .detail-card code{
  background:rgba(110,70,111,.08);
  color:#673656;
}
:root[data-theme="dark"] .project-page .detail-grid>.detail-panel h3,
:root[data-theme="dark"] .project-page .detail-results h2,
:root[data-theme="dark"] .project-page .detail-card>.detail-panel h2{
  color:#ffd0e5;
}
:root[data-theme="dark"] .project-page .detail-grid>.detail-panel p,
:root[data-theme="dark"] .project-page .detail-results p,
:root[data-theme="dark"] .project-page .detail-card>.detail-panel p,
:root[data-theme="dark"] .project-page .detail-heading>p:last-child{
  color:#f0e3ef;
}
:root[data-theme="dark"] .project-page .detail-card code{
  background:#49344a;
  color:#ffd2e7;
}
:root[data-theme="dark"] .project-page .detail-results{
  border-left-color:#e987b7;
}
/* No side-scrolling or tiny line lengths on compact screens. */
@media(max-width:640px){
  .project-page .detail-card,
  .project-overview,.project-page .detail-panel,.project-page .detail-results{
    overflow-wrap:anywhere;
  }
  .project-page .detail-grid>.detail-panel p,
  .project-page .detail-results p,
  .project-page .detail-card>.detail-panel p{
    font-size:15px;
    line-height:1.75;
  }
  .project-page .detail-grid>.detail-panel h3{font-size:17px}
  .project-page .detail-jump{margin-bottom:19px}
  .project-page .detail-jump a{min-height:44px}
}

/* Experience timeline: keep the disclosure inside the main text column. */
.experience-section .experience-layout{
  grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);
  gap:clamp(24px,4vw,56px);
}
.experience-section .experience-main,
.experience-section .timeline,
.experience-section .timeline-item>div:nth-child(3){
  min-width:0;
}
.experience-section .timeline-item{
  grid-template-columns:96px 18px minmax(0,1fr);
}
.experience-section .experience-more{
  display:block;
  width:100%;
  max-width:none;
  min-width:0;
  margin-top:15px;
  padding-top:12px;
  border-top:1px solid #decbd6;
}
.experience-section .experience-more>summary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-sizing:border-box;
  width:auto;
  max-width:100%;
  padding:9px 13px;
  border:1px solid #d6acc3;
  border-radius:9px;
  background:#f8eaf2;
  color:#702c51;
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  list-style:none;
  text-decoration:none;
}
.experience-section .experience-more>summary::-webkit-details-marker{display:none}
.experience-section .experience-more>summary::after{
  content:"+";
  flex:none;
  font-size:18px;
  line-height:1;
}
.experience-section .experience-more[open]>summary::after{content:"−"}
.experience-section .experience-more>summary:hover,
.experience-section .experience-more>summary:focus-visible{
  background:#f1dce9;
  color:#5a203e;
  text-decoration:none;
}
.experience-section .experience-more>p{
  width:100%;
  max-width:70ch;
  margin:12px 0 2px;
  padding:0;
  color:#554459;
  font-size:14px;
  line-height:1.75;
  overflow-wrap:break-word;
  word-break:normal;
}
.experience-section .timeline-item:has(.experience-more[open]){
  background:rgba(247,238,240,.45);
}
:root[data-theme="dark"] .experience-section .timeline-item:has(.experience-more[open]){
  background:rgba(66,47,74,.34);
}
:root[data-theme="dark"] .experience-section .experience-more{
  border-top-color:#75627f;
}
:root[data-theme="dark"] .experience-section .experience-more>summary{
  background:#49344e;
  border-color:#ae779b;
  color:#ffe3f1;
}
:root[data-theme="dark"] .experience-section .experience-more>summary:hover,
:root[data-theme="dark"] .experience-section .experience-more>summary:focus-visible{
  background:#604061;
  color:#fff5fb;
}
:root[data-theme="dark"] .experience-section .experience-more>p{
  color:#f0e4f0;
}
@media(max-width:1000px){
  .experience-section .experience-layout{
    grid-template-columns:minmax(0,1fr);
    gap:28px;
  }
  .experience-section .experience-photo{
    max-width:640px;
  }
}
@media(max-width:660px){
  .experience-section .timeline-item{
    grid-template-columns:14px minmax(0,1fr);
    column-gap:12px;
    row-gap:6px;
  }
  .experience-section .timeline-date{
    grid-column:2;
    grid-row:1;
  }
  .experience-section .timeline-dot{
    grid-column:1;
    grid-row:1;
  }
  .experience-section .timeline-item>div:nth-child(3){
    grid-column:2;
    grid-row:2;
  }
  .experience-section .experience-more>summary{
    padding:10px 12px;
  }
}

/* Consistent editorial rhythm: intentional hierarchy without uniform card layouts. */
:root{
  --rhythm-xs:8px;
  --rhythm-sm:14px;
  --rhythm-md:24px;
  --rhythm-lg:36px;
  --rhythm-xl:clamp(48px,6vw,78px);
  --card-pad:clamp(18px,2.4vw,28px);
  --caption-size:12px;
}
.section > .container > .section-heading,
.section-heading{
  margin-bottom:clamp(25px,3.6vw,42px);
}
.section-heading .eyebrow{margin-bottom:10px}
.section-heading h2{
  margin:0 0 14px;
  line-height:1.16;
  letter-spacing:-.035em;
}
.section-heading .section-description,
.section-heading > p:last-child:not(.eyebrow){
  max-width:62ch;
  line-height:1.75;
}
.featured-projects-head{gap:16px}
.featured-projects-head .eyebrow{margin:0}
.featured-projects-head p:last-child{margin:0;line-height:1.7}
.featured-project-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:var(--card-pad);
  min-width:0;
}
.featured-project-card strong{margin:8px 0 0;line-height:1.22}
.featured-project-card small{line-height:1.65}
.featured-project-card .featured-more{margin-top:auto;padding-top:12px}
.featured-project-card .featured-project-visual{
  right:8px;
  bottom:8px;
  width:90px;
  height:90px;
  opacity:.075;
}
.feature-project .feature-content{padding:clamp(22px,3.2vw,43px)}
.feature-content h3{margin-bottom:16px;line-height:1.18}
.feature-content > p:not(.project-kicker){line-height:1.75}
.project-card,.repo-card{padding:var(--card-pad)}
.project-card h3,.repo-card h3{line-height:1.25}
.project-card p,.repo-card p{line-height:1.72}
.timeline-item h3{line-height:1.3;margin-bottom:8px}
.education-panel{gap:clamp(18px,3vw,38px)}
.about-copy > p{line-height:1.78}
:is(.hero-photo,.feature-visual,.portfolio-photo-card,.portfolio-awards-photo,
.experience-photo,.education-photo,.about-photo,.interest-photo) figcaption{
  font-size:var(--caption-size);
  line-height:1.55;
  text-wrap:pretty;
}
:root[data-theme="light"] :is(.hero-photo,.feature-visual,.experience-photo,.education-photo,
.about-photo,.interest-photo) figcaption{color:#584657}
:root[data-theme="dark"] :is(.hero-photo,.feature-visual,.experience-photo,.education-photo,
.about-photo,.interest-photo) figcaption{color:var(--dark-body,#e6ddea)}
/* Technical information takes precedence over purely decorative ornaments. */
.featured-project-card .featured-project-visual{pointer-events:none}
@media(max-width:760px){
  .section-heading{margin-bottom:26px}
  .section-heading h2{margin-bottom:12px}
  .featured-project-card{gap:8px;padding:19px}
  .featured-project-card strong{margin-top:4px}
  .featured-project-card .featured-project-visual{width:74px;height:74px;opacity:.06}
  .education-panel{gap:18px}
}

/* Contact path immediately after featured engineering work. */
.featured-next-step{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px 22px;
  margin-top:28px;
  padding:20px 0 0;
  border-top:1px solid var(--border);
}
.featured-next-step p{
  margin:0;
  color:var(--secondary);
  font-size:14px;
  line-height:1.6;
}
.featured-next-step-links{display:flex;flex-wrap:wrap;gap:10px}
.featured-next-step-links .btn{min-height:44px;padding:9px 19px;font-size:12px}
@media(max-width:660px){
  .featured-next-step{align-items:stretch;gap:15px}
  .featured-next-step-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .featured-next-step-links .btn{padding:11px 10px;gap:5px;text-align:center}
}
@media(max-width:360px){.featured-next-step-links{grid-template-columns:minmax(0,1fr)}}

/* Project figures: make explanatory captions legible, not footnotes.
   Higher specificity keeps contrast consistent when visual-gallery CSS loads later. */
:root .project-page :is(
  .detail-figure,
  .project-visual-gallery__figure,
  .thermal-feature,
  .iverify-concept-figure,
  .context-photo-accent
) figcaption{
  position:static;
  display:block;
  width:auto;
  max-width:100%;
  margin:12px 0 0;
  padding:11px 14px;
  font:500 14px/1.65 var(--sans,Arial,sans-serif);
  letter-spacing:0;
  text-align:left;
  text-shadow:none;
  color:var(--project-caption-text);
  background:var(--project-caption-surface);
  border:1px solid var(--project-caption-border);
  border-radius:9px;
  overflow-wrap:anywhere;
}
:root .project-page .iverify-concept-figure figcaption{
  margin-top:0;
  border-radius:0 0 9px 9px;
}
:root .project-page .context-photo-accent figcaption{
  align-self:stretch;
  text-align:center;
}
:root .project-page :is(
  .detail-figure,
  .project-visual-gallery__figure,
  .thermal-feature,
  .iverify-concept-figure,
  .context-photo-accent
) figcaption :is(span,small){
  font-size:13px;
  line-height:1.55;
  color:var(--project-caption-text);
}
:root[data-theme="dark"] .project-page :is(
  .detail-figure,
  .project-visual-gallery__figure,
  .thermal-feature,
  .iverify-concept-figure,
  .context-photo-accent
) figcaption{
  color:var(--project-caption-text);
  background:var(--project-caption-surface);
  border-color:var(--project-caption-border);
}

/* Mobile containment: allow content to reflow inside its actual card or control,
   including narrow phones, landscape navigation and enlarged system text. */
@media(max-width:860px){
  .nav-links{top:100%;max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain}
  .nav-links a{white-space:normal;overflow-wrap:anywhere}
  .menu-toggle{flex-shrink:0}
  :is(.hero-copy,.feature-content,.about-copy,.interest-copy,.resume-text,
      .featured-project-card,.project-card,.repo-card,.detail-card,.detail-panel,
      .case-explorer,.book-page,.shelf-preview,.education-panel,.resume-note){
    min-width:0;overflow-wrap:anywhere;
  }
  :is(.project-metrics,.featured-project-grid,.detail-grid,.education-panel,
      .case-explorer__headline,.case-explorer__flow,.case-explorer__stats,
      .featured-next-step-links,.robot-control-utilities,.shelf-label-row)>*{min-width:0}
  :is(.btn,.hero-buttons .btn,.github-profile-link,.shelf-collection-link,
      .repo-featured__link,.tag-row span,.about-chips span,.repo-meta span,
      .interest-tags span,.repo-featured__tags span,.detail-buttons a){
    max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center;
  }
  .hero.container .eyebrow{max-width:100%;overflow-wrap:anywhere}
  .case-explorer .case-explorer__flow button :is(strong,small){
    width:100%;min-width:0;overflow-wrap:anywhere;
  }
  .case-explorer .case-explorer__actions{max-width:100%;flex-wrap:wrap}
  .case-explorer .case-explorer__actions button{min-width:0;overflow-wrap:anywhere}
  .project-page :is(h1,h2,h3,p,li,a,code){overflow-wrap:anywhere}
  .project-page pre{max-width:100%;overflow-x:auto}
  .robot-section :is(.robot-view-picker,.robot-control-presets,.robot-control-utilities) button{
    min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;
  }
  .project-book-dialog :is(.book-modal-actions,.project-book-toolbar){flex-wrap:wrap}
  .project-book-dialog :is(a,button){max-width:100%;overflow-wrap:anywhere}
  .resume-page .page{box-sizing:border-box;max-width:100%;overflow-wrap:anywhere}
  .resume-page .actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding-inline:16px}
  .resume-page .actions :is(a,button){box-sizing:border-box;max-width:100%;margin:0;overflow-wrap:anywhere}
}
@media(max-width:520px){
  /* The critical first-paint sheet otherwise restores a desktop-sized heading. */
  .hero.container h1{font-size:clamp(46px,13vw,64px)}
  .hero.container .hero-photo{max-width:100%}
  .project-metrics{grid-template-columns:minmax(0,1fr);gap:14px}
  .shelf-preview{grid-template-columns:minmax(0,1fr);row-gap:5px}
  .shelf-preview>*{grid-column:1;grid-row:auto}
  .shelf-label-row{flex-wrap:wrap}
  .shelf-collection-link{white-space:normal}
  .featured-next-step-links{width:100%}
}
