:root {
  --ink: #0f172a;
  --navy: #081733;
  --navy-2: #10264d;
  --lime: #a7f36d;
  --lime-2: #75cf55;
  --mint: #eaffdf;
  --sky: #54d6ff;
  --coral: #ff9f6e;
  --cloud: #f6f9fc;
  --white: #ffffff;
  --muted: #637083;
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 45px rgba(8, 23, 51, 0.16);
  --radius: 8px;
  --page-gutter: clamp(18px, 2.2vw, 42px);
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Poppins", var(--font-body);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.38), rgba(246, 249, 252, 0) 280px),
    var(--cloud);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(8, 23, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 23, 51, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(167, 243, 109, 0.14), transparent 34%),
    linear-gradient(245deg, rgba(84, 214, 255, 0.12), transparent 38%),
    linear-gradient(180deg, transparent, rgba(255, 159, 110, 0.08));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 11px var(--page-gutter);
  border-bottom: 1px solid rgba(167, 243, 109, 0.2);
  background:
    linear-gradient(90deg, rgba(9, 28, 61, 0.98), rgba(6, 16, 34, 0.96)),
    var(--navy);
  color: var(--white);
  box-shadow: 0 12px 34px rgba(8, 23, 51, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(167, 243, 109, 0.24);
  border-radius: 11px;
  object-fit: cover;
  box-shadow:
    0 0 18px rgba(167, 243, 109, 0.24),
    0 8px 20px rgba(0, 0, 0, 0.22);
}

.brand-wordmark {
  display: grid;
  gap: 1px;
  line-height: 0.95;
  white-space: nowrap;
}

.brand-wordmark span:first-child {
  color: var(--white);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.brand-wordmark span:last-child {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(167, 243, 109, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a,
.menu-toggle {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  border-color: rgba(167, 243, 109, 0.45);
  color: var(--white);
  background: rgba(167, 243, 109, 0.12);
}

.nav-links a.nav-cta {
  color: #071323;
  background: var(--lime);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible,
.nav-links a.nav-cta.is-active {
  border-color: rgba(255, 255, 255, 0.38);
  color: #071323;
  background: #ddffb2;
}

.nav-account {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 8px 5px 5px;
  border: 1px solid rgba(167, 243, 109, 0.32);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-menu-button:hover,
.account-menu-button:focus-visible,
.nav-account.is-open .account-menu-button {
  border-color: rgba(167, 243, 109, 0.74);
  color: var(--white);
  background: rgba(167, 243, 109, 0.14);
}

.account-menu-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 180ms ease;
}

.nav-account.is-open .account-menu-button svg {
  transform: rotate(180deg);
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #071323;
  background: linear-gradient(135deg, var(--lime), #62dce8);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 0 22px rgba(167, 243, 109, 0.24);
}

.account-avatar.is-large {
  width: 42px;
  height: 42px;
  font-size: 0.9rem;
}

.account-menu-name {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(167, 243, 109, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(9, 28, 61, 0.98), rgba(6, 16, 34, 0.98));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-account.is-open .account-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.account-dropdown-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-dropdown-head span:last-child {
  display: grid;
  min-width: 0;
}

.account-dropdown-head strong,
.account-dropdown-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown-head strong {
  color: var(--white);
  font-size: 0.94rem;
}

.account-dropdown-head small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-dropdown-actions {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.account-dropdown-actions a,
.account-dropdown-actions button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.account-dropdown-actions a:hover,
.account-dropdown-actions a:focus-visible,
.account-dropdown-actions button:hover,
.account-dropdown-actions button:focus-visible {
  border-color: rgba(167, 243, 109, 0.3);
  color: #071323;
  background: var(--lime);
}


.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
}

.app-shell {
  min-height: calc(100vh - 154px);
}

.section-band {
  width: 100%;
  padding: 76px var(--page-gutter);
}

.ad-placement {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 104px;
  margin: 22px 0;
  padding: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(234, 255, 223, 0.34), rgba(227, 247, 255, 0.3)),
    rgba(255, 255, 255, 0.74);
}

.app-shell > .ad-placement {
  width: calc(100% - (var(--page-gutter) * 2));
  margin-right: var(--page-gutter);
  margin-left: var(--page-gutter);
}

.section-band > .ad-placement {
  margin-top: 0;
  margin-bottom: 28px;
}

.tutorial-reader-body > .ad-placement {
  margin: 26px 0 32px;
}

.ad-placement[hidden] {
  display: none;
}

.ad-placement-label {
  position: absolute;
  top: 5px;
  left: 12px;
  color: #7b8798;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 70px;
}

.ad-placement--inline {
  min-height: 132px;
}

.ad-placement--inline .adsbygoogle {
  min-height: 96px;
}
.ad-placement--placeholder {
  border: 1px dashed rgba(117, 207, 85, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(234, 255, 223, 0.72), rgba(227, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.82);
}

.ad-placeholder {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 76px;
  color: #23431f;
  text-align: center;
}

.ad-placeholder span {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-placeholder strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.dark-band {
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(167, 243, 109, 0.16), transparent 28%),
    linear-gradient(315deg, rgba(84, 214, 255, 0.12), transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--navy);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: min(640px, calc(100vh - 96px));
  padding-top: 42px;
  padding-bottom: 58px;
  color: var(--white);
  background: var(--navy);
}

.hero-background,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background {
  object-fit: cover;
  object-position: center;
  animation: hero-drift 14s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 13, 31, 0.98) 0%, rgba(4, 13, 31, 0.9) 35%, rgba(4, 13, 31, 0.38) 68%, rgba(4, 13, 31, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 23, 51, 0.12), rgba(8, 23, 51, 0.48));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 58vw);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--sky), var(--coral));
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.45rem, 4.4vw, 4.6rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.8vw, 4.8rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
}

h3 {
  font-size: 1.24rem;
}

p {
  line-height: 1.7;
}

.hero-text {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.hero-actions,
.admin-actions,
.chip-row,
.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #071323;
  background: linear-gradient(135deg, var(--lime), #ddffb2);
  box-shadow: 0 14px 34px rgba(167, 243, 109, 0.3);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  color: var(--white);
  background: var(--navy);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.button.danger {
  border-color: rgba(202, 63, 63, 0.24);
  color: #9d2525;
  background: #fff4f1;
}

.hero-scroll-cue {
  position: absolute;
  right: var(--page-gutter);
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-scroll-cue span {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), var(--sky));
}
.hero-logo-badge {
  position: absolute;
  top: 50%;
  right: clamp(42px, 7vw, 132px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(158px, 16vw, 252px);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transform-style: preserve-3d;
  isolation: isolate;
  animation: hero-logo-float 7s cubic-bezier(0.45, 0.05, 0.35, 0.95) infinite;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.38));
}

.hero-logo-badge::before,
.hero-logo-badge::after,
.hero-logo-orbit,
.hero-logo-orbit::before {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-logo-badge::before {
  inset: -25px;
  z-index: 0;
  background:
    conic-gradient(from 0deg,
      transparent 0 10%,
      rgba(167, 243, 109, 0.28) 15%,
      rgba(167, 243, 109, 1) 22%,
      rgba(84, 214, 255, 0.92) 30%,
      transparent 39% 64%,
      rgba(167, 243, 109, 0.7) 72%,
      transparent 82% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  opacity: 0.95;
  animation: hero-logo-ring 4.6s linear infinite;
}

.hero-logo-badge::after {
  inset: -42px;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(167, 243, 109, 0.38) 0 28%, rgba(84, 214, 255, 0.18) 43%, transparent 70%);
  opacity: 0.66;
  transform: scale(0.86);
  animation: hero-logo-pulse 4.2s ease-in-out infinite;
}

.hero-logo-orbit {
  z-index: 3;
  display: block;
  pointer-events: none;
}

.hero-logo-orbit::before {
  width: 11px;
  height: 11px;
  top: 50%;
  right: -5px;
  background: var(--lime);
  box-shadow:
    0 0 12px rgba(167, 243, 109, 0.95),
    0 0 26px rgba(84, 214, 255, 0.55);
  transform: translateY(-50%);
}

.hero-logo-orbit--outer {
  inset: -16px;
  border: 1px solid rgba(167, 243, 109, 0.36);
  animation: hero-logo-orbit 3.8s linear infinite;
}

.hero-logo-orbit--inner {
  inset: 8px;
  border: 1px dashed rgba(84, 214, 255, 0.32);
  animation: hero-logo-orbit 6.2s linear infinite reverse;
}

.hero-logo-orbit--inner::before {
  width: 8px;
  height: 8px;
  right: -4px;
  background: var(--sky);
  box-shadow:
    0 0 10px rgba(84, 214, 255, 0.9),
    0 0 20px rgba(167, 243, 109, 0.45);
}

.hero-logo-badge img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(167, 243, 109, 0.46);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 34px rgba(167, 243, 109, 0.38),
    0 0 0 8px rgba(84, 214, 255, 0.08),
    0 22px 42px rgba(0, 0, 0, 0.32);
  animation: hero-logo-breathe 5.8s ease-in-out infinite;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading > div {
  max-width: 760px;
}

.section-intro {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  border-bottom: 2px solid var(--lime-2);
  color: #245c26;
  font-weight: 800;
}

.section-heading .eyebrow {
  color: #3a8c2f;
}

.outcome-band {
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.08), transparent 34%),
    var(--white);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.outcome-card {
  min-height: 210px;
  padding: 24px 24px 26px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.outcome-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  color: #071323;
  font-weight: 800;
  background: var(--lime);
}

.outcome-card p {
  margin-bottom: 0;
  color: #526176;
}

.technology-banner {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 510px;
  color: var(--white);
  background: var(--navy);
}

.technology-banner-background,
.technology-banner-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.technology-banner-background {
  object-fit: cover;
  object-position: center;
}

.technology-banner-shade {
  background:
    linear-gradient(90deg, rgba(8, 23, 51, 0.08) 0%, rgba(8, 23, 51, 0.2) 46%, rgba(8, 23, 51, 0.93) 72%, rgba(8, 23, 51, 0.98) 100%),
    linear-gradient(0deg, rgba(8, 23, 51, 0.4), transparent 48%);
}

.technology-banner-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 46vw);
  margin-left: auto;
}

.technology-banner-copy h2 {
  max-width: 600px;
}

.technology-banner-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.78);
}

.technology-track-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.technology-track-list span {
  padding: 8px 10px;
  border: 1px solid rgba(167, 243, 109, 0.3);
  border-radius: var(--radius);
  color: #eaffdf;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(8, 23, 51, 0.5);
  backdrop-filter: blur(10px);
}
.static-review-content,
.policy-page {
  display: grid;
  gap: 22px;
}

.static-review-content {
  padding-top: 92px;
}

.static-review-content h1 {
  max-width: 860px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.static-review-content > p {
  max-width: 860px;
  color: #405065;
  font-size: 1.05rem;
  line-height: 1.75;
}

.static-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.static-review-grid article,
.policy-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(8, 23, 51, 0.08);
}

.static-review-grid h2,
.policy-card h2 {
  margin-top: 0;
  font-size: 1.12rem;
}

.static-review-grid p,
.policy-card p {
  margin-bottom: 0;
  color: #526176;
  line-height: 1.72;
}
@media (max-width: 760px) {
  .static-review-grid {
    grid-template-columns: 1fr;
  }
}
.learning-strip {
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.18), rgba(84, 214, 255, 0.1)),
    var(--white);
}

.course-launch-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 34px 0;
  border-top: 1px solid rgba(8, 23, 51, 0.14);
  border-bottom: 1px solid rgba(8, 23, 51, 0.14);
}

.course-launch-panel > div:first-child {
  max-width: 720px;
}

.course-launch-panel h3 {
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.course-launch-panel p {
  margin-bottom: 0;
  color: #405065;
}

.course-launch-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.feature-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  padding: 14px 0;
}

.feature-note h3 {
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.feature-note p {
  color: #405065;
}

.kicker {
  color: #3a8c2f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.program-grid,
.article-grid,
.article-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.article-rail {
  align-items: stretch;
}

.program-card,
.article-card,
.admin-card,
.subject-admin-panel,
.reading-callout,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(8, 23, 51, 0.08);
}

.program-card,
.article-card {
  overflow: hidden;
  transition:
    transform 190ms ease,
    box-shadow 190ms ease,
    border-color 190ms ease;
}

.program-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.program-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(117, 207, 85, 0.42);
  box-shadow: var(--shadow);
}

.program-card[hidden],
.article-card[hidden] {
  display: none;
}

.program-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(167, 243, 109, 0.22), rgba(84, 214, 255, 0.18)),
    var(--navy);
}

.program-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--sky), var(--coral));
}

.program-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-visual > img + .program-label,
.program-visual > img ~ .program-signal {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.program-visual.has-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 19, 35, 0.3), rgba(7, 19, 35, 0.72)),
    linear-gradient(135deg, rgba(167, 243, 109, 0.16), rgba(84, 214, 255, 0.12));
}

.program-label,
.program-signal {
  position: relative;
  z-index: 2;
  max-width: 100%;
  font-weight: 800;
}

.program-label {
  align-self: flex-start;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
}


.program-signal {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.card-body {
  padding: 20px;
}

.tag-row {
  margin-bottom: 12px;
}

.tag-row span,
.chip-row span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: var(--radius);
  color: #24501f;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--mint);
}

.tag-row span:nth-child(2),
.meta-row span:nth-child(2),
.chip-row span:nth-child(2n) {
  color: #0f4f68;
  background: #e3f7ff;
}

.card-body p {
  margin: 12px 0 0;
  color: #526176;
}

.course-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-card-body h3,
.course-card-body p,
.course-modal-section p {
  margin: 0;
}

.course-card-description {
  line-height: 1.65;
}

.course-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding: 12px 13px;
  border: 1px solid rgba(117, 207, 85, 0.32);
  border-radius: var(--radius);
  color: #163413;
  background: linear-gradient(135deg, rgba(230, 255, 218, 0.95), rgba(227, 247, 255, 0.82));
}

.course-price > span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.course-price > div {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  text-align: right;
}

.course-price del {
  color: #7c8797;
  font-size: 0.88rem;
  font-weight: 700;
}

.course-price strong {
  color: #10241a;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.course-price.is-empty strong {
  font-size: 0.95rem;
}

.course-details-button {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  border-color: rgba(20, 53, 22, 0.18);
  color: #143516;
  background: rgba(245, 249, 255, 0.92);
}

.course-details-button:hover,
.course-details-button:focus-visible {
  border-color: rgba(117, 207, 85, 0.55);
  background: rgba(230, 255, 218, 0.92);
}

.course-detail-body {
  display: grid;
  gap: 13px;
  padding: 8px 0 2px;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.course-detail-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: #f5f9ff;
}

.course-detail-grid small {
  color: #627086;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.course-detail-grid strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.course-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-topic-list span {
  padding: 7px 9px;
  border-radius: var(--radius);
  color: #0f4f68;
  font-size: 0.78rem;
  font-weight: 800;
  background: #e3f7ff;
}

.course-inquiry-link {
  width: 100%;
  justify-content: center;
}

body.course-modal-open {
  overflow: hidden;
}

.course-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.course-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 13, 27, 0.72);
  backdrop-filter: blur(12px);
}

.course-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  width: min(1060px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(3, 10, 22, 0.38);
}

.course-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
  background: rgba(8, 23, 51, 0.62);
}

.course-modal-close:hover,
.course-modal-close:focus-visible {
  background: rgba(8, 23, 51, 0.86);
}

.course-modal-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(167, 243, 109, 0.18), rgba(84, 214, 255, 0.18)),
    var(--navy);
}

.course-modal-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-modal-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 23, 51, 0.22), rgba(8, 23, 51, 0.82)),
    linear-gradient(135deg, rgba(117, 207, 85, 0.14), rgba(84, 214, 255, 0.12));
}

.course-modal-visual span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-modal-content {
  display: grid;
  gap: 18px;
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  padding: 38px;
}

.course-modal-content h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.course-modal-content > p:not(.eyebrow) {
  margin: 0;
  color: #526176;
  font-size: 1.02rem;
  line-height: 1.75;
}

.course-modal-section {
  display: grid;
  gap: 9px;
}

.course-modal-section > span {
  color: #3a8c2f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.outcome-line {
  font-weight: 700;
}

.meta-row {
  margin-top: 16px;
}

.featured-card {
  min-height: 100%;
}

.article-card a {
  display: grid;
  height: 100%;
  color: inherit;
}

.article-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(167, 243, 109, 0.9), rgba(84, 214, 255, 0.68)),
    var(--navy-2);
}

.article-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-visual.has-subject-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 19, 35, 0.08), rgba(7, 19, 35, 0.58)),
    linear-gradient(135deg, rgba(167, 243, 109, 0.08), rgba(84, 214, 255, 0.1));
}

.article-fallback-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(8, 23, 51, 0.28);
}

.article-subject-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 32px);
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  background: rgba(8, 23, 51, 0.46);
  backdrop-filter: blur(10px);
}

.article-visual::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--sky), var(--coral));
}

.chip-row {
  margin-top: 18px;
}

.reading-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding: 18px 20px;
}

.reading-callout span {
  color: #3a8c2f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reading-callout a {
  color: #24501f;
  font-weight: 800;
}

.page-title {
  padding-top: 68px;
  padding-bottom: 52px;
}

.page-title.slim h1 {
  max-width: 780px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.tutorial-shell {
  background: #f8fbfd;
}

.subject-strip {
  position: sticky;
  top: 76px;
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(8, 23, 51, 0.08);
  backdrop-filter: blur(14px);
}

.subject-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #344156;
  font-weight: 800;
  white-space: nowrap;
  background: var(--white);
}

.subject-strip a img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  background: #eef2f6;
}

.subject-strip a:hover,
.subject-strip a:focus-visible,
.subject-strip a.is-active {
  border-color: rgba(117, 207, 85, 0.58);
  color: #071323;
  background: var(--mint);
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px var(--page-gutter) 24px;
}

.topic-sidebar,
.tutorial-reader-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(8, 23, 51, 0.08);
}

.topic-sidebar {
  position: sticky;
  top: 146px;
  max-height: calc(100vh - 168px);
  overflow: auto;
  padding: 18px;
}

.subject-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #eef2f6;
}

.topic-sidebar .eyebrow {
  color: #3a8c2f;
}

.topic-sidebar h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.topic-list {
  display: grid;
  gap: 8px;
}

.topic-list a {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #243247;
  background: #fbfdff;
}

.topic-list a:hover,
.topic-list a:focus-visible,
.topic-list a.is-active {
  border-color: rgba(117, 207, 85, 0.58);
  background: var(--mint);
}

