/* Typing category cards and test selection page */
.typing-page-intro { margin-bottom: 1.25rem; }
.eyebrow { display: inline-block; color: var(--accent-blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .45rem; }
.typing-page-title { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--primary-blue); margin-bottom: .4rem; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.category-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: white; border: 1px solid var(--border-color); border-radius: 16px; text-decoration: none; color: var(--text-main); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.category-card:hover, .category-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-blue); outline: none; }
.category-thumb { min-height: 145px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #eff6ff 55%, #bfdbfe); }
.category-thumb::before, .category-thumb::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); }
.category-thumb::before { width: 145px; height: 145px; right: -28px; top: -46px; }
.category-thumb::after { width: 90px; height: 90px; left: -24px; bottom: -38px; }
.category-symbol { position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: rgba(255,255,255,.8); box-shadow: 0 8px 20px rgba(15,76,129,.12); font-size: 2.2rem; }
.category-card:nth-child(3n+2) .category-thumb { background: linear-gradient(135deg, #dcfce7, #f0fdf4 55%, #bbf7d0); }
.category-card:nth-child(3n) .category-thumb { background: linear-gradient(135deg, #fef3c7, #fffbeb 55%, #fde68a); }
.category-copy { padding: 1.1rem 1.15rem 1.2rem; }
.category-copy h2 { color: var(--primary-blue); font-size: 1.1rem; margin-bottom: .45rem; }
.category-copy p { color: var(--text-muted); font-size: .9rem; min-height: 2.7em; }
.category-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1rem; margin-top: .85rem; border-top: 1px solid #e2e8f0; font-size: .85rem; font-weight: 700; color: var(--accent-blue); }
.category-count { color: var(--text-muted); font-weight: 500; }
.test-list-heading { margin-bottom: 1rem; }
.test-list-heading .card-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.back-link { display: inline-block; color: var(--accent-blue); text-decoration: none; font-weight: 700; margin: .25rem 0 1rem; }
.back-link:hover { text-decoration: underline; }
.test-list { display: grid; gap: .85rem; }
.test-row { display: grid; grid-template-columns: 54px minmax(180px, 1.1fr) minmax(200px, 1.4fr) auto; gap: 1rem; align-items: center; padding: 1.15rem; border: 1px solid var(--border-color); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.test-number { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--light-blue); color: var(--primary-blue); font-weight: 800; }
.test-row-copy h2 { font-size: 1.05rem; margin-bottom: .3rem; }
.test-row-copy p, .test-meta { color: var(--text-muted); font-size: .85rem; }
.test-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.test-start { white-space: nowrap; }
.loading-card { padding: 1.5rem; border: 1px dashed var(--border-color); border-radius: 12px; background: white; color: var(--text-muted); }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .test-row { grid-template-columns: 48px minmax(0, 1fr) auto; } .test-meta { grid-column: 2 / 3; } .test-start { grid-column: 3; grid-row: 1 / span 2; } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } .category-thumb { min-height: 125px; } .test-row { grid-template-columns: 42px minmax(0,1fr); gap: .7rem; } .test-number { width: 38px; height: 38px; } .test-meta { grid-column: 1 / -1; padding-left: .1rem; } .test-start { grid-column: 1 / -1; grid-row: auto; width: 100%; } }

.category-card-self .category-thumb { background:#eaf1f7; }
.category-card-self .category-symbol { color:#174f7c; background:#fff; }
.category-card-self { border-color:#c8d8e6; }

/* Modern test-library polish — visual-only, no access-policy changes */
.typing-page-intro{position:relative;isolation:isolate;overflow:hidden;padding:clamp(24px,4vw,42px);margin:1rem 0 1.5rem;border:1px solid #dbeafe;border-radius:24px;background:radial-gradient(circle at 88% 8%,rgba(129,140,248,.2),transparent 32%),linear-gradient(120deg,#fff 0%,#f5f8ff 60%,#eef7ff 100%);box-shadow:0 14px 34px rgba(30,64,175,.07)}
.typing-page-intro:after{content:"⌨";position:absolute;right:clamp(16px,5vw,60px);top:50%;transform:translateY(-50%) rotate(-8deg);font-size:clamp(4rem,9vw,7rem);font-weight:800;color:rgba(79,70,229,.08);pointer-events:none;z-index:-1}
.typing-page-intro .typing-page-title{max-width:780px;font-size:clamp(1.8rem,4vw,2.75rem);line-height:1.12;letter-spacing:-.045em;color:#172554}
.typing-page-intro .form-help{max-width:680px;line-height:1.7;font-size:1rem}
.typing-page-intro .eyebrow{padding:7px 11px;border:1px solid #c7d2fe;border-radius:999px;background:rgba(255,255,255,.8);color:#4f46e5}
.category-grid{gap:1rem}
.category-card{border-color:#e0e7ff;border-radius:18px;box-shadow:0 6px 18px rgba(15,23,42,.045)}
.category-card:hover,.category-card:focus-visible{transform:translateY(-4px);border-color:#a5b4fc;box-shadow:0 18px 32px rgba(79,70,229,.11)}
.category-thumb{min-height:132px;background:radial-gradient(circle at 80% 15%,rgba(255,255,255,.9),transparent 30%),linear-gradient(135deg,#dbeafe,#eef2ff 58%,#e0e7ff)}
.category-card:nth-child(3n+2) .category-thumb{background:radial-gradient(circle at 80% 15%,rgba(255,255,255,.9),transparent 30%),linear-gradient(135deg,#d1fae5,#ecfdf5 58%,#dbeafe)}
.category-card:nth-child(3n) .category-thumb{background:radial-gradient(circle at 80% 15%,rgba(255,255,255,.9),transparent 30%),linear-gradient(135deg,#fef3c7,#fff7ed 58%,#fae8ff)}
.category-symbol{border:1px solid rgba(255,255,255,.9);border-radius:23px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);color:#4338ca}
.category-copy{padding:1.15rem 1.2rem 1.25rem}
.category-copy h2{font-size:1.12rem;letter-spacing:-.02em;color:#172554}
.category-copy p{line-height:1.65}
.category-foot{color:#4f46e5}
.category-count{padding:5px 9px;border:1px solid #e0e7ff;border-radius:999px;background:#f8faff;color:#475569;font-size:.78rem}
.test-list-heading{padding:clamp(20px,3vw,30px);border:1px solid #e0e7ff;border-radius:20px;background:radial-gradient(circle at 95% 0%,rgba(129,140,248,.13),transparent 32%),linear-gradient(135deg,#fff,#f8faff);box-shadow:0 10px 28px rgba(15,23,42,.045)}
.test-list-heading .card-title{color:#172554;letter-spacing:-.035em}
.back-link{padding:7px 0}
.test-list{gap:.8rem}
.test-row{grid-template-columns:52px minmax(180px,1.1fr) minmax(200px,1.4fr) auto;gap:1rem;padding:1rem 1.1rem;border-color:#e0e7ff;border-radius:16px;box-shadow:0 5px 16px rgba(15,23,42,.035);transition:transform .16s,border-color .16s,box-shadow .16s}
.test-row:hover{transform:translateY(-2px);border-color:#a5b4fc;box-shadow:0 12px 24px rgba(79,70,229,.08)}
.test-number{width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#4f46e5,#9333ea);color:#fff;box-shadow:0 6px 14px rgba(79,70,229,.2)}
.test-row-copy h2{color:#172554;letter-spacing:-.015em}
.test-meta{gap:.45rem .6rem}
.test-meta span{padding:5px 8px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#475569;font-size:.78rem}
.test-start{border-radius:12px;box-shadow:0 6px 14px rgba(37,99,235,.14)}
.loading-card{border-style:solid;border-color:#e0e7ff;border-radius:16px;background:linear-gradient(135deg,#fff,#f8faff)}
@media(max-width:900px){.test-row{grid-template-columns:48px minmax(0,1fr) auto}.test-meta{grid-column:2 / 3}.test-start{grid-column:3;grid-row:1 / span 2}}
@media(max-width:600px){.typing-page-intro{padding:22px 18px;border-radius:18px}.typing-page-intro:after{right:12px;top:22px;transform:none;font-size:4rem}.typing-page-intro .form-help{max-width:90%;font-size:.93rem}.test-row{padding:14px;border-radius:14px}.test-meta span{font-size:.74rem}.test-start{width:100%}}
@media(prefers-reduced-motion:reduce){.category-card,.test-row{transition:none}.category-card:hover,.test-row:hover{transform:none}}
