/* Track-record page. Loaded after style.css, which supplies the colours, the top bar and the language select. */

/* style.css turns <body> into a fixed-height app shell on desktop; this page is a normal scrolling document */
body.doc { height: auto; min-height: 100vh; display: block; }
a.brand { color: inherit; text-decoration: none; }

.record { max-width: 860px; margin: 0 auto; padding: 22px 18px 64px; }
.record h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 12px; color: var(--text); }
.record h2 { font-size: 19px; margin: 40px 0 10px; color: var(--text); }
.record .rec-h3 { font-size: 15px; margin: 22px 0 8px; color: var(--text); }
.record p { line-height: 1.6; color: var(--text); margin: 0 0 12px; }
.record-back { display: inline-block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 4px; }
.record-back:hover { color: var(--cyan); }
.record-lead { font-size: 16px; color: var(--muted); max-width: 66ch; }
.record-updated { font-size: 12px; color: var(--muted); margin-top: -2px; }
.record-muted { color: var(--muted); }
.record-error { color: var(--red); }
.record-lang { display: inline-flex; }

/* the four headline numbers */
.rec-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 14px; }
.rec-tile {
  padding: 14px 12px; border-radius: 10px; text-align: center;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--panel-border);
}
.rec-tile-num { display: block; font-size: 30px; font-weight: 800; line-height: 1; color: var(--cyan); font-variant-numeric: tabular-nums; }
.rec-tile-label { display: block; margin-top: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.rec-note { font-size: 14px; color: var(--muted); max-width: 70ch; }

/* tables */
.rec-table-wrap { overflow-x: auto; margin: 10px 0 12px; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rec-table th, .rec-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--panel-border); }
.rec-table th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.rec-table td.num, .rec-table th.num { text-align: right; }
.rec-table tr.rec-total td { font-weight: 700; border-bottom: 0; }
.rec-table tr.rec-alerts-from td { background: rgba(34, 211, 238, 0.07); }
.rec-tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600; color: #05141a; background: var(--cyan);
}

/* the exact-rules disclosure */
.rec-details { margin: 14px 0; padding: 10px 14px; border: 1px solid var(--panel-border); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.rec-details summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text); }
.rec-details dl { margin: 10px 0 2px; }
.rec-details dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-top: 10px; }
.rec-details dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text); }

.rec-limit { padding: 12px 14px; border-left: 3px solid var(--amber); background: rgba(251, 191, 36, 0.06); border-radius: 0 8px 8px 0; font-size: 14px; }
.rec-source { margin-top: 36px; font-size: 13px; }
.rec-source a { color: var(--cyan); }

@media (max-width: 640px) {
  .record h1 { font-size: 25px; }
  .rec-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* API docs page */
.api-code { margin: 8px 0 12px; padding: 12px 14px; border: 1px solid var(--panel-border); border-radius: 10px; background: rgba(255, 255, 255, 0.03); overflow-x: auto; font-size: 13px; }
.api-code code, .record td code, .record li code, .record p code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.record td code, .record li code, .record p code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); }
.api-code code { padding: 0; background: none; white-space: pre; }
.api-list { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; color: var(--text); }
.api-list li { margin: 0 0 8px; }
.record a { color: var(--cyan); }
.rec-table td:first-child { white-space: nowrap; vertical-align: top; }
@media (max-width: 640px) {
  .api-table thead { display: none; }
  .api-table, .api-table tbody, .api-table tr, .api-table td { display: block; width: 100%; }
  .api-table tr { padding: 10px 0; border-bottom: 1px solid var(--panel-border); }
  .api-table td { padding: 2px 0; border-bottom: 0; }
  .api-table td:first-child { white-space: normal; overflow-wrap: anywhere; }
}
