/* Shared neutral workspace surfaces and a distinct archive route. */
body::before { display: none; }
body { background: #f7f8f7; overflow-x: clip; }
.archive-entry { display: inline-flex; align-items: center; gap: 22px; margin-top: 22px; padding: 12px 22px; border: 1px solid #c6d4cb; border-radius: 24px; background: rgba(255,255,255,.92); color: #135c3c; text-decoration: none; font-size: 15px; font-weight: 550; }
.archive-entry span { transition: transform .2s; }
.archive-entry:hover span { transform: translateX(4px); }
.archive-entry:focus-visible, .archive-back:focus-visible { outline: 2px solid #147344; outline-offset: 4px; }

/* Equal columns and consistent content rhythm across all three grades. */
/* Current-course cards read top-to-bottom: identity first, image second. */
#homeView .grade-story { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#homeView .grade-story .story-copy { order: 1; flex: 0 0 auto; padding: 22px 22px 18px; }
#homeView .grade-story .story-media { order: 2; height: auto; min-height: 0 !important; aspect-ratio: 4 / 5; flex: none; background: #eef1ed; }
#homeView .story-media img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
#homeView .story-copy .section-label { margin: 0 0 8px; font-size: 16px; color: #1b6345; font-weight: 600; }
#homeView .story-copy .story-date { margin: 0 0 8px; color: #718077; font-size: 13px; line-height: 1.5; }
#homeView .story-copy h3 { min-height: 0; margin: 0; font-size: 25px; line-height: 1.35; font-weight: 600; }
#homeView .story-copy .text-link, #homeView .story-status { margin-top: 16px; }
#homeView .story-media { cursor: default; }
#homeView .story-stats { display: none; }

body:is(.archive-page,.theme-page) .topbar { position: fixed; left: 0; right: 0; height: 72px; min-height: 72px; padding: 12px max(40px, calc((100vw - 1240px) / 2)); background: rgba(255,255,255,.94); border-bottom: 1px solid #e1e6e2; box-shadow: none; }
body:is(.archive-page,.theme-page) .site-nav a { font-size: 14px; }
#archive { min-height: calc(100svh - 90px); padding: 118px 0 64px; background: #f8faf8; border: 0; }
#archive .prototype-container { width: min(calc(100% - 80px),1240px); }
.archive-back { display: inline-block; margin-bottom: 32px; color: #486454; font-size: 14px; text-decoration: none; }
#archive .editorial-heading { margin-bottom: 32px; }
#archive .editorial-heading h2 { font-size: 42px; font-weight: 600; }
#archive .directory-tools { padding-bottom: 14px; border-bottom: 1px solid #dce3dd; margin-bottom: 24px; }
#archive .theme-directory { gap: 30px; }
#archive .age-group { grid-template-columns: 160px minmax(0,1fr); }
#archive .age-label { border-top: 2px solid #208154; color: #1c6447; }
#archive .theme-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 30px; padding-left: 30px; }
#archive .theme-row { display: grid; grid-template-columns: 88px minmax(0,1fr) 20px; min-height: 66px; padding: 15px 0; gap: 10px; }
#archive .theme-month { grid-column: 1; grid-row: 1; font-family: inherit; margin: 0; font-size: 12px; }
#archive .theme-name { grid-column: 2; grid-row: 1; margin: 0; }
#archive .theme-name strong { font-size: 14px; line-height: 1.6; }
#archive .theme-name small { display: none; }
#archive .theme-arrow { grid-column: 3; grid-row: 1; width: 20px; display: grid; }
#archive .theme-search input:focus-visible { outline: 2px solid #147344; outline-offset: 3px; }

#themeView { padding-top: 72px; color: #24312a; }
#themeView .theme-hero { background: #fff; border-bottom: 1px solid #e1e6e2; min-height: 0; }
#themeView .theme-hero-inner { min-height: 0; padding: 32px 0 36px; }
#themeView .back-button { margin-bottom: 24px; font-size: 14px; }
#themeView .theme-title { color: #1f2e25; font-size: 52px; line-height: 1.2; font-weight: 600; }
#themeView .theme-kicker { color: #536c5d; }
#themeView .theme-meta { color: #5a675f; font-size: 15px; line-height: 1.7; }
#themeView .plan-download { background: #fff; border-color: #d7e1da; color: #24543b; }
#themeView .file-symbol { background: #edf2ee; color: #37614a; border-radius: 6px; }
#themeView .theme-workspace { background: transparent; }
#themeView .content-nav { top: 72px; margin-bottom: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid #dde4df; }
#themeView .content-nav button { color: #59675e; background: transparent; }
#themeView .content-nav button.active { color: #145c38; background: #eaf2ec; border-bottom-color: #277247; }
#themeView .content-nav button small { color: #65766a; }
#themeView .workspace-shell { padding-top: 40px; padding-bottom: 70px; }
#themeView .workspace-heading { margin-bottom: 26px; }
#themeView .workspace-heading h2 { font-size: 32px; line-height: 1.35; font-weight: 550; color: #25352b; }
#themeView .week-summary { color: #69766e; font-size: 13px; }
#themeView .week-tabs { background: #fff; border: 1px solid #dce4de; border-radius: 6px; }
#themeView .week-tab { background: #fff; color: #3d4e42; padding: 16px 20px; }
#themeView .week-tab strong { color: inherit; font-weight: 550; }
#themeView .week-tab small { color: #677a6c; }
#themeView .week-tab.active { background: #e8f1eb; color: #155c37; box-shadow: inset 0 -2px #2f7850; }
#themeView .week-panel { background: transparent; border: 0; box-shadow: none; padding-top: 28px; margin-top: 0; }
#themeView .week-panel-header { background: transparent; padding: 0 0 22px; margin-bottom: 0; }
#themeView .week-panel-header h2 { font-size: 23px; font-weight: 550; color: #293c2f; }
#themeView .activity-row { background: transparent; border-color: #dce4de; padding-top: 22px; padding-bottom: 22px; }
#themeView .activity-title h4 { color: #26372d; font-size: 18px; font-weight: 550; }
#themeView .activity-index, #themeView .activity-day { color: #718077; }
#themeView .resource-action { background: #fff; color: #24573c; border-color: #cfdbd2; box-shadow: none; }
#themeView .region-entry, #themeView .environment-list { color: #293c30; }
#themeView .activity-row { grid-template-columns: 82px minmax(0, 1fr) auto; }
#themeView .activity-row .activity-actions { grid-column: 3; }
#themeView .resource-hub { display: block; }
#themeView .environment-item.text-only { display: block; }
#themeView .region-detail-line { display: block !important; }
#themeView #regionView .reveal, #themeView #resourceView .reveal { animation: none; opacity: 1; transform: none; }
#themeView:has(#regionView:not([hidden])) .theme-hero,
#themeView:has(#resourceView:not([hidden])) .theme-hero { background: #f0f6f1; }

/* Resource sub-pages: factual, image-led layouts without placeholder numerals. */
#themeView .regionView, #themeView .resourceView { background: #fbfcfa; }
#themeView #regionView, #themeView #resourceView { background: #fbfcfa; }
#themeView #regionView .workspace-heading, #themeView #resourceView .workspace-heading { margin-bottom: 24px; }
#themeView #regionView .workspace-heading h2, #themeView #resourceView .workspace-heading h2 { font-size: 32px; }
#themeView .region-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; }
#themeView .region-entry { min-height: 92px; padding: 18px 20px; border: 1px solid #dce6df; border-radius: 8px; background: #fff; grid-template-columns: minmax(0,1fr) auto; }
#themeView .region-entry:hover { padding-left: 20px; padding-right: 20px; background: #f1f7f2; border-color: #a9c8b4; }
#themeView .region-copy strong { font-size: 20px; color: #1c5f42; }
#themeView .region-count { align-self: end; }
#themeView .region-number, #themeView .region-visual span, #themeView .region-text-index span { display: none; }
#themeView .region-detail { padding-top: 6px; }
#themeView #regionView:has(#regionDetail:not([hidden])) > .workspace-heading { display: none; }
#themeView .region-detail-heading { margin-bottom: 26px; }
#themeView .region-detail-heading h3 { font-size: 38px; color: #1c5f42; }
#themeView .region-activity-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
#themeView .region-activity, #themeView .region-activity:nth-child(3n + 1) { grid-column: auto; min-width: 0; }
#themeView .region-visual, #themeView .region-activity:nth-child(3n + 1) .region-visual { min-height: 0; height: auto; aspect-ratio: auto; border-radius: 8px; background: #eef3ee; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#themeView .region-visual img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }
#themeView button.region-visual { width: 100%; border: 0; padding: 0; color: inherit; background: #eef3ee; text-align: left; cursor: zoom-in; }
#themeView .region-visual::after { display: none; }
#themeView .region-activity-copy { padding: 14px 2px 0; }
#themeView .region-activity-copy > p { display: none; }
#themeView .region-activity-copy h4 { font-size: 18px; line-height: 1.45; color: #26382d; }
#themeView .region-detail-line { display: flex; gap: 8px; margin: 8px 0 0; color: #68766c; font-size: 13px; line-height: 1.6; }
#themeView .region-detail-line strong { flex: 0 0 auto; color: #397052; font-weight: 600; }
#themeView .region-text-index { min-height: 0; padding: 14px 0; border-top: 1px solid #dce6df; border-bottom: 1px solid #dce6df; }
#themeView .region-text-index em { color: #68766c; }
#themeView .region-activity:has(.region-text-index) { padding-top: 6px; }
#themeView #resourceView .resource-hub { border-top: 0; }
#themeView .environment-photo-panel { width: 100%; }
#themeView .environment-photo-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 0 18px; border-bottom: 1px solid #dce6df; }
#themeView .environment-photo-header h3 { margin: 0; font-size: 22px; font-weight: 550; color: #293c30; }
#themeView .environment-photo-header > span { color: #68766c; font-size: 12px; }
#themeView .environment-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; padding-top: 24px; }
#themeView .environment-photo-card { min-width: 0; }
#themeView .environment-photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #eef3ee; }
#themeView .environment-photo-card > div { padding-top: 12px; }
#themeView .environment-photo-card span { color: #4f7660; font-size: 12px; }
#themeView .environment-photo-card h4 { margin: 5px 0 0; color: #26382d; font-size: 17px; line-height: 1.45; font-weight: 550; overflow-wrap: anywhere; }
#themeView .environment-photo-panel .empty-state { padding: 48px 0; text-align: center; border-bottom: 1px solid #dce6df; }
#themeView .topic-activity-panel { width: 100%; }
#themeView .topic-activity-header, #themeView .topic-detail-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid #dce6df; }
#themeView .topic-activity-header h3, #themeView .topic-detail-header h3 { margin: 0; color: #293c30; font-size: 26px; font-weight: 600; }
#themeView .topic-activity-header > span, #themeView .topic-detail-section header > span { color: #68766c; font-size: 12px; }
#themeView .topic-activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; padding-top: 22px; }
#themeView .topic-activity-card { display: grid; grid-template-columns: 116px minmax(0, 1fr) 18px; align-items: center; gap: 16px; min-width: 0; border: 1px solid #dce6df; border-radius: 8px; padding: 14px; color: #26382d; background: #fff; text-align: left; cursor: pointer; }
#themeView .topic-activity-card:hover { border-color: #9fc1aa; background: #fbfdfb; }
#themeView .topic-activity-card img { width: 116px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: #eef3ee; }
#themeView .topic-activity-card.text-only { grid-template-columns: minmax(0, 1fr) 18px; min-height: 112px; }
#themeView .topic-activity-copy { display: grid; gap: 6px; min-width: 0; }
#themeView .topic-activity-copy small { color: #4f7660; font-size: 12px; }
#themeView .topic-activity-copy strong { overflow-wrap: anywhere; font-size: 18px; line-height: 1.4; }
#themeView .topic-activity-copy em { overflow-wrap: anywhere; color: #68766c; font-size: 13px; font-style: normal; line-height: 1.5; }
#themeView .topic-activity-meta { color: #68766c; font-size: 12px; line-height: 1.5; }
#themeView .topic-activity-card > b { color: #4f7660; font-size: 20px; }
#themeView .topic-detail-panel { width: 100%; }
#themeView .topic-detail-header { align-items: start; padding: 0 0 22px; }
#themeView .topic-detail-header p:last-child { max-width: 680px; margin: 10px 0 0; color: #68766c; line-height: 1.7; }
#themeView .topic-detail-section { margin-top: 26px; }
#themeView .topic-detail-section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #dce6df; }
#themeView .topic-detail-section h4 { margin: 0; color: #293c30; font-size: 18px; }
#themeView .topic-document-list { display: grid; gap: 8px; padding-top: 12px; }
#themeView .topic-document-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid #edf1ee; padding: 8px 0; color: #26382d; text-decoration: none; }
#themeView .topic-document-link span { color: #4f7660; font-size: 12px; font-weight: 700; }
#themeView .topic-document-link strong { overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
#themeView .topic-document-link b { color: #4f7660; font-size: 18px; }
#themeView .topic-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 16px; }
#themeView .topic-photo-button { min-width: 0; border: 0; padding: 0; color: #68766c; background: transparent; text-align: left; cursor: pointer; }
#themeView .topic-photo-button img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #eef3ee; }
#themeView .topic-photo-button span { display: block; overflow-wrap: anywhere; padding-top: 7px; font-size: 12px; }
#themeView .environment-intro { display: block; padding: 4px 0 28px; border-bottom: 1px solid #dce6df; }
#themeView .environment-intro p { margin: 0; font-size: 13px; color: #68766c; }
#themeView .environment-list { padding: 26px 0 0; border-bottom: 0; }
#themeView .environment-list header { grid-template-columns: 1fr auto; padding-bottom: 14px; }
#themeView .environment-list header h3 { font-size: 18px; color: #293c30; }
#themeView .environment-item { grid-template-columns: minmax(180px, 320px) minmax(0, 1fr); padding: 18px 0; gap: 24px; }
#themeView .environment-item.text-only { grid-template-columns: 180px minmax(0, 1fr); }
#themeView .environment-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #eef3ee; }
#themeView .environment-item > div { min-width: 0; }
#themeView .environment-item > div > span { display: block; margin-bottom: 8px; color: #4f7660; font-size: 12px; }
#themeView .environment-item p { font-size: 18px; line-height: 1.6; color: #26382d; }
#themeView .environment-item small { display: block; margin-top: 8px; color: #68766c; line-height: 1.7; }
#themeView .information-row { margin-top: 34px; padding: 28px 0; border-top: 1px solid #dce6df; }
@media (max-width: 1100px) and (min-width: 821px) {
  #homeView .grade-story .story-copy { padding: 22px 14px; }
  #homeView .story-copy h3 { font-size: 22px; }
}
@media (max-width: 820px) {
  body:is(.archive-page,.theme-page) .topbar { padding: 10px 20px; height: 104px; min-height: 104px; flex-wrap: wrap; gap: 8px; }
  body:is(.archive-page,.theme-page) .brand-logo { width: 34px; height: 34px; }
  body:is(.archive-page,.theme-page) .brand-copy strong { font-size: 14px; }
  body:is(.archive-page,.theme-page) .brand-copy small { display: none; }
  body:is(.archive-page,.theme-page) .site-nav { width: 100%; justify-content: space-between; gap: 16px; }
  body:is(.archive-page,.theme-page) .site-nav a:not(.nav-upload) { display: block; }
  body:is(.archive-page,.theme-page) .site-nav .nav-upload { padding: 5px 10px; }
  #homeView .grade-story { min-height: 0; }
  #homeView .grade-story .story-copy { padding: 20px 18px 16px; }
  #homeView .grade-story .story-media { height: auto; min-height: 0 !important; aspect-ratio: 4 / 5; }
  #homeView .story-copy h3 { font-size: 23px; }
  #archive { padding: 138px 0 48px; }
  #archive .prototype-container { width: calc(100% - 40px); }
  #archive .editorial-heading h2 { font-size: 34px; }
  #archive .age-group { display: block; }
  #archive .theme-grid { grid-template-columns: 1fr; padding-left: 0; border-left: 0; background: transparent; gap: 0; }
  #archive .theme-row { grid-template-columns: 78px minmax(0,1fr) 18px; min-height: 62px; background: transparent; padding: 12px 0; }
  #themeView { padding-top: 104px; }
  #themeView .content-nav { top: 104px; }
  #themeView .theme-title { font-size: 38px; }
  #themeView .theme-hero-inner { padding: 28px 0; gap: 20px; }
  #themeView .theme-meta { font-size: 14px; }
  #themeView .workspace-heading h2 { font-size: 27px; }
  #themeView .workspace-shell { padding-top: 28px; }
  #themeView .week-tab { padding: 13px 16px; }
  #themeView .week-summary { padding-top: 0; }
  #themeView .activity-row { grid-template-columns: 60px minmax(0, 1fr); }
  #themeView .activity-row .activity-actions { grid-column: 1 / -1; }
  #themeView .region-directory, #themeView .region-activity-list { grid-template-columns: 1fr; gap: 12px; }
  #themeView .region-entry { min-height: 76px; }
  #themeView .region-detail-heading h3 { font-size: 32px; }
  #themeView .environment-photo-grid { grid-template-columns: 1fr; gap: 20px; }
  #themeView .environment-photo-header { align-items: start; flex-direction: column; gap: 8px; }
  #themeView .topic-activity-list, #themeView .topic-photo-grid { grid-template-columns: 1fr; }
  #themeView .topic-activity-card { grid-template-columns: 92px minmax(0, 1fr) 16px; gap: 12px; }
  #themeView .topic-activity-card img { width: 92px; }
  #themeView .topic-activity-card.text-only { grid-template-columns: minmax(0, 1fr) 16px; }
  #themeView .topic-activity-copy strong { font-size: 16px; }
  #themeView .environment-intro h2 { font-size: 28px; }
  #themeView .environment-item, #themeView .environment-item.text-only { grid-template-columns: 1fr; gap: 12px; }
  #themeView .environment-item.text-only { grid-template-columns: 1fr; }
  #themeView .environment-item img { max-height: 240px; }
}