.topic-list a.is-active {
  color: var(--white);
  background: var(--navy);
}

.topic-list span {
  font-weight: 800;
}

.topic-list small {
  color: var(--muted);
  font-weight: 700;
}

.topic-list a.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.tutorial-reader-panel {
  height: calc(100vh - 122px);
  overflow: auto;
}

.tutorial-reader-header {
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(234, 255, 223, 0.8), rgba(227, 247, 255, 0.78)),
    var(--white);
}

.tutorial-reader-header .eyebrow {
  color: #3a8c2f;
}

.tutorial-reader-header h1 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.tutorial-reader-header p {
  max-width: 780px;
  color: #405065;
}

.tutorial-reader-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.tutorial-reader-actions .meta-row {
  margin-top: 0;
}

.tutorial-full-view-button {
  gap: 8px;
  flex: 0 0 auto;
}

.reader-action-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tutorial-reader-body {
  max-width: 860px;
  padding: 34px;
  color: #1d293b;
  font-size: 1.05rem;
}

.tutorial-reader-body h1,
.tutorial-reader-body h2,
.tutorial-reader-body h3 {
  margin: 32px 0 14px;
  color: var(--ink);
}

.tutorial-reader-body h1 {
  font-size: 2.35rem;
}

.tutorial-reader-body h2 {
  font-size: 1.75rem;
}

.tutorial-reader-body p,
.tutorial-reader-body li,
.tutorial-reader-body blockquote {
  line-height: 1.82;
}

.tutorial-reader-body ul {
  padding-left: 1.2rem;
}

.tutorial-reader-body blockquote {
  margin: 26px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--lime-2);
  color: #405065;
  background: var(--mint);
}

.tutorial-reader-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2f6;
}

.tutorial-reader-body a {
  color: #276fda;
  font-weight: 700;
  text-decoration: underline;
}

.tutorial-video {
  margin: 0 0 34px;
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #071323;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 42px rgba(8, 23, 51, 0.14);
}

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

.tutorial-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 34px 28px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

body.tutorial-full-view-open {
  overflow: hidden;
}

.tutorial-full-view-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(8px, 1.5vw, 24px);
}

.tutorial-full-view-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(4, 12, 27, 0.82);
  backdrop-filter: blur(10px);
  cursor: default;
}

.tutorial-full-view-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1720px, calc(100vw - clamp(12px, 2vw, 36px)));
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: #f8fbfd;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.tutorial-full-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px 18px 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.12), rgba(84, 214, 255, 0.08)),
    var(--navy);
}

.tutorial-full-view-toolbar > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tutorial-full-view-toolbar span {
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tutorial-full-view-toolbar strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorial-full-view-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.tutorial-full-view-close:hover,
.tutorial-full-view-close:focus-visible {
  border-color: rgba(167, 243, 109, 0.62);
  color: var(--lime);
  background: rgba(167, 243, 109, 0.12);
}

.tutorial-full-view-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.tutorial-toc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.tutorial-toc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tutorial-toc-switch span {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.tutorial-toc-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.tutorial-toc-switch input:checked + span {
  background: var(--lime);
}

.tutorial-toc-switch input:checked + span::after {
  transform: translateX(16px);
}

.tutorial-toc-switch:focus-within {
  outline: 2px solid rgba(167, 243, 109, 0.7);
  outline-offset: 2px;
}

.tutorial-full-view-shell {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  min-height: 0;
}

.tutorial-full-view-dialog.is-menu-collapsed .tutorial-full-view-shell {
  grid-template-columns: minmax(0, 1fr);
}

.tutorial-full-view-dialog.is-menu-collapsed .tutorial-full-view-toc {
  display: none;
}

.tutorial-full-view-toc {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.56), rgba(255, 255, 255, 0.72)),
    #ffffff;
}

.tutorial-full-view-toc-card {
  position: sticky;
  top: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.tutorial-full-view-toc-card > span {
  color: #3a8c2f;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tutorial-full-view-toc-card > strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
}

.tutorial-full-view-toc nav {
  display: grid;
  gap: 6px;
}

.tutorial-full-view-toc button {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #41526a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  background: transparent;
}

.tutorial-full-view-toc button span {
  display: block;
  overflow-wrap: anywhere;
}

.tutorial-full-view-toc button:hover,
.tutorial-full-view-toc button:focus-visible,
.tutorial-full-view-toc button.is-active {
  border-color: rgba(117, 207, 85, 0.42);
  color: #17320f;
  background: rgba(234, 255, 223, 0.88);
}

.tutorial-full-view-toc button.is-title {
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(8, 23, 51, 0.08);
}

.tutorial-full-view-toc button.is-level-2 {
  padding-left: 20px;
}

.tutorial-full-view-toc button.is-level-3,
.tutorial-full-view-toc button.is-level-4 {
  padding-left: 30px;
  color: #65748a;
  font-size: 0.76rem;
}

.tutorial-full-view-heading,
.tutorial-full-view-body [data-full-view-section] {
  scroll-margin-top: 24px;
}

.tutorial-full-view-dialog.is-menu-collapsed .tutorial-full-view-body {
  max-width: 1240px;
}
.tutorial-full-view-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.34), transparent 260px),
    #f8fbfd;
}

.tutorial-full-view-body {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px clamp(28px, 4vw, 64px) 90px;
  font-size: 1.08rem;
}

.tutorial-full-view-heading {
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.tutorial-full-view-heading h1 {
  max-width: 860px;
  margin-top: 0;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
}

.tutorial-full-view-heading > p:not(.eyebrow) {
  max-width: 760px;
  color: #405065;
  font-size: 1.08rem;
}

.inquiry-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 26px;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.16), rgba(84, 214, 255, 0.09)),
    #f8fbfd;
}

.inquiry-copy {
  padding: 6px 0;
}

.inquiry-copy h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.inquiry-copy p {
  max-width: 560px;
  color: #405065;
}

.inquiry-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.inquiry-points span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: #24501f;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--mint);
}

.inquiry-form {
  display: grid;
  gap: 15px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  margin-bottom: 26px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

label span {
  color: #344156;
  font-size: 0.86rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--radius);
  outline: none;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lime-2);
  box-shadow: 0 0 0 4px rgba(167, 243, 109, 0.22);
}

.rich-editor-field {
  display: grid;
  gap: 8px;
}

.tutorial-import-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(234, 255, 219, 0.76), rgba(235, 249, 255, 0.82));
}

.tutorial-import-field input {
  min-height: 40px;
}

.tutorial-import-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.tutorial-import-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(117, 207, 85, 0.34);
  border-radius: 999px;
  color: #24531d;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.82);
}

.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;
}

.rich-editor-source {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.rich-editor-shell {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: var(--white);
}

.rich-editor-shell:focus-within {
  border-color: var(--lime-2);
  box-shadow: 0 0 0 4px rgba(167, 243, 109, 0.22);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #fbfdff, #f4f8f5);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.format-group {
  padding: 0;
}

.rich-toolbar select {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  padding: 8px 34px 8px 12px;
  border: 0;
  border-radius: 8px;
  color: #1c2a3d;
  font-size: 0.82rem;
  font-weight: 800;
  background-color: transparent;
}

.rich-icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #1d293b;
  background: transparent;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.toolbar-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rich-icon-button:hover,
.rich-icon-button:focus-visible,
.rich-toolbar select:focus {
  color: #102033;
  background: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(117, 207, 85, 0.45);
}

.rich-icon-button:active {
  background: #ddffb2;
}

.rich-icon-button.is-active {
  color: #102033;
  background: #ddffb2;
  box-shadow: inset 0 0 0 1px rgba(117, 207, 85, 0.62);
}

.rich-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #fbfdff;
}

.rich-image-toolbar[hidden] {
  display: none;
}

.image-delete-group {
  margin-left: auto;
  border-color: rgba(220, 38, 38, 0.22);
}

.image-delete-group .rich-icon-button {
  color: #dc2626;
}

.image-delete-group .rich-icon-button:hover,
.image-delete-group .rich-icon-button:focus-visible {
  color: #b91c1c;
  background: #fff1f2;
  box-shadow: inset 0 0 0 1px #fecaca;
}

.rich-insert-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(170px, 0.8fr) minmax(180px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #fbfdff;
}

.rich-insert-panel[hidden] {
  display: none;
}

.rich-insert-panel input {
  min-height: 40px;
}
.rich-diagram-panel {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
}

.diagram-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.diagram-panel-head strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.diagram-panel-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.diagram-symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.diagram-symbol-button {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  color: #102033;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.diagram-symbol-button:hover,
.diagram-symbol-button:focus-visible {
  border-color: rgba(148, 233, 111, 0.72);
  box-shadow: 0 10px 24px rgba(21, 91, 57, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.diagram-symbol-button span {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: pre;
}

.diagram-symbol-button small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.upload-field {
  gap: 6px;
}

.upload-field small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cover-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  background: #fbfdff;
}

.cover-preview.is-visible {
  border-style: solid;
  color: #26364d;
}

.cover-preview.has-error {
  border-color: rgba(191, 72, 72, 0.28);
  color: #8b2c2c;
  background: #fff8f8;
}

.cover-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f6;
}

.document-upload-group {
  display: grid;
  gap: 10px;
}

.document-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--radius);
  background: #fbfdff;
}

.document-preview > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.document-preview span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.document-preview strong {
  overflow: hidden;
  color: #183153;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-preview.is-visible {
  border-style: solid;
  border-color: rgba(70, 152, 55, 0.25);
  background: #f7fff5;
}

.document-preview-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.tutorial-resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #f8fbff;
}

.tutorial-resource > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tutorial-resource > div span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tutorial-resource > div strong {
  overflow-wrap: anywhere;
}

.tutorial-resource .button {
  flex: 0 0 auto;
}

input[type="file"] {
  padding: 10px;
  background: #fbfdff;
}

.rich-panel-actions {
  display: flex;
  gap: 8px;
}

.rich-panel-actions .button {
  min-height: 40px;
  white-space: nowrap;
}

.rich-editor-area {
  min-height: 380px;
  max-height: 680px;
  overflow: auto;
  padding: 24px 26px;
  outline: none;
  color: #1d293b;
  font-weight: 500;
  line-height: 1.78;
  background: linear-gradient(180deg, #ffffff, #fcfefd);
}

.rich-editor-area:empty::before {
  color: #8390a3;
  content: attr(data-placeholder);
  pointer-events: none;
}

.rich-editor-area h1,
.rich-editor-area h2,
.rich-editor-area h3,
.rich-editor-area h4 {
  margin: 18px 0 10px;
  color: var(--ink);
}

.rich-editor-area h1 {
  font-size: 2rem;
}

.rich-editor-area h2 {
  font-size: 1.55rem;
}

.rich-editor-area h3 {
  font-size: 1.24rem;
}

.rich-editor-area p {
  margin: 0 0 14px;
}

.rich-editor-area ul,
.rich-editor-area ol {
  margin: 0 0 16px;
  padding-left: 1.35rem;
}

.rich-editor-area blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--lime-2);
  color: #405065;
  background: var(--mint);
}

.rich-editor-area pre,
.reader-body pre,
.tutorial-reader-body pre {
  position: relative;
  overflow: auto;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(94, 208, 232, 0.22);
  border-left: 4px solid rgba(151, 245, 100, 0.92);
  border-radius: 8px;
  color: #d9fce2;
  background: linear-gradient(135deg, #07111f 0%, #0d1b2d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 34px rgba(7, 17, 31, 0.18);
  tab-size: 2;
  white-space: pre;
  scrollbar-color: rgba(151, 245, 100, 0.52) rgba(255, 255, 255, 0.08);
}

.rich-editor-area pre code,
.reader-body pre code,
.tutorial-reader-body pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-family: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.7;
  overflow-wrap: normal;
  white-space: pre;
  background: transparent;
}
.rich-editor-area pre[data-diagram="true"],
.reader-body pre[data-diagram="true"],
.tutorial-reader-body pre[data-diagram="true"] {
  color: #12382a;
  background: linear-gradient(135deg, #f8fff3 0%, #eefcff 100%);
  border: 1px solid rgba(94, 208, 232, 0.36);
  border-left: 5px solid var(--lime-2);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  white-space: pre;
}

.rich-editor-area pre[data-diagram="true"] code,
.reader-body pre[data-diagram="true"] code,
.tutorial-reader-body pre[data-diagram="true"] code {
  color: inherit;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: normal;
  white-space: pre;
}
.rich-editor-area pre div,
.rich-editor-area pre p,
.reader-body pre div,
.reader-body pre p,
.tutorial-reader-body pre div,
.tutorial-reader-body pre p {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}
.rich-editor-area table,
.reader-body table,
.tutorial-reader-body table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.rich-editor-area th,
.rich-editor-area td,
.reader-body th,
.reader-body td,
.tutorial-reader-body th,
.tutorial-reader-body td {
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  text-align: left;
  vertical-align: top;
}

.rich-editor-area th,
.reader-body th,
.tutorial-reader-body th {
  color: #152236;
  font-weight: 900;
  background: #eaffdb;
}

.rich-editor-area hr,
.reader-body hr,
.tutorial-reader-body hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: rgba(15, 23, 42, 0.14);
}

.rich-editor-area figure,
.reader-body figure,
.tutorial-reader-body figure {
  margin: 28px 0;
}

.rich-editor-area figure[data-image-figure],
.reader-body figure[data-image-figure],
.tutorial-reader-body figure[data-image-figure] {
  position: relative;
  text-align: center;
}

.rich-editor-area figure[data-align="left"],
.reader-body figure[data-align="left"],
.tutorial-reader-body figure[data-align="left"] {
  text-align: left;
}

.rich-editor-area figure[data-align="right"],
.reader-body figure[data-align="right"],
.tutorial-reader-body figure[data-align="right"] {
  text-align: right;
}

.rich-editor-area img,
.reader-body img,
.tutorial-reader-body img {
  width: auto;
  max-width: 100%;
  max-height: 620px;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(8, 23, 51, 0.12);
}

.rich-editor-area figure[data-image-figure] [data-image-frame],
.reader-body figure[data-image-figure] [data-image-frame],
.tutorial-reader-body figure[data-image-figure] [data-image-frame] {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(8, 23, 51, 0.12);
  vertical-align: top;
}

.rich-editor-area figure[data-image-figure] [data-image-frame] img,
.reader-body figure[data-image-figure] [data-image-frame] img,
.tutorial-reader-body figure[data-image-figure] [data-image-frame] img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  vertical-align: top;
}

.rich-editor-area figure[data-crop="wide"] [data-image-frame],
.reader-body figure[data-crop="wide"] [data-image-frame],
.tutorial-reader-body figure[data-crop="wide"] [data-image-frame] {
  aspect-ratio: 16 / 9;
}

.rich-editor-area figure[data-crop="square"] [data-image-frame],
.reader-body figure[data-crop="square"] [data-image-frame],
.tutorial-reader-body figure[data-crop="square"] [data-image-frame] {
  aspect-ratio: 1 / 1;
}

.rich-editor-area figure[data-crop="wide"] [data-image-frame] img,
.reader-body figure[data-crop="wide"] [data-image-frame] img,
.tutorial-reader-body figure[data-crop="wide"] [data-image-frame] img,
.rich-editor-area figure[data-crop="square"] [data-image-frame] img,
.reader-body figure[data-crop="square"] [data-image-frame] img,
.tutorial-reader-body figure[data-crop="square"] [data-image-frame] img {
  height: 100%;
  object-fit: cover;
}

.rich-editor-area figure.is-selected {
  outline: 2px solid rgba(117, 207, 85, 0.82);
  outline-offset: 8px;
}

.rich-image-resize-handle {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: #3a8c2f;
  box-shadow: 0 4px 12px rgba(8, 23, 51, 0.22);
  cursor: nwse-resize;
}

.rich-editor-area figcaption,
.reader-body figcaption,
.tutorial-reader-body figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.filter-empty {
  display: none;
  margin: 26px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.filter-empty.is-visible {
  display: block;
}

.reader-shell {
  background: var(--white);
}

.reader-hero {
  padding: 72px var(--page-gutter) 64px;
}

.reader-hero h1 {
  max-width: 850px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

.reader-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--lime);
  font-weight: 800;
}

.reader-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 84px;
  color: #1d293b;
  font-size: 1.08rem;
}

.reader-body h1,
.reader-body h2,
.reader-body h3 {
  margin: 34px 0 14px;
  color: var(--ink);
}

.reader-body h1 {
  font-size: 2.4rem;
}

.reader-body h2 {
  font-size: 1.8rem;
}

.reader-body p,
.reader-body li,
.reader-body blockquote {
  line-height: 1.82;
}

.reader-body ul {
  padding-left: 1.2rem;
}

.reader-body blockquote {
  margin: 26px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--lime-2);
  color: #405065;
  background: var(--mint);
}

.reader-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2f6;
}

.reader-body a {
  color: #276fda;
  font-weight: 700;
  text-decoration: underline;
}

.admin-shell {
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.12), rgba(84, 214, 255, 0.08)),
    #f8fbfd;
}

.admin-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 154px);
  background:
    linear-gradient(135deg, rgba(8, 23, 51, 0.96), rgba(16, 38, 77, 0.94)),
    var(--navy);
}

.admin-login-copy {
  color: var(--white);
}

.admin-login-copy h1 {
  max-width: 620px;
  font-size: clamp(2.2rem, 4.5vw, 4.25rem);
}

.admin-login-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.admin-dashboard-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(167, 243, 109, 0.36);
  border-radius: 14px;
  color: #071323;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--lime);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.admin-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.admin-login-points span {
  display: inline-flex;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.admin-auth-column {
  display: grid;
  justify-items: center;
  width: 100%;
}

.admin-auth-column .login-panel {
  width: min(100%, 520px);
  margin: 0;
}

.login-panel h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.login-panel .button {
  width: 100%;
}

.admin-dashboard-shell {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: calc(100vh - 154px);
  padding-top: 24px;
  padding-bottom: 34px;
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.72), rgba(246, 249, 252, 0.96) 280px),
    #f6f9fc;
}

.admin-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 255, 0.9)),
    var(--white);
  box-shadow: 0 16px 38px rgba(8, 23, 51, 0.1);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-sidebar-brand span {
  display: grid;
  gap: 2px;
}

.admin-sidebar-brand strong {
  color: var(--navy);
  font-family: var(--font-display);
}

.admin-sidebar-brand small,
.admin-sidebar-card small,
.admin-sidebar-user small {
  color: var(--muted);
  font-weight: 700;
}

