/* Notes pages use the site token ladder and a compact editorial rhythm. */
.notes-hero { position: relative; padding: 72px 0 56px; }
.notes-hero::after { content: ''; position: absolute; width: 72px; height: 72px; right: max(24px, calc((100vw - var(--wrap)) / 2)); top: 62px; border-radius: var(--r-lg); background: var(--sun); box-shadow: 0 22px 45px -18px var(--sun-deep); transform: rotate(-12deg); pointer-events: none; }
.notes-hero .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; margin: 0 0 24px; border-radius: var(--r-pill); background: var(--sun-wash); color: var(--ink); font-size: var(--small); font-weight: 500; }
.notes-hero h1 { max-width: 800px; }
.notes-count { display: inline-flex; margin: 24px 0 0; padding: 5px 14px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink-2); font-size: var(--small); }
.notes-list { padding: 0 0 96px; }
.notes-list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.notes-card { display: flex; flex-direction: column; min-width: 0; min-height: 265px; padding: 32px; border-radius: var(--r-lg); background: var(--mist); color: var(--ink); text-decoration: none; transition: transform .2s, background .2s; cursor: pointer; }
.notes-card:hover { transform: translateY(-3px); background: var(--sun-wash); color: var(--ink); text-decoration: none; }
.notes-card.is-latest { background: var(--sun-wash); color: var(--ink); }
.notes-card.is-latest:hover { background: var(--sun); color: var(--ink); }
.notes-card .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--small); color: var(--ink-2); }
.notes-card .card-meta b { font-weight: 500; padding: 4px 12px; background: var(--paper); color: var(--ink); border-radius: var(--r-pill); }
.notes-card h2 { margin: 28px 0 12px; font-size: var(--addr); line-height: 1.45; }
.notes-card p { color: var(--ink-2); font-size: var(--small); }
.notes-card .card-arrow { margin-top: auto; padding-top: 24px; font-weight: 500; color: var(--sky-deep); font-size: var(--small); }
.article-hero { padding-bottom: 64px; }
.article-hero .crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 36px; font-size: var(--small); color: var(--muted); }
.article-hero .crumbs a { color: var(--ink-2); }
.article-hero .article-lead { max-width: 760px; margin: 22px 0 24px; color: var(--ink-2); font-size: var(--lead); line-height: 1.65; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.article-meta span { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink-2); font-size: var(--small); }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 48px; padding-bottom: 96px; }
.article-body { min-width: 0; line-height: 1.85; color: var(--ink-2); }
.article-body > p:first-child { font-size: var(--lead); color: var(--ink); }
.article-body p + p { margin-top: 18px; }
.article-body h2 { margin: 42px 0 14px; color: var(--ink); font-size: 26px; line-height: 1.35; scroll-margin-top: 80px; }
.article-body h3 { margin: 28px 0 10px; color: var(--ink); font-size: var(--lead); scroll-margin-top: 80px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 12px 0 22px; }
.article-body li { margin: 0 0 6px; line-height: 1.7; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-table-scroll { max-width: 100%; overflow-x: auto; margin: 22px 0 28px; border-radius: var(--r-md); background: var(--mist); }
.article-body table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: var(--small); line-height: 1.65; }
.article-body th, .article-body td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body thead th { background: var(--sun-wash); color: var(--ink); }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-note { padding: 24px; margin: 28px 0; border-radius: var(--r-md); background: var(--sky-wash); color: var(--ink); }
.article-note h3 { margin-top: 0; }
.article-toc { align-self: start; position: sticky; top: 72px; z-index: 2; padding: 24px; border-radius: var(--r-lg); background: var(--mist); color: var(--ink); }
.article-toc h2 { font-size: var(--h3); margin: 0 0 14px; }
.article-toc ol { padding-left: 20px; margin: 0; font-size: var(--small); }
.article-toc li { margin-bottom: 8px; }
.article-toc a { color: var(--ink-2); }
.article-toc .toc-count { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--tiny); color: var(--muted); }
.article-end { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 18px; margin-top: 48px; padding: 32px; border-radius: var(--r-lg); background: var(--sun-wash); color: var(--ink); }
.article-end .end-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--sun); color: var(--ink); }
.article-end h2 { margin: 0 0 10px; font-size: var(--addr); }
.article-end p { color: var(--ink-2); }
.article-end .end-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.article-end .end-actions .btn { text-decoration: none; }
.recommend-float { position: fixed; z-index: 45; bottom: 24px; right: 24px; width: min(310px,calc(100% - 32px)); padding: 20px 42px 20px 20px; border-radius: var(--r-md); background: var(--night); color: var(--night-ink); box-shadow: var(--shadow-soft); }
.recommend-float p { margin: 8px 0 14px; font-size: var(--small); color: var(--night-muted); }
.recommend-float a { font-size: var(--small); color: var(--sun); text-decoration: underline; }
.recommend-float .float-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); background: var(--night-2); color: var(--night-ink); cursor: pointer; }
@media (max-width: 760px) {
  .notes-hero { padding: 56px 0 40px; }
  .notes-hero::after { width: 44px; height: 44px; top: 48px; right: 16px; opacity: .6; }
  .notes-list-grid { grid-template-columns: minmax(0,1fr); }
  .article-layout { display: flex; flex-direction: column; gap: 32px; }
  .article-toc { position: static; order: -1; }
  .article-end { grid-template-columns: minmax(0,1fr); padding: 24px; }
  .recommend-float { bottom: 12px; right: 16px; }
}
