/* The Notes hub and each section's Notes page. Colours follow the header's
   dots: products green, standards and protocols blue, the company ink. */
.notes-hub { --note-product: #36a66a; --note-standard: #2c79c7; --note-company: #172333; width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 64px; color: #172333; }
.notes-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.babb-redesign .notes-head h1, .notes-head h1 { margin: 0; font: 400 clamp(40px, 6vw, 64px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.notes-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px 22px; }
.notes-hub .notes-tools a { color: #172333; font-size: 14px; }
.notes-head input { width: 300px; max-width: 100%; box-sizing: border-box; padding: 10px 16px; border: 1px solid #c9cfc4; border-radius: 999px; background: #fff; color: inherit; font: 15px/1.4 inherit; }
.notes-head input:focus-visible { outline: 3px solid #a94f34; outline-offset: 2px; }
.notes-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.notes-hub .notes-filter { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #c9cfc4; border-radius: 999px; color: #36434f; font-size: 14px; font-weight: 600; text-decoration: none; }
.notes-filter.is-product::before, .notes-filter.is-standard::before, .notes-filter.is-company::before, .note-from::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--note-company); }
.notes-filter.is-product::before, .note-from.is-product::before { background: var(--note-product); }
.notes-filter.is-standard::before, .note-from.is-standard::before { background: var(--note-standard); }
.notes-filter span { color: #68736f; font-weight: 400; font-variant-numeric: tabular-nums; }
.notes-hub .notes-filter:hover { border-color: #172333; color: #172333; }
.notes-hub .notes-filter[aria-current="true"] { border-color: #172333; background: #172333; color: #fff; }
.notes-filter[aria-current="true"] span { color: #c3ccd6; }
.notes-status { min-height: 1.5em; margin: 14px 0 0; color: #68736f; font-size: 13.5px; }
.babb-redesign .notes-month h2, .notes-month h2 { margin: 22px 0 6px; color: #68736f; font: 400 20px/1.3 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.notes-month ul { margin: 0; padding: 0; list-style: none; }
.note-row { border-top: 1px solid #d8dbd2; }
.notes-hub .note-row a { display: grid; grid-template-columns: 68px minmax(0, 1fr) 130px; gap: 18px; align-items: baseline; padding: 13px 8px; color: inherit; text-decoration: none; }
.notes-hub .note-row a:hover { background: #fff; color: inherit; }
.note-row time { color: #68736f; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.note-text { display: block; min-width: 0; }
.note-text strong { display: block; font: 400 19px/1.35 Georgia, "Times New Roman", serif; }
.note-row a:hover .note-text strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.note-text > span { display: -webkit-box; overflow: hidden; color: #5b6874; font-size: 14px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; }
.note-kind { color: #68736f; font-size: 13px; }
.note-from { display: inline-flex; align-items: center; justify-self: start; gap: 7px; color: #475463; font-size: 13.5px; }
.notes-hub [hidden] { display: none !important; }
.notes-empty { margin-top: 28px; color: #475463; }
.notes-feed { margin-top: 36px; font-size: 14px; }
.notes-source { margin-top: 40px; color: #68736f; font-size: 13.5px; }
@media (max-width: 640px) {
  .notes-hub { padding-top: 32px; }
  .notes-head input { width: 100%; }
  .notes-tools { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .notes-hub .note-row a { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding-inline: 0; }
  .note-text { grid-column: 1 / -1; grid-row: 2; }
  .note-from, .note-kind { justify-self: end; }
  .note-text > span { -webkit-line-clamp: 2; line-clamp: 2; }
}
.notes-filter-group { align-self: center; margin-left: 10px; color: #68736f; font-size: 13px; }
.notes-about, .notes-tag { margin: 16px 0 0; color: #475463; font-size: 15px; }
.notes-tag button { margin-left: 10px; padding: 2px 10px; border: 1px solid #c9cfc4; border-radius: 999px; background: #fff; color: #172333; font: 13px/1.5 inherit; cursor: pointer; }
.notes-hub:has(+ .notes-after) { padding-bottom: 0; }
.notes-hub.notes-after { padding-top: 0; }
