/* DuneCross 7.0 competitor list. Colours come from .dc7 in dc7-form.css. */
.dc7-comp { max-width: 1240px; }
.dc7-comp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 22px; }
.dc7-comp-event { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--o); }
.dc7 .dc7-comp-title { margin: 4px 0 0; font-size: clamp(30px, 4.5vw, 48px); font-weight: 400; line-height: 1.1; color: var(--ink); }
.dc7-comp-intro { margin: 8px 0 0; max-width: 62ch; color: var(--ink-2); font-size: 16px; }
.dc7-comp-stats { display: flex; gap: 10px; margin: 0; }
.dc7-comp-stats div { min-width: 84px; padding: 10px 14px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.dc7-comp-stats dd { margin: 0; font-size: 26px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dc7-comp-stats dt { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

.dc7-comp-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.dc7 .dc7-comp-tools input[type=search] { flex: 1 1 280px; width: auto; margin: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 15px; height: auto; outline: none; box-shadow: none; }
.dc7 .dc7-comp-tools input[type=search]:focus { border-color: var(--o); box-shadow: 0 0 0 4px rgba(233, 100, 14, .14); }
.dc7 .dc7-comp-tools select { flex: 0 1 260px; width: auto; background: var(--card); padding: 12px 15px; }

.dc7-comp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dc7 .dc7-chip { appearance: none; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; min-width: 52px; min-height: 40px; padding: 8px 14px; color: var(--ink-2); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; transition: border-color .15s, background .15s, color .15s; }
.dc7 .dc7-chip:hover { border-color: #E6C9AE; color: var(--ink); background: var(--card); }
.dc7 .dc7-chip.is-active, .dc7 .dc7-chip.is-active:hover { color: #fff; background: var(--o); border-color: var(--o); }
.dc7 .dc7-chip:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
.dc7-comp-count { min-height: 1.3em; margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }

.dc7-comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.dc7-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.dc7-tile-top { position: relative; min-height: 148px; padding: 44px 14px 0; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(240px 120px at 80% 0%, rgba(233, 100, 14, .4), transparent 70%), linear-gradient(180deg, #221813, #121014); }
.dc7-bib { position: absolute; top: 10px; left: 10px; min-width: 40px; padding: 4px 9px; text-align: center; font-size: 19px; font-weight: 700; line-height: 1.2; color: var(--ink); background: #FFC896; border-radius: 8px; font-variant-numeric: tabular-nums; }
.dc7-tile-class { position: absolute; top: 12px; right: 10px; padding: 3px 9px; font-size: 12px; font-weight: 700; color: #FFD7B8; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; }
.dc7-tile-crew { display: flex; justify-content: center; gap: 8px; width: 100%; }
.dc7-tile-crew img, .dc7-tile-initials { display: block; flex: 0 1 50%; max-width: 104px; aspect-ratio: 4 / 5; border-radius: 10px 10px 0 0; }
.dc7-tile-crew img { object-fit: cover; object-position: top; background: #2A1A10; min-width: 0; }
.dc7-tile-initials { display: grid; place-items: center; font-size: 26px; color: #FFD7B8; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0; }
.dc7-tile-body { flex: 1; padding: 14px 16px 16px; }
.dc7 .dc7-tile-body h3 { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.25; color: var(--ink); text-transform: uppercase; overflow-wrap: anywhere; }
.dc7-tile-co { margin: 2px 0 10px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.dc7-tile-meta { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.dc7-tile-meta svg { flex: none; font-size: 16px; color: var(--o); }
.dc7-tile-team img { flex: none; width: 24px; height: 24px; object-fit: contain; border-radius: 5px; }
.dc7-comp .dc7-closed p { margin: 0; color: var(--ink-2); }

@media (max-width: 520px) {
	.dc7-comp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.dc7-tile-top { min-height: 124px; padding: 42px 8px 0; }
	.dc7-tile-body { padding: 10px 12px 12px; }
	.dc7 .dc7-tile-body h3 { font-size: 15px; }
	.dc7-comp-stats { width: 100%; }
	.dc7-comp-stats div { flex: 1; min-width: 0; }
	.dc7 .dc7-comp-tools select { flex: 1 1 100%; }
}

/* ---------- v1.7.3: team sidebar and team profiles ---------- */
.dc7-comp-body { display: block; }
.dc7-comp.has-teams .dc7-comp-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.dc7-comp-main { min-width: 0; }
.dc7-comp-side { position: sticky; top: 100px; display: grid; gap: 4px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.dc7-comp-side-k { display: block; margin: 2px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dc7 .dc7-teamrow { appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.25; }
.dc7 .dc7-teamrow:hover { background: var(--sand); color: var(--ink); }
.dc7 .dc7-teamrow.is-active { background: var(--o-soft); box-shadow: inset 0 0 0 1.5px var(--o); }
.dc7 .dc7-teamrow:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
.dc7-teamrow strong { display: block; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.dc7-teamrow small { display: block; font-size: 12px; color: var(--muted); }
.dc7-teamrow-logo, .dc7-teamchip-logo, .dc7-teamcard-logo, .dc7-tile-teamlogo { flex: none; object-fit: contain; background: #fff; }
.dc7-teamrow-logo { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); }
.dc7-teamrow-logo.is-blank, .dc7-teamchip-logo.is-blank, .dc7-teamcard-logo.is-blank, .dc7-tile-teamlogo.is-blank { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--o); background: var(--o-soft); }

.dc7-comp-teamchips { display: none; gap: 8px; margin: 0 0 14px; padding-bottom: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dc7 .dc7-teamchip { appearance: none; flex: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px 5px 5px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.2; }
.dc7 .dc7-teamchip.is-active { border-color: var(--o); background: var(--o-soft); color: var(--ink); }
.dc7 .dc7-teamchip:hover { color: var(--ink); background: var(--o-soft); }
.dc7-teamchip-logo { width: 28px; height: 28px; border-radius: 50%; }
.dc7-teamchip-logo.is-blank { font-size: 10px; }

.dc7-teamcard { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.dc7-teamcard-photo { display: block; width: 100%; aspect-ratio: 16 / 6; object-fit: cover; background: var(--night); }
.dc7-teamcard-info { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px 18px; }
.dc7-teamcard-logo { width: 76px; height: 76px; border-radius: 16px; border: 1px solid var(--line); padding: 6px; }
.dc7-teamcard.has-photo .dc7-teamcard-logo { margin-top: -50px; border: 3px solid var(--card); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); position: relative; }
.dc7-teamcard-logo.is-blank { font-size: 22px; }
.dc7-teamcard-text { min-width: 0; flex: 1; }
.dc7 .dc7-teamcard-text h3 { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 400; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.dc7-teamcard-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.dc7-teamcard-about { margin: 10px 0 0; max-width: 70ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.dc7 .dc7-teamcard-share { appearance: none; display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.2; }
.dc7 .dc7-teamcard-share:hover { border-color: var(--o); color: var(--o); background: var(--card); }
.dc7-teamcard-share svg { color: var(--o); }
.dc7-tile-teamlogo { width: 24px; height: 24px; border-radius: 5px; }
.dc7-tile-teamlogo.is-blank { font-size: 9px; }

/* Narrow column or phone: the sidebar becomes a row of team chips above the crews. */
@container (max-width: 820px) {
	.dc7 .dc7-comp.has-teams .dc7-comp-body, .dc7.dc7-comp.has-teams .dc7-comp-body { grid-template-columns: minmax(0, 1fr); }
	.dc7.dc7-comp .dc7-comp-side { display: none; }
	.dc7.dc7-comp .dc7-comp-teamchips { display: flex; }
}
@media (max-width: 760px) {
	.dc7.dc7-comp.has-teams .dc7-comp-body { grid-template-columns: minmax(0, 1fr); }
	.dc7.dc7-comp .dc7-comp-side { display: none; }
	.dc7.dc7-comp .dc7-comp-teamchips { display: flex; }
	.dc7-teamcard-info { gap: 12px; padding: 14px; }
	.dc7-teamcard-logo { width: 60px; height: 60px; }
	.dc7-teamcard.has-photo .dc7-teamcard-logo { margin-top: -40px; }
}

/* Some themes style every button with very specific selectors; these keep their own look. */
.dc7.dc7-comp .dc7-teamrow { background: transparent !important; color: var(--ink) !important; }
.dc7.dc7-comp .dc7-teamrow:hover { background: var(--sand) !important; }
.dc7.dc7-comp .dc7-teamrow.is-active { background: var(--o-soft) !important; }
.dc7.dc7-comp .dc7-teamchip, .dc7.dc7-comp .dc7-chip, .dc7.dc7-comp .dc7-teamcard-share { background: var(--card) !important; color: var(--ink-2) !important; border: 1.5px solid var(--line) !important; }
.dc7.dc7-comp .dc7-teamchip.is-active { background: var(--o-soft) !important; color: var(--ink) !important; border-color: var(--o) !important; }
.dc7.dc7-comp .dc7-chip.is-active { background: var(--o) !important; color: #fff !important; border-color: var(--o) !important; }
.dc7.dc7-comp .dc7-teamcard-share:hover { color: var(--o) !important; border-color: var(--o) !important; }
