/* ===========================
   GeoFlow Academy — Design System
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Geological palette: deep core sample tones (dark theme, default) */
  --ink: #0a0e14;
  --ink-rgb: 10, 14, 20;
  --ink-soft: #11161e;
  --ink-card: #161c26;
  --ink-line: #232b38;

  --bone: #f3ede1;
  --bone-soft: #d9d2c4;
  --bone-mute: #8c8579;

  --accent: #d97a3c;        /* oxidized iron / rust */
  --accent-soft: #e8a26d;
  --teal: #4ea7a0;          /* aquifer teal */
  --teal-deep: #2c5e5b;
  --amber: #e6b85c;         /* sandstone */
  --crimson: #b8423a;       /* warning / hot zone */

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;

  --radius: 4px;
  --max-w: 1240px;
}

/* Light theme — same palette logic, inverted lightness.
   Toggled by setting data-theme="light" on <html> (see theme.js).
   Ivory base — warm off-white, not stark white and not sandy/tan. */
:root[data-theme="light"] {
  --ink: #f6f4ec;
  --ink-rgb: 246, 244, 236;
  --ink-soft: #eeebdf;
  --ink-card: #e5e1d0;
  --ink-line: #d6d0bb;

  --bone: #1c1a14;
  --bone-soft: #3c372c;
  --bone-mute: #756c58;

  --accent: #b8571f;
  --accent-soft: #954a1c;
  --teal: #256b64;
  --teal-deep: #163d3a;
  --amber: #9c7318;
  --crimson: #a3382f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Smooth crossfade when the theme is switched */
body,
header.nav,
footer,
.lecture-card,
.feature,
.task,
.stat,
.contact-block,
.fund-banner,
.hero-viz,
.video-frame,
.tag,
.task-difficulty,
nav a,
.theme-toggle,
.lang-tag,
.btn-ghost {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Subtle grid background — reservoir simulation feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(217, 122, 60, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(78, 167, 160, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ===========================
   NAVIGATION
   =========================== */
header.nav {
  border-bottom: 1px solid var(--ink-line);
  background: rgba(var(--ink-rgb), 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bone);
}

/* Logo badge — fixed light chip so the navy logo artwork stays
   legible against both the dark and light theme backgrounds. */
.logo-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #f4efe3;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 3px;
  overflow: hidden;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.logo-text em {
  font-style: italic;
  color: var(--accent-soft);
  font-weight: 400;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--bone-soft);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

nav a:hover {
  color: var(--bone);
  background: var(--ink-card);
}

nav a.active {
  color: var(--accent-soft);
  background: var(--ink-card);
  border: 1px solid var(--ink-line);
}

.lang-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  border: 1px solid var(--ink-line);
  padding: 4px 8px;
  border-radius: var(--radius);
}

/* ===========================
   THEME TOGGLE
   =========================== */
.theme-toggle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  background: transparent;
  border: 1px solid var(--ink-line);
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--bone);
}

.theme-toggle #themeIcon {
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
}

/* ===========================
   COMMON
   =========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 80px 0;
}

.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(40px, 5.5vw, 76px); }
h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 24px; }
h3 { font-size: 22px; font-weight: 500; }

p { color: var(--bone-soft); font-size: 16px; }

a { color: var(--accent-soft); }

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--ink-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 32px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-soft);
  font-weight: 300;
}

.hero h1 .underline {
  position: relative;
  display: inline-block;
}

.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 8px;
  background: var(--accent);
  opacity: 0.25;
  z-index: -1;
}

.hero-lead {
  font-size: 18px;
  color: var(--bone-soft);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-meta span strong {
  color: var(--bone);
  font-weight: 500;
  display: block;
  margin-top: 4px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

/* Reservoir visualization (SVG-like contour lines) */
.hero-viz {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  overflow: hidden;
}

.hero-viz-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 2;
}

.hero-viz-coord {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bone-mute);
  z-index: 2;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--ink-line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.btn-arrow { font-size: 16px; }

/* ===========================
   FEATURE CARDS
   =========================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

.feature {
  padding: 48px 32px;
  border-right: 1px solid var(--ink-line);
  position: relative;
  transition: background 0.3s ease;
}

.feature:last-child { border-right: none; }

.feature:hover {
  background: var(--ink-soft);
}

.feature-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.feature h3 {
  font-family: var(--serif);
  margin-bottom: 12px;
  color: var(--bone);
}

.feature p {
  font-size: 15px;
}

/* ===========================
   ABOUT / CONTENT BLOCKS
   =========================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.two-col h2 {
  position: sticky;
  top: 120px;
}

.prose p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.75;
}

.prose p.lede {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--bone);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 32px;
}

/* ===========================
   STATS
   =========================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 60px 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--ink-line);
  text-align: left;
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-num em { font-style: italic; }

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===========================
   CONTACTS
   =========================== */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  position: relative;
}

