/* =========================================================
   OMA ROBBIE STORIES — MASTER STYLES.CSS
   Unified stylesheet for:
   - index.html
   - children.html
   - poetry.html
   - Fly and Frog story pages
   - mandela.html
   - article / archive-style pages
========================================================= */


:root {
  --bg-main: #f6f8f3;
  --bg-soft: #edf2e8;
  --bg-card: #ffffff;
  --bg-muted: #f9faf7;

  --text-main: #4a4f46;
  --text-soft: #667063;
  --text-heading: #5f7d65;
  --text-subtle: #7b8f7d;
  --text-warm: #7a6a5f;

  --link: #6f8f72;
  --link-hover: #4f6f56;

  --border-soft: #d8e0d2;
  --border-muted: #dfe6d8;

  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 22px rgba(0, 0, 0, 0.10);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --max-page: 1000px;
  --max-narrow: 820px;
  --max-wide: 1200px;

   /* Spacing rhythm */
--space-xs: 8px;
--space-sm: 12px;
--space-md: 20px;
--space-lg: 32px;
--space-xl: 48px;
--space-xxl: 64px;
   
  --transition-soft: all 0.25s ease;   /* Optional future-proof variables */
}


/* =========================================================
   2. GLOBAL RESET / FOUNDATION
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, serif;
  background: var(--bg-main);
  color: var(--text-main);
  max-width: var(--max-page);
  margin: 30px auto;
  padding: 0 18px;
  font-size: 1.1rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

p {
  margin: 0 0 1.2em;
}

ul,
ol {
  margin: 0 0 1.2em 1.5em;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-muted);
  margin: 2rem 0;
}


/* =========================================================
   3. GENERIC PAGE ELEMENTS
========================================================= */
.nav-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--text-subtle);
  font-size: 1.08rem;
  line-height: 1.5;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.page-title {
  text-align: center;
  color: var(--text-heading);
  font-size: 2.7rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.page-subtitle {
  text-align: center;
  color: var(--text-subtle);
  font-size: 1.25rem;
  margin: 0 0 28px;
}

.page-author {
  text-align: center;
  color: var(--text-subtle);
  font-size: 1.05rem;
  margin: -4px 0 22px;
}

.intro {
  max-width: 760px;
   margin: 0 auto var(--space-lg);
  text-align: center;
  color: var(--text-soft);
  font-size: 1.12rem;
}

.section-title {
  color: var(--text-heading);
  font-size: 1.9rem;
  margin: 2rem 0 0.9rem;
  line-height: 1.25;
}

.section-heading {
  text-align: center;
  color: var(--text-heading);
  font-size: 1.9rem;
   margin: var(--space-xl) 0 var(--space-lg);
}

.sub-heading {
  color: var(--text-subtle);
  font-size: 1.22rem;
  margin: 1.4rem 0 0.7rem;
  line-height: 1.35;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-soft);
}

.center-text {
  text-align: center;
}

.text-section p {
  max-width: 660px;
  margin: 0 auto 1.2em;
}

/* =========================================================
   4. INDEX / HOME PAGE
========================================================= */

.notice-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
  text-align: center;
  font-size: 1rem;
}

/* HERO SECTION */

.hero-section {
  position: relative;
  text-align: center;
  padding: var(--space-xl) 20px var(--space-lg);
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: url("images/poetry.jpg") center/cover no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 250, 244, 0.6),
    rgba(255, 250, 244, 0.5),
    rgba(255, 250, 244, 0.6)
  );
  z-index: 1;
}

.hero-section * {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero-section h1 {
  color: var(--text-heading);
  font-size: 3.3rem;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-subtle);
  margin-bottom: 18px;
}

