/* 1.3.0: browse-first layout, with the concept explorer secondary. */
html{scroll-padding-top:74px}
.home-lead{grid-template-columns:minmax(0,1fr) minmax(230px,.65fr);align-items:center;gap:30px;padding-top:26px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.home-kicker{margin-bottom:5px;font-size:12px}
.home-lead h1{font-size:clamp(30px,3.3vw,46px);line-height:1.14;margin:0}
.home-lead>p{margin:0;font-size:14px;color:var(--slate);line-height:1.55;max-width:470px}
.latest{padding-top:32px;padding-bottom:40px;min-height:0}
.latest .section-intro,.topics .section-intro,.room-section .section-intro{margin-bottom:17px}
.section-intro h2{font-size:clamp(24px,2.5vw,34px)}
.section-label{margin-bottom:4px;font-size:12px}
.inline-link{color:var(--accent);font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap}
.latest .story-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.latest .story-card{transition:transform .2s ease,box-shadow .2s ease}
.latest .story-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #18212b12}
.latest .story-card:active{transform:scale(.985)}
.latest .story-card__body{padding:15px}
.latest .story-card h3{font-size:18px}
.reading-note{padding:17px 0;min-height:58px}
.reading-note p{font-size:13px}
.reading-note a{color:var(--accent);font-weight:700}
.topics{padding-top:18px;padding-bottom:47px}
.topics .section-intro>p,.room-section .section-intro>p{font-size:13px;max-width:470px}
.topic-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;align-items:start;gap:10px}
.topic,.topic:first-child,.topic:last-child{display:block;grid-row:auto;min-height:0;border:1px solid var(--line);border-radius:10px;background:var(--white);padding:0;overflow:visible}
.topic:first-child{background:var(--blue)}
.topic summary{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:78px;padding:14px;cursor:pointer;list-style:none;font-size:14px;font-weight:760;line-height:1.28;transition:background .18s ease,transform .18s ease}
.topic summary::-webkit-details-marker{display:none}
.topic summary:hover{background:#f0f4fa}
.topic summary:active{transform:scale(.97)}
.topic summary span{color:var(--accent);font-size:18px;line-height:1;flex:none;transition:transform .18s ease}
.topic[open] summary span{transform:rotate(45deg)}
.topic-body{padding:0 14px 16px;border-top:1px solid var(--line)}
.topic .topic-body h3,.topic:first-child .topic-body h3{font-size:17px;margin:12px 0 7px}
.topic-body p{font-size:12px;line-height:1.55;margin:0 0 9px;color:var(--slate)}
.topic-body .topic-status{font-size:11px;color:#6c7c89;margin-bottom:0}
.room-section{padding-top:38px;padding-bottom:38px;border-top:1px solid var(--line)}
.room-explorer{max-width:1000px;margin-inline:auto}
.mode-switch label{min-height:44px}
.stage-panel{display:block;opacity:0;visibility:hidden;transition:opacity .24s ease,visibility .24s ease}
#room-work:checked~.explorer-figure .stage-panel--work,#room-dine:checked~.explorer-figure .stage-panel--dine,#room-sleep:checked~.explorer-figure .stage-panel--sleep{opacity:1;visibility:visible}
.mode-note{padding:18px 0}
.mode-note h3{font-size:23px;margin:0 0 5px}
.mode-note p{font-size:13px}
.mode-note details{padding:9px 14px}
.mode-note details summary{min-height:27px;display:flex;align-items:center}
.planning-principle__inner{padding-block:38px}
.planning-principle h2{font-size:28px}
.planning-principle p{font-size:14px}
.archive-note{padding-block:43px}
.site-search{display:flex;align-items:center;justify-content:space-between;gap:32px;padding-block:22px 65px;border-top:1px solid var(--line)}
.site-search h2{font-size:23px;margin:0 0 3px}
.site-search p{color:var(--slate);font-size:13px;margin:0}
.site-search .search-form{width:min(100%,500px)}
.mobile-bottom-nav{display:none}
.primary-nav a,.mobile-nav a{min-height:44px;display:inline-flex;align-items:center}
.mobile-nav a{display:flex}
.inline-link{display:inline-flex;align-items:center;min-height:44px}
@keyframes section-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.latest,.topics,.room-section{animation:section-enter .38s ease-out both}
.topics{animation-delay:.07s}
.room-section{animation-delay:.12s}
@media(max-width:1060px){.latest .story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  html{scroll-padding-top:70px}
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  .home-lead{grid-template-columns:1fr;gap:5px;padding-top:17px;padding-bottom:17px}
  .home-lead h1{font-size:clamp(26px,6.3vw,34px)}
  .home-lead>p{font-size:14px;max-width:520px}
  .latest{padding-top:22px;padding-bottom:24px}
  .latest .section-intro{display:flex;align-items:end;gap:10px}
  .latest .section-intro h2{font-size:22px}
  .latest .section-intro .inline-link{font-size:12px}
  .latest .story-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:10px}
  .latest .story-card{flex:0 0 min(72vw,250px);scroll-snap-align:start}
  .latest .story-card__image{aspect-ratio:1.6}
  .reading-note{padding:13px 0;min-height:0}
  .reading-note p{font-size:14px}
  .topics{padding-top:12px;padding-bottom:28px}
  .topics .section-intro{margin-bottom:10px}
  .topics .section-intro h2{font-size:22px}
  .topics .section-intro>p{display:none}
  .topic-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .topic,.topic:first-child,.topic:last-child{min-height:0;padding:0}
  .topic summary{min-height:74px;padding:11px;font-size:13px}
  .topic-body{padding:0 11px 12px}
  .topic .topic-body h3,.topic:first-child .topic-body h3{font-size:16px}
  .topic-body p,.topic-body .topic-status{font-size:14px}
  .room-section{padding-top:28px;padding-bottom:30px}
  .room-section .section-intro h2{font-size:24px}
  .room-section .section-intro>p{margin-top:8px}
  .stage-frame{width:min(100%,343px);max-height:220px;margin-inline:auto}
  .mode-note{padding:16px 0}
  .mode-note h3{font-size:21px}
  .planning-principle__inner{padding-block:30px}
  .site-search{display:block;padding-block:30px 52px}
  .site-search .search-form{margin-top:15px}
  .search-field{font-size:16px}
  .site-footer{margin-bottom:0}
  .mobile-bottom-nav{position:fixed;z-index:40;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:calc(64px + env(safe-area-inset-bottom));padding:3px 4px env(safe-area-inset-bottom);background:#fffffff2;border-top:1px solid var(--line);box-shadow:0 -5px 20px #18212b0d;backdrop-filter:blur(12px)}
  .mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;gap:0;text-decoration:none;color:#4e6070;font-size:10px;font-weight:750}
  .mobile-bottom-nav a span{font-size:23px;line-height:1.1;color:var(--accent)}
  .mobile-nav summary{min-height:44px;display:flex;align-items:center}
}
@media(max-width:360px){.latest .section-intro h2{font-size:20px}.topic summary{font-size:12px}.home-lead h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){.latest,.topics,.room-section{animation:none}.stage-panel,.topic summary,.topic summary span,.latest .story-card{transition:none}.latest .story-card:hover,.latest .story-card:active,.topic summary:active{transform:none}}
