/* ══════════════════════════════════════════════════════
   courses.css
   Shared stylesheet for Deborah R. Fowler course pages.
   Requires nav.css to be loaded first.
   ══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --bg:            #ffffff;
  /* color-scheme: light dark; */
  color-scheme: light;
  --bg-wash:       #f2f0ec;
  --bg-sub:        #eceae5;
  --bg-card:       #ffffff;
  --border:        #d8d5cf;
  --border-mid:    #c4c0b8;
  --text:          #1a1917;
  --text-mid:      #56524d;
  --text-dim:      #96928c;
  --accent:        #1a7a4a;
  --accent-red:    #c03030;
  --accent-yellow: #a08010;
  --accent-blue:   #1a5a8a;
  /* Table header tokens — light */
  --th-green-bg:   #d4ede0; --th-green-fg:   #1a5c38;
  --th-yellow-bg:  #ede8c8; --th-yellow-fg:  #6b5700;
  --th-blue-bg:    #cfe0f0; --th-blue-fg:    #1a4a6e;
  --th-red-bg:     #f0d4d4; --th-red-fg:     #8a1a1a;
  --th-neutral-bg: var(--bg-sub); --th-neutral-fg: var(--text-mid);
  --th-orange-bg:  #edddcc; --th-orange-fg:  #7a4a10;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  /* Notice tokens */
  --notice-tip-bg:      #eef7f2;
  --notice-tip-border:  #3a9e3a;
  --notice-tip-text:    var(--text-mid);
  --notice-warn-bg:     #fff8ee;
  --notice-warn-border: #d07000;
  --notice-warn-strong: #a05500;
  /* Example file box tokens */
  --ef-bg:      #f5f0ff;
  --ef-border:  #b89edc;
  --ef-label:   #7048a0;
  --ef-link:    #5a2d9a;
}

/* ── DARK MODE TOKENS ── */
/* Two blocks are required — one for the manual toggle, one for system prefs.  */
/* If you update a value, update it in both blocks.                            */

/* 1. Manual dark mode toggle */
[data-theme="dark"] {
  --bg:            #1a1a1a;
  color-scheme: dark;
  --bg-wash:       #121212;
  --bg-sub:        #211f1d;
  --bg-card:       #1c1b19;
  --border:        #2e2c29;
  --border-mid:    #3d3a36;
  --text:          #edeae4;
  --text-mid:      #9e9a93;
  --text-dim:      #8a8680;
  --accent:        #52b788;
  --accent-red:    #e05252;
  --accent-yellow: #e8c547;
  --accent-blue:   #80d4ff;
  --th-green-bg:   #1e3a2a; --th-green-fg:   #52b788;
  --th-yellow-bg:  #2a2a1a; --th-yellow-fg:  #c9b840;
  --th-blue-bg:    #1a2a3a; --th-blue-fg:    #6ab0e8;
  --th-red-bg:     #3a1a1a; --th-red-fg:     #e87070;
  --th-neutral-bg: #2e2c29; --th-neutral-fg: #9e9a93;
  --th-orange-bg:  #2a1a0a; --th-orange-fg:  #e8a250;
  --notice-tip-bg:      #234d35;
  --notice-tip-border:  #52b788;
  --notice-tip-text:    #edeae4;
  --notice-warn-bg:     #2d2112;
  --notice-warn-border: #f2a65e;
  --notice-warn-strong: #ffb366;
  --ef-bg:     #1e1428;
  --ef-border: #6b4fa0;
  --ef-label:  #b48edc;
  --ef-link:   #c9a8f0;
}

/* ── DARK MODE COMPONENT OVERRIDES ── */

