/* ask page styles (design: Ask.dc.html) */
.ask-hero { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; border-top: var(--rule-hero); }
.ask-hero-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px 48px; align-items: end; }
.ask-hero-top p { margin: 0 0 4px; max-width: 460px; color: var(--ink-2); }
.ask-form { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 32px; padding: 8px 8px 8px 24px; }
.ask-form input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font-size: 16px; outline-offset: 4px; }
.ask-form input::placeholder { color: var(--ink-3); opacity: 1; }
.ask-form button { flex: none; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 20px; border: 0; border-radius: 24px; background: var(--accent); color: #fff; font-weight: 500; cursor: pointer; }
.ask-form button:hover { background: var(--accent-deep); }
.ask-form .badge-arrow { width: 32px; height: 32px; }

.ask-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.ask-answer { flex: 3 1 520px; min-width: 0; background: var(--surface); border-radius: var(--radius-card); padding: 28px 32px; }
.ask-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.ask-q { margin: 6px 0 20px; font: 500 22px/1.25 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ask-q .muted { color: var(--ink-display-grey); }
.ask-lead { font-size: 15px; margin: 0; }
.ask-lead p { margin: 0; }
.ask-lead p + p, .ask-lead p + ul, .ask-lead p + ol, .ask-lead ul + p, .ask-lead ol + p { margin-top: 10px; }
.ask-lead ul, .ask-lead ol { margin: 0; padding-left: 20px; }
p.ask-lead { color: var(--ink-2); }
.ask-ent { color: var(--accent); font-weight: 600; }
.ask-ent:hover { text-decoration: underline; }

/* numbered blocks: 01 quiet, 02 blue, the rest outlined */
.ask-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 20px; }
.ask-blocks.more { margin-top: 12px; }
.ask-block { border-radius: var(--radius-tile-l); padding: 18px 20px; min-width: 0; }
.ask-block.sunken { background: var(--surface-sunken); }
.ask-block.hot { background: var(--accent); color: #fff; }
.ask-block.outline { border: 1px solid var(--ink); padding: 16px 20px; }
.ask-rest { margin-top: 20px; }
.ask-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ask-block-head h3 { margin: 0; font: 600 16px/1.25 var(--font-display); overflow-wrap: anywhere; }
.ask-block-head .no { flex: none; font: 500 14px/1 var(--font-display); color: var(--ink-3); }
.ask-block.hot .no { color: rgba(255, 255, 255, 0.85); }
.ask-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.ask-block.hot .ask-note { color: rgba(255, 255, 255, 0.88); }
.ask-prose { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.ask-block.hot .ask-prose { color: #fff; }
.ask-prose p { margin: 8px 0 0; }
.ask-prose > ul, .ask-prose > ol { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.ask-prose li ul { margin: 6px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.ask-rest .ask-prose > :first-child { margin-top: 0; }
.ask-prose strong, .ask-lead strong { font-weight: 600; }
.ask-block:not(.hot) .ask-prose strong { color: var(--ink); }

.ask-sources { margin-top: 24px; padding-top: 16px; border-top: var(--rule-hero); }
.ask-sources .eyebrow { margin-bottom: 6px; }
.ask-sources ul { margin: 0; padding: 0; list-style: none; }
.ask-sources li { display: flex; flex-wrap: wrap; gap: 0 12px; justify-content: space-between; padding: 8px 0; border-bottom: 1px dotted var(--border); overflow-wrap: anywhere; }
.ask-sources li a { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ask-sources li a:hover { text-decoration-thickness: 2px; }
.ask-sources .kind { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.ask-nosrc { margin: 0; color: var(--ink-2); }
.ask-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 13px; }
.ask-meta .btn { color: var(--ink); font-size: 14px; padding: 0 18px; }
.ask-meta .btn:hover { background: var(--surface-sunken); }
.ask-copy { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; }
.ask-copied { color: var(--ink-2); }
.ask-copied.bad { color: var(--risk-soft-label); }

/* waiting for the agent */
.ask-wait { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-tile-l); background: var(--surface-sunken); }
.ask-wait b { display: block; font-weight: 600; }
.ask-wait-sub { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.ask-pulse { flex: none; display: inline-flex; gap: 4px; padding-top: 7px; }
.ask-pulse i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ask-pulse 1.4s ease-in-out infinite; }
.ask-pulse i:nth-child(2) { animation-delay: 0.2s; } .ask-pulse i:nth-child(3) { animation-delay: 0.4s; }
@keyframes ask-pulse { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.ask-skel { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.ask-skel i { display: block; height: 12px; border-radius: 6px; background: var(--surface-sunken); }
.ask-skel i:nth-child(1) { width: 92%; } .ask-skel i:nth-child(2) { width: 78%; } .ask-skel i:nth-child(3) { width: 85%; } .ask-skel i:nth-child(4) { width: 40%; }
@media (prefers-reduced-motion: reduce) { .ask-pulse i { animation: none; opacity: 0.7; } }
.ask-answer .error { margin: 0; }

/* side column */
.ask-try { background: var(--surface); border-radius: var(--radius-card); padding: 22px 24px; }
.ask-try h2 { margin: 0 0 10px; font-weight: 500; }
.ask-sgs { display: flex; flex-direction: column; gap: 6px; }
.ask-sg { min-height: 44px; padding: 10px 14px; border: 0; border-radius: var(--radius-tile); background: var(--surface-sunken); color: var(--ink); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.ask-sg:hover { background: var(--surface-column); }
.ask-limits { border: 1px solid var(--ink); border-radius: var(--radius-card); padding: 20px 24px; }
.ask-limits h2 { margin: 0 0 6px; font: 600 16px/1.25 var(--font-display); }
.ask-limits p { margin: 0; color: var(--ink-2); font-size: 13px; }
.ask-limits a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 520px) {
  .ask-answer { padding: 22px 20px; }
  .ask-form { padding-left: 18px; }
  .ask-form button { padding-left: 16px; }
}
