/* RUO Tracker 1.0.1 — Imperial palette (black / ivory / champagne gold), same tokens as the yacht register.
   1.0.1: Imperial article area is dark (#111210), content column 740px → top 10 in dark tokens, tracker panel wider than the column on desktop. */
.entry-content .ruo-tracker,
.entry-content .ruo-tracker-top10,
.entry-content .ruo-tracker-stats {
  --rt-black: #111210;
  --rt-ivory: #f4eee2;
  --rt-gold: #d8bd81;
  --rt-muted: #bfb7a7;
  --rt-panel: #1b1d19;
  --rt-line: #514a3c;
  --rt-red: #e8a39a;
}
.ruo-tracker *, .ruo-tracker *::before, .ruo-tracker *::after,
.ruo-tracker-top10 * { box-sizing: border-box; }
.ruo-tracker [hidden], .ruo-tracker tr[hidden] { display: none !important; }

/* Stats strip */
.entry-content .ruo-tracker-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  list-style: none; margin: 32px 0; padding: 0; background: var(--rt-line); border: 1px solid var(--rt-line);
}
.entry-content .ruo-tracker-stats li { margin: 0; padding: 18px 20px; background: var(--rt-black); color: var(--rt-muted); font-size: 15px; line-height: 1.4; }
.entry-content .ruo-tracker-stats strong { display: block; color: var(--rt-gold); font: 400 36px/1.1 Georgia, 'Times New Roman', serif; margin-bottom: 4px; }

/* Shared table look */
.entry-content .ruo-tracker-top10 table,
.entry-content .ruo-tracker__table { width: 100%; border-collapse: collapse; margin: 0; font-size: 16px; line-height: 1.45; }
.entry-content .ruo-tracker-top10 caption { caption-side: bottom; text-align: left; color: var(--rt-muted); font-size: 14px; padding-top: 10px; }
.entry-content .ruo-tracker-top10 th,
.entry-content .ruo-tracker-top10 td { padding: 12px 10px; border-bottom: 1px solid var(--rt-line); text-align: left; vertical-align: top; color: var(--rt-ivory); }
.entry-content .ruo-tracker-top10 thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--rt-muted); border-bottom: 2px solid var(--rt-gold); }
.entry-content .ruo-tracker-top10 tbody td:first-child { font: 400 22px/1.1 Georgia, 'Times New Roman', serif; color: var(--rt-gold); width: 2.5em; }
.ruo-tracker-muted { color: var(--rt-muted); }

/* Desktop: the tracker is wider than the 740px text column */
@media (min-width: 1000px) {
  .entry-content .ruo-tracker { --rt-w: min(1160px, calc(100vw - 64px)); width: var(--rt-w); max-width: none; margin-left: calc((100% - var(--rt-w)) / 2); }
}

