/* ==========================================================================
   Notes chapter page. Built on base.css tokens; the WordPress originals were
   bare posts with a third-party PDF viewer, so this is the site's own layout.
   The PDF is served from campusloom.in (/files/notes/...), not from git.
   ========================================================================== */
.note { padding-block: clamp(24px, 5vw, 48px) clamp(48px, 8vw, 96px); }
.note__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.note__crumbs a:hover { color: var(--orange); }
.note__head { display: grid; justify-items: start; gap: 14px; margin-bottom: 28px; }
.note__head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.note__sub { color: var(--muted); }
.note__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.note__viewer {
  height: min(82vh, 1100px); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm);
}
.note__viewer object { width: 100%; height: 100%; }
.note__fallback { display: grid; place-content: center; height: 100%; padding: 24px; text-align: center; color: var(--muted); }
.note__fallback a { color: var(--orange); font-weight: 600; }
.note__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; }
.note__nav a { display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 20px; border: 1px solid var(--border);
               border-radius: var(--radius); background: var(--card); transition: border-color 0.2s, transform 0.2s var(--ease); }
.note__nav a:hover { border-color: var(--orange); transform: translateY(-2px); }
.note__nav small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.note__nav strong { font-family: var(--font-d); font-size: 1rem; }
.note__nav .next { margin-left: auto; text-align: right; }
@media (max-width: 640px) { .note__viewer { height: 70vh; } }
