/**
 * Editorial Standards Page — KetoFocus
 * Self-contained styles for page-templates/editorial-standards.php
 * Design tokens from STYLE-GUIDE.md: Navy #2B354F, Terracotta #c4714b,
 * Cream #fdf9f5, Warm Brown #6b5e4b.
 */

/* ==========================================================================
   Reveal animation (mirrors about.css)
   ========================================================================== */
.kf-std .kf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.kf-std .kf-reveal.kf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Base
   ========================================================================== */
.kf-std {
  color: #3a3f4b;
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
.kf-std p {
  margin-bottom: 1.1em;
  color: #3a3f4b;
}
.kf-std a {
  color: #c4714b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kf-std a:hover { color: #a85c39; }

.kf-std__badge,
.kf-std__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c4714b;
}
.kf-std__kicker {
  font-size: 13px;
  letter-spacing: 1px;
  color: #b0a392;
  margin-bottom: 6px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.kf-std__hero {
  padding: 64px 0 48px;
  background: #fdf9f5;
  border-bottom: 1px solid #e8e2d9;
  text-align: center;
}
.kf-std__badge { margin-bottom: 14px; }
.kf-std__h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #2B354F;
  margin: 0 auto 20px;
  max-width: 16ch;
}
.kf-std__lead {
  font-size: 19px;
  line-height: 1.6;
  color: #4a4f5b;
  max-width: 62ch;
  margin: 0 auto 36px;
}

.kf-std__stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.kf-std__stat {
  padding: 0 32px;
  text-align: center;
}
.kf-std__stat + .kf-std__stat { border-left: 1px solid #e1d9cd; }
.kf-std__stat-num {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: #c4714b;
  line-height: 1.1;
}
.kf-std__stat-label {
  display: block;
  font-size: 12.5px;
  color: #6b5e4b;
  max-width: 14ch;
  margin: 6px auto 0;
  line-height: 1.3;
}

/* ==========================================================================
   Body sections
   ========================================================================== */
.kf-std__body { padding: 8px 0 24px; }
.kf-std__body .container { max-width: 760px; }

.kf-std__section {
  padding: 44px 0;
  border-bottom: 1px solid #efeae1;
}
.kf-std__section:last-child { border-bottom: 0; }

.kf-std__h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #2B354F;
  margin: 0 0 18px;
}

.kf-std__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1em;
}
.kf-std__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: #3a3f4b;
}
.kf-std__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4714b;
}
.kf-std__list strong { color: #2B354F; }

.kf-std__note {
  font-size: 15px;
  color: #6b5e4b;
  font-style: italic;
}

/* Author block */
.kf-std__author {
  display: flex;
  gap: 32px;
  align-items: center;
}
.kf-std__author-photo {
  flex: 0 0 160px;
}
.kf-std__author-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 22px rgba(43, 53, 79, 0.14);
}
.kf-std__author-text { flex: 1 1 auto; }
.kf-std__cta {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  text-decoration: none;
}

/* Sources */
.kf-std__sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kf-std__sources-list li {
  padding: 12px 0;
  border-bottom: 1px solid #efeae1;
  font-size: 15.5px;
  color: #4a4f5b;
}
.kf-std__sources-list li:last-child { border-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .kf-std__hero { padding: 44px 0 36px; }
  .kf-std__h1 { font-size: 32px; }
  .kf-std__lead { font-size: 17px; margin-bottom: 28px; }
  .kf-std__stats { gap: 18px 0; }
  .kf-std__stat { padding: 0 18px; }
  .kf-std__stat-num { font-size: 27px; }
  .kf-std__h2 { font-size: 24px; }
  .kf-std__author {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .kf-std__author-photo { flex-basis: auto; }
}