/* Tracker panel */
.entry-content .ruo-tracker {
  color-scheme: dark; background: var(--rt-panel); border: 1px solid var(--rt-line); color: var(--rt-ivory);
  font: 400 16px/1.55 Arial, Helvetica, sans-serif; margin-block: 32px 40px; padding: 28px; scroll-margin-top: 160px;
}
.entry-content .ruo-tracker h3 { color: var(--rt-ivory); font: 400 clamp(26px, 3.4vw, 34px)/1.2 Georgia, 'Times New Roman', serif; margin: 0 0 20px; }
.entry-content .ruo-tracker p { color: inherit; font: inherit; margin: 0 0 14px; }
.entry-content .ruo-tracker a { color: var(--rt-gold); text-decoration: underline; text-underline-offset: .2em; }
.entry-content .ruo-tracker a:hover { color: var(--rt-ivory); }
.ruo-tracker a:focus-visible, .ruo-tracker input:focus-visible, .ruo-tracker select:focus-visible,
.ruo-tracker button:focus-visible, .ruo-tracker__scroll:focus-visible { outline: 3px solid var(--rt-gold); outline-offset: 3px; }
.entry-content .ruo-tracker .ruo-tracker__eyebrow { color: var(--rt-gold); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px; }
.ruo-tracker__controls { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; border: 1px solid var(--rt-line); padding: 18px; background: var(--rt-black); }
.ruo-tracker__controls label { flex: 1 1 220px; font-size: 14px; color: var(--rt-ivory); }
.entry-content .ruo-tracker input, .entry-content .ruo-tracker select, .entry-content .ruo-tracker__controls button,
.entry-content .ruo-tracker__empty button {
  color: var(--rt-ivory); background: var(--rt-black); border: 1px solid var(--rt-muted); border-radius: 0;
  font: 400 16px/1.5 Arial, Helvetica, sans-serif; padding: 10px 12px; min-height: 46px;
}
.ruo-tracker__controls input, .ruo-tracker__controls select { display: block; width: 100%; margin-top: 6px; }
.entry-content .ruo-tracker__controls button, .entry-content .ruo-tracker__empty button { cursor: pointer; background: var(--rt-gold); border-color: var(--rt-gold); color: var(--rt-black); }
.entry-content .ruo-tracker__controls button:hover, .entry-content .ruo-tracker__empty button:hover { background: var(--rt-ivory); border-color: var(--rt-ivory); }
.entry-content .ruo-tracker .ruo-tracker__count { font-size: 14px; color: var(--rt-muted); margin: 12px 0; }
.ruo-tracker__scroll { overflow-x: auto; border-top: 2px solid var(--rt-gold); }
.entry-content .ruo-tracker__table th, .entry-content .ruo-tracker__table td {
  padding: 11px 10px; border-bottom: 1px solid var(--rt-line); text-align: left; vertical-align: top; color: var(--rt-ivory); background: transparent;
}
.entry-content .ruo-tracker__table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--rt-muted); white-space: nowrap; }
.entry-content .ruo-tracker__table thead th button {
  all: unset; cursor: default; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.ruo-tracker.is-enhanced .ruo-tracker__table thead th button { cursor: pointer; text-decoration: underline dotted; text-underline-offset: .25em; }
.ruo-tracker.is-enhanced .ruo-tracker__table thead th button:focus-visible { outline: 3px solid var(--rt-gold); outline-offset: 2px; }
.ruo-tracker__table th[aria-sort="ascending"] button::after { content: ' ▲'; color: var(--rt-gold); }
.ruo-tracker__table th[aria-sort="descending"] button::after { content: ' ▼'; color: var(--rt-gold); }
.ruo-tracker__table abbr { text-decoration: none; }
.entry-content .ruo-tracker__table tbody th { font-weight: 400; min-width: 11em; }
.entry-content .ruo-tracker__table tbody th a { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; }
.ruo-tracker__nw { min-width: 9em; }
.ruo-tracker__nw strong { font-weight: 700; color: var(--rt-ivory); white-space: nowrap; }
.ruo-tracker__date { display: block; font-size: 13px; color: var(--rt-muted); }
.ruo-tracker__nw--stale, .ruo-tracker__nw--unlisted { color: var(--rt-muted) !important; font-style: italic; }
.ruo-tracker__yes { color: var(--rt-gold); font-weight: 700; }
.ruo-tracker__no { color: var(--rt-muted); }
.ruo-tracker__former { min-width: 14em; font-size: 14px; }
.ruo-tracker__table td time { white-space: nowrap; font-size: 14px; }
.entry-content .ruo-tracker .ruo-tracker__download { margin: 18px 0 0; font-size: 15px; color: var(--rt-muted); }

/* Phones: one card per person */
@media (max-width: 760px) {
  .entry-content .ruo-tracker { padding: 20px 16px; margin-inline: -4px; }
  .entry-content .ruo-tracker-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-content .ruo-tracker-stats strong { font-size: 30px; }
  .ruo-tracker__scroll { overflow: visible; }
  .entry-content .ruo-tracker__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .entry-content .ruo-tracker__table, .entry-content .ruo-tracker__table tbody,
  .entry-content .ruo-tracker__table tr, .entry-content .ruo-tracker__table td, .entry-content .ruo-tracker__table tbody th { display: block; width: 100%; }
  .entry-content .ruo-tracker__table tr { padding: 14px 0; border-bottom: 1px solid var(--rt-line); }
  .entry-content .ruo-tracker__table tbody th { border: 0; padding: 0 0 8px; }
  .entry-content .ruo-tracker__table td { border: 0; padding: 3px 0; min-width: 0; display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px; }
  .entry-content .ruo-tracker__table td::before { content: attr(data-label); color: var(--rt-muted); font-size: 13px; font-style: normal; }
  .entry-content .ruo-tracker__table td.ruo-tracker__flag { display: inline-grid; width: auto; grid-template-columns: auto auto; margin-right: 18px; }
  .entry-content .ruo-tracker__table td { font-size: 16px; }
  .entry-content .ruo-tracker__nw .ruo-tracker__date { display: block; margin: 0; }
  .entry-content .ruo-tracker-top10 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .entry-content .ruo-tracker-top10 table, .entry-content .ruo-tracker-top10 tbody { display: block; }
  .entry-content .ruo-tracker-top10 tr { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rt-line); }
  .entry-content .ruo-tracker-top10 th, .entry-content .ruo-tracker-top10 td { border: 0; padding: 2px 0; font-size: 16px; }
  .entry-content .ruo-tracker-top10 tbody td.ruo-tracker-top10__rank { grid-row: span 4; width: auto; }
  .entry-content .ruo-tracker-top10 td[data-label]::before { content: attr(data-label) ': '; color: var(--rt-muted); font-size: 14px; }
  .entry-content .ruo-tracker-top10 caption { display: block; }
}
