/*
 * Rescripted CSS
 * Supplements dominate/css/main.css (legacy) — loaded after it.
 * Will eventually replace main.css as pages are migrated.
 *
 * Conventions:
 *   Tokens use --rs-* prefix
 *   Sections use /* ── Name ── */ comment headers
 *   No build step — pure CSS with custom properties
 */


/* ── Tokens ── */

:root {
  /* Colors */
  --rs-purple:        #46417F;
  --rs-green:         #255E3D;
  --rs-light-purple:  #F0EFF8;
  --rs-light-green:   #F2F9F5;
  --rs-border:        #d3d2e6;
  --rs-border-light:  #AEAAE2;
  --rs-bg-muted:      #F8F8F8;
  --rs-pink-soft:     #FFE4E1;

  /* Fonts */
  --rs-font-display:  "Bogart", serif;
  --rs-font-body:     "Work Sans", sans-serif;
  --rs-font-sans:     "Libre Franklin", sans-serif;
}


/* ── Utilities ── */

.font-display { font-family: var(--rs-font-display); }
.font-body    { font-family: var(--rs-font-body); }
.font-sans    { font-family: var(--rs-font-sans); }

.text-green   { color: var(--rs-green); }
.text-purple  { color: var(--rs-purple); }

.outline-green {
  -webkit-text-stroke: 2px var(--rs-green);
  -webkit-text-fill-color: white;
}

.w-contained {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.rs-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.95rem;
  color: #333;
  background-color: #F2F9F5;
  border: 1px solid #46417F;
  border-radius: 2px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.rs-input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.rs-input::placeholder {
  color: #888;
  font-weight: 600;
  font-size: 0.8rem;
}

.rs-input:focus {
  border-color: #46417F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(70, 65, 127, 0.12);
}


/* ── Byline ── */

.byline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.byline .byline-author {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rs-purple);
  letter-spacing: 0.0375rem;
  font-size: 0.8rem;
}
.byline .byline-author-sm {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rs-purple);
  letter-spacing: 0.0375rem;
  font-size: 0.7rem;
}


/* ── CTA Fullbleed ── */

.cta-fullbleed {
  padding: 3rem 1rem;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.cta-fullbleed h3 {
  font-family: "Bogart", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
}


/* ── Info Table ── */

.info-table {
  background-color: var(--rs-bg-muted);
  font-size: 0.8em;
  padding: 2em;
}
.info-table th {
  font-family: var(--rs-font-display);
  color: var(--rs-green);
  font-weight: 700;
  font-size: 1.15rem;
  padding-bottom: 0.75rem;
}
.info-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: top;
}


/* ── Partner Feature (centered) ── */

.partner-feature-centered {
  text-align: center;
}
.partner-feature-centered img {
  display: block;
  margin: 0 auto 1rem;
  border-radius: 50%;
}
.partner-feature-centered h5 {
  font-family: var(--rs-font-display);
  color: var(--rs-green);
  font-size: 1.5rem;
  margin-top: 1rem;
}
.partner-feature-centered p {
  margin-top: 0.5rem;
}

/* ── Edit Post Link ── */

.edit-post-link {
  font-size: 0.5em;
  color: var(--rs-purple);
  opacity: 0.4;
  vertical-align: middle;
  margin-left: 0.25em;
  text-decoration: none;
}
.edit-post-link:hover { opacity: 1; }


