[hidden] { display: none !important; }
.nav-links a[aria-current] { color: var(--cyan-deep); }
.nav-links a[aria-current]::after { transform: scaleX(1); }
.notebook-main { min-height: 70vh; padding-top: 72px; padding-bottom: 80px; }
.notebook-hero { max-width: 780px; margin-bottom: 40px; }
.notebook-hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); margin-bottom: 24px; }
.notebook-subtitle { color: var(--ink-soft); font-size: 1.4rem; margin-bottom: 12px; }
.notebook-description { color: var(--muted); max-width: 700px; line-height: 1.9; }
.notebook-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; color: var(--muted); font-size: .8rem; }
.notebook-stats strong { font: 500 1.2rem "IBM Plex Mono", monospace; color: var(--cyan-deep); margin-right: 5px; }
.latest-note { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 32px; border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.latest-label { display: flex; flex-direction: column; gap: 8px; }
.latest-label time { color: var(--muted); font: .8rem "IBM Plex Mono", monospace; }
.latest-note h2 { font-size: 1.6rem; line-height: 1.45; margin-bottom: 12px; }
.latest-note h2 a, .note-entry h4 a { text-decoration: none; overflow-wrap: anywhere; }
.latest-note h2 a:hover, .note-entry h4 a:hover { color: var(--cyan-deep); }
.latest-note p, .note-entry p { color: var(--muted); font-size: .94rem; }
.note-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.note-tags span { padding: 3px 9px; border-radius: 6px; background: rgba(0,168,168,.06); color: var(--cyan-deep); font: .7rem/1.6 "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.notebook-archive { margin-top: 56px; }
.archive-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.archive-heading h2 { font-size: 1.3rem; }
.archive-heading h2 span { margin-left: 12px; color: var(--muted); font-size: .8rem; font-weight: 400; }
.archive-heading > p { color: var(--muted); font: .75rem "IBM Plex Mono", monospace; white-space: nowrap; }
.note-filters { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(100px, 1fr)) auto; align-items: end; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #edf2f5; margin-bottom: 40px; }
.note-filters label { display: grid; gap: 7px; color: var(--ink-soft); font-size: .75rem; }
.note-filters input, .note-filters select, .note-filters button { min-height: 44px; width: 100%; min-width: 0; padding: 9px 10px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.note-filters button { cursor: pointer; font-size: .8rem; color: var(--cyan-deep); }
.note-filters input:focus-visible, .note-filters select:focus-visible { outline: 3px solid rgba(0,168,168,.35); outline-offset: 2px; }
.archive-month { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; border-top: 1px solid var(--line); }
.archive-month > h3 { padding-top: 28px; color: var(--muted); font: 500 .85rem "IBM Plex Mono", monospace; }
.note-entry { padding: 28px 0; border-bottom: 1px solid var(--line); }
.note-entry:last-child { border-bottom: 0; }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font: .75rem "IBM Plex Mono", monospace; margin-bottom: 12px; }
.note-status { font-family: "DM Sans", sans-serif; padding: 2px 8px; border: 1px solid var(--line); border-radius: 5px; }
.note-entry h4 { margin-bottom: 10px; font-size: 1.15rem; line-height: 1.5; }
.notes-empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.notes-empty h3 { color: var(--ink-soft); }
.note-detail { max-width: 800px; margin: 0 auto; }
.back-link { display: inline-block; color: var(--cyan-deep); text-decoration: none; font-size: .9rem; }
.note-header > .back-link { margin-bottom: 36px; }
.note-header h1 { max-width: none; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
.note-header { border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 36px; }
.paper-link { display: inline-block; margin-top: 20px; color: var(--cyan-deep); }
.note-prose { font-size: 1rem; line-height: 1.9; overflow-wrap: anywhere; }
.note-prose h1 { font-size: 1.7rem; line-height: 1.5; letter-spacing: -.02em; }
.note-prose h2 { font-size: 1.45rem; }
.note-prose h3 { font-size: 1.2rem; }
.note-prose h1, .note-prose h2, .note-prose h3 { margin-top: 2.2rem; }
.note-prose a { color: var(--cyan-deep); text-underline-offset: 3px; }
.note-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.note-prose pre { overflow-x: auto; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #eaf0f4; line-height: 1.6; }
.note-prose code { font-family: "IBM Plex Mono", monospace; font-size: .85em; }
.note-prose :not(pre) > code { background: #eaf0f4; padding: 2px 5px; border-radius: 4px; }
.note-prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.note-prose td, .note-prose th { border: 1px solid var(--line); padding: 8px 12px; }
.note-prose blockquote { font-size: 1rem; font-style: normal; }
.note-back { margin-top: 40px; }
@media (max-width: 880px) {
  .note-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .note-filters .search-field { grid-column: 1 / -1; }
  .note-filters button { grid-column: 1 / -1; }
  .latest-note { grid-template-columns: 1fr; gap: 16px; }
  .latest-label { flex-direction: row; justify-content: space-between; }
  .latest-label .kicker { margin: 0; }
}
@media (max-width: 680px) {
  .notebook-main { padding-top: 36px; padding-bottom: 48px; }
  .notebook-subtitle { font-size: 1.15rem; }
  .latest-note { padding: 22px; }
  .latest-note h2 { font-size: 1.3rem; }
  .archive-month { grid-template-columns: 1fr; gap: 0; }
  .archive-month > h3 { margin-bottom: 0; }
  .archive-heading h2 span { display: none; }
  .note-filters { padding: 14px; gap: 8px; }
}