.contact-block::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.contact-block::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.contact-list { list-style: none; }

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
}

.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-value {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--bone);
  text-decoration: none;
}

.contact-value:hover { color: var(--accent-soft); }

/* ===========================
   FUND BANNER
   =========================== */
.fund-banner {
  margin: 80px 0 0;
  padding: 32px 40px;
  border: 1px solid var(--ink-line);
  background: linear-gradient(135deg, rgba(217, 122, 60, 0.06), transparent);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.fund-logo {
  display: flex;
  flex: 0 0 80px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
}

.fund-logo img {
  display: block;
  width: auto;
  max-width: 80px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.fund-logo--ptp {
  flex-basis: 130px;
  margin-left: auto;
}

.fund-logo--ptp img {
  max-width: 130px;
  max-height: 68px;
}

@media (max-width: 760px) {
  .fund-logo {
    flex: 1 1 calc(50% - 10px);
    min-height: 48px;
  }

  .fund-logo img {
    max-width: 72px;
    max-height: 42px;
  }

  .fund-logo--ptp {
    margin-left: 0;
  }

  .fund-logo--ptp img {
    max-width: 110px;
    max-height: 58px;
  }

  .fund-text {
    order: 3;
    min-width: 100%;
  }
}

.fund-text {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.fund-text small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 6px;
}

.fund-text p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--bone);
  font-weight: 400;
  line-height: 1.4;
}

.fund-text a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: var(--ink-line);
  text-underline-offset: 4px;
}

/* ===========================
   LECTURES PAGE
   =========================== */
.page-header {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--ink-line);
}

.page-header h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 20px;
}

.page-header p {
  font-size: 18px;
  max-width: 720px;
  line-height: 1.7;
}

.lectures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.lecture-card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.lecture-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

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

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at center, var(--ink-card), var(--ink));
  color: var(--bone-mute);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.play-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.25s ease;
}

.play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--accent);
  margin-left: 4px;
}

.lecture-card:hover .play-icon {
  background: var(--accent);
}

.lecture-card:hover .play-icon::after {
  border-color: transparent transparent transparent var(--ink);
}

.lecture-meta {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.lecture-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: flex;
  justify-content: space-between;
}

.lecture-num span:last-child { color: var(--bone-mute); }

.lecture-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.lecture-desc {
  font-size: 14px;
  color: var(--bone-soft);
  line-height: 1.6;
}

.lecture-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bone-mute);
  border: 1px solid var(--ink-line);
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===========================
   EXAMPLES PAGE — accordion + code blocks
   =========================== */
.examples-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.example-item {
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
}

.example-item summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.example-item summary::-webkit-details-marker { display: none; }
.example-item summary::marker { content: ''; }

.example-item:hover summary { background: var(--ink-card); }

.example-summary-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.example-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.example-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--bone);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.example-tagline {
  font-size: 14px;
  color: var(--bone-soft);
}

.example-toggle-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--bone-mute);
}

.example-item[open] .example-toggle-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}

.example-body {
  padding: 4px 32px 40px;
  border-top: 1px solid var(--ink-line);
}

.example-intro {
  padding-top: 28px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--bone-soft);
  margin-bottom: 16px;
  max-width: 780px;
}

.example-source {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.example-source a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: var(--ink-line);
  text-underline-offset: 3px;
}

/* Problem statement — domain / equations / boundary & initial conditions */
.problem-statement {
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--accent);
  background: var(--ink-card);
  margin: 8px 0 36px;
  overflow: hidden;
}

.problem-statement-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding: 14px 24px;
  border-bottom: 1px solid var(--ink-line);
  background: rgba(217, 122, 60, 0.08);
}

.problem-block {
  padding: 18px 24px;
  border-bottom: 1px solid var(--ink-line);
}

.problem-block:last-child { border-bottom: none; }

.problem-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 10px;
}

.problem-block p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--bone-soft);
  margin: 0 0 6px;
  max-width: 760px;
}

.problem-block p:last-child { margin-bottom: 0; }