/* ── DARK MODE HEADING ENHANCEMENT ── */
[data-theme="dark"] .main-content h2 {
  color: var(--text);                          /* bright white-ish, not dim */
  border-bottom: 1px solid var(--border-mid);  /* subtle separator line */
  padding-bottom: 0.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Sidebar */
[data-theme="dark"] .sidebar { background: var(--bg-wash) !important; }

[data-theme="dark"] .sidebar-heading {
  color: var(--accent) !important;
  letter-spacing: 0.15em;
  font-weight: 700 !important;
  opacity: 1 !important;
}

[data-theme="dark"] .sidebar-link,
[data-theme="dark"] .sidebar-menu details > summary {
  color: var(--text) !important;
  opacity: 1 !important;
  font-weight: 500;
}

[data-theme="dark"] .sidebar-menu details > summary::marker,
[data-theme="dark"] .sidebar-menu details > summary::-webkit-details-marker {
  color: var(--accent) !important;
}

[data-theme="dark"] .sidebar-link:hover,
[data-theme="dark"] .sidebar-menu details > summary:hover {
  background: var(--bg-sub) !important;
  color: var(--accent) !important;
}

[data-theme="dark"] .sidebar-link.active {
  color: var(--accent) !important;
  background: rgba(82, 183, 136, 0.15) !important;
  border-left-color: var(--accent) !important;
}

/* Images */
[data-theme="dark"] img {
  filter: brightness(.8) contrast(1.1);
  transition: filter 0.3s ease;
}
[data-theme="dark"] img:hover { filter: brightness(1) contrast(1); }

html, body {
	background-color: var(--bg);
}

html:not([data-theme="light"]) .content-section-title {
  color: var(--accent);
  border-bottom: 1px solid #6b6760;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .main-content h2 {
    color: var(--accent);
    border-bottom: 1px solid var(--border-mid);
    padding-bottom: 0.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
  }
}

/* System dark mode image softening */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) img {
    filter: brightness(.8) contrast(1.1);
    transition: filter 0.3s ease;
  }
  html:not([data-theme="light"]) img:hover {
    filter: brightness(1) contrast(1);
  }
}

/* Notices */
[data-theme="dark"] .notice-tip {
  background: var(--notice-tip-bg) !important;
  color: var(--text);
  border-left: 4px solid var(--notice-tip-border) !important;
}
[data-theme="dark"] .notice-tip strong { color: var(--accent) !important; }

[data-theme="dark"] .notice-warn {
  background: var(--notice-warn-bg) !important;
  border-left: 4px solid var(--notice-warn-border) !important;
  color: var(--text);
}
[data-theme="dark"] .notice-warn strong {
  color: var(--notice-warn-strong) !important;
  letter-spacing: 0.05em;
}

/* Content links */
[data-theme="dark"] .main-content a {
  color: var(--accent-blue);
  text-decoration-color: rgba(128, 212, 255, 0.6);
  text-underline-offset: 3px;
}

/* Tables */
[data-theme="dark"] thead tr th {
  color: var(--text) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--border-mid);
}
[data-theme="dark"] th.th-green-bg { background: #234d35; }
[data-theme="dark"] th.th-red-bg   { background: #4a1a1a; }

/* Code block */
[data-theme="dark"] .code-block {
  background: #0f0f0f;
  border-color: var(--border-mid);
  border-left: 3px solid var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

/* Jump nav */
[data-theme="dark"] .jump-nav a {
  background: transparent;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
/*
[data-theme="dark"] .jump-nav a:hover {
  background: var(--accent-blue);
  color: #1a1a1a;
}
*/
[data-theme="dark"] .jump-nav a.active, 
[data-theme="dark"] .jump-nav a:hover {
    background: var(--accent-blue) !important; 
    color: #1a1a1a !important;               
    border-color: var(--accent-blue) !important;
}


/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; font-weight: 600; }
img { display: block; max-width: 100%; height: auto; }

/* ── PAGE LAYOUT (sidebar + content) ── */
.page-wrap {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--nav-h));
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto; scrollbar-width: thin;
  border-right: 1px solid var(--border);
  background: var(--bg-wash);
  padding: 1.5rem 0 2rem;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }
.sidebar-heading {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  padding: 0 1.25rem; margin-bottom: .35rem;
}
.sidebar-updated {
  font-family: var(--mono); font-size: .58rem; color: var(--text-dim);
  padding: 0 1.25rem; margin-bottom: 1.1rem;
}
.sidebar-divider { height: 1px; background: var(--border); margin: .8rem 1rem; }
.sidebar-label {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
  padding: .6rem 1.25rem .2rem; display: block;
}
.sidebar-link {
  display: block; padding: .32rem 1.25rem;
  font-size: .78rem; color: var(--text-mid);
  transition: color .12s, background .12s;
  border-left: 2px solid transparent;
}
.sidebar-link:hover { color: var(--text); background: var(--bg-sub); border-left-color: var(--border-mid); }
.sidebar-link.active { color: var(--accent); border-left-color: var(--accent); background: rgba(82,183,136,.06); }
.sidebar-link.project { font-weight: 600; }

/* ── MAIN CONTENT ── */
.main-content { padding: 2rem 2.5rem 4rem; min-width: 0; }
.main-content p { margin-top: 0.75em; margin-bottom: 0.75em; }
.main-content ul { padding-left: 2em; }
.main-content ul ul { padding-left: 2em; }
.page-title-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem; margin-bottom: .5rem;
}
.page-eyebrow {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .4rem;
}
.page-title {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 700; line-height: 1.15;
}
.page-meta {
  margin-top: .4rem; font-family: var(--mono); font-size: .62rem;
  color: var(--text-dim); letter-spacing: .05em;
}
.page-meta span + span::before {
  content: '·';
  margin: 0 0.4rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dim);
  vertical-align: middle;
}

