/* FILE: site/sowetan/www/assets/archive.css */
/* sowetan_ask_archive_v1 - "Ask Lerato anything the Sowetan has reported" (homepage + Talk page).
   Self-contained (its own .aa-* names) so it reads the same on both pages. Dark panel, red accent only. */
.aa, .aa * , .aa *::before, .aa *::after { box-sizing: border-box; }
.aa {
  --aa-red: #ff2d2d;
  --aa-line: #2a2a2e;
  --aa-mute: #a09f9f;
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px 22px;
  border: 1px solid var(--aa-line);
  border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, #ff2d2d14, transparent 46%), linear-gradient(180deg, #161618, #101012);
  color: #fff;
  font: 400 14px/1.5 Poppins, Inter, system-ui, sans-serif;
  text-align: left;
}
.aa [hidden] { display: none !important; }
.aa .aa-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.aa .aa-head { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 14px; }
.aa .aa-av { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: #222; box-shadow: 0 0 0 2px var(--aa-red); }
.aa .aa-av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.aa .aa-k { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 600 10.5px/1 Poppins, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #c9c9cb; }
.aa .aa-k i { width: 7px; height: 7px; border-radius: 50%; background: var(--aa-red); }
.aa .aa-title { margin: 0; font: 700 clamp(20px, 2.3vw, 28px)/1.15 Poppins, sans-serif; letter-spacing: -.01em; text-transform: none; color: #fff; text-wrap: balance; }
.aa .aa-title span { color: var(--aa-red); }
.aa .aa-sub { margin: 6px 0 0; max-width: 62ch; font: 400 13px/1.5 Poppins, sans-serif; color: #b9b9bd; }

.aa .aa-form { margin: 0; }
.aa .aa-field { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 58px; padding: 6px 6px 6px 16px; border: 1px solid #3a3a3e; border-radius: 16px; background: #0c0c0e; transition: border-color .15s ease; }
.aa .aa-field:focus-within { border-color: var(--aa-red); }
.aa .aa-field > svg { width: 20px; height: 20px; color: var(--aa-mute); }
.aa .aa-field input { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 500 16px/1.2 Poppins, sans-serif; appearance: none; -webkit-appearance: none; }
.aa .aa-field input::placeholder { color: #8e8e94; opacity: 1; }
.aa .aa-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.aa .aa-ask { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--aa-red); color: #fff; font: 700 14px/1 Poppins, sans-serif; white-space: nowrap; cursor: pointer; }
.aa .aa-ask svg { width: 17px; height: 17px; }
.aa .aa-ask:hover, .aa .aa-ask:focus-visible { background: #f40706; }
.aa .aa-ask:active { transform: translateY(1px); }
.aa :is(button, a, input):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.aa .aa-field input:focus-visible { outline: 0; }

.aa .aa-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aa .aa-chips > b { font: 600 10.5px/1 Poppins, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8e8e94; }
.aa .aa-chip { min-height: 36px; padding: 6px 13px; border: 1px solid #3a3a3e; border-radius: 999px; background: transparent; color: #e6e6e8; font: 500 12.5px/1.25 Poppins, sans-serif; text-align: left; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.aa .aa-chip:hover, .aa .aa-chip:focus-visible { border-color: var(--aa-red); color: #fff; }
.aa .aa-see { min-height: 36px; margin-left: auto; padding: 6px 2px; border: 0; background: transparent; color: #c9c9cb; font: 500 12.5px/1.2 Poppins, sans-serif; text-decoration: underline; text-decoration-color: #ff2d2d99; text-underline-offset: 4px; cursor: pointer; }
.aa .aa-see:hover, .aa .aa-see:focus-visible { color: #fff; text-decoration-color: var(--aa-red); }

.aa .aa-out { display: grid; gap: 10px; min-width: 0; padding-top: 14px; border-top: 1px solid var(--aa-line); }
.aa .aa-msg { margin: 0; font-size: 13.5px; line-height: 1.55; color: #c9c9cb; }
.aa .aa-msg b { color: #fff; font-weight: 600; }
.aa .aa-msg a { color: #fff; text-decoration: underline; text-decoration-color: var(--aa-red); text-underline-offset: 3px; }
.aa .aa-wait::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--aa-red); animation: aa-pulse 1.2s ease-in-out infinite; }
@keyframes aa-pulse { 50% { opacity: .25; } }
.aa .aa-oh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.aa .aa-count { font-size: 12.5px; color: #b9b9bd; }
.aa .aa-count b { color: #fff; font-weight: 700; }
.aa .aa-again { min-height: 36px; padding: 6px 13px; border: 1px solid var(--aa-red); border-radius: 999px; background: transparent; color: #fff; font: 600 12px/1 Poppins, sans-serif; cursor: pointer; }
.aa .aa-again:hover, .aa .aa-again:focus-visible { background: var(--aa-red); }
.aa .aa-list { display: grid; margin: 0; padding: 0; list-style: none; }
.aa .aa-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 16px; padding: 11px 0; border-top: 1px dashed #26262a; }
.aa .aa-row:first-child { border-top: 0; padding-top: 2px; }
.aa .aa-tx { display: grid; gap: 3px; min-width: 0; }
.aa .aa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font: 500 11px/1.3 Poppins, sans-serif; color: #9a9aa0; }
.aa .aa-meta > span + span::before { content: "\00b7"; margin: 0 7px; color: #5c5c62; }
.aa .aa-meta .aa-today { color: var(--aa-red); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 10px; }
.aa .aa-t { color: #fff; font: 600 15px/1.35 Poppins, sans-serif; text-decoration: none; overflow-wrap: anywhere; }
.aa a.aa-t:hover, .aa a.aa-t:focus-visible { text-decoration: underline; text-decoration-color: var(--aa-red); text-underline-offset: 3px; }
.aa .aa-t svg { display: inline-block; width: 13px; height: 13px; margin-left: 6px; vertical-align: -1px; color: var(--aa-red); }
.aa .aa-hear { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid #3a3a3e; border-radius: 999px; background: #18181b; color: #fff; font: 600 12px/1 Poppins, sans-serif; white-space: nowrap; cursor: pointer; }
.aa .aa-hear svg { width: 14px; height: 14px; color: var(--aa-red); }
.aa .aa-hear:hover, .aa .aa-hear:focus-visible { border-color: var(--aa-red); }
.aa .aa-foot { margin: 0; font-size: 11px; line-height: 1.5; color: #8e8e94; }

/* Talk page: a narrower column */
body.talk .aa { margin: 22px 0 4px; padding: 16px; }
body.talk .aa .aa-title { font-size: 20px; }

@media (max-width: 720px) {
  .aa { gap: 12px; padding: 16px 14px 16px; border-radius: 16px; }
  .aa .aa-head { gap: 12px; align-items: start; }
  .aa .aa-av { width: 44px; height: 44px; }
  .aa .aa-sub { font-size: 12.5px; }
  .aa .aa-field { grid-template-columns: auto minmax(0,1fr); min-height: 0; padding: 6px 6px 6px 12px; }
  .aa .aa-ask { grid-column: 1 / -1; width: 100%; }
  .aa .aa-see { margin-left: 0; }
  .aa .aa-row { grid-template-columns: minmax(0,1fr); }
  .aa .aa-hear { justify-self: start; }
  .aa .aa-t { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .aa .aa-wait::before { animation: none; } .aa * { transition: none !important; } }
@media (forced-colors: active) { .aa, .aa .aa-field, .aa .aa-chip, .aa .aa-hear { border: 1px solid ButtonText; } }