.problem-block .katex-display {
  margin: 10px 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.problem-block .katex { color: var(--bone); font-size: 1.04em; }

.problem-ref {
  font-size: 13px;
  color: var(--bone-mute);
}

.problem-ref a { color: var(--accent-soft); }

.problem-note {
  font-size: 14px;
  color: var(--bone-mute);
  font-style: italic;
  line-height: 1.7;
}

/* Each step is a visually separate card, not a run of paragraphs */
.example-step {
  margin-top: 20px;
  padding: 24px 26px;
  background: var(--ink-card);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--ink-line);
}

.example-step h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.example-step h4 .step-no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.example-step p {
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 760px;
}

.example-step p:last-of-type { margin-bottom: 18px; }

.code-block {
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.code-block-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-block-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.code-block pre {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
}

.code-block code {
  font-family: inherit;
  background: none;
  padding: 0;
  color: inherit;
  white-space: pre;
}

.code-input { background: rgba(78, 167, 160, 0.07); border-color: rgba(78, 167, 160, 0.35); }
.code-input .code-block-label { background: rgba(78, 167, 160, 0.22); color: var(--teal); }
.code-input pre { color: var(--bone); }
.code-input .code-comment { color: var(--bone-mute); font-style: italic; }

.code-output { background: rgba(230, 184, 92, 0.07); border-color: rgba(230, 184, 92, 0.35); }
.code-output .code-block-label { background: rgba(230, 184, 92, 0.22); color: var(--amber); }
.code-output pre { color: var(--bone-soft); }

/* Screenshot placeholder — user drops in their own MATLAB output here */
.example-screenshot {
  border: 1px dashed var(--ink-line);
  background: var(--ink-soft);
  aspect-ratio: 16 / 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  margin: 22px 0 4px;
}

.example-screenshot .shot-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bone-mute);
  font-family: var(--mono);
  font-size: 18px;
}

.example-screenshot strong {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.example-screenshot span {
  font-size: 13px;
  color: var(--bone-mute);
  max-width: 420px;
}

/* Real embedded screenshots (replace the dashed placeholder once an
   image is available for that step) — kept modest in size so they read
   as inline illustrations, not full-bleed banners */
.example-screenshot-img {
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
  margin: 22px auto 4px;
  overflow: hidden;
  max-width: 52%;
}

.example-screenshot-img img {
  display: block;
  width: 100%;
  height: auto;
}

.example-screenshot-img + .example-screenshot-img {
  margin-top: 10px;
}

.example-screenshot-img figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--bone-mute);
  border-top: 1px solid var(--ink-line);
}

.example-screenshot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px auto 4px;
  max-width: 82%;
}

.example-screenshot-pair .example-screenshot-img {
  margin: 0;
  max-width: none;
}

/* Screenshots with very different aspect ratios (e.g. a wide toolbar
   strip next to a tall dialog) read as "broken" when forced into equal
   grid columns — stack them instead */
.example-screenshot-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px auto 4px;
  max-width: 52%;
}

.example-screenshot-stack .example-screenshot-img {
  margin: 0;
  max-width: none;
}

@media (max-width: 720px) {
  .example-screenshot-pair {
    grid-template-columns: 1fr;
    max-width: 52%;
  }
  .example-screenshot-img,
  .example-screenshot-stack {
    max-width: 78%;
  }
}

/* Questions & exercises block */
.example-questions {
  margin-top: 32px;
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(217, 122, 60, 0.07), transparent);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--teal);
}

.example-questions h4 {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.example-questions ol {
  list-style: none;
  counter-reset: qnum;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.example-questions li {
  counter-increment: qnum;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--bone-soft);
  padding-left: 34px;
  position: relative;
}

.example-questions li::before {
  content: counter(qnum, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-soft);
  letter-spacing: 0.05em;
}

.example-questions li strong { color: var(--bone); font-weight: 500; }

/* ===========================
   AUTH — register / login
   =========================== */
.auth-card {
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
  padding: 40px;
}

.auth-alert {
  border: 1px solid var(--crimson);
  background: rgba(184, 66, 58, 0.1);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.auth-alert p {
  font-size: 13.5px;
  color: var(--bone);
  margin: 4px 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-form label em {
  font-style: normal;
  text-transform: none;
  color: var(--bone-mute);
  opacity: 0.7;
  letter-spacing: 0;
}

.auth-form input {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--bone);
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.auth-form input:focus { border-color: var(--accent); }

.auth-switch {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--bone-mute);
  text-align: center;
}

.auth-switch a { color: var(--accent-soft); }

/* ===========================
   PROFILE — progress checklist
   =========================== */
.progress-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.progress-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: 14px;
}

.progress-checklist a {
  color: var(--bone-soft);
  text-decoration: none;
  flex: 1;
}

.progress-checklist a:hover { color: var(--bone); }

.progress-checklist .progress-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
}

