:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #566173;
  --chalk: #f8fbf7;
  --grass: #126a4d;
  --grass-deep: #0b4f3a;
  --gold: #f5c84b;
  --coral: #df684f;
  --border: rgba(23, 32, 51, 0.14);
  --shadow: 0 18px 44px rgba(18, 35, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(245, 200, 75, 0.26), transparent 28rem),
    linear-gradient(135deg, #0b4f3a 0%, #126a4d 46%, #dcecf8 46%, #eef6fb 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.sdda-page {
  min-height: 100svh;
  padding: clamp(18px, 4vw, 54px);
}

.sdda-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.sdda-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(18px, 3vw, 34px);
  color: var(--chalk);
}

.sdda-brand {
  max-width: 760px;
}

.sdda-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.sdda-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.sdda-date-card {
  flex: 0 0 auto;
  width: min(220px, 42vw);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}

.sdda-date-card strong,
.sdda-date-card span {
  display: block;
}

.sdda-date-card strong {
  font-size: 0.84rem;
  text-transform: uppercase;
}

.sdda-date-card span {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.3;
}

.sdda-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.84fr) minmax(0, 1.36fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}

.sdda-side,
.sdda-main {
  display: grid;
  gap: 16px;
}

.sdda-side {
  align-content: start;
}

.sdda-panel,
.sdda-lesson {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.sdda-panel {
  padding: clamp(16px, 2vw, 22px);
}

.sdda-field {
  overflow: hidden;
  padding: 0;
  background: #126a4d;
}

.sdda-field img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 1428;
  object-fit: cover;
}

.sdda-panel-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sdda-counter {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1;
  font-weight: 880;
}

.sdda-progress-track {
  height: 13px;
  margin: 18px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5df;
}

.sdda-progress-bar {
  display: block;
  height: 100%;
  width: 1%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--grass), var(--gold), var(--coral));
  transition: width 380ms ease;
}

.sdda-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.sdda-progress-copy span:last-child {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.sdda-lesson {
  padding: clamp(20px, 4vw, 38px);
}

.sdda-topic-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sdda-eyebrow,
.sdda-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sdda-eyebrow {
  padding: 4px 0;
  color: var(--grass-deep);
}

.sdda-category {
  padding: 5px 10px;
  background: #fff3c8;
  color: #6c4b00;
}

.sdda-topic {
  margin: 0;
  font-size: clamp(2.05rem, 5vw, 4.55rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.sdda-hook {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.45;
}

.sdda-section-label {
  margin: 0 0 8px;
  color: var(--grass-deep);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sdda-definition {
  margin: 0;
  font-size: clamp(1.1rem, 2.25vw, 1.4rem);
  line-height: 1.58;
}

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

.sdda-callout {
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7faf8;
}

.sdda-callout:nth-child(2) {
  background: #fff7e4;
}

.sdda-callout p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.48;
}

.sdda-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.sdda-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  background: var(--grass-deep);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(11, 79, 58, 0.18);
}

.sdda-button.secondary {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

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

.sdda-button:focus-visible {
  outline: 3px solid rgba(245, 200, 75, 0.7);
  outline-offset: 2px;
}

.sdda-button svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.sdda-share-status {
  min-width: 78px;
  color: var(--grass-deep);
  font-size: 0.92rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 180ms ease;
}

.sdda-share-status.is-visible {
  opacity: 1;
}

.sdda-question-box {
  margin-top: 16px;
  padding: 16px;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: #fff7f2;
}

.sdda-question-box p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.sdda-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(223, 104, 79, 0.28);
  color: var(--ink);
  font-weight: 760;
}

@media (max-width: 840px) {
  .sdda-page {
    padding: 16px;
  }

  .sdda-header {
    display: grid;
  }

  .sdda-date-card {
    width: 100%;
  }

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

  .sdda-side {
    order: 2;
  }

  .sdda-main {
    order: 1;
  }

  .sdda-callouts {
    grid-template-columns: 1fr;
  }

  .sdda-progress-copy {
    display: grid;
  }

  .sdda-progress-copy span:last-child {
    white-space: normal;
  }

  .sdda-button {
    width: 100%;
  }
}

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