.admin-dashboard-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(94px, 1fr));
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-tabs.admin-dashboard-nav button {
  display: grid;
  gap: 3px;
  justify-items: start;
  width: 100%;
  min-height: 78px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #314057;
  background: #fbfdff;
}

.admin-tabs.admin-dashboard-nav button span {
  overflow-wrap: anywhere;
  font-weight: 900;
}

.admin-tabs.admin-dashboard-nav button small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-tabs.admin-dashboard-nav button.is-active {
  border-color: rgba(117, 207, 85, 0.48);
  color: #071323;
  background:
    linear-gradient(135deg, rgba(167, 243, 109, 0.74), rgba(227, 247, 255, 0.74)),
    var(--white);
}

.admin-sidebar-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(117, 207, 85, 0.2), rgba(84, 214, 255, 0.12)),
    var(--navy);
}

.admin-sidebar-card span,
.admin-sidebar-user span {
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-sidebar-card strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.admin-sidebar-card small {
  color: rgba(255, 255, 255, 0.72);
}

.admin-sidebar-user {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.admin-sidebar-user span {
  overflow-wrap: anywhere;
}

.admin-main {
  min-width: 0;
}

.admin-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(8, 23, 51, 0.08);
}

.admin-topline > div:not(.admin-actions) {
  display: grid;
  gap: 3px;
}

.admin-topline h1 {
  max-width: 700px;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.admin-topline span,
.muted {
  color: var(--muted);
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 255, 223, 0.58)),
    var(--white);
  box-shadow: 0 12px 34px rgba(8, 23, 51, 0.08);
}

.admin-stat-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(227, 247, 255, 0.72)),
    var(--white);
}

.admin-stat-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 239, 229, 0.7)),
    var(--white);
}

.admin-stat-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 246, 0.84)),
    var(--white);
}

.admin-stat-card span {
  display: inline-flex;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: var(--radius);
  color: #24501f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--mint);
}

.admin-stat-card strong {
  display: block;
  margin-top: 16px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
}

.admin-stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(8, 23, 51, 0.08);
}

.admin-tabs button {
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  background: transparent;
}

.admin-tabs button.is-active {
  color: #071323;
  background: linear-gradient(135deg, var(--lime), #ddffb2);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.admin-workbench {
  display: grid;
  gap: 18px;
}

.admin-subject-tabs-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(8, 23, 51, 0.08);
}

.admin-subject-tabs-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.admin-subject-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-subject-tabs button {
  display: grid;
  gap: 4px;
  min-width: 150px;
  min-height: 64px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #314057;
  text-align: left;
  background: #fbfdff;
}

.admin-subject-tabs button span {
  font-weight: 900;
}

.admin-subject-tabs button small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-subject-tabs button.is-active {
  border-color: rgba(117, 207, 85, 0.62);
  color: #071323;
  background:
    linear-gradient(135deg, rgba(167, 243, 109, 0.72), rgba(227, 247, 255, 0.74)),
    var(--white);
  box-shadow: inset 0 0 0 1px rgba(117, 207, 85, 0.2);
}

.admin-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.security-setup-panel,
.password-panel {
  display: grid;
  gap: 16px;
}

.setup-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.15rem;
  color: #405065;
  line-height: 1.6;
}

.setup-list code {
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--navy);
  background: #eef2f6;
}

.auth-link {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #276fda;
  font-weight: 800;
  text-decoration: underline;
  background: transparent;
}

.password-panel {
  margin-bottom: 18px;
}


.site-navigation-panel {
  display: grid;
  gap: 18px;
}

.site-navigation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-navigation-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #dbe8f5;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f5fff3);
  cursor: pointer;
}

.site-navigation-toggle input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--lime);
}

.site-navigation-toggle span {
  display: grid;
  gap: 4px;
}

.site-navigation-toggle strong {
  color: var(--navy);
  font-size: 1rem;
}

.site-navigation-toggle small {
  color: var(--muted);
  font-weight: 800;
}
.password-panel h2 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.password-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 100%;
  padding-top: 25px;
}

.subject-admin-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.subject-admin-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.subject-admin-copy .eyebrow {
  color: #3a8c2f;
}

.subject-admin-copy h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.subject-admin-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.subject-admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 12px;
  align-items: end;
}

.subject-cover-field,
.subject-cover-upload,
.subject-visibility-field,
.subject-admin-form .cover-preview,
.subject-form-actions {
  grid-column: 1 / -1;
}

.subject-form-actions,
.subject-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.subject-form-actions {
  align-items: center;
}

.subject-admin-actions {
  justify-content: flex-end;
}

.subject-admin-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.subject-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.subject-admin-item.is-editing {
  border-color: rgba(117, 207, 85, 0.58);
  background: var(--mint);
}

.subject-admin-item.is-public-hidden {
  border-color: #fecaca;
  background: #fff7f7;
}

.subject-admin-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.subject-admin-detail > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.subject-admin-item strong {
  overflow-wrap: anywhere;
}

.subject-admin-item span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.login-panel {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(2, 8, 23, 0.2);
}

.login-panel h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.login-panel .button {
  width: 100%;
}

.editor-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.editor-title .eyebrow {
  color: #3a8c2f;
}

.admin-form {
  display: grid;
  gap: 15px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.order-controls .icon-only-button {
  width: 32px;
  height: 32px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding-top: 25px;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
}

.checkbox-line span {
  font-size: 0.95rem;
}

.checkbox-line-compact {
  min-height: auto;
  padding-top: 0;
}

.subject-visibility-field {
  grid-column: 1 / -1;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #dbe8f5;
  border-radius: 10px;
  background: #f8fafc;
}

.subject-visibility-field span {
  color: var(--admin-text);
  font-weight: 850;
  line-height: 1.35;
}
.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.admin-list-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-list-detail > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-list-thumb {
  width: 62px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f6;
}

.admin-list-item strong {
  overflow-wrap: anywhere;
}

.admin-list-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-error {
  color: #9d2525;
  font-weight: 700;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  font-weight: 800;
}

body.is-busy {
  cursor: progress;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 13, 31, 0.74);
  opacity: 0;
  transition: opacity 180ms ease;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.app-loader[hidden] {
  display: none;
}

.app-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-loader-panel {
  display: grid;
  justify-items: center;
  width: min(360px, 100%);
  padding: 28px;
  border: 1px solid rgba(167, 243, 109, 0.3);
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  background: rgba(8, 23, 51, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.app-loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
}

.app-loader-mark img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
}

.app-loader-mark span {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--lime);
  border-right-color: var(--sky);
  border-radius: 50%;
  animation: loader-spin 800ms linear infinite;
}

.app-loader-panel strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.app-loader-progress {
  overflow: hidden;
  width: 100%;
  height: 5px;
  margin-top: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.app-loader:not(.has-progress) .app-loader-progress {
  display: none;
}

.app-loader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--sky));
  transition: width 160ms ease;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(167, 243, 109, 0.44);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(8, 23, 51, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(120deg, rgba(167, 243, 109, 0.09), transparent 28%),
    linear-gradient(270deg, rgba(84, 214, 255, 0.1), transparent 34%),
    linear-gradient(135deg, #061225 0%, #0b1d2f 46%, #0d2d24 100%);
  box-shadow: 0 -18px 44px rgba(8, 23, 51, 0.12);
}

.site-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--sky), var(--coral));
}

.site-footer::after {
  position: absolute;
  inset: 4px 0 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 1.28fr) minmax(300px, 0.92fr) minmax(250px, 0.72fr);
  gap: clamp(18px, 2.8vw, 34px);
  align-items: stretch;
  padding: clamp(34px, 4vw, 54px) var(--page-gutter) 28px;
}

.footer-brand-panel,
.footer-group,
.footer-social-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.footer-brand-panel {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: clamp(20px, 2.5vw, 28px);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: var(--white);
}

.footer-brand img {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(167, 243, 109, 0.35);
  border-radius: 18px;
  object-fit: cover;
  box-shadow:
    0 0 34px rgba(167, 243, 109, 0.28),
    0 16px 32px rgba(0, 0, 0, 0.3);
}

.footer-brand > div {
  display: grid;
  gap: 6px;
}

.footer-brand strong {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
}

.footer-brand strong span:last-child {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(167, 243, 109, 0.34);
}

