/*
 * Evolve Kamado — article layout
 *
 * Built to sit inside the existing site rather than beside it. The homepage and the shop
 * archive set the register: a 1440px container, headings in heavy uppercase Montserrat
 * with tight tracking, black on white, and the acid green used only where something is
 * active. The article follows all four.
 *
 * One typeface throughout: Montserrat, the family the site already loads. No second face
 * and no monospace — labels are set in Montserrat at small size with wide tracking, which
 * is how the rest of the site handles them.
 *
 * Everything sits on the container's own left edge — headline, copy, product grid and
 * image alike — so the article lines up with the homepage and the shop archive instead
 * of floating in a narrower column of its own.
 */

.ek-article {
  --ek-ink: #000000;
  --ek-paper: #ffffff;
  --ek-acid: #00be59;
  --ek-ash: #6b6b6b;
  --ek-hairline: #f2f2f2;
  --ek-rule: #e6e6e6;

  --ek-container: 1440px;
  --ek-pad: clamp(20px, 4vw, 32px);

  --ek-font: var(--font-body, "Montserrat", sans-serif);

  background: var(--ek-paper);
  color: var(--ek-ink);
  font-family: var(--ek-font);
}

/* The site container, reproduced exactly: 1440px of content, centred. */
.ek-article .ek-wrap {
  width: 100%;
  max-width: var(--ek-container);
  margin: 0 auto;
  padding-left: var(--ek-pad);
  padding-right: var(--ek-pad);
  box-sizing: border-box;
}

/* ---------------------------------------------------------------- head -- */

/* The header now follows the hero image, so its top spacing is smaller. */
.ek-article__head { padding-top: clamp(24px, 3.5vw, 44px); }

/* Breadcrumb, date and reading time on one line. */
.ek-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ek-ash);
  margin: 0 0 clamp(14px, 1.8vw, 22px);
}

.ek-meta__crumbs { display: inline-flex; align-items: center; gap: 8px; }
.ek-meta__crumbs a { color: inherit; text-decoration: none; }
.ek-meta__crumbs a:hover { color: var(--ek-ink); }
.ek-meta__crumbs span[aria-hidden] { color: #c4c4c4; }

.ek-meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ek-acid);
  flex: none;
}

/* The site sets headlines in heavy uppercase Montserrat with negative tracking. */
.ek-article__title {
  font-family: var(--ek-font);
  font-weight: 800;
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 clamp(18px, 2.2vw, 28px);
  text-wrap: balance;
}

.ek-article__standfirst {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
  color: #333333;
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.ek-article__hero { margin: clamp(20px, 3vw, 40px) auto clamp(28px, 3.5vw, 44px); }

.ek-article__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: 16px;
}

/* ---------------------------------------------------------------- body -- */

.ek-article__body {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75;
  color: #1a1a1a;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.ek-article .ek-article__body > p:first-of-type {
  font-size: 1.1875rem;
  color: var(--ek-ink);
}

.ek-article .ek-article__body p { margin: 0 0 1.3em; }

.ek-article .ek-article__body h2 {
  font-family: var(--ek-font);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ek-ink);
  margin: 2.2em 0 0.65em;
}

.ek-article .ek-article__body h2:first-child { margin-top: 0; }

.ek-article .ek-article__body h3 {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 1.8em 0 0.5em;
  color: var(--ek-ink);
}

.ek-article .ek-article__body ul,
.ek-article .ek-article__body ol { margin: 0 0 1.3em; padding-left: 1.2em; }
.ek-article .ek-article__body li { margin: 0 0 0.5em; }

.ek-article .ek-article__body strong { font-weight: 700; color: var(--ek-ink); }

.ek-article .ek-article__body a {
  color: var(--ek-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ek-acid);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 150ms ease;
}

.ek-article .ek-article__body a:hover { color: var(--ek-acid); }

.ek-article .ek-article__body figure { margin: 2em 0; }

.ek-article .ek-article__body figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* FAQ blocks, styled like the site's other bordered rows. */
.ek-article .ek-article__body details {
  border-top: 1px solid var(--ek-rule);
  padding: 1em 0;
}

.ek-article .ek-article__body details:last-of-type { border-bottom: 1px solid var(--ek-rule); }

.ek-article .ek-article__body summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ek-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.ek-article .ek-article__body summary::-webkit-details-marker { display: none; }

.ek-article .ek-article__body summary::after {
  content: "+";
  font-weight: 600;
  color: var(--ek-acid);
  flex: none;
  font-size: 1.25em;
  line-height: 1;
}

.ek-article .ek-article__body details[open] summary::after { content: "–"; }
.ek-article .ek-article__body details p { margin: 0.75em 0 0; color: #333333; }

/* ------------------------------------------------------- product strip -- */

.ek-strip {
  border-top: 1px solid var(--ek-rule);
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(8px, 2vw, 16px);
}

.ek-strip__title {
  font-family: var(--ek-font);
  font-weight: 800;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ek-ink);
  margin: 0 0 clamp(20px, 2.5vw, 32px);
}

/* The cards themselves come from woocommerce/content-product.php and carry the shop's
   own styling. Only the grid is defined here, matching the archive's four columns. */
.ek-article ul.products.ek-strip__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
}

.ek-article ul.products.ek-strip__grid::before,
.ek-article ul.products.ek-strip__grid::after { content: none; }

.ek-article ul.products.ek-strip__grid li.product {
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
  clear: none;
}

/* ------------------------------------------------------------ next up -- */

.ek-next {
  border-top: 1px solid var(--ek-rule);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.ek-next__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ek-ash);
  margin: 0 0 12px;
}

.ek-next__link {
  font-family: var(--ek-font);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ek-ink);
  text-decoration: none;
  display: inline-block;
  max-width: 26ch;
}

.ek-next__link:hover { color: var(--ek-acid); }

/* ------------------------------------------------------------- states -- */

.ek-article a:focus-visible,
.ek-article summary:focus-visible {
  outline: 3px solid var(--ek-acid);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ek-article *,
  .ek-article *::before { transition: none !important; animation: none !important; }
}

/* The extra FAQ heading sits tight to the rows it introduces. */
.ek-article .ek-article__body h2.ek-extra-faq { margin-bottom: 0.35em; }
