
body[data-page="home"] .home-learning-portals{margin:26px 0 30px;color:#263a31}
body[data-page="home"] .portal-section-intro{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin:0 0 14px;padding:0 3px}
body[data-page="home"] .portal-section-intro h2{margin:0;font-size:20px;line-height:1.4;font-weight:750;letter-spacing:-.3px}
body[data-page="home"] .portal-section-intro p{margin:0;color:#65756b;font-size:13px;line-height:1.6}
body[data-page="home"] .home-portal-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:18px}
body[data-page="home"] .learning-portal-card{position:relative;display:flex;flex-direction:column;min-width:0;margin:0;padding:26px 28px 22px;overflow:hidden;border:1px solid #d9e2d9;border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(243,248,244,.97));box-shadow:0 10px 28px rgba(42,62,46,.06)}
body[data-page="home"] .learning-portal-card.portal-video{border-color:#dbe0e4;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(240,245,247,.98))}
body[data-page="home"] .portal-card-top{display:flex;align-items:center;gap:14px;margin-bottom:19px}
body[data-page="home"] .portal-card-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:17px;background:#e1ece3;color:#356249;border:1px solid #ccdfd0}
body[data-page="home"] .portal-video .portal-card-icon{background:#e7edf2;color:#466278;border-color:#d2dfe8}
body[data-page="home"] .portal-card-icon svg{width:35px;height:35px}
body[data-page="home"] .portal-eyebrow{margin:0 0 3px;font-size:10px;font-weight:750;letter-spacing:1.7px;color:#5a7563}
body[data-page="home"] .portal-video .portal-eyebrow{color:#597082}
body[data-page="home"] .portal-card-count{font-size:13px;line-height:1.5;color:#596e60}
body[data-page="home"] .learning-portal-card h3{margin:0 0 9px;font-size:25px;line-height:1.35;font-weight:750;letter-spacing:-.5px;color:#253c2e}
body[data-page="home"] .learning-portal-card.portal-video h3{color:#2c4252}
body[data-page="home"] .portal-card-description{margin:0;max-width:46ch;font-size:14px;line-height:1.8;color:#58685d}
body[data-page="home"] .portal-features{display:flex;flex-wrap:wrap;gap:7px;list-style:none;padding:0;margin:16px 0 23px}
body[data-page="home"] .portal-features li{padding:4px 9px;border:1px solid #d4e2d6;border-radius:7px;background:rgba(255,255,255,.62);font-size:11px;line-height:1.5;color:#53715c}
body[data-page="home"] .portal-video .portal-features li{border-color:#d8e2e9;color:#5a7080}
body[data-page="home"] .portal-card-actions{display:flex;align-items:center;gap:14px;margin-top:auto}
body[data-page="home"] .portal-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:46px;padding:12px 17px;border:1px solid #37684e;border-radius:11px;background:#37684e;color:#fff;font-size:14px;font-weight:700;text-decoration:none;line-height:1.4;transition:background .15s ease,box-shadow .15s ease}
body[data-page="home"] .portal-primary:hover{background:#28533c;box-shadow:0 4px 12px rgba(42,79,56,.14)}
body[data-page="home"] .portal-video .portal-primary{background:#486376;border-color:#486376}
body[data-page="home"] .portal-video .portal-primary:hover{background:#354e60}
body[data-page="home"] .portal-primary span[aria-hidden]{font-size:19px;line-height:1}
body[data-page="home"] .portal-secondary-links{display:flex;flex-wrap:wrap;gap:3px 14px;padding-top:13px;margin-top:16px;border-top:1px solid #dce6dd}
body[data-page="home"] .portal-secondary-links a{display:inline-flex;align-items:center;min-height:36px;color:#426b50;font-size:12px;font-weight:650;text-underline-offset:4px;text-decoration-color:#a1b7a7}
body[data-page="home"] .portal-secondary-links a:hover{color:#1e5033;text-decoration-color:currentColor}
body[data-page="home"] .portal-card-note{margin:16px 0 0;padding-top:15px;border-top:1px solid #dce4ea;color:#556b79;font-size:12px;line-height:1.8}
body[data-page="home"] .home-learning-portals a:focus-visible{outline:3px solid #367da4;outline-offset:4px}
@media(max-width:800px){body[data-page="home"] .home-portal-grid{grid-template-columns:1fr}body[data-page="home"] .portal-section-intro{display:block}body[data-page="home"] .portal-section-intro p{margin-top:5px}}
@media(max-width:480px){body[data-page="home"] .home-learning-portals{margin:20px 0 24px}body[data-page="home"] .learning-portal-card{padding:22px 20px 19px;border-radius:19px}body[data-page="home"] .learning-portal-card h3{font-size:23px}body[data-page="home"] .portal-card-description{font-size:13px}body[data-page="home"] .portal-card-top{margin-bottom:15px;gap:12px}body[data-page="home"] .portal-card-icon{flex-basis:52px;width:52px;height:52px;border-radius:15px}body[data-page="home"] .portal-primary{width:100%;font-size:14px}body[data-page="home"] .portal-secondary-links{gap:0 14px}body[data-page="home"] .portal-secondary-links a{min-height:44px;font-size:12px}}
@media(prefers-reduced-motion:reduce){body[data-page="home"] .portal-primary{transition:none}}

body[data-page="home"] .portal-mode-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:9px}
body[data-page="home"] .portal-mode-action{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:92px;padding:13px 12px 25px;width:100%;font-size:13px;line-height:1.5}
body[data-page="home"] .portal-mode-action strong{font:inherit;font-weight:700}
body[data-page="home"] .portal-mode-action small{font-size:10px;line-height:1.5;color:#edf5ef}
body[data-page="home"] .portal-mode-action span[aria-hidden]{position:absolute;right:12px;bottom:9px;font-size:17px}
@media(max-width:480px){body[data-page="home"] .portal-mode-actions{grid-template-columns:1fr;gap:9px}body[data-page="home"] .portal-mode-action{min-height:65px;padding:10px 37px 10px 13px;font-size:14px}body[data-page="home"] .portal-mode-action small{font-size:11px}body[data-page="home"] .portal-mode-action span[aria-hidden]{right:14px;top:50%;bottom:auto;transform:translateY(-50%)}}

/* A native title link covers the card; existing actions remain independent. */
body[data-page="home"] .home-reading-card-link{color:inherit;text-decoration:none}
body[data-page="home"] .home-reading-card-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:22px}
body[data-page="home"] .home-reading-entry .portal-mode-action,body[data-page="home"] .home-reading-entry .portal-secondary-links a{position:relative;z-index:2}
body[data-page="home"] .home-learning-portals .home-reading-card-link:focus-visible{outline:none}
body[data-page="home"] .home-reading-card-link:focus-visible::after{outline:3px solid #367da4;outline-offset:-4px}
@media(max-width:480px){body[data-page="home"] .home-reading-card-link::after{border-radius:19px}}
