/* Health page modern styles (scoped) */
:root {
  --health-bg: #ffffff;
  --health-card: #ffffff;
  --health-text: #0f172a; /* slate-900 */
  --health-muted: #64748b; /* slate-500 */
  --health-border: rgba(15, 23, 42, 0.10);
  --health-accent: #1e50a2;
  --health-accent-2: #096fc2;
  --health-radius: 14px;
  --health-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
}

.contents .inner {
  max-width: 900px;
}
.catalog {

  margin: 24px auto 56px;
  padding: clamp(16px, 2.2vw, 28px);
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.catalog * {
  box-sizing: border-box;
}

.catalog a {
  color: var(--health-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.catalog a:hover {
  color: #153d7a;
}

.catalog .wp-block-heading,
.catalog h2,
.catalog h3,
.catalog h4 {
  color: var(--health-text);
  line-height: 1.35;
  margin: 1.2em 0 0.6em;
}

.catalog h2.wp-block-heading,
.catalog h2 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--health-border);
}

.catalog h3.wp-block-heading,
.catalog h3 {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.catalog h3.wp-block-heading::before,
.catalog h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--health-accent), var(--health-accent-2));
  flex: 0 0 10px;
}

.catalog h4.wp-block-heading,
.catalog h4 {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 800;
}

.catalog p {
  margin: 0.85em 0;
}

/* WP utility classes */
.catalog .has-vivid-cyan-blue-color {
  color: var(--health-accent-2) !important;
}
.catalog .has-medium-font-size {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Lists */
.catalog ul,
.catalog ol {
  margin: 0.9em 0 1.1em;
  padding-left: 1.35em;
}
.catalog li {
  margin: 0.35em 0;
}
.catalog ol > li::marker {
  font-weight: 800;
  color: var(--health-accent);
}
.catalog ul > li::marker {
  color: var(--health-accent);
}
.catalog li > ul,
.catalog li > ol {
  margin-top: 0.5em;
}

/* Images / figures */
.catalog img {
  max-width: 100%;
  height: auto;
}
.catalog figure {
  margin: 1.1em 0;
}
.catalog figure.wp-block-image,
.catalog figure.wp-block-gallery,
.catalog figure.wp-block-table {

}
.catalog figure.wp-block-image a {
  text-decoration: none;
}

/* Aligns */
.catalog .aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.catalog .alignright {
  float: right;
  margin: 0.2em 0 1em 1em;
  max-width: min(420px, 45%);
}
.catalog .alignleft {
  float: left;
  margin: 0.2em 1em 1em 0;
  max-width: min(420px, 45%);
}

/* Table */
.catalog table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--health-border);
  background: #fff;
}
.catalog td,
.catalog th {
  padding:0px 40px;
}
.catalog tr:last-child td,
.catalog tr:last-child th {
  border-bottom: none;
}
.catalog td:last-child,
.catalog th:last-child {
  border-right: none;
}
.catalog table tbody tr:first-child td {
  font-weight: 800;
}
.catalog .has-text-align-center {
  text-align: center;
}

/* Spacer */
.catalog .wp-block-spacer {
  height: var(--spacer-h, 24px);
}

/* Clear floats for long sections */
.catalog::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 768px) {
  .catalog {
    margin: 16px auto 44px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.07);
  }
  .catalog .alignright,
  .catalog .alignleft {
    float: none;
    max-width: 100%;
    margin: 0.6em 0;
  }
  .catalog figure.wp-block-image,
  .catalog figure.wp-block-gallery,
  .catalog figure.wp-block-table {
    padding: 10px;
  }
  .catalog td,
  .catalog th {
    padding: 9px 10px;
  }

  /* Table: stack vertically on mobile */
  .catalog table,
  .catalog tbody,
  .catalog tr,
  .catalog td,
  .catalog th {
    display: block;
    width: 100%;
  }

  .catalog table {
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .catalog tr {
    background: #fff;
    border: 1px solid var(--health-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 0;
  }

  .catalog td,
  .catalog th {
    border-right: none;
    border-bottom: 1px solid var(--health-border);
    text-align: left;
    padding: 10px 12px;
  }

  .catalog tr td:last-child,
  .catalog tr th:last-child {
    border-bottom: none;
  }
}

