/* ==========================================================================
   NTV — About KetoMed
   Long-form product page. Fonts are enqueued in functions.php, no @import.
   ========================================================================== */

.ntv-km {
  --ntv-red: #c8102e;
  --ntv-red-dk: #a50d26;
  --ntv-navy: #0e2a57;
  --ntv-dark: #0a1a33;
  --ntv-ink: #0e2a57;
  --ntv-gray: #5b6472;
  --ntv-soft: #8a92a0;
  --ntv-line: #e6e8ec;
  --ntv-radius: 0px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ntv-ink);
  line-height: 1.5;
  max-width: 1180px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

.ntv-km * { box-sizing: border-box; }
.ntv-km a { text-decoration: none; color: inherit; }
.ntv-km img { display: block; max-width: 100%; }

.ntv-km h1,
.ntv-km h2,
.ntv-km h3 {
  font-family: "Archivo", "Inter", sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}

.ntv-km p {
  font-size: 15px;
  color: var(--ntv-gray);
  line-height: 1.75;
  margin: 0 0 16px;
}

.ntv-km p:last-child { margin-bottom: 0; }
.ntv-km strong { color: var(--ntv-navy); font-weight: 700; }

.ntv-km-accent { color: var(--ntv-red); }

/* ========== BUTTONS ==========
   Scoped with .ntv-km so they outrank `.ntv-km a { color: inherit }`,
   which otherwise wins on specificity and hides the label.
   ============================================================== */

.ntv-km-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ntv-km .ntv-km-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--ntv-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/* Primary CTA — red, highest contrast */
.ntv-km .ntv-km-btn--primary {
  background: var(--ntv-red);
  border-color: var(--ntv-red);
  color: #fff;
}

.ntv-km .ntv-km-btn--primary:hover {
  background: var(--ntv-red-dk);
  border-color: var(--ntv-red-dk);
  color: #fff;
}

/* Secondary — navy fill */
.ntv-km .ntv-km-btn--dark {
  background: var(--ntv-navy);
  border-color: var(--ntv-navy);
  color: #fff;
}

.ntv-km .ntv-km-btn--dark:hover {
  background: #fff;
  border-color: var(--ntv-navy);
  color: var(--ntv-navy);
}

/* Tertiary — outlined */
.ntv-km .ntv-km-btn--ghost {
  background: #fff;
  border-color: #c1c7d0;
  color: var(--ntv-navy);
}

.ntv-km .ntv-km-btn--ghost:hover {
  background: var(--ntv-navy);
  border-color: var(--ntv-navy);
  color: #fff;
}

.ntv-km .ntv-km-btn:focus-visible {
  outline: 3px solid var(--ntv-red);
  outline-offset: 3px;
}

/* ========== HERO ========== */

.ntv-km-hero {
  background: #fff;
  border: 1px solid var(--ntv-line);
  border-top: 3px solid var(--ntv-red);
  padding: 40px 32px;
  margin: 34px 26px 0;
}

.ntv-km-hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ntv-navy);
  margin: 0 0 28px;
  max-width: 900px;
}

.ntv-km-hero__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: start;
}

.ntv-km-hero__media { margin: 0; }

.ntv-km-hero__media img {
  width: 100%;
  border: 3px solid var(--ntv-red);
  background: var(--ntv-line);
}

/* Hero buttons sit under the image, always side by side. */
.ntv-km-hero__media .ntv-km-actions {
  margin-top: 16px;
  gap: 10px;
  flex-wrap: nowrap;
}

.ntv-km .ntv-km-hero__media .ntv-km-actions .ntv-km-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  padding: 14px 12px;
  white-space: nowrap;
}

.ntv-km-hero__copy { min-width: 0; }

/* ========== SECTIONS ========== */

.ntv-km-section {
  background: #fff;
  border: 1px solid var(--ntv-line);
  border-top: 0;
  padding: 44px 32px;
  margin: 0 26px;
}

.ntv-km-section:last-child { margin-bottom: 60px; }

.ntv-km-section > h2 {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ntv-navy);
  margin: 0 0 6px;
}

.ntv-km-section > h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--ntv-red);
  margin: 14px 0 22px;
}

.ntv-km-lede {
  font-size: 16px !important;
  color: var(--ntv-navy) !important;
}

.ntv-km-subhead {
  font-size: 21px;
  font-weight: 700;
  color: var(--ntv-navy);
  margin: 34px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ntv-line);
}

/* ========== MACRO STATS ========== */

.ntv-km-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ntv-line);
  border: 1px solid var(--ntv-line);
  margin: 30px 0;
}