.progress-checklist li.is-done .progress-check {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}

.progress-checklist li.is-done a { color: var(--bone-mute); text-decoration: line-through; }

.progress-chat-link {
  flex: 0 0 auto !important;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-soft) !important;
}

/* Injected on lecture/task cards by progress-widget.js */
.progress-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-line);
}

.progress-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bone-mute);
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.progress-toggle:hover { border-color: var(--accent); color: var(--bone); }

.progress-toggle .progress-toggle-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 9px;
  flex-shrink: 0;
}

.progress-toggle.is-done {
  border-color: var(--teal);
  color: var(--teal);
}

.progress-toggle.is-done .progress-toggle-mark {
  background: var(--teal);
  color: var(--ink);
}

.progress-toggle.is-locked { opacity: 0.6; }

.progress-chat-btn {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
  text-decoration: none;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 7px 12px;
  transition: border-color 0.2s ease;
}

.progress-chat-btn:hover { border-color: var(--accent); }

/* ===========================
   CHAT
   =========================== */
.chat-window {
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
  display: flex;
  flex-direction: column;
  height: 60vh;
  min-height: 420px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-empty {
  color: var(--bone-mute);
  font-size: 14px;
  text-align: center;
  margin: auto;
}

.chat-bubble {
  max-width: 78%;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 10px 14px;
  align-self: flex-start;
  background: var(--ink-card);
}

.chat-bubble-admin { border-color: rgba(78, 167, 160, 0.4); }

.chat-bubble-mine {
  align-self: flex-end;
  background: rgba(217, 122, 60, 0.1);
  border-color: rgba(217, 122, 60, 0.4);
}

.chat-bubble-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone-mute);
  margin-bottom: 4px;
}

.chat-bubble-time {
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.7;
  margin-left: 8px;
}

.chat-bubble-time::before {
  content: '· ';
}

.chat-bubble-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--bone);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--ink-line);
}

.chat-input-main {
  display: flex;
  gap: 12px;
}

.chat-input-row textarea {
  flex: 1;
  resize: none;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--bone);
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 10px 14px;
  outline: none;
}

.chat-input-row textarea:focus { border-color: var(--accent); }

.chat-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-file-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  cursor: pointer;
}

.chat-file-row input[type="file"] {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--bone-mute);
  max-width: 220px;
}

.chat-file-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-soft);
}

.chat-attachment {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: var(--ink-line);
  text-underline-offset: 3px;
  word-break: break-all;
}

/* ===========================
   ADMIN — thread inbox
   =========================== */
.admin-thread-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-line);
}

.admin-thread {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--ink-line);
  text-decoration: none;
  transition: background 0.2s ease;
}

.admin-thread:hover { background: var(--ink-soft); }

.admin-thread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.admin-thread.is-waiting .admin-thread-dot { background: var(--accent); }

/* Значок "есть непрочитанные сообщения" — используется в чатах:
   у списка диалогов администратора, у чатов студента в личном
   кабинете и в шапке сайта (Профиль / Чаты). */
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.unread-badge-nav {
  position: relative;
  top: -1px;
}

/* Оценка (зачёт/незачёт) — значок в чате, в личном кабинете и в
   сводной таблице */
.grade-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  margin-left: 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
  cursor: default;
}

.grade-pass { color: var(--teal); border: 1px solid var(--teal); }
.grade-fail { color: var(--crimson); border: 1px solid var(--crimson); }

.grade-panel {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
}

.grade-panel-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone-mute);
  margin-bottom: 14px;
}

.grade-status-row {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.grade-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--bone-soft);
  cursor: pointer;
}

.grade-form textarea {
  width: 100%;
  resize: vertical;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  color: var(--bone);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.grade-form-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.grade-saved {
  color: var(--teal);
  font-size: 13px;
  font-family: var(--mono);
}

/* Сводная таблица оценок (admin_grades.php) */
.grades-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink-line);
}

.grades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.grades-table th,
.grades-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink-line);
  text-align: center;
  white-space: nowrap;
}