.hero-line {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* ARTIST INTRO */

.artist-intro {
  max-width: 900px;
  margin: 3rem auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: rgba(255, 250, 244, 0.75);
  border-radius: 22px;
}

.artist-portrait {
  width: 220px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(70, 55, 45, 0.18);
}

.artist-text {
  flex: 1;
}

/* INTRO SECTION */

.intro-section {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 36px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
}

.intro-subtitle {
  text-align: center;
  color: var(--text-heading);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.intro-greeting {
  font-size: 1.22rem;
  color: var(--text-soft);
  text-align: center;
}

.closing-lines {
  text-align: center;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ABOUT */

.about {
  background:
    linear-gradient(rgba(246, 248, 243, 0.85), rgba(246, 248, 243, 0.95)),
    url("images/your-hero-image.jpg");
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  padding: 24px;
 margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

/* BUTTON */

.contact-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--bg-soft);
  color: var(--text-warm);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  letter-spacing: 0.3px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.contact-button:hover {
  background-color: #e4ebdd;
  color: var(--text-main);
  text-decoration: none;
}

/* MOBILE */

@media (max-width: 700px) {
  .artist-intro {
    flex-direction: column;
    text-align: center;
  }

  .artist-portrait {
    width: 180px;
  }

  .hero-section {
    padding: 60px 18px 55px;
  }

  .hero-section h1 {
    font-size: 2.4rem;
  }
}


/* =========================================================
   5. CARD / GRID LAYOUTS (HOMEPAGE)
========================================================= */

.container {
  margin-top: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover img {
  transform: scale(1.03);
  filter: brightness(1.05) contrast(1.05);
}

.card h3,
.card p {
  padding-left: 18px;
  padding-right: 18px;
}

.card h3 {
  color: var(--text-heading);
  font-size: 1.45rem;
 margin: var(--space-md) 0 var(--space-sm);
}

.card p {
  margin-bottom: 18px;
}

/* MOBILE */

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .card h3 {
    font-size: 1.3rem;
  }
}


/* =========================================================
   6. STORY / POETRY CARD GRID
========================================================= */

.story-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--text-soft);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 35px;
}

.story-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.story-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.story-card:hover img {
  transform: scale(1.02);
}

.story-card-content {
  padding: 18px;
}

.story-card h3 {
  margin: 0 0 10px;
  color: var(--text-heading);
  font-size: 1.35rem;
  line-height: 1.3;
}

.story-card p {
  margin-bottom: 14px;
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1rem;
}

.story-cta {
  display: inline-block;
  color: var(--link);
  font-weight: 600;
  margin-top: 6px;
  transition: color 0.2s ease;
}

.story-card:hover .story-cta {
  color: var(--link-hover);
}

.arrow {
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.story-card:hover .arrow {
  transform: translateX(3px);
}

/* MOBILE */

@media (max-width: 700px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .story-card h3 {
    font-size: 1.25rem;
  }
}


/* =========================================================
   7. STORYBOOK / FLY AND FROG
========================================================= */
.storybook-shell {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.storybook-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.storybook-track::-webkit-scrollbar {
  height: 10px;
}

.storybook-track::-webkit-scrollbar-thumb {
  background: #cfd8c8;
  border-radius: 999px;
}

.story-page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.page-spread {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.page-text {
  font-size: 1.16rem;
}

.page-text h2,
.page-text h3 {
  color: var(--text-heading);
  line-height: 1.25;
  margin-top: 0;
}

.page-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-images.two-images {
  grid-template-columns: 1fr 1fr;
}

.page-images img,
.story-image,
.spread-image {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--bg-muted);
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.image-card img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

.story-caption {
  font-size: 1rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: 8px;
}

.cover-page,
.back-page {
  text-align: center;
  padding: 22px;
}

.cover-page img,
.back-page img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.cover-title {
  color: var(--text-heading);
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.cover-byline {
  color: var(--text-subtle);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

/* MOBILE */

@media (max-width: 800px) {
  .page-spread {
    grid-template-columns: 1fr;
  }

  .page-images.two-images {
    grid-template-columns: 1fr;
  }

  .story-page {
    padding: 20px;
  }

  .cover-title {
    font-size: 2rem;
  }

  .page-text {
    font-size: 1.08rem;
  }
}


/* =========================================================
   8. MANDELA / ARTICLE / ESSAY PAGES
========================================================= */
.article-page {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 10px 6px;
}

.article-page p {
  margin-bottom: 1.3em;
}

.article-page em {
  color: var(--text-warm);
}

.part-heading {
  text-align: center;
  color: var(--text-warm);
  font-size: 1rem;
  margin: 0 0 30px;
  letter-spacing: 0.3px;
}

.text-section {
  margin: var(--space-lg) 0 var(--space-xl);
}

.back-link {
  margin-top: 20px;
  font-size: 1rem;
}

.quote {
  margin: 1.8rem 0;
  padding: 18px 20px;
  border-left: 4px solid #b9c7b0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #52594e;
}

.quote-author {
  max-width: 620px;
  margin: 8px auto 20px;
  text-align: right;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-style: normal;
}

.quote-section {
  margin: 30px 0 50px;
  text-align: center;
}

.signature-quote {
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.8;
  text-align: center;
}

.signature-quote .quote-author {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-subtle);
}

.bible-reference {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--text-soft);
  font-style: normal;
}

.source-note {
  margin-top: 1.4rem;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 2rem 0;
}

.archive-item {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.archive-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.archive-item-content {
  padding: 16px;
}

.archive-item h3 {
  margin: 0 0 8px;
  color: var(--text-heading);
  font-size: 1.25rem;
}

.archive-caption {
  max-width: 220px;
  margin: 0 auto;
  padding: 8px 10px 12px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.signature-block {
  margin-top: 2.4rem;
  padding: 24px 22px;
  border-top: 1px solid var(--border-muted);
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-md);
  color: var(--text-main);
}

.figure-note {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}

.article-image {
  margin: 1.5rem 0;
}

.article-image img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
}

/* MOBILE */

@media (max-width: 700px) {
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quote {
    padding: 16px 18px;
  }

  .archive-caption {
    max-width: 260px;
  }
}

/* =========================================================
   9. POETRY LANDING PAGE + COLLECTION PAGE
========================================================= */

.poetry-collection {
  max-width: 820px;
  margin: 2.5rem auto 0;
}

.poem-entry {
  margin: 0 0 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(90, 110, 90, 0.15);
}

.poem-entry:last-of-type {
  border-bottom: none;
}

.poem-entry h2 {
  font-size: 1.8rem;
  color: #5f7d65;
  margin-bottom: 1.2rem;
  text-align: center;
}

.poem-text {
  max-width: 620px;
  margin: 0 auto 2rem;
  text-align: center;
}

.poem-text p {
  margin-bottom: 1.35rem;
  line-height: 1.95;
}

.single-image {
  max-width: 560px;
  margin: 2rem auto 0;
}

.single-image img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.reflection-entry {
  border-bottom: none;
}

@media (max-width: 768px) {
  .poem-entry h2 {
    font-size: 1.45rem;
  }

  .poem-text {
    font-size: 1.05rem;
  }
}
/* =========================================================
   10. COMING SOON CARD (POETRY)
========================================================= */

.coming-soon-card {
  opacity: 0.85;
  cursor: default;
}

.coming-soon-card:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.coming-soon-card img {
  filter: grayscale(20%);
}

/* =========================================================
   11. GENERIC IMAGE GALLERIES
========================================================= */

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 1.8rem 0;
}

.image-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
transition: transform 0.25s ease;
}

.image-grid img:hover {
  transform: scale(1.01);
}

.single-image img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
  display: block;
}

/* MOBILE */

@media (max-width: 700px) {
  .image-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* =========================================================
   12. FOOTER / SMALL NOTES
========================================================= */

.footer {
  text-align: center;
  font-size: 0.98rem;
  margin: 3rem 0 2rem;
  color: var(--text-soft);
}

.page-footer {
  margin-top: 3rem;
}

.coming-soon {
  margin-top: 10px;
  font-weight: 600;
  color: #8a8f86;
  font-style: italic;
}

/* =========================================================
   13. TABLET
========================================================= */

@media (max-width: 900px) {

  body {
    font-size: 1.08rem;
    line-height: 1.82;
  }

  .hero-section h1 {
    font-size: 2.6rem;
  }
   
   .hero-section {
  padding: 65px 18px 60px;
}

  .page-title {
    font-size: 2.35rem;
  }

  .page-subtitle {
    font-size: 1.18rem;
  }

  .grid,
  .story-grid,
  .archive-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .page-spread {
    grid-template-columns: 1fr;
  }

  .page-images.two-images {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================================================
   14. MOBILE
========================================================= */

@media (max-width: 640px) {
  body {
    margin: 18px auto;
    padding: 0 14px;
    font-size: 1.14rem;
    line-height: 1.9;
  }

  .nav-link {
    font-size: 1.18rem;
    margin-bottom: 18px;
  }

  .hero-section h1 {
    font-size: 2.35rem;
  }

  .hero-section p {
    font-size: 1.18rem;
  }

  .page-title {
    font-size: 2.15rem;
  }

  .page-subtitle {
    font-size: 1.18rem;
    margin-bottom: 22px;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .sub-heading {
    font-size: 1.18rem;
  }

  .intro-section,
  .story-page {
    padding: 18px;
  }

  .card img,
  .story-card img,
  .archive-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .page-images.two-images {
    grid-template-columns: 1fr;
  }

  .image-pair {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cover-title {
    font-size: 2rem;
  }

  .cover-byline {
    font-size: 1.16rem;
  }

  .turn-link {
    font-size: 1.08rem;
    padding: 10px 14px;
  }

  .swipe-note {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .page-author,
  .part-heading,
  .source-note,
  .quote-author,
  .archive-caption,
  .back-link {
    font-size: 0.95rem;
  }

  .text-section {
    margin-top: 28px;
    margin-bottom: 34px;
  }
}


/* =========================================================
   15. VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  body {
    padding: 0 12px;
    font-size: 1.12rem;
  }

  .nav-link {
    font-size: 1.2rem;
  }

   .hero-section {
  padding: 50px 16px 45px;
}

  .hero-section h1 {
    font-size: 2.1rem;
  }

  .page-title {
    font-size: 1.95rem;
  }

  .page-subtitle,
  .cover-byline {
    font-size: 1.12rem;
  }

  .story-page,
  .intro-section {
    padding: 16px;
  }
}


/* =========================================================
   16. AUTOBIOGRAPHY / LONG-FORM READING
========================================================= */

.autobio-page {
  max-width: 760px;
  margin: 0 auto;
}

.autobio-page p {
  text-align: justify;
  max-width: 660px;
  margin: 0 auto 1.4em;
    line-height: 1.85;
}

.chapter-heading {
  text-align: center;
  color: var(--text-heading);
  font-size: 2.1rem;
  margin: 3rem 0 1.5rem;
  scroll-margin-top: 90px;
}

.chapter-subheading {
  text-align: center;
  color: var(--text-subtle);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  scroll-margin-top: 90px;
}

.story-block {
  margin-bottom: 2rem;
}

.story-block p {
  margin-bottom: 1.3em;
}

/* MOBILE READABILITY */

@media (max-width: 700px) {
  .autobio-page p {
    text-align: left; /* better readability on small screens */
  }
}

/* =========================================================
   17. AUTOBIOGRAPHY TITLE PAGE
========================================================= */

.title-page {
  text-align: center;
  padding: 60px 20px 50px;
  max-width: 760px;
  margin: 0 auto 40px;
}

.book-title {
  font-family: Georgia, serif;
  font-size: 2.9rem;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 14px;
}

.book-subtitle {
  font-size: 1.35rem;
  color: var(--text-subtle);
  margin-bottom: 24px;
}

.book-author {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.title-divider {
  width: 60px;
  height: 2px;
  background: rgba(120, 135, 115, 0.4);
  margin: 20px auto;
}

.book-credit {
  font-size: 0.98rem;
  color: var(--text-soft);
  margin-top: 10px;
  font-style: italic;
}

/* MOBILE */

@media (max-width: 640px) {
  .book-title {
    font-size: 2.3rem;
  }

  .book-subtitle {
    font-size: 1.2rem;
  }

  .book-author {
    font-size: 1.15rem;
  }
}

/* =========================================================
   18. TABLE OF CONTENTS (CLICKABLE NAV)
========================================================= */

.toc {
  max-width: 660px;
  margin: 2rem auto 3rem;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.toc h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.toc ul {
  list-style: none;
  padding: 0;
}

.toc li {
  margin-bottom: 10px;
  padding-left: 6px;
  border-left: 2px solid rgba(90, 110, 90, 0.15);
}

.toc a {
  color: var(--link);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.toc a:hover {
  text-decoration: underline;
  opacity: 0.75;
}

/* =========================================================
   YOUTUBE FEATURE
========================================================= */

.youtube-feature {
  text-align: center;
  margin: 2rem auto 3rem;
}

.youtube-feature a {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 1.05rem;
  color: var(--link); /* changed from hardcoded */
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 125, 101, 0.4);
  transition: all 0.25s ease;
}

.youtube-feature a:hover {
  color: var(--link-hover); /* keeps consistency */
  border-bottom-color: var(--link-hover);
}


/* =========================================================
   19. CHECK / VERIFY HIGHLIGHT
========================================================= */

.check {
  background: rgba(255, 243, 205, 0.6);
  border-bottom: 2px dashed rgba(224, 168, 0, 0.7);
  padding: 0 3px;
  border-radius: 3px;
}
