.portal-home { margin: 0; color: #252e51; background: #f5f7fc; font: 16px/1.6 "Trebuchet MS", "Segoe UI", Arial, sans-serif; }
.portal-home *, .portal-nav, .portal-nav * { box-sizing: border-box; }
.portal-home a { color: inherit; }
.portal-home a:focus-visible, .portal-nav a:focus-visible { outline: 3px solid #3046b9; outline-offset: 5px; }
.portal-nav { position: relative; z-index: 3; width: 100%; margin: 0; padding: 0; color: #252e51; background: #fff; border-bottom: 1px solid #e0e5f0; font: 14px/1.5 "Trebuchet MS", "Segoe UI", Arial, sans-serif; }
.portal-nav-inner { max-width: 1200px; margin: auto; padding: 19px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-nav .portal-brand { display: flex; align-items: center; gap: 10px; color: #252e51; text-decoration: none; font-size: 23px; font-weight: 700; letter-spacing: -.7px; }
.portal-mark { width: 39px; height: 43px; display: grid; place-items: center; border-radius: 10px 10px 15px 4px; background: #3046b9; color: #fff; font: 36px/1 Georgia, serif; padding-bottom: 5px; }
.portal-brand-note { display: block; margin-top: -1px; font-size: 10px; line-height: 1.4; font-weight: 400; letter-spacing: 0; color: #68718c; }
.portal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.portal-nav .portal-links a { color: #535d78; text-decoration: none; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 7px; }
.portal-nav .portal-links a:hover { background: #f0f3fb; color: #3046b9; }
.portal-nav .portal-links a[aria-current] { color: #3046b9; background: #edf0fc; }
.portal-skip { position: absolute; left: 20px; top: -90px; z-index: 10; background: #fff; padding: 12px 18px; }
.portal-skip:focus { top: 10px; }
.portal-main { max-width: 1200px; padding: 0 32px; margin: auto; }
.portal-intro { padding: 61px 0 39px; }
.portal-intro h1 { font-size: clamp(32px, 4.3vw, 49px); font-weight: 700; line-height: 1.2; letter-spacing: -1.9px; margin: 0 0 18px; max-width: 850px; }
.portal-heading-dot { color: #3046b9; }
.portal-intro > p { font-size: 16px; color: #626d88; max-width: 660px; margin: 0; }
.portal-subjects { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.portal-subjects a { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; border: 1px solid #d9e0ed; background: #fff; padding: 7px 15px; border-radius: 24px; font-size: 13px; }
.portal-subjects a:hover { border-color: #3046b9; }
.portal-subjects a span { font-weight: bold; font-size: 19px; color: #3046b9; }
.portal-back { display: inline-block; font-size: 13px; color: #3046b9 !important; margin-bottom: 22px; text-underline-offset: 4px; }
.portal-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; align-items: start; }
.portal-category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 0 1px 16px; }
.portal-category-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.portal-category-heading > span { font-size: 12px; color: #69738d; }
.portal-activities { display: grid; gap: 24px; }
.portal-activity { overflow: hidden; background: white; border: 1px solid #dde3ef; border-radius: 16px; }
.portal-card-art { position: relative; height: 143px; display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; overflow: hidden; color: #3046b9; background: #e9efff; background-image: linear-gradient(#3046b90b 1px, transparent 1px), linear-gradient(90deg, #3046b90b 1px, transparent 1px); background-size: 22px 22px; }
.portal-art-symbol { font-size: 100px; font-weight: 400; line-height: 1; letter-spacing: -8px; }
.portal-art-note { font: italic 25px/1.4 Georgia, serif; transform: rotate(-5deg); border-bottom: 2px solid #aebdf1; padding: 4px 0; }
.portal-art-english { color: #6250b8; background: #eee9fb; background-image: repeating-linear-gradient(transparent, transparent 27px, #6250b812 28px); }
.portal-art-english .portal-art-symbol { font: 72px/1 Georgia, serif; letter-spacing: -6px; }
.portal-art-english .portal-art-note { max-width: 155px; font-size: 21px; border-color: #bcaee6; transform: rotate(3deg); }
.portal-card-body { padding: 27px 29px 25px; }
.portal-level { display: inline-block; margin: 0 0 13px; border: 1px solid #dce2ef; border-radius: 5px; padding: 3px 8px; font-size: 11px; color: #536181; }
.portal-card-body h3 { margin: 0 0 13px; font-size: 23px; line-height: 1.4; letter-spacing: -.7px; }
.portal-card-body h3 a { text-decoration: none; }
.portal-card-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.portal-description { color: #626d88; font-size: 14px; line-height: 1.9; margin: 0 0 20px; max-width: 65ch; }
.portal-details { display: flex; gap: 7px 14px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 26px; color: #68718b; font-size: 11px; }
.portal-details li::before { content: ""; display: inline-block; width: 4px; height: 4px; background: #90a1c5; border-radius: 50%; vertical-align: middle; margin-right: 7px; }
.portal-open { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: fit-content; min-height: 44px; color: #3046b9 !important; text-decoration: none; font-size: 14px; font-weight: bold; }
.portal-open svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-open:hover { text-decoration: underline; text-underline-offset: 4px; }
.portal-note { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 34px 0; color: #69738c; }
.portal-note > span { color: #8191b6; font-size: 35px; transform: rotate(-12deg); }
.portal-note p { margin: 0; font-size: 12px; }
.portal-note strong { font-weight: 400; }
.portal-footer { max-width: 1136px; margin: 0 auto; border-top: 1px solid #dfe5ef; padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 15px; color: #6b7590; font-size: 11px; }
@media (min-width: 760px) { .portal-category:only-child { grid-column: 1 / -1; } .portal-category:only-child .portal-activities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .portal-footer { margin: 0 32px; } .portal-art-note { font-size: 22px; } .portal-card-art { padding: 20px 25px; } }
@media (max-width: 759px) { .portal-nav-inner { flex-wrap: wrap; gap: 15px; padding: 17px 20px 12px; } .portal-links { width: 100%; gap: 3px; } .portal-nav .portal-links a { padding: 8px 10px; font-size: 12px; } .portal-main { padding: 0 20px; } .portal-intro { padding: 34px 0 30px; } .portal-intro h1 { letter-spacing: -1.3px; } .portal-intro > p { font-size: 14px; line-height: 1.8; } .portal-library { grid-template-columns: 1fr; gap: 29px; } .portal-card-art { height: 123px; } .portal-card-body { padding: 23px; } .portal-card-body h3 { font-size: 22px; } .portal-footer { margin: 0 20px; flex-direction: column; gap: 5px; padding: 19px 0; } .portal-category-heading h2 { font-size: 19px; } .portal-note { justify-content: flex-start; padding: 28px 4px; } }
@media (max-width: 360px) { .portal-nav .portal-links a { padding: 8px; font-size: 11px; } .portal-art-note { font-size: 21px; } .portal-art-english .portal-art-note { max-width: 125px; font-size: 19px; } }
@media print { .portal-nav, .portal-subjects, .portal-open, .portal-skip { display: none; } .portal-home { background: white; } .portal-card-art { height: 80px; } .portal-activity { break-inside: avoid; } }

.portal-art-math { color: #3046b9; background-color: #3046b912; } .portal-art-math .portal-art-note { border-color: #3046b955; }
.portal-art-english { color: #6250b8; background-color: #6250b812; } .portal-art-english .portal-art-note { border-color: #6250b855; }
