/* Alerta de Match (/disponibilidad/alerta): la MISMA página que «Canchas libres» (grilla por cancha, selector de días, barra de duración, leyenda: ver views/public/_disp_css.ejs)
   con un acento ÁMBAR para que se note que es una alerta y no una reserva. Solo lo propio de la alerta; sin scripts en línea (CSP). */
body.site { --alerta: #e8871e; --alerta-text: #ffc77a; --alerta-bg: rgba(232, 135, 30, .15); --alerta-line: rgba(232, 135, 30, .6); --alerta-cell: #a9600d; --alerta-cell-hi: #bd6c0f; --alerta-cell-ink: #fff7e8; --alerta-on: #2a1500; }
:root[data-theme="light"] body.site { --alerta: #b45309; --alerta-text: #8a3f06; --alerta-bg: rgba(180, 83, 9, .09); --alerta-line: rgba(180, 83, 9, .5); --alerta-cell: #b45309; --alerta-cell-hi: #92400e; --alerta-cell-ink: #ffffff; --alerta-on: #ffffff; }

.cal h1.alerta-h1 { font-size: clamp(2rem, 8.4vw, 3.4rem); }
.cal h1 .ic { width: .72em; height: .72em; vertical-align: -.04em; color: var(--alerta); stroke-width: 2; margin-right: .08em; }
.mode.alerta .ic { color: var(--alerta-text); }
.mode.alerta.on { background: var(--alerta); color: var(--alerta-on); }
.mode.alerta.on .ic { color: inherit; }

/* Cartel «ALERTA, no reserva»: lo primero que se ve bajo el título, con más peso que el selector de modo (que es un enlace más). */
.alerta-warn { display: flex; align-items: center; gap: .65rem; margin: 0 0 12px; padding: .75rem .9rem; border-radius: 14px; border: 2px solid var(--alerta); background: var(--alerta-bg); color: var(--cream); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.alerta-warn .ic { flex: none; width: 1.6em; height: 1.6em; color: var(--alerta-text); stroke-width: 2; }
.alerta-warn b { font-weight: 900; color: var(--alerta-text); }
.mode:not(.on) { font-weight: 600; font-size: .88rem; }

/* Franja ámbar: qué es una alerta (y que todavía no es una reserva). */
.alerta-band { display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 12px; padding: .5rem .8rem; border-radius: 14px; border: 1px solid var(--alerta-line); border-left-width: 4px; background: var(--alerta-bg); color: var(--cream); font-size: .85rem; font-weight: 600; line-height: 1.3; }
.alerta-band .ic { margin-top: .08rem; color: var(--alerta-text); }
.alerta-band b { font-weight: 800; }

/* Fila compacta «Nivel · Cancha» que despliega las opciones (<details>: sin JavaScript). */
.nvl { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.nvl > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem .6rem; min-height: 48px; padding: .4rem .8rem; border-radius: 16px; color: var(--cream); }
.nvl-pairs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; min-width: 0; }
.nvl > summary::-webkit-details-marker { display: none; }
.nvl > summary:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.nvl-pair { display: inline-flex; align-items: center; gap: .45rem; }
.nvl-k { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.nvl-val { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .82rem; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.nvl-val.none { border-color: var(--alerta-line); background: var(--alerta-bg); color: var(--alerta-text); }
.nvl-chev { width: 1.2em; height: 1.2em; color: var(--muted); transition: transform .15s; }
.nvl[open] > summary .nvl-chev { transform: rotate(180deg); }
.nvl-body { display: flex; flex-direction: column; gap: .9rem; padding: .2rem .8rem .85rem; border-top: 1px solid var(--line); margin-top: -1px; padding-top: .8rem; }
.nvl-body h2 { margin: 0 0 .5rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.nvl-body h2 b { color: var(--cream); font-size: .85rem; letter-spacing: 0; text-transform: none; }
.nvl .grp { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .6rem; }
.nvl .grp:last-child { margin-bottom: 0; }
.nvl .glab { flex: 0 0 100%; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.nvl .cat-chip { min-height: 44px; padding: 0 14px 0 11px; font-size: .86rem; }
.nvl .opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.nvl .opts a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--cream); text-decoration: none; font-size: .88rem; font-weight: 700; }
.nvl .opts a:hover { border-color: var(--gold); }
.nvl .opts a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.nvl .opts a[aria-current="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* Barra de duración con UNA sola ficha (la del club; no se elige) y el precio por jugador al lado. */
.durbar.solo .dur-row { align-items: center; gap: .75rem; }
.durbar.solo .dur-chip { flex: 0 0 auto; min-width: 100px; padding: .3rem .8rem; }
.dur-info { flex: 1 1 0; min-width: 0; }
.durbar.solo .price-line { margin: 0; font-size: .88rem; }
.durbar.solo .price-sub { margin: .15rem 0 0; }

/* Las horas de la alerta: el mismo casillero que una hora libre de «Canchas libres», en ámbar. */
.cell.alerta { background: var(--alerta-cell); color: var(--alerta-cell-ink); flex-direction: column; gap: 1px; line-height: 1.05; }
.cell.alerta b { font-size: .78rem; font-weight: 900; }
.cell.alerta small { font-size: .58rem; font-weight: 700; opacity: .95; white-space: nowrap; text-transform: lowercase; }
.cell.alerta:hover, .cell.alerta:focus-visible { background: var(--alerta-cell-hi); }
.cell.alerta:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -3px; }
.cell.alerta[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.sw.alerta { background: var(--alerta-cell); }
.alerta-nota { color: var(--muted); font-size: .85rem; text-align: center; margin: 8px 0 0; }
