 
.what-is-menopause h1,
.what-is-menopause h2,
.what-is-menopause h3,
.what-is-menopause p,
.what-is-menopause li {
  color: #002638;  
}

 .what-is-menopause a {
  text-decoration: underline;
}

 
.what-is-menopause h1 + p,
.what-is-menopause h2 + p,
.what-is-menopause h3 + p { margin-top: 16px; }

 .what-is-menopause h2 + h3,
.what-is-menopause h2 + .h3-block,
.what-is-menopause .h3-block + .h3-block { margin-top: 32px; }

 .what-is-menopause h2 { margin-top: 56px; }

 .what-is-menopause p { margin-bottom: 16px; }

 .what-is-menopause ul,
.what-is-menopause ol { margin: 16px 0; padding-left: 20px; }
 
 .what-is-menopause .on-this-page { background: none; border: 0; }
.what-is-menopause .on-this-page h2 {
  font-size: 24px;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  margin-bottom: 16px;
}

 .what-is-menopause p,
.what-is-menopause li,
.what-is-menopause .intro-paragraph {
  max-width: 800px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

 .what-is-menopause .info-box p {
  max-width: none;
  margin-left: auto; margin-right: auto;
  text-align: left;
}

 .what-is-menopause .callout p,
.what-is-menopause .callout .desc { font-size: 18px; line-height: 1.6; }

 .what-is-menopause .stages-table { 
  overflow: hidden; 
  border: 1px solid #E5E7EB;  
}
.what-is-menopause .stages-table thead { position: relative; }

.what-is-menopause .stages-table th,
.what-is-menopause .stages-table td { padding: 12px 16px; vertical-align: top; }
.what-is-menopause .stages-table th { font-weight: 600; }

 @media (max-width: 767.98px) {
  .what-is-menopause .stages-table-wrapper { 
    display: block; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
  }
  .what-is-menopause .stages-table { min-width: 0; }}

 .what-is-menopause #research-sources h2 {
   font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}
.what-is-menopause #research-sources { padding-top: 32px; padding-bottom: 32px; }
.what-is-menopause #research-sources li { margin-bottom: 8px; line-height: 1.5; }

 .what-is-menopause .container { padding-left: 16px; padding-right: 16px; }
@media (min-width: 992px) {
  .what-is-menopause .container { padding-left: 32px; padding-right: 32px; }
}

 @media (max-width: 767.98px) {
  .what-is-menopause main,
    .what-is-menopause .container { padding-left: 16px; padding-right: 16px; }
}

 .what-is-menopause .table-responsive table {
  width: 100%;
  border-collapse: separate;   
  border-spacing: 0;           
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E5E7EB;    
}

 .what-is-menopause .table-responsive thead {
  background-color: #f3f5f7;
}
.what-is-menopause .table-responsive thead th {
  font-weight: bold;
  padding: 16px;
  text-align: left;
  border-bottom: 2px solid #B8CDFF;  
  color: #002638;
}

 .what-is-menopause .table-responsive tbody td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #E5E7EB;   
}

.what-is-menopause .table-responsive th,
.what-is-menopause .table-responsive td {
  border-left: none;
  border-right: none;
}

 @media (max-width: 767.98px) {
  .what-is-menopause .table-responsive table {
    min-width: 0;  }
}

.what-is-menopause .table-responsive th,
.what-is-menopause .table-responsive td {
  border-left: none;
  border-right: none;
}

 .what-is-menopause .table-responsive tbody td {
  border-top: 1px solid #E5E7EB;
}
.what-is-menopause .info-box p {
  margin: 0;             
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: left;     
}

 .what-is-menopause .stat-text p,
.what-is-menopause .stat-text {
  margin: 0;
}
 .what-is-menopause .table-responsive td { font-weight: 400; }
