/* Styles for pages added after the main stylesheet was fingerprinted. Kept in a
   separate file on purpose: changing assets/styles/custom.css changes its
   content hash, which rewrites the <link> in every one of ~130,000 pages. */
.mtp-listen-note {
  margin: 18px 0 26px; padding: 14px 18px; background: var(--mtp-raised);
  border: 1px solid var(--mtp-line); border-left: 3px solid var(--mtp-brass);
  border-radius: 2px; color: var(--mtp-muted); font-size: 15px; line-height: 1.55;
}
.mtp-listen-note strong { color: var(--mtp-paper); }
.mtp-listen-note a { color: var(--mtp-brass-bright); }

/* ---- /charts/ pages ----------------------------------------------------- */
.mtp-chart-page .lede { max-width: 62ch; }
.mtp-chart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 26px; }
.mtp-chart-actions .mtp-button { cursor: pointer; }
.mtp-chart-hint, .mtp-chart-small { color: var(--mtp-muted); font-size: 13px; line-height: 1.5; }
.mtp-chart-pointer { margin: 0 0 22px; font-size: 14px; color: var(--mtp-muted); }
.mtp-chart-pointer a { color: var(--mtp-brass-bright); text-decoration: none; }
.mtp-chart-pointer a:hover { color: var(--mtp-paper); }

.mtp-chart-sheet { margin: 6px 0 30px; padding: 22px 18px; background: var(--mtp-raised); border: 1px solid var(--mtp-line); border-radius: 2px; }
.mtp-vex-scroll { overflow-x: auto; }
.mtp-vex svg { max-width: none; height: auto; }

.mtp-chart-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 36px; margin-bottom: 8px; }
.mtp-note-letters { display: flex; gap: 8px; margin: 6px 0 8px; }
.mtp-note-letters span {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--mtp-brass); border-radius: 50%; color: var(--mtp-brass-bright);
  font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 600;
}

