/* Kiki's Reset Room — Reset Rooms conversion layer */

.topics-page [hidden] {
  display: none !important;
}

.topics-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.topics-hero-actions .button {
  min-width: 220px;
}

.topics-hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 18px;
  margin: 18px 0 0;
  color: var(--brown-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topics-hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.topics-hero-proof span:not(:first-child)::before {
  content: "•";
  color: var(--rose);
}

.topics-pathfinder {
  padding: var(--krr-section-pad) var(--krr-page-pad);
  background: var(--ivory);
}

.topics-pathfinder__heading {
  width: min(100%, 820px);
  margin: 0 auto clamp(42px, 5vw, 66px);
  text-align: center;
}

.topics-pathfinder__heading .eyebrow {
  display: block;
  margin-bottom: 17px;
}

.topics-pathfinder__heading h2 {
  margin: 0;
  font-size: clamp(42px, 5.3vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.topics-pathfinder__heading > p:last-child {
  max-width: 670px;
  margin: 20px auto 0;
  color: var(--text);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.topics-pathfinder__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  width: min(100%, 1260px);
  margin: 0 auto;
}

.topics-path {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(157, 111, 99, 0.22);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.96);
  color: var(--cocoa);
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(62, 36, 27, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.topics-path::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(201, 114, 120, 0.10);
}

.topics-path--primary {
  border-color: rgba(157, 76, 81, 0.56);
  background: linear-gradient(145deg, var(--deep-rose), #7f3b40);
  color: white;
  box-shadow: 0 24px 54px rgba(126, 59, 64, 0.23);
}

.topics-path--primary::after {
  background: rgba(255, 255, 255, 0.10);
}

.topics-path:hover,
.topics-path:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(157, 76, 81, 0.58);
  box-shadow: 0 27px 58px rgba(62, 36, 27, 0.14);
}

.topics-path:focus-visible {
  outline: 4px solid rgba(201, 114, 120, 0.30);
  outline-offset: 4px;
}

.topics-path__label {
  margin-bottom: 11px;
  color: var(--deep-rose);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.topics-path--primary .topics-path__label,
.topics-path--primary .topics-path__copy {
  color: rgba(255, 255, 255, 0.88);
}

.topics-path strong {
  max-width: 13ch;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(29px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.topics-path__copy {
  max-width: 36ch;
  margin-top: 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.topics-path__cta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 28px;
  color: var(--deep-rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topics-path--primary .topics-path__cta {
  color: white;
}

.topics-free-reset {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 7vw, 98px);
  align-items: center;
  padding: var(--krr-section-pad) var(--krr-page-pad);
  overflow: hidden;
  background: linear-gradient(125deg, #f5dcdd, #fae9e5 58%, #f7e1df);
}

.topics-free-reset__visual {
  position: relative;
  min-height: clamp(420px, 43vw, 620px);
}

.topics-free-reset__visual img {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 25px rgba(62, 36, 27, 0.16));
}

.topics-free-reset__cover {
  left: 2%;
  bottom: 0;
  width: min(58%, 330px);
  height: 88%;
  z-index: 2;
}

.topics-free-reset__page {
  right: 1%;
  top: 3%;
  width: min(63%, 360px);
  height: 89%;
  transform: rotate(2deg);
}

.topics-free-reset__copy {
  width: min(100%, 680px);
}

.topics-free-reset__copy .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.topics-free-reset__copy h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.topics-free-reset__copy > p:not(.eyebrow):not(.privacy) {
  margin: 22px 0 0;
  color: var(--text);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.topics-free-reset__copy ul {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.topics-free-reset__copy li {
  position: relative;
  padding-left: 25px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.topics-free-reset__copy li::before {
  content: "•";
  position: absolute;
  left: 3px;
  color: var(--deep-rose);
  font-size: 22px;
  line-height: 1;
}

.topics-free-reset__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 30px;
}

.topics-free-reset__form input,
.topics-free-reset__form button {
  min-height: 54px;
}

.topics-free-reset__form input {
  min-width: 0;
  border-color: rgba(157, 76, 81, 0.24);
  background: rgba(255, 253, 249, 0.94);
}

.topics-free-reset__form button {
  background: var(--deep-rose);
  color: white;
  white-space: nowrap;
}

.topics-free-reset__copy .privacy {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.topics-page .reset-rooms {
  padding-top: var(--krr-section-pad);
}

.topics-page .reset-rooms__header {
  margin-bottom: clamp(48px, 5vw, 72px);
}

/* Equalize the visible card shells when directory copy wraps to different lengths. */
.topics-page .reset-room-card {
  height: 100%;
}

/* Keep the Topics directory actions comfortably separated from card copy.
   This belongs to the directory page, not the shared button system. */
.topics-page .reset-room-card__copy {
  margin-bottom: clamp(22px, 2vw, 28px);
}

.topics-page .reset-room-card__button {
  min-height: 48px;
  padding: 12px 18px;
  line-height: 1.25;
}

/* Contextual conversion blocks used inside the six topic hubs. */
.topic-conversion {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
  margin-top: 34px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(157, 76, 81, 0.20);
  border-radius: 26px;
  background: linear-gradient(130deg, #f4dcdd, #fffaf6);
  box-shadow: 0 18px 42px rgba(62, 36, 27, 0.07);
}

.topic-conversion__visual img {
  display: block;
  width: min(100%, 300px);
  max-height: 350px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(62, 36, 27, 0.15));
}

.topic-conversion__copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.topic-conversion__copy > p:not(.eyebrow) {
  margin: 15px 0 22px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

/* Individual Reset Rooms: search-friendly editorial funnels with a unique visual story. */
.topic-detail-page {
  background: var(--ivory);
}

.topic-detail-page main {
  overflow: hidden;
}

.topic-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: center;
  min-height: 640px;
  padding: clamp(52px, 7vw, 88px) var(--krr-page-pad);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 16%, rgba(228, 185, 181, 0.24), transparent 30%),
    linear-gradient(120deg, #fffaf6, #f9e9e7 66%, #f1dcdf);
}

.topic-detail-hero__copy {
  width: min(100%, 720px);
}

.topic-detail-hero__copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(52px, 4.8vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.topic-detail-hero__lede {
  max-width: 590px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.56;
}

.topic-detail-hero .button-row {
  margin-top: 29px;
}

.topic-detail-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--brown-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  list-style: none;
  text-transform: uppercase;
}

.topic-detail-hero__proof li:not(:first-child)::before {
  margin-right: 20px;
  color: var(--rose);
  content: "•";
}

.topic-detail-hero__visual {
  position: relative;
  margin: 0;
  padding: clamp(10px, 1.4vw, 17px);
  border: 1px solid rgba(157, 111, 99, 0.24);
  border-radius: 30px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 28px 66px rgba(62, 36, 27, 0.16);
}

.topic-detail-hero__visual picture,
.topic-detail-hero__visual img {
  display: block;
  width: 100%;
}

.topic-detail-hero__visual img {
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  object-fit: cover;
}

.topic-detail-hero__visual figcaption {
  position: absolute;
  right: clamp(20px, 3vw, 38px);
  bottom: clamp(20px, 3vw, 38px);
  width: min(76%, 410px);
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 15px;
  background: rgba(255, 250, 245, 0.92);
  color: var(--cocoa);
  font-family: var(--serif);
  font-size: clamp(19px, 1.55vw, 25px);
  font-style: italic;
  line-height: 1.2;
  box-shadow: 0 14px 30px rgba(62, 36, 27, 0.12);
}

.topic-detail-page .topic-wrap {
  width: min(100%, 1240px);
  max-width: 1240px;
  padding-top: clamp(56px, 7vw, 84px);
  padding-bottom: clamp(64px, 7vw, 90px);
}

.topic-quick-choose {
  margin-bottom: clamp(42px, 6vw, 68px);
  padding: clamp(28px, 4.5vw, 50px);
  border: 1px solid rgba(157, 76, 81, 0.18);
  border-radius: 26px;
  background: linear-gradient(135deg, #f7e2e2, #fffaf6 72%);
  box-shadow: 0 18px 46px rgba(62, 36, 27, 0.07);
  scroll-margin-top: 110px;
}

.topic-quick-choose__heading {
  width: min(100%, 760px);
}

.topic-quick-choose__heading h2 {
  margin: 0;
  font-size: clamp(39px, 4.8vw, 58px);
  line-height: 1;
  text-wrap: balance;
}

.topic-quick-choose__heading > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.topic-quick-choose__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.topic-quick-choice {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 178px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(157, 76, 81, 0.22);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--cocoa);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topic-quick-choice strong {
  max-width: 18ch;
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 2.45vw, 34px);
  font-weight: 500;
  line-height: 1.02;
}

.topic-quick-choice small {
  margin-top: 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.topic-quick-choice:hover,
.topic-quick-choice:focus-visible {
  transform: translateY(-4px);
  border-color: var(--deep-rose);
  box-shadow: 0 18px 34px rgba(62, 36, 27, 0.10);
}

.topic-quick-choice:focus-visible {
  outline: 3px solid rgba(201, 114, 120, 0.25);
  outline-offset: 3px;
}

.topic-detail-page .topic-prose-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: auto;
  padding: clamp(28px, 3.4vw, 40px);
  overflow: hidden;
  border-radius: 24px;
  transform: translateX(clamp(-18px, -1.4vw, -10px));
}

.topic-detail-page .topic-prose-card--2 {
  background: linear-gradient(135deg, #f5e7df, #fffaf6);
  transform: translateX(clamp(10px, 1.4vw, 18px));
}

.topic-detail-page .topic-prose-card--3 {
  background: linear-gradient(135deg, #f7e2e2, #fffaf6);
}

.topic-detail-page .topic-prose-card h2 {
  position: relative;
  z-index: 1;
  max-width: none;
  font-size: clamp(32px, 2.9vw, 40px);
  line-height: 1.06;
  text-wrap: balance;
}

.topic-detail-page .topic-prose-card p {
  position: relative;
  z-index: 1;
  max-width: 70ch;
}

.topic-detail-page .topic-prose-card--faq {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-top: 34px;
  margin-left: 0;
  padding: clamp(30px, 3.5vw, 44px);
  background: #fffaf6;
  transform: none;
}

.topic-detail-page .topic-prose-card--faq h2 {
  max-width: 24ch;
}

.topic-detail-page .topic-prose-card--faq h3 {
  margin-top: 28px;
  color: var(--deep-rose);
  font-size: clamp(23px, 2.5vw, 29px);
}

.topic-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 0;
  align-items: stretch;
  margin: clamp(38px, 6vw, 70px) 0;
  overflow: hidden;
  border: 1px solid rgba(157, 76, 81, 0.18);
  border-radius: 28px;
  background: var(--cocoa);
  box-shadow: 0 24px 56px rgba(62, 36, 27, 0.14);
}

.topic-editorial > img {
  display: block;
  width: 100%;
  height: auto;
  align-self: center;
}

.topic-editorial figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 56px);
  background: linear-gradient(145deg, #5b3026, #3e241b);
}

.topic-editorial figcaption .eyebrow {
  color: #efbfc2;
}

.topic-editorial figcaption strong {
  color: white;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}

.topic-editorial figcaption > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #f7e8e1;
  font-size: 16px;
  line-height: 1.7;
}

.topic-conversion__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 650px;
  margin: 25px 0 0;
}

.topic-conversion__form input,
.topic-conversion__form button {
  min-height: 52px;
}

.topic-conversion__form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(157, 76, 81, 0.28);
  border-radius: 8px;
  padding: 13px 15px;
  background: #fffaf6;
  color: var(--cocoa);
  font: 600 15px/1.3 var(--sans);
}

.topic-conversion__form button {
  border: 1px solid var(--deep-rose);
  border-radius: 8px;
  padding: 12px 20px;
  background: var(--deep-rose);
  color: white;
  font: 800 13px/1 var(--sans);
  cursor: pointer;
}

.topic-conversion__privacy {
  margin: 10px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.topic-detail-page .topic-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #fffaf6, #f6e5e1);
}

.topic-detail-page .topic-card::after {
  position: absolute;
  right: -45px;
  bottom: -58px;
  width: 130px;
  aspect-ratio: 1;
  border: 1px solid rgba(157, 76, 81, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

/* Compact Reset Shelf spotlight shared by five intent-led topic hubs. */
.topic-detail-page .topic-shelf-card {
  --topic-shelf-ruby: #59091f;
  --topic-shelf-deep: #35030f;
  --topic-shelf-gold: #d7a84f;
  --topic-shelf-gold-light: #f4d58d;
  --topic-shelf-cream: #fff8ef;

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 2px solid var(--topic-shelf-gold);
  border-radius: 24px;
  background-color: var(--topic-shelf-ruby);
  background-image:
    url("/assets/reset-shelf-vines.svg"),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.07), transparent 24%),
    linear-gradient(135deg, var(--topic-shelf-ruby), var(--topic-shelf-deep));
  background-position: right top, center, center;
  background-repeat: no-repeat;
  background-size: clamp(180px, 25%, 250px) 100%, auto, auto;
  box-shadow:
    inset 0 0 0 6px rgba(244, 213, 141, 0.10),
    0 20px 48px rgba(62, 22, 29, 0.20);
  color: var(--topic-shelf-cream);
}

.topic-detail-page .topic-shelf-card::before {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--topic-shelf-gold), var(--topic-shelf-gold-light) 50%, var(--topic-shelf-gold));
  content: "";
  pointer-events: none;
}

.topic-shelf-card__media {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 280px;
  place-items: center;
  padding: clamp(14px, 2vw, 22px);
  overflow: hidden;
  border: 2px solid var(--topic-shelf-gold-light);
  border-radius: 18px;
  background: var(--topic-shelf-cream);
  box-shadow: 0 14px 30px rgba(25, 0, 7, 0.24);
}

.topic-shelf-card__media img {
  display: block;
  width: 100%;
  max-width: 310px;
  height: 250px;
  object-fit: contain;
  object-position: center;
}

.topic-shelf-card__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.topic-shelf-card__copy .eyebrow {
  margin-bottom: 10px;
  color: var(--topic-shelf-gold-light);
}

.topic-shelf-card__copy h2 {
  max-width: 650px;
  margin: 0;
  color: var(--topic-shelf-cream);
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.topic-shelf-card__copy > p:not(.eyebrow):not(.topic-shelf-card__trust) {
  max-width: 650px;
  margin: 17px 0 22px;
  color: #f8e9e3;
  font-size: 16px;
  line-height: 1.68;
}

.topic-shelf-card__copy .button {
  min-height: 50px;
  border-color: var(--topic-shelf-gold);
  background: linear-gradient(#fff9e9, #f1d28e);
  color: #3a0c16;
  box-shadow: 0 10px 24px rgba(25, 0, 7, 0.24);
  text-transform: none;
}

.topic-shelf-card__copy .button:hover,
.topic-shelf-card__copy .button:focus-visible {
  border-color: var(--topic-shelf-gold-light);
  background: var(--topic-shelf-gold-light);
  color: #3a0c16;
}

.topic-shelf-card__trust {
  margin: 13px 0 0;
  color: #f1d6d3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .topic-detail-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .topic-detail-hero__copy,
  .topic-detail-hero__visual {
    width: min(100%, 760px);
  }
}

@media (max-width: 980px) {
  .topic-detail-page .topic-prose-card {
    transform: none;
  }

  .topics-pathfinder__grid {
    grid-template-columns: 1fr;
    width: min(100%, 720px);
  }

  .topics-free-reset,
.topic-conversion {
    grid-template-columns: 1fr;
  }

  .topic-detail-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .topic-detail-hero__copy {
    width: min(100%, 760px);
  }

  .topic-detail-hero__visual {
    width: min(100%, 760px);
  }

  .topic-quick-choose__grid {
    grid-template-columns: 1fr;
  }

  .topic-quick-choice {
    min-height: 0;
  }

  .topic-editorial {
    grid-template-columns: 1fr;
  }

  .topics-free-reset__visual {
    width: min(100%, 620px);
    min-height: 500px;
    margin: 0 auto;
  }

  .topics-free-reset__copy {
    width: min(100%, 760px);
    margin: 0 auto;
  }


}

@media (max-width: 680px) {
  .topics-hero-actions {
    display: grid;
    gap: 8px;
    width: min(100%, 360px);
    margin: 24px auto 0;
  }

  .topics-hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .topics-hero-actions .button.secondary {
    min-height: 44px;
    padding: 10px 12px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--deep-rose);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .topics-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 12px;
    font-size: 9px;
    line-height: 1.4;
  }

  .topics-hero-proof span {
    justify-content: center;
    gap: 6px;
  }

  .topics-pathfinder,
.topics-free-reset {
    padding-right: 18px;
    padding-left: 18px;
  }

  .topics-path {
    padding: 24px 22px 26px;
    border-radius: 20px;
  }

  .topics-path strong {
    width: 100%;
    max-width: 18ch;
    font-size: clamp(24px, 6.8vw, 27px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  .topics-path__copy {
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 1.55;
  }

  .topics-path__cta {
    padding-top: 22px;
  }

  .topics-free-reset__visual {
    min-height: 410px;
  }

  .topics-free-reset__cover {
    left: 0;
    width: 58%;
  }

  .topics-free-reset__page {
    right: -2%;
    width: 62%;
  }

  .topics-free-reset__form {
    grid-template-columns: 1fr;
  }

  .topics-free-reset__form button {
    width: 100%;
  }



  .topic-conversion {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .topic-detail-hero {
    gap: 30px;
    padding: 38px 18px 44px;
  }

  .topic-detail-hero__copy h1 {
    font-size: clamp(45px, 12.8vw, 60px);
    line-height: 0.99;
  }

  .topic-detail-hero__lede {
    margin-top: 18px;
    font-size: 17px;
  }

  .topic-detail-hero .button-row {
    display: grid;
    gap: 8px;
    margin-top: 24px;
  }

  .topic-detail-hero .button {
    width: 100%;
  }

  .topic-detail-hero__proof {
    gap: 6px 10px;
    font-size: 9px;
  }

  .topic-detail-hero__proof li:not(:first-child)::before {
    margin-right: 10px;
  }

  .topic-detail-hero__visual {
    padding: 7px;
    border-radius: 20px;
  }

  .topic-detail-hero__visual img {
    border-radius: 14px;
  }

  .topic-detail-hero__visual figcaption {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 13px 15px;
    font-size: 18px;
  }

  .topic-detail-page .topic-wrap {
    padding: 48px 18px 64px;
  }

  .topic-quick-choose {
    padding: 25px 18px;
    border-radius: 20px;
  }

  .topic-quick-choice {
    padding: 20px;
  }

  .topic-detail-page .topic-prose-card {
    padding: 28px 21px;
    border-radius: 20px;
  }

  .topic-detail-page .topic-prose-card h2 {
    font-size: clamp(31px, 9vw, 38px);
  }

  .topic-editorial {
    border-radius: 20px;
  }

  .topic-editorial figcaption {
    padding: 30px 22px 34px;
  }

  .topic-conversion__form {
    grid-template-columns: 1fr;
  }

  .topic-conversion__form button {
    width: 100%;
  }

  .topic-detail-page .topic-shelf-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 19px;
    background-position: right top, center, center;
    background-size: 104px 176px, auto, auto;
  }

  .topic-shelf-card__media {
    width: 100%;
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
  }

  .topic-shelf-card__media img {
    max-width: 250px;
    height: 190px;
  }

  .topic-shelf-card__copy h2 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1;
  }

  .topic-shelf-card__copy > p:not(.eyebrow):not(.topic-shelf-card__trust) {
    margin: 14px 0 18px;
    font-size: 15px;
    line-height: 1.58;
  }

  .topic-shelf-card__copy .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topics-path {
    transition: none;
  }
}

/* Approved Reset Rooms responsive layout.
   This file is the single page-specific authority for desktop and mobile. */

/* Individual Reset Room editorial sections must share one centered axis.
   The retired alternating translateX treatment made consecutive cards look
   accidentally staggered and must never return during a cleanup or audit. */
.topic-detail-page .topic-prose-card:not(.topic-prose-card--faq) {
  width: min(100%, 920px);
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  transform: none;
}

/* Reset Rooms directory: every card uses the same shell and internal rhythm. */
@media (min-width: 981px) {
  .topics-page .reset-room-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  .topics-page .reset-room-card-wrap,
  .topics-page .reset-room-card {
    height: 100%;
    min-height: 0;
  }

  .topics-page .reset-room-card {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .topics-page .reset-room-card__content {
    display: flex;
    min-height: 0;
    flex-direction: column;
    height: 100%;
  }

  .topics-page .reset-room-card__kicker {
    min-height: 2.8em;
  }

  .topics-page .reset-room-card__title {
    min-height: 2.12em;
  }

  .topics-page .reset-room-card__copy {
    min-height: 4.8em;
    margin-bottom: 0;
  }

  .topics-page .reset-room-card__button {
    margin-top: auto;
  }
}

/* Individual Reset Rooms: normalize every “Keep exploring” row. */
@media (min-width: 981px) {
  .topic-detail-page .topic-card-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  .topic-detail-page .topic-card-grid > .topic-card,
  .topic-detail-page .topic-card-grid > .small-topic-card {
    display: flex;
    height: 100%;
    min-height: 252px;
    flex-direction: column;
    padding: 24px;
  }

  .topic-detail-page .small-topic-card .mini-eyebrow {
    min-height: 1.35em;
    margin-bottom: 10px !important;
    flex: 0 0 auto;
  }

  .topic-detail-page .small-topic-card h3 {
    min-height: 2.12em;
    margin: 0 0 10px;
    flex: 0 0 auto;
  }

  .topic-detail-page .small-topic-card > p:not(.mini-eyebrow) {
    margin: 0 0 18px;
    flex: 1 1 auto;
  }

  .topic-detail-page .small-topic-card .text-link {
    display: flex;
    min-height: 48px;
    align-items: flex-start;
    margin-top: auto;
    flex: 0 0 auto;
  }
}

/* Tablet and phone: content height should be natural, never artificially stretched. */
@media (max-width: 980px) {
  .topics-page .reset-room-card__kicker,
  .topics-page .reset-room-card__title,
  .topics-page .reset-room-card__copy,
  .topic-detail-page .small-topic-card .mini-eyebrow,
  .topic-detail-page .small-topic-card h3,
  .topic-detail-page .small-topic-card .text-link {
    min-height: 0;
  }

  .topic-detail-page .topic-card-grid > .topic-card,
  .topic-detail-page .topic-card-grid > .small-topic-card {
    height: auto;
    min-height: 0;
  }
}

/* Individual Reset Rooms: the chooser question sits above a three-card row and
   must use that row's full desktop measure. The former 760px cap caused short
   questions to wrap while more than 300px of usable space remained. */
@media (min-width: 981px) {
  .topic-detail-page .topic-quick-choose__heading {
    width: 100%;
    max-width: none;
  }

  .topic-detail-page .topic-quick-choose__heading h2 {
    width: 100%;
    max-width: none;
    font-size: clamp(38px, 3.8vw, 52px);
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

@media (max-width: 980px) {
  .topic-detail-page .topic-quick-choose__heading {
    width: min(100%, 760px);
  }

  .topic-detail-page .topic-quick-choose__heading h2 {
    width: auto;
    white-space: normal;
    text-wrap: balance;
  }
}

/* Individual Reset Rooms: wide-screen lead questions must use the room they
   already have instead of wrapping inside the retired 24ch measure. Phones and
   tablets keep natural multi-line wrapping for readable type. */
@media (min-width: 981px) {
  .topic-detail-page .topic-prose-card--faq > h2:first-of-type {
    max-width: none;
    font-size: clamp(30px, 2.6vw, 40px);
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

@media (max-width: 980px) {
  .topic-detail-page .topic-prose-card--faq > h2:first-of-type {
    max-width: 24ch;
    white-space: normal;
    text-wrap: balance;
  }
}
