/* Playlist directory language, with studio identity above the four channels. */
:root {
  --bg:#f2f2f2; --surface:#fff; --card-surface:#fafafa; --card-radius:6px; --ink:#252622; --muted:#747474;
  --line:#00000020; --hover:#dedede;
  --sidebar-width:clamp(260px,23vw,340px);
  --mono:'SFMono-Regular',Consolas,'Liberation Mono','PingFang SC',monospace;
  --ease:cubic-bezier(.165,.84,.44,1);
}
:root[data-theme=dark] {
  --bg:#121311; --surface:#171815; --card-surface:#171815; --ink:#dedfd7;
  --muted:#9b9e92; --line:#dedfd725; --hover:#30322b;
}
body { height:100dvh; overflow:hidden; background:var(--bg); -webkit-font-smoothing:antialiased; }
.app-shell { height:100dvh; grid-template-columns:var(--sidebar-width) minmax(0,1fr); grid-template-rows:1fr; }
.sidebar { display:flex; flex-direction:column; padding:0; border-right:1px solid var(--line); border-bottom:0; background:var(--bg); overflow-y:auto; overscroll-behavior:contain; }
.sidebar-identity { flex:none; }
.brand-switcher { width:100%; height:clamp(144px,21vh,190px); padding:0; }
.logo-frame { inset:18px 20px; }
.brand-logo-crop--square { max-height:128px; }
.brand-logo-crop--wide { width:100%; max-width:220px; }
.sidebar-about { display:block; position:relative; padding:18px 20px 25px; }
.about-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; font:12px/1.4 var(--mono); }
.about-heading svg { width:14px; height:14px; transition:transform 300ms var(--ease); }
.sidebar-about p { margin-top:12px; color:var(--muted); font-size:10px; line-height:1.8; }
.sidebar-about:hover .about-heading svg { transform:translate(2px,-2px); }
.sidebar-about[aria-current] .about-heading { text-decoration:underline; text-underline-offset:6px; text-decoration-thickness:1px; }
.main-nav { display:block; flex:none; margin:0; border-top:1px solid var(--line); }
.nav-link { display:flex; align-items:center; position:relative; gap:12px; padding:0 20px; height:64px; min-height:64px; border:0; border-bottom:1px solid var(--line); color:var(--muted); isolation:isolate; font-family:var(--mono); }
.nav-link:last-child { border-bottom:1px solid var(--line); }
.nav-number { width:15px; flex:none; align-self:center; text-align:right; padding:0; font:10px/1 var(--mono); color:inherit; font-variant-numeric:tabular-nums; }
.nav-number::after,.nav-title::after { display:none!important; }
.nav-copy { flex:1; min-width:0; }
.nav-title { font-size:16px; line-height:1.35; letter-spacing:0; font-weight:400; color:inherit; white-space:nowrap; }
.nav-caption { display:block; font-size:10px; line-height:1.4; max-height:0; margin:0; opacity:0; white-space:nowrap; overflow:hidden; transform:translateY(4px); color:var(--muted); transition:opacity 180ms ease,transform 300ms var(--ease),max-height 300ms var(--ease),margin 300ms var(--ease); }
.nav-code { font:9px/1 var(--mono); color:var(--muted); transition:opacity 180ms ease; }
.nav-link:hover .nav-code,.nav-link:focus-visible .nav-code { opacity:0; }
.nav-link:hover .nav-caption,.nav-link:focus-visible .nav-caption { max-height:16px; opacity:1; transform:none; margin-top:5px; }
.index-dot { display:block; position:relative; width:12px; height:12px; flex:0 0 12px; border-radius:50%; border:1px solid currentColor; background:currentColor; overflow:hidden; opacity:.8; transition:transform 400ms var(--ease),opacity 180ms ease; }
.index-dot::before { content:''; position:absolute; inset:-1px 50% -1px -1px; background:var(--bg); transform:scaleX(0); transform-origin:right center; transition:transform 300ms var(--ease),background 180ms ease; }
.nav-link[aria-current] { color:var(--ink); }
.nav-link[aria-current] .index-dot { opacity:1; }
.nav-link[aria-current] .index-dot::before { transform:scaleX(1); }
.nav-link::before { content:''; position:absolute; inset:0; z-index:-1; background:var(--hover); opacity:0; transition:opacity 150ms ease; }
.nav-link:hover,.nav-link:hover:not(.is-clicked) { background:transparent; color:var(--ink); }
.nav-link:hover::before,.nav-link:focus-visible::before { opacity:1; }
.nav-link:hover .index-dot,.nav-link:focus-visible .index-dot { opacity:1; transform:rotate(180deg); }
.nav-link:hover .index-dot::before { background:var(--hover); transform:scaleX(1); }
.nav-link:focus-visible { outline-offset:-3px; }
.sidebar-footer { display:block; margin-top:auto; padding:24px 20px 10px; border:0; flex:none; }
.contact-button { min-height:38px; padding:10px 14px; border-radius:30px; font:11px/1.4 var(--mono); background:var(--hover); color:var(--ink); }
.contact-button svg { width:14px; height:14px; }
.contact-button:hover { background:var(--ink); color:var(--bg); }
.footer-meta { font:9px/1.3 var(--mono); padding:10px 0 0; }
.theme-button { width:36px; height:36px; font-size:18px; }
.mobile-contact { display:none; }
/* Reference cursor: 46 px, 300 ms expansion, difference blending over text. */
.directory-cursor { position:fixed; top:0; left:0; z-index:1000; pointer-events:none; mix-blend-mode:difference; opacity:0; transition:opacity 120ms ease; }
.directory-cursor>span { position:absolute; left:-23px; top:-23px; display:block; width:46px; height:46px; border-radius:50%; background:#fff; transform:scale(.434); transition:transform 300ms var(--ease); }
.directory-cursor.is-visible { opacity:1; }
.directory-cursor.is-visible>span { transform:scale(1); }
.directory-cursor.is-pressed>span { transform:scale(.96); }
@media(hover:hover) and (pointer:fine) {
  .has-directory-cursor [data-circle-cursor],.has-directory-cursor [data-circle-cursor] * { cursor:none; }
}
@media(hover:none),(pointer:coarse) { .directory-cursor { display:none; } }
@media(max-width:1450px) { .nav-code { display:none; } }
@media(max-width:1199px) and (min-width:760px) { :root { --sidebar-width:240px; } }
@media(min-width:1600px) { .nav-title { font-size:17px; } }
@media(max-width:999px) and (min-width:760px) {
  .nav-title { font-size:15px; }
  .sidebar-about p { font-size:9px; }
}
@media(max-width:759px) {
  .app-shell { display:flex; flex-direction:column; }
  .sidebar { display:block; padding:0; border-right:0; border-bottom:1px solid var(--line); flex:none; overflow:visible; }
  .sidebar-identity { display:flex; align-items:center; gap:20px; min-height:92px; padding:0 16px; }
  .brand-switcher { width:66px; height:82px; flex:none; }
  .logo-frame { inset:8px 0; }
  .brand-logo-crop--square { max-height:64px; }
  .brand-logo-crop--wide { width:66px; }
  .sidebar-about { padding:0; flex:1; }
  .about-heading { font-size:10px; justify-content:flex-start; gap:10px; min-height:44px; }
  .sidebar-about p { display:none; }
  .mobile-contact { display:flex; align-items:center; font:10px/1.4 var(--mono); min-height:44px; }
  .main-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .nav-link { height:54px; min-height:54px; padding:0 6px; gap:7px; justify-content:center; border:0!important; }
  .nav-link:not(:last-child) { border-right:1px solid var(--line)!important; }
  .index-dot { width:9px; height:9px; flex-basis:9px; }
  .nav-number,.nav-caption,.nav-code { display:none; }
  .nav-copy { flex:none; }
  .nav-title { font-size:13px; }
  .sidebar-footer { display:none; }
}
.main-scroll { background:var(--bg); scrollbar-gutter:stable; }
.content-wrap { max-width:none; margin:0; padding:0 20px; }
.page-bar { min-height:70px; gap:16px; padding:12px 0; }
.page-title { gap:6px; align-items:baseline; color:var(--muted); white-space:nowrap; }
.page-title h1 { font-size:12px; font-weight:400; letter-spacing:0; }
.section-bracket,.page-english { font:10px/1.4 var(--mono); }
.small-count { margin-left:8px; font:10px/1.4 var(--mono); }
.page-note { font:10px/1.6 var(--mono); }
.page-tools { gap:18px; }
.category-select { font-size:11px; max-width:158px; background:var(--surface); border:0; border-radius:27px; padding:10px 14px; min-height:36px; }
.status-filters { font-size:12px; line-height:1.4; gap:4px; }
.status-filter { min-height:36px; padding:6px 12px; border:0; border-radius:27px; gap:7px; color:var(--muted); white-space:nowrap; }
.status-filter[aria-pressed=true] { background:var(--surface); color:var(--ink); border-color:transparent; }
.status-filter:hover { background:var(--surface); color:var(--ink); }
.status-filter:focus-visible { outline-offset:2px; border-radius:27px; }
.status-filter span { font-size:9px; }
.content-footer { font:10px/1.6 var(--mono); padding:22px 0; margin-top:36px; }
/* Fine outlined cards echo the sidebar rules across every content channel. */
.course-grid,.visual-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 16px; }
.course-card,.visual-card { background:var(--card-surface); border:1px solid var(--line); box-shadow:none; border-radius:var(--card-radius); overflow:hidden; }
.cover-wrap,.visual-image,.experiment-image { border-radius:0; overflow:hidden; }
.course-card .cover-wrap { border-radius:0; }
.course-card:hover .course-cover { transform:scale(1.012); }
.course-info { padding:20px 16px 8px; }
.course-meta { margin-bottom:13px; font:9px/1.5 var(--mono); }
.course-meta>span:first-child::before { content:'['; margin-right:4px; }
.course-meta>span:first-child::after { content:']'; margin-left:4px; }
.course-card h2 { font-size:18px; font-weight:400; line-height:1.5; min-height:54px; letter-spacing:-.3px; margin-bottom:12px; }
.course-outcome { font-size:12px; line-height:1.85; min-height:45px; margin-bottom:14px; }
.audience { font-size:10px; line-height:1.7; margin-bottom:17px; }
.audience span { color:var(--muted); }
.course-card-action { min-height:43px; padding:10px 0; font:11px/1.5 var(--mono); }
.course-card-action svg { width:14px; }
.visual-copy { padding:20px 16px; }
.visual-copy h2 { font-size:19px; font-weight:400; }
.visual-meta { font:10px/1.5 var(--mono); }
.provenance { font-size:11px; margin-bottom:22px; }
/* Resource groups keep their natural, staggered heights; the column totals remain balanced. */
.resource-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.resource-column { gap:16px; }
.resource-card { background:var(--card-surface); box-shadow:none; border-radius:var(--card-radius); border:1px solid var(--line); padding:20px 16px; height:calc(128px + var(--visible)*72px); }
.resource-card-heading h2 { font-size:15px; font-weight:400; letter-spacing:0; }
.resource-card-heading span { font:10px/1.5 var(--mono); }
.resource-row { border-radius:8px; }
.resource-icon { width:30px; height:30px; border-radius:6px; }
.resource-icon img { width:24px; height:24px; }
.resource-name { font-size:14px; }
.resource-description { font-size:12px; }
.resource-more { font:10px/1.5 var(--mono); }
.resource-focus-grid { gap:16px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.resource-focus-grid .resource-row { background:var(--card-surface); border:1px solid var(--line); padding:16px; border-radius:var(--card-radius); height:auto; min-height:96px; }
/* Selecting a directory entry uses the large right-hand canvas instead of covering navigation. */
.reading,.entry-page,.about-page { max-width:1160px; margin:0 auto; background:var(--card-surface); border:1px solid var(--line); border-radius:var(--card-radius); padding:20px; }
.reading-hero { width:100%; height:auto; aspect-ratio:16/9; border-radius:3px; }
.reading-caption { display:grid; grid-template-columns:minmax(145px,.8fr) minmax(0,2fr); gap:40px; margin:28px 0 46px; }
.editorial-facts { margin:0; font:11px/1.8 var(--mono); }
.editorial-facts dt { color:var(--muted); margin-bottom:3px; }
.editorial-facts dd { margin:0 0 25px; }
.reading-intro h1 { font-size:clamp(24px,2.5vw,36px); line-height:1.5; font-weight:400; letter-spacing:-.7px; margin-bottom:16px; text-wrap:pretty; }
.reading-intro .detail-summary { font-size:14px; line-height:1.9; margin:0; }
.reading-body { grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr); gap:52px; }
.reading-body h2 { font-size:20px; font-weight:400; }
.reading-aside { position:static; }
.detail-section { border-color:var(--line); }
.detail-facts { font-size:12px; }
.primary-button { border-radius:30px; min-height:44px; font-size:12px; padding:10px 18px; }
.primary-button:hover { background:var(--hover); color:var(--ink); }
.pending-note { background:var(--hover); border-radius:3px; font-size:12px; }
.back-link { font:11px/1.5 var(--mono); }
.entry-page>.detail-cover { max-height:68vh; object-fit:contain; background:var(--surface); }
.entry-page>h1 { font-size:30px; margin-bottom:18px; font-weight:400; }
.entry-page>.detail-summary { max-width:740px; }
.entry-page>.primary-button { max-width:320px; }
.about-page .about-art { grid-template-columns:1.3fr 1fr; padding:42px; margin:0 0 32px; border-radius:3px; }
.about-page .about-art h1 { font-size:clamp(28px,3vw,46px); font-weight:400; line-height:1.6; }
.about-page .about-art img { height:240px; }
.about-page .about-copy { max-width:700px; }
.about-page>.detail-section { padding:28px 0; }
.about-page>.primary-button { width:fit-content; gap:48px; }
.drawer { border-radius:var(--card-radius); background:var(--surface); }
.drawer-toolbar { font:10px/1.5 var(--mono); }
.page-enter { animation:none; }
.page-enter>.course-grid>.course-card,.page-enter>.visual-grid>.visual-card,.page-enter>.resource-grid>.resource-column,.page-enter>.resource-focus-grid,.page-enter>.reading,.page-enter>.about-page { animation:playlist-arrive 640ms var(--ease) both; }
.page-enter .course-card:nth-child(3n+2),.page-enter .visual-card:nth-child(3n+2),.page-enter .resource-column:nth-child(2) { animation-delay:40ms; }
.page-enter .course-card:nth-child(3n),.page-enter .visual-card:nth-child(3n),.page-enter .resource-column:nth-child(3) { animation-delay:80ms; }
@keyframes playlist-arrive { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@media(min-width:1600px) {
  .content-wrap { padding:0 24px; }
  .course-card h2 { font-size:22px; min-height:66px; }
  .course-meta { font-size:10px; }
  .course-outcome { font-size:14px; min-height:52px; }
  .audience { font-size:11px; }
  .course-card-action { font-size:12px; }
  .resource-name { font-size:15px; }
}
@media(max-width:1199px) {
  .course-grid,.visual-grid,.resource-grid,.resource-focus-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-note { display:none; }
  .reading-body { gap:28px; grid-template-columns:1.3fr 1fr; }
  .reading-caption { gap:28px; }
  .about-page .about-art { padding:28px; }
  .about-page .about-art img { height:180px; }
}
@media(max-width:999px) and (min-width:760px) {
  .course-card h2 { font-size:17px; }
  .course-meta { font-size:8px; gap:4px; }
  .course-info { padding-top:18px; }
  .reading-caption { grid-template-columns:1fr; gap:10px; }
  .editorial-facts { display:grid; grid-template-columns:auto 1fr auto 1fr; gap:12px; }
  .editorial-facts dd { margin:0; }
  .reading-body { grid-template-columns:1fr; gap:24px; }
  .reading-aside { order:-1; }
}
@media(max-width:759px) {
  .main-scroll { flex:1; min-height:0; width:100%; }
  .content-wrap { padding:0 16px; }
  .page-bar { min-height:64px; flex-wrap:nowrap; gap:8px; }
  .page-title { gap:4px; }
  .page-title h1 { font-size:11px; }
  .page-english,.section-bracket { font-size:9px; }
  .small-count { font-size:9px; margin-left:3px; }
  .status-filters { gap:2px; font-size:11px; }
  .status-filter { min-height:40px; padding:6px 10px; }
  .status-filter span { display:none; }
  .course-grid,.visual-grid { gap:16px; }
  .course-info { padding:20px 16px 8px; }
  .course-meta { font-size:10px; }
  .course-card h2 { font-size:21px; min-height:0; line-height:1.5; margin-bottom:10px; }
  .course-outcome { font-size:13px; min-height:0; }
  .audience { font-size:11px; }
  .course-card-action { min-height:46px; font-size:12px; }
  .resource-name { font-size:15px; }
  .resource-description { font-size:13px; }
  .reading-caption { grid-template-columns:1fr; gap:14px; margin:22px 0 28px; }
  .editorial-facts { display:grid; grid-template-columns:auto 1fr; gap:6px 16px; font-size:10px; }
  .editorial-facts dd { margin:0; }
  .reading-intro h1 { font-size:26px; }
  .reading-intro .detail-summary { font-size:13px; }
  .reading-body { grid-template-columns:1fr; gap:24px; }
  .reading-aside { order:-1; }
  .about-page .about-art { grid-template-columns:1fr; padding:28px; }
  .about-page .about-art h1 { font-size:26px; }
  .about-page .about-art img { height:180px; }
  .about-page .about-copy { font-size:14px; }
  .about-page>.detail-section { padding-top:24px; }
  .content-footer { font-size:9px; }
}
@media(max-width:759px) {
  .reading,.entry-page,.about-page { padding:16px; }
  .page-title .page-english { display:none; }
}
@media(max-width:699px) {
  .course-grid,.visual-grid,.resource-grid,.resource-focus-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; }
  .index-dot { transform:none!important; }
}
