/* The "Your questions" block of the start page (index.html, #home-questions, assets/home-questions.js), after Tips & feedback.
   A .dash-block like the others: the glass card itself (border, gloss strip, padding) comes from home-homework.css, which has to be loaded
   before this file. Scoped to html.ah, uses the colour variables of academy-home.css (--ah-*). */

html.ah .questions-block[hidden] { display: none; }
html.ah .questions-block [hidden] { display: none; }
html.ah .qs-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 14px; margin-bottom: 18px; }
html.ah .questions-block .qs-title {
  font-family: var(--ah-head); font-weight: 700; font-size: 25px; line-height: 1.15; text-transform: lowercase; color: var(--ah-ink); margin: 5px 0 0;
}
html.ah .questions-block ul { list-style: none; margin: 0; padding: 0; }
html.ah .questions-block li { margin: 0; }
html.ah .questions-block li::marker { content: ''; }

/* buttons: the white glossy pill */
html.ah .qs-ask, html.ah .qs-more {
  min-height: 44px; padding: 0 20px; border-radius: 99px; cursor: pointer; border: 1.5px solid #35a4dd; color: var(--ah-ink);
  font: 600 14px/1.2 var(--ah-font); background: var(--ah-pill); box-shadow: var(--ah-pill-sh); transition: background .15s, border-color .15s, box-shadow .15s;
}
html.ah .qs-more { margin-top: 14px; }
html.ah .qs-ask:hover, html.ah .qs-more:hover { border-color: #1f8fcf; background: var(--ah-pill-h); box-shadow: var(--ah-pill-sh-h); }
html.ah .qs-ask:active, html.ah .qs-more:active { background: var(--ah-pill-a); border-color: #1778b3; box-shadow: inset 0 2px 4px rgba(0, 60, 110, .35); }
html.ah .qs-ask:focus-visible, html.ah .qs-more:focus-visible { outline: 3px solid var(--ah-focus); outline-offset: 2px; }

/* a question: a glass card; the answer sits in a calmer inner box (green when answered, grey when still waiting) */
html.ah .qs-list { display: flex; flex-direction: column; gap: 12px; }
html.ah .qs-card {
  padding: 14px 18px; border-radius: 20px; color: var(--ah-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(240, 248, 254, .64));
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(53, 164, 221, .45), inset 0 -6px 12px -8px rgba(70, 105, 140, .3), 0 1px 3px rgba(20, 60, 110, .15);
}
html.ah .qs-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
html.ah .qs-lbl { font: 700 11px/1.2 var(--ah-font); letter-spacing: .1em; text-transform: uppercase; color: var(--ah-spn); }
html.ah .qs-date { margin-left: auto; font: 600 12.5px/1.2 var(--ah-font); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--ah-spn); white-space: nowrap; }
html.ah .qs-text { margin: 6px 0 0; font: 600 15px/1.5 var(--ah-font); color: var(--ah-ink); white-space: pre-wrap; overflow-wrap: anywhere; }

html.ah .qs-ans { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(53, 164, 221, .5); }
html.ah .qs-ans-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
html.ah .qs-ans-l { font: 700 13px/1.2 var(--ah-font); letter-spacing: .02em; color: #14400a; }
html.ah .qs-ans:not(.qs-wait):not(.qs-done) { background: linear-gradient(180deg, rgba(232, 250, 220, .85), rgba(210, 244, 190, .6)); border-color: #3f9d17; }
html.ah .qs-ans-t { margin: 6px 0 0; font: 400 15px/1.5 var(--ah-font); color: var(--ah-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
html.ah .qs-state { margin: 0; font: 600 14px/1.45 var(--ah-font); color: var(--ah-spn); }
html.ah .qs-wait, html.ah .qs-done { border-style: dashed; }
html.ah .qs-new {   /* chip for an answer from the last 14 days */
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 99px;
  font: 700 11px/1 var(--ah-font); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  border: 1.5px solid #0a2a48; background: linear-gradient(180deg, #2a72b0 0%, #1d5a93 49%, #0d3358 50%, #164a7d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 8px rgba(var(--ah-glow), .55);
}

/* Admin preview: the badge line above the examples */
html.ah .qs-adm {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px; padding: 8px 14px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 251, 232, .92), rgba(255, 238, 180, .7)); border: 1.5px solid #d99a1c;
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(150, 100, 10, .2);
}
html.ah .qs-adm-b {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 99px; flex: none;
  font: 700 11px/1 var(--ah-font); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  border: 1.5px solid #0a2a48; background: linear-gradient(180deg, #2a72b0 0%, #1d5a93 49%, #0d3358 50%, #164a7d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
html.ah .qs-adm-t { flex: 1 1 240px; min-width: 0; font: 600 13.5px/1.45 var(--ah-font); color: #4a2f00; }

@media (max-width: 560px) {
  html.ah .qs-head { margin-bottom: 14px; padding: 0 4px; }
  html.ah .questions-block .qs-title { font-size: 22px; }
  html.ah .qs-card { padding: 12px 12px; border-radius: 18px; }
  html.ah .qs-ans { padding: 10px 12px; }
  html.ah .qs-date { margin-left: 0; flex-basis: 100%; order: 9; }
}
@media (prefers-reduced-motion: reduce) {
  html.ah .qs-ask, html.ah .qs-more { transition: none; }
}
@media (forced-colors: active) {
  html.ah .qs-ask, html.ah .qs-more, html.ah .qs-new, html.ah .qs-adm-b { border: 1px solid CanvasText; }
}
