/* ==========================================================
   Prime Post Weekly - article.css
   Advertorial page only: media figures, how-it-works steps,
   cost table. Loaded after base.css.
   ========================================================== */

/* ---------- figures (stills and loops) ---------- */
.fig { margin-top: 26px; margin-bottom: 30px; }

.fig__media {
  position: relative;
  overflow: hidden;
  background: #e7ecef;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}
.fig__media img,
.fig__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fig--hero { margin-top: 22px; }
.fig--hero .fig__media { aspect-ratio: 4 / 3; }
.fig--hero img { object-position: 50% 50%; }

.fig--still .fig__media { aspect-ratio: 3 / 2; }
.fig--still img { object-position: 50% 40%; }

.fig--loop .fig__media { aspect-ratio: 40 / 21; }

.fig figcaption,
.duo__cap {
  padding-top: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* two portrait loops side by side (stacked on mobile) */
.duo { margin-top: 28px; margin-bottom: 30px; }
.duo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.duo__item { margin: 0; }
.duo__item .fig__media { aspect-ratio: 4 / 3; }
.duo__item video { object-position: 50% 22%; }

.duo__kicker {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-d);
}
.duo__title {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--teal);
}

/* ---------- how it works: numbered steps ---------- */
.art > .steps {
  margin-top: 6px;
  margin-bottom: 8px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin: 0;
  padding: 0 0 22px 50px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  z-index: 1;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: -2px;
  width: 2px;
  background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }

/* ---------- cost table (stacked blocks on mobile) ---------- */
.tbl { margin-top: 20px; margin-bottom: 24px; overflow-x: auto; }

.cost {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}
.cost thead {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.cost,
.cost tbody,
.cost tr,
.cost th,
.cost td { display: block; }

.cost tr {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.cost td {
  padding: 10px 14px 11px;
  border-top: 1px solid var(--line);
}
.cost td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 1px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-d);
}
.cost td:nth-child(2)::before { display: none; }
.cost td:last-child {
  padding-top: 0;
  border-top: 0;
  font-size: 14px;
  color: var(--muted);
}
.cost td:last-child::before {
  content: attr(data-label) ": ";
  display: inline;
  margin: 0;
}
.cost tbody th {
  padding: 10px 14px 11px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

/* ---------- 480+ ---------- */
@media (min-width: 480px) {
  .fig--hero .fig__media { aspect-ratio: 16 / 9; }
}

/* ---------- 768+ ---------- */
@media (min-width: 768px) {
  .fig { margin-top: 34px; margin-bottom: 38px; }
  .fig--hero { margin-top: 30px; }
  .fig--still .fig__media { aspect-ratio: 16 / 9; }

  .duo { margin-top: 36px; margin-bottom: 40px; }
  .duo__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .duo__item .fig__media { aspect-ratio: 3 / 4; }

  .tbl { margin-top: 26px; margin-bottom: 30px; }
  .cost { display: table; font-size: 15px; text-align: center; }
  .cost thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }
  .cost tbody { display: table-row-group; }
  .cost tr { display: table-row; margin: 0; border: 0; border-radius: 0; overflow: visible; }
  .cost th,
  .cost td { display: table-cell; vertical-align: middle; }

  .cost thead th {
    padding: 15px 14px;
    background: var(--teal);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.55);
  }
  .cost thead th:first-child { border-left: 0; }

  .cost td,
  .cost tbody th {
    padding: 16px 14px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .cost td::before,
  .cost td:last-child::before { display: none; }
  .cost td:last-child { padding-top: 16px; font-size: 15px; color: inherit; }
  .cost tbody th {
    border-left: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    text-align: center;
  }
  .cost tbody tr:nth-child(even) th,
  .cost tbody tr:nth-child(even) td { background: #f5f9fa; }
}

/* ---------- 1024+ ---------- */
@media (min-width: 1024px) {
  .fig--hero { margin-top: 34px; }
}
