.notes-section {
  border-top: 1px solid var(--line);
  margin-top: 4.5rem;
  padding-top: 3rem;
}

.notes-heading {
  font-size: clamp(1.45rem, 5vw, 2rem);
  margin-bottom: 0.65rem;
}

.notes-intro {
  color: var(--muted);
  margin-bottom: 1.8rem;
  max-width: 38rem;
}

.notes-grid {
  display: grid;
  gap: 1rem;
}

.note-card {
  background: linear-gradient(145deg, rgb(255 255 255 / 2%), transparent 58%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.note-card-link {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  min-height: 10rem;
  text-decoration: none;
}

.note-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.note-card-image-wrap {
  align-items: center;
  background: var(--page-deep);
  display: flex;
  justify-content: center;
  padding: 0.65rem;
}

.note-card-image {
  display: block;
  height: auto;
  max-height: 9.2rem;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.note-card-placeholder {
  align-items: flex-end;
  background:
    radial-gradient(circle at 72% 24%, rgb(94 47 120 / 35%), transparent 44%),
    linear-gradient(145deg, #211928, #121016);
  color: var(--muted);
  display: flex;
  font-size: 0.7rem;
  height: 100%;
  letter-spacing: 0.12em;
  padding: 1rem;
  width: 100%;
}

.note-card-body {
  padding: 1.15rem 1.2rem;
}

.note-card-body h2 {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.35rem 0 0.55rem;
}

.note-card-body p:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0;
}

.note-shell {
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
  width: min(100%, 48rem);
}

.note-nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0 1rem;
}

.note-nav a {
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.note-nav a:focus-visible,
.note-nav a:hover {
  color: var(--text);
}

.note-header {
  padding: 3.5rem 0 2rem;
}

.note-header h1 {
  font-size: clamp(1.75rem, 7vw, 2.65rem);
  max-width: 42rem;
}

.note-article {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.note-article-image-frame {
  align-items: center;
  background: var(--page-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 1.2rem;
}

.note-article-image {
  display: block;
  height: auto;
  max-height: 40rem;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.note-copy {
  display: grid;
  gap: 2rem;
}

.note-copy section {
  max-width: 39rem;
}

.note-copy h2 {
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
}

.note-facts {
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

.note-steward {
  border-left: 2px solid var(--accent);
  color: #d8d1de;
  font-size: 1.02rem;
  margin: 0;
  padding: 0.25rem 0 0.25rem 1.1rem;
}

.note-closing {
  font-size: 1.08rem;
  margin: 1rem 0 0;
}

.note-advertising {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
}

.note-advertising strong {
  color: var(--text);
}

@media (max-width: 430px) {
  .note-card-link {
    grid-template-columns: 5.5rem 1fr;
    min-height: 8.5rem;
  }

  .note-card-image-wrap {
    padding: 0.45rem;
  }

  .note-card-image {
    max-height: 7.5rem;
  }

  .note-card-body {
    padding: 0.9rem;
  }

  .note-header {
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .note-card-link,
  .note-nav a {
    scroll-behavior: auto;
    transition: none;
  }
}
/* v7.1 decision brief and explicit two-layer navigation */
.note-card {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  min-height: 12rem;
}

.note-card-body {
  min-width: 0;
}

.note-card-summary {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 0.9rem;
}

.note-card-reasons {
  border-top: 1px solid var(--line);
  margin-top: 0.9rem;
  padding-top: 0.8rem;
}

.note-card-reasons > p {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.note-card-reasons ul {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1.1rem;
}

.note-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.note-cta {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.35;
  min-height: 2.55rem;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
}

.note-cta-secondary {
  background: rgb(255 255 255 / 2%);
  color: var(--text);
}

.note-cta-primary {
  background: #4a2860;
  border-color: #75468f;
  color: #f8f2fb;
}

.note-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.note-cta:hover {
  border-color: var(--accent);
}

.note-external-action {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.note-external-action h2 {
  margin-top: 0.3rem;
}

.note-external-caption {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.7rem 0 0;
}

@media (max-width: 430px) {
  .note-card {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    min-height: 10rem;
  }

  .note-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .note-cta {
    width: 100%;
  }
}


/* Generation 8: image-free Note cards use the full card track. */
.note-card.note-card--no-media {
  grid-template-columns: minmax(0, 1fr);
}

.note-card--no-media .note-card-body {
  grid-column: 1 / -1;
  max-width: 72ch;
  width: 100%;
}

@media (max-width: 430px) {
  .note-card.note-card--no-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-card--no-media .note-card-body {
    max-width: none;
  }
}
