/* The same case content, arranged for reading and browsing on a phone. */
.feature-description-compact,.project-filter-form{display:none}
.project-details{display:contents}

@media(max-width:760px){
  :root{--project-width:calc(100% - 32px)}
  html{scroll-padding-top:86px}
  #yjcr-header .yjcr-icon-button{width:44px;height:44px;min-width:44px;min-height:44px}
  #yjcr-header .yjcr-icon-button svg{width:22px;height:22px}

  .project-intro{padding-block:24px 22px;gap:14px}
  .project-intro h1{font-size:clamp(31px,8.8vw,40px);line-height:1.12;letter-spacing:-1.25px;max-width:22ch}
  .project-intro p{font-size:14px;line-height:1.65;max-width:48ch}
  .project-intro>div{padding-bottom:0}

  /* Put navigation before the photograph, within reach on the first screen. */
  .feature-carousel{grid-template-areas:'controls' 'slides'}
  .feature-carousel-controls{padding:0 0 8px;gap:8px;justify-content:space-between}
  .feature-carousel-controls>button{width:44px;height:44px;border:1px solid var(--project-line);font-size:23px}
  .feature-dots{gap:0}
  .feature-dot{width:36px;height:44px}
  .feature-dot span{width:6px;height:6px}
  .feature-dot[aria-current=true] span{width:22px}
  .feature-slide{grid-template-rows:1fr}
  .feature-project{grid-template-rows:auto 1fr}
  .feature-photo{aspect-ratio:16/10;max-height:310px}
  .feature-copy{padding:21px 20px 20px;justify-content:flex-start}
  .feature-copy h2{font-size:24px;line-height:1.2;letter-spacing:-.55px}
  .feature-copy>p{font-size:14px;line-height:1.65;margin:12px 0 18px}
  .feature-description-full{display:none}
  .feature-description-compact{display:inline}
  .feature-specs{margin:0 0 14px;padding-top:14px;gap:12px;max-width:none}
  .feature-specs dd{font-size:25px;line-height:1.2}
  .feature-specs .feature-spec-text{font-size:20px;line-height:1.5}
  .feature-specs dt{font-size:11px;line-height:1.4;min-height:30px}
  .feature-notes{display:none}
  .feature-copy .project-button{min-height:44px;width:100%;margin-top:auto;padding:11px 14px;font-size:14px}

  .project-library{padding-block:30px 34px}
  .library-heading{margin-bottom:16px}
  .library-heading h2{font-size:26px;line-height:1.25;letter-spacing:-.7px}
  .library-heading p{display:none}
  .project-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:14px;border-top:0;border-bottom:1px solid var(--project-line);padding-bottom:16px}
  .project-filters{display:none}
  .project-filter-form{display:block;margin:0}
  .project-filter-select{display:block;min-width:0;width:100%;min-height:46px;padding:10px 34px 10px 12px;border:1px solid #bbc0c7;border-radius:2px;background:#fff;color:var(--project-ink);font:inherit;font-size:15px;line-height:1.5}
  .project-filter-select:focus-visible{outline:2px solid var(--project-blue);outline-offset:3px}
  

  .project-record,.project-record-summary{grid-template-columns:104px minmax(0,1fr);grid-template-areas:'image summary' 'brief brief' 'actions actions' 'details details';grid-template-rows:auto auto auto auto;gap:12px 18px;padding-block:22px}
  .project-image{aspect-ratio:3/4;min-height:0;align-self:start}
  .project-summary{align-self:center}
  .project-summary h3{font-size:20px;line-height:1.25;letter-spacing:-.4px;overflow-wrap:break-word}
  .project-summary .project-meta{font-size:12px;line-height:1.5;margin-bottom:8px}
  .project-record>.project-brief{grid-area:brief;font-size:14px;line-height:1.65;margin:0;max-width:none}
  .project-actions{justify-content:space-between;gap:8px 16px;padding:0}
  .project-link{font-size:14px;min-height:44px;gap:12px}
  .project-detail-toggle{display:inline-flex;align-items:center;min-height:44px;padding:9px 0 9px 10px;border:0;background:transparent;color:var(--project-muted);font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:4px}
  .project-detail-toggle[aria-expanded=true]{color:var(--project-blue)}
  .project-details{grid-area:details;display:grid;gap:14px;padding:16px;background:var(--project-surface)}
  .project-details>*{grid-area:auto}
  .project-configuration{border:0;padding:0}
  .project-configuration dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
  .project-configuration dt{font-size:12px;line-height:1.5}
  .project-configuration dd{font-size:14px;line-height:1.5}
  .project-implementation{font-size:14px;line-height:1.65;max-width:none}
  .project-implementation strong{font-size:12px}
  .project-details .project-range{font-size:13px;min-height:44px;justify-self:start;color:var(--project-blue)}

  .project-next{padding-block:32px}
  .project-next h2{font-size:30px;line-height:1.17;letter-spacing:-.8px}
  .project-next p{font-size:14px;line-height:1.65;margin-block:16px 20px}
  .project-next .project-button{min-height:46px}
  .project-next-grid{gap:26px}
  .project-checklist div{padding-block:14px}
  .project-checklist dt{font-size:14px}
  .project-checklist dd{font-size:14px;line-height:1.6}
}

@media(max-width:359px){
  .feature-copy{padding:19px 16px 18px}
  .feature-copy h2{font-size:22px}
  .feature-copy>p{font-size:13px}
  .feature-specs{gap:8px}
  .feature-specs dd{font-size:23px}
  .feature-specs .feature-spec-text{font-size:17px;line-height:1.65}
  .feature-specs dt{font-size:10px}
  .feature-dot{width:32px}
  .project-record,.project-record-summary{grid-template-columns:92px minmax(0,1fr);column-gap:15px}
  .project-summary h3{font-size:18px}
  .project-summary .project-meta{font-size:11px}
  .project-toolbar{gap:10px}
  
}