/* ── QUICK LINKS ── */
.quicklinks { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0; }
.quicklink-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; border: 1px solid var(--border-mid);
  border-radius: 100px; font-size: .77rem; color: var(--text-mid);
  background: var(--bg-card); font-family: var(--sans);
  transition: color .12s, border-color .12s, background .12s; cursor: pointer;
}
.quicklink-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(82,183,136,.07); }
.quicklink-btn .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border-mid); flex-shrink: 0;
}
.quicklink-btn:hover .dot { background: var(--accent); }

/* ── NOTICES ── */
/* generic notice */
.notice {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: .85rem 1rem;
  margin: 1.25rem 0; font-size: .84rem; color: var(--text-mid);
}
.notice strong { color: var(--text); }

/* green tip notice */
.notice-tip {
  background: var(--notice-tip-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--notice-tip-border);
  border-radius: 4px;
  padding: .85rem 1rem;
  margin: 1.25rem 0;
  font-size: .84rem;
  color: var(--text);
}

/* amber warning notice */
.notice-warn {
  background: var(--notice-warn-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--notice-warn-border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin: 1.25rem 0;
  font-size: .84rem;
  color: var(--text-mid);
}
.notice-warn strong { color: var(--notice-warn-strong); }

/* ── SECTION HEADINGS ── */
.content-section { margin-top: 2rem; }
.content-section + .content-section,
.content-section.mt-lg { margin-top: 2.5rem; }
.content-section-title {
  font-family: var(--serif); font-size: 1.1rem;
  color: var(--text); margin-bottom: .75rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
}
.content-section-title .badge {
  font-family: var(--mono); font-size: .55rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); font-style: normal;
}
.content-section-title .title-note {
  font-family: var(--sans); font-size: .8em; font-style: normal;
  font-weight: 400; opacity: .7;
}

/* ── ASSIGNMENTS TABLE ── */
.table-wrap { overflow-x: auto; margin-top: .75rem; }
table {
  width: 100%; border-collapse: collapse;
  font-size: .8rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
thead tr th {
  padding: .55rem .85rem; text-align: left;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid var(--border-mid);
}
.th-sub { font-weight: 400; opacity: .75; }
.grad-link { font-style: italic; opacity: .75; }
.grad-note { font-size: .7rem; }
th.th-weight    { background: var(--th-green-bg);   color: var(--th-green-fg); }
th.th-req       { background: var(--th-green-bg);   color: var(--th-green-fg); }
th.th-out       { background: var(--th-yellow-bg);  color: var(--th-yellow-fg); }
th.th-image     { background: var(--th-yellow-bg);  color: var(--th-yellow-fg); }
th.th-reviews   { background: var(--th-blue-bg);    color: var(--th-blue-fg); }
th.th-deadlines { background: var(--th-red-bg);     color: var(--th-red-fg); }
th.th-optional  { background: var(--th-orange-bg);  color: var(--th-orange-fg); }
th.th-grading   { background: var(--th-neutral-bg); color: var(--th-neutral-fg); }
th.th-templates { background: var(--th-neutral-bg); color: var(--th-neutral-fg); }
tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-sub); }
td { padding: .55rem .85rem; vertical-align: middle; color: var(--text-mid); }
td.td-weight {
  font-family: var(--mono); font-size: .8rem;
  font-weight: 200; letter-spacing: 0.03em;
}
td a { color: var(--accent-blue); transition: color .12s; }
td a:hover { color: var(--accent); text-decoration: underline; }
td strong { color: var(--text); }

/* ── CALLOUT & BADGES ── */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-blue);
  border-radius: 4px;
  padding: .875rem 1rem;
  margin: 1.25rem 0;
}
.hint {
  display: inline-block;
  background: rgba(82,183,136,.15);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: .25rem;
}
.note {
  display: inline-block;
  background: rgba(232,197,71,.15);
  color: var(--accent-yellow);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: .25rem;
}
.badge-green  { background: var(--th-green-bg); color: var(--th-green-fg); }
.badge-red    { background: var(--th-red-bg);   color: var(--th-red-fg); }

