/* Long-form reading pages (About, How NDED Works, Privacy, Support).
   Builds on template.css + topic-navigation.css: the page hero and the
   "More about NDED" links reuse .topic-hub-hero and .topic-extra. */

.info-page .info-section {
  margin-top: 18px;
  padding: 24px 26px;
  background: #ffffff;
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  text-align: left;
}

/* template.css centres .dynamic-content-container p/h2 for short prompts;
   reading pages need normal left-aligned paragraphs. */
.info-page .info-section h2 {
  margin: 0 0 10px;
  color: #304a69;
  font-size: 1.28rem;
  line-height: 1.3;
  text-align: left;
}

.info-page .info-section h3 {
  margin: 18px 0 6px;
  color: #365477;
  font-size: 1.02rem;
}

.info-page .info-section p,
.info-page .info-section li {
  max-width: 70ch;
  color: #44546a;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}

.info-page .info-section p {
  margin: 0 0 12px;
}

.info-page .info-section ul,
.info-page .info-section ol {
  margin: 0 0 12px;
  padding-left: 1.3rem;
}

.info-page .info-section li + li {
  margin-top: 6px;
}

.info-page .info-section > :last-child {
  margin-bottom: 0;
}

.info-page .info-section a {
  color: #2f5f96;
  font-weight: 600;
}

.info-page .info-updated {
  margin: 18px 0 0;
  color: #7a899b;
  font-size: .86rem;
  text-align: center;
}

/* Small cards: features, the Learn → Tutor → Practice steps, audiences. */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}

/* Four cards read better as 2 x 2 than 3 + 1. */
.info-grid-pairs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.info-card {
  padding: 16px 16px 14px;
  background: #f7faff;
  border: 1px solid #dce7f3;
  border-radius: 12px;
}

.info-page .info-card h3 {
  margin: 0 0 6px;
}

.info-page .info-card p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.6;
}

.info-card-label {
  display: block;
  margin-bottom: 4px;
  color: #6880a4;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Plain comparison table (Tutor vs Practice). */
.info-table-wrap {
  overflow-x: auto;
  margin: 12px 0 4px;
}

.info-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: .93rem;
}

.info-table th,
.info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e3eaf2;
  color: #44546a;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: #f3f7fc;
  color: #304a69;
  font-weight: 750;
}

/* Short highlighted summary at the top of a section. */
.info-note {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #f7faff;
  border-left: 4px solid #6e8fb8;
  border-radius: 0 10px 10px 0;
}

.info-page .info-note p {
  margin: 0;
}

.info-page .info-note p + p {
  margin-top: 6px;
}

@container topic-hub (max-width: 560px) {
  .info-page .info-section {
    padding: 18px 16px;
  }

  .info-page .info-section h2 {
    font-size: 1.15rem;
  }

  /* Narrow column: stack each comparison row instead of a sideways scroll. */
  .info-table {
    min-width: 0;
  }

  .info-table thead {
    display: none;
  }

  .info-table tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e3eaf2;
  }

  .info-table th[scope="row"],
  .info-table td {
    display: block;
    padding: 3px 0;
    border: 0;
    background: none;
  }

  .info-table td::before {
    content: attr(data-label) ": ";
    color: #6880a4;
    font-weight: 750;
  }
}
