@font-face {
  font-family: "Tajawal Local";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Tajawal-Regular-Arabic.woff2") format("woff2");
}
@font-face {
  font-family: "Tajawal Local";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Tajawal-Bold-Arabic.woff2") format("woff2");
}

:root {
  --paper: #faf9f4;
  --surface: #ffffff;
  --ink: #263e37;
  --muted: #596c63;
  --green: #196859;
  --deep: #104e41;
  --sage: #eaf2e6;
  --line: #dce5d8;
  --lavender: #eee8f5;
  --violet: #675079;
  --warm: #f9edda;
  --radius: 24px;
  font-family: "Tajawal Local", "Segoe UI", Tahoma, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.8; }
a { color: var(--green); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Optional student entry: reuse the existing header; never redesign the portal. */
.portal-header .student-access { background: #f0eaf7; color: #57416a; border-color: #ded3eb; }
::selection { background: #dceada; color: var(--deep); }
:focus-visible { outline: 3px solid #79538f; outline-offset: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.5; text-wrap: balance; overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; inset-inline-start: 16px; z-index: 30; transform: translateY(-220%); padding: 12px 20px; border-radius: 12px; background: white; box-shadow: 0 4px 20px #203c3326; }
.skip-link:focus { transform: none; }
.portal-header { border-bottom: 1px solid var(--line); background: #faf9f4f5; }
.header-inner { max-width: 1248px; margin: auto; padding: 21px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-brand { display: flex; align-items: center; gap: 12px; color: var(--deep); font-size: 25px; font-weight: 700; line-height: 1.45; text-decoration: none; flex: none; }
.brand-mark { display: grid; place-items: center; width: 49px; height: 49px; font-size: 34px; color: var(--green); background: #e5eddf; border: 1px solid #d2dfc9; border-radius: 18px 18px 18px 6px; }
.portal-brand small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
.portal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.portal-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 13px; border-radius: 10px; color: #53675b; font-size: 16px; text-decoration: none; white-space: nowrap; }
.portal-nav a:hover { background: #edf2e8; color: var(--deep); }
.portal-nav a[aria-current] { background: #e7efe1; color: var(--deep); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.teacher-access { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 12px; font-size: 14px; line-height: 1.5; border: 1px solid #cfdccb; border-radius: 10px; white-space: nowrap; color: var(--deep); background: transparent; text-decoration: none; }
.teacher-access:hover { background: var(--sage); }
.portal-main { max-width: 1248px; margin: auto; padding: 0 40px 70px; }
.portal-main:focus { outline: none; }
.portal-local-notice { border: 1px solid #decfaa; background: #fbf3df; border-radius: 10px; color: #745824; font-size: 14px; text-align: center; margin: 16px 0 0; padding: 8px 14px; }
.portal-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 50px; padding: 58px 0 45px; }
.eyebrow { font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--green); margin-bottom: 12px; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 8px; }
.tiny-flower { color: #967544; font-size: 23px; }
.portal-hero h1 { margin-bottom: 20px; font-size: clamp(38px,4.7vw,61px); letter-spacing: -.6px; line-height: 1.22; color: var(--deep); }
.portal-hero h1 span { color: #6d587c; }
.hero-description { max-width: 470px; color: #53675d; font-size: 18px; line-height: 1.95; margin-bottom: 25px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 49px; padding: 10px 21px; border-radius: 13px; border: 1px solid transparent; font-size: 16px; font-weight: 700; line-height: 1.65; text-decoration: none; }
.button-primary { background: var(--green); border-color: var(--green); color: white; }
.button-primary:hover { background: var(--deep); border-color: var(--deep); }
.button-secondary { background: #fffdfa; border-color: #cbd9c5; color: var(--deep); }
.button-secondary:hover { background: var(--sage); border-color: #9fb694; }
.hero-footnote { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; display: grid; place-items: center; min-width: 0; padding-block: 15px; }
.hero-visual > img { width: 100%; height: auto; display: block; }
.visual-label { position: absolute; border: 1px solid #dbe3d3; border-radius: 13px; padding: 9px 16px; background: #fffdf7; color: #52634f; font-size: 14px; box-shadow: 0 6px 18px #2d4e3c07; }
.label-top { top: 23px; right: 36px; transform: rotate(3deg); }
.label-bottom { bottom: 22px; left: 11px; background: #f4edf9; border-color: #e0d4ea; transform: rotate(-3deg); color: #6b537e; }
.identity-strip { display: flex; gap: 26px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 4px; }
.identity-strip > div { display: flex; gap: 13px; align-items: center; }
.identity-strip > div > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.65; }
.identity-strip strong { display: block; color: var(--ink); font-size: 16px; font-weight: 700; }
.identity-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sage); color: var(--green); font-size: 25px; flex: none; }
.identity-icon.lavender { background: var(--lavender); color: var(--violet); }
.portal-section { margin-top: 58px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 23px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading h2 { margin: 0; font-size: 30px; color: var(--deep); }
.section-heading > p { margin: 0 0 3px; max-width: 290px; font-size: 16px; color: var(--muted); }
.text-link, .card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 700; font-size: 15px; line-height: 1.65; text-decoration: none; }
.text-link { min-height: 44px; }
.text-link:hover, .card-link:hover { text-decoration: underline; }
.needs-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.need-card { display: block; padding: 24px 22px 19px; border: 1px solid var(--line); border-radius: 20px; background: #fffdfa; text-decoration: none; color: var(--ink); transition: border-color .15s,background .15s; }
.need-card:hover { border-color: #a8bda1; background: #f6f9f0; }
.need-icon, .resource-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d7e4d2; background: var(--sage); color: #436b3b; border-radius: 15px; font-size: 28px; line-height: 1; }
.topic-memory .need-icon, .topic-memory .resource-icon { background: var(--lavender); border-color: #ddd0e9; color: var(--violet); }
.topic-organization .need-icon, .topic-organization .resource-icon { background: var(--warm); border-color: #e9d6b7; color: #846326; }
.topic-support .need-icon, .topic-support .resource-icon { background: #f6e6e9; border-color: #e8cfd7; color: #8c5972; }
.need-card h3 { margin: 16px 0 6px; font-size: 21px; }
.need-card p { font-size: 15px; color: var(--muted); margin-bottom: 18px; line-height: 1.8; }
.need-card .card-link { font-size: 14px; }
.workshop-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.workshop-card { display: grid; grid-template-columns: 180px 1fr; direction: ltr; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.workshop-cover { direction: rtl; position: relative; display: flex; align-items: center; justify-content: center; background: #eaf2e4; padding: 43px 9px 19px; min-width: 0; }
.workshop-day .workshop-cover { background: #f0eaf7; }
.workshop-cover img { width: 164px; height: auto; display: block; }
.cover-label { position: absolute; top: 15px; right: 15px; font-size: 14px; color: #546b48; }
.workshop-day .cover-label { color: #6e557d; }
.cover-spark { position: absolute; bottom: 10px; right: 13px; color: #9baf87; font-size: 22px; }
.workshop-card-content { direction: rtl; padding: 25px 24px 22px; }
.workshop-card-content .eyebrow { margin-bottom: 6px; }
.workshop-card h3 { font-size: 23px; margin-bottom: 9px; }
.workshop-card h3 a, .resource-card h3 a { color: var(--ink); text-decoration: none; }
.workshop-card h3 a:hover, .resource-card h3 a:hover { text-decoration: underline; }
.workshop-card-content > p:not(.eyebrow) { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 17px; }
.weekly-step { display: flex; align-items: center; gap: 28px; margin-top: 52px; padding: 32px 36px; border: 1px solid #d5e1cb; border-radius: var(--radius); background: #ebf2e4; }
.weekly-icon { flex: none; display: grid; place-items: center; width: 70px; height: 85px; color: #6c8655; font-size: 64px; }
.weekly-copy { flex: 1; min-width: 0; }
.weekly-copy .eyebrow { margin-bottom: 6px; }
.weekly-copy h2 { font-size: 26px; margin-bottom: 8px; }
.weekly-copy p:not(.eyebrow) { font-size: 16px; color: #53674a; max-width: 670px; margin-bottom: 17px; }
.weekly-copy .button { min-height: 44px; font-size: 15px; }
.weekly-note { text-align: center; flex: none; border-inline-start: 1px solid #cbdabf; padding-inline-start: 29px; color: #5a714b; }
.weekly-note > span { display: grid; place-items: center; margin: 0 auto 9px; width: 48px; height: 48px; border: 1px solid #b7caab; background: #f7fbf3; border-radius: 50%; font-size: 29px; }
.weekly-note p { margin: 0; font-size: 14px; }
.resource-tool-bridge { --bridge-fill: var(--sage); --bridge-accent: var(--deep); display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 16px; align-items: center; margin-bottom: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--bridge-fill); }
.resource-tool-bridge.bridge-bag { --bridge-fill: var(--warm); --bridge-accent: #76531e; }
.resource-tool-bridge.bridge-task { --bridge-fill: var(--lavender); --bridge-accent: var(--violet); }
.resource-tool-icon { display: grid; place-items: center; width: 48px; height: 54px; border: 1px solid currentColor; border-radius: 16px 16px 16px 6px; color: var(--bridge-accent); background: var(--surface); }
.resource-tool-icon svg { width: 30px; height: 32px; }
.resource-tool-copy { min-width: 0; overflow-wrap: anywhere; }
.resource-tool-copy .eyebrow { margin: 0 0 3px; color: var(--bridge-accent); }
.resource-tool-copy h2 { margin: 0 0 5px; color: var(--bridge-accent); font-size: 24px; }
.resource-tool-copy > p:not(.eyebrow) { margin: 0 0 7px; font-size: 16px; }
.resource-tool-copy small { display: block; color: var(--muted); font-size: 14px; }
.resource-tool-bridge .button { min-height: 44px; font-size: 16px; white-space: normal; }
@media (max-width: 760px) {
  .resource-tool-bridge { grid-template-columns: 40px minmax(0,1fr); padding: 18px; gap: 12px; }
  .resource-tool-icon { width: 40px; height: 46px; align-self: start; }
  .resource-tool-bridge .button { grid-column: 1 / -1; justify-self: start; }
  .resource-tool-copy h2 { font-size: 22px; }
}
@media (forced-colors: active) {
  .resource-tool-bridge, .resource-tool-icon { border-color: CanvasText; }
}
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.resource-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: white; border-radius: 20px; padding: 24px; min-width: 0; }
.resource-card-top { display: flex; justify-content: space-between; align-items: center; gap: 13px; margin-bottom: 19px; }
.reading-time { color: var(--muted); font-size: 14px; line-height: 1.65; }
.resource-card h3 { font-size: 22px; margin-bottom: 10px; }
.resource-card > p { font-size: 16px; color: var(--muted); margin-bottom: 22px; line-height: 1.8; }
.resource-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #edf0e8; padding-top: 14px; margin-top: auto; }
.resource-card-bottom > span { color: var(--muted); font-size: 14px; }
.resource-card-bottom .card-link { font-size: 14px; min-height: 44px; }
.trust-strip { display: flex; align-items: center; gap: 35px; margin-top: 44px; padding: 27px 0 0; border-top: 1px solid var(--line); }
.trust-strip > div { flex: none; }
.trust-strip strong { display: block; color: var(--green); font-size: 33px; line-height: 1.1; }
.trust-strip span { font-size: 14px; color: var(--muted); }
.trust-strip > p { color: var(--muted); font-size: 15px; line-height: 1.85; margin: 0; max-width: 425px; }
.trust-strip > a { flex: none; margin-inline-start: auto; font-size: 15px; font-weight: 700; }
.portal-footer { border-top: 1px solid var(--line); background: #f0f3e9; }
.footer-main, .footer-bottom { max-width: 1248px; margin: auto; padding: 34px 40px; display: flex; justify-content: space-between; gap: 40px; }
.footer-main > div:first-child { max-width: 460px; }
.footer-main p { font-size: 15px; color: #596b56; margin: 17px 0 0; }
.footer-identity { display: flex; flex-direction: column; gap: 5px; justify-content: center; font-size: 15px; color: var(--muted); }
.footer-identity strong { color: #40593c; }
.footer-identity a { margin-top: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom { border-top: 1px solid #dce3d5; padding-block: 18px; align-items: center; font-size: 14px; }
.footer-bottom p { margin: 0; color: #596b56; }
.footer-bottom a { flex: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Library and reading pages retain their full functionality without JavaScript. */
.page-intro { position: relative; margin-top: 34px; border: 1px solid #dce4d4; border-radius: 25px; background: #eff3e8; padding: 35px 38px; overflow: hidden; }
.page-intro h1 { font-size: 40px; color: var(--deep); margin-bottom: 12px; }
.page-intro > p:not(.eyebrow) { max-width: 720px; color: #54674d; font-size: 18px; line-height: 1.95; margin-bottom: 0; }
.intro-ornament { position: absolute; left: 43px; top: 9px; font-size: 128px; line-height: 1; color: #dbe5d0; pointer-events: none; }
.workshops-intro { background: #f1edf6; border-color: #e2d9eb; }
.workshops-intro .intro-ornament { color: #e1d6ed; }
.library-filter { margin-top: 28px; border: 1px solid var(--line); background: white; border-radius: 18px; padding: 23px; display: grid; align-items: end; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 17px; }
.library-filter > div { min-width: 0; }
.library-filter label { display: block; font-size: 15px; font-weight: 700; color: #3e594a; margin-bottom: 8px; }
.library-filter input, .library-filter select { width: 100%; min-height: 48px; border: 1px solid #cad8c5; background: #fcfcf8; border-radius: 10px; padding: 9px 11px; color: var(--ink); font-size: 16px; }
.library-filter input::placeholder { font-size: 14px; color: var(--muted); opacity: 1; }
.library-filter input:focus, .library-filter select:focus { border-color: var(--green); background: white; }
.library-filter .button { min-height: 48px; padding-inline: 17px; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-block: 23px 17px; }
.result-heading > p { margin: 0; font-size: 16px; font-weight: 700; color: #45664d; }
.result-heading > span { color: var(--muted); font-size: 14px; }
.library-help { margin-top: 36px; display: flex; align-items: center; gap: 17px; background: #f4f0e5; border: 1px solid #e6dfcf; border-radius: 17px; padding: 20px 25px; }
.library-help > span { color: #9f7a55; font-size: 30px; }
.library-help p { font-size: 16px; color: #6d614b; margin: 0; }
.library-empty { padding-bottom: 20px; text-align: center; }
.library-pagination { display: flex; gap: 15px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 25px; }
.library-pagination > span { font-size: 15px; color: var(--muted); }
.portal-empty { padding: 60px 30px; margin-top: 30px; text-align: center; border-radius: 24px; border: 1px solid var(--line); background: white; }
.portal-empty > span { color: #9880aa; font-size: 42px; }
.portal-empty h1, .portal-empty h2 { font-size: 28px; color: var(--deep); margin: 12px 0; }
.portal-empty p { max-width: 610px; font-size: 17px; color: var(--muted); margin: 0 auto; }
.library-empty .portal-empty { margin-top: 0; margin-bottom: 20px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); margin-block: 24px; }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-layout { max-width: 860px; margin: auto; }
.article-header { position: relative; border: 1px solid #dce4d2; border-radius: 25px; padding: 35px 38px 20px; background: #edf3e6; overflow: hidden; }
.article-header.topic-memory { background: #f0eaf7; border-color: #dfd3e9; }
.article-header.topic-organization { background: #fbf1df; border-color: #eadeca; }
.article-header.topic-support { background: #f6ebee; border-color: #e8d5df; }
.article-icon { position: absolute; left: 25px; top: 19px; opacity: .16; color: #7c6b8c; font-size: 90px; line-height: 1; pointer-events: none; }
.content-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 17px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.content-tags > span { display: inline-flex; align-items: center; gap: 5px; }
.topic-badge { color: #46603b; border: 1px solid #d1dcc7; padding: 3px 10px; border-radius: 8px; background: #fffdf6; }
.article-header h1 { font-size: 36px; color: var(--deep); margin-bottom: 15px; }
.article-summary { font-size: 18px; color: #52634e; line-height: 1.95; margin-bottom: 21px; }
.article-header-bottom { display: flex; justify-content: space-between; gap: 18px; align-items: center; border-top: 1px solid #d6dfcf; padding-top: 14px; color: var(--muted); font-size: 14px; }
.print-content { border: 0; padding: 0 5px; background: transparent; }
.article-content { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 33px 38px; margin-top: 23px; min-width: 0; }
.article-section + .article-section { border-top: 1px solid #e5ebe0; padding-top: 26px; margin-top: 28px; }
.article-section h2 { font-size: 25px; color: var(--deep); margin-bottom: 13px; }
.article-body { color: #3e574b; font-size: 18px; line-height: 2.1; overflow-wrap: anywhere; }
.educational-note { display: flex; align-items: start; gap: 13px; padding: 17px 19px; margin-top: 30px; background: #f5f1e9; border: 1px solid #e6dfd2; border-radius: 13px; }
.educational-note > span { color: #977556; font-size: 26px; line-height: 1.4; }
.educational-note p { color: #6c614e; font-size: 15px; line-height: 1.9; margin-bottom: 0; }
.source-panel { border-top: 1px solid #e2e9dc; padding-top: 25px; margin-top: 29px; }
.source-panel .section-heading { align-items: center; margin-bottom: 15px; }
.source-panel .section-heading h2 { font-size: 23px; }
.source-panel .section-heading .eyebrow { color: var(--muted); font-weight: 400; }
.source-panel .section-heading > span { display: grid; place-items: center; background: #edf3e7; border: 1px solid #dbe5d2; border-radius: 12px; width: 38px; height: 38px; color: var(--green); font-size: 23px; flex: none; }
.source-links { padding-inline-start: 21px; margin-block: 10px 18px; }
.source-links li { padding-block: 4px; color: #8f9e83; }
.source-links a { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.review-note { font-size: 14px; line-height: 1.9; color: var(--muted); padding-top: 16px; border-top: 1px dashed #d9e1d3; }
.review-note p { margin-bottom: 3px; }
.related-section { margin-top: 43px; }

/* Workshop pages keep educational materials open when a survey is closed. */
.workshop-hero { display: flex; align-items: center; gap: 28px; justify-content: space-between; border: 1px solid #d6e2cd; border-radius: 26px; padding: 32px 39px; background: #eaf2e4; }
.workshop-hero.workshop-day { background: #efe9f6; border-color: #dfd2ea; }
.workshop-hero > div { min-width: 0; max-width: 720px; }
.workshop-hero h1 { font-size: 39px; color: var(--deep); margin-bottom: 11px; }
.workshop-hero p:not(.eyebrow) { color: #53674a; font-size: 18px; line-height: 1.95; margin-bottom: 19px; }
.workshop-hero .content-tags { margin-bottom: 0; }
.workshop-hero img { flex: none; width: 208px; height: auto; }
.workshop-page-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 25px; align-items: start; }
.workshop-side { padding-top: 23px; }
.participation-card, .home-step-card { border-radius: 23px; border: 1px solid #dce5d5; background: #f0f4e9; padding: 27px 25px; }
.participation-card > span:first-child { display: block; font-size: 35px; color: #7c965e; margin-bottom: 7px; }
.participation-card h2, .home-step-card h2 { font-size: 23px; color: var(--deep); margin-bottom: 12px; }
.participation-card p:not(.eyebrow), .home-step-card p { color: #56694f; font-size: 16px; line-height: 1.95; }
.participation-card .button { font-size: 15px; width: 100%; padding-inline: 12px; }
.participation-card small { display: block; color: var(--muted); font-size: 14px; margin-top: 13px; }
.closed-pill { display: inline-block; padding: 6px 12px; border-radius: 9px; background: #e3ebda; border: 1px solid #d1dcc7; font-size: 14px; color: #526649; }
.home-step-card { margin-top: 20px; background: #fffdf9; }
.home-step-card > span { display: inline-block; color: #ac8b57; font-size: 30px; margin-bottom: 8px; }
.workshop-journey { margin-top: 44px; padding: 29px 32px; border: 1px solid var(--line); border-radius: 22px; background: #fffdf8; }
.workshop-journey h2 { font-size: 25px; color: var(--deep); margin-bottom: 20px; }
.workshop-journey ol { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; margin: 0; gap: 20px; }
.workshop-journey li { display: flex; gap: 14px; align-items: start; }
.workshop-journey li > span { display: grid; place-items: center; width: 37px; height: 37px; font-size: 23px; border: 1px solid #d1ddc7; color: var(--green); background: #ecf2e6; border-radius: 12px; flex: none; }
.workshop-journey strong { font-size: 18px; }
.workshop-journey li p { font-size: 15px; color: var(--muted); margin: 3px 0 0; }

@media (max-width: 1120px) {
  .header-inner { padding-inline: 28px; gap: 18px; }
  .portal-main { padding-inline: 28px; }
  .portal-brand { font-size: 23px; }
  .portal-nav a { padding-inline: 10px; font-size: 15px; }
  .header-actions { gap: 5px; }
  .teacher-access { padding-inline: 9px; }
  .portal-hero { gap: 26px; }
  .workshop-card { grid-template-columns: 144px 1fr; }
  .workshop-card-content { padding: 23px 19px; }
  .trust-strip { gap: 25px; flex-wrap: wrap; }
  .trust-strip > p { max-width: 400px; }
  .library-filter { grid-template-columns: 1.6fr 1fr 1fr; }
  .library-filter .button { grid-column: 1/-1; justify-self: start; min-width: 160px; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 16px; }
  .portal-nav { order: 3; flex: 1 0 100%; justify-content: center; gap: 18px; }
  .header-actions { margin-inline-start: auto; }
  .portal-hero { padding-top: 40px; }
  .portal-hero h1 { font-size: 46px; }
  .hero-description { font-size: 17px; }
  .needs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-grid > .resource-card:last-child:nth-child(odd) { grid-column: 1/-1; }
  .workshop-card { display: flex; flex-direction: column; }
  .workshop-cover { min-height: 172px; padding-top: 18px; }
  .workshop-cover img { width: 164px; height: 135px; }
  .weekly-step { gap: 17px; padding: 27px; }
  .weekly-icon { width: 45px; font-size: 51px; }
  .weekly-note { display: none; }
  .intro-ornament { left: 15px; font-size: 90px; opacity: .6; }
  .workshop-hero img { width: 151px; }
  .workshop-hero h1 { font-size: 33px; }
  .workshop-page-layout { grid-template-columns: minmax(0,1fr); }
  .workshop-side { display: grid; grid-template-columns: 1fr 1fr; padding-top: 0; gap: 21px; }
  .home-step-card { margin: 0; }
  .workshop-journey { padding: 26px; }
  .workshop-journey ol { gap: 17px; }
  .workshop-journey li { gap: 9px; }
}
@media (max-width: 650px) {
  .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 16px 18px 10px; gap: 10px; }
  .portal-brand { font-size: 22px; gap: 9px; }
  .brand-mark { width: 42px; height: 44px; border-radius: 15px 15px 15px 5px; font-size: 29px; }
  .portal-brand small { font-size: 14px; }
  .teacher-access { min-height: 44px; padding-inline: 8px; font-size: 14px; }
  .teacher-access > span { display: none; }
  .header-actions { display: contents; }
  .teacher-access { grid-row: 1; grid-column: 2; }
  .portal-nav { grid-row: 3; grid-column: 1/-1; justify-content: flex-start; gap: 3px; margin-top: 0; min-width: 0; }
  .portal-nav a { padding: 8px 12px; font-size: 15px; }
  .portal-main { padding: 0 18px 44px; }
  .portal-hero { grid-template-columns: 1fr; padding-block: 33px 22px; gap: 18px; }
  .portal-hero h1 { font-size: 43px; line-height: 1.26; margin-bottom: 19px; }
  .hero-description { font-size: 17px; margin-bottom: 21px; line-height: 1.95; }
  .eyebrow { font-size: 14px; }
  .button { font-size: 15px; padding: 10px 16px; min-height: 48px; }
  .button-row { gap: 9px; }
  .button-row .button { flex: 1; padding-inline: 10px; }
  .hero-footnote { font-size: 14px; margin-top: 16px; }
  .hero-visual { max-width: 365px; width: 100%; margin: auto; padding-block: 7px; }
  .hero-visual > img { max-height: 283px; width: auto; }
  .visual-label { padding: 6px 10px; font-size: 14px; }
  .label-top { right: 7px; top: 14px; }
  .label-bottom { left: 0; bottom: 10px; }
  .identity-strip { flex-direction: column; padding: 19px 0; gap: 16px; }
  .identity-strip strong { font-size: 16px; }
  .portal-section { margin-top: 35px; }
  .section-heading { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading > p { max-width: 133px; font-size: 14px; line-height: 1.9; }
  .section-heading > .text-link { font-size: 14px; align-self: flex-end; flex: none; }
  .needs-grid { gap: 11px; }
  .need-card { padding: 19px 16px 16px; border-radius: 17px; }
  .need-icon { width: 40px; height: 40px; font-size: 26px; border-radius: 13px; }
  .need-card h3 { font-size: 19px; margin-top: 13px; }
  .need-card p { font-size: 14px; margin-bottom: 13px; }
  .need-card .card-link { font-size: 14px; min-height: 40px; }
  .workshop-grid { grid-template-columns: 1fr; gap: 17px; }
  .workshop-card { display: grid; grid-template-columns: 114px minmax(0,1fr); border-radius: 21px; }
  .workshop-cover { padding: 44px 5px 24px; min-height: 200px; }
  .workshop-cover img { width: 109px; height: auto; }
  .cover-label { font-size: 14px; top: 16px; right: 12px; }
  .workshop-card-content { padding: 22px 17px; }
  .workshop-card h3 { font-size: 22px; }
  .workshop-card-content > p:not(.eyebrow) { font-size: 15px; margin-bottom: 13px; }
  .weekly-step { padding: 25px 22px; margin-top: 33px; }
  .weekly-icon { display: none; }
  .weekly-copy h2 { font-size: 24px; }
  .weekly-copy p:not(.eyebrow) { font-size: 16px; }
  .resource-grid { grid-template-columns: 1fr; gap: 16px; }
  .resource-grid > .resource-card:last-child:nth-child(odd) { grid-column: auto; }
  .resource-card { padding: 22px; border-radius: 19px; }
  .resource-card-top { margin-bottom: 16px; }
  .resource-card h3 { font-size: 22px; }
  .resource-card > p { margin-bottom: 17px; }
  .trust-strip { gap: 22px 30px; padding-top: 23px; margin-top: 30px; }
  .trust-strip > div { flex: 1; }
  .trust-strip strong { font-size: 30px; }
  .trust-strip > p { flex-basis: 100%; }
  .trust-strip > a { margin-inline-start: 0; min-height: 44px; display: inline-flex; align-items: center; }
  .footer-main { flex-direction: column; gap: 23px; padding: 27px 20px; }
  .footer-bottom { display: block; padding: 18px 20px; }
  .footer-bottom a { margin-top: 10px; }
  .page-intro { padding: 27px 23px; border-radius: 21px; margin-top: 24px; }
  .page-intro h1 { font-size: 33px; }
  .page-intro > p:not(.eyebrow) { font-size: 17px; line-height: 1.95; }
  .intro-ornament { font-size: 78px; top: 20px; left: 10px; }
  .library-filter { grid-template-columns: 1fr 1fr; padding: 19px; gap: 16px 12px; margin-top: 20px; }
  .library-filter .search-field { grid-column: 1/-1; }
  .library-filter label { font-size: 15px; }
  .library-filter .button { width: 100%; }
  .result-heading { padding-block: 19px 14px; gap: 12px; }
  .result-heading > span { max-width: 165px; text-align: left; font-size: 14px; }
  .library-help { align-items: flex-start; padding: 20px; gap: 11px; margin-top: 25px; }
  .library-help p { font-size: 15px; }
  .breadcrumb { margin-block: 16px; gap: 8px; }
  .article-header { padding: 25px 23px 17px; border-radius: 21px; }
  .article-header h1 { font-size: 29px; line-height: 1.6; }
  .article-summary { font-size: 17px; line-height: 1.95; }
  .content-tags { gap: 8px 11px; margin-bottom: 14px; }
  .article-header-bottom { align-items: flex-start; gap: 7px; }
  .article-header-bottom > span { max-width: 170px; }
  .print-content { font-size: 14px; flex: none; }
  .article-content { padding: 25px 23px; margin-top: 17px; border-radius: 21px; }
  .article-section h2 { font-size: 23px; }
  .article-body { font-size: 18px; line-height: 2.1; }
  .educational-note { padding: 16px; }
  .educational-note p { font-size: 15px; }
  .source-panel .section-heading h2 { font-size: 22px; }
  .source-panel .section-heading > span { display: none; }
  .source-links a { font-size: 16px; }
  .workshop-hero { flex-direction: column; align-items: flex-start; padding: 27px 23px; border-radius: 22px; gap: 19px; }
  .workshop-hero h1 { font-size: 31px; }
  .workshop-hero p:not(.eyebrow) { font-size: 17px; }
  .workshop-hero img { width: 152px; height: 128px; align-self: center; }
  .workshop-side { grid-template-columns: 1fr; gap: 17px; }
  .participation-card, .home-step-card { padding: 25px 23px; border-radius: 21px; }
  .workshop-journey { margin-top: 30px; padding: 24px; }
  .workshop-journey ol { grid-template-columns: 1fr; gap: 21px; }
  .workshop-journey li { gap: 15px; }
  .portal-empty { padding: 35px 22px; }
  .portal-empty h1, .portal-empty h2 { font-size: 25px; }
}
@media (max-width: 400px) {
  .header-inner { padding-inline: 14px; }
  .portal-nav { margin-inline-start: 0; gap: 0; }
  .portal-nav a { padding-inline: 8px; font-size: 14px; }
  .portal-brand { min-width: 0; font-size: 21px; }
  .brand-mark { width: 36px; height: 40px; flex: none; }
  .portal-main { padding-inline: 14px; }
  .portal-hero h1 { font-size: 40px; }
  .section-heading { flex-wrap: wrap; }
  .section-heading > p { max-width: none; }
  .need-card { padding: 17px 13px 13px; }
  .need-card h3 { font-size: 18px; }
  .need-card .card-link { gap: 4px; }
  .workshop-card { grid-template-columns: 94px minmax(0,1fr); }
  .workshop-card-content { padding: 19px 16px; }
  .workshop-card h3 { font-size: 21px; }
  .cover-label { font-size: 14px; right: 8px; }
  .workshop-cover img { width: 91px; }
  .library-filter { grid-template-columns: 1fr; padding: 18px; }
  .library-filter .search-field { grid-column: auto; }
  .article-content, .article-header { padding-inline: 20px; }
  .article-header h1 { font-size: 27px; }
  .article-header-bottom { flex-direction: column; }
  .article-header-bottom > span { max-width: none; }
  .content-tags { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .brand-mark, .need-icon, .resource-icon, .identity-icon, .button, .closed-pill { border: 1px solid CanvasText; }
  .portal-nav a[aria-current] { outline: 2px solid Highlight; }
  .intro-ornament, .article-icon, .cover-spark { display: none; }
}
@media print {
  body { color: black; background: white; font-size: 13pt; }
  .portal-header, .portal-footer, .portal-local-notice, .breadcrumb, .related-section, .print-content, .skip-link, .workshop-side, .hero-visual, .button-row, .visual-label, .resource-tool-bridge { display: none !important; }
  .portal-main, .article-layout { max-width: none; padding: 0; }
  .article-header, .workshop-hero, .article-content, .source-panel, .article-section { background: white !important; border: 0; padding: 0; box-shadow: none; }
  .article-header h1, .workshop-hero h1 { font-size: 23pt; }
  .article-section h2 { font-size: 17pt; break-after: avoid; }
  .article-body { font-size: 13pt; line-height: 1.9; }
  .article-section { margin-top: 25px; }
  .article-header-bottom { display: none; }
  .article-header { border-bottom: 1px solid #aaa; padding-bottom: 12px; }
  .content-tags, .review-note { color: black; }
  .source-links a { color: black; }
  .source-links a::after { content: " (" attr(href) ")"; font: 10pt Arial,sans-serif; overflow-wrap: anywhere; }
  .workshop-page-layout { display: block; }
  .educational-note { background: white; border: 1px solid #aaa; }
}
/* Shared screen surfaces; existing reading and print layouts stay intact. */
@media screen {
  .resource-card, .need-card, .workshop-card, .page-intro, .article-header { border-color: var(--ui-line, var(--line)); border-radius: var(--ui-card-radius, 22px); }
  .brand-mark { transform: none; }
}
@media screen and (max-width: 480px) {
  .workshop-card { display: flex; flex-direction: column; }
  .workshop-cover { min-height: 126px; padding: 30px 16px 12px; }
  .workshop-cover img { width: 112px; }
  .workshop-card-content { padding: 20px; }
  .workshop-card h3 { font-size: 22px; }
}