/* ── CONTENT LINKS ── */
.main-content a { color: var(--accent-blue); text-decoration: underline; }
.main-content a:hover { color: var(--accent); }
.studio-note a { color: var(--accent-blue); text-decoration: underline; }
.studio-note a:hover { color: var(--accent); }

/* Row highlights */
tr.row-p1   { border-left: 3px solid #6ab0e8; }
tr.row-p2   { border-left: 3px solid var(--accent); }
tr.row-p3   { border-left: 3px solid #e87070; }
tr.row-prof { border-left: 3px solid var(--text-dim); }

/* ── TABLE LEGEND ── */
.table-legend {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  margin: .65rem 0 .9rem;
  font-family: var(--mono); font-size: .62rem; color: var(--text-dim);
  align-items: center;
}
.table-legend-label {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .08em;
  text-transform: uppercase; margin-right: .3rem; color: var(--text-dim);
}
.table-legend-item { display: flex; align-items: center; gap: .3rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── STUDIO NOTE ── */
.studio-note {
  margin-top: 1.5rem;
  background: var(--bg-sub); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-size: .83rem; line-height: 1.8; color: var(--text-mid);
}
.studio-note.mt-sm { margin-top: 1rem; }
.studio-note p + p { margin-top: .6rem; }
.studio-note strong { color: var(--text); }
.studio-note ul,
.studio-note ol { margin: .5rem 0 0 1.25rem; line-height: 1.9; }
.studio-note ul ul,
.studio-note ol ol { margin-top: .25rem; }
.studio-note code {
  font-family: var(--mono); background: var(--bg);
  padding: .1rem .35rem; border-radius: 3px; font-size: .75rem;
}
.studio-note .highlight-orange { color: #e8a250; }
.studio-note .highlight-green  { color: #009900; }

/* ── CLASS NOTES GRID ── */
.class-notes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  margin-top: .75rem;
}
.class-note-item {
  background: var(--bg-card); padding: .9rem 1rem;
  display: flex; flex-direction: column; gap: .25rem;
  transition: background .12s;
}
.class-note-item:hover { background: var(--bg-sub); }
.class-note-num {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
}
.class-note-title { font-size: .82rem; font-weight: 600; color: var(--text); }
.class-note-links { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }
.class-note-link {
  font-family: var(--mono); font-size: .62rem; color: var(--accent-blue);
  padding: .15rem .4rem; border: 1px solid var(--border);
  border-radius: 3px; transition: color .1s, border-color .1s;
}
.class-note-link:hover { color: var(--accent); border-color: var(--accent); }
.class-note-tag {
  font-family: var(--mono); font-size: .58rem; padding: .12rem .4rem;
  border-radius: 3px; align-self: flex-start;
}
.tag-orange { background: rgba(232,162,80,.15); color: #e8a250; border: 1px solid rgba(232,162,80,.25); }
.tag-green  { background: rgba(82,183,136,.12); color: var(--accent); border: 1px solid rgba(82,183,136,.2); }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .6rem; margin: 1.25rem 0 .5rem;
}
.filter-search {
  flex: 1; min-width: 180px; max-width: 280px;
  padding: .38rem .75rem;
  font-family: var(--sans); font-size: .8rem;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-mid); border-radius: 100px;
  outline: none; transition: border-color .15s;
}
.filter-search:focus { border-color: var(--accent); }
.filter-search::placeholder { color: var(--text-dim); }
.filter-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter-tag {
  padding: .28rem .7rem;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-dim); background: var(--bg-card);
  transition: color .12s, border-color .12s, background .12s;
  user-select: none;
}
.filter-tag:hover,
.filter-tag.active {
  color: var(--accent); border-color: var(--accent);
  background: rgba(82,183,136,.07);
}

/* ── ALPHA JUMP BAR ── */
.alpha-bar {
  display: flex; flex-wrap: wrap; gap: .2rem;
  margin: 1rem 0 1.5rem;
  font-family: var(--mono); font-size: .62rem;
}
.alpha-bar a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; font-size: .62rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-dim); transition: color .12s, border-color .12s, background .12s;
}
.alpha-bar a:hover { color: var(--accent); border-color: var(--accent); background: rgba(82,183,136,.07); }
.alpha-bar a.has-entries { color: var(--text-mid); border-color: var(--border-mid); }
.alpha-bar span { color: var(--text-dim); padding: 0 .15rem; align-self: center; }

/* ── RESULTS META ── */
.results-meta {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .06em;
  color: var(--text-dim); margin-bottom: 1rem;
}
.results-meta span { color: var(--accent); }