.ntv-km-stat {
  background: #fff;
  padding: 22px 24px;
}

.ntv-km-stat__figure {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--ntv-navy);
  margin-bottom: 8px;
}

.ntv-km-stat p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* ========== SPLIT: copy + media ========== */

.ntv-km-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 30px;
}

.ntv-km-split--tight { gap: 30px; }

.ntv-km-split__copy { min-width: 0; }

.ntv-km-split__copy .ntv-km-actions { margin: 22px 0 24px; }

/* Product image — callouts are baked into the file */

.ntv-km-product { margin: 0; }

.ntv-km-product img {
  width: 100%;
  border: 3px solid var(--ntv-red);
  background: var(--ntv-line);
}

/* Supplement facts image */

.ntv-km-facts { margin: 0; }

.ntv-km-facts img {
  width: 100%;
  border: 3px solid var(--ntv-red);
  background: var(--ntv-line);
}

/* ========== TWO COLUMNS ========== */

.ntv-km-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 34px;
}

.ntv-km-col { min-width: 0; }

.ntv-km-colhead {
  font-size: 17px;
  font-weight: 700;
  color: var(--ntv-navy);
  margin: 0 0 18px;
}

.ntv-km-colhead em {
  font-style: normal;
  color: var(--ntv-red);
}

/* Never list */

.ntv-km-never {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ntv-km-never li {
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  color: var(--ntv-gray);
  line-height: 1.6;
}

.ntv-km-never li + li { margin-top: 16px; }

.ntv-km-never svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--ntv-red);
}

/* Ingredient matrix */

.ntv-km-matrix p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.ntv-km-botanicals {
  list-style: none;
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--ntv-line);
}

.ntv-km-botanicals li {
  font-size: 12.5px;
  color: var(--ntv-gray);
  line-height: 1.55;
}

.ntv-km-botanicals li + li { margin-top: 7px; }

/* ========== CALLOUT ========== */

.ntv-km-callout {
  background: #f4f6f8;
  border-left: 3px solid var(--ntv-red);
  padding: 20px 24px;
  margin-top: 32px;
}

.ntv-km-callout p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.ntv-km .ntv-km-callout a { color: var(--ntv-red); }
.ntv-km .ntv-km-callout a:hover { text-decoration: underline; }

/* ========== FAQ CARDS ========== */

.ntv-km-faqs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.ntv-km-faq { min-width: 0; }

/* Square: headline text is baked near the bottom of each image
   and would be clipped at a wider ratio. */
.ntv-km-faq__media {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ntv-line);
  border: 3px solid var(--ntv-red);
}

.ntv-km-faq__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ntv-km-faq__body { padding-top: 16px; }

.ntv-km-faq__body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ntv-navy);
  margin: 0 0 10px;
}

.ntv-km-faq__body p {
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

/* ========== TOP BANNER ========== */

.ntv-km .ntv-km-banner {
  /* Match the horizontal inset of the panels below so the edges line up. */
  margin: 0 26px;
  overflow: hidden;
}

.ntv-km .ntv-km-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sit flush on the red rule at the top of the first panel. */
.ntv-km .ntv-km-banner + .ntv-km-hero {
  margin-top: 0;
}

@media (max-width: 560px) {
  .ntv-km .ntv-km-banner { margin: 0 18px; }
}

.ntv-km .ntv-km-navy {
	color: #0d2a4d;
	font-weight: 700;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 980px) {
  .ntv-km-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .ntv-km-hero__media { max-width: 340px; }
  .ntv-km-split,
  .ntv-km-cols { grid-template-columns: 1fr; gap: 28px; }
  .ntv-km-product { max-width: 460px; }
  .ntv-km-faqs { grid-template-columns: 1fr; gap: 32px; }
  .ntv-km-faq__media { max-width: 420px; }
}

@media (max-width: 640px) {
  .ntv-km-hero {
    margin: 0;
    padding: 30px 20px;
    border-left: 0;
    border-right: 0;
  }
  .ntv-km-section {
    margin: 0;
    padding: 34px 20px;
    border-left: 0;
    border-right: 0;
  }
  .ntv-km-hero h1 { font-size: 26px; }
  .ntv-km-section > h2 { font-size: 23px; }
  .ntv-km-subhead { font-size: 19px; }
  .ntv-km-stats { grid-template-columns: 1fr; }

  /* Full-width buttons everywhere except the hero pair, which stays inline. */
  .ntv-km-actions .ntv-km-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ntv-km .ntv-km-btn { transition: none; }
}