:root {
  --ink: #102f71;
  --muted: #5c6b87;
  --line: #d8e4ff;
  --paper: #f7faff;
  --panel: #ffffff;
  --blue: #244bbb;
  --focus-blue: #8bb8ff;
  --green: #16806b;
  --red: #a74335;
  --gold: #b37a22;
  --violet: #6750a4;
  --shadow: 0 18px 50px rgba(27, 67, 153, 0.11);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.english-native-loading body {
  visibility: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: #ffffff;
  color: var(--ink);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

body.language-prompt-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.english-only-route .language-switcher,
.english-only-route .language-prompt {
  display: none !important;
}

.top-support {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 145;
  display: grid;
  gap: 5px;
  justify-items: start;
}

.top-support-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid #d8e4ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(16, 47, 113, 0.1);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.top-support-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid #1c3d9e;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(36, 75, 187, 0.28);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.top-support-button i {
  font-size: 1.05rem;
}

.top-support-button:hover {
  background: #183a9a;
}

.top-support-button:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 4px rgba(158, 216, 255, 0.38), 0 14px 34px rgba(36, 75, 187, 0.28);
  outline: none;
}

.language-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 140;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 47, 113, 0.12);
}

.language-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.language-options {
  display: flex;
  gap: 6px;
}

.language-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}

.language-button:hover,
.language-button.is-active {
  border-color: var(--focus-blue);
  background: #edf3ff;
}

.language-button.is-active {
  box-shadow: inset 0 0 0 1px #5aaee8;
}

.language-button:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 4px rgba(158, 216, 255, 0.38);
  outline: none;
}

.language-switcher.is-translating {
  opacity: 0.7;
  pointer-events: none;
}

.language-prompt {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px 15px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.language-prompt-panel {
  width: min(100%, 520px);
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 47, 113, 0.18);
  text-align: center;
}

.language-prompt-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-prompt h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.08;
}

.language-prompt p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.language-prompt-actions {
  display: grid;
  gap: 12px;
}

.language-prompt-button {
  min-height: 98px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 30px rgba(16, 47, 113, 0.07);
}

.language-prompt-button > span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #edf3ff;
  font-size: 1.65rem;
}

.language-prompt-button strong {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.1;
}

.language-prompt-button small {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.35;
}

.language-prompt-button:hover,
.language-prompt-button.is-active {
  border-color: var(--focus-blue);
  background: #f6f9ff;
}

.language-prompt-button:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 4px rgba(158, 216, 255, 0.38);
  outline: none;
}

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(36, 92, 138, 0.16), transparent 38%),
    linear-gradient(45deg, rgba(179, 122, 34, 0.14), transparent 46%),
    var(--paper);
}

.login-panel {
  width: min(100%, 520px);
  display: grid;
  gap: 18px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 4.4rem);
  text-align: left;
}

.login-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.login-field input {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.login-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 92, 138, 0.15);
}

.login-button {
  min-height: 50px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.home-screen,
.content-view {
  min-height: 100vh;
  padding: 0 18px 72px;
  background: #ffffff;
}

.home-masthead {
  margin: 0 -18px;
  padding: 25px 20%;
  border-bottom: 5px solid var(--blue);
  background: #ffffff;
}

.home-masthead p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.home-inner {
  width: 60%;
  max-width: 1180px;
  display: grid;
  gap: 64px;
  margin: 0 auto;
  padding-top: 76px;
}

.home-heading {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.home-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.08;
  white-space: nowrap;
}

.home-heading > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.home-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.workspace,
.filters,
main,
.content-inner,
.support-footer {
  width: 60%;
  max-width: 1180px;
}

.home-option {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 42px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(36, 75, 187, 0.05);
  gap: 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-option:hover {
  border-color: #96b4ff;
  box-shadow: 0 16px 34px rgba(36, 75, 187, 0.11);
  transform: translateY(-4px);
}

.home-option:focus,
.back-button:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 4px rgba(158, 216, 255, 0.38);
  outline: none;
}

.home-option-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--blue);
  flex: 0 0 auto;
}

.home-option-icon i {
  font-size: 30px;
  line-height: 1;
}

.home-option img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.home-option .home-option-title {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.24;
}

.home-option .home-option-description {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
}

.home-option .home-option-action {
  margin-top: auto;
  color: var(--blue);
  font-size: 1.02rem;
  font-weight: 900;
}

.home-option-action b {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.3em;
  transition: transform 160ms ease;
}

.home-option:hover .home-option-action b {
  transform: translateX(5px);
}

.upcoming-option {
  background: #f9fbff;
}

.back-button {
  min-height: 42px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  padding: 0 14px;
  font-weight: 900;
}

.standalone-module .back-button {
  display: none !important;
}

