/* AIP podcast app - My notes. Head of IT, 17/09/2026. */
[hidden] { display: none !important; }
.notes-app { background: var(--parchment); min-height: 70vh; padding-bottom: 48px; }
.notes-bar { background: var(--navy); color: #fff; }
.notes-bar-inner { display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.notes-bar-title { flex: 1; min-width: 160px; }
.notes-bar h1 { color: #fff; font-size: 1.7rem; }
.notes-bar .eyebrow { color: var(--gold); margin-bottom: 0; }
.notes-back { color: #fff; border-color: rgba(255,255,255,.45); }
.notes-back:hover { background: rgba(255,255,255,.1); color: #fff; }
.notes-side-toggle { display: none; background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 6px; padding: 8px; cursor: pointer; }
.notes-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding-top: 24px; align-items: start; }
.notes-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 100px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; }
.notes-search { width: 100%; font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 30px; background: var(--parchment); outline: none; margin-bottom: 10px; }
.notes-search:focus { border-color: var(--blue); background: #fff; }
.notes-list { list-style: none; overflow-y: auto; flex: 1; margin: 0 -6px; }
.note-item { display: block; width: 100%; text-align: left; font: inherit; background: none; border: 0; border-left: 3px solid transparent; border-radius: 4px; padding: 9px 10px; cursor: pointer; }
.note-item:hover { background: var(--mist); }
.note-item.active { background: var(--mist); border-left-color: var(--gold); }
.note-item-title { display: block; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item-preview { display: block; font-size: 0.86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item-meta { display: block; font-size: 0.74rem; color: var(--gold-deep); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-empty { padding: 10px; color: var(--muted); font-size: 0.92rem; }
.notes-local { font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.notes-editor { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); min-height: 520px; display: flex; flex-direction: column; }
.notes-welcome { margin: auto; text-align: center; padding: 48px 24px; max-width: 520px; }
.notes-welcome h2 { font-size: 1.6rem; margin-bottom: 10px; }
.notes-welcome p { color: var(--muted); margin-bottom: 20px; }
.notes-active { display: flex; flex-direction: column; flex: 1; }
.notes-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--parchment); position: sticky; top: 84px; z-index: 5; }
.tb-btn { font: inherit; font-size: 0.86rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tb-btn:hover { border-color: var(--gold); }
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.tb-spacer { flex: 1; }
.tb-delete { color: var(--red); }
.tb-delete:hover { border-color: var(--red); }
.save-indicator { font-size: 0.78rem; color: var(--muted); margin-right: 6px; }
.hl-wrap, .menu-wrap { position: relative; display: inline-flex; }
.hl-wrap .tb-btn:first-child { border-radius: 4px 0 0 4px; }
.hl-arrow { border-left: 0; border-radius: 0 4px 4px 0; padding: 5px 7px; }
.hl-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
.hl-palette, .tb-menu { position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14,29,79,.18); padding: 10px; z-index: 20; min-width: 220px; }
.tb-menu { left: auto; right: 0; padding: 6px; }
.tb-menu button { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.9rem; background: none; border: 0; padding: 7px 10px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.tb-menu button:hover { background: var(--mist); }
.hl-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hl-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hl-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.hl-sw.active { box-shadow: 0 0 0 2px var(--navy); }
.hl-custom { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hl-custom input[type=color] { width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 4px; padding: 1px; background: #fff; }
.notes-meta { padding: 16px 22px 0; }
.note-title { width: 100%; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--navy); border: 0; border-bottom: 1.5px solid var(--line); padding: 4px 0 8px; outline: none; background: none; }
.note-title:focus { border-bottom-color: var(--gold); }
.note-episode { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; font-size: 0.9rem; }
.note-episode label { font-weight: 700; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.note-episode select { font: inherit; font-size: 0.9rem; max-width: 100%; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--parchment); }
.note-body { flex: 1; min-height: 360px; padding: 12px 22px 24px; outline: none; font-size: 1.05rem; line-height: 1.75; overflow-wrap: anywhere; }
.note-body:empty::before { content: attr(data-placeholder); color: var(--muted); }
.note-body h3 { font-size: 1.3rem; margin: 0.8rem 0 0.3rem; }
.note-body ul, .note-body ol { padding-left: 1.5rem; margin: 0.4rem 0; }
.note-body mark { border-radius: 2px; padding: 0 1px; color: inherit; }
.note-body a.ts { font-family: var(--sans); font-weight: 700; font-size: 0.88em; color: var(--blue); background: var(--mist); border-radius: 4px; padding: 1px 5px; text-decoration: none; cursor: pointer; }
.note-dates { font-size: 0.78rem; color: var(--muted); padding: 0 22px 14px; }
@media (max-width: 860px) {
  .notes-side-toggle { display: block; }
  .notes-layout { grid-template-columns: 1fr; }
  .notes-sidebar { display: none; position: static; max-height: none; }
  .notes-sidebar.open { display: flex; }
  .notes-toolbar { top: 70px; }
  .notes-back { display: none; }
}
@media print {
  .aip-topbar, .aip-masthead, .quarters, .aip-footer, .notes-bar, .notes-sidebar, .notes-toolbar, .note-episode select { display: none !important; }
  .notes-layout { display: block; }
  .notes-editor { border: 0; }
}
