.notes-home.quarto-dark .notes-mark { color: #2b4236; }
.notes-home.quarto-dark .notes-mark span:nth-child(2) { color: #344f40; }
.notes-home .quarto-color-scheme-toggle { color: var(--notes-ink); }
.notes-home [hidden] { display: none !important; }
.notes-home #title-block-header { display: none; }
.notes-home .navbar { background: var(--notes-paper); border-bottom: 1px solid var(--notes-line); }
.notes-home .navbar-brand { color: var(--notes-ink); font: bold 1.6rem Georgia, serif; letter-spacing: -.06em; }
.notes-home .navbar .nav-link, .notes-home .navbar #quarto-search { color: var(--notes-ink); }
.notes-home #quarto-content { max-width: 1320px; margin-inline: auto; }
.notes-home main.content { padding-top: 0; }
.notes-intro { position: relative; padding: 4.3rem 0 3.7rem; border-bottom: 1px solid var(--notes-line); overflow: hidden; }
.notes-eyebrow { color: var(--notes-accent); font-size: .72rem; font-weight: 700; letter-spacing: .17em; margin-bottom: 1.25rem; }
.notes-intro h1 { position: relative; z-index: 1; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(3.2rem, 6.5vw, 5.7rem); line-height: 1.04; letter-spacing: -.055em; margin: 0 0 1.5rem; }
.notes-deck { position: relative; z-index: 1; max-width: 610px; font-size: 1.1rem; line-height: 1.65; color: var(--notes-muted); }
.notes-browse { display: inline-flex; gap: 2rem; align-items: center; margin-top: .6rem; color: var(--notes-accent); font-size: .86rem; font-weight: 600; text-decoration: none; }
.notes-browse span { font-size: 1.6rem; }
.notes-mark { position: absolute; right: 1%; top: 12%; display: flex; gap: .02em; align-items: center; font: 15rem Georgia, serif; color: #dce6dd; transform: rotate(-10deg); user-select: none; }
.notes-mark span:nth-child(2) { font-style: italic; color: #cfdbce; }
.notes-tools { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 2.3rem 0; scroll-margin-top: 90px; }
.notes-tools .notes-eyebrow { margin-bottom: .35rem; }
#notes-count { font: 1.5rem Georgia, serif; margin: 0; }
.notes-search-wrap { width: min(440px, 50%); }
.notes-search-wrap label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; }
#notes-search { width: 100%; border: 1px solid #aab7ad; background: var(--notes-surface); color: var(--notes-ink); border-radius: 7px; padding: .75rem 1rem; font-size: .95rem; }
#notes-search::placeholder { color: var(--notes-muted); opacity: 1; }
.notes-home .notes-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.notes-home main.content .notes-layout > .notes-filters { grid-column: 1 !important; grid-row: 1; }
.notes-layout > #notes-collection { grid-column: 2; grid-row: 1; min-width: 0; }
.notes-filters { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: .7rem; scrollbar-width: thin; }
.notes-filters summary { color: var(--notes-ink); font-size: .9rem; font-weight: 700; cursor: pointer; }
.notes-filter-hint { font-size: .8rem; line-height: 1.5; color: var(--notes-muted); margin: .7rem 0 1rem; }
#notes-keyword-list { display: flex; flex-wrap: wrap; gap: .4rem; padding: 3px; }
.keyword { border: 1px solid var(--notes-line); border-radius: 5px; background: transparent; color: var(--notes-ink); padding: .35rem .55rem; font: inherit; font-size: .77rem; text-align: left; cursor: pointer; }
.keyword span { color: var(--notes-muted); margin-left: .3rem; font-size: .7rem; }
.keyword:hover, .note-tags button:hover { background: var(--notes-hover); border-color: #8faaa0; }
.keyword[aria-pressed="true"] { background: var(--notes-accent); color: var(--notes-on-accent); border-color: var(--notes-accent); }
.keyword[aria-pressed="true"] span { color: var(--notes-on-accent); }
.notes-group { margin: 0 0 2.6rem; }
.notes-group h2 { font-size: 1.04rem; line-height: 1.4; letter-spacing: -.01em; font-weight: 600; border: 0; padding: 0 0 .8rem; margin: 0; }
.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.note-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.3rem; padding: 1.35rem; border: 1px solid var(--notes-line); border-top: 3px solid #88aaa0; background: var(--notes-surface); border-radius: 7px; transition: border-color .15s, box-shadow .15s; }
.notes-group:nth-of-type(2) .note-card { border-top-color: #baa475; }
.notes-group:nth-of-type(3) .note-card { border-top-color: #a091af; }
.notes-group:nth-of-type(4) .note-card { border-top-color: #8babbc; }
.note-card:hover { border-color: #8faaa0; box-shadow: 0 4px 16px #2033320a; }
.note-card h3 { margin: 0; font: 400 1.23rem/1.35 Georgia, 'Times New Roman', serif; }
.note-card h3 a { color: var(--notes-ink); text-decoration: none; }
.note-card h3 a:hover { color: var(--notes-accent); text-decoration: underline; text-underline-offset: 3px; }
.note-card h3 code { font-size: .84em; color: inherit; background: transparent; padding: 0; }
.note-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.note-tags button { border: 1px solid transparent; border-radius: 3px; padding: .15rem .4rem; background: var(--notes-tag); color: var(--notes-tag-ink); font: inherit; font-size: .67rem; cursor: pointer; }
.note-tags button[aria-pressed="true"] { color: var(--notes-accent); border-color: #8faaa0; background: var(--notes-hover); }
.notes-active { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--notes-line); }
#notes-filter-label { margin: 0; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
#notes-reset { flex-shrink: 0; background: none; border: 0; color: var(--notes-accent); font-size: .8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#notes-empty { padding: 2rem; border: 1px dashed #aab7ad; border-radius: 7px; color: var(--notes-muted); }
.notes-home :focus-visible { outline: 3px solid #b5792f; outline-offset: 3px; }
@media (max-width: 1000px) {
  .notes-mark { opacity: .5; right: -4%; font-size: 12rem; }
  .notes-home .notes-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 760px) {
  .notes-intro { padding: 2.6rem 0 2rem; }
  .notes-intro h1 { font-size: 3.2rem; }
  .notes-mark { display: none; }
  .notes-deck { font-size: 1rem; }
  .notes-tools { align-items: stretch; flex-direction: column; gap: 1.2rem; padding: 1.7rem 0; }
  .notes-search-wrap { width: 100%; }
  .notes-home .notes-layout { display: block; }
  .notes-filters { position: static; max-height: none; padding: 1rem; border: 1px solid var(--notes-line); border-radius: 7px; margin-bottom: 1.7rem; }
  #notes-keyword-list { max-height: 300px; overflow: auto; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-card { padding: 1.2rem; gap: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .note-card { transition: none; } }