.footer-brand strong + span,
.footer-brand-panel p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand-panel p {
  max-width: 560px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.footer-badges span {
  padding: 8px 12px;
  border: 1px solid rgba(167, 243, 109, 0.24);
  border-radius: 999px;
  color: #e6ffd7;
  font-size: 0.8rem;
  font-weight: 900;
  background: rgba(167, 243, 109, 0.1);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.footer-group,
.footer-social-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.footer-group > span,
.footer-social-panel > span {
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-group a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 0 5px 16px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.footer-group a::before {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: rgba(167, 243, 109, 0.62);
  box-shadow: 0 0 12px rgba(167, 243, 109, 0.25);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--white);
  transform: translateX(2px);
}

.footer-social-panel {
  justify-items: start;
}

.footer-socials {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 10px;
}

.footer-socials a,
.footer-contact,
.footer-youtube-cta,
.footer-install-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.footer-socials a {
  width: 44px;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-cta-row {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.footer-contact,
.footer-youtube-cta,
.footer-install-cta {
  width: 100%;
  padding: 11px 14px;
  text-align: center;
}

.footer-install-cta {
  border-color: rgba(84, 214, 255, 0.38);
  color: var(--white);
  background: linear-gradient(135deg, rgba(84, 214, 255, 0.22), rgba(167, 243, 109, 0.16));
}

.footer-install-cta.is-pwa-style {
  appearance: none;
}

.footer-youtube-cta {
  border-color: rgba(167, 243, 109, 0.38);
  color: #071323;
  background: linear-gradient(135deg, var(--lime), #dfffca);
}

.footer-socials a:hover,
.footer-socials a:focus-visible,
.footer-install-cta:hover,
.footer-install-cta:focus-visible,
.footer-contact:hover,
.footer-contact:focus-visible {
  border-color: rgba(167, 243, 109, 0.48);
  color: var(--white);
  background: rgba(167, 243, 109, 0.14);
  transform: translateY(-2px);
}

.footer-youtube-cta:hover,
.footer-youtube-cta:focus-visible {
  color: #071323;
  background: #ddffb2;
  transform: translateY(-2px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--page-gutter) 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 540ms ease,
    transform 540ms ease;
}

@keyframes hero-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}
@keyframes hero-logo-float {
  0%,
  100% {
    transform: translateY(-50%) translate3d(0, 0, 0) rotate(-1deg) scale(1);
  }
  34% {
    transform: translateY(-55%) translate3d(4px, -10px, 0) rotate(1.4deg) scale(1.018);
  }
  68% {
    transform: translateY(-48%) translate3d(-5px, 6px, 0) rotate(-0.8deg) scale(0.992);
  }
}

@keyframes hero-logo-ring {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes hero-logo-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-logo-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.82);
  }
  45% {
    opacity: 0.82;
    transform: scale(1.07);
  }
  72% {
    opacity: 0.52;
    transform: scale(0.96);
  }
}

@keyframes hero-logo-breathe {
  0%,
  100% {
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.1) saturate(1.12);
    transform: scale(1.025);
  }
}
@media (max-width: 1200px) {
  .program-grid,
  .article-grid,
  .article-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .feature-grid,
  .inquiry-shell,
  .admin-login-shell,
  .admin-dashboard-shell,
  .subject-admin-panel,
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-login-shell {
    align-items: start;
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .admin-login-copy {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .admin-login-points {
    justify-content: center;
  }

  .admin-dashboard-shell {
    padding-top: 20px;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) minmax(180px, 0.7fr);
    align-items: stretch;
  }

  .admin-sidebar-brand {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .admin-dashboard-nav {
    align-self: stretch;
  }

  .hero {
    min-height: 610px;
    padding-top: 50px;
    padding-bottom: 68px;
  }

  .hero-copy {
    width: min(660px, 72vw);
  }

  .hero-logo-badge {
    top: 128px;
    right: var(--page-gutter);
    width: 124px;
    opacity: 0.92;
  }

  .technology-banner {
    min-height: 470px;
  }

  .technology-banner-copy {
    width: min(560px, 56vw);
  }

  .tutorial-layout {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-sidebar,
  .tutorial-reader-panel {
    position: static;
    height: auto;
    max-height: none;
  }

  .tutorial-reader-panel {
    overflow: visible;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .outcome-grid,
  .article-grid,
  .article-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .document-preview,
  .tutorial-resource {
    align-items: stretch;
    flex-direction: column;
  }

  .document-preview-actions,
  .tutorial-resource .button {
    width: 100%;
  }

  .document-preview-actions .button,
  .document-preview-actions a,
  .tutorial-resource .button {
    justify-content: center;
  }

  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(8, 23, 51, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-account,
  .account-menu-button {
    width: 100%;
  }

  .account-menu-button {
    justify-content: space-between;
    border-radius: 10px;
    padding: 6px 10px;
  }

  .account-menu-name {
    max-width: none;
    margin-right: auto;
  }

  .account-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    transform-origin: top center;
  }

  .section-band {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero {
    min-height: 680px;
    padding-top: 56px;
    padding-bottom: 76px;
  }

  .hero-background {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 13, 31, 0.96), rgba(4, 13, 31, 0.62)),
      linear-gradient(180deg, rgba(4, 13, 31, 0.28), rgba(4, 13, 31, 0.92));
  }

  .hero-copy {
    width: 100%;
  }

  .hero-logo-badge {
    top: 96px;
    width: 86px;
    opacity: 0.84;
  }

  .hero-logo-badge::before {
    inset: -9px;
  }

  .hero-logo-badge::after {
    inset: -14px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }


  .hero-scroll-cue {
    right: auto;
    left: var(--page-gutter);
  }

  .subject-strip {
    top: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .tutorial-layout {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .tutorial-reader-header,
  .tutorial-reader-body,
  .tutorial-pager {
    padding-right: 18px;
    padding-left: 18px;
  }

  .tutorial-reader-actions {
    align-items: stretch;
  }

  .tutorial-full-view-button {
    width: 100%;
  }

  .tutorial-full-view-overlay {
    padding: 0;
  }

  .tutorial-full-view-dialog {
    width: 100%;
    border: 0;
    border-radius: 0;
  }

  .tutorial-full-view-toolbar {
    min-height: 62px;
    padding: 10px 12px 10px 16px;
  }

  .tutorial-full-view-body {
    padding: 30px 18px 64px;
    font-size: 1rem;
  }

  .tutorial-full-view-heading {
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .tutorial-full-view-heading h1 {
    font-size: 2.15rem;
  }

  .tutorial-pager {
    flex-direction: column;
  }

  .tutorial-pager .button {
    width: 100%;
  }

  .toolbar,
  .subject-admin-form,
  .form-grid,
  .form-grid-three {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .toolbar label,
  .admin-actions .button {
    width: 100%;
  }

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

  .course-launch-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .technology-banner {
    align-items: flex-end;
    min-height: 720px;
    padding-top: 260px;
  }

  .technology-banner-background {
    object-position: 31% center;
  }

  .technology-banner-shade {
    background:
      linear-gradient(180deg, rgba(8, 23, 51, 0.08) 0%, rgba(8, 23, 51, 0.44) 38%, rgba(8, 23, 51, 0.98) 70%),
      linear-gradient(90deg, rgba(8, 23, 51, 0.14), rgba(8, 23, 51, 0.38));
  }

  .technology-banner-copy {
    width: 100%;
    margin-left: 0;
  }

  .program-grid,
  .outcome-grid,
  .admin-summary-grid,
  .article-grid,
  .article-rail {
    grid-template-columns: 1fr;
  }

  .course-detail-grid {
    grid-template-columns: 1fr;
  }

  .course-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-price > div {
    justify-content: flex-start;
    text-align: left;
  }

  .course-modal-overlay {
    align-items: stretch;
    padding: 12px;
  }

  .course-modal-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  .course-modal-visual {
    min-height: 210px;
  }

  .course-modal-content {
    max-height: none;
    padding: 26px 20px 24px;
  }

  .course-modal-actions .button {
    width: 100%;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-tabs.admin-dashboard-nav {
    grid-template-columns: repeat(3, minmax(94px, 1fr));
  }

  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-topline,
  .subject-admin-item,
  .admin-list-item {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .footer-brand-panel,
  .footer-group,
  .footer-social-panel {
    border-radius: 14px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-socials {
    grid-template-columns: repeat(4, 44px);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
  }

  .reader-body {
    font-size: 1rem;
  }

  .format-group {
    width: 100%;
  }

  .rich-toolbar select {
    width: 100%;
  }

  .tutorial-import-panel {
    grid-template-columns: 1fr;
  }

  .tutorial-import-badges {
    justify-content: flex-start;
  }

  .rich-insert-panel {
    grid-template-columns: 1fr;
  }

  .rich-panel-actions {
    flex-direction: column;
  }

  .password-actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
  }

  .rich-editor-area {
    min-height: 320px;
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .brand-wordmark {
    max-width: 132px;
  }

  .brand-wordmark span {
    white-space: nowrap;
  }

  h1 {
    font-size: 2.25rem;
  }


  .card-body,
  .subject-admin-panel,
  .admin-card {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Admin dashboard redesign */
.admin-dashboard-shell {
  --admin-blue: #2563eb;
  --admin-blue-dark: #1d4ed8;
  --admin-green: #10b981;
  --admin-amber: #f59e0b;
  --admin-red: #ef4444;
  --admin-violet: #7c3aed;
  --admin-bg: #f4f7fb;
  --admin-surface: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text: #172033;
  --admin-muted: #64748b;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 72px);
  padding: 0;
  background: var(--admin-bg);
}

.admin-dashboard-shell .admin-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-dashboard-shell .admin-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  padding: 20px 14px;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid var(--admin-border);
  border-radius: 0;
  background: var(--admin-surface);
  box-shadow: none;
}

.admin-dashboard-shell .admin-sidebar-brand {
  gap: 10px;
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-dashboard-shell .admin-sidebar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.admin-dashboard-shell .admin-sidebar-brand strong {
  color: var(--admin-text);
  font-size: 0.96rem;
}

.admin-dashboard-shell .admin-sidebar-brand small {
  color: var(--admin-muted);
  font-size: 0.72rem;
}

.admin-dashboard-shell .admin-dashboard-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  overflow: visible;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 10px;
  min-height: 42px;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  color: #526077;
  text-align: left;
  background: transparent;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button:hover,
.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button:focus-visible {
  color: var(--admin-text);
  background: #f1f5f9;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button span {
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button small {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 21px;
  padding: 0 6px;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.69rem;
  background: #e9eef5;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button.is-active {
  color: #ffffff;
  background: var(--admin-blue);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.22);
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button.is-active small {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.admin-dashboard-shell .admin-sidebar-card {
  gap: 9px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  color: var(--admin-text);
  background: #f7faff;
}

.admin-health-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-blue);
}

.admin-dashboard-shell .admin-sidebar-card strong {
  color: var(--admin-text);
  font-size: 1.7rem;
}

.admin-dashboard-shell .admin-sidebar-card small {
  color: var(--admin-muted);
  font-size: 0.72rem;
}

.admin-dashboard-shell .admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 0;
  border: 0;
  border-top: 1px solid var(--admin-border);
  border-radius: 0;
  background: transparent;
}

.admin-sidebar-user > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-sidebar-user strong,
.admin-sidebar-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-user strong {
  color: var(--admin-text);
  font-size: 0.82rem;
}

.admin-sidebar-user small {
  color: var(--admin-muted);
  font-size: 0.68rem;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--admin-blue);
}

.admin-dashboard-shell .admin-main {
  width: 100%;
  max-width: 1440px;
  padding: 26px clamp(18px, 2.4vw, 36px) 44px;
}

.admin-dashboard-shell .admin-topline {
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-dashboard-shell .admin-topline > div:not(.admin-actions) {
  gap: 6px;
}

.admin-dashboard-shell .admin-topline h1 {
  color: var(--admin-text);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
}

.admin-dashboard-shell .admin-topline > div > span {
  max-width: 720px;
  color: var(--admin-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.admin-breadcrumb,
.admin-section-kicker {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-breadcrumb span {
  padding: 0 5px;
  color: #a0aec0;
}

.admin-dashboard-shell .button {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 0.82rem;
  box-shadow: none;
}

.admin-dashboard-shell .button:hover,
.admin-dashboard-shell .button:focus-visible {
  transform: none;
}

.admin-dashboard-shell .button.primary {
  color: #ffffff;
  background: var(--admin-blue);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
}

.admin-dashboard-shell .button.primary:hover,
.admin-dashboard-shell .button.primary:focus-visible {
  background: var(--admin-blue-dark);
}

.admin-dashboard-shell .button.ghost {
  border-color: #d6deea;
  color: #475569;
  background: #ffffff;
}

.admin-dashboard-shell .button.ghost:hover,
.admin-dashboard-shell .button.ghost:focus-visible {
  border-color: #b9c5d5;
  color: var(--admin-text);
  background: #f8fafc;
}

.admin-icon-command,
.admin-dashboard-shell .button.primary {
  gap: 7px;
}

.admin-dashboard-shell .admin-summary-grid {
  gap: 12px;
  margin-bottom: 20px;
}

.admin-dashboard-shell .admin-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.045);
}

.admin-dashboard-shell .admin-stat-card:nth-child(n) {
  background: var(--admin-surface);
}

.admin-stat-icon,
.admin-quick-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.admin-stat-icon.is-blue,
.admin-quick-icon.is-blue { color: #2563eb; background: #e8f0ff; }
.admin-stat-icon.is-green,
.admin-quick-icon.is-green { color: #059669; background: #e6f8f1; }
.admin-stat-icon.is-amber,
.admin-quick-icon.is-amber { color: #d97706; background: #fff4dc; }
.admin-stat-icon.is-violet { color: #7c3aed; background: #f0eaff; }

.admin-dashboard-shell .admin-stat-card > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-dashboard-shell .admin-stat-card small {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-dashboard-shell .admin-stat-card strong {
  margin: 0;
  color: var(--admin-text);
  font-size: 1.75rem;
  line-height: 1.1;
}

.admin-dashboard-shell .admin-stat-card strong.is-text {
  overflow: hidden;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-shell .admin-stat-card > div > span {
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-dashboard-shell .admin-card,
.admin-dashboard-shell .subject-admin-panel,
.admin-dashboard-shell .admin-subject-tabs-card {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.admin-dashboard-shell .admin-card {
  padding: 20px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.admin-overview-side {
  display: grid;
  gap: 18px;
}

.admin-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-card-heading h2,
.admin-quick-actions h2,
.admin-library-health h2,
.admin-dashboard-shell .editor-title h2,
.admin-dashboard-shell .admin-subject-tabs-card h2,
.admin-dashboard-shell .subject-admin-copy h2 {
  color: var(--admin-text);
  font-size: 1.08rem;
}

.admin-card-heading > div,
.admin-quick-actions > div:first-child {
  display: grid;
  gap: 4px;
}

.admin-table {
  overflow-x: auto;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 90px 90px 105px 38px;
  gap: 12px;
  align-items: center;
  min-width: 620px;
  padding: 11px 12px;
}

.admin-table-head {
  border-top: 1px solid var(--admin-border);
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #f8fafc;
}

.admin-table-row {
  border-bottom: 1px solid #edf1f6;
  color: #526077;
  font-size: 0.78rem;
}

.admin-table-row:hover {
  background: #f8fafc;
}

.admin-table-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-table-row strong {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-row small {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-published,
.status-public { background: var(--admin-green); }
.status-draft { background: var(--admin-amber); }
.status-pending { background: var(--admin-blue); }
.status-archived,
.status-hidden { background: var(--admin-red); }

.icon-only-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #d6deea;
  border-radius: 7px;
  color: #475569;
  background: #ffffff;
}

.icon-only-button:hover,
.icon-only-button:focus-visible {
  color: var(--admin-blue);
  border-color: #a9c1f5;
  background: #eef4ff;
}

.icon-only-button.is-danger {
  color: #dc2626;
}

.icon-only-button.is-warning {
  color: #b45309;
}

.icon-only-button.is-success {
  color: #15803d;
}

.icon-only-button.is-danger:hover,
.icon-only-button.is-danger:focus-visible {
  border-color: #fecaca;
  background: #fff1f2;
}

.icon-only-button.is-warning:hover,
.icon-only-button.is-warning:focus-visible {
  border-color: #fed7aa;
  background: #fff7ed;
}

.icon-only-button.is-success:hover,
.icon-only-button.is-success:focus-visible {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.icon-only-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.admin-quick-actions {
  display: grid;
  gap: 9px;
}

.admin-quick-actions > button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-muted);
  text-align: left;
  background: #ffffff;
}

.admin-quick-actions > button:hover,
.admin-quick-actions > button:focus-visible {
  border-color: #b7caf5;
  background: #f8fbff;
}

.admin-quick-icon {
  width: 38px;
  height: 38px;
}

.admin-quick-actions > button > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-quick-actions strong {
  color: var(--admin-text);
  font-size: 0.82rem;
}

.admin-quick-actions small {
  color: var(--admin-muted);
  font-size: 0.7rem;
}

.admin-library-health {
  display: grid;
  gap: 12px;
}

.admin-health-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 7px;
  background: #e8edf4;
}

.admin-health-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--admin-green);
}

.admin-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
  color: var(--admin-muted);
  font-size: 0.76rem;
}

.admin-health-row strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--admin-text);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-shell .admin-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 18px;
}

.admin-dashboard-shell .editor-title {
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-dashboard-shell .admin-form,
.admin-dashboard-shell .subject-admin-form {
  gap: 13px;
}

.admin-dashboard-shell label > span,
.admin-dashboard-shell .rich-editor-field > span {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-dashboard-shell input,
.admin-dashboard-shell select,
.admin-dashboard-shell textarea {
  min-height: 40px;
  border-color: #cfd8e5;
  border-radius: 7px;
  color: var(--admin-text);
  background: #ffffff;
}

.admin-dashboard-shell input:focus,
.admin-dashboard-shell select:focus,
.admin-dashboard-shell textarea:focus,
.admin-dashboard-shell [contenteditable="true"]:focus {
  border-color: #7aa3f5;
  outline: 3px solid rgba(37, 99, 235, 0.12);
}

.admin-search {
  position: relative;
  display: block;
  margin-bottom: 14px;
}

.admin-search .admin-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: #94a3b8;
  transform: translateY(-50%);
}

.admin-search input {
  width: 100%;
  padding-left: 40px;
}

.admin-dashboard-shell .admin-list {
  gap: 0;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.admin-dashboard-shell .admin-list-item,
.admin-dashboard-shell .subject-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  min-height: 70px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  background: #ffffff;
}

.admin-dashboard-shell .admin-list-item:last-child,
.admin-dashboard-shell .subject-admin-item:last-child {
  border-bottom: 0;
}

.admin-dashboard-shell .admin-list-item:hover,
.admin-dashboard-shell .subject-admin-item:hover {
  background: #f8fafc;
}

.admin-dashboard-shell .admin-list-item[hidden],
.admin-dashboard-shell .subject-admin-item[hidden] {
  display: none;
}

.admin-dashboard-shell .admin-list-detail,
.admin-dashboard-shell .subject-admin-detail {
  gap: 10px;
}

.admin-list-placeholder {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--admin-blue);
  font-size: 0.74rem;
  font-weight: 800;
  background: #e8f0ff;
}

.admin-dashboard-shell .admin-list-thumb {
  width: 52px;
  height: 44px;
}

.admin-dashboard-shell .admin-list-item strong,
.admin-dashboard-shell .subject-admin-item strong {
  color: var(--admin-text);
  font-size: 0.84rem;
}

.admin-dashboard-shell .admin-list-item span,
.admin-dashboard-shell .subject-admin-item span {
  color: var(--admin-muted);
  font-size: 0.72rem;
}

.admin-dashboard-shell .admin-list-item .admin-actions,
.admin-dashboard-shell .subject-admin-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.admin-dashboard-shell .subject-admin-panel {
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  padding: 20px;
}

.admin-dashboard-shell .subject-admin-list {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
}

.admin-dashboard-shell .subject-admin-item.is-editing {
  background: #eef4ff;
}

.admin-dashboard-shell .admin-subject-tabs-card {
  padding: 16px;
}

.admin-dashboard-shell .admin-subject-tabs button {
  min-width: 145px;
  min-height: 58px;
  border-color: var(--admin-border);
  color: #475569;
  background: #ffffff;
}

.admin-dashboard-shell .admin-subject-tabs button.is-active {
  border-color: var(--admin-blue);
  color: #ffffff;
  background: var(--admin-blue);
  box-shadow: none;
}

.admin-dashboard-shell .admin-subject-tabs button.is-active small {
  color: rgba(255, 255, 255, 0.78);
}

.admin-dashboard-shell .password-panel {
  margin-bottom: 20px;
}

.inquiry-admin-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.inquiry-admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inquiry-admin-summary span,
.inquiry-admin-grid span {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #f8fafc;
}

.inquiry-admin-summary strong {
  display: block;
  color: var(--admin-text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.inquiry-admin-summary small,
.inquiry-admin-grid small {
  display: block;
  margin-top: 5px;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inquiry-admin-list {
  display: grid;
  gap: 12px;
}

.inquiry-admin-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #ffffff;
}

.inquiry-admin-item.is-pinned {
  border-color: rgba(117, 207, 85, 0.5);
  background: linear-gradient(180deg, #ffffff 0%, rgba(234, 255, 223, 0.55) 100%);
}

.inquiry-admin-item[hidden] {
  display: none;
}

.inquiry-admin-item header,
.inquiry-admin-item footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inquiry-admin-item header {
  justify-content: space-between;
}

.inquiry-admin-item header > div {
  min-width: 0;
  flex: 1;
}

.inquiry-admin-item strong {
  color: var(--admin-text);
}

.inquiry-admin-item small,
.inquiry-admin-item p {
  color: var(--admin-muted);
}

.inquiry-admin-item p {
  margin: 0;
  line-height: 1.65;
}

.inquiry-pin-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #2f6f1f;
  background: var(--mint);
}

.inquiry-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inquiry-admin-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}
@media (max-width: 1120px) {
  .admin-overview-grid,
  .admin-dashboard-shell .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-overview-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-shell .admin-sidebar {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: auto;
    max-height: none;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--admin-border);
    overflow: visible;
  }

  .admin-dashboard-shell .admin-sidebar-brand {
    padding: 0;
    border: 0;
  }

  .admin-dashboard-shell .admin-dashboard-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }

  .admin-dashboard-shell .admin-tabs.admin-dashboard-nav button {
    grid-template-columns: 18px auto auto;
    width: auto;
    min-width: max-content;
  }

  .admin-dashboard-shell .admin-sidebar-card {
    display: none;
  }

  .admin-dashboard-shell .admin-sidebar-user {
    padding: 0;
    border: 0;
  }

  .admin-sidebar-user > span:last-child {
    display: none;
  }

  .tutorial-full-view-shell {
    grid-template-columns: 1fr;
  }

  .tutorial-full-view-toc,
  .tutorial-toc-switch {
    display: none;
  }
}
@media (max-width: 760px) {
  .admin-dashboard-shell .admin-sidebar {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .admin-dashboard-shell .admin-sidebar-brand,
  .admin-dashboard-shell .admin-sidebar-user {
    display: none;
  }

  .admin-dashboard-shell .admin-main {
    padding: 20px 14px 36px;
  }

  .admin-dashboard-shell .admin-topline {
    gap: 16px;
  }

  .admin-dashboard-shell .admin-actions {
    display: grid;
    grid-template-columns: 1fr 42px 42px;
  }

  .admin-dashboard-shell .admin-actions .button {
    width: auto;
  }

  .admin-dashboard-shell .admin-icon-command {
    width: 42px;
    padding: 0;
  }

  .admin-dashboard-shell .admin-icon-command span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .admin-dashboard-shell .admin-summary-grid,
  .admin-overview-side {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-shell .admin-stat-card {
    min-height: 92px;
  }

  .admin-dashboard-shell .subject-admin-panel {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-shell .admin-list-item,
  .admin-dashboard-shell .subject-admin-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-dashboard-shell .admin-list-item > .status-badge,
  .admin-dashboard-shell .subject-admin-item > .status-badge {
    grid-column: 1;
    margin-left: 54px;
  }

  .admin-dashboard-shell .admin-list-item > .admin-actions,
  .admin-dashboard-shell .subject-admin-item > .subject-admin-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .inquiry-admin-summary,
  .inquiry-admin-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-admin-item header,
  .inquiry-admin-item footer {
    align-items: stretch;
    flex-direction: column;
  }

  .inquiry-admin-item header .button,
  .inquiry-admin-item footer .button {
    width: 100%;
    justify-content: center;
  }
  .order-controls {
    flex-direction: column;
  }

  .admin-card-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
.subject-search { grid-column: 1 / -1; margin-bottom: -6px; }

.admin-dashboard-shell .admin-dashboard-nav { scrollbar-width: none; }
.admin-dashboard-shell .admin-dashboard-nav::-webkit-scrollbar { display: none; }

.admin-overview-grid, .admin-overview-grid > *, .admin-recent-card, .admin-table { min-width: 0; max-width: 100%; }

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

.topic-section + .topic-section {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.topic-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 8px 8px 0;
  list-style: none;
  cursor: pointer;
}

.topic-section-summary::-webkit-details-marker {
  display: none;
}

.topic-section-summary::after {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid #3a8c2f;
  border-bottom: 2px solid #3a8c2f;
  content: "";
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}

.topic-section[open] .topic-section-summary::after {
  transform: rotate(45deg);
}

.topic-section-summary small {
  margin-left: auto;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.topic-section-title {
  color: #2f8b2e;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

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

.subject-sections-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.subject-sections-editor > span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.subject-section-rows {
  display: grid;
  gap: 10px;
}

.subject-section-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: end;
}

.subject-section-row input[type="hidden"] {
  display: none;
}

.subject-section-empty {
  padding: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  background: #ffffff;
}

.admin-tutorial-section {
  display: grid;
  border-bottom: 1px solid #edf1f6;
  background: #ffffff;
}

.admin-tutorial-section:last-child {
  border-bottom: 0;
}

.admin-tutorial-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
  background: #f8fafc;
}

.admin-tutorial-section > header strong {
  color: var(--admin-text, var(--ink));
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-tutorial-section > header span {
  color: var(--admin-muted, var(--muted));
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-tutorial-section > div {
  display: grid;
}

.admin-tutorial-section .admin-list-item:last-child {
  border-bottom: 0;
}
@media (max-width: 760px) {
  .subject-section-row {
    grid-template-columns: 1fr;
  }

  .admin-tutorial-section > header {
    align-items: flex-start;
    flex-direction: column;
  }
}
.subject-sections-head {
  display: grid;
  gap: 4px;
}

.subject-sections-head > span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.subject-sections-head small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.subject-section-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.subject-section-add .button {
  min-height: 46px;
  white-space: nowrap;
}

.subject-section-row {
  grid-template-columns: minmax(0, 1fr) 110px auto;
}

.subject-section-row .icon-only-button {
  align-self: end;
  width: 42px;
  height: 42px;
}

.subject-section-bulk {
  margin-top: 2px;
}
@media (max-width: 760px) {
  .subject-section-add,
  .subject-section-row {
    grid-template-columns: 1fr;
  }

  .subject-section-row .icon-only-button {
    width: 100%;
  }
}
.existing-subject-section-form {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(220px, 1fr) 110px auto;
  gap: 14px;
  align-items: end;
  min-width: 0;
}

.existing-subject-section-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.existing-subject-section-form label > span {
  line-height: 1.25;
}

.existing-subject-select-field select {
  width: 100%;
}

.existing-subject-section-form .button {
  min-height: 46px;
  padding-right: 18px;
  padding-left: 18px;
  white-space: nowrap;
}

.section-admin-form-card .admin-card-heading {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f6;
}
@media (max-width: 760px) {
  .existing-subject-section-form {
    grid-template-columns: 1fr;
  }

  .existing-subject-section-form .button {
    width: 100%;
  }
}
.section-admin-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.section-admin-form-card,
.section-admin-library {
  min-width: 0;
}

.section-admin-list {
  display: grid;
  gap: 12px;
}

.section-admin-subject {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--admin-border, var(--line));
  border-radius: 8px;
  background: #ffffff;
}

.section-admin-subject[hidden] {
  display: none;
}

.section-admin-subject header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-admin-subject header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.section-admin-subject strong {
  color: var(--admin-text, var(--ink));
  overflow-wrap: anywhere;
}

.section-admin-subject small {
  color: var(--admin-muted, var(--muted));
  font-size: 0.76rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.section-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-pill-list > span {
  display: grid;
  gap: 2px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #f8fafc;
}

.section-pill-list > span strong {
  font-size: 0.8rem;
}

.section-pill-list > span small {
  font-size: 0.68rem;
}

.section-pill-empty {
  color: var(--admin-muted, var(--muted));
  font-weight: 800;
}

.section-admin-rows {
  display: grid;
  gap: 10px;
}

.section-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 96px auto;
  gap: 12px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #f8fafc;
}

.section-admin-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.section-admin-row label > span {
  color: var(--admin-muted, var(--muted));
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-admin-row input {
  width: 100%;
  min-width: 0;
}

.section-admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.section-admin-row-actions .button {
  min-height: 36px;
  padding: 0 12px;
  gap: 6px;
}

.section-admin-row-actions .admin-icon {
  width: 16px;
  height: 16px;
}


@media (max-width: 1080px) {
  .section-admin-screen {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .section-admin-subject header {
    align-items: stretch;
    flex-direction: column;
  }

  .section-admin-subject header .button {
    width: 100%;
  }

  .section-admin-row {
    grid-template-columns: 1fr;
  }

  .section-admin-row-actions {
    justify-content: stretch;
  }

  .section-admin-row-actions .button,
  .section-admin-row-actions .icon-only-button {
    flex: 1 1 auto;
  }
}
/* Kindle-style full-view reader controls */
.tutorial-full-view-dialog {
  --reader-bg: #f8fbfd;
  --reader-surface: #ffffff;
  --reader-soft: #eaffdb;
  --reader-ink: #1d293b;
  --reader-heading: #10182b;
  --reader-muted: #405065;
  --reader-line: rgba(15, 23, 42, 0.12);
  --reader-inline-code: #eef2f6;
  --reader-code: #162238;
  --reader-pre-bg: #0c1726;
  --reader-pre-ink: #d9fce2;
  background: var(--reader-bg);
}

.tutorial-full-view-dialog.is-reader-dark {
  --reader-bg: #08111f;
  --reader-surface: #0f1d31;
  --reader-soft: #14263d;
  --reader-ink: #e5edf8;
  --reader-heading: #f6fbff;
  --reader-muted: #b8c6d9;
  --reader-line: rgba(203, 219, 238, 0.18);
  --reader-inline-code: #182a42;
  --reader-code: #d8f6df;
  --reader-pre-bg: #050b14;
  --reader-pre-ink: #d7ffe2;
  border-color: rgba(203, 219, 238, 0.18);
}

.tutorial-full-view-toolbar {
  flex-wrap: nowrap;
  align-items: center;
}

.tutorial-full-view-title {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.tutorial-full-view-toolbar .tutorial-full-view-tools {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.tutorial-full-view-toolbar .tutorial-full-view-tools > * {
  flex: 0 0 auto;
}

.reader-setting-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.reader-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.reader-tool-button span {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: none;
}

.reader-tool-button:hover,
.reader-tool-button:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.reader-tool-button.is-active {
  color: #08111d;
  background: var(--lime);
  box-shadow: 0 8px 18px rgba(116, 255, 72, 0.2);
}


.tutorial-full-view-toolbar .tutorial-toc-switch {
  display: inline-flex;
  min-height: 42px;
}

.tutorial-full-view-dialog.is-reader-dark .tutorial-full-view-toolbar {
  border-bottom-color: var(--reader-line);
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.1), rgba(84, 214, 255, 0.08)),
    #07101d;
}

.tutorial-full-view-dialog .tutorial-full-view-toc {
  border-right-color: var(--reader-line);
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.42), transparent 220px),
    var(--reader-surface);
}

.tutorial-full-view-dialog.is-reader-dark .tutorial-full-view-toc {
  background:
    linear-gradient(180deg, rgba(117, 207, 85, 0.1), transparent 230px),
    var(--reader-surface);
}

.tutorial-full-view-dialog .tutorial-full-view-toc-card > strong,
.tutorial-full-view-dialog .tutorial-full-view-toc button.is-title {
  color: var(--reader-heading);
}

.tutorial-full-view-dialog .tutorial-full-view-toc button {
  color: var(--reader-muted);
}

.tutorial-full-view-dialog .tutorial-full-view-toc button:hover,
.tutorial-full-view-dialog .tutorial-full-view-toc button:focus-visible,
.tutorial-full-view-dialog .tutorial-full-view-toc button.is-active {
  border-color: rgba(117, 207, 85, 0.42);
  color: var(--reader-heading);
  background: var(--reader-soft);
}

.tutorial-full-view-dialog .tutorial-full-view-toc button.is-title {
  background: var(--reader-surface);
  box-shadow: 0 8px 18px rgba(8, 23, 51, 0.08);
}

.tutorial-full-view-dialog.is-reader-dark .tutorial-full-view-toc button.is-title {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tutorial-full-view-dialog .tutorial-full-view-scroll {
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.34), transparent 260px),
    var(--reader-bg);
}

.tutorial-full-view-dialog.is-reader-dark .tutorial-full-view-scroll {
  background:
    linear-gradient(180deg, rgba(117, 207, 85, 0.08), transparent 300px),
    var(--reader-bg);
}

.tutorial-full-view-dialog .tutorial-full-view-body {
  color: var(--reader-ink);
}


.tutorial-full-view-dialog .tutorial-full-view-heading {
  border-bottom-color: var(--reader-line);
}

.tutorial-full-view-dialog .tutorial-full-view-heading h1,
.tutorial-full-view-dialog .tutorial-full-view-body h1,
.tutorial-full-view-dialog .tutorial-full-view-body h2,
.tutorial-full-view-dialog .tutorial-full-view-body h3 {
  color: var(--reader-heading);
}

.tutorial-full-view-dialog .tutorial-full-view-heading > p:not(.eyebrow),
.tutorial-full-view-dialog .tutorial-full-view-body p,
.tutorial-full-view-dialog .tutorial-full-view-body li {
  color: var(--reader-ink);
}

.tutorial-full-view-dialog .tutorial-full-view-body blockquote {
  border-left-color: var(--lime-2);
  color: var(--reader-muted);
  background: var(--reader-soft);
}

.tutorial-full-view-dialog .tutorial-full-view-body code {
  color: var(--reader-code);
  background: var(--reader-inline-code);
}

.tutorial-full-view-dialog .tutorial-full-view-body pre {
  color: var(--reader-pre-ink);
  background: var(--reader-pre-bg);
}

.tutorial-full-view-dialog .tutorial-full-view-body pre code {
  color: inherit;
  background: transparent;
}

.tutorial-full-view-dialog .tutorial-full-view-body pre[data-diagram="true"] {
  color: var(--reader-heading);
  background: var(--reader-soft);
  border: 1px solid var(--reader-line);
  border-left: 5px solid var(--lime-2);
}
.tutorial-full-view-dialog .tutorial-full-view-body table {
  box-shadow: 0 0 0 1px var(--reader-line);
}

.tutorial-full-view-dialog .tutorial-full-view-body th,
.tutorial-full-view-dialog .tutorial-full-view-body td {
  border-color: var(--reader-line);
}

.tutorial-full-view-dialog .tutorial-full-view-body th {
  color: var(--reader-heading);
  background: var(--reader-soft);
}

.tutorial-full-view-dialog .tutorial-full-view-body hr {
  background: var(--reader-line);
}
.tutorial-full-view-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--reader-line);
}

.tutorial-full-view-nav,
.tutorial-full-view-nav-spacer {
  min-height: 74px;
}

.tutorial-full-view-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--reader-line);
  border-radius: 8px;
  color: var(--reader-heading);
  background: var(--reader-surface);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(8, 23, 51, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tutorial-full-view-nav:hover,
.tutorial-full-view-nav:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(117, 207, 85, 0.58);
  box-shadow: 0 18px 36px rgba(8, 23, 51, 0.12);
}

.tutorial-full-view-nav span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tutorial-full-view-nav small {
  color: var(--reader-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tutorial-full-view-nav strong {
  color: var(--reader-heading);
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tutorial-full-view-nav--next {
  justify-content: flex-end;
  text-align: right;
}

.tutorial-full-view-nav .reader-action-icon {
  flex: 0 0 auto;
  color: var(--accent-strong);
}
@media (max-width: 760px) {
  .tutorial-full-view-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .tutorial-full-view-title {
    width: 100%;
  }

  .tutorial-full-view-toolbar .tutorial-full-view-tools {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .reader-setting-group,
  .tutorial-full-view-toolbar .tutorial-toc-switch {
    min-height: 38px;
  }

  .reader-tool-button {
    min-height: 32px;
    padding: 0 8px;
  }

  .reader-tool-button span,
  .tutorial-toc-switch small {
    display: none;
  }

  .tutorial-full-view-close {
    width: 38px;
    height: 38px;
    margin-left: auto;
  }
}

/* Search, blogs, course details, progress, and practice quizzes */
.course-detail-hero,
.blog-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.course-detail-copy h1,
.blog-detail-hero h1 {
  max-width: 920px;
}

.course-detail-copy > p,
.blog-detail-hero > div > p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  line-height: 1.75;
}

.course-detail-media,
.blog-detail-hero img {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  min-height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(156, 244, 96, 0.3), rgba(48, 161, 198, 0.26)), #071527;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.course-detail-media img,
.blog-detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.course-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.course-detail-meta span,
.course-detail-panel,
.blog-related,
.search-result-card,
.practice-quiz {
  border: 1px solid rgba(15, 29, 50, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 46px rgba(15, 29, 50, 0.08);
}

.course-detail-meta span {
  padding: 16px;
}

.course-detail-meta small,
.course-price span,
.blog-related > span,
.site-search-box span,
.search-result-card span {
  display: block;
  color: #5b6a80;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0;
}

.course-detail-meta strong {
  display: block;
  margin-top: 5px;
  color: #0f1d32;
}

.course-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.course-detail-body {
  display: grid;
  gap: 22px;
}

.course-detail-panel {
  padding: clamp(22px, 4vw, 38px);
}

.course-detail-panel h2,
.practice-quiz h2 {
  margin: 8px 0 12px;
}

.course-topic-list--large {
  justify-content: flex-start;
}

.blog-grid,
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.blog-card {
  border: 1px solid rgba(15, 29, 50, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 29, 50, 0.08);
}

.blog-card a,
.search-result-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card-visual {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top left, rgba(156, 244, 96, 0.45), transparent 36%), linear-gradient(135deg, #11233b, #19446d 54%, #9cf460);
  color: #fff;
}

.blog-card-visual img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

.blog-card-visual span {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(7, 21, 39, 0.72);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.blog-reader-body {
  max-width: none;
  padding: clamp(22px, 4vw, 44px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 29, 50, 0.08);
}

.blog-related {
  position: sticky;
  top: 110px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.blog-related a {
  padding: 14px;
  border-radius: 8px;
  color: #0f1d32;
  text-decoration: none;
  background: #f6f9fc;
}

.blog-related small {
  display: block;
  margin-top: 4px;
  color: #5b6a80;
}

.search-page {
  display: grid;
  gap: 20px;
}

.site-search-box {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 29, 50, 0.08);
}

.site-search-box input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
}

.search-result-summary {
  color: #5b6a80;
  font-weight: 800;
}

.search-result-card {
  gap: 10px;
  padding: 20px;
}

.search-result-card strong {
  font-size: 1.16rem;
  color: #0f1d32;
}

.search-result-card p {
  color: #52627a;
  line-height: 1.6;
}

.subject-progress {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
}

.subject-progress div,
.tutorial-progress-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subject-progress span,
.tutorial-progress-control span {
  color: #5b6a80;
  font-weight: 800;
  font-size: 0.9rem;
}

.subject-progress strong {
  color: #2d8b2f;
}

.subject-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5edf5;
  overflow: hidden;
}

.subject-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9cf460, #30a1c6);
}

.topic-list a.is-complete {
  border-color: rgba(45, 139, 47, 0.22);
  background: #f4ffef;
}

.tutorial-progress-control {
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f9fc;
}

.tutorial-complete-button.is-complete {
  border-color: rgba(45, 139, 47, 0.28);
  background: #e9ffe2;
  color: #236b25;
}

.practice-quiz {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding: clamp(20px, 4vw, 34px);
}

.practice-quiz-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 18px;
}

.practice-quiz-heading small {
  color: #2d8b2f;
  font-weight: 800;
}

.practice-quiz-heading > .kicker,
.practice-quiz-heading > h2,
.practice-quiz-heading > p {
  grid-column: 1 / -1;
  justify-self: start;
}

.practice-question {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 16px;
}

.practice-question legend {
  padding: 0 8px;
  color: #0f1d32;
  font-weight: 900;
}

.practice-question label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f6f9fc;
  box-sizing: border-box;
  cursor: pointer;
}

.practice-question label input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #5dcf43;
  justify-self: center;
}

.practice-question label > span,
.practice-option-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  color: #0f1d32;
  font-weight: 800;
  line-height: 1.24;
}

.practice-question label strong,
.practice-option-letter {
  display: inline-grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e6f7df;
  color: #236b25;
  font-size: 0.82rem;
  font-weight: 900;
}

.practice-option-text {
  display: block;
  min-width: 0;
}

.practice-question.is-correct {
  border-color: rgba(45, 139, 47, 0.45);
  background: #f4ffef;
}

.practice-question.is-wrong,
.practice-question.is-unanswered {
  border-color: rgba(229, 119, 72, 0.45);
  background: #fff7f2;
}

.practice-explanation {
  margin: 4px 0 0;
  color: #52627a;
  font-size: 0.95rem;
}

.practice-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.practice-quiz-actions span {
  color: #0f1d32;
  font-weight: 900;
}

@media (max-width: 900px) {
  .course-detail-hero,
  .blog-detail-hero,
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .blog-related {
    position: static;
  }

  .course-detail-meta {
    grid-template-columns: 1fr;
  }
}
.home-search-section {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 56px);
}

.home-search-card {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(15, 29, 50, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 255, 239, 0.86));
  box-shadow: 0 22px 60px rgba(15, 29, 50, 0.1);
}

.home-search-card h2 {
  max-width: 760px;
  margin: 6px 0 0;
}

.home-site-search-box {
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.home-search-results {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.home-search-results:empty {
  display: none;
}
.home-search-card.is-search-only {
  max-width: 820px;
  padding: clamp(14px, 2.6vw, 24px);
}

.home-search-card.is-search-only .home-site-search-box > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-search-card.is-search-only .site-search-box input {
  min-height: 64px;
  font-size: 1.05rem;
}

.home-search-card.is-search-only [data-search-summary][hidden] {
  display: none;
}
/* Home tutorial search above hero */
.home-search-section {
  padding: 14px clamp(18px, 4vw, 42px);
  background: #071527;
  border-top: 1px solid rgba(158, 244, 106, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-search-section .home-search-card.is-search-only {
  max-width: 960px;
  padding: 12px;
  gap: 10px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.home-search-section .home-site-search-box {
  background: transparent;
}

.home-search-section .site-search-box input {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #0f1d32;
}

.home-search-summary {
  color: #d8e4f1;
  font-size: 0.92rem;
  font-weight: 800;
}

.home-search-title-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: 430px;
  overflow: auto;
}

.home-search-title-list:empty,
.home-search-title-list .empty-state[hidden] {
  display: none;
}

.home-search-title-result {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(158, 244, 106, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f1d32;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.home-search-title-result:hover,
.home-search-title-result:focus-visible {
  border-color: rgba(158, 244, 106, 0.8);
  background: #ecffe4;
  color: #235c23;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .home-search-section {
    padding: 10px 12px;
  }

  .home-search-section .home-search-card.is-search-only {
    padding: 10px;
  }

  .home-search-section .site-search-box input {
    min-height: 52px;
  }
}
/* Floating home search over the hero banner */
.hero .home-search-section {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  left: var(--page-gutter);
  right: var(--page-gutter);
  z-index: 4;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.hero .home-search-section .home-search-card.is-search-only {
  width: min(820px, 100%);
  max-width: 820px;
  margin: 0 auto;
  padding: 10px;
  gap: 8px;
  border: 1px solid rgba(158, 244, 106, 0.24);
  background: rgba(6, 18, 34, 0.74);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.hero .home-search-section .site-search-box input {
  min-height: 54px;
  border-color: rgba(158, 244, 106, 0.34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero .home-search-section .home-search-title-list {
  max-height: min(46vh, 430px);
}

.hero .home-search-section .home-search-title-list:not(:has(.home-search-title-result:not([hidden]))) {
  display: none;
}

.hero .home-search-section .home-search-summary[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .hero .home-search-section {
    top: 10px;
    left: 12px;
    right: 12px;
  }

  .hero .home-search-section .home-search-card.is-search-only {
    padding: 8px;
  }

  .hero .home-search-section .site-search-box input {
    min-height: 50px;
  }
}
/* Rounded green neon pill for hero search */
.hero .home-search-section .home-search-card.is-search-only {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero .home-search-section .home-site-search-box {
  position: relative;
  display: block;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9ef46a 0%, #6ee7b7 48%, #38d865 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(158, 244, 106, 0.74),
    0 0 30px rgba(56, 216, 101, 0.42),
    inset 0 0 18px rgba(255, 255, 255, 0.16);
}

.hero .home-search-section .home-site-search-box::before {
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: rgba(10, 7, 40, 0.94);
  content: "";
}

.hero .home-search-section .site-search-box input {
  position: relative;
  min-height: 64px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px 0 68px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23f8fbff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 24px 50%;
  background-size: 28px 28px;
  color: #ffffff;
  font-size: 1.05rem;
  box-shadow: none;
  outline: none;
}

.hero .home-search-section .site-search-box input::placeholder {
  color: rgba(244, 247, 255, 0.68);
}

.hero .home-search-section .site-search-box input:focus {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero .home-search-section .home-search-summary {
  margin: 8px 10px 0;
}

.hero .home-search-section .home-search-title-list {
  margin-top: 10px;
}

@media (max-width: 720px) {
  .hero .home-search-section .site-search-box input {
    min-height: 54px;
    padding-left: 58px;
    background-position: 20px 50%;
    background-size: 24px 24px;
  }
}
/* Community-inspired home feature blocks */
.home-stat-band {
  position: relative;
  z-index: 5;
  padding: 0 var(--page-gutter);
  margin-top: -42px;
}

.home-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(167, 243, 109, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.12), rgba(84, 214, 255, 0.08)),
    #071323;
  box-shadow: 0 24px 70px rgba(8, 23, 51, 0.24);
}

.home-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.home-stat-card:last-child {
  border-right: 0;
}

.home-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(167, 243, 109, 0.3);
  border-radius: var(--radius);
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(167, 243, 109, 0.08);
}

.home-stat-card strong,
.home-stat-card span,
.home-stat-card small {
  display: block;
}

.home-stat-card strong {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1;
}

.home-stat-card span {
  margin-top: 4px;
  font-weight: 900;
}

.home-stat-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-weight: 700;
}

.home-feature-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(234, 255, 223, 0.35)),
    var(--white);
}

.home-feature-grid,
.home-chapter-grid,
.home-event-grid {
  display: grid;
  gap: 18px;
}

.home-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-card,
.home-chapter-card,
.home-event-card,
.home-journey-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(8, 23, 51, 0.08);
}

.home-feature-card {
  min-height: 250px;
  padding: 22px;
}

.home-feature-card > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  color: #123016;
  font-weight: 950;
  background: linear-gradient(135deg, var(--lime), #6ee7b7);
}

.home-feature-card h3,
.home-feature-card p {
  margin: 0;
}

.home-feature-card p {
  margin-top: 12px;
  color: #526176;
  line-height: 1.65;
}

.home-chapter-band {
  padding-top: 40px;
  background: var(--cloud);
}

.home-chapter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-chapter-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 22px;
  overflow: hidden;
}

.home-chapter-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--sky), var(--coral));
}

.home-chapter-card > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 950;
  background: linear-gradient(135deg, #0d2348, #235b37);
}

.home-chapter-card strong {
  color: var(--navy);
  font-size: 1.12rem;
}

.home-chapter-card small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.home-chapter-card em {
  position: absolute;
  right: 18px;
  top: 20px;
  color: #2f8630;
  font-style: normal;
  font-size: 1.35rem;
  font-weight: 900;
}

.home-toolkit-band {
  background:
    radial-gradient(circle at 82% 18%, rgba(167, 243, 109, 0.24), transparent 28%),
    linear-gradient(180deg, var(--cloud), #ffffff);
}

.home-toolkit-card,
.home-faq-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(22px, 4vw, 44px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(167, 243, 109, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 23, 51, 0.96), rgba(10, 41, 57, 0.94)),
    var(--navy);
  box-shadow: 0 24px 70px rgba(8, 23, 51, 0.22);
}

.home-toolkit-copy p,
.home-faq-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.home-toolkit-features,
.home-toolkit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-toolkit-features span {
  padding: 8px 10px;
  border: 1px solid rgba(167, 243, 109, 0.24);
  border-radius: var(--radius);
  color: #eaffdf;
  font-size: 0.82rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.06);
}

.home-toolkit-score {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(240px, 60vw);
  aspect-ratio: 1;
  border: 12px solid rgba(167, 243, 109, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(167, 243, 109, 0.26), rgba(84, 214, 255, 0.1) 58%, transparent 59%),
    conic-gradient(from -45deg, var(--lime), #6ee7b7, var(--sky), var(--lime));
  box-shadow: 0 0 50px rgba(167, 243, 109, 0.28);
}

.home-toolkit-score strong,
.home-toolkit-score span {
  grid-column: 1;
  grid-row: 1;
}

.home-toolkit-score strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.home-toolkit-score span {
  align-self: end;
  margin-bottom: 38px;
  color: #efffe8;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.home-events-band {
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.22), rgba(246, 249, 252, 0.7)),
    var(--cloud);
}

.home-event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.home-event-date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 70px;
  height: 76px;
  border-radius: var(--radius);
  color: #123016;
  background: linear-gradient(135deg, var(--lime), #6ee7b7);
}

.home-event-date strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.home-event-date span,
.home-event-card > div > span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-event-card h3,
.home-event-card p {
  margin: 0;
}

.home-event-card h3 {
  margin-top: 8px;
}

.home-event-card p {
  margin-top: 10px;
  color: #526176;
  line-height: 1.62;
}

.home-event-card a {
  display: inline-flex;
  margin-top: 14px;
  border-bottom: 2px solid var(--lime-2);
  color: #245c26;
  font-weight: 900;
}

.home-journey-band {
  background: var(--white);
}

.home-journey-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.home-journey-track > i {
  align-self: center;
  color: #2f8630;
  font-style: normal;
  font-size: 1.4rem;
  font-weight: 950;
}

.home-journey-item {
  padding: 20px;
}

.home-journey-item > span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: #1c561f;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  background: var(--mint);
}

.home-journey-item h3,
.home-journey-item p {
  margin: 0;
}

.home-journey-item p {
  margin-top: 10px;
  color: #526176;
  line-height: 1.62;
}

.home-faq-cta {
  padding-top: 36px;
  background: linear-gradient(180deg, #ffffff, rgba(8, 23, 51, 0.04));
}

.home-faq-panel {
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
}

.home-faq-list {
  display: grid;
  gap: 10px;
}

.home-faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.home-faq-list summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--white);
  font-weight: 900;
}

.home-faq-list p {
  margin: 0;
  padding: 0 18px 18px;
}

@media (max-width: 1040px) {
  .home-stat-strip,
  .home-feature-grid,
  .home-chapter-grid,
  .home-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-toolkit-card,
  .home-faq-panel {
    grid-template-columns: 1fr;
  }

  .home-toolkit-score {
    justify-self: start;
    width: min(210px, 70vw);
  }

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

  .home-journey-track > i {
    display: none;
  }
}

@media (max-width: 720px) {
  .home-stat-band {
    margin-top: -24px;
    padding: 0 12px;
  }

  .home-stat-strip,
  .home-feature-grid,
  .home-chapter-grid,
  .home-event-grid {
    grid-template-columns: 1fr;
  }

  .home-stat-card {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .home-stat-card:last-child {
    border-bottom: 0;
  }

  .home-feature-card {
    min-height: auto;
  }

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

  .home-toolkit-card,
  .home-faq-panel {
    padding: 24px;
  }
}
/* Practice and coding round pages */
.practice-hub {
  display: grid;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.45), rgba(246, 249, 252, 0.88) 340px),
    var(--cloud);
}

.practice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(167, 243, 109, 0.24);
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(167, 243, 109, 0.28), transparent 28%),
    linear-gradient(135deg, #071323 0%, #0d2b38 58%, #163c27 100%);
  box-shadow: 0 24px 70px rgba(8, 23, 51, 0.2);
}

.practice-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4rem);
}

.practice-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
  line-height: 1.72;
}

.practice-progress-card {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.practice-progress-card strong {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.practice-progress-card > span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.practice-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.practice-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), #6ee7b7);
  transition: width 0.25s ease;
}

.coding-language-row,
.practice-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.coding-language-row span,
.practice-companies span {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.coding-language-row span {
  color: #eaffdf;
  background: rgba(255, 255, 255, 0.1);
}

.practice-companies {
  margin-top: 7px;
}

.practice-companies span {
  color: #315365;
  background: #edf7ff;
}

.practice-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(160px, 0.26fr));
  gap: 12px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(8, 23, 51, 0.08);
}

.coding-round-hub .practice-filters {
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 240px);
}

.practice-filters label {
  display: grid;
  gap: 7px;
}

.practice-filters label span {
  color: #4f5f73;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.practice-filters input,
.practice-filters select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d6e0eb;
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.practice-filters input:focus,
.practice-filters select:focus {
  border-color: var(--lime-2);
  box-shadow: 0 0 0 4px rgba(167, 243, 109, 0.2);
}

.practice-topic-list {
  display: grid;
  gap: 14px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.practice-topic {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(8, 23, 51, 0.07);
}

.practice-topic summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding: 17px 20px;
  user-select: none;
}

.practice-topic summary::-webkit-details-marker {
  display: none;
}

.practice-topic summary::after {
  color: #2f8630;
  content: "+";
  font-size: 1.4rem;
  font-weight: 900;
}

.practice-topic[open] summary::after {
  content: "-";
}

.practice-topic summary span {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 950;
}

.practice-topic summary small {
  color: var(--muted);
  font-weight: 800;
}

.practice-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.practice-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.practice-table tr {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.practice-table tr:last-child {
  border-bottom: 0;
}

.practice-table tr:hover {
  background: rgba(234, 255, 223, 0.42);
}

.practice-table td {
  padding: 14px 18px;
  vertical-align: middle;
}

.practice-table td strong,
.practice-table td small {
  display: block;
}

.practice-table td strong {
  color: #162238;
}

.practice-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.practice-check-cell {
  width: 54px;
}

.practice-check {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(117, 207, 85, 0.42);
  border-radius: 50%;
  color: #0f2e14;
  font-weight: 950;
  background: #fff;
}

.practice-check.is-done {
  border-color: var(--lime-2);
  background: var(--lime);
}

.practice-difficulty-cell {
  width: 116px;
  text-align: right;
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
}

.difficulty-easy {
  color: #166534;
  background: #dcfce7;
}

.difficulty-medium {
  color: #92400e;
  background: #fef3c7;
}

.difficulty-hard {
  color: #991b1b;
  background: #fee2e2;
}

@media (max-width: 980px) {
  .practice-hero,
  .practice-filters {
    grid-template-columns: 1fr;
  }

  .practice-progress-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .practice-hub {
    gap: 16px;
  }

  .practice-hero {
    padding: 22px;
  }

  .practice-hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .practice-filters {
    padding: 12px;
  }

  .practice-filters input,
  .practice-filters select {
    font-size: 16px;
  }

  .practice-topic summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .practice-table {
    min-width: 520px;
  }

  .practice-companies span {
    display: none;
  }
}
/* Unified coding practice workbench */
.coding-practice-shell {
  display: grid;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.5), rgba(246, 249, 252, 0.94) 360px),
    var(--cloud);
}

.coding-practice-hero {
  width: min(1380px, 100%);
}

.coding-practice-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  width: min(1380px, 100%);
  margin: 0 auto;
  align-items: start;
}