/* ── EMPTY STATE ── */
.empty-state {
  padding: 3rem 1.5rem; text-align: center;
  font-family: var(--mono); font-size: .75rem; color: var(--text-dim);
  display: none;
}
.empty-state.visible { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .main-content { padding: 1.5rem 1rem 3rem; }
}

@media (max-width: 540px) {
  .sidebar { padding: 0; }
  .sidebar-toggle-btn {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    padding: .85rem 1.25rem;
    background: none; border: none; cursor: pointer;
    font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent);
  }
  .sidebar-toggle-btn .chevron { font-size: .7rem; transition: transform .25s; color: var(--text-dim); }
  .sidebar-toggle-btn.open .chevron { transform: rotate(180deg); }
  .sidebar-body { display: none; padding-bottom: 1rem; }
  .sidebar-body.open { display: block; }
  .links-col {
    flex-basis: 100%;
    border-bottom: 1px solid var(--border);
  }
  .links-col:last-child { border-bottom: none; }
}

@media (min-width: 541px) {
  .sidebar-toggle-btn { display: none; }
  .sidebar-body { display: block !important; }
}

/* ── IMAGES ── */
/* make bullet points indented */
ul.inset-list { list-style-position: inside; }

/* side by side images */
.image-container {
  display: flex;
  justify-content: center;
  border: 2px solid var(--border);
}
.image-container img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── VIDEO GRID ── */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: var(--spacing-lg);
}
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* ── CODE BLOCK ── */
.code-block {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-wash);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 4px 4px 0;
  padding: 10px 16px;
  color: var(--accent-blue);
  margin: 8px 0 12px;
  white-space: pre;
  overflow-x: auto;
}

/* ── EXAMPLE FILE BUTTON ── */
.example-file-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ef-bg);
  border: 1px solid var(--ef-border);
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
  margin: 1rem 0 1.5rem;
}
.example-file-box .ef-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ef-label);
  white-space: nowrap;
}
.example-file-box a.ef-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ef-link);
  transition: color 0.15s;
  white-space: nowrap;
}
.example-file-box a.ef-btn:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* ── JUMP NAV ── */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}
.jump-nav a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--accent-blue);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.jump-nav a:hover {
  background: var(--accent-blue);
  color: #fff;
}
.jump-nav a.active {
  background: rgba(128, 212, 255, 0.15);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  cursor: default;
}

/* ── LINKS GRID ── */
.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  align-items: stretch;
  background: var(--bg-card);
}
.links-col {
  flex: 1 1 300px;
  min-width: 0;
  padding: 1.25rem;
  box-sizing: border-box;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
}
.links-col:last-child { border-right: none; }
.links-col:empty      { display: none; }

.links-col-title {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.links-col ul { list-style: none !important; padding: 0; margin: 0; }
.links-col ul li { margin-bottom: .4rem; font-size: .82rem; }
.links-col ul li a { color: var(--accent-blue); text-decoration: none; }
.links-col ul li a:hover { text-decoration: underline; }
.links-col .note { font-size: .78rem; color: var(--text-dim); margin-top: .5rem; font-style: italic; }
.links-col p { font-size: .82rem; margin: .25rem 0 .5rem; }
/* ── COLLAPSIBLE SECTION ── */
/* ── COLLAPSIBLE — content area (studio-note) ── */
.studio-note details {
  background: var(--ef-bg);
  border: 1px solid var(--ef-border);
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
}
.studio-note details summary {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ef-label);
  cursor: pointer;
  padding: 4px 0;
  font-weight: 500;
}
.studio-note details summary:hover { color: var(--ef-link); }
.studio-note details[open] summary {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--ef-border);
  padding-bottom: 0.5rem;
}

/* ── COLLAPSIBLE — sidebar ── */
.sidebar details {
  background: var(--ef-bg);
  border: 1px solid var(--ef-border);
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
}
.sidebar details summary {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ef-label);
  cursor: pointer;
  padding: 4px 0;
  font-weight: 500;
}
.sidebar details summary:hover { color: var(--ef-link); }
.sidebar details[open] summary {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--ef-border);
  padding-bottom: 0.5rem;
}
/* ── Clickable image hover outline ── */
.image-row a img {
  transition: outline 0.15s, box-shadow 0.15s;
}
.image-row a:hover img {
  outline: 2px solid var(--ef-border, #b89edc);
  box-shadow: 0 0 0 4px rgba(184, 158, 220, 0.15);
}