.content-view > .back-button {
  position: fixed;
  top: 82px;
  left: 18px;
}

.content-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 62px 0 36px;
}

.content-heading {
  margin-bottom: 24px;
}

.content-heading h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.content-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(23, 32, 39, 0.06);
}

.content-card h2 {
  font-size: 1.35rem;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.challenge-intro {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.challenge-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(23, 32, 39, 0.06);
}

.challenge-panel p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.challenge-panel .challenge-lead {
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.18;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.deliverable-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #f6fbff;
  border: 1px solid #cfe7f7;
  border-radius: 8px;
}

.deliverable-card h2 {
  font-size: 1.06rem;
}

.deliverable-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.challenge-card {
  border-color: #cfe7f7;
}

.content-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.content-number,
.content-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #f1f5f4;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.content-number {
  background: var(--ink);
  color: white;
}

.mini-section {
  display: grid;
  gap: 8px;
}

.mini-section h3 {
  font-size: 0.98rem;
}

.mini-section ul,
.mini-section ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.52;
}

.lesson-area {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.header-back {
  position: absolute;
  top: 88px;
  left: 18px;
  z-index: 2;
}

.app-header {
  position: relative;
  background:
    linear-gradient(135deg, rgba(36, 92, 138, 0.12), transparent 38%),
    linear-gradient(45deg, rgba(34, 113, 96, 0.12), transparent 45%),
    #fffaf2;
  border-bottom: 1px solid var(--line);
}

.workspace,
.filters,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.workspace {
  padding: 46px 0 28px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.15rem;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 300px);
  gap: 12px;
  padding: 0 0 28px;
}

.search-field,
.select-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.search-field input,
.select-field select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.search-field input:focus,
.select-field select:focus,
.card-button:focus,
.close-button:focus,
.question-button:focus,
.docx-button:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 92, 138, 0.15);
}

main {
  padding: 30px 0 64px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.category-section {
  margin: 0 0 34px;
}

.category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.category-heading h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.45rem);
}

.category-heading span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
  gap: 16px;
}

.experiment-card {
  min-height: 395px;
  display: grid;
  grid-template-rows: 154px auto;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(23, 32, 39, 0.06);
}

.visual {
  position: relative;
  min-height: 154px;
  background:
    linear-gradient(135deg, rgba(36, 92, 138, 0.78), rgba(34, 113, 96, 0.78)),
    linear-gradient(45deg, #f5d59d, #f6f0e4);
  color: white;
}

.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-weight: 900;
  font-size: 1.05rem;
}