.coding-practice-sidebar,
.coding-practice-statement,
.coding-practice-editor-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(8, 23, 51, 0.08);
}

.coding-practice-sidebar {
  position: sticky;
  top: 92px;
  overflow: hidden;
  max-height: calc(100vh - 116px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.coding-practice-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(234, 255, 223, 0.78), rgba(237, 247, 255, 0.78));
}

.coding-practice-sidebar-head h2,
.coding-practice-title-row h2 {
  margin: 0;
  color: var(--navy);
}

.coding-practice-sidebar-head > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #245b1d;
  font-size: 0.78rem;
  font-weight: 900;
  background: #dcfce7;
}

.coding-practice-filters {
  width: 100%;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.coding-practice-filters label:first-child {
  grid-column: 1 / -1;
}

.coding-practice-list {
  overflow-y: auto;
  padding: 12px;
}

.coding-practice-group {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  background: #fff;
}

.coding-practice-group + .coding-practice-group {
  margin-top: 10px;
}

.coding-practice-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
  color: #245b1d;
  font-weight: 950;
  text-transform: uppercase;
}

.coding-practice-group summary::-webkit-details-marker {
  display: none;
}

.coding-practice-group summary small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: none;
}

.coding-practice-group-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.coding-practice-row {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  background: #f8fbfd;
}

