/* Homepage refinements, 11 October 2026. Shared card actions and footer. */
:root{--action-warm:#ffc47b;--action-warm-hover:#ffd59c;--on-action-warm:#422610}
:root[data-theme=light]{--action-warm:#f5b65f;--action-warm-hover:#ffca83;--on-action-warm:#3d240f}
.category-card .card-action,.school-body .card-action,.format-choice .card-action,.tool-body .card-action{background:linear-gradient(180deg,var(--action-warm-hover),var(--action-warm));border:1px solid #f8cc9070;color:var(--on-action-warm);font-weight:650;font-size:13px;text-align:center;min-height:48px;padding:12px 16px;border-radius:13px;box-shadow:inset 0 1px 0 #fff7,0 5px 15px #00000012;align-self:center;width:100%;max-width:290px;transition:box-shadow .2s,filter .2s}
.category-card>div:last-child .card-action{align-self:center;margin-top:auto;font-size:12px;min-height:46px;padding:11px 10px}
.school-body .card-action{margin-top:auto;max-width:250px}
.format-choice .card-action{margin-top:auto;max-width:270px}
.tool-body .card-action{font-size:14px;min-height:50px}
.category-card:hover .card-action,.school-card:hover .card-action,.format-choice:hover .card-action,.tool-card:hover .card-action{filter:brightness(1.04);box-shadow:inset 0 1px 0 #fff9,0 6px 22px #dd9a341c}
.class-section{display:block;border:0;padding:26px 0 0;background:transparent;border-radius:0}
.class-section>.class-heading:first-child{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px}
.class-heading>div{display:flex;align-items:center;gap:12px}
.class-section .class-art{width:65px;height:65px}
.class-section h2{font-size:30px;max-width:none;letter-spacing:-.035em}
.class-heading>p{font-size:13px;color:var(--muted)}
.class-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.class-links a.stage-card{position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;padding:22px 15px;min-height:124px;border:1px solid var(--border);border-radius:21px;background:linear-gradient(125deg,var(--surface),var(--surface2));white-space:normal;transition:border-color .2s,background .2s}
.stage-card:before{content:'';position:absolute;right:-15px;top:-24px;width:110px;height:110px;border:1px solid #b9d0c025;border-radius:50%;pointer-events:none}
.stage-card.stage-primary{background:linear-gradient(125deg,var(--surface),#5d46262b)}
.stage-card.stage-middle{background:linear-gradient(125deg,var(--surface),#45647b2b)}
.stage-card.stage-oge{background:linear-gradient(125deg,var(--surface),#6357792b)}
.stage-card.stage-ege{background:linear-gradient(125deg,var(--surface),#6179472b)}
.class-links .stage-art{width:62px;height:62px;flex-shrink:0;position:relative}
.class-links .stage-card>span{display:block;white-space:normal;position:relative;font-size:inherit;min-width:0}
.class-links small{display:block;font-size:10px;line-height:1.55;color:var(--muted);margin-bottom:7px}
.class-links strong{font-size:21px;font-weight:600;line-height:1.2;margin:0;display:block;letter-spacing:-.035em}
.class-links a.stage-card:hover{border-color:var(--action-warm);color:var(--text);background:var(--surface2)}
.faq-heading{max-width:930px;margin-bottom:40px}
.faq-section h2{font-size:43px}
.faq-heading>p:last-child{font-size:15px}
.faq-list{max-width:1140px;border-radius:29px}
.faq-list summary{display:grid;grid-template-columns:70px minmax(0,1fr) 39px;align-items:center;gap:23px;min-height:115px;padding:22px 29px;font-size:19px;line-height:1.5}
.faq-question-icon{display:grid;place-items:center;width:70px;height:70px;border:1px solid var(--border);border-radius:21px;background:var(--bg);transition:border-color .2s}
.faq-question-icon .art{width:66px;height:66px}
.faq-list [open] .faq-question-icon{border-color:var(--action-warm)}
.faq-indicator{width:39px;height:39px}
.faq-list [open] .faq-indicator{color:var(--action-warm);border-color:var(--action-warm)}
:root[data-theme=light] .faq-list [open] .faq-indicator{color:#794817;border-color:#b37c36;background:#fff0d4}
:root[data-theme=light] .faq-list [open] .faq-question-icon{border-color:#b37c36}
.faq-list .faq-answer{display:grid;grid-template-columns:40px minmax(0,1fr);gap:17px;padding:0 83px 31px 122px}
.faq-answer-icon{display:grid;place-items:start center;padding-top:4px}
.faq-answer-icon .art{width:40px;height:40px}
.faq-list .faq-answer p{font-size:15px;line-height:1.85;margin:0;max-width:none}
.faq-list .faq-answer p+p{margin-top:15px}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:30px;border:1px solid var(--border);border-radius:21px;background:var(--bg);margin-top:0;padding:20px 24px}
.footer-domain{display:flex;align-items:center;gap:16px;color:var(--text)}
.footer-copyright{padding:7px 11px;border:1px solid var(--border);border-radius:9px;font-size:11px;color:var(--muted)}
.footer-domain strong{display:block;font-size:17px;letter-spacing:-.025em;font-weight:600}
.footer-domain small{display:block;font-size:10px;color:var(--muted);margin-top:5px}
a.footer-domain:hover strong{color:var(--accent)}
.footer-note{display:flex;align-items:center;gap:13px}
.footer-note .art{width:44px;height:44px}
.footer-bottom .footer-note p{font-size:11px;line-height:1.8;text-align:left;max-width:520px}
.footer-note p span{color:var(--muted);font-size:10px}
@media(max-width:1200px){.class-links{gap:10px}.class-links a.stage-card{padding:18px 13px;flex-direction:column;align-items:flex-start;gap:12px}.class-links .stage-art{width:58px;height:58px}.class-links strong{font-size:23px}}
@media(max-width:900px){.class-section h2{font-size:27px}.class-links{grid-template-columns:repeat(3,minmax(0,1fr))}.class-links a.stage-card{flex-direction:row;align-items:center;min-height:115px}.class-links strong{font-size:22px}.faq-section h2{font-size:36px}.faq-list summary{font-size:17px;gap:17px;grid-template-columns:60px minmax(0,1fr) 35px;padding:21px}.faq-question-icon{width:60px;height:60px}.faq-question-icon .art{width:57px;height:57px}.faq-list .faq-answer{padding:0 60px 28px 98px;gap:13px}.footer-bottom{gap:20px}.footer-note{max-width:360px}}
@media(max-width:600px){.category-card{min-height:366px}.category-card>div:last-child .card-action{font-size:11px;min-height:46px;line-height:1.45;padding:9px 7px}.school-body .card-action,.format-choice .card-action{min-height:48px;font-size:13px}.tool-body .card-action{font-size:13px;min-height:49px}.class-section{padding-top:25px}.class-section>.class-heading:first-child{display:block;margin-bottom:17px}.class-heading>div{gap:9px}.class-section .class-art{width:53px;height:53px}.class-section h2{font-size:27px}.class-heading>p{font-size:12px;margin:9px 0 0 6px}.class-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.class-links a.stage-card{flex-direction:column;align-items:flex-start;padding:16px 17px;min-height:157px;border-radius:19px;gap:10px}.class-links .stage-art{width:61px;height:61px}.class-links small{font-size:10px;margin-bottom:6px}.class-links strong{font-size:23px}.class-links .stage-card:last-child{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:center;min-height:107px;gap:20px}.class-links .stage-card:last-child .art{width:73px;height:73px}.faq-section h2{font-size:31px;line-height:1.2}.faq-heading{margin-bottom:25px}.faq-heading>p:last-child{font-size:13px}.faq-list{border-radius:23px}.faq-list summary{grid-template-columns:49px minmax(0,1fr) 28px;gap:12px;padding:19px 14px;font-size:14px;min-height:96px}.faq-question-icon{width:49px;height:49px;border-radius:15px}.faq-question-icon .art{width:47px;height:47px}.faq-indicator{width:28px;height:28px}.faq-list .faq-answer{padding:0 17px 24px;grid-template-columns:31px minmax(0,1fr);gap:10px}.faq-answer-icon .art{width:31px;height:31px}.faq-list .faq-answer p{font-size:13px;line-height:1.8}.faq-list .faq-answer p+p{margin-top:13px}.footer-bottom{display:flex;align-items:stretch;flex-direction:column;padding:20px 18px;gap:20px;border-radius:20px}.footer-domain{gap:13px}.footer-domain strong{font-size:19px}.footer-domain small{font-size:11px}.footer-copyright{font-size:11px}.footer-note{border-top:1px solid var(--border);padding-top:17px;gap:10px;max-width:none;align-items:flex-start}.footer-note .art{width:39px;height:39px}.footer-bottom .footer-note p{font-size:11px}.footer-note p span{font-size:10px}}
@media(max-width:370px){.category-card{min-height:360px}.class-links a.stage-card{padding:15px 13px}.class-links strong{font-size:22px}.faq-list summary{font-size:13px;grid-template-columns:43px minmax(0,1fr) 26px;gap:9px;padding:17px 12px}.faq-question-icon{width:43px;height:43px}.faq-question-icon .art{width:41px;height:41px}.faq-indicator{width:26px;height:26px}}

/* Scroll navigation, shared by the homepage and internal pages. */
.back-to-top{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:35;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:13px 19px;border:1px solid #f8cc9080;border-radius:17px;background:linear-gradient(180deg,var(--action-warm-hover),var(--action-warm));color:var(--on-action-warm);font-size:13px;font-weight:650;line-height:1.2;box-shadow:inset 0 1px 0 #fff7,0 7px 24px #0003;transition:filter .18s,box-shadow .18s}
.back-to-top[hidden]{display:none}
.back-to-top svg{width:21px;height:21px;flex-shrink:0}
.back-to-top:hover{filter:brightness(1.05);box-shadow:inset 0 1px 0 #fff9,0 8px 28px #0004}
.site-footer{padding-bottom:86px}
@media(max-width:600px){.back-to-top{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:50px;min-height:50px;padding:0;border-radius:16px}.back-to-top span{display:none}.back-to-top svg{width:22px;height:22px}.site-footer{padding-bottom:82px}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}}