.what-is-menopause .table-responsive td strong { font-weight: 700; }


 @media (max-width: 768px) {

 
  .what-is-menopause .table-responsive table,
  .what-is-menopause .table-responsive thead,
  .what-is-menopause .table-responsive tbody,
  .what-is-menopause .table-responsive tr,
  .what-is-menopause .table-responsive th,
  .what-is-menopause .table-responsive td {
    display: block;
    width: 100%;
  }

   .what-is-menopause .table-responsive thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

   .what-is-menopause .table-responsive tbody tr {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;

  }

   .what-is-menopause .table-responsive tbody td {
    display: block;
    padding: 12px 16px;
    border: none;
    border-top: 1px solid #E5E7EB;
    font-weight: 400;             
    color: #002638;
  }
  .what-is-menopause .table-responsive tbody td:first-child {
    border-top: none;          
  }

   .what-is-menopause .table-responsive tbody td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;            
    color: #002638;
  }
 
  .what-is-menopause .table-responsive tbody td:first-child strong {
    font-weight: 700;
  }
  .what-is-menopause .table-responsive tbody td:first-child,
  .what-is-menopause .table-responsive tbody td:first-child * {
    font-weight: 400;
  }
  .what-is-menopause .table-responsive tbody td:first-child strong {
    font-weight: 700; 
  }
}

 @media (min-width: 768px) {
  .what-is-menopause .table-responsive table        { display: table; }
  .what-is-menopause .table-responsive thead        { display: table-header-group; position: static; left: auto; top: auto; }
  .what-is-menopause .table-responsive tbody        { display: table-row-group; }
  .what-is-menopause .table-responsive tr           { display: table-row; }
  .what-is-menopause .table-responsive th,
  .what-is-menopause .table-responsive td           { display: table-cell; }
}
 @media (max-width: 768px) {
   .what-is-menopause .table-responsive tbody tr {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
  }

   .what-is-menopause .table-responsive tbody td {
    border-top: 1px solid #E5E7EB !important;
    font-weight: 400;                 
  }
  .what-is-menopause .table-responsive tbody td:first-child {
    border-top: none !important;
  }

   .what-is-menopause .table-responsive tbody td:first-child strong {
    font-weight: 700;
  }

   .what-is-menopause .table-responsive tbody td:not(:first-child)::before {
    font-weight: 600;
  }
}

@media (max-width: 991px) {
  .what-is-menopause .table-responsive tbody td,
  .what-is-menopause .table-responsive tbody tr {
    background-color: #fff !important;  
  }

  .what-is-menopause .table-responsive td:nth-child(1) {
    border-top: 0.5px !important;
    border-color: #E5E7EB !important;
    background-color: #fff !important;  
    color: #002638;  
    font-weight: normal;  
  }
}

.what-is-menopause .learn-more {
   max-width: none;
}


