/* Scoped compact category tiles; homepage only. */
.subject-grid.compact-category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.subject-card.category-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:170px;padding:22px 19px 20px;border:1px solid var(--line);border-radius:15px;text-decoration:none;background:var(--surface);transition:border-color .15s,box-shadow .15s}.subject-card.category-tile:hover{border-color:var(--tone);box-shadow:0 5px 20px #33204409}.subject-card.category-tile:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.tile-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--tint);color:var(--tone);margin-bottom:16px}.tile-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tile-copy{min-width:0}.tile-copy h3{font-size:16px;line-height:1.3;font-weight:700;margin:0 0 7px;letter-spacing:-.3px}.tile-description{display:block;font-size:12px;line-height:1.5;color:var(--muted);max-width:175px}.tile-arrow{position:absolute;right:15px;top:17px;color:#a294b1;font-size:16px}.subject-card.category-tile[data-color=sage]{--tone:#007f65;--tint:#e5f4ed}.subject-card.category-tile[data-color=blue]{--tone:#2452cf;--tint:#eaf0ff}.subject-card.category-tile[data-color=violet]{--tone:#8724cf;--tint:#f3eafa}.subject-card.category-tile[data-color=sand]{--tone:#9d5800;--tint:#fff1db}.subject-card.category-tile[data-color=aqua]{--tone:#007e85;--tint:#e3f4f3}.subject-card.category-tile[data-color=rose]{--tone:#c01769;--tint:#fce7f1}.subject-card.category-tile[data-color=peach]{--tone:#cb3e20;--tint:#ffebe5}.subject-card.category-tile[data-color=yellow]{--tone:#8d6600;--tint:#fff4c4}.subject-card.category-tile{--tone:#7524c7;--tint:#f1e8fb}
.subject-grid.compact-category-grid .subject-card.category-tile{opacity:1;transform:none;height:auto;color:var(--ink);overflow:visible}.subject-card.category-tile .tile-description{font-family:system-ui,sans-serif}.subject-card.category-tile h3{font-family:system-ui,sans-serif}
@media(max-width:1099px){.subject-grid.compact-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-card.category-tile{min-height:108px;flex-direction:row;align-items:center;gap:16px;padding:20px}.subject-card.category-tile .tile-icon{margin:0}.subject-card.category-tile .tile-copy{padding-right:20px}.subject-card.category-tile .tile-description{max-width:none}.subject-card.category-tile .tile-arrow{top:21px}}
@media(max-width:599px){.subject-grid.compact-category-grid{gap:10px}.subject-card.category-tile{min-height:108px;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;padding:14px}.subject-card.category-tile .tile-icon{width:34px;height:34px;border-radius:10px}.subject-card.category-tile .tile-icon svg{width:23px;height:23px}.subject-card.category-tile .tile-copy{padding:0}.subject-card.category-tile h3{font-size:14px;margin:0;line-height:1.3}.subject-card.category-tile .tile-description{display:none}.subject-card.category-tile .tile-arrow{font-size:14px;top:11px;right:12px}}
@media(prefers-reduced-motion:reduce){.subject-card.category-tile{transition:none!important}}
@media(max-width:900px){.site-header .header-row{flex-wrap:wrap;row-gap:12px}}