.badge-row {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.card-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-row span {
  padding: 5px 8px;
  background: #f1f5f4;
  border-radius: 999px;
}

.card-button,
.close-button,
.video-link,
.question-button,
.docx-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.question-button {
  background: white;
  color: var(--ink);
}

.docx-button {
  border-color: #5aaee8;
  background: #eaf7ff;
  color: #17435f;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-link {
  background: white;
  color: var(--ink);
}

.detail-dialog {
  width: min(980px, calc(100% - 24px));
  max-height: min(88vh, 900px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
  background: rgba(23, 32, 39, 0.52);
}

.detail-panel {
  position: relative;
  background: white;
}

.close-button {
  position: sticky;
  top: 12px;
  z-index: 3;
  float: right;
  margin: 12px 12px 0 0;
  background: white;
  color: var(--ink);
}

.detail-content {
  padding: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #111;
  border-radius: 8px;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cover-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #eef6fb;
  border: 1px solid #d8e9f4;
  border-radius: 8px;
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-fallback {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.content-cover {
  margin: 2px 0 4px;
}

.detail-cover {
  align-self: start;
}

.detail-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.detail-section ul,
.detail-section ol {
  margin: 10px 0 0;
  padding-left: 22px;
  line-height: 1.62;
}

.detail-section p {
  margin: 10px 0 0;
  line-height: 1.64;
}

.questions-section {
  background: #f5f9f7;
  margin: 0 -18px;
  padding: 18px;
  border: 1px solid #d6e7df;
  border-radius: 8px;
}

.plan-b-section {
  background: #eef8ff;
  margin: 0 -18px;
  padding: 18px;
  border: 1px solid #c7e7fb;
  border-radius: 8px;
}

.safety {
  padding: 12px 14px;
  background: #fff5dc;
  border: 1px solid #edcf88;
  border-radius: 8px;
  color: #5a4212;
}

.sources {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.sources p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.55;
}

.sources ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sources li {
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sources a {
  color: var(--blue);
  font-weight: 800;
  text-underline-offset: 3px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.support-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  justify-content: center;
}

.support-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5aaee8;
  border-radius: 8px;
  background: #eaf7ff;
  color: #17435f;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.support-button:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 4px rgba(158, 216, 255, 0.38);
  outline: none;
}

@media (max-width: 860px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .home-options {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .top-support {
    top: 10px;
    left: 10px;
    gap: 4px;
  }

  .top-support-label {
    min-height: 18px;
    padding: 0 6px;
    font-size: 0.66rem;
  }

  .top-support-button {
    min-height: 38px;
    gap: 6px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .top-support-button i {
    font-size: 0.95rem;
  }

  .language-switcher {
    position: fixed;
    top: 10px;
    right: 10px;
    width: max-content;
    max-width: calc(100% - 20px);
    margin: 0;
    padding: 8px;
  }

  .language-label {
    display: none;
  }

  .language-button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .workspace,
  .filters,
  main {
    width: min(100% - 20px, 1180px);
  }

  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  .home-inner h1 {
    font-size: clamp(2.6rem, 14vw, 4.8rem);
  }

  .home-option {
    min-height: 118px;
    padding: 16px;
  }

  .home-option img {
    width: 58px;
    height: 58px;
  }

  .category-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .experiment-grid {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding: 22px 16px;
  }
}

/* Modern blue visual system inspired by the membership-library reference. */
.content-view > .back-button {
  z-index: 21;
}

.back-button {
  border-color: var(--blue);
  color: var(--blue);
}

.content-heading {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 4px solid var(--blue);
}

.content-card,
.challenge-panel {
  padding: 24px;
  background: #ffffff;
  border: 2px solid var(--line);
  box-shadow: 0 8px 20px rgba(36, 75, 187, 0.05);
}

.deliverable-card {
  background: #f7f9ff;
  border-color: var(--line);
}

.app-header {
  background: #ffffff;
  border-bottom: 5px solid var(--blue);
}

.workspace {
  padding: 64px 0 34px;
}

.search-field input,
.select-field select {
  border: 2px solid var(--line);
}

.category-heading {
  border-bottom: 3px solid var(--blue);
}

.experiment-grid {
  gap: 20px;
}

.experiment-card {
  border: 2px solid var(--line);
  box-shadow: 0 8px 20px rgba(36, 75, 187, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.experiment-card:hover {
  border-color: #96b4ff;
  box-shadow: 0 16px 34px rgba(36, 75, 187, 0.11);
  transform: translateY(-3px);
}

.visual {
  background: #dfeaff;
}

.meta-row span {
  background: #eef3ff;
}

.card-button,
.close-button,
.video-link,
.question-button,
.docx-button {
  border-color: var(--blue);
  background: var(--blue);
}

.question-button,
.video-link,
.close-button {
  background: #ffffff;
  color: var(--blue);
}

.docx-button,
.support-button {
  border-color: #9bb8ff;
  background: #edf3ff;
  color: var(--blue);
}

@media (max-width: 860px) {
  .home-inner {
    width: min(100%, 680px);
    padding-top: 54px;
  }

  .workspace,
  .filters,
  main,
  .content-inner,
  .support-footer {
    width: min(100% - 32px, 680px);
  }

  .home-option {
    min-height: 350px;
  }
}

@media (max-width: 620px) {
  .home-screen {
    padding: 0 14px 48px;
  }

  .home-masthead {
    margin: 0 -14px;
    padding: 20px 18px;
  }

  .home-masthead p {
    max-width: 190px;
    font-size: 0.9rem;
  }

  .home-inner {
    gap: 28px;
    padding-top: 92px;
  }

  .content-inner {
    padding-top: 96px;
  }

  .home-heading h1 {
    font-size: 1.65rem;
  }

  .home-option {
    min-height: 380px;
    padding: 30px;
  }

  .home-option-icon {
    width: 82px;
    height: 82px;
  }

  .home-option img {
    width: 70px;
    height: 70px;
  }

  .home-option .home-option-title {
    font-size: 1.55rem;
  }
}

/* Mobile-first layout: compact by default, expanded only on wider screens. */
.home-screen,
.content-view {
  padding-right: 15px;
  padding-left: 15px;
}

.home-inner,
.content-inner {
  width: 100%;
  max-width: 680px;
}

.workspace,
.filters,
main,
.support-footer {
  width: calc(100% - 30px);
  max-width: 680px;
}

.workspace {
  padding-top: 98px;
}

.home-inner {
  gap: 36px;
  padding-top: 96px;
}

.content-inner {
  padding-top: 96px;
}

.home-heading {
  gap: 12px;
}

.home-heading h1,
.workspace h1,
.content-heading h1 {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  font-size: 1.65rem;
  line-height: 1.2;
  text-align: center;
}

.home-heading h1,
.workspace h1 {
  white-space: nowrap;
}

.home-heading > p:last-child {
  font-size: 0.98rem;
}

.home-options,
.content-grid,
.compact-grid,
.experiment-grid,
.deliverables-grid {
  grid-template-columns: minmax(0, 1fr);
}

.home-options {
  gap: 34px;
}

.home-option {
  min-height: 0;
  gap: 16px;
  padding: 24px;
}

.home-option-icon {
  width: 58px;
  height: 58px;
}

.home-option,
.content-card,
.challenge-panel,
.deliverable-card,
.experiment-card,
.detail-dialog,
.questions-section,
.plan-b-section,
.sources li,
.empty-state {
  border-radius: 8px;
}

.home-option .home-option-title {
  font-size: 1.45rem;
}

.home-option .home-option-description {
  font-size: 0.98rem;
}

.filters {
  grid-template-columns: minmax(0, 1fr);
}

.search-field input,
.select-field select,
.card-button,
.question-button,
.docx-button,
.back-button,
.support-button {
  min-height: 48px;
}

.content-inner {
  padding-top: 84px;
}

.content-heading {
  text-align: center;
}

.category-heading {
  align-items: flex-start;
  flex-direction: column;
}

.experiment-card {
  min-width: 0;
}

@media (max-width: 360px) {
  .home-heading h1,
  .workspace h1,
  .content-heading h1 {
    font-size: 1.4rem;
  }
}

@media (min-width: 861px) {
  .home-screen,
  .content-view {
    padding-right: 0;
    padding-left: 0;
  }

  .home-inner,
  .workspace,
  .filters,
  main,
  .content-inner,
  .support-footer {
    width: 60%;
    max-width: 1180px;
  }

  .home-inner {
    gap: 64px;
    padding-top: 76px;
  }

  .workspace {
    padding-top: 46px;
  }

  .content-inner {
    padding-top: 62px;
  }

  .home-heading h1,
  .workspace h1,
  .content-heading h1 {
    font-size: 2.7rem;
  }

  .home-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .home-option {
    min-height: 0;
    gap: 18px;
    padding: 34px;
  }

  .home-option-icon {
    width: 64px;
    height: 64px;
  }

  .home-option .home-option-title {
    font-size: 1.7rem;
  }

  .content-grid,
  .compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .experiment-grid {
    grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
  }

  .deliverables-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .filters {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 300px);
  }

  .category-heading {
    align-items: end;
    flex-direction: row;
  }
}

/* Academic alignment */
.academic-preview {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.grade-fit {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.grade-fit strong {
  color: var(--ink);
}

.ngss-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.academic-label,
.ngss-code {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.academic-label {
  background: var(--ink);
  color: #ffffff;
}

.ngss-code {
  border: 1px solid #b9cdfc;
  background: #f1f5ff;
  color: #183f9d;
}

.academic-alignment-section {
  display: grid;
  gap: 16px;
}

.detail-dialog {
  overflow-x: hidden;
}

.detail-content,
.detail-hero > * {
  min-width: 0;
}

.grade-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}

.grade-overview > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.grade-overview dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.grade-overview dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.academic-alignment-section .grade-note,
.academic-alignment-section .alignment-disclaimer {
  margin: 0;
}

.ngss-standards-list {
  display: grid;
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.ngss-standards-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ngss-standards-list a {
  color: var(--blue);
  font-weight: 900;
  text-underline-offset: 3px;
}

.ngss-standards-list span,
.alignment-disclaimer {
  color: var(--muted);
  line-height: 1.55;
}

.alignment-disclaimer {
  font-size: 0.82rem;
}

.ngss-source-link {
  width: fit-content;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

/* Detailed support footer */
.support-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 48px 0 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--line);
  background: #f4f7ff;
}

.support-footer-inner {
  width: calc(100% - 30px);
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  gap: 24px;
  align-items: center;
}

.support-copy {
  display: grid;
  gap: 8px;
}

.support-eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-copy h2 {
  font-size: 1.45rem;
}

.support-copy > p:not(.support-eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-copy .support-response {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.support-footer .support-button {
  width: 100%;
  min-height: 64px;
  display: inline-flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(36, 75, 187, 0.18);
}

.support-footer .support-button i {
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.support-footer .support-button span {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.support-footer .support-button strong,
.support-footer .support-button small {
  overflow-wrap: anywhere;
}

.support-footer .support-button small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.88;
}

@media (max-width: 520px) {
  .questions-section,
  .plan-b-section {
    margin-right: 0;
    margin-left: 0;
  }

  .grade-overview,
  .ngss-standards-list li {
    grid-template-columns: 1fr;
  }

  .ngss-standards-list li {
    gap: 5px;
  }
}

@media (min-width: 861px) {
  .support-footer-inner {
    width: 60%;
    max-width: 1180px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 52px;
    padding: 44px 0;
  }
}