.mtp-chart-table { width: 100%; border-collapse: collapse; margin: 10px 0 28px; font-size: 15px; }
.mtp-chart-table th, .mtp-chart-table td { padding: 9px 12px; border-bottom: 1px solid var(--mtp-line); text-align: left; vertical-align: middle; }
.mtp-chart-table thead th { color: var(--mtp-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mtp-chart-table tbody th { color: var(--mtp-brass-bright); font-weight: 600; white-space: nowrap; }
.mtp-interval-table .mtp-vex svg { width: 140px !important; height: auto !important; }
.mtp-terms-table tbody th { font-weight: 600; }

.mtp-keycards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.mtp-keycard { text-align: center; }
.mtp-keycard .mtp-vex svg { width: 100% !important; max-width: 190px; height: auto !important; }
.mtp-keycard-name { margin: 4px 0 0; color: var(--mtp-paper); }
.mtp-keycard .mtp-chart-small { margin: 2px 0 0; }

.mtp-circle-sheet { display: flex; justify-content: center; }
.mtp-circle { width: min(100%, 560px); }
.mtp-cf { width: 100%; height: auto; }
.mtp-cf .cf-ring, .mtp-cf .cf-spoke { fill: none; stroke: var(--mtp-line); stroke-width: 1.2; }
.mtp-cf .cf-major { fill: var(--mtp-paper); font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 600; }
.mtp-cf .cf-minor { fill: var(--mtp-brass-bright); font-family: "Cormorant Garamond", serif; font-size: 22px; }
.mtp-cf .cf-sig { fill: var(--mtp-muted); font-family: "Source Sans 3", sans-serif; font-size: 15px; }
.mtp-cf .cf-centre { fill: var(--mtp-muted); font-family: "Source Sans 3", sans-serif; font-size: 12px; }

.mtp-chart-options { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--mtp-line); border-radius: 2px; }
.mtp-chart-options legend { padding: 0 6px; color: var(--mtp-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mtp-chart-options label { color: var(--mtp-paper); font-size: 15px; cursor: pointer; }

/* Paper-like sheets: drawn in black on white on screen too, so the preview
   is what comes out of the printer. */
.mtp-paper { background: #fff; color: #111; padding: 22px 26px; border-radius: 2px; }
.mtp-paper-row svg { width: 100% !important; height: auto !important; display: block; }
.mtp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; background: #fff; padding: 14px; }
.mtp-card-flash { border: 1px dashed #777; padding: 6px 6px 0; break-inside: avoid; color: #111; }
.mtp-card-top svg { width: 100% !important; height: auto !important; display: block; }
.mtp-card-bottom {
  border-top: 1px dashed #777; margin: 0 -6px; padding: 14px 0; text-align: center;
  font-family: "Cormorant Garamond", serif; font-size: 34px; font-weight: 600; transform: rotate(180deg);
}

.mtp-log { font-size: 15px; }
.mtp-log-head { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-bottom: 14px; font-weight: 600; }
.mtp-log-head span { flex: 1 1 200px; display: flex; gap: 8px; align-items: flex-end; }
.mtp-log-head i { flex: 1; border-bottom: 1px solid #111; height: 1.2em; }
.mtp-log-table { width: 100%; border-collapse: collapse; }
.mtp-log-table th, .mtp-log-table td { border: 1px solid #111; padding: 14px 8px; text-align: left; }
.mtp-log-table thead th { background: #eee; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.mtp-log-table tbody th { width: 110px; }
.mtp-log-foot p { margin: 16px 0 4px; font-weight: 600; }
.mtp-log-lines i { display: block; border-bottom: 1px solid #111; height: 30px; }

.mtp-valves { display: inline-flex; gap: 8px; }
.mtp-valves i {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--mtp-brass); font-style: normal;
}
.mtp-valves i b { font-size: 11px; font-weight: 600; color: var(--mtp-muted); }
.mtp-valves i.on { background: var(--mtp-brass); }
.mtp-valves i.on b { color: var(--mtp-night); }

.mtp-chart-prose { max-width: 70ch; }
.mtp-chart-related { margin: 30px 0 10px; }
.mtp-chart-sources { margin-top: 24px; }
.mtp-chart-sources a { color: var(--mtp-brass-bright); }

@media (max-width: 720px) {
  .mtp-chart-table { font-size: 14px; }
  .mtp-chart-table th, .mtp-chart-table td { padding: 8px 6px; }
  .mtp-paper { padding: 12px; }
}

@media print {
  body { background: #fff !important; }
  .mtp-topnav, .mtp-site-footer, .book-toc, .book-footer, .mtp-breadcrumb, .mtp-chart-actions,
  .mtp-chart-options, .mtp-chart-related, .mtp-eyebrow, .mtp-chart-pointer { display: none !important; }
  .mtp-shell { display: block !important; padding: 0 !important; max-width: none !important; }
  .mtp-chart-page, .mtp-chart-page * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  .mtp-chart-page h1 { font-size: 22pt; margin: 0 0 6pt; }
  .mtp-chart-page .lede { font-size: 11pt; }
  .mtp-chart-sheet { border: 0 !important; padding: 0 !important; }
  .mtp-vex svg *, .mtp-cf * { fill: #000 !important; stroke: #000 !important; }
  .mtp-cf .cf-ring, .mtp-cf .cf-spoke { fill: none !important; }
  .mtp-chart-table th, .mtp-chart-table td { border-bottom: 1px solid #999 !important; }
  .mtp-valves i { border-color: #000 !important; }
  .mtp-valves i.on { background: #000 !important; }
  .mtp-valves i.on b { color: #fff !important; }
  .mtp-paper { padding: 0 !important; }
  .mtp-cards { padding: 0 !important; grid-template-columns: repeat(3, 1fr) !important; }
  .mtp-chart-table, .mtp-keycard, .mtp-card-flash { break-inside: avoid; }
  .mtp-chart-prose { display: none; }
}
.mtp-cf .cf-tight { font-size: 15px; }
