/* Availability heuristic lesson. All rules scoped under .ah-* */

.ah-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ah-note { font-size: 12px; color: var(--faint); text-align: center; }

/* the race */
.ah-task { display: flex; align-items: baseline; gap: 12px; }
.ah-task b { font: 800 26px var(--serif); color: var(--gold); }
.ah-task span { font-size: 16px; color: var(--dim); }
.ah-task u { text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 3px; color: var(--text); }
.ah-clock { width: 100%; max-width: 320px; height: 10px; border-radius: 5px; background: var(--raised); overflow: hidden; }
.ah-clock i { display: block; width: 100%; height: 100%; background: var(--violet-bright); border-radius: 5px; transition: width .1s linear; }
.ah-tap { width: 150px; height: 150px; margin: 12px 0 22px; border-radius: 50%; border: 3px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 0 var(--line-strong); pointer-events: none; opacity: .6; }
.ah-tap.on { pointer-events: auto; opacity: 1; border-color: var(--gold); box-shadow: 0 6px 0 var(--gold-deep); cursor: pointer; }
.ah-tap.on:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-deep); }
.ah-tap b { font: 800 48px var(--mono); line-height: 1; }
.ah-tap span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }

/* your counts */
.ah-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.ah-pan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 26px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line-strong); text-align: center; overflow: hidden; }
.ah-pan small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.ah-pan b { font: 800 40px var(--mono); line-height: 1.1; }
.ah-pan span { font-size: 14px; color: var(--dim); line-height: 1.25; }
.ah-real { position: absolute; left: 0; bottom: 0; height: 10px; width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.ah-r1 { background: var(--dim); }
.ah-r3 { background: var(--gold); }
.ah-shown .ah-r1 { width: 45%; }
.ah-shown .ah-r3 { width: 100%; }
.choices.ah-opts { display: grid; grid-template-columns: 1fr 1fr; }

.ah-rule { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 2px solid var(--gold); }
.ah-rule span { font: 700 18px/1.2 var(--serif); text-align: center; }
.ah-rule b { font-size: 28px; color: var(--gold); }

/* the news */
.ah-news { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; }
.ah-risk { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.ah-risk small { grid-column: 1 / -1; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.ah-track { height: 16px; border-radius: 8px; background: var(--raised); overflow: hidden; }
.ah-track i { display: block; height: 100%; width: 0; border-radius: 8px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.ah-t { background: #8FA8E8; }
.ah-a { background: var(--gold); }
.ah-shown .ah-t { width: 2%; }
.ah-shown .ah-a { width: 100%; }
.ah-risk b { font: 800 15px var(--mono); opacity: 0; transition: opacity .4s .6s; min-width: 92px; text-align: right; }
.ah-shown .ah-risk b { opacity: 1; }

/* couples */
.ah-pie { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.ah-half { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 18px; background: var(--surface); border: 2px solid var(--violet-bright); text-align: center; }
.ah-h2 { border-color: var(--mint); }
.ah-half small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.ah-half b { font: 800 34px var(--mono); }
.ah-half span { font-size: 13px; color: var(--dim); }
.ah-sum { font-size: 16px; font-weight: 700; color: var(--dim); text-align: center; }
.ah-sum b { font: 800 24px var(--mono); color: var(--text); }
.ah-sum small { display: block; font-size: 12px; font-weight: 400; color: var(--faint); text-align: center; }
.ah-over .ah-sum b { color: #F07A7E; }
/* pictures */
.ah-pic { width: 100%; display: flex; justify-content: center; }
.ah-pic img { height: 120px; max-width: 100%; object-fit: contain; display: block; }
@media (max-height: 700px) { .ah-tap { width: 124px; height: 124px; } .ah-tap b { font-size: 40px; } .ah-pic img { height: 54px; } .ah-half { padding: 6px; gap: 0; } .ah-half b { font-size: 28px; } }
.ah-wd u { text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
