/* Approved welcome-board design. Logical spacing supports every locale and RTL. */
.home-refresh{--home-ink:#10264a;--home-muted:#53657e;--home-teal:#007f8c;--home-border:#dfe8ef;width:min(1240px,calc(100% - 48px));padding:24px 0 12px;color:var(--home-ink)}
.home-refresh h1,.home-refresh h2,.home-refresh h3,.home-refresh p{margin:0}
.home-refresh a{color:inherit;text-decoration:none}
.home-refresh :is(a,input):focus-visible{outline:3px solid var(--home-teal);outline-offset:5px}
.home-welcome{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:center;gap:22px;padding:38px 38px 32px;border:1px solid #e0f0f0;border-radius:16px;background:#edf9f8;overflow:hidden}
.home-welcome-copy{min-width:0;position:relative;z-index:1}
.home-refresh .home-eyebrow{margin-bottom:14px;font-size:12px;line-height:1.6;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--home-teal)}
.home-welcome h1{max-width:700px;font-size:clamp(32px,4.4vw,54px);letter-spacing:-.045em;line-height:1.12;font-weight:800;text-wrap:balance}
.home-refresh .home-welcome-subtitle{margin-top:18px;max-width:590px;font-size:18px;line-height:1.65;color:var(--home-muted)}
.home-search{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;margin-top:24px;padding:10px 15px;border:1px solid #cadde3;border-radius:10px;background:var(--surface-solid);box-shadow:0 5px 16px #173e5310;cursor:text}
.home-search>svg{flex:none;width:24px;height:24px;color:var(--home-muted)}
.home-search input{flex:1;min-width:0;width:100%;padding:6px 0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font:inherit;font-size:15px;color:var(--home-ink)}
.home-search input::placeholder{color:#657991;opacity:1}
.home-search:focus-within{outline:3px solid var(--home-teal);outline-offset:3px}
.home-search kbd{flex:none;padding:4px 6px;border-radius:5px;background:var(--bg-soft);color:var(--home-muted);font:11px/1.4 inherit;white-space:nowrap;direction:ltr}
.home-facts{display:flex;flex-wrap:wrap;gap:8px 20px;padding:0;margin:20px 0 0;list-style:none;font-size:15px;color:var(--home-muted)}
.home-facts strong{font-weight:750;color:var(--home-ink);font-size:18px}
.home-facts li+li{border-inline-start:1px solid #c7dfe0;padding-inline-start:20px}
.home-welcome-art{width:100%;height:auto;max-height:340px;object-fit:contain;align-self:center}
.home-trending,.home-start,.home-explore{margin-top:32px}
.home-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 28px;margin-bottom:18px}
.home-refresh h2{font-size:clamp(23px,2.65vw,31px);font-weight:800;line-height:1.3;letter-spacing:-.03em;text-wrap:balance}
.home-section-heading h2{display:flex;align-items:center;gap:10px}
.home-section-heading h2>svg{width:30px;height:30px;flex:none;color:var(--home-teal)}
.home-section-heading p{margin-top:6px;color:var(--home-muted);font-size:14px;line-height:1.6}
.home-refresh .home-text-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;color:var(--home-teal);font-size:14px;font-weight:650;flex-shrink:0}
.home-text-link svg{width:18px;height:18px;flex:none}
.home-text-link:hover{text-decoration:underline}
.home-trend-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.home-trend-grid>li{display:flex;min-width:0}
.home-trend-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:202px;padding:26px 18px 20px;text-align:center;border:1px solid var(--home-border);border-radius:12px;background:var(--surface-solid);transition:border-color .18s,box-shadow .18s}
.home-trend-card:hover{border-color:#75b5ba;box-shadow:0 6px 20px #1334560b}
.home-trend-rank{position:absolute;inset-inline-start:16px;top:12px;font-size:13px;color:var(--home-muted);font-variant-numeric:tabular-nums}
.home-tool-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:3px;color:var(--home-teal)}
.home-tool-icon svg{width:42px;height:42px}
.home-trend-card h3{font-size:17px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
.home-trend-card p{max-width:240px;color:var(--home-muted);font-size:14px;line-height:1.55}
.home-weekly-uses{margin-top:auto;padding-top:7px;font-size:12px;color:var(--home-teal);font-variant-numeric:tabular-nums}
.home-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.home-feature{display:flex;align-items:center;gap:12px;min-height:224px;padding:26px 24px;border:1px solid transparent;border-radius:12px;background:#e8f7f4}
.home-feature>div{flex:1;min-width:0;position:relative;z-index:1}
.home-feature-learn{background:#eaf4fb}
.home-feature:hover{border-color:#76b5bc}
.home-feature h3{font-size:23px;line-height:1.3;font-weight:800;letter-spacing:-.03em;text-wrap:balance}
.home-feature p{margin-top:12px;color:var(--home-muted);font-size:15px;line-height:1.6;max-width:320px}
.home-feature img{width:30%;max-width:165px;height:auto;flex:none}
.home-feature-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:20px;padding:10px 14px;border:1px solid var(--home-teal);border-radius:8px;font-size:14px;line-height:1.45;font-weight:600;background:var(--home-teal);color:#fff}
.home-feature-cta svg{width:18px;height:18px;flex:none}
.home-feature-learn .home-feature-cta{background:var(--surface-solid);color:var(--home-ink)}
.home-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:16px}
.home-category-grid a{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px;border:1px solid var(--home-border);border-radius:9px;background:var(--surface-solid);font-size:14px;line-height:1.4}
.home-category-grid a:hover{border-color:var(--home-teal);color:var(--home-teal)}
.home-category-grid svg{width:25px;height:25px;flex:none}
.home-explore .home-all-categories{margin-top:8px}
.home-trust{display:flex;align-items:stretch;justify-content:center;gap:0;list-style:none;margin:26px 0 0;padding:18px 22px;background:#f0f7f8;border-radius:12px}
.home-trust li{display:flex;align-items:center;justify-content:center;gap:12px;flex:1;padding:0 20px;font-size:14px;line-height:1.5}
.home-trust li+li{border-inline-start:1px solid #d4e2e6}
.home-trust a{display:flex;align-items:center;gap:12px;min-height:30px}
.home-trust svg{flex:none;width:25px;height:25px;color:var(--home-teal)}
.home-refresh .section-v4{padding:30px 0 0}
.home-refresh .section-head-v4{margin-bottom:16px}
/* Shared footer stays compact; all existing destinations and privacy controls remain available. */
.site-footer.footer{margin-top:32px;padding-top:24px}
.footer-compact-top{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.footer-quick-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px}
.footer-quick-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-size:14px;text-decoration:none}
.footer-quick-links a:hover{text-decoration:underline;color:var(--text)}
.footer-extra{margin-top:12px}
.footer-extra summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:max-content;max-width:100%;margin:auto;padding:8px 12px;border-radius:8px;font-size:13px;color:var(--muted);cursor:pointer;list-style:none}
.footer-extra summary::after{content:'+';font-size:18px}
.footer-extra[open] summary::after{content:'−'}
.footer-extra summary::-webkit-details-marker{display:none}
.footer-extra .site-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}
.footer-extra .site-footer-controls{margin-top:18px;padding-block:16px}
.site-footer .site-footer-study{font-size:12px;line-height:1.6;margin-top:18px;margin-bottom:12px}
.site-footer .footer-note{margin-top:10px;padding-top:12px;font-size:12px}
.footer-languages{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;margin:16px 0 4px;font-size:13px;line-height:1.7;color:var(--muted);text-align:center}
.footer-languages span+span::before{content:'·';margin-inline-end:14px;color:var(--muted-2)}
.site-footer .sf-visitor-counter{margin-top:10px;margin-bottom:10px;font-size:14px}
html[dir="rtl"] .home-welcome h1{letter-spacing:0;line-height:1.4;font-size:clamp(30px,3.8vw,47px)}
html[dir="rtl"] .home-eyebrow{letter-spacing:0}
html[dir="rtl"] .home-refresh h2,html[dir="rtl"] .home-feature h3{letter-spacing:0}
html[dir="rtl"] .home-feature-cta svg,html[dir="rtl"] .home-text-link svg{transform:scaleX(-1)}
html[data-theme="dark"] .home-refresh{--home-ink:#edf5ff;--home-muted:#b2c2d5;--home-teal:#69d5d4;--home-border:#304457}
html[data-theme="dark"] .home-welcome{background:#132f34;border-color:#29454b}
html[data-theme="dark"] .home-search{border-color:#3f5c68}
html[data-theme="dark"] .home-search input::placeholder{color:#b2c2d5}
html[data-theme="dark"] .home-facts li+li{border-color:#3f5c68}
html[data-theme="dark"] .home-feature-pdf{background:#163236}
html[data-theme="dark"] .home-feature-learn{background:#172f45}
html[data-theme="dark"] .home-feature-cta{color:#0c2730}
html[data-theme="dark"] .home-feature-learn .home-feature-cta{color:var(--home-ink)}
html[data-theme="dark"] .home-trust{background:#162a35}
html[data-theme="dark"] .home-trust li+li{border-color:#34505d}
@media(min-width:1180px) and (max-width:1319px){.site-header .primary-nav{display:flex;flex:1;justify-content:center}.site-header .primary-nav .student-nav,.site-header .primary-nav .nav-dev{display:none}.site-header .primary-nav .nav-link{padding-inline:8px;font-size:13px}.site-header .nav-shell{gap:10px}.site-header .language-select{max-width:145px}}
@media(max-width:1000px){.home-welcome{padding:30px 26px;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:8px}.home-welcome h1{font-size:42px}.home-search kbd{display:none}.home-welcome-subtitle{font-size:16px}.home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-feature{padding:22px 20px}.home-feature img{width:26%}.home-feature h3{font-size:21px}.home-trust li{padding-inline:12px}.footer-extra .site-footer-group:last-child{grid-column:auto}}
@media(max-width:760px){.home-refresh{width:calc(100% - 32px);padding-top:16px}.home-welcome{padding:28px 24px;grid-template-columns:minmax(0,1fr)}.home-welcome h1{font-size:38px;max-width:580px}.home-welcome-art{width:210px;max-height:150px;justify-self:end;margin-top:-8px;margin-bottom:-12px}.home-welcome-copy{max-width:100%}.home-welcome-subtitle{max-width:100%}.home-facts{font-size:14px;gap:10px}.home-facts strong{font-size:16px}.home-facts li+li{padding-inline-start:12px}.home-trend-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-section-heading{flex-wrap:wrap;gap:4px}.home-section-heading .home-text-link{min-height:34px}.home-feature-grid{grid-template-columns:minmax(0,1fr)}.home-feature{min-height:190px}.home-feature img{width:30%;max-width:160px}.home-trust{flex-direction:column;align-items:flex-start;padding:8px 18px;gap:0}.home-trust li{justify-content:flex-start;padding:13px 0;flex:auto;width:100%}.home-trust li+li{border-inline-start:0;border-top:1px solid #d4e2e6}.home-trending,.home-start,.home-explore{margin-top:26px}.footer-extra .site-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-extra .site-footer-group:last-child{grid-column:1/-1}.footer-compact-top{justify-content:center}.footer-quick-links{justify-content:center;gap:4px 18px}.site-footer .footer-note{flex-direction:row;align-items:center}.footer-languages{gap:5px 10px}.footer-languages span+span::before{margin-inline-end:10px}.site-footer-study{text-align:start}}
@media(max-width:430px){.home-welcome{padding:24px 20px}.home-welcome h1{font-size:32px}.home-refresh .home-welcome-subtitle{font-size:15px;margin-top:14px}.home-welcome-art{width:175px;max-height:126px}.home-search{min-height:54px;padding:9px 12px;gap:8px;margin-top:20px}.home-search input{font-size:13px}.home-trend-card{padding:24px 12px 18px;min-height:220px}.home-trend-card h3{font-size:16px}.home-trend-card p{font-size:13px}.home-tool-icon svg{width:36px;height:36px}.home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-feature{gap:6px;padding:22px 18px}.home-feature h3{font-size:21px}.home-feature p{font-size:14px}.home-feature-cta{font-size:13px;padding:9px 10px}.home-feature img{width:26%}.home-facts{font-size:12px}.home-facts strong{font-size:15px}.home-eyebrow{font-size:11px}.home-section-heading h2{font-size:24px}.home-section-heading h2>svg{width:25px;height:25px}.home-section-heading p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.home-refresh *{transition:none!important;animation:none!important}}
@media(forced-colors:active){.home-welcome,.home-feature,.home-trend-card,.home-search,.home-category-grid a,.home-trust{border:1px solid CanvasText}.home-feature-cta{border-color:LinkText;color:LinkText;background:Canvas}.home-text-link{color:LinkText}.home-tool-icon svg,.home-trust svg{color:CanvasText}}
@media(max-width:600px){.home-welcome-art{display:none}.home-search input{font-size:16px!important}}