.grades-table th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone-mute);
  background: var(--ink-soft);
}

.grades-table-student {
  text-align: left !important;
  min-width: 200px;
  white-space: normal !important;
}

.grades-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.grades-mark-pass { color: var(--teal); border: 1px solid var(--teal); }
.grades-mark-fail { color: var(--crimson); border: 1px solid var(--crimson); }
.grades-mark-none { color: var(--bone-mute); }

.admin-thread-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-thread-title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--bone);
}

.admin-thread-preview {
  font-size: 13px;
  color: var(--bone-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-thread-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .auth-card { padding: 28px 22px; }
  .chat-window { height: 70vh; }
  .admin-thread { grid-template-columns: 1fr; }
  .admin-thread-meta { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ===========================
   TASKS PAGE
   =========================== */
.task-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-line);
}

.task-filter-btn {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone-mute);
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.task-filter-btn:hover { color: var(--bone); border-color: var(--bone-mute); }

.task-filter-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(217, 122, 60, 0.08);
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--ink-line);
}

.task-hidden {
  opacity: 0;
  transform: translateY(-8px);
}

.task {
  display: grid;
  grid-template-columns: 100px 1fr 160px;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--ink-line);
  align-items: start;
  transition: background 0.25s ease, opacity 0.3s ease, transform 0.3s ease;
  position: relative;
}

.task:hover { background: var(--ink-soft); margin: 0 -24px; padding: 32px 24px; }

.task-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 6px;
}

.task-id strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--bone);
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.task-content h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.task-content p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.task-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--ink-card);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--accent-soft);
}

.task-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding-top: 6px;
}

.task-difficulty {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid currentColor;
}

.diff-easy { color: var(--teal); }
.diff-mid { color: var(--amber); }
.diff-hard { color: var(--crimson); }

.task-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  letter-spacing: 0.1em;
}

/* Значок-подсказка "ⓘ" у задачи — ссылки на релевантный пример/лекцию */
.hint-wrap {
  position: relative;
  display: inline-flex;
}

.hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: transparent;
  color: var(--bone-mute);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hint-wrap:hover .hint-icon,
.hint-wrap:focus-within .hint-icon {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.hint-tooltip {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: 260px;
  padding: 12px 14px;
  background: var(--ink-card);
  border: 1px solid var(--ink-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  line-height: 1.5;
  color: var(--bone-soft);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hint-wrap:hover .hint-tooltip,
.hint-wrap:focus-within .hint-tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hint-tooltip a {
  color: var(--accent-soft);
  text-decoration: underline;
}

.hint-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.task-bonus {
  border-left: 2px solid var(--accent);
  padding: 10px 16px;
  background: rgba(217, 122, 60, 0.06);
  font-size: 14px;
}

.task-bonus strong { color: var(--bone); }

/* ===========================
   FOOTER
   =========================== */
footer {
  border-top: 1px solid var(--ink-line);
  margin-top: 100px;
  padding: 48px 0 32px;
  background: var(--ink-soft);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  color: var(--bone-soft);
  line-height: 1.7;
  max-width: 380px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: var(--bone-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--accent-soft); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 32px 0;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.25s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }
.fade-up:nth-child(5) { animation-delay: 0.45s; }
.fade-up:nth-child(6) { animation-delay: 0.55s; }

@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.contour path {
  stroke-dasharray: 1000;
  animation: drawLine 3s ease-out forwards;
}

.contour path:nth-child(2) { animation-delay: 0.2s; }
.contour path:nth-child(3) { animation-delay: 0.4s; }
.contour path:nth-child(4) { animation-delay: 0.6s; }
.contour path:nth-child(5) { animation-delay: 0.8s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .nav-inner { padding: 16px 20px; }
  nav ul { gap: 4px; }
  nav a { padding: 6px 10px; font-size: 13px; }
  .lang-tag { display: none; }
  .container { padding: 0 20px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: none; border-bottom: 1px solid var(--ink-line); }
  .feature:last-child { border-bottom: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--ink-line); }
  .lectures-grid { grid-template-columns: 1fr; }
  .contact-block { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .task { grid-template-columns: 1fr; gap: 12px; }
  .task:hover { margin: 0; padding: 32px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 50px; }
  .two-col h2 { position: static; }
  .example-item summary { padding: 18px 20px; gap: 12px; }
  .example-body { padding: 4px 20px 24px; }
  .example-title { font-size: 18px; }
}
