.review-page {
  overflow: clip;
}

.review-page .section {
  position: relative;
}

.review-page h1,
.review-page h2,
.review-page h3 {
  text-wrap: balance;
}

.review-hero__grid,
.review-common__grid,
.review-lasting__grid,
.review-verdict__grid,
.review-next__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.review-hero__copy {
  grid-column: 1 / span 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.review-hero__copy > * {
  margin: 0;
}

.review-hero__eyebrow {
  align-self: flex-start;
  padding: var(--space-2) var(--space-3);
  background: var(--color-wheat);
  color: var(--color-denim);
}

.review-hero h1 {
  max-width: 18ch;
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
}

.review-hero__lead {
  max-width: 56ch;
}

.review-hero__media {
  grid-column: 8 / span 5;
  min-width: 0;
  margin: 0;
}

.review-hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-soft);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.review-tabs {
  display: flex;
  gap: var(--space-2);
  min-width: 0;
}

.review-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: var(--space-3);
  border: var(--border-stitch);
  border-radius: var(--radius-card);
  background: var(--color-cream-deep);
  color: var(--color-denim);
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.review-tab strong,
.review-tab span {
  display: block;
}

.review-tab strong {
  margin-block-end: var(--space-1);
}

.review-hero__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.review-hero__action > * {
  min-width: 0;
}

