/* Race circuits (/gifts/race-circuits/): on top of the shared maker look (/gifts/globes/maker.css). */

.rc .rc-label { display: block; font-size: 0.8rem; color: var(--muted); margin: 14px 0 6px; }
.rc .wm-seg button { padding: 6px 8px; }

/* the circuit list */
.rc-find { position: relative; }
.rc-find input {
    width: 100%; background: var(--field); color: var(--ink); border: 1px solid transparent; border-radius: 9px;
    padding: 9px 11px; font: inherit; font-size: 0.92rem;
}
.rc-find input:focus { outline: none; border-color: var(--accent); }
.rc-sugg {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0;
    background: #1f2422; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); padding: 4px; max-height: 320px; overflow: auto;
}
.rc-sugg:empty { display: none; }
.rc-sugg button { width: 100%; }
.rc-sugg li.is-hi button { background: #2a302e; }
.rc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; max-height: 280px; overflow: auto; padding-right: 2px; }
.rc-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; cursor: pointer;
    background: var(--field); color: var(--ink); border: 1px solid transparent; border-radius: 9px; padding: 7px 9px; font: inherit;
}
.rc-item b { font-size: 0.86rem; font-weight: 650; line-height: 1.2; }
.rc-item span { font-size: 0.74rem; color: var(--muted); line-height: 1.25; }
.rc-item:hover { background: #262b29; }
.rc-item[aria-pressed="true"] { border-color: var(--accent); background: rgba(47, 165, 150, 0.12); }
.rc-facts { margin: 10px 0 0; font-size: 0.9rem; color: var(--ink); line-height: 1.5; }
.rc-facts:empty { display: none; }
.rc-facts span { color: var(--muted); }

/* the height profile under the 3D view */
.rc-chart { height: 92px; margin-top: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); position: relative; }
.rc-chart:empty { display: none; }
.rc-chart svg { display: block; width: 100%; height: 100%; }
.rc-chart .ax { fill: var(--muted); font: 600 10px/1 'Schibsted Grotesk', system-ui, sans-serif; }
.rc-chart .cn { fill: var(--ink); font: 700 9px/1 'Schibsted Grotesk', system-ui, sans-serif; }

.rc #rcLap[aria-pressed="true"] { background: var(--accent); color: #fff; }
.rc .wm-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 560px) {
    .rc .wm-seg button { padding: 6px 5px; font-size: 0.76rem; }
    .rc-list { grid-template-columns: minmax(0, 1fr); max-height: 240px; }
    .rc .wm-colors { grid-template-columns: minmax(0, 1fr); }
}
