/* ---- Recherche par question (page « Ask the data ») ---- */
.ask-page { padding: 1.5rem 1rem; }                      /* largeur : celle de .page-container, comme « unfair » */
.ask { margin: 0 0 1rem; }
.ask__row { display: flex; gap: .5rem; }
.ask__input {
  flex: 1; min-width: 0; box-sizing: border-box; padding: .65rem .9rem; font: inherit; font-size: 1rem;
  color: var(--text-base); background: var(--surface); border: 1px solid var(--container-border); border-radius: 10px;
}
.ask__input:focus { outline: none; border-color: var(--accent-line); background: var(--surface-hi); }
.ask__btn {
  padding: 0 1.1rem; font: inherit; font-weight: 600; cursor: pointer; color: var(--color-green);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px;
}
.ask__btn:hover { background: var(--surface-hi); }
.ask__exbox { margin-top: .5rem; }
.ask__exsum { cursor: pointer; list-style: none; font-size: .85rem; color: var(--text-muted); padding: .4rem 0; display: flex; align-items: center; justify-content: space-between; }
.ask__exsum::-webkit-details-marker { display: none; }
.ask__exsum::after { content: ''; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; margin-right: .3rem; }
.ask__exbox[open] > .ask__exsum::after { transform: rotate(-135deg); }
.ask__examples { display: flex; flex-direction: column; margin-top: .2rem; border-top: 1px solid var(--container-border); }
.ask__examples .ask__ex { border: 0; border-bottom: 1px solid var(--container-border); border-radius: 0; text-align: left; padding: .7rem .2rem; font-size: .9rem; opacity: .9; width: 100%; }
@media (min-width: 700px) {
  .ask__exsum { display: none; }
  .ask__examples { flex-direction: row; flex-wrap: wrap; gap: .4rem; border-top: 0; }
  .ask__examples .ask__ex { border: 1px solid var(--container-border); border-radius: 999px; padding: .25rem .6rem; font-size: .78rem; width: auto; }
}
.ask__ex {
  font: inherit; font-size: .78rem; cursor: pointer; padding: .25rem .6rem; color: var(--text-muted); opacity: .8;
  background: transparent; border: 1px solid var(--container-border); border-radius: 999px;
}
.ask__ex:hover { opacity: 1; background: var(--surface); }
.ask__out { margin-top: .6rem; }
.ask__out:empty { display: none; }
.ask__msg { margin: .4rem 0; font-size: .9rem; opacity: .85; }
.ask__msg--muted { opacity: .55; }
.ask__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.ask__chip { font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--container-border); }
.ask__chip--main { color: var(--color-green); border-color: var(--accent-line); background: var(--accent-soft); }
.ask__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.ask__match {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "teams val" "meta sub"; column-gap: .75rem;
  padding: .8rem 1.1rem; text-decoration: none; color: var(--text-base);
  background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .06); border-radius: .75rem;
  transition: border-color .2s ease, background .2s ease;
}
.ask__match:hover { background: rgba(255, 255, 255, .045); border-color: rgba(74, 222, 128, .35); }
.ask__bar { --height: 10px; grid-column: 1 / -1; grid-row: 3; width: 100%; margin: .45rem 0 0; box-shadow: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ask__bar::before, .ask__bar .outcome_bar-seg::after { display: none; }
.ask__bar .outcome_bar-seg { box-shadow: none; opacity: .85; }
.ask__teams { grid-area: teams; font-weight: 600; }
.ask__team { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.ask__logo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.ask__team-name { overflow: hidden; text-overflow: ellipsis; }
.ask__meta { grid-area: meta; font-size: .75rem; opacity: .65; }
.ask__val { grid-area: val; align-self: start; text-align: right; font-weight: 600; color: var(--color-green); }
.ask__sub { grid-area: meta; justify-self: end; font-size: .72rem; opacity: .6; }
.ask__note { margin: .4rem 0 0; font-size: .78rem; opacity: .6; }
.ask__sugg { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; }
.ask__sugg-label { font-size: .78rem; opacity: .65; }
.ask__more { display: inline-block; margin-top: .5rem; font-size: .85rem; color: var(--color-green); text-decoration: none; }
.ask__more:hover { text-decoration: underline; }
.ask__periods { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.ask__period {
  font: inherit; font-size: .75rem; cursor: pointer; padding: .2rem .6rem; color: var(--text-muted); opacity: .8;
  background: transparent; border: 1px solid var(--container-border); border-radius: 999px;
}
.ask__period:hover { opacity: 1; background: var(--surface); }
.ask__period--on { color: var(--color-green); opacity: 1; border-color: var(--accent-line); background: var(--accent-soft); }
.ask-title { margin: 0 0 .25rem; font-size: 1.8rem; font-weight: 600; text-align: center; letter-spacing: -0.5px; color: var(--text-base); }
.ask-lead { margin: 0 auto 1rem; max-width: 70ch; font-size: .85rem; line-height: 1.5; text-align: center; opacity: .75; }
.ask__compare { margin-top: 1rem; }
.ask__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .75rem; margin-bottom: .6rem; }
.ask__head .ask__chips, .ask__head .ask__periods { margin-bottom: 0; }
/* Probabilités : même thème que la liste des matchs (colonne à droite, le plus probable en vert-jaune, tolérance de 6 points) */
.ask__match--probs { grid-template-areas: "teams probas" "meta probas"; }
.ask__probas { grid-area: probas; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-size: .9rem; line-height: 1.25; color: var(--text-2); }
.ask__probas .prob-span.highlight { font-weight: 800; color: #d4ff3f; text-shadow: 0 0 8px rgba(212, 255, 63, .4); }
.ask__plabel { font-size: .72rem; opacity: .6; font-weight: 600; }
[data-theme="light"] .ask__probas .prob-span.highlight { color: var(--lt-text); text-shadow: none; font-weight: 800; }

.ask__count { cursor: default; }
.ask__match--hl { border-color: rgba(74, 222, 128, .55); background: rgba(74, 222, 128, .08); }
.ask__modes { margin: .6rem 0; }
.ask__out .standings-table { margin-bottom: 1rem; }
