/* AptorDaft additions on top of the ASL design system. Tokens (colors, radius, fonts)
   come from /asl-design-system.css; nothing here redefines them. */
@font-face{font-family:"Inter";src:url(/fonts/asl_inter.ttf) format("truetype");font-weight:100 900;font-display:swap}

.ad-main{padding:2.2rem 0 3rem;min-height:62vh}
.ad-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.8rem;margin:0 0 1.4rem}
.ad-head h1{font-size:clamp(1.6rem,3.4vw,2.3rem);margin:0;letter-spacing:-.02em}
.ad-head p{margin:.3rem 0 0;color:var(--muted)}
.ad-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.1rem}
.ad-stack{display:grid;gap:1.1rem}
.ad-gap{margin-top:1.4rem}
.ad-row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.ad-hidden{display:none !important}
.ad-narrow{max-width:46rem;margin-inline:auto}

.ad-score{font-size:clamp(2.6rem,8vw,4.4rem);font-weight:850;letter-spacing:-.03em;line-height:1;color:var(--text)}
.ad-score small{font-size:.32em;font-weight:650;color:var(--muted);letter-spacing:0;margin-left:.5rem}
.ad-standing{font-size:1.5rem;font-weight:800;color:var(--text)}
.ad-standing small{font-size:.62em;font-weight:600;color:var(--muted);margin-left:.35rem}

.ad-prompt{font-size:clamp(1.25rem,3.2vw,1.9rem);font-weight:700;line-height:1.35;margin:.6rem 0 1.2rem;color:var(--text)}
.ad-prompt p,.panel .ad-prompt p{margin:.25rem 0;color:var(--text)}
.ad-prompt .ad-concl,.panel .ad-prompt .ad-concl{color:var(--ice);margin-top:.8rem}
.ad-question{color:var(--muted);margin:0 0 .8rem}
.ad-timer{height:6px;border-radius:999px;background:var(--line-soft);overflow:hidden;margin:.4rem 0 1.2rem}
.ad-timer > i{display:block;height:100%;width:100%;background:var(--cyan);transform-origin:left center}
.ad-timer.low > i{background:var(--amber)}
.ad-answer{display:flex;gap:.7rem;flex-wrap:wrap;align-items:stretch}
.ad-answer input{box-sizing:border-box;max-width:100%;flex:1 1 12rem;min-width:0;padding:.85rem 1rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--navy);color:var(--text);font:700 1.3rem var(--font)}
.ad-answer input:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px rgba(76,154,255,.15)}
.ad-choice{display:grid;gap:.6rem;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));width:100%}
.ad-choice .btn{min-height:56px;font-size:1.02rem}

.ad-table{width:100%;border-collapse:collapse;font-size:.95rem}
.ad-table th,.ad-table td{text-align:left;padding:.6rem .8rem;border-bottom:1px solid var(--line-soft);vertical-align:top}
.ad-table th{color:var(--dim);font-size:.74rem;text-transform:uppercase;letter-spacing:.1em}
.ad-table td.num,.ad-table th.num{text-align:right;font-variant-numeric:tabular-nums}
.ad-chart{width:100%;height:auto;display:block}
.ad-chart text{fill:var(--muted);font:600 12px var(--font)}
.ad-chart .cut{stroke:var(--line);stroke-dasharray:4 5}
.ad-chart .bar{stroke:var(--ice);stroke-width:2}
.ad-chart .dot{fill:var(--cyan)}
.ad-chart .path{fill:none;stroke:var(--cyan);stroke-width:2}
.ad-code{font:800 2.4rem var(--mono);letter-spacing:.3em;color:var(--ice)}
.ad-mono{font-family:var(--mono);font-size:.82rem;word-break:break-all;white-space:pre-wrap;color:var(--muted)}
.ad-user{color:var(--muted);font-size:.9rem;padding:.5rem .4rem}
.ad-linkbtn{background:none;border:0;color:var(--muted);font:650 .92rem var(--font);padding:.5rem .8rem;border-radius:999px;cursor:pointer}
.ad-linkbtn:hover{color:var(--text);background:rgba(255,255,255,.05)}
.ad-field{display:grid;gap:.35rem;font-weight:650;font-size:.92rem;color:var(--text)}
.ad-check{display:flex;gap:.6rem;align-items:flex-start;color:var(--muted);font-size:.95rem}
.ad-check input{width:1.15rem;height:1.15rem;margin-top:.15rem;flex:none}
.ad-select{padding:.45rem .6rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--navy);color:var(--text);font:600 .9rem var(--font)}
.ad-danger{border-color:rgba(255,120,120,.45) !important;color:#ffb4b4 !important}

/* Sign in with Auto Secure Login button, from the platform's button kit. */
.asl-signin{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 22px;border-radius:11px;background:#0b1a33;border:1px solid #25406e;color:#edf7ff;font:700 16px/1.2 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none;cursor:pointer}
.asl-signin:hover,.asl-signin:focus-visible{border-color:#4c9aff;background:#10244a;outline:none}
.asl-signin img{width:20px;height:20px;flex:none}

@media(max-width:640px){
  .ad-main{padding-top:1.4rem}
  .ad-code{font-size:1.8rem;letter-spacing:.2em}
  .ad-table th,.ad-table td{padding:.5rem .5rem}
}
@media(prefers-reduced-motion:reduce){.ad-timer > i{transition:none}}