/* Blue banner: stack on small screens */
@media (max-width: 991.98px) {
  .cost-of-overlooking-menopause .info-box .row {
    display: flex;            /* ensure flex context even if grid classes are present */
    flex-direction: column;   /* stack */
    gap: 16px;
  }

  /* Make both columns full width when stacked */
  .cost-of-overlooking-menopause .info-box .row > [class*="col"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* If the blue card has a fixed width, let it breathe on mobile */
  .cost-of-overlooking-menopause .info-box .row > [class*="col"]:first-child > * {
    width: 100%;
  }

  /* Keep paragraph readable on mobile */
  .cost-of-overlooking-menopause .info-box p {
    max-width: 800px;   /* consistent with page copy */
    margin: 0;          /* left-aligned, no extra side margins */
    text-align: left;
  }
}
@media (max-width: 400px) {
  .what-is-menopause main,
  .what-is-menopause .container { padding-left: 12px; padding-right: 12px; }
}@media (max-width: 767.98px) {
  .what-is-menopause .stages-table,
  .what-is-menopause .table-responsive table {
    border: 0 !important;         /* remove the 1px #E5E7EB border */
  }
}


/* === Stacked “Stages of menopause” table tweaks (mobile) === */
@media (max-width: 768px) {
  /* 1) Make each stacked card flat; only the very last one keeps rounded corners */
  .what-is-menopause .table-responsive tbody tr {
    border-radius: 0 !important;
  }
  .what-is-menopause .table-responsive tbody tr:last-of-type {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    overflow: hidden;
  }

  /* 2) Add a gray header strip to the top cell (“Stage of menopause”)
        with a lilac divider underneath, matching desktop thead styling */
  .what-is-menopause .table-responsive tbody td:first-child {
    position: relative;
    padding-top: 12px; /* keep spacing comfy */
  }
  .what-is-menopause .table-responsive tbody td:first-child::before {
    content: "Stage of menopause";
    display: block;
    background-color: #f3f5f7;              /* gray like other headers */
    border-bottom: 2px solid #B8CDFF;       /* lilac accent */
    margin: -12px -16px 8px;                /* stretch to card edges */
    padding: 12px 16px;
    font-weight: 600;
    color: #002638;
  }

  /* 3) Keep the section separators clean/flat between blocks */
  .what-is-menopause .table-responsive tbody td {
    border-radius: 0 !important;            /* no inner rounding */
  }
}


/* === Mobile stacked table: single header + stage-only separators === */
@media (max-width: 768px) {
  /* Put a single header bar above the stacked cards */
  .what-is-menopause .stages-table-wrapper {
    position: relative;
  }
  .what-is-menopause .stages-table-wrapper::before {
    content: "Stages of menopause";
    display: block;
    background-color: #f3f5f7;   /* gray like other headers */
    border-bottom: 2px solid #B8CDFF; /* lilac accent */
    padding: 12px 16px;
    font-weight: 600;
    color: #002638;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  /* If you previously injected per-row headers, suppress them */
  .what-is-menopause .table-responsive tbody td:first-child::before,
  .what-is-menopause .stages-table tbody td:first-child::before {
    content: none !important;
  }

  /* Flatten inner corners; keep only the very last block rounded */
  .what-is-menopause .table-responsive tbody tr,
  .what-is-menopause .stages-table tbody tr {
    border-radius: 0 !important;
    overflow: hidden;
  }
  .what-is-menopause .table-responsive tbody tr:last-of-type,
  .what-is-menopause .stages-table tbody tr:last-of-type {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
  }

  /* Remove all in-between lines by default */
  .what-is-menopause .table-responsive tbody tr,
  .what-is-menopause .stages-table tbody tr {
    border-top: 0 !important;
  }

  /* Re-add a separator only before new STAGE blocks.
     Assumes each stage is 3 rows: (title, how-long, when/notes).
     That pattern is rows 1,4,7,... => 3n+1. */
  .what-is-menopause .table-responsive tbody tr:nth-child(3n+1),
  .what-is-menopause .stages-table tbody tr:nth-child(3n+1) {
    border-top: 1px solid #E5E7EB !important;
  }

  /* But not before the very first row (header bar already separates) */
  .what-is-menopause .table-responsive tbody tr:first-child,
  .what-is-menopause .stages-table tbody tr:first-child {
    border-top: 0 !important;
  }
}
/* === Mobile stacked table: ONE gray header + stage-only separators === */
@media (max-width: 768px) {
  /* 0) Hide the original thead on mobile */
  .what-is-menopause .stages-table thead {
    display: none !important;
  }

  /* 1) Single gray header above the stacked rows */
  .what-is-menopause .stages-table-wrapper {
    position: relative;
  }
  .what-is-menopause .stages-table-wrapper::before {
    content: "Stages of menopause";
    display: block;
    background: #F3F5F7;                 /* gray */
    color: #002638;
    font-weight: 600;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;           /* match table border */
    border-bottom: 2px solid #B8CDFF;    /* lilac accent */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  /* 2) Make the table sit flush beneath the header bar */
  .what-is-menopause .stages-table {
    border-top: 0 !important;            /* header supplies the top border */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
  }

  /* 3) Flatten inner corners and remove default row lines */
  .what-is-menopause .stages-table tbody tr,
  .what-is-menopause .stages-table tbody td {
    border-radius: 0 !important;
    border-top: 0 !important;            /* no lines between sub-rows */
  }

  /* 4) Add separators ONLY where new stage blocks begin.
        Adjust these indices if your row counts change. */
  .what-is-menopause .stages-table tbody tr:nth-child(4),
  .what-is-menopause .stages-table tbody tr:nth-child(7) {
    border-top: 1px solid #E5E7EB !important; /* before Menopause and Postmenopause */
  }

  /* 5) Keep only the very last block rounded at the bottom */
  .what-is-menopause .stages-table tbody tr:last-of-type {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
  }
}
/* === Mobile stacked table: single gray header + stage-only separators === */
@media (max-width: 768px) {
  /* Hide the built-in table header on mobile */
  .what-is-menopause .stages-table thead {
    display: none !important;
  }

  /* Inject ONE gray header bar above the stack.
     Works whether the wrapper is .stages-table-wrapper or .table-responsive */
  .what-is-menopause .stages-table-wrapper,
  .what-is-menopause .table-responsive {
    position: relative;
  }
  .what-is-menopause .stages-table-wrapper::before,
  .what-is-menopause .table-responsive::before {
    content: "Stage of menopause";
    display: block;
    background: #F3F5F7;                 /* gray header */
    color: #002638;
    font-weight: 600;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-bottom: 2px solid #B8CDFF;    /* lilac accent */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  /* Make the table sit flush under the injected header */
  .what-is-menopause .stages-table {
    border-top: 0 !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
  }

  /* Remove inner rounding/lines between sub-rows */
  .what-is-menopause .stages-table tbody tr,
  .what-is-menopause .stages-table tbody td {
    border-radius: 0 !important;
    border-top: 0 !important;
  }

  /* Re-add separators ONLY where a new stage begins.
     Adjust indices if your row counts differ. */
  .what-is-menopause .stages-table tbody tr:nth-child(4),
  .what-is-menopause .stages-table tbody tr:nth-child(7) {
    border-top: 1px solid #E5E7EB !important;
  }

  /* Keep only the very last block rounded at the bottom */
  .what-is-menopause .stages-table tbody tr:last-of-type {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
  }
}
