/* Automaticity lesson. All rules scoped under .aut-* */
.aut-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.aut-hero img { width: 320px; max-width: 100%; max-height: 32vh; object-fit: contain; display: block; filter: drop-shadow(0 18px 30px rgba(123,92,253,.35)); }
.aut-note { font-size: 13px; color: var(--dim); text-align: center; }

/* ---------- the color test ---------- */
.aut-card { width: 100%; height: 170px; border-radius: 20px; background: #EAE3D7; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .12s; }
.aut-card b { font: 800 52px var(--sans); letter-spacing: .04em; }
.aut-card i { display: block; width: 150px; height: 64px; border-radius: 14px; }
.aut-card.aut-in > * { animation: aut-pop .12s ease-out; }
.aut-card.aut-ok { box-shadow: inset 0 0 0 4px var(--mint); }
@keyframes aut-pop { from { transform: scale(.82); opacity: .2; } to { transform: none; opacity: 1; } }
.aut-count { font: 600 14px var(--mono); color: var(--dim); }
.aut-pads { display: flex; gap: 12px; width: 100%; }
.aut-pad { flex: 1; height: 76px; border: 0; border-radius: 18px; box-shadow: 0 5px 0 rgba(0,0,0,.45); cursor: pointer; }
.aut-pad:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }

.aut-bars { width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 6px 2px; }
.aut-brow { display: grid; grid-template-columns: 80px 1fr auto; column-gap: 10px; align-items: center; }
.aut-brow span { font-size: 15px; font-weight: 700; }
.aut-brow > div { height: 22px; border-radius: 11px; background: var(--surface); overflow: hidden; }
.aut-brow i { display: block; height: 100%; width: 0; border-radius: 11px; transition: width .9s cubic-bezier(.3,.7,.3,1); }
.aut-brow b { font: 600 15px var(--mono); color: var(--text); min-width: 0; }

/* ---------- named ---------- */
.aut-flow { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px 0; }
.aut-fnode { flex: 1; min-width: 0; max-width: 110px; height: 104px; border-radius: 18px; background: var(--raised); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 6px; }
.aut-fnode b { font: 800 20px var(--sans); }
.aut-fnode:first-child { background: #EAE3D7; }
.aut-fnode:first-child span { color: #4a4540; }
.aut-fnode span { font-size: 13px; font-weight: 700; color: var(--dim); line-height: 1.2; }
.aut-auto { box-shadow: inset 0 0 0 2px var(--gold); }
.aut-auto b { color: var(--gold); }
.aut-hold { color: var(--mint); }
.aut-arrow { display: block; width: 18px; height: 3px; background: var(--gold); position: relative; border-radius: 2px; flex: none; }
.aut-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--gold); border-right: 0; }

/* ---------- readers, shapes ---------- */
.aut-col { width: 46px; height: 110px; border-radius: 10px; background: var(--surface); display: flex; align-items: flex-end; overflow: hidden; margin-top: 6px; }
.aut-col i { display: block; width: 100%; height: 0; background: var(--red); border-radius: 10px; transition: height .9s cubic-bezier(.3,.7,.3,1); }
.aut-shapes { display: flex; gap: 10px; width: 100%; justify-content: center; }
.aut-shape { flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--raised); border-radius: 16px; padding: 12px 6px; }
.aut-shape svg { width: 64px; height: 64px; }
.aut-shape span { font-size: 13px; color: var(--dim); text-align: center; line-height: 1.25; }
.aut-shape span b { color: var(--text); }
.aut-shtest { display: flex; gap: 16px; width: 100%; align-items: center; justify-content: center; }
.aut-shape.big { max-width: 150px; }
.aut-shape.big svg { width: 84px; height: 84px; }
.aut-days { display: flex; gap: 12px; }
.aut-days > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.aut-days span { font-size: 13px; font-weight: 700; color: var(--dim); }

/* ---------- the drive ---------- */

@media (max-height: 700px) {
  .aut-card { height: 130px; }
  .aut-card b { font-size: 44px; }
  .aut-hero img { max-height: 26vh; }
  .aut-col { height: 80px; }
}
