/* ==========================================================================
   Member status bar (index page)
   ========================================================================== */

.ida-member-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  margin: 0 0 28px;
  border-radius: 8px;
  font-family: 'Lora', 'Georgia', serif;
  font-size: 15px;
  line-height: 1.35;
}

.ida-member-status--core {
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.40);
}

.ida-member-status--upgrade {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.42);
}

.ida-member-status--guest {
  background: rgba(107, 114, 128, 0.10);
  border: 1px solid rgba(107, 114, 128, 0.38);
}

.ida-member-status .ida-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ida-status-dot--green { background: #22c55e; }
.ida-status-dot--amber { background: #f59e0b; }
.ida-status-dot--grey  { background: #6b7280; }

.ida-member-status .ida-status-text {
  flex: 1;
  min-width: 0;
  color: #1a1714;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

/* Slim pill button — defeats theme button defaults via higher specificity */
.ida-member-status a.ida-status-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 14px;
  background: #534AB7;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: 'Lora', 'Georgia', serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
  line-height: 1.4;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  min-height: 0;
  height: auto;
}

.ida-member-status a.ida-status-btn:hover,
.ida-member-status a.ida-status-btn:focus-visible {
  background: #4339a0;
  color: #ffffff;
  outline: none;
  box-shadow: none;
}

.ida-member-status .ida-status-login {
  flex-shrink: 0;
  font-size: 13px;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.ida-member-status .ida-status-login:hover,
.ida-member-status .ida-status-login:focus-visible {
  color: #1a1714;
}

/* Hero buttons — frosted glass treatment over the dark hero image.
   Align with the left edge of .da-index-hero-summary (660px centered column). */
.da-index .ida-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 660px;
  margin: 24px auto 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ida-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  font-family: 'Lora', 'Georgia', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.ida-hero-btn:hover,
.ida-hero-btn:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
  outline: none;
}

.ida-hero-btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.ida-hero-btn--secondary:hover,
.ida-hero-btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

@media (max-width: 600px) {
  .ida-member-status {
    padding: 14px 18px;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
  }
  .ida-member-status .ida-status-text {
    font-size: 14px;
    flex: 1 1 100%;
  }
  .da-index .ida-hero-actions {
    gap: 8px;
  }
  .ida-hero-btn {
    padding: 12px 22px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Analysis page upgrade button
   ========================================================================== */

.ida-analysis-upgrade-wrap {
  max-width: 720px;
  margin: 0 auto 32px;
}

/* Higher specificity defeats theme x-btn defaults that try to keep the
   button inline-block at its content width. */
.ida-analysis-upgrade-wrap a.ida-analysis-upgrade-btn,
a.ida-analysis-upgrade-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Breadcrumb (analysis page)
   ========================================================================== */

.ida-breadcrumb {
  margin: 0 0 16px;
  padding: 0;
  font-family: 'Lora', 'Georgia', serif;
}

.ida-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ida-breadcrumb-link:hover,
.ida-breadcrumb-link:focus-visible {
  color: #1a1714;
}

.da-integral-dark .ida-breadcrumb-link,
.da-theme-dark .ida-breadcrumb-link {
  color: rgba(245, 240, 230, 0.55);
}

.da-integral-dark .ida-breadcrumb-link:hover,
.da-theme-dark .ida-breadcrumb-link:hover {
  color: rgba(245, 240, 230, 0.95);
}

/* ==========================================================================
   Tab lock / unlock indicators — icon color only, no background changes
   ========================================================================== */

.da-tab .ida-lock-icon {
  color: #991b1b;
}

.da-tab .ida-unlock-icon {
  color: #0d9488;
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: text-bottom;
}

/* Polarity upsell card sits inside the polarities tab content, with a small
   amount of top spacing to separate it from the first polarity card. The
   .ida-upsell-card visual treatment is inherited from ida-access.css. */
.ida-upsell-card--polarity {
  margin-top: 24px;
}

/* ==========================================================================
   Reference links — chip header link + inline ⓘ icons
   ========================================================================== */

.ida-chip-reference-link {
  margin-top: 12px;
  padding-top: 10px;
  padding-bottom: 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.10);
}

.ida-chip-reference-anchor {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 12px;
  color: #9a8e82;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* Section-top reference link (Complexity Profile etc.) */
.ida-section-reference {
  margin: 0 0 12px;
  text-align: right;
}

.ida-chip-reference-anchor:hover,
.ida-chip-reference-anchor:focus-visible {
  color: #1a1714;
}

.da-sp-mobile-section.is-identity .ida-chip-reference-link {
  margin-top: 10px;
  padding-top: 10px;
}

.da-integral-dark .ida-chip-reference-link,
.da-theme-dark .ida-chip-reference-link {
  border-top-color: rgba(255, 255, 255, 0.10);
}

.da-integral-dark .ida-chip-reference-anchor,
.da-theme-dark .ida-chip-reference-anchor {
  color: rgba(245, 240, 230, 0.55);
}

.da-integral-dark .ida-chip-reference-anchor:hover,
.da-theme-dark .ida-chip-reference-anchor:hover {
  color: rgba(245, 240, 230, 0.95);
}

/* Inline ⓘ icon — sits next to terms like Foothold, Handhold, Mode Level */
.ida-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  font-size: 13px;
  color: #9a8e82;
  text-decoration: none;
  opacity: 0.75;
  vertical-align: middle;
  line-height: 1;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.ida-info-icon:hover,
.ida-info-icon:focus-visible {
  opacity: 1;
  color: #1a1714;
  text-decoration: none;
  outline: none;
}

.da-integral-dark .ida-info-icon,
.da-theme-dark .ida-info-icon {
  color: rgba(245, 240, 230, 0.55);
}

.da-integral-dark .ida-info-icon:hover,
.da-theme-dark .ida-info-icon:hover {
  color: rgba(245, 240, 230, 0.95);
}

/* ==========================================================================
   Threads carousel
   ========================================================================== */

.da-threads {
  margin: 32px 0 36px;
}

.da-threads__header {
  text-align: center;
  margin-bottom: 20px;
}

.da-threads__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.1rem);
  font-weight: 600;
  color: #1a1714;
  margin: 0 0 6px;
  line-height: 1.15;
}

.da-threads__subtitle {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 14px;
  font-style: italic;
  color: #6b7280;
  margin: 0 auto;
  max-width: 540px;
}

.da-threads__carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.da-threads__nav {
  flex: 0 0 36px;
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #ffffff;
  color: #52473e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  z-index: 2;
  padding: 0;
}

.da-threads__nav:hover,
.da-threads__nav:focus-visible {
  background: #f5f5f3;
  border-color: rgba(0, 0, 0, 0.20);
  color: #1a1714;
  outline: none;
}

.da-threads__nav.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.da-threads__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  align-items: flex-start;
  min-width: 0;
}

.da-threads__track::-webkit-scrollbar {
  height: 6px;
}

.da-threads__track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 3px;
}

/* Square cards — width depends on viewport, aspect-ratio enforces 1:1 */
.da-thread-card {
  scroll-snap-align: start;
  flex: 0 0 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(26, 23, 20, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 700px) {
  .da-thread-card {
    flex: 0 0 calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
}

@media (min-width: 1024px) {
  .da-thread-card {
    flex: 0 0 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
  }
}

.da-thread-card:hover {
  box-shadow: 0 6px 16px rgba(26, 23, 20, 0.10);
  transform: translateY(-1px);
}

.da-thread-card.is-active {
  border-color: #c47a1e;
  box-shadow: 0 0 0 1px #c47a1e, 0 6px 16px rgba(196, 122, 30, 0.18);
}

/* Upsell card (partial-reveal when Highlights is gated to members) */
.da-thread-card--upsell {
  background: linear-gradient(180deg, #faf7f0 0%, #f0ece3 100%);
  border-color: rgba(196, 122, 30, 0.32);
}

.da-thread-card--upsell .da-thread-card__number {
  color: #c47a1e;
}

.da-thread-card--upsell .da-thread-card__expand {
  background: #c47a1e;
  color: #ffffff;
  border-color: #c47a1e;
  text-decoration: none;
}

.da-thread-card--upsell .da-thread-card__expand:hover,
.da-thread-card--upsell .da-thread-card__expand:focus-visible {
  background: #a1651a;
  color: #ffffff;
  border-color: #a1651a;
}

.da-integral-dark .da-thread-card--upsell,
.da-theme-dark .da-thread-card--upsell {
  background: linear-gradient(180deg, #1a1a1f 0%, #131316 100%);
  border-color: rgba(227, 168, 103, 0.32);
}

.da-integral-dark .da-thread-card--upsell .da-thread-card__number,
.da-theme-dark .da-thread-card--upsell .da-thread-card__number {
  color: #e3a867;
}

.da-thread-card__front {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.da-thread-card__number {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c47a1e;
}

.da-thread-card__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem);
  font-weight: 600;
  color: #1a1714;
  margin: 0;
  line-height: 1.2;
}

.da-thread-card__tagline {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 14px;
  font-style: italic;
  color: #52473e;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.da-thread-card__expand {
  align-self: flex-start;
  margin-top: 10px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.20);
  border-radius: 999px;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #52473e;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.da-thread-card__expand:hover,
.da-thread-card__expand:focus-visible,
.da-thread-card.is-active .da-thread-card__expand {
  background: #c47a1e;
  border-color: #c47a1e;
  color: #ffffff;
  outline: none;
}

/* Full-width detail panel below the carousel */
.da-threads__panel {
  margin-top: 20px;
  padding: 28px 32px;
  background: #faf7f0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 3px solid #c47a1e;
  border-radius: 8px;
  position: relative;
}

.da-threads__panel[hidden] {
  display: none;
}

.da-threads__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.da-threads__panel-meta {
  flex: 1;
}

.da-threads__panel-number {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #c47a1e;
  margin: 0 0 8px;
}

.da-threads__panel-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 1vw + 1.2rem, 1.95rem);
  font-weight: 600;
  color: #1a1714;
  margin: 0 0 4px;
  line-height: 1.2;
}

.da-threads__panel-tagline {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 15px;
  font-style: italic;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.da-threads__panel-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  color: #52473e;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.da-threads__panel-close:hover,
.da-threads__panel-close:focus-visible {
  background: #f5f5f3;
  color: #1a1714;
  outline: none;
}

.da-threads__panel-narrative p {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 16px;
  line-height: 1.75;
  color: #52473e;
  margin: 0 0 16px;
}

.da-threads__panel-narrative p:last-child {
  margin-bottom: 0;
}

.da-threads__panel-quotes {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 600px) {
  .da-threads__panel {
    padding: 22px 22px;
  }
  .da-threads__panel-title {
    font-size: 1.3rem;
  }
}

.da-thread-quote {
  margin: 0;
  padding: 12px 16px;
  background: #ffffff;
  border-left: 3px solid #c47a1e;
  border-radius: 4px;
}

.da-thread-quote__text {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: #1a1714;
  margin: 0 0 6px;
}

.da-thread-quote__speaker {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a8e82;
  font-style: normal;
}

.da-threads__panel-broader {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 14px;
  line-height: 1.6;
  color: #52473e;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.da-threads__panel-broader-label {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8e82;
  margin-right: 6px;
}

.da-threads__indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.da-threads__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.da-threads__indicator:hover,
.da-threads__indicator:focus-visible {
  background: rgba(0, 0, 0, 0.32);
  outline: none;
}

.da-threads__indicator.is-active {
  background: #c47a1e;
  transform: scale(1.2);
}

/* Locked state */
.da-threads.is-locked .da-threads__locked-wrap {
  display: flex;
  justify-content: center;
}

/* Dark theme */
.da-integral-dark .da-threads__title,
.da-theme-dark .da-threads__title {
  color: rgba(245, 240, 230, 0.95);
}

.da-integral-dark .da-threads__subtitle,
.da-theme-dark .da-threads__subtitle {
  color: rgba(245, 240, 230, 0.55);
}

.da-integral-dark .da-thread-card,
.da-theme-dark .da-thread-card {
  background: #1a1a1f;
  border-color: rgba(255, 255, 255, 0.10);
}

.da-integral-dark .da-thread-card__title,
.da-theme-dark .da-thread-card__title {
  color: rgba(245, 240, 230, 0.95);
}

.da-integral-dark .da-thread-card__tagline,
.da-theme-dark .da-thread-card__tagline {
  color: rgba(245, 240, 230, 0.78);
}

.da-integral-dark .da-threads__panel,
.da-theme-dark .da-threads__panel {
  background: #131316;
  border-color: rgba(255, 255, 255, 0.08);
}

.da-integral-dark .da-threads__panel-title,
.da-theme-dark .da-threads__panel-title {
  color: rgba(245, 240, 230, 0.95);
}

.da-integral-dark .da-threads__panel-tagline,
.da-theme-dark .da-threads__panel-tagline {
  color: rgba(245, 240, 230, 0.55);
}

.da-integral-dark .da-threads__panel-narrative p,
.da-theme-dark .da-threads__panel-narrative p {
  color: rgba(245, 240, 230, 0.88);
}

.da-integral-dark .da-threads__panel-broader,
.da-theme-dark .da-threads__panel-broader {
  color: rgba(245, 240, 230, 0.78);
  border-top-color: rgba(255, 255, 255, 0.10);
}

.da-integral-dark .da-threads__panel-close,
.da-theme-dark .da-threads__panel-close {
  background: #22222a;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(245, 240, 230, 0.85);
}

.da-integral-dark .da-thread-quote,
.da-theme-dark .da-thread-quote {
  background: #22222a;
}

.da-integral-dark .da-thread-quote__text,
.da-theme-dark .da-thread-quote__text {
  color: rgba(245, 240, 230, 0.95);
}

.da-integral-dark .da-threads__nav,
.da-theme-dark .da-threads__nav {
  background: #1a1a1f;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(245, 240, 230, 0.85);
}

/* ==========================================================================
   IDA Analysis Summary
   ========================================================================== */

.ida-analysis-summary {
  margin: 24px auto 36px;
  max-width: 720px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(26, 23, 20, 0.04);
}

.ida-analysis-summary-eyebrow {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a8e82;
  margin-bottom: 10px;
}

.ida-analysis-summary p {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 16px;
  line-height: 1.7;
  color: #52473e;
  margin: 0 0 12px;
}

.ida-analysis-summary p:last-of-type {
  margin-bottom: 0;
}

.ida-analysis-summary-cta {
  display: block;
  margin-top: 14px;
  font-family: 'Lora', 'Georgia', serif;
  font-size: 12.5px;
  color: #534AB7;
  text-decoration: none;
}

.ida-analysis-summary-cta:hover,
.ida-analysis-summary-cta:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.da-integral-dark .ida-analysis-summary,
.da-theme-dark .ida-analysis-summary {
  background: #1a1a1f;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.da-integral-dark .ida-analysis-summary p,
.da-theme-dark .ida-analysis-summary p {
  color: rgba(245, 240, 230, 0.85);
}

.da-integral-dark .ida-analysis-summary-eyebrow,
.da-theme-dark .ida-analysis-summary-eyebrow {
  color: rgba(245, 240, 230, 0.5);
}

.da-integral-dark .ida-analysis-summary-cta,
.da-theme-dark .ida-analysis-summary-cta {
  color: #8a82d8;
}

/* ==========================================================================
   Sticky Footer (rating + community link)
   ========================================================================== */

.ida-sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #faf7f0;
  border-top: 0.5px solid #ddd5c0;
  box-shadow: 0 -4px 20px rgba(26, 23, 20, 0.08);
  padding: 12px 24px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.ida-sticky-footer[hidden] {
  display: none;
}

.ida-sticky-footer.is-visible {
  transform: translateY(0);
}

.ida-sticky-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ida-rating-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ida-rating-label {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 13px;
  color: #52473e;
  white-space: nowrap;
}

.ida-rating-aggregate {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #9a8e82;
  white-space: nowrap;
}

.ida-rating-feedback {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 12px;
  color: #6b8e3d;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ida-rating-feedback.is-visible {
  opacity: 1;
}

.ida-rating-upsell {
  font-size: 11px;
  color: #9a8e82;
}

.ida-rating-upsell a {
  color: #c47a1e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ida-rating-upsell a:hover,
.ida-rating-upsell a:focus-visible {
  color: #a1651a;
}

.ida-community-link a {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c47a1e;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.ida-community-link a:hover,
.ida-community-link a:focus-visible {
  color: #a1651a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Stars
   ========================================================================== */

.ida-stars {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  line-height: 1;
}

.ida-star {
  font-size: 18px;
  line-height: 1;
  color: #ddd5c0;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  transition: color 0.1s ease, transform 0.1s ease;
  font-family: inherit;
}

.ida-stars--interactive .ida-star {
  color: #ddd5c0;
}

.ida-stars--interactive .ida-star:hover,
.ida-stars--interactive .ida-star:focus-visible,
.ida-stars--interactive .ida-star.is-filled,
.ida-stars--interactive .ida-star.is-preview {
  color: #c47a1e;
  outline: none;
}

.ida-stars--interactive .ida-star:active {
  transform: scale(0.92);
}

.ida-star--inactive {
  color: #e0d8c3;
  cursor: default;
}

/* ==========================================================================
   Dark theme overrides
   ========================================================================== */

.da-integral-dark .ida-sticky-footer,
body.da-theme-dark .ida-sticky-footer,
body.da-integral-dark-bg .ida-sticky-footer {
  background: #1a1714;
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
}

.da-integral-dark .ida-rating-label,
body.da-theme-dark .ida-rating-label,
body.da-integral-dark-bg .ida-rating-label {
  color: rgba(245, 240, 230, 0.85);
}

.da-integral-dark .ida-rating-aggregate,
body.da-theme-dark .ida-rating-aggregate,
body.da-integral-dark-bg .ida-rating-aggregate {
  color: rgba(245, 240, 230, 0.55);
}

.da-integral-dark .ida-star,
body.da-theme-dark .ida-star,
body.da-integral-dark-bg .ida-star {
  color: rgba(255, 255, 255, 0.18);
}

.da-integral-dark .ida-stars--interactive .ida-star:hover,
.da-integral-dark .ida-stars--interactive .ida-star.is-filled,
.da-integral-dark .ida-stars--interactive .ida-star.is-preview,
body.da-theme-dark .ida-stars--interactive .ida-star:hover,
body.da-theme-dark .ida-stars--interactive .ida-star.is-filled,
body.da-theme-dark .ida-stars--interactive .ida-star.is-preview {
  color: #e3a867;
}

.da-integral-dark .ida-community-link a,
body.da-theme-dark .ida-community-link a {
  color: #e3a867;
}

.da-integral-dark .ida-community-link a:hover,
body.da-theme-dark .ida-community-link a:hover {
  color: #f5c585;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 600px) {
  .ida-sticky-footer {
    padding: 10px 16px;
  }

  .ida-sticky-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ida-rating-widget {
    width: 100%;
    justify-content: space-between;
  }

  .ida-rating-label {
    font-size: 12.5px;
  }

  .ida-star {
    font-size: 20px;
    padding: 4px 2px;
  }
}
