/* MapleSAP beta: learning pages. Extends maplesap-ia.css (same tokens and type). */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--maple);
  color: #120803;
  font-weight: 900;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.review-banner {
  background: #f3d9a4;
  color: #1b1206;
}

.learn-hero {
  position: relative;
  padding: clamp(92px, 12vw, 160px) clamp(20px, 5vw, 72px) clamp(56px, 8vw, 96px);
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0.94), rgba(8, 10, 9, 0.7) 48%, rgba(8, 10, 9, 0.3)),
    url("/wp-content/uploads/2026/03/IMG_4617-scaled.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.learn-hero h1 {
  max-width: 900px;
}

.learn-hero .lede {
  max-width: 720px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.question {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-decoration: none;
}

.question:hover {
  border-color: var(--maple);
}

.question strong {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.question span {
  color: var(--muted);
}

.depth {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 900;
}

.prose {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.6;
}

.prose h2 {
  margin: 46px 0 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.prose p,
.prose li {
  color: rgba(244, 247, 242, 0.86);
}

.prose ol,
.prose ul {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: #f0b46b;
}

.callout {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--maple);
  background: rgba(255, 255, 255, 0.045);
}

.callout.safety {
  border-left-color: #e2c045;
}

.callout.demo {
  border-left-color: var(--blue);
}

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

.tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 900;
}

details.deeper {
  margin: 22px 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

details.deeper summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 800;
}

details.deeper > div {
  padding: 0 18px 16px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin: 30px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.facts div {
  padding: 18px;
  background: var(--panel);
}

.facts b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.facts span {
  color: var(--muted);
  font-size: 14px;
}

.where-next {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.where-next h2 {
  margin-top: 0;
}

.where-next .question-grid {
  margin-top: 16px;
}

.sources {
  margin-top: 46px;
  font-size: 15px;
}

.sources li {
  color: var(--muted);
}

.ext::after {
  content: " \2197";
}

figure.lab-figure {
  max-width: 420px;
  margin: 28px 0;
}

figure.lab-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* Freeze-thaw explainer */
.explainer {
  margin: 30px 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.explainer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.explainer-controls button,
.sapday button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(244, 247, 242, 0.5);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.explainer-controls button[aria-pressed="true"] {
  border-color: var(--maple);
  background: var(--maple);
  color: #120803;
}

.explainer svg {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

.explainer .bubble {
  transition: r 600ms ease, opacity 600ms ease;
}

.explainer .drip {
  transition: opacity 400ms ease;
}

.explainer-phase {
  margin: 0;
}

.explainer-phase + .explainer-phase {
  margin-top: 14px;
}

.js .explainer-phase[hidden] {
  display: none;
}

.sapday {
  display: grid;
  gap: 12px;
  margin: 30px 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.sapday label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.sapday input {
  max-width: 160px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(244, 247, 242, 0.5);
  background: #0b0d0c;
  color: var(--ink);
  font: inherit;
}

.sapday output {
  font-weight: 800;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.compare-table th,
.compare-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

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

@media (max-width: 420px) {
  .prose {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .explainer .bubble,
  .explainer .drip {
    transition: none;
  }
}