.coding-practice-row:hover,
.coding-practice-row.is-active {
  border-color: rgba(117, 207, 85, 0.55);
  background: linear-gradient(135deg, rgba(234, 255, 223, 0.85), rgba(237, 247, 255, 0.9));
}

.coding-practice-row.is-active {
  box-shadow: inset 4px 0 0 var(--lime-2);
}

.coding-practice-status {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(117, 207, 85, 0.4);
  border-radius: 50%;
  color: #123d16;
  font-weight: 950;
  background: #fff;
}

.coding-practice-row.is-solved .coding-practice-status {
  border-color: var(--lime-2);
  background: var(--lime);
}

.coding-practice-row-title {
  min-width: 0;
}

.coding-practice-row-title strong,
.coding-practice-row-title small {
  display: block;
}

.coding-practice-row-title strong {
  color: #142036;
  font-weight: 950;
}

.coding-practice-row-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.coding-practice-workbench {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.coding-practice-statement,
.coding-practice-editor-panel {
  padding: clamp(18px, 3vw, 28px);
}

.coding-practice-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.coding-practice-solved-button {
  width: auto;
  min-width: 116px;
  height: 42px;
  border-radius: var(--radius);
  border-width: 1px;
  font-size: 0.85rem;
}

.coding-practice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.coding-practice-meta span:not(.difficulty-badge) {
  padding: 6px 9px;
  border-radius: 999px;
  color: #315365;
  font-size: 0.78rem;
  font-weight: 850;
  background: #edf7ff;
}

.coding-practice-statement h3 {
  margin: 20px 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.coding-practice-statement p,
.coding-practice-checklist {
  color: #3b4b61;
  line-height: 1.72;
}

.coding-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coding-sample-grid div {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius);
  background: #f8fbfd;
}

.coding-sample-grid strong {
  display: block;
  padding: 10px 12px;
  color: #245b1d;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.coding-sample-grid pre {
  overflow-x: auto;
  margin: 0;
  padding: 12px;
  color: #102033;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.coding-practice-note {
  margin: 10px 0 0;
}

.coding-practice-checklist {
  margin: 0;
  padding-left: 22px;
}

.code-editor-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.code-editor-toolbar label {
  display: grid;
  gap: 7px;
  min-width: 180px;
}

.code-editor-toolbar label span,
.code-editor-file {
  color: #4f5f73;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.code-editor-toolbar select {
  min-height: 42px;
  border: 1px solid #d6e0eb;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.code-editor-file {
  align-self: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: #245b1d;
  background: #eaffdf;
}

.code-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.code-editor-actions .button.small {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.kotlin-playground-button {
  border-color: rgba(167, 243, 109, 0.42);
  color: #eaffdf;
  background:
    linear-gradient(135deg, rgba(36, 91, 29, 0.92), rgba(12, 27, 48, 0.94));
}

.kotlin-playground-button:hover,
.kotlin-playground-button:focus-visible {
  border-color: rgba(167, 243, 109, 0.72);
  box-shadow: 0 12px 28px rgba(117, 207, 85, 0.2);
}

.kotlin-playground-button[hidden] {
  display: none !important;
}

.code-editor {
  width: 100%;
  min-height: 430px;
  resize: vertical;
  border: 1px solid rgba(117, 207, 85, 0.36);
  border-radius: var(--radius);
  padding: 18px;
  color: #dcfce7;
  caret-color: var(--lime);
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  tab-size: 2;
  background:
    linear-gradient(180deg, rgba(15, 30, 50, 0.96), rgba(8, 19, 35, 0.98)),
    #081323;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.code-editor:focus {
  border-color: var(--lime-2);
  box-shadow:
    0 0 0 4px rgba(167, 243, 109, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.code-console {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  color: #cfe8d3;
  background: #081323;
}

.code-console strong {
  color: var(--lime);
}

.code-console span,
.code-console small {
  color: rgba(234, 255, 223, 0.8);
}

.code-console code {
  display: block;
  overflow-x: auto;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: #eaffdf;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .coding-practice-layout {
    grid-template-columns: 1fr;
  }

  .coding-practice-sidebar {
    position: static;
    max-height: none;
  }

  .coding-practice-list {
    max-height: 460px;
  }
}

@media (max-width: 700px) {
  .coding-practice-filters,
  .coding-sample-grid {
    grid-template-columns: 1fr;
  }

  .coding-practice-title-row,
  .code-editor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .code-editor-actions {
    justify-content: stretch;
  }

  .code-editor-actions .button.small {
    flex: 1 1 140px;
  }

  .coding-practice-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .coding-practice-row .difficulty-badge {
    grid-column: 2;
    justify-self: start;
  }

  .code-editor {
    min-height: 360px;
    font-size: 0.88rem;
  }
}
/* Coding practice online judge layout */
.coding-practice-list-screen {
  align-items: start;
}

.coding-practice-dashboard {
  overflow: hidden;
  width: min(980px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(8, 23, 51, 0.12);
}

.coding-practice-dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 18%, rgba(167, 243, 109, 0.24), transparent 26%),
    linear-gradient(135deg, #eefdeb 0%, #f4fbff 100%);
}

.coding-practice-dashboard-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.1rem, 8vw, 5.8rem);
  line-height: 0.95;
}

.coding-practice-dashboard-hero p:not(.eyebrow) {
  max-width: 620px;
  color: #516177;
  font-size: 1.02rem;
  line-height: 1.72;
}

.coding-practice-dashboard-count {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 112px;
  padding: 16px;
  border-radius: var(--radius);
  color: #175c21;
  background: #dcfce7;
}

.coding-practice-dashboard-count strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.coding-practice-dashboard-count span,
.coding-practice-dashboard-count small {
  font-weight: 900;
}

.coding-practice-dashboard-filters {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  width: 100%;
  border-width: 0 0 1px;
  box-shadow: none;
}

.coding-practice-dashboard-filters label:first-child {
  grid-column: 1 / -1;
}

.coding-practice-dashboard-list {
  max-height: min(70vh, 760px);
  overflow-y: auto;
  padding: 18px;
  background: #fbfdff;
}

.coding-practice-dashboard-list .coding-practice-group {
  box-shadow: 0 12px 28px rgba(8, 23, 51, 0.06);
}

.coding-practice-dashboard-list .coding-practice-row {
  min-height: 76px;
  background: #f8fbfd;
}

.coding-practice-dashboard-list .coding-practice-row:hover {
  transform: translateY(-1px);
}

.coding-practice-runner-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(167, 243, 109, 0.24);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, #071323 0%, #0d2b38 58%, #163c27 100%);
  box-shadow: 0 18px 44px rgba(8, 23, 51, 0.14);
}

.coding-practice-runner-topbar h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.coding-practice-runner-topbar > span {
  color: #d7fbd2;
  font-weight: 900;
}

.coding-practice-runner-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  width: min(1520px, 100%);
  margin: 0 auto;
  align-items: start;
}

.coding-practice-problem-panel {
  position: sticky;
  top: 92px;
  overflow-y: auto;
  max-height: calc(100vh - 116px);
}

.coding-testcase-list {
  display: grid;
  gap: 10px;
}

.coding-testcase-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius);
  background: #f8fbfd;
}

.coding-testcase-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.coding-testcase-card strong {
  color: var(--navy);
}

.coding-testcase-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.coding-testcase-card dl {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.coding-testcase-card dt,
.coding-testcase-card dd {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.coding-testcase-card dt {
  color: #245b1d;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.coding-testcase-card dd pre {
  overflow-x: auto;
  margin: 0;
  color: #102033;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.86rem;
  white-space: pre-wrap;
}

.code-editor-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(117, 207, 85, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(15, 30, 50, 0.96), rgba(8, 19, 35, 0.98)),
    #081323;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.code-highlight,
.code-editor-shell .code-editor {
  min-height: 500px;
  margin: 0;
  padding: 18px;
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
}

.code-highlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  color: #dcfce7;
}

.code-highlight code {
  font: inherit;
}

.code-editor-shell .code-editor {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 100%;
  border: 0;
  color: transparent;
  caret-color: var(--lime);
  background: transparent;
  box-shadow: none;
  outline: none;
  resize: vertical;
  -webkit-text-fill-color: transparent;
}

.code-editor-shell .code-editor::selection {
  background: rgba(84, 214, 255, 0.28);
  -webkit-text-fill-color: transparent;
}

.token-keyword,
.token-boolean {
  color: #8bd5ff;
  font-weight: 800;
}

.token-builtin {
  color: #5eead4;
  font-weight: 700;
}

.token-string {
  color: #f9d77e;
}

.token-number {
  color: #ffb86c;
}

.token-comment {
  color: #8ba99c;
  font-style: italic;
}

.code-error-box {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius);
  color: #fee2e2;
  background: #2a0f13;
}

