/* FactBurst quiz category directory */
.categories-page{padding:28px 0 60px;color:var(--color-text);--cat-ink:#102b4d;--cat-muted:#55718d;--cat-line:#d8e8f3;--cat-teal:#079cbd}
.categories-page .categories-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(380px,.9fr);align-items:center;gap:30px;padding:clamp(28px,4vw,52px) clamp(28px,4.5vw,66px);border:1px solid #d6eaf5;border-radius:25px;background:linear-gradient(115deg,#f1faff 0%,#f8fcff 52%,#d9f3ff 100%);box-shadow:0 15px 40px rgba(25,75,105,.07)}
.categories-page .categories-hero:before{content:"";position:absolute;z-index:-1;right:-100px;top:-250px;width:440px;height:440px;border:1px solid #b3e5f7;border-radius:50%;box-shadow:0 0 0 38px rgba(105,205,240,.12),0 0 0 82px rgba(105,205,240,.09)}
.categories-page .eyebrow{margin:0 0 12px;color:#0786ae;font-size:11px;font-weight:900;letter-spacing:.19em;text-transform:uppercase}
.categories-page .categories-hero h1{max-width:830px;margin:0;color:var(--cat-ink);font-size:clamp(36px,4.15vw,59px);font-weight:900;line-height:1.05;letter-spacing:-.06em}
.categories-page .categories-hero h1 span{color:#0798bc}
.categories-page .categories-hero-copy>p:last-child{max-width:760px;margin:18px 0 0;color:#456583;font-size:17px;line-height:1.7}
.categories-page .categories-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-self:stretch;align-items:stretch}
.categories-page .categories-stats>div{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:17px 8px;border:1px solid #cfe5f3;border-radius:17px;background:rgba(255,255,255,.9);text-align:center}
.categories-page .categories-stat-icon{display:grid;place-items:center;min-height:37px;font-size:32px;line-height:1}
.categories-page .categories-stat-icon.question{width:39px;height:39px;min-height:39px;border-radius:50%;background:#27a8e4;color:#fff;font-size:26px;font-weight:900}
.categories-page .categories-stat-icon.trophy{color:#ffb300}
.categories-page .categories-stats small{margin-top:2px;color:#58728c;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.categories-page .categories-stats strong{color:var(--cat-ink);font-size:clamp(23px,2.5vw,32px);font-weight:900;line-height:1;letter-spacing:-.045em}
.categories-page .categories-stats em{color:#4c6a88;font-size:13px;font-style:normal}
.categories-page .categories-browser{display:grid;grid-template-columns:minmax(250px,1fr) auto;gap:16px;align-items:center;margin-top:24px}
.categories-page .categories-search{display:flex;align-items:center;gap:14px;min-width:0;min-height:55px;padding:0 20px;border:1px solid #dce9f3;border-radius:99px;background:#fff;box-shadow:0 6px 20px rgba(25,75,105,.035)}
.categories-page .categories-search>span{color:#294966;font-size:30px;line-height:1;transform:rotate(-20deg)}
.categories-page .categories-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--cat-ink);font:inherit;font-size:15px}
.categories-page .categories-search input::placeholder{color:#617c96}
.categories-page .categories-search:focus-within{border-color:#75cde5;box-shadow:0 0 0 3px rgba(7,156,189,.1)}
.categories-page .categories-sort{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.categories-page .categories-sort button{min-height:47px;padding:10px 19px;border:1px solid #dce9f3;border-radius:99px;background:#fff;color:#58728c;font:inherit;font-size:13px;font-weight:800;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.categories-page .categories-sort button:hover{border-color:#8cd6e8;color:#087fa4}
.categories-page .categories-sort button.active{border-color:#079cbd;background:linear-gradient(100deg,#0798bd,#0cb8cf);color:#fff;box-shadow:0 5px 12px rgba(7,156,189,.12)}
.categories-page .categories-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:20px}
.categories-page .category-tile{display:flex;min-width:0;flex-direction:column;padding:18px;border:1px solid #dceaf4;border-radius:20px;background:rgba(255,255,255,.95);box-shadow:0 8px 24px rgba(19,45,73,.035);transition:transform .16s,border-color .16s,box-shadow .16s}
.categories-page .category-tile:hover{transform:translateY(-2px);border-color:#b9deef;box-shadow:0 13px 30px rgba(19,45,73,.07)}
.categories-page .category-tile[hidden]{display:none!important}
.categories-page .category-tile-top{display:grid;grid-template-columns:90px minmax(0,1fr);gap:15px;align-items:center;min-height:91px}
.categories-page .category-tile-icon{display:grid;place-items:center;width:90px;height:90px;border-radius:16px;font-size:44px;line-height:1}
.categories-page .category-tile-icon.blue,.categories-page .category-tile-icon.sky{background:linear-gradient(145deg,#35b7f4,#168ee3)}
.categories-page .category-tile-icon.amber,.categories-page .category-tile-icon.orange{background:linear-gradient(145deg,#ffcb70,#f5a83d)}
.categories-page .category-tile-icon.violet{background:linear-gradient(145deg,#b17bff,#8050e9)}
.categories-page .category-tile-icon.green,.categories-page .category-tile-icon.lime{background:linear-gradient(145deg,#71dc94,#38bd68)}
.categories-page .category-tile-icon.pink{background:linear-gradient(145deg,#ff76b8,#f34895)}
.categories-page .category-tile-copy{min-width:0}
.categories-page .category-tile h2{margin:0 0 7px;color:var(--cat-ink);font-size:clamp(17px,1.45vw,22px);font-weight:900;line-height:1.12;letter-spacing:-.04em;overflow-wrap:anywhere}
.categories-page .category-tile-copy p{display:-webkit-box;overflow:hidden;margin:0;color:var(--cat-muted);font-size:13px;line-height:1.55;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.categories-page .category-tile-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;margin:20px 0 15px;color:#456582;font-size:12px;font-weight:800}
.categories-page .category-tile-meta span{display:flex;align-items:center;gap:6px}
.categories-page .category-tile-meta b{display:inline-grid;place-items:center;color:#079fc7;font-size:16px}
.categories-page .category-tile-meta span:last-child b{width:19px;height:19px;border-radius:50%;background:#e6f1f8;color:#5a7894;font-size:12px}
.categories-page .category-tile-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:49px;margin-top:auto;padding:10px 13px;border:0;border-radius:12px;background:linear-gradient(100deg,#0798bd,#0bb7cf);color:#fff;font-size:14px;font-weight:850;text-align:center;text-decoration:none;transition:filter .15s,box-shadow .15s}
.categories-page .category-tile-button:hover{filter:brightness(1.04);box-shadow:0 6px 16px rgba(7,156,189,.18)}
.categories-page .category-tile-button span{font-size:12px}
.categories-page .categories-empty{max-width:1240px;margin:25px auto;padding:25px;border:1px dashed #cbdfea;border-radius:16px;color:var(--cat-muted);text-align:center}
.categories-page .categories-empty.hidden{display:none}
.categories-page .categories-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:28px;padding:22px 25px;border:1px solid #dceaf4;border-radius:18px;background:linear-gradient(120deg,#f5fbff,#eaf8ff)}
.categories-page .categories-footer p{margin:0;color:var(--cat-ink);font-size:18px;font-weight:850}
@media(max-width:1180px){.categories-page .categories-hero{grid-template-columns:1fr}.categories-page .categories-stats{max-width:600px}.categories-page .categories-browser{grid-template-columns:1fr}.categories-page .categories-sort{justify-content:flex-start}.categories-page .categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.categories-page{padding-top:20px}.categories-page .categories-hero{gap:22px;padding:25px 20px;border-radius:20px}.categories-page .categories-hero h1{font-size:clamp(33px,8.7vw,45px)}.categories-page .categories-hero-copy>p:last-child{font-size:15px}.categories-page .categories-stats{gap:6px}.categories-page .categories-stats>div{gap:6px;padding:13px 4px;border-radius:12px}.categories-page .categories-stat-icon{min-height:30px;font-size:25px}.categories-page .categories-stat-icon.question{width:31px;height:31px;min-height:31px;font-size:22px}.categories-page .categories-stats small{font-size:8px;letter-spacing:.04em}.categories-page .categories-stats strong{font-size:22px}.categories-page .categories-stats em{font-size:10px}.categories-page .categories-browser{gap:12px;margin-top:16px}.categories-page .categories-search{min-height:50px;padding:0 15px}.categories-page .categories-sort{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.categories-page .categories-sort button{min-height:42px;padding:8px 9px;font-size:12px}.categories-page .categories-grid{grid-template-columns:1fr;gap:10px;margin-top:14px}.categories-page .category-tile{padding:15px;border-radius:16px}.categories-page .category-tile-top{grid-template-columns:72px minmax(0,1fr);gap:13px;min-height:72px}.categories-page .category-tile-icon{width:72px;height:72px;border-radius:13px;font-size:35px}.categories-page .category-tile h2{font-size:19px}.categories-page .category-tile-copy p{font-size:13px;-webkit-line-clamp:2}.categories-page .category-tile-meta{margin:14px 0 12px;font-size:11px}.categories-page .category-tile-button{min-height:45px;font-size:13px}.categories-page .categories-footer{align-items:flex-start;flex-direction:column;padding:18px}.categories-page .categories-empty{margin-inline:15px}}
@media(prefers-reduced-motion:reduce){.categories-page *{transition:none!important}}

/* Improve category card readability: three spacious columns avoid awkward word breaks. */
.categories-page .categories-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.categories-page .category-tile{padding:20px}
.categories-page .category-tile-top{grid-template-columns:82px minmax(0,1fr);gap:16px}
.categories-page .category-tile-icon{width:82px;height:82px;font-size:40px}
.categories-page .category-tile h2{font-size:clamp(18px,1.55vw,22px);overflow-wrap:normal;word-break:normal;hyphens:auto}
.categories-page .category-tile-copy{min-width:0}
.categories-page .category-tile-copy p{overflow-wrap:break-word}
@media(max-width:1180px){.categories-page .categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.categories-page .categories-grid{grid-template-columns:1fr}.categories-page .category-tile{padding:15px}.categories-page .category-tile-top{grid-template-columns:72px minmax(0,1fr);gap:13px}.categories-page .category-tile-icon{width:72px;height:72px;font-size:35px}.categories-page .category-tile h2{font-size:19px}}

/* Compact category actions: keep them secondary to the category content. */
.categories-page .category-tile-button{align-self:flex-start;width:auto;min-width:0;min-height:38px;padding:9px 16px;border-radius:9px;font-size:13px;gap:7px}
.categories-page .category-tile-button span{font-size:11px}
@media(max-width:650px){.categories-page .category-tile-button{min-height:36px;padding:8px 13px;font-size:12px}}
