/* Ask the episode (js/ask-episode.js). Uses the site tokens from style.css + refresh.css. */
.ae { max-width: 980px; margin: 0 auto 60px; padding: 24px; border-radius: var(--radius, 22px); background: rgba(255,255,255,.04); border: 1px solid rgba(237,138,45,.45); box-shadow: 0 24px 80px rgba(237,138,45,.10); }
.ae-head { margin-bottom: 14px; }
.ae-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #1a0d00; background: linear-gradient(90deg, #FF9F0A, #FFD60A); }
.ae-title { font-family: "Anton", var(--font-display) !important; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; color: var(--white); margin: 10px 0 8px; }
.ae-sub { color: var(--cream); margin: 0; font-size: .95rem; max-width: 640px; }
.ae-log { display: grid; gap: 10px; margin: 16px 0 0; }
.ae-log:empty { display: none; }
.ae-msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: .95rem; line-height: 1.5; }
.ae-msg p { margin: 0 0 8px; color: inherit; }
.ae-msg p:last-child { margin-bottom: 0; }
.ae-you { justify-self: end; background: linear-gradient(90deg, #FF9F0A, #FFD60A); color: #1a0d00; border-bottom-right-radius: 6px; }
.ae-bot { justify-self: start; background: rgba(0,0,0,.32); border: 1px solid var(--hair, rgba(255,255,255,.1)); color: var(--cream); border-bottom-left-radius: 6px; }
.ae-err { border-color: rgba(255,138,128,.5); }
.ae-ts { font: inherit; font-size: .82rem; font-weight: 700; padding: 2px 9px; margin: 0 2px; border-radius: 999px; border: 1px solid rgba(237,138,45,.6); background: rgba(237,138,45,.14); color: var(--white); cursor: pointer; white-space: nowrap; vertical-align: baseline; }
.ae-ts:hover, .ae-ts:focus-visible { background: var(--orange, #ED8A2D); color: #1a0d00; }
.ae-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.ae-chips[hidden] { display: none; }
.ae-chip { font: inherit; font-size: .85rem; text-align: left; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--hair, rgba(255,255,255,.1)); background: rgba(255,255,255,.06); color: var(--white); cursor: pointer; }
.ae-chip:hover { border-color: var(--orange, #ED8A2D); }
.ae-form { display: flex; gap: 8px; margin: 16px 0 0; }
.ae-q { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--white); background: rgba(0,0,0,.35); border: 1px solid var(--hair, rgba(255,255,255,.1)); border-radius: 14px; padding: 13px 15px; }
.ae-q:focus { outline: none; border-color: #FF9F0A; }
.ae-send { flex: none; font: inherit; font-weight: 700; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; color: #1a0d00; background: linear-gradient(90deg, #FF9F0A, #FFD60A); }
.ae-send:disabled { opacity: .5; cursor: default; }
.ae-fine { margin: 10px 2px 0; font-size: .78rem; color: var(--ice); }
.ae-hp, .ae-sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ae-dots { display: flex; gap: 5px; padding: 4px 0; }
.ae-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); opacity: .4; animation: ae-dot 1s infinite ease-in-out; }
.ae-dots span:nth-child(2) { animation-delay: .15s; } .ae-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes ae-dot { 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ae-dots span { animation: none; opacity: .8; } }
[data-theme="light"] .ae { background: var(--charcoal); }
[data-theme="light"] .ae-bot, [data-theme="light"] .ae-q { background: rgba(10,26,46,.05); }
[data-theme="light"] .ae-chip { background: rgba(10,26,46,.04); }
@media (max-width: 560px) { .ae { padding: 18px 16px; } .ae-msg { max-width: 96%; } }