.review-hero__action span {
  max-width: 28ch;
  color: var(--color-text-muted);
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.review-cycle {
  background: var(--color-cream-deep);
}

.review-cycle__intro {
  width: calc((100% - (11 * var(--space-2))) / 12 * 8 + (7 * var(--space-2)));
  min-width: 0;
  padding: var(--space-6);
  border-radius: var(--radius-sharp);
}

.review-cycle__intro > :last-child,
.review-recipe > :last-child,
.review-common__notes > :last-child,
.review-freedom__intro > :last-child,
.review-week__intro > :last-child,
.review-lasting__panel > :last-child,
.review-caution__heading > :last-child,
.review-verdict__statement > :last-child,
.review-next__panel > :last-child {
  margin-block-end: 0;
}

.review-cycle__intro .lead {
  max-width: 62ch;
}

.review-cycle__cards {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.review-recipe {
  min-width: 0;
  padding: var(--space-5);
  border-top: 3px dashed var(--color-stitch);
  border-radius: var(--radius-card);
}

.review-recipe--routine { background: var(--color-cream); }
.review-recipe--community { background: var(--color-wheat); }
.review-recipe--discovery { background: var(--color-denim-light); }

.review-recipe__label,
.review-caution__label {
  display: inline-block;
  margin: 0 0 var(--space-3);
  padding: var(--space-1) var(--space-2);
  background: var(--color-pumpkin-light);
  color: var(--color-denim);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.review-common__media {
  grid-column: 1 / span 6;
  min-width: 0;
  margin: 0;
}

.review-common__media img,
.review-lasting__media img,
.review-next__media img {
  width: 100%;
  border-radius: var(--radius-soft);
  object-fit: cover;
}

.review-common__media img { aspect-ratio: 4 / 3; }

.review-common__notes {
  grid-column: 8 / span 5;
  min-width: 0;
}

.review-common__notes > .eyebrow {
  margin-block-end: var(--space-2);
}

.review-observation {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-3);
  min-width: 0;
  padding-block: var(--space-4);
  border-top: var(--border-stitch);
}

.review-observation__number {
  color: var(--color-barn-red);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.review-observation__number--sage { color: var(--color-sage); }

.review-observation--pocket {
  margin-top: var(--space-2);
  padding: var(--space-4);
  border: 0;
  border-radius: var(--radius-card);
  background: var(--color-cream-deep);
}

.review-freedom {
  background: var(--color-cream-deep);
}

.review-freedom__intro {
  width: calc((100% - (11 * var(--space-2))) / 12 * 8 + (7 * var(--space-2)));
  min-width: 0;
}

.review-freedom__intro .lead { max-width: 60ch; }

.review-freedom__cards {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.review-freedom__card,
.review-freedom__reading {
  min-width: 0;
  padding: var(--space-5);
}

.review-freedom__card--welcome {
  grid-column: 1 / span 5;
  border-radius: var(--radius-card);
  background: var(--color-denim-light);
}

.review-freedom__card--caution {
  grid-column: 7 / span 5;
  border: 1px solid rgb(145 60 50 / 45%);
  border-radius: var(--radius-card);
  background: var(--color-cream);
}

.review-freedom__reading {
  grid-column: 1 / span 5;
}

.review-week__intro {
  width: calc((100% - (11 * var(--space-2))) / 12 * 6 + (5 * var(--space-2)));
  min-width: 0;
}

.review-week__intro p:last-child { max-width: 52ch; }

.review-week__trail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.review-moment {
  position: relative;
  min-width: 0;
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--color-cream-deep);
}

.review-moment:nth-child(2) { background: var(--color-wheat); }
.review-moment:nth-child(3) { background: var(--color-denim-light); }
.review-moment:nth-child(4) { background: var(--color-cream); border: var(--border-stitch); }

.review-moment::after {
  position: absolute;
  top: 2.25rem;
  right: calc(var(--space-4) * -1);
  width: var(--space-4);
  border-top: var(--border-stitch);
  content: "";
}

.review-moment:last-child::after { display: none; }

.review-moment > span {
  display: block;
  margin-block-end: var(--space-3);
  color: var(--color-barn-red);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.review-lasting__panel {
  grid-column: 1 / span 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-soft);
  background: var(--color-cream-deep);
}

.review-lasting__panel > * { margin: 0; }

.review-lasting__panel > article {
  padding: var(--space-4);
  border: var(--border-stitch);
  border-radius: var(--radius-card);
  background: var(--color-cream);
}

.review-lasting__panel > article:nth-of-type(2) { background: var(--color-cream); }
.review-lasting__panel > article:nth-of-type(3) { background: var(--color-wheat); }
.review-lasting__panel em { color: var(--color-barn-red); font-style: normal; }

.review-lasting__media {
  grid-column: 8 / span 5;
  min-width: 0;
  margin: 0;
}

.review-lasting__media img { aspect-ratio: 4 / 3; }

.review-caution { background: var(--color-cream-deep); }

.review-caution__heading {
  width: calc((100% - (11 * var(--space-2))) / 12 * 7 + (6 * var(--space-2)));
  min-width: 0;
}

.review-caution__heading .lead { max-width: 48ch; }

.review-caution__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.review-caution__cards > article {
  min-width: 0;
  padding: var(--space-5);
  border: var(--border-stitch);
  border-radius: var(--radius-card);
  background: var(--color-cream);
}

.review-caution__label {
  background: var(--color-barn-red);
  color: var(--color-cream);
}

.review-caution__summary {
  width: calc((100% - (11 * var(--space-2))) / 12 * 8 + (7 * var(--space-2)));
  min-width: 0;
  margin: var(--space-5) auto 0;
  padding: var(--space-5);
  border-top: 3px dashed var(--color-pumpkin-light);
  border-radius: var(--radius-card);
  background: var(--color-denim);
  color: var(--color-cream);
}

.review-caution__summary h3 { color: inherit; }
.review-caution__summary > :last-child { margin-block-end: 0; }

.review-fit__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.review-fit__cards > article {
  min-width: 0;
  padding: var(--space-5);
  border: var(--border-stitch);
  border-radius: var(--radius-card);
  background: var(--color-cream-deep);
}

.review-fit__cards > article:nth-child(2) { background: var(--color-cream); }
.review-fit__cards > article:nth-child(4) { background: var(--color-wheat); }

.review-fit__cards span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  margin-block-end: var(--space-3);
  border-radius: 50%;
  background: var(--color-sage);
  color: var(--color-cream);
  font-weight: 700;
}

.review-fit__note {
  width: calc((100% - (11 * var(--space-2))) / 12 * 7 + (6 * var(--space-2)));
  min-width: 0;
  margin: var(--space-5) auto 0;
  padding: var(--space-5);
}

.review-verdict__statement {
  grid-column: 1 / span 7;
  min-width: 0;
  padding: var(--space-7);
  border-top: 3px dashed var(--color-pumpkin-light);
  border-radius: var(--radius-soft);
  background: var(--color-denim);
  color: var(--color-cream);
}

.review-verdict__statement h2,
.review-verdict__statement .eyebrow { color: var(--color-cream); }
.review-verdict__statement p:last-child { max-width: 52ch; margin-block-end: 0; }

.review-verdict__notes {
  grid-column: 9 / span 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.review-verdict__notes > article {
  min-width: 0;
  padding: var(--space-5);
  border: var(--border-stitch);
  border-radius: var(--radius-card);
  background: var(--color-cream-deep);
}

.review-verdict__notes > article:last-child { background: var(--color-cream); }

.review-next { background: var(--color-cream-deep); }

.review-next__panel {
  grid-column: 1 / span 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border-top: 5px solid var(--color-pumpkin);
  border-radius: var(--radius-card);
  background: var(--color-cream);
}

.review-next__panel > * { margin: 0; }
.review-next__panel .lead { max-width: 50ch; }

.review-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
}

.review-next__actions > * { min-width: 0; }

.review-next__secondary {
  max-width: 34ch;
  color: var(--color-text-muted);
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.review-next__media {
  grid-column: 9 / span 4;
  min-width: 0;
  margin: 0;
}

.review-next__media img { aspect-ratio: 3 / 4; }

@media (max-width: 58.74rem) {
  .review-hero__grid { grid-template-columns: 1fr; }
  .review-hero__media { grid-column: 1; grid-row: 1; }
  .review-hero__copy { grid-column: 1; grid-row: 2; }
  .review-hero h1 { max-width: 19ch; }

  .review-common__grid { grid-template-columns: 1fr; }
  .review-common__media,
  .review-common__notes { grid-column: 1; }

  .review-week__trail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-moment:nth-child(2)::after { display: none; }

  .review-fit__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 54.99rem) {
  .review-lasting__grid,
  .review-verdict__grid { grid-template-columns: 1fr; }
  .review-lasting__media { grid-column: 1; grid-row: 1; }
  .review-lasting__panel { grid-column: 1; grid-row: 2; }
  .review-verdict__statement,
  .review-verdict__notes { grid-column: 1; }
}

@media (max-width: 51.24rem) {
  .review-cycle__intro,
  .review-freedom__intro,
  .review-caution__heading,
  .review-week__intro { width: 100%; }
  .review-cycle__cards { grid-template-columns: 1fr; }
  .review-next__grid { grid-template-columns: 1fr; }
  .review-next__panel,
  .review-next__media { grid-column: 1; }
}

@media (max-width: 48.74rem) {
  .review-freedom__cards { grid-template-columns: 1fr; }
  .review-freedom__card--welcome,
  .review-freedom__card--caution,
  .review-freedom__reading { grid-column: 1; }
}

@media (max-width: 43.74rem) {
  .review-week__trail { grid-template-columns: 1fr; }
  .review-moment::after {
    top: auto;
    right: auto;
    bottom: calc(var(--space-4) * -1);
    left: 2rem;
    width: 0;
    height: var(--space-4);
    border-top: 0;
    border-left: var(--border-stitch);
  }
}

@media (max-width: 38.74rem) {
  .review-caution__cards,
  .review-fit__cards { grid-template-columns: 1fr; }
  .review-caution__summary,
  .review-fit__note { width: 100%; }
}

@media (max-width: 44.99rem) {
  .review-hero__media { order: -1; }
  .review-hero h1 { max-width: 15ch; font-size: clamp(2.25rem, 10vw, 2.625rem); }
  .review-hero__lead { max-width: 30ch; }
  .review-tabs {
    overflow-x: auto;
    padding-bottom: var(--space-3);
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--color-stitch) transparent;
  }
  .review-tab { flex: 0 0 13.125rem; scroll-snap-align: start; }
  .review-cycle__intro,
  .review-recipe,
  .review-freedom__card,
  .review-freedom__reading,
  .review-moment,
  .review-lasting__panel,
  .review-caution__cards > article,
  .review-fit__cards > article,
  .review-verdict__statement,
  .review-verdict__notes > article,
  .review-next__panel { padding: var(--space-5); }
  .review-next__media { grid-row: 2; }
  .review-next__media img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .review-tabs { scroll-snap-type: none; }
}