/* ── Modal Scroll Lock ── */
body.modal-open {
  overflow: hidden;
}
.modal-window .modal-window-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* ── Flash Messages ── */
.flash {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--rs-font-body);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 2.5rem 1rem 0.5rem 1rem;
  margin: 0;
  animation: flash-dismiss 0.4s ease 6s forwards;
}
.flash.flash-notice {
  background-color: #255E3D;
  color: white;
}
.flash.flash-alert {
  background-color: #46417F;
  color: white;
}
.flash button {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.flash button:hover { opacity: 1; }
@keyframes flash-dismiss {
  to { opacity: 0; max-height: 0; padding: 0; overflow: hidden; }
}


/* ── Play Button on 16x9 Thumbnails ── */

.aspect-ratio-16x9 {
  position: relative;
}

.aspect-ratio-16x9 .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.aspect-ratio-16x9 .play-button.play-button-sm {
  font-size: 1.5rem;
}


/* ── Tidbit ── */

.tidbit {
  color: var(--rs-purple, #46417F);
  background-color: var(--rs-light-green, #F2F9F5);
  border: 2px solid var(--rs-light-purple, #F0EFF8);
  border-radius: 6px;
}

.tidbit .font-display {
  font-family: "Bogart", serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
}

.tidbit code {
  background-color: var(--rs-light-purple, #F0EFF8);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rs-purple, #46417F);
}


/* ── Feature Partner Card ── */

.feature .feature-card .feature-card-body p {
  font-size: 0.8rem;
  line-height: 1.6rem;
  margin: 0;
}

.feature .feature-card .feature-card-footer {
  position: relative;
}

/* ── Feature Page: Section Spacing ── */

.feature.page > * + * {
  margin-top: 4.5rem !important;
}


/* ── Banner Ad ── */

.banner-ad img {
  max-width: 100%;
  height: auto;
}

.banner-ad .banner-ad-desktop {
  display: none;
}

@media (min-width: 768px) {
  .banner-ad .banner-ad-mobile {
    display: none;
  }
  .banner-ad .banner-ad-desktop {
    display: inline;
  }
}


/* ── Feature Card: No-Image Fallback ── */

.card .card-image.no-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #46417F 0%, #5a5499 100%);
}

.card .card-image.no-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/https/rescripted.com/dominate/img/noise.png");
  opacity: 0.075;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.card .card-image.no-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/https/rescripted.com/dominate/img/R-lettermark.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
  opacity: 0.08;
  pointer-events: none;
}


/* ── Survey Story ──
   Editorial data noir — dark theme, luminous data, magazine feel.
   Hardcoded values (no --rs-* tokens) because app.css loads async. */

.survey-story {
  background: #141420;
  color: #e0ddef;
  overflow-x: hidden;
}

/* ── Hero ── */
.survey-story__hero {
  position: relative;
  background: #141420;
  color: #e0ddef;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.survey-story__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(70, 65, 127, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(37, 94, 61, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.survey-story__hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("/https/rescripted.com/dominate/img/noise.png");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.survey-story__hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.survey-story__kicker {
  font-family: "Libre Franklin", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.65rem;
  color: #8B85B8;
  margin-bottom: 2rem;
}

.survey-story__headline {
  font-family: "Bogart", serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  font-weight: 600;
  color: #fff;
}

.survey-story__subheadline {
  font-family: "Work Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #a9a5c8;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.survey-story__question-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: "Bogart", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
  color: #c4bfe0;
  background: rgba(139, 133, 184, 0.08);
  border: 1px solid rgba(139, 133, 184, 0.12);
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  margin: 0 auto 2rem;
  max-width: 520px;
}

.survey-story__question-mark {
  font-size: 1.4em;
  line-height: 1;
  color: #8B85B8;
  font-style: normal;
}

.survey-story__meta {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6b6790;
}

.survey-story__respondent-count {
  font-weight: 700;
  font-size: 1.1rem;
  color: #8B85B8;
}

.survey-story__footnote {
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.6;
  color: #6b6790;
  max-width: 480px;
  margin: 1.5rem auto 0;
}

/* ── Sections ── */
.survey-story__section {
  padding: 5rem 1.5rem;
  border-top: 1px solid rgba(139, 133, 184, 0.1);
  overflow: hidden;
}

.survey-story__section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.survey-story__section--compact {
  padding: 2.5rem 1.5rem;
  border-top: none;
}

.survey-story__content-narrow {
  max-width: 640px;
  margin: 0 auto;
}

.survey-story__content-wide {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.survey-story__section-label {
  font-family: "Bogart", serif;
  font-size: 1.5rem;
  color: #B8B4D8;
  margin: 0 0 2.5rem;
  text-align: center;
}

/* ── Narrative Text ── */
.survey-story__insight {
  font-family: "Work Sans", sans-serif;
  font-size: 1.15rem;
  line-height: 1.85;
  color: #c8c4e0;
  margin: 0 0 2rem;
}

/* ── Pull Quote ── */
.survey-story__pull-quote {
  background: linear-gradient(180deg, rgba(37, 94, 61, 0.12) 0%, rgba(37, 94, 61, 0.04) 100%);
  border-top: 1px solid rgba(74, 157, 110, 0.2);
  border-bottom: 1px solid rgba(74, 157, 110, 0.2);
  padding: 6rem 1.5rem;
  text-align: center;
}

.survey-story__pull-quote-inner {
  max-width: 640px;
  margin: 0 auto;
}

.survey-story__big-stat {
  display: block;
  font-family: "Bogart", serif;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  color: #4A9D6E;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 60px rgba(74, 157, 110, 0.3);
}

.survey-story__pull-label {
  font-family: "Libre Franklin", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: #7DC49E;
  margin-bottom: 1.25rem;
}

.survey-story__pull-text {
  font-family: "Work Sans", sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #a9a5c8;
  margin: 0;
}

/* ── Transition ── */
.survey-story__transition {
  font-family: "Bogart", serif;
  font-size: 1.35rem;
  color: #7DC49E;
  text-align: center;
  line-height: 1.5;
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Callout ── */
.survey-story__callout {
  background: rgba(70, 65, 127, 0.12);
  border-left: 3px solid #8B85B8;
  padding: 2.5rem;
  border-radius: 0 8px 8px 0;
}

.survey-story__callout-title {
  font-family: "Bogart", serif;
  font-size: 1.25rem;
  color: #B8B4D8;
  margin: 0 0 0.75rem;
}

.survey-story__callout-text {
  font-family: "Work Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #a9a5c8;
  margin: 0;
}

/* ── CTA ── */
.survey-story__cta {
  background: linear-gradient(180deg, #141420 0%, #1a2a1f 50%, #1a2a1f 100%);
  border-top: 1px solid rgba(74, 157, 110, 0.15);
  color: #e0ddef;
  padding: 5rem 1.5rem;
  text-align: center;
}

.survey-story__cta-inner {
  max-width: 480px;
  margin: 0 auto;
}

.survey-story__cta-heading {
  font-family: "Bogart", serif;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.survey-story__cta-text {
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  color: #a9a5c8;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.survey-story__cta-button {
  display: inline-block;
  background: #4A9D6E;
  color: #fff;
  font-family: "Libre Franklin", sans-serif;
  padding: 0.85rem 2.5rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.survey-story__cta-button:hover {
  transform: translateY(-2px);
  background: #5ab87e;
  box-shadow: 0 4px 20px rgba(74, 157, 110, 0.35);
  color: #fff;
}

/* ── Generate Button ── */
.survey-story__generate-btn {
  display: inline-block;
  background: #46417F;
  color: #e0ddef;
  font-family: "Libre Franklin", sans-serif;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.survey-story__generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(70, 65, 127, 0.4);
}

.survey-story__generate-btn--subtle {
  background: transparent;
  color: #6b6790;
  border: 1px solid #3a3660;
  font-size: 0.8rem;
  padding: 0.5rem 1.5rem;
}

.survey-story__generate-btn--subtle:hover {
  color: #B8B4D8;
  border-color: #8B85B8;
  box-shadow: none;
}

/* ── Scroll Reveal ── */
[data-survey-reveal].survey-reveal--ready {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-survey-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Chart Containers ── */
.survey-story [data-survey-chart] {
  min-height: 120px;
  margin: 2rem 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.survey-story [data-survey-chart] svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.survey-story [data-survey-chart="waffle"] {
  text-align: center;
}

.survey-story [data-survey-chart="waffle"] svg {
  margin: 0 auto;
  display: block;
}

.survey-story [data-survey-chart="doughnut"] {
  text-align: center;
}

.survey-story [data-survey-chart="doughnut"] svg {
  margin: 0 auto;
  display: block;
}

/* ── Legend ── */
.survey-story__legend {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.survey-story__legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 6px;
}

.survey-story__legend-item:hover {
  background: rgba(139, 133, 184, 0.08);
}

.survey-story__legend-item.hidden {
  opacity: 0.25;
}

.survey-story__legend-item.hidden .survey-story__legend-label {
  text-decoration: line-through;
}

.survey-story__legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.survey-story__legend-label {
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  color: #c8c4e0;
  flex: 1;
  line-height: 1.3;
}

.survey-story__legend-value {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a9a5c8;
  white-space: nowrap;
}

.survey-story__legend--inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.3rem 1rem;
  margin-top: 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(139, 133, 184, 0.1);
}

.survey-story__legend--inline.survey-story__legend--center {
  justify-content: center;
}

.survey-story__legend--stacked {
  flex-direction: column;
  gap: 0.2rem;
}

.survey-story__legend-item--inline {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: default;
  font-family: "Work Sans", sans-serif;
  font-size: 0.75rem;
  color: #a9a5c8;
}

.survey-story__legend-item--inline .survey-story__legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-top: 3px;
  flex-shrink: 0;
}

.survey-story__legend-item--inline .survey-story__legend-label {
  font-size: 0.75rem;
  color: #a9a5c8;
  line-height: 1.3;
}

.survey-story__legend-item--inline .survey-story__legend-value {
  font-size: 0.7rem;
  white-space: nowrap;
}

.survey-story__legend-avg {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  color: #6b6790;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

/* ── Tooltip ── */
.survey-story__tooltip {
  position: fixed;
  background: #2a2845;
  color: #e0ddef;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(139, 133, 184, 0.2);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .survey-story__hero {
    padding: 5rem 1rem 3.5rem;
  }

  .survey-story__section {
    padding: 3rem 1rem;
  }

  .survey-story__pull-quote {
    padding: 4rem 1rem;
  }

  .survey-story__big-stat {
    font-size: 4rem;
  }

  .survey-story__content-wide {
    padding: 0 0.5rem;
  }

  .survey-story__cta {
    padding: 3.5rem 1rem;
  }

  .survey-story [data-survey-chart] {
    min-height: 80px;
  }

  .survey-story__legend--inline {
    justify-content: flex-start;
  }
}


/* ── Search Toggle ── */

.search-title-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.search-title-toggle__check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.search-title-toggle__track {
  position: relative;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
  background: #d1cde0;
  border-radius: 9px;
  transition: background 0.2s ease;
}

.search-title-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.search-title-toggle__check:checked + .search-title-toggle__track {
  background: #46417F;
}

.search-title-toggle__check:checked + .search-title-toggle__track .search-title-toggle__thumb {
  transform: translateX(16px);
}

.search-title-toggle__label {
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 0.01em;
}

.search-title-toggle__check:checked ~ .search-title-toggle__label {
  color: #46417F;
}

/* ── Profile Edit ── */

.profile-edit__title {
  font-family: "Bogart", serif;
  color: #46417F;
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
}

.profile-edit__errors {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-edit__errors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-edit__errors li {
  color: #991b1b;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

.profile-edit__form {
  background: white;
  border: 2px solid #46417F;
  border-radius: 12px;
  padding: 2.5rem 2rem;
}

.profile-edit__photo-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.profile-edit__photo-label {
  cursor: pointer;
  display: block;
}

.profile-edit__photo-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid #46417F;
  box-shadow: 0 4px 0 #46417F;
  background: white;
}

.profile-edit__photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0EFF8;
}

.profile-edit__photo-placeholder i {
  font-size: 3rem;
  color: #46417F;
  opacity: 0.5;
}

.profile-edit__photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(70, 65, 127, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: white;
  gap: 0.25rem;
}

.profile-edit__photo-overlay i {
  font-size: 1.5rem;
}

.profile-edit__photo-overlay span {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-edit__photo-label:hover .profile-edit__photo-overlay,
.profile-edit__photo-label:focus-within .profile-edit__photo-overlay {
  opacity: 1;
}

.profile-edit__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.profile-edit__field {
  margin-bottom: 1.25rem;
}

.profile-edit__field label {
  display: block;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #46417F;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.profile-edit__username-wrap {
  position: relative;
}

.profile-edit__username-at {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #46417F;
  opacity: 0.5;
  pointer-events: none;
}

.profile-edit__username-wrap .rs-input {
  padding-left: 2.25rem;
}

.profile-edit__hint {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.375rem;
}

.profile-edit__submit {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .profile-edit__row {
    grid-template-columns: 1fr;
  }

  .profile-edit__form {
    padding: 1.5rem 1.25rem;
  }

  .profile-edit__title {
    font-size: 2rem;
  }
}


/* ==========================================================================
   Oura Health Story
   Personal health data story — warm palette, intimate editorial tone.
   ========================================================================== */

.oura-story {
  --oura-bg: #181418;
  --oura-bg-alt: rgba(237, 230, 223, 0.025);
  --oura-text: #ede6df;
  --oura-muted: #8a7e75;
  --oura-accent-sleep: #6B8AE5;
  --oura-accent-activity: #E8A84C;
  --oura-accent-readiness: #5CC9A7;
  --oura-accent-hr: #E06B7A;
  --oura-accent-stress: #C49AE0;
  --oura-accent-warm: #D4956A;
  --oura-grid: rgba(138, 126, 117, 0.08);
  --oura-border: rgba(138, 126, 117, 0.12);

  background: var(--oura-bg);
  color: var(--oura-text);
  font-family: var(--rs-font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Hero ── */

.oura-story__hero {
  position: relative;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(107, 138, 229, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(232, 168, 76, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(92, 201, 167, 0.06) 0%, transparent 50%),
    var(--oura-bg);
}

.oura-story__hero-grain {
  position: absolute;
  inset: 0;
  background: url(/https/rescripted.com/dominate/images/noise.png);
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.oura-story__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.oura-story__kicker {
  font-family: var(--rs-font-sans);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--oura-accent-readiness);
  margin-bottom: 1.5rem;
}

.oura-story__headline {
  font-family: var(--rs-font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 1rem;
  font-weight: 600;
}

.oura-story__subheadline {
  font-family: var(--rs-font-body);
  font-size: 1.1rem;
  color: #bdb5aa;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.oura-story__period {
  font-family: var(--rs-font-sans);
  font-size: 0.75rem;
  color: var(--oura-muted);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
}

/* Score rings row */

.oura-story__score-rings {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.oura-story__ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.oura-story__ring svg {
  width: 110px;
  height: 110px;
}

.oura-story__ring-label {
  font-family: var(--rs-font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--oura-muted);
}

/* Hero stat pills */

.oura-story__hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.oura-story__hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.oura-story__hero-stat-value {
  font-family: var(--rs-font-display);
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}

.oura-story__hero-stat-unit {
  font-family: var(--rs-font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--oura-accent-warm);
}

.oura-story__hero-stat-label {
  font-family: var(--rs-font-sans);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--oura-muted);
}

/* ── Sections ── */

.oura-story__section {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--oura-border);
}

.oura-story__section:nth-child(even) {
  background: var(--oura-bg-alt);
}

.oura-story__section--compact {
  padding: 3rem 1.5rem;
}

.oura-story__section--content {
  background: linear-gradient(180deg, var(--oura-bg) 0%, rgba(92, 201, 167, 0.04) 100%);
}

.oura-story__section--browser {
  background: rgba(237, 230, 223, 0.03);
}

.oura-story__content-wide {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}

.oura-story__content-narrow {
  max-width: 640px;
  margin: 0 auto;
}

.oura-story__section-label {
  font-family: var(--rs-font-display);
  font-size: 1.5rem;
  text-align: center;
  color: var(--oura-text);
  margin: 0 0 0.4rem;
}

.oura-story__section-sub {
  font-family: var(--rs-font-sans);
  font-size: 0.75rem;
  text-align: center;
  color: var(--oura-muted);
  letter-spacing: 0.05em;
  margin: 0 0 2.5rem;
}

/* ── Chart containers ── */

.oura-story__chart {
  min-height: 200px;
  position: relative;
}

.oura-story__chart--centered {
  display: flex;
  justify-content: center;
}

.oura-story__chart svg {
  width: 100%;
  overflow: visible;
}

/* ── Narrative: insight ── */

.oura-story__insight {
  font-family: var(--rs-font-body);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--oura-text);
  text-align: center;
  margin: 0 0 2rem;
}

/* ── Narrative: pull-quote ── */

.oura-story__pull-quote {
  padding: 5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(212, 149, 106, 0.10) 0%, rgba(212, 149, 106, 0.03) 100%);
  border-top: 1px solid rgba(212, 149, 106, 0.15);
  border-bottom: 1px solid rgba(212, 149, 106, 0.15);
}

.oura-story__pull-quote-inner {
  max-width: 640px;
  margin: 0 auto;
}

.oura-story__big-stat {
  font-family: var(--rs-font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--oura-accent-warm);
  line-height: 1;
  text-shadow: 0 0 60px rgba(212, 149, 106, 0.3);
}

.oura-story__big-stat-suffix {
  font-family: var(--rs-font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--oura-accent-warm);
  opacity: 0.7;
}

.oura-story__pull-label {
  font-family: var(--rs-font-sans);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--oura-accent-warm);
  margin: 0.75rem 0 1rem;
}

.oura-story__pull-text {
  font-family: var(--rs-font-body);
  font-size: 1.15rem;
  color: #bdb5aa;
  line-height: 1.7;
}

/* ── Narrative: transition ── */

.oura-story__transition {
  font-family: var(--rs-font-display);
  font-size: 1.35rem;
  color: var(--oura-accent-readiness);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* ── Narrative: callout ── */

.oura-story__callout {
  background: rgba(212, 149, 106, 0.08);
  border-left: 3px solid var(--oura-accent-warm);
  border-radius: 0 8px 8px 0;
  padding: 2.5rem;
}

.oura-story__callout-title {
  font-family: var(--rs-font-display);
  font-size: 1.1rem;
  color: var(--oura-accent-warm);
  margin: 0 0 0.75rem;
}

.oura-story__callout-text {
  font-family: var(--rs-font-body);
  font-size: 1rem;
  color: var(--oura-text);
  line-height: 1.7;
  margin: 0;
}

/* ── Narrative: content-cue ── */

.oura-story__content-cue {
  background: rgba(92, 201, 167, 0.06);
  border: 1px solid rgba(92, 201, 167, 0.15);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  text-align: center;
}

.oura-story__content-cue-text {
  font-family: var(--rs-font-body);
  font-size: 1rem;
  color: var(--oura-accent-readiness);
  line-height: 1.7;
  margin: 0;
}

/* ── Stress tags ── */

.oura-story__stress-tag {
  display: inline-block;
  font-family: var(--rs-font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin: 0 0.25rem;
}

.oura-story__stress-tag--restored {
  background: rgba(92, 201, 167, 0.12);
  color: var(--oura-accent-readiness);
}

.oura-story__stress-tag--normal {
  background: rgba(232, 168, 76, 0.12);
  color: var(--oura-accent-activity);
}

.oura-story__stress-tag--stressful {
  background: rgba(224, 107, 122, 0.12);
  color: var(--oura-accent-hr);
}

/* ── Clara questions ── */

.oura-story__clara-questions {
  margin-bottom: 2.5rem;
}

.oura-story__clara-heading {
  font-family: var(--rs-font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--oura-muted);
  margin: 0 0 0.75rem;
}

.oura-story__clara-link {
  display: block;
  font-family: var(--rs-font-body);
  font-size: 1rem;
  color: var(--oura-accent-sleep);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--oura-border);
  transition: color 0.15s;
}

.oura-story__clara-link:hover {
  color: #8eadf0;
}

/* ── Content cards ── */

.oura-story__content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.oura-story__content-card {
  display: block;
  background: rgba(237, 230, 223, 0.04);
  border: 1px solid var(--oura-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.oura-story__content-card:hover {
  background: rgba(237, 230, 223, 0.07);
  transform: translateY(-2px);
}

.oura-story__content-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(138, 126, 117, 0.08);
}

.oura-story__content-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.oura-story__content-card:hover .oura-story__content-card-img img {
  transform: scale(1.04);
}

.oura-story__content-card-body {
  padding: 1.25rem;
}

.oura-story__content-card-title {
  font-family: var(--rs-font-display);
  font-size: 0.95rem;
  color: var(--oura-text);
  margin: 0;
  line-height: 1.35;
}

.oura-story__content-card--video .oura-story__content-card-title::before {
  content: "\25B6\00a0";
  color: var(--oura-accent-hr);
  font-size: 0.75rem;
}

/* ── Generate button ── */

.oura-story__generate-btn {
  font-family: var(--rs-font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 2.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  background: var(--oura-accent-warm);
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

.oura-story__generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 149, 106, 0.35);
}

.oura-story__generate-btn--subtle {
  background: transparent;
  color: var(--oura-muted);
  border: 1px solid var(--oura-border);
}

.oura-story__generate-btn--subtle:hover {
  color: var(--oura-text);
  border-color: var(--oura-muted);
  box-shadow: none;
}

/* ── CTA ── */

.oura-story__cta {
  padding: 5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--oura-bg) 0%, rgba(212, 149, 106, 0.08) 100%);
}

.oura-story__cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.oura-story__cta-heading {
  font-family: var(--rs-font-display);
  font-size: 1.75rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.oura-story__cta-text {
  font-family: var(--rs-font-body);
  font-size: 1rem;
  color: var(--oura-muted);
  line-height: 1.7;
}

/* ── Data Browser ── */

.oura-browser__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--oura-border);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.oura-browser__tab {
  font-family: var(--rs-font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--oura-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.oura-browser__tab:hover {
  color: var(--oura-text);
}

.oura-browser__tab--active {
  color: var(--oura-accent-warm);
  border-bottom-color: var(--oura-accent-warm);
}

.oura-browser__panel {
  display: none;
}

.oura-browser__panel--active {
  display: block;
}

.oura-browser__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--rs-font-sans);
  font-size: 0.8rem;
}

.oura-browser__table thead th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: var(--oura-muted);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--oura-border);
}

.oura-browser__table tbody td {
  padding: 0.5rem 0.75rem;
  color: var(--oura-text);
  border-bottom: 1px solid var(--oura-grid);
}

.oura-browser__table tbody tr:hover td {
  background: rgba(237, 230, 223, 0.03);
}

.oura-browser__score {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  color: hsl(var(--score-hue, 60), 65%, 55%);
}

.oura-browser__activity {
  text-transform: capitalize;
}

/* ── Scroll Reveal ── */

.oura-reveal--ready {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}

.oura-reveal--ready.revealed {
  opacity: 1;
}

/* ── Tooltip ── */

.oura-story__tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  background: #2a2520;
  color: #ede6df;
  font-family: var(--rs-font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(138, 126, 117, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s;
}

.oura-story__tooltip--visible {
  opacity: 1;
}

/* ── Legend ── */

.oura-story__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.oura-story__legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.oura-story__legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.oura-story__legend-label {
  font-family: var(--rs-font-sans);
  font-size: 0.7rem;
  color: var(--oura-muted);
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .oura-story__hero {
    padding: 5rem 1rem 3.5rem;
  }

  .oura-story__score-rings {
    gap: 1.5rem;
  }

  .oura-story__ring svg {
    width: 80px;
    height: 80px;
  }

  .oura-story__hero-stats {
    gap: 1.25rem;
  }

  .oura-story__hero-stat-value {
    font-size: 1.5rem;
  }

  .oura-story__section {
    padding: 3rem 1rem;
  }

  .oura-story__content-wide {
    padding: 0 0.5rem;
  }

  .oura-story__chart {
    min-height: 150px;
  }

  .oura-story__big-stat {
    font-size: 4rem;
  }

  .oura-story__content-grid {
    grid-template-columns: 1fr;
  }

  .oura-story__pull-quote {
    padding: 3.5rem 1rem;
  }

  .oura-story__callout {
    padding: 1.5rem;
  }

  .oura-browser__table {
    font-size: 0.7rem;
  }

  .oura-browser__table thead th,
  .oura-browser__table tbody td {
    padding: 0.4rem 0.5rem;
  }
}

/* ── Cycle Awareness ── */

.oura-story__section--cycle {
  border-top: 1px solid rgba(232, 168, 76, 0.15);
  border-bottom: 1px solid rgba(232, 168, 76, 0.15);
  padding-top: 4rem;
  padding-bottom: 4rem;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(107, 138, 229, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(224, 107, 122, 0.04) 0%, transparent 50%);
}

.oura-story__cycle-header {
  text-align: center;
  margin-bottom: 2rem;
}

.oura-story__cycle-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  border-radius: 100px;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(138, 126, 117, 0.2);
}

.oura-story__cycle-phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: oura-cycle-pulse 2s ease-in-out infinite;
}

@keyframes oura-cycle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.oura-story__cycle-phase-badge--follicular { border-color: rgba(107, 138, 229, 0.4); color: #6B8AE5; }
.oura-story__cycle-phase-badge--follicular .oura-story__cycle-phase-dot { background: #6B8AE5; }

.oura-story__cycle-phase-badge--ovulatory { border-color: rgba(232, 168, 76, 0.4); color: #E8A84C; }
.oura-story__cycle-phase-badge--ovulatory .oura-story__cycle-phase-dot { background: #E8A84C; }

.oura-story__cycle-phase-badge--luteal { border-color: rgba(224, 107, 122, 0.4); color: #E06B7A; }
.oura-story__cycle-phase-badge--luteal .oura-story__cycle-phase-dot { background: #E06B7A; }

.oura-story__cycle-phase-badge--unknown { border-color: rgba(138, 126, 117, 0.3); color: #8a7e75; }
.oura-story__cycle-phase-badge--unknown .oura-story__cycle-phase-dot { background: #8a7e75; }

.oura-story__chart--cycle {
  min-height: 280px;
  margin: 1rem 0 2rem;
}

.oura-story__cycle-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.oura-story__cycle-stat {
  text-align: center;
}

.oura-story__cycle-stat-value {
  display: block;
  font-family: "Bogart", serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #ede6df;
  line-height: 1;
}

.oura-story__cycle-stat-label {
  display: block;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.7rem;
  color: #8a7e75;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.oura-story__cycle-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.oura-story__cycle-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.7rem;
  color: #8a7e75;
  letter-spacing: 0.03em;
}

.oura-story__cycle-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.oura-story__cycle-disclaimer {
  text-align: center;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  color: rgba(138, 126, 117, 0.6);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 600px) {
  .oura-story__cycle-meta {
    gap: 1.5rem;
  }

  .oura-story__cycle-stat-value {
    font-size: 1.8rem;
  }

  .oura-story__cycle-legend {
    gap: 1rem;
  }
}

/* ── Oura Navigation ── */

.oura-nav {
  background: #181418;
  border-bottom: 1px solid rgba(138, 126, 117, 0.12);
  padding-top: 2.5rem;
}

.oura-nav__inner {
  display: flex;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.oura-nav__inner::-webkit-scrollbar {
  display: none;
}

.oura-nav__item {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a7e75;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.oura-nav__item:hover {
  color: #ede6df;
}

.oura-nav__item--active {
  color: #D4956A;
  border-bottom-color: #D4956A;
}

/* ── Oura Dashboard ── */

.oura-dashboard__hero {
  position: relative;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(107, 138, 229, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(232, 168, 76, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(92, 201, 167, 0.06) 0%, transparent 50%),
    #181418;
}

.oura-dashboard__hero-grain {
  position: absolute;
  inset: 0;
  background: url(/https/rescripted.com/dominate/images/noise.png);
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.oura-dashboard__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.oura-dashboard__scores {
  padding: 2rem 1.5rem;
  text-align: center;
}

.oura-dashboard__scores-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.oura-dashboard__score-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.oura-dashboard__score-link:hover {
  transform: translateY(-2px);
}

.oura-dashboard__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.oura-dashboard__card {
  display: block;
  text-decoration: none;
  color: #ede6df;
  border: 1px solid rgba(138, 126, 117, 0.12);
  border-radius: 8px;
  padding: 1.25rem;
  background: rgba(237, 230, 223, 0.015);
  transition: border-color 0.2s, transform 0.2s;
}

.oura-dashboard__card:hover {
  border-color: rgba(138, 126, 117, 0.25);
  transform: translateY(-1px);
}

.oura-dashboard__card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.oura-dashboard__card-label {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7e75;
}

.oura-dashboard__card-value {
  font-family: "Bogart", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.oura-dashboard__card-unit {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #8a7e75;
  margin-left: 0.15rem;
}

.oura-dashboard__sparkline {
  height: 44px;
  width: 100%;
}

.oura-dashboard__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 0 1.5rem 2rem;
  text-align: center;
}

.oura-dashboard__stat {
  text-align: center;
}

.oura-dashboard__stat-value {
  display: block;
  font-family: "Bogart", serif;
  font-size: 2rem;
  font-weight: 600;
  color: #ede6df;
  line-height: 1;
}

.oura-dashboard__stat-unit {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  color: #8a7e75;
  margin-left: 0.1rem;
}

.oura-dashboard__stat-label {
  display: block;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  color: #8a7e75;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.oura-dashboard__status-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.oura-dashboard__status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
  text-decoration: none;
  color: #ede6df;
  border: 1px solid rgba(138, 126, 117, 0.12);
  border-radius: 8px;
  padding: 1.25rem;
  background: rgba(237, 230, 223, 0.015);
  transition: border-color 0.2s;
}

.oura-dashboard__status-card:hover {
  border-color: rgba(138, 126, 117, 0.25);
}

.oura-dashboard__status-heading {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7e75;
}

.oura-dashboard__status-meta {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  color: #8a7e75;
}

.oura-dashboard__stress-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.oura-dashboard__recs {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.oura-dashboard__rec-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.oura-dashboard__rec-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ede6df;
  border: 1px solid rgba(138, 126, 117, 0.12);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(237, 230, 223, 0.015);
  transition: border-color 0.2s;
}

.oura-dashboard__rec-card:hover {
  border-color: rgba(138, 126, 117, 0.25);
}

.oura-dashboard__rec-img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.oura-dashboard__rec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oura-dashboard__rec-title {
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oura-dashboard__actions {
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}

/* ── Oura Detail Views ── */

.oura-detail__header {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.oura-detail__header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.oura-detail__header-inner--cycle {
  flex-direction: column;
  gap: 1.5rem;
}

.oura-detail__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.oura-detail__stats--wide {
  justify-content: center;
}

.oura-detail__stat {
  text-align: center;
}

.oura-detail__stat-value {
  display: block;
  font-family: "Bogart", serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #ede6df;
  line-height: 1;
}

.oura-detail__stat-unit {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.7rem;
  color: #8a7e75;
  margin-left: 0.1rem;
}

.oura-detail__stat-label {
  display: block;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  color: #8a7e75;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.oura-detail__breakdown {
  padding: 3rem 1.5rem;
}

.oura-detail__stage-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.oura-detail__stage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.oura-detail__stage-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.oura-detail__stage-name {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.75rem;
  color: #8a7e75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oura-detail__stage-value {
  font-family: "Bogart", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ede6df;
}

.oura-detail__stage-unit {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  color: #8a7e75;
}

.oura-detail__workout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.oura-detail__workout {
  border: 1px solid rgba(138, 126, 117, 0.12);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(237, 230, 223, 0.015);
}

.oura-detail__workout-type {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  color: #ede6df;
  text-transform: capitalize;
  margin-bottom: 0.25rem;
}

.oura-detail__workout-count {
  font-family: "Bogart", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #E8A84C;
}

.oura-detail__workout-meta {
  display: block;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.7rem;
  color: #8a7e75;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .oura-dashboard__cards {
    grid-template-columns: 1fr;
  }

  .oura-dashboard__rec-cards {
    grid-template-columns: 1fr;
  }

  .oura-dashboard__scores-row {
    gap: 1.5rem;
  }

  .oura-dashboard__stats {
    gap: 1.5rem;
  }

  .oura-dashboard__stat-value {
    font-size: 1.6rem;
  }

  .oura-detail__header-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .oura-detail__stats {
    gap: 1.5rem;
  }

  .oura-detail__stat-value {
    font-size: 1.8rem;
  }

  .oura-detail__stage-grid {
    gap: 1.5rem;
  }

  .oura-nav__item {
    padding: 0.85rem 1rem;
  }
}


/* ── Source Survey Callout ── */

.source-survey-callout {
  margin: 2.5rem 0;
}

.source-survey-callout__link {
  display: block;
  background: #141420;
  border: 1px solid rgba(139, 133, 184, 0.2);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.source-survey-callout__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20, 20, 32, 0.5);
  border-color: rgba(139, 133, 184, 0.4);
}

.source-survey-callout__kicker {
  display: block;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #8B85B8;
  margin-bottom: 0.6rem;
}

.source-survey-callout__question {
  display: block;
  font-family: "Bogart", serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #e0ddef;
  margin-bottom: 0.75rem;
}

.source-survey-callout__action {
  display: inline-block;
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4A9D6E;
  transition: color 0.15s ease;
}

.source-survey-callout__link:hover .source-survey-callout__action {
  color: #5cc9a7;
}


/* ── Instagram Carousel Section ── */

.ig-carousel-band {
  background: #141420;
  padding: 3.5rem 0;
  margin-top: 2.5rem;
}

.feature-header-filter .feature-header-filter-logo {
  max-height: none;
  object-fit: contain;
}

.feature-header-filter .taped.pharmacosmos-taped {
  font-size: 1.1rem !important;
  line-height: 1.2rem !important;
  -webkit-text-stroke: 0 !important;
  font-weight: 400 !important;
  color: #fff;
}

.feature p a {
  text-decoration: underline;
}

.feature .ig-carousel-band__title {
  font-family: "Bogart", serif;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.ig-carousel-band__grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.ig-carousel-phone {
  width: 340px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ig-carousel-phone__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #efefef;
}

.ig-carousel-phone__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}

.ig-carousel-phone__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-carousel-phone__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ig-carousel-phone__handle {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #262626;
  line-height: 1.2;
}

.ig-carousel-phone__label {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  color: #8e8e8e;
  line-height: 1.3;
}

.ig-carousel-phone__body {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #fafafa;
}

.ig-carousel-swiper {
  width: 100%;
  height: 100%;
}

.ig-carousel-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.ig-carousel-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-carousel-swiper__pagination {
  bottom: 10px !important;
}

.ig-carousel-swiper__pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: #fff;
  opacity: 0.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ig-carousel-swiper__pagination .swiper-pagination-bullet-active {
  background: #0095f6;
  opacity: 1;
}

.ig-carousel-swiper__prev,
.ig-carousel-swiper__next {
  color: #fff !important;
  width: 28px !important;
  height: 28px !important;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: opacity 0.2s;
}

.ig-carousel-swiper__prev::after,
.ig-carousel-swiper__next::after {
  font-size: 12px !important;
  font-weight: 700;
}

.ig-carousel-swiper__prev { left: 8px !important; }
.ig-carousel-swiper__next { right: 8px !important; }

.ig-carousel-phone__footer {
  padding: 0.6rem 0.85rem 0.85rem;
}

.feature .ig-carousel-phone__caption {
  font-size: 0.85rem;
  line-height: 1.5rem;
  letter-spacing: 0.015rem;
  color: #262626;
  margin: 0;
  padding-top: 0.2rem;
}

@media (max-width: 767px) {
  .ig-carousel-band {
    padding: 2.5rem 0;
  }

  .ig-carousel-band__grid {
    gap: 2rem;
  }

  .ig-carousel-phone {
    width: 300px;
  }
}


/* ── Video Pair Section ── */

.video-pair-card {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-pair-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
}

.video-pair-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a2e;
}

.video-pair-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-pair-card:hover .video-pair-card__thumb img {
  transform: scale(1.04);
}

.video-pair-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.video-pair-card:hover .video-pair-card__play {
  opacity: 1;
}

.video-pair-card__caption {
  font-size: 1rem;
  line-height: 1.8rem;
  letter-spacing: 0.015rem;
  padding: 0.85rem 1rem;
  margin: 0;
}


/* ── ISI (Important Safety Information) ── */

.isi {
  background: #f6f5f3;
  border-top: 1px solid #d8d5cf;
  padding: 3rem 0 3.5rem;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #4a4a4a;
  letter-spacing: 0.01em;
}

.isi a {
  color: #46417F;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.isi-heading {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #333;
  margin: 0 0 0.75rem;
}

.isi-heading--safety {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid #ccc9c1;
}

.isi-subheading {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin: 1.25rem 0 0.4rem;
}

.isi-block + .isi-block {
  margin-top: 1rem;
}

.isi p {
  margin: 0 0 0.5rem;
}

.isi ul {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.25rem;
}

.isi li {
  margin-bottom: 0.4rem;
}

.isi li strong {
  color: #333;
}

.isi-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ccc9c1;
}

.isi-footer p {
  margin: 0 0 0.4rem;
}

.isi-what p,
.isi-what ul {
  margin-bottom: 0.5rem;
}

/* Feature lead-capture form (e.g. State of Sex Ed report signup) */
.cta.lead-form {
  padding-bottom: 1.5rem;
}

.lead-form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  max-width: 480px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

.lead-form-fields .rs-input {
  flex: 1 1 220px;
  background-color: white;
}

.lead-form-fields button {
  flex: 0 0 auto;
  margin: 0;
}

/* Side-by-side: vertically center the image against its stat text */
.side-by-side .side-by-side-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Post "Sponsored by" logo: fixed height, natural aspect ratio */
.post-sponsor-logo {
  height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}