.code-error-box[hidden] {
  display: none;
}

.code-error-box strong {
  color: #fecaca;
}

.code-error-location {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fecaca;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.code-error-snippet {
  margin: 2px 0 0;
  max-width: 100%;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid rgba(252, 165, 165, 0.28);
  border-radius: 10px;
  color: #fee2e2;
  background: rgba(4, 14, 29, 0.76);
  font: 800 13px/1.65 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  white-space: pre;
}

.code-error-snippet code {
  color: inherit;
}

.code-complexity-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(167, 243, 109, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(167, 243, 109, 0.12), rgba(69, 194, 232, 0.08));
}

.code-complexity-card div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.code-complexity-card span {
  color: rgba(234, 255, 223, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-complexity-card strong {
  color: #eaffdf;
}

.code-complexity-card small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0b1b2e;
  background: var(--lime);
  font-weight: 900;
}

.code-complexity-card p {
  margin: 0;
  color: rgba(234, 255, 223, 0.78);
  line-height: 1.55;
}

.code-complexity-card.is-warn {
  border-color: rgba(251, 191, 36, 0.38);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(248, 113, 113, 0.1));
}

.code-complexity-card.is-warn small {
  background: #fbbf24;
}

.code-complexity-card.is-strong {
  border-color: rgba(167, 243, 109, 0.36);
}
.code-result-list {
  display: grid;
  gap: 10px;
}

.code-result-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.code-result-row.is-pass {
  border-color: rgba(167, 243, 109, 0.36);
}

.code-result-row.is-pass strong {
  color: var(--lime);
}

.code-result-row.is-fail {
  border-color: rgba(248, 113, 113, 0.44);
}

.code-result-row.is-fail strong {
  color: #fca5a5;
}

@media (max-width: 1100px) {
  .coding-practice-runner-layout,
  .coding-practice-runner-topbar {
    grid-template-columns: 1fr;
  }

  .coding-practice-problem-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 700px) {
  .coding-practice-dashboard-hero,
  .coding-practice-runner-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .coding-practice-dashboard-hero {
    display: grid;
  }

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

  .coding-practice-dashboard-list {
    max-height: none;
    padding: 12px;
  }

  .coding-testcase-card dl {
    grid-template-columns: 1fr;
  }

  .coding-testcase-card dt {
    padding-bottom: 0;
  }

  .code-highlight,
  .code-editor-shell .code-editor {
    min-height: 380px;
    font-size: 0.86rem;
  }
}
.code-editor-actions .button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.student-nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(167, 243, 109, 0.26);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(167, 243, 109, 0.1);
  font-size: 0.84rem;
  font-weight: 800;
}

.student-nav-account > span {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-nav-account button {
  min-height: 30px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  color: #071323;
  background: var(--lime);
  font-weight: 900;
}

.learning-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  min-height: calc(100vh - 154px);
  color: var(--white);
  background:
    radial-gradient(circle at 14% 20%, rgba(167, 243, 109, 0.24), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(84, 214, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #071323 0%, #10264d 100%);
}

.learning-auth-copy {
  max-width: 720px;
}

.learning-auth-copy h1 {
  color: var(--white);
}

.learning-auth-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.learning-auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.learning-auth-points span {
  padding: 9px 12px;
  border: 1px solid rgba(167, 243, 109, 0.28);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(167, 243, 109, 0.1);
  font-weight: 900;
}

.student-profile-panel input[readonly] {
  color: #64748b;
  background: #f3f7fb;
  cursor: not-allowed;
}

.student-profile-shell .learning-auth-card {
  max-width: 760px;
}
.learning-auth-card .login-panel,
.student-auth-panel {
  width: 100%;
  margin: 0;
  border-color: rgba(167, 243, 109, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.student-admin-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.student-admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.student-admin-summary span,
.student-admin-meta span {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #f8fafc;
}

.student-admin-summary strong {
  display: block;
  color: var(--admin-text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.student-admin-summary small,
.student-admin-meta small {
  display: block;
  margin-top: 5px;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.student-admin-list {
  display: grid;
  gap: 12px;
}

.student-admin-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #ffffff;
}

.student-admin-item[hidden] {
  display: none;
}

.student-admin-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #214f17;
  background: linear-gradient(135deg, var(--mint), rgba(84, 214, 255, 0.26));
  font-family: var(--font-display);
  font-weight: 900;
}

.student-admin-item strong,
.student-admin-meta strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--admin-text);
}

.student-admin-item small {
  color: var(--admin-muted);
}

.student-admin-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px) {
  .learning-auth-shell {
    grid-template-columns: 1fr;
  }

  .student-nav-account {
    align-self: stretch;
    justify-content: space-between;
  }

  .student-admin-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .student-admin-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .student-admin-summary,
  .student-admin-meta {
    grid-template-columns: 1fr;
  }
}
.student-auth-grid,
.student-fresher-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.student-fresher-fields {
  padding: 14px;
  border: 1px solid rgba(167, 243, 109, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(234, 255, 223, 0.78), rgba(227, 247, 255, 0.72));
}

.student-fresher-fields[hidden] {
  display: none;
}

.student-auth-panel select {
  appearance: auto;
}

@media (max-width: 700px) {
  .student-auth-grid,
  .student-fresher-fields {
    grid-template-columns: 1fr;
  }
}
/* Student access screen polish */
.learning-auth-shell.section-band {
  grid-template-columns: minmax(280px, 0.72fr) minmax(440px, 1.08fr);
  align-items: stretch;
  min-height: calc(100vh - 72px);
  padding: clamp(18px, 2.2vw, 34px) var(--page-gutter);
  gap: clamp(16px, 2.4vw, 32px);
  background:
    radial-gradient(circle at 8% 12%, rgba(167, 243, 109, 0.26), transparent 25%),
    radial-gradient(circle at 92% 10%, rgba(84, 214, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #061124 0%, #0b1d3a 52%, #10264d 100%);
}

.learning-auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  min-height: 100%;
  padding: clamp(20px, 3vw, 42px);
  border: 1px solid rgba(167, 243, 109, 0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.learning-auth-copy h1 {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 4.15rem);
}

.learning-auth-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.68;
}

.learning-auth-points {
  gap: 8px;
  margin-top: 20px;
}

.learning-auth-points span {
  min-height: 34px;
  padding: 8px 11px;
  border-color: rgba(167, 243, 109, 0.32);
  color: #dfffc8;
  background: rgba(167, 243, 109, 0.1);
}

.learning-auth-card {
  display: flex;
  min-width: 0;
}

.learning-auth-card .login-panel,
.student-auth-panel {
  max-width: none;
  min-height: 100%;
  padding: clamp(18px, 2.1vw, 30px);
  gap: 13px;
  border: 1px solid rgba(167, 243, 109, 0.26);
  border-radius: 14px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96)),
    var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.student-auth-panel h2 {
  color: var(--navy);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

.student-auth-panel .eyebrow {
  margin-bottom: 5px;
}

.student-auth-panel .muted {
  margin: 4px 0 0;
  color: #526174;
  line-height: 1.55;
}

.student-auth-panel label {
  gap: 6px;
}

.student-auth-panel label span {
  color: #22314a;
  font-size: 0.8rem;
}

.student-auth-panel input,
.student-auth-panel select {
  min-height: 42px;
  padding: 10px 12px;
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
}

.student-auth-panel input:focus,
.student-auth-panel select:focus {
  border-color: var(--lime-2);
  box-shadow: 0 0 0 4px rgba(167, 243, 109, 0.22);
}

.student-auth-grid,
.student-fresher-fields {
  gap: 10px 12px;
}

.student-fresher-fields {
  padding: 12px;
  border-color: rgba(117, 207, 85, 0.35);
  background: linear-gradient(135deg, rgba(234, 255, 223, 0.88), rgba(227, 247, 255, 0.78));
}

.student-auth-panel .button.primary {
  min-height: 44px;
  margin-top: 2px;
}

.student-auth-panel .auth-link {
  justify-self: center;
  color: #2f6f1f;
  font-weight: 900;
}

@media (max-width: 980px) {
  .learning-auth-shell.section-band {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 68px);
  }

  .learning-auth-copy {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .learning-auth-shell.section-band {
    padding: 14px;
  }

  .learning-auth-copy,
  .student-auth-panel {
    padding: 16px;
  }
}
/* Public home polish: remove decorative number badges and tighten spacing */
.home-stat-band {
  display: none;
}

.outcome-band,
.home-feature-band,
.home-chapter-band,
.learning-strip,
.home-toolkit-band,
.home-events-band,
.home-journey-band,
.home-faq-cta,
.home-blog-section {
  padding-top: clamp(34px, 4vw, 56px);
  padding-bottom: clamp(34px, 4vw, 56px);
}

.hero.section-band {
  min-height: calc(100vh - 72px);
  padding-top: clamp(86px, 10vh, 118px);
  padding-bottom: clamp(36px, 6vh, 62px);
}

.hero-copy {
  width: min(760px, 58vw);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5.2vw, 5.4rem);
}

.hero-text {
  max-width: 720px;
}

.hero .home-search-section .home-search-card.is-search-only {
  width: min(980px, 100%);
  max-width: 980px;
}

.home-video-feature {
  position: relative;
  overflow: hidden;
  padding-top: clamp(30px, 4vw, 58px);
  padding-bottom: clamp(30px, 4vw, 58px);
  color: var(--white);
  background:
    radial-gradient(circle at 72% 18%, rgba(167, 243, 109, 0.23), transparent 27%),
    radial-gradient(circle at 18% 76%, rgba(84, 214, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #061225 0%, #0c271f 54%, #071323 100%);
  isolation: isolate;
}

.home-video-feature::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), transparent 96%);
}

.home-video-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  width: 100%;
  padding: clamp(18px, 2.7vw, 34px);
  border: 1px solid rgba(167, 243, 109, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(7, 19, 35, 0.92), rgba(18, 67, 48, 0.74)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.home-video-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  content: "";
  background: linear-gradient(90deg, rgba(167, 243, 109, 0.16), transparent 34%, rgba(84, 214, 255, 0.1));
  opacity: 0.8;
}

.home-video-copy,
.home-video-shell {
  position: relative;
  z-index: 1;
}

.home-video-copy {
  max-width: 640px;
}

.home-video-copy h2 {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 5rem);
  line-height: 0.96;
}

.home-video-copy p:not(.eyebrow) {
  max-width: 600px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.72;
}

.home-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-video-channel-button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.home-video-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.home-video-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(167, 243, 109, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.home-video-shell {
  min-width: 0;
}

.home-video-glow {
  position: absolute;
  inset: -18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(167, 243, 109, 0.34), rgba(84, 214, 255, 0.18), rgba(255, 148, 96, 0.15));
  filter: blur(28px);
  opacity: 0.68;
}

.home-video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(167, 243, 109, 0.34);
  border-radius: 16px;
  background: #071323;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.home-video-toolbar {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-video-toolbar span {
  display: inline-flex;
  gap: 7px;
}

.home-video-toolbar i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.home-video-toolbar i:first-child {
  background: var(--lime);
}

.home-video-toolbar strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-video-toolbar a {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(167, 243, 109, 0.34);
  border-radius: 999px;
  color: #071323;
  background: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
}

.home-video-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
}

.home-video-viewport::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(90deg, rgba(167, 243, 109, 0.12), transparent 46%, rgba(84, 214, 255, 0.08));
}

.home-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .home-video-card {
    grid-template-columns: 1fr;
  }
}

.outcome-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 255, 223, 0.28));
}

.outcome-grid,
.home-feature-grid,
.home-chapter-grid,
.home-event-grid,
.program-grid.home-course-grid,
.article-rail,
.home-blog-grid {
  width: 100%;
  max-width: none;
}

.outcome-card {
  position: relative;
  min-height: 166px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(8, 23, 51, 0.08);
}

.outcome-card::before {
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--sky));
  content: "";
}

.outcome-card > span,
.home-stat-icon {
  display: none !important;
}

.home-feature-card,
.home-chapter-card,
.home-event-card,
.home-journey-item {
  border-color: rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(8, 23, 51, 0.075);
}

.home-feature-card {
  min-height: 218px;
  padding: 20px;
}

.home-feature-card > span,
.home-chapter-card > span,
.home-journey-item > span {
  border-radius: 8px;
}

.technology-banner.section-band {
  min-height: 440px;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.technology-banner-copy {
  width: min(700px, 52vw);
}

.home-toolkit-card,
.home-faq-panel {
  width: 100%;
  padding: clamp(24px, 4vw, 42px);
}

.home-toolkit-score {
  width: min(280px, 100%);
  min-height: 170px;
}

.home-toolkit-score strong {
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-event-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 210px;
}

.home-event-date {
  width: auto;
  height: auto;
  min-height: 38px;
  place-items: start;
  align-content: center;
  justify-content: start;
  padding: 0;
  border-radius: 0;
  color: #2f6f1f;
  background: transparent;
}

.home-event-date strong {
  display: none;
}

.home-event-date span {
  display: inline-flex;
  width: max-content;
  padding: 7px 10px;
  border-radius: 8px;
  color: #214f17;
  background: var(--mint);
}

@media (max-width: 980px) {
  .hero-copy {
    width: min(680px, 72vw);
  }

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

  .home-video-copy {
    max-width: 760px;
  }

  .technology-banner-copy {
    width: min(620px, 62vw);
  }
}

@media (max-width: 760px) {
  .hero.section-band {
    min-height: 680px;
    padding-top: 78px;
  }

  .hero-copy,
  .technology-banner-copy {
    width: 100%;
  }

  .home-video-feature {
    gap: 22px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .home-video-card {
    padding: 16px;
    border-radius: 14px;
  }

  .home-video-points {
    grid-template-columns: 1fr;
  }

  .home-video-actions .button {
    width: 100%;
    justify-content: center;
  }

  .home-video-toolbar {
    grid-template-columns: 54px 1fr auto;
  }

  .home-video-frame {
    border-radius: 12px;
  }

  .outcome-band,
  .home-feature-band,
  .home-chapter-band,
  .learning-strip,
  .home-toolkit-band,
  .home-events-band,
  .home-journey-band,
  .home-faq-cta,
  .home-blog-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
/* Coding practice polish: full-width workbench without public counters */
.coding-practice-shell.section-band {
  min-height: calc(100vh - 72px);
  padding-top: clamp(14px, 1.8vw, 28px);
  padding-bottom: clamp(22px, 2.6vw, 36px);
}

.coding-practice-list-screen {
  align-items: stretch;
}

.coding-practice-dashboard {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 128px);
  border-radius: 10px;
}

.coding-practice-dashboard-hero {
  align-items: center;
  padding: clamp(22px, 3vw, 38px);
}

.coding-practice-dashboard-hero h1 {
  font-size: clamp(2.7rem, 5.8vw, 5.1rem);
}

.coding-practice-dashboard-hero p:not(.eyebrow) {
  max-width: 860px;
}

.coding-practice-dashboard-count {
  display: none !important;
}

.coding-practice-dashboard-filters {
  grid-template-columns: minmax(280px, 1.35fr) repeat(4, minmax(142px, 0.48fr));
  gap: 10px;
  padding: 12px;
}

.coding-practice-dashboard-filters label:first-child {
  grid-column: auto;
}

.coding-practice-dashboard-filters input,
.coding-practice-dashboard-filters select {
  min-height: 44px;
}

.coding-practice-dashboard-list {
  min-height: 0;
  max-height: none;
  padding: 12px;
}

.coding-practice-dashboard-list .coding-practice-group {
  border-radius: 8px;
}

.coding-practice-group summary {
  padding: 14px 16px;
  font-size: 1.05rem;
}

.coding-practice-group summary small.coding-practice-group-cue {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(117, 207, 85, 0.38);
  border-radius: 8px;
  color: #245b1d;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
  background: rgba(234, 255, 223, 0.88);
  transition: transform 180ms ease, background 180ms ease;
}

.coding-practice-group[open] summary small.coding-practice-group-cue {
  transform: rotate(45deg);
  background: #dcfce7;
}

.coding-practice-group-list {
  gap: 7px;
  padding: 0 10px 10px;
}

.coding-practice-dashboard-list .coding-practice-row,
.coding-practice-row {
  min-height: 62px;
  padding: 11px 12px;
  border-radius: 8px;
}

.coding-practice-editor-screen.section-band {
  gap: 14px;
}

.coding-practice-runner-topbar,
.coding-practice-runner-layout {
  width: 100%;
  max-width: none;
}

.coding-practice-runner-topbar {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
}

.coding-practice-runner-topbar > span {
  display: none;
}

.coding-practice-runner-layout {
  grid-template-columns: minmax(360px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 162px);
}

.coding-practice-problem-panel {
  top: 84px;
  max-height: calc(100vh - 108px);
  padding: 18px;
  border-radius: 10px;
}

.coding-practice-editor-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: calc(100vh - 162px);
  padding: 16px;
  border-radius: 10px;
}

.code-editor-toolbar {
  margin-bottom: 10px;
}

.code-editor-shell {
  min-height: 0;
  height: 100%;
  border-radius: 10px;
}

.code-highlight,
.code-editor-shell .code-editor {
  min-height: calc(100vh - 318px);
}

.code-console {
  margin-top: 10px;
  border-radius: 10px;
}

@media (max-width: 1180px) {
  .coding-practice-dashboard-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coding-practice-dashboard-filters label:first-child {
    grid-column: 1 / -1;
  }

  .coding-practice-runner-layout {
    grid-template-columns: 1fr;
  }

  .coding-practice-problem-panel,
  .coding-practice-editor-panel {
    max-height: none;
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .coding-practice-shell.section-band {
    padding: 12px;
  }

  .coding-practice-dashboard {
    min-height: calc(100vh - 92px);
  }

  .coding-practice-dashboard-hero {
    padding: 20px;
  }

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

  .coding-practice-dashboard-filters label:first-child {
    grid-column: auto;
  }

  .coding-practice-runner-topbar {
    grid-template-columns: 1fr;
  }

  .code-highlight,
  .code-editor-shell .code-editor {
    min-height: 360px;
  }
}
/* Coding practice editor polish */
.coding-practice-editor-screen.section-band {
  padding-top: 14px;
  background:
    radial-gradient(circle at 4% 0%, rgba(167, 243, 109, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(234, 255, 223, 0.54), rgba(246, 249, 252, 0.96) 300px),
    var(--cloud);
}

.coding-practice-runner-topbar {
  min-height: 112px;
  padding: 16px 18px;
  border-color: rgba(167, 243, 109, 0.3);
  background:
    radial-gradient(circle at 96% 14%, rgba(167, 243, 109, 0.18), transparent 28%),
    linear-gradient(135deg, #071323 0%, #0d2838 52%, #123f25 100%);
}

.coding-practice-runner-topbar .button.secondary.small {
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.coding-practice-runner-topbar .button.secondary.small:hover,
.coding-practice-runner-topbar .button.secondary.small:focus-visible {
  border-color: rgba(167, 243, 109, 0.46);
  background: rgba(167, 243, 109, 0.14);
}

.coding-practice-runner-topbar .eyebrow {
  margin-bottom: 6px;
  color: var(--lime);
}

.coding-practice-runner-layout {
  grid-template-columns: minmax(300px, 0.29fr) minmax(0, 1fr);
  align-items: stretch;
}

.coding-practice-problem-panel,
.coding-practice-editor-panel {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96)),
    #ffffff;
  box-shadow: 0 20px 58px rgba(8, 23, 51, 0.1);
}

.coding-practice-problem-panel .coding-practice-title-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.coding-practice-problem-panel .coding-practice-title-row h2 {
  max-width: 100%;
  font-size: clamp(1.85rem, 2.7vw, 3.05rem);
  line-height: 1.08;
}

.coding-practice-problem-panel .coding-practice-solved-button {
  justify-self: start;
}

.coding-practice-problem-panel .coding-practice-meta {
  gap: 7px;
  margin-bottom: 14px;
}

.coding-practice-problem-panel .coding-practice-meta span:not(.difficulty-badge),
.coding-practice-problem-panel .difficulty-badge {
  min-height: 31px;
  border-radius: 999px;
}

.coding-practice-statement section {
  padding: 14px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.coding-practice-statement section:first-of-type {
  border-top: 0;
}

.coding-practice-statement h3 {
  margin-top: 0;
}

.coding-practice-statement p,
.coding-practice-checklist {
  font-size: 0.98rem;
  line-height: 1.68;
}

.coding-testcase-card {
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(8, 23, 51, 0.045);
}

.code-editor-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(234, 255, 223, 0.82), rgba(237, 247, 255, 0.82));
}

.code-editor-toolbar label {
  min-width: 0;
}

.code-editor-toolbar select {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.code-editor-file {
  justify-self: center;
  border: 1px solid rgba(117, 207, 85, 0.24);
  background: #dcfce7;
}

.code-editor-actions .button.primary.small {
  box-shadow: 0 12px 28px rgba(117, 207, 85, 0.26);
}

.code-editor-shell {
  border-color: rgba(117, 207, 85, 0.42);
  box-shadow:
    0 18px 44px rgba(8, 23, 51, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.code-highlight,
.code-editor-shell .code-editor {
  padding: 22px 24px;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.72;
}

.code-console {
  max-height: 260px;
  overflow: auto;
  border-color: rgba(117, 207, 85, 0.22);
  box-shadow: 0 14px 34px rgba(8, 23, 51, 0.11);
}

.code-runner-source {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #d7fbd2;
  background: rgba(167, 243, 109, 0.12);
  font-weight: 850;
}

@media (max-width: 1180px) {
  .coding-practice-runner-layout {
    grid-template-columns: 1fr;
  }

  .coding-practice-runner-topbar {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .code-editor-toolbar {
    grid-template-columns: 1fr;
  }

  .code-editor-file,
  .code-editor-actions {
    justify-self: stretch;
  }

  .code-editor-actions .button {
    flex: 1 1 120px;
  }
}
/* Mermaid tutorial diagrams */
.tutorial-mermaid-diagram {
  margin: 22px 0;
  padding: clamp(16px, 2.4vw, 26px);
  overflow-x: auto;
  border: 1px solid rgba(117, 207, 85, 0.32);
  border-left: 5px solid var(--lime-2);
  border-radius: 10px;
  background:
    radial-gradient(circle at 96% 8%, rgba(167, 243, 109, 0.22), transparent 26%),
    linear-gradient(135deg, #fbfff7 0%, #eefcff 100%);
  box-shadow: 0 18px 42px rgba(8, 23, 51, 0.09);
}

.tutorial-mermaid-diagram .mermaid {
  display: grid;
  min-width: min(720px, 100%);
  place-items: center;
  color: #102033;
  font-family: var(--font-body);
}

.tutorial-mermaid-diagram .mermaid svg {
  max-width: 100%;
  height: auto !important;
}

.tutorial-mermaid-diagram[data-mermaid-diagram="loading"] .mermaid::before {
  color: #2f6f1f;
  font-weight: 900;
  content: "Rendering diagram...";
}

.tutorial-mermaid-diagram[data-mermaid-diagram="error"] .mermaid {
  place-items: start;
  color: #d9fce2;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  white-space: pre;
  background: #0c1726;
}

.tutorial-full-view-dialog .tutorial-mermaid-diagram {
  border-color: var(--reader-line);
  background: var(--reader-surface);
}

.tutorial-full-view-dialog.is-reader-dark .tutorial-mermaid-diagram {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.coding-problem-form textarea[name="testCasesSource"] {
  min-height: 260px;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #d7ffe4;
  background: #071426;
  border-color: rgba(151, 255, 101, 0.34);
}

.coding-problem-form textarea[name="testCasesSource"]:focus {
  box-shadow: 0 0 0 4px rgba(151, 255, 101, 0.16);
}
.coding-meta-panel {
  display: grid;
  gap: 18px;
}

.coding-meta-form {
  display: grid;
  gap: 18px;
}

.coding-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.coding-meta-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e1eaf4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.coding-meta-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaf0f7;
}

.coding-meta-card h3 {
  margin: 0;
  color: var(--admin-text, var(--ink));
  font-size: 1rem;
  font-weight: 950;
}

.coding-meta-card p {
  margin: 5px 0 0;
  color: var(--admin-muted, var(--muted));
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.coding-meta-card .button.small {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.coding-meta-rows {
  display: grid;
  gap: 10px;
}

.coding-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 42px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #edf2f8;
  border-radius: 10px;
  background: #ffffff;
}

.coding-meta-row input[type="hidden"] {
  display: none;
}

.coding-meta-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.coding-meta-row label > span {
  color: #5d6d83;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.coding-meta-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d6e0ed;
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--admin-text, var(--ink));
  font: inherit;
  font-weight: 800;
  background: #fbfdff;
}

.coding-meta-row input:focus {
  outline: none;
  border-color: #8fec62;
  box-shadow: 0 0 0 3px rgba(143, 236, 98, 0.16);
}

.coding-meta-row .icon-only-button {
  width: 42px;
  height: 42px;
  align-self: end;
}

.coding-meta-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 1180px) {
  .coding-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .coding-meta-card header,
  .coding-meta-row {
    grid-template-columns: 1fr;
  }

  .coding-meta-card header {
    display: grid;
  }

  .coding-meta-row .icon-only-button {
    width: 100%;
  }
}
/* Kotlin lesson Q&A and practice quiz refinements */
.tutorial-reader-body .interview-answer-card {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(45, 139, 47, 0.18);
  border-left: 5px solid var(--lime-2);
  border-radius: 8px;
  background: linear-gradient(135deg, #fbfff8 0%, #f6fbff 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.tutorial-reader-body .interview-answer-card h3 {
  margin: 0;
  color: #10213a;
  font-size: 1.08rem;
}

.tutorial-reader-body .interview-answer-card p,
.tutorial-reader-body .interview-answer-card ul {
  margin: 0;
}

.tutorial-reader-body .interview-answer-card pre {
  margin: 4px 0;
}

.practice-quiz {
  border: 1px solid rgba(45, 139, 47, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #fbfff7 0%, #f7fbff 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.practice-quiz-heading > div {
  display: grid;
  gap: 5px;
}

.practice-quiz-heading h2 {
  margin: 0;
}

.practice-quiz-heading p {
  max-width: 620px;
  margin: 0;
  color: #52627a;
  line-height: 1.55;
}

.practice-question {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.practice-question label {
  border: 1px solid transparent;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.practice-question label:hover,
.practice-question label:focus-within {
  border-color: rgba(151, 246, 108, 0.65);
  background: #f4ffef;
  transform: translateY(-1px);
}

.practice-explanation {
  padding: 10px 12px;
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background: #f6fbff;
}


@media (max-width: 700px) {
  .practice-quiz-heading {
    grid-template-columns: 1fr;
  }

  .practice-question {
    padding: 12px;
  }

  .practice-question label {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 54px;
    padding: 11px 12px;
  }
}


@media (max-width: 900px) {
  .site-navigation-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet admin tap fixes */
@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: calc(100vh - 84px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(8, 23, 51, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-links button,
  .account-menu-button {
    min-height: 46px;
  }

  .nav-account,
  .account-menu-button {
    width: 100%;
  }

  .account-menu-button {
    justify-content: space-between;
    border-radius: 10px;
    padding: 7px 10px;
  }

  .account-menu-name {
    max-width: none;
    margin-right: auto;
  }

  .account-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    transform-origin: top center;
  }

  .admin-dashboard-shell {
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 30px;
  }

  .admin-dashboard-shell .admin-sidebar {
    position: sticky;
    top: 74px;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    overflow: hidden;
    border-radius: 10px;
  }

  .admin-dashboard-shell .admin-sidebar-brand {
    display: flex;
  }

  .admin-dashboard-shell .admin-sidebar-user,
  .admin-dashboard-shell .admin-sidebar-card {
    display: none;
  }

  .admin-dashboard-shell .admin-dashboard-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
  }

  .admin-dashboard-shell .admin-tabs.admin-dashboard-nav button {
    grid-template-columns: 20px auto auto;
    min-width: max-content;
    min-height: 48px;
    padding: 11px 14px;
    scroll-snap-align: start;
  }

  .admin-dashboard-shell .admin-main {
    max-width: none;
    padding: 8px 0 34px;
  }

  .admin-dashboard-shell .admin-topline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-dashboard-shell .admin-topline > .admin-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .admin-dashboard-shell .admin-list-item,
  .admin-dashboard-shell .subject-admin-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 12px;
  }

  .admin-dashboard-shell .admin-list-item > .status-badge,
  .admin-dashboard-shell .subject-admin-item > .status-badge {
    justify-self: start;
  }

  .admin-dashboard-shell .admin-list-item > .admin-actions,
  .admin-dashboard-shell .subject-admin-item > .subject-admin-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .admin-dashboard-shell .admin-actions .icon-only-button,
  .admin-dashboard-shell .subject-admin-actions .icon-only-button,
  .admin-dashboard-shell .order-controls .icon-only-button {
    width: 42px;
    height: 42px;
  }

  .section-admin-row {
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: end;
  }

  .section-admin-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .section-admin-row-actions .button,
  .section-admin-row-actions .icon-only-button {
    min-height: 42px;
  }

  .section-admin-row-actions .icon-only-button {
    width: 42px;
    height: 42px;
  }
}

/* Phone admin compact restore */
@media (max-width: 760px) {
  .admin-dashboard-shell .admin-sidebar {
    position: static;
    top: auto;
  }

  .admin-dashboard-shell .admin-sidebar-brand,
  .admin-dashboard-shell .admin-sidebar-user {
    display: none;
  }
}
/* Android 7 tablet compatibility */
html.legacy-android body {
  min-width: 0;
}

html.legacy-android .section-band,
html.legacy-android .admin-dashboard-shell,
html.legacy-android .coding-practice-shell.section-band,
html.legacy-android .coding-practice-editor-screen.section-band {
  padding-right: 14px;
  padding-left: 14px;
}

html.legacy-android .site-header {
  position: relative;
  min-height: 68px;
}

html.legacy-android .menu-toggle {
  display: inline-flex;
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
}

html.legacy-android .nav-links {
  position: absolute;
  top: 68px;
  right: 12px;
  left: 12px;
  z-index: 40;
  display: none;
  max-height: none;
  padding: 10px;
  overflow: visible;
  border-radius: 10px;
  background: rgba(8, 23, 51, 0.98);
}

html.legacy-android .nav-links.is-open {
  display: block;
}

html.legacy-android .nav-links a,
html.legacy-android .nav-links button,
html.legacy-android .account-menu-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  margin: 5px 0;
  align-items: center;
  justify-content: flex-start;
}

html.legacy-android .account-dropdown {
  position: static;
  width: 100%;
  margin-top: 8px;
}

html.legacy-android .hero {
  min-height: auto;
  padding-top: 34px;
  padding-bottom: 42px;
}

html.legacy-android .hero-copy {
  width: 100%;
  max-width: none;
}

html.legacy-android .hero-logo-badge {
  position: relative;
  top: auto;
  right: auto;
  width: 150px;
  margin: 24px auto 0;
}

html.legacy-android .hero-actions,
html.legacy-android .form-actions,
html.legacy-android .course-detail-actions,
html.legacy-android .admin-dashboard-shell .admin-actions,
html.legacy-android .admin-dashboard-shell .subject-admin-actions,
html.legacy-android .section-admin-row-actions,
html.legacy-android .code-editor-actions {
  display: flex;
  flex-wrap: wrap;
}

html.legacy-android .hero-actions > *,
html.legacy-android .form-actions > *,
html.legacy-android .course-detail-actions > *,
html.legacy-android .code-editor-actions > * {
  margin: 4px;
}

html.legacy-android .program-grid,
html.legacy-android .article-grid,
html.legacy-android .article-rail,
html.legacy-android .outcome-grid,
html.legacy-android .blog-grid,
html.legacy-android .search-results,
html.legacy-android .course-detail-meta,
html.legacy-android .inquiry-admin-summary,
html.legacy-android .inquiry-admin-grid,
html.legacy-android .coding-practice-dashboard,
html.legacy-android .coding-practice-dashboard-filters,
html.legacy-android .coding-practice-runner-layout,
html.legacy-android .coding-practice-runner-topbar {
  display: block;
}

html.legacy-android .program-card,
html.legacy-android .article-card,
html.legacy-android .outcome-card,
html.legacy-android .blog-card,
html.legacy-android .search-result-card,
html.legacy-android .course-detail-meta span,
html.legacy-android .coding-practice-dashboard-filters label,
html.legacy-android .coding-practice-problem-panel,
html.legacy-android .coding-practice-editor-panel {
  margin-bottom: 14px;
}

html.legacy-android .admin-dashboard-shell {
  display: block;
  padding-top: 14px;
  padding-bottom: 30px;
}

html.legacy-android .admin-dashboard-shell .admin-sidebar {
  position: static;
  display: block;
  width: 100%;
  padding: 12px;
  overflow: visible;
  border-radius: 10px;
}

html.legacy-android .admin-dashboard-shell .admin-sidebar-card,
html.legacy-android .admin-dashboard-shell .admin-sidebar-user {
  display: none;
}

html.legacy-android .admin-dashboard-shell .admin-dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  overflow: visible;
}

html.legacy-android .admin-dashboard-shell .admin-tabs.admin-dashboard-nav button {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 48px;
  margin: 4px;
}

html.legacy-android .admin-dashboard-shell .admin-main {
  max-width: none;
  padding: 14px 0 34px;
}

html.legacy-android .admin-dashboard-shell .admin-layout,
html.legacy-android .admin-dashboard-shell .subject-admin-panel,
html.legacy-android .admin-dashboard-shell .admin-summary-grid,
html.legacy-android .section-admin-screen {
  display: block;
}

html.legacy-android .admin-dashboard-shell .admin-card,
html.legacy-android .admin-dashboard-shell .admin-stat-card,
html.legacy-android .admin-dashboard-shell .subject-admin-panel,
html.legacy-android .admin-dashboard-shell .admin-subject-tabs-card {
  margin-bottom: 14px;
}

html.legacy-android .admin-dashboard-shell .admin-list-item,
html.legacy-android .admin-dashboard-shell .subject-admin-item,
html.legacy-android .section-admin-row {
  display: block;
}

html.legacy-android .admin-dashboard-shell .admin-list-item > .admin-actions,
html.legacy-android .admin-dashboard-shell .subject-admin-item > .subject-admin-actions,
html.legacy-android .section-admin-row-actions {
  width: 100%;
  margin-top: 10px;
  justify-content: flex-start;
}

html.legacy-android .admin-dashboard-shell .admin-actions .icon-only-button,
html.legacy-android .admin-dashboard-shell .subject-admin-actions .icon-only-button,
html.legacy-android .admin-dashboard-shell .order-controls .icon-only-button,
html.legacy-android .section-admin-row-actions .icon-only-button {
  width: 44px;
  height: 44px;
  margin: 3px;
}

html.legacy-android .section-admin-row-actions .button,
html.legacy-android .admin-dashboard-shell .button,
html.legacy-android .code-editor-actions .button {
  min-height: 44px;
  margin: 3px;
}

html.legacy-android .code-editor-shell,
html.legacy-android .code-editor-shell .code-editor {
  min-height: 340px;
}


/* Android 7 form and media tap fallbacks */
html.legacy-android img,
html.legacy-android iframe,
html.legacy-android video {
  max-width: 100%;
}

html.legacy-android .admin-dashboard-shell .admin-form,
html.legacy-android .admin-dashboard-shell .subject-admin-form,
html.legacy-android .admin-dashboard-shell .section-admin-form,
html.legacy-android .auth-form,
html.legacy-android .inquiry-form,
html.legacy-android .course-admin-form {
  display: block;
}

html.legacy-android .admin-dashboard-shell label,
html.legacy-android .auth-form label,
html.legacy-android .inquiry-form label {
  display: block;
  margin-bottom: 12px;
}

html.legacy-android .admin-dashboard-shell input,
html.legacy-android .admin-dashboard-shell select,
html.legacy-android .admin-dashboard-shell textarea,
html.legacy-android .auth-form input,
html.legacy-android .auth-form select,
html.legacy-android .inquiry-form input,
html.legacy-android .inquiry-form select,
html.legacy-android .inquiry-form textarea {
  min-height: 46px;
  font-size: 16px;
}@media (max-width: 900px) {
  html.legacy-android .admin-dashboard-shell .admin-tabs.admin-dashboard-nav button {
    flex-basis: 100%;
  }

  html.legacy-android .hero-logo-badge {
    width: 132px;
  }
}
