/* ═══════════════════════════════════════════════════════════════════════════
   DESKTOP QA — Task #1031430
   Settlement detail pages: layout, data display, CTA, and polish fixes.
   Tested at 1280px and 1440px viewports.

   Root cause: .content-with-sidebar, .detail-inner, .detail-stats, .detail-stat,
   .related-grid, .related-card had no CSS definitions — browser defaulted to
   block layout, collapsing sidebar below main content and removing card styling.

   DO NOT add to design-system.css — ext module pattern per project conventions.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ══ 1. DETAIL HERO — container max-width + padding ══════════════════════════
   .detail-inner wraps the breadcrumb / h1 / stats / CTA area inside .detail-hero.
   Needs max-width + padding so content doesn't stretch to viewport edge on 1440px. */

.detail-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
}

/* Detail hero: ensure full-width white card with bottom border */
.detail-hero {
  width: 100%;
}


/* ══ 2. CONTENT + SIDEBAR — 2-COLUMN GRID ════════════════════════════════════
   This is the primary desktop fix. Without display:grid the sidebar falls below
   the main content as a normal block element. Memory spec: 1fr/340px, ≤768px stacks. */

@media (min-width: 769px) {
  .content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.75rem clamp(1rem, 4vw, 2.5rem) 3rem;
  }
}

/* Desktop sidebar: sticky so it tracks scroll with the main content */
@media (min-width: 769px) {
  .content-with-sidebar > .sidebar,
  .content-with-sidebar > aside.sidebar {
    position: sticky;
    top: 128px; /* 64px header + 64px urgency bar buffer */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .content-with-sidebar > .sidebar::-webkit-scrollbar,
  .content-with-sidebar > aside.sidebar::-webkit-scrollbar {
    display: none;
  }
}

/* Collapse to single column on mobile — override any grid that might apply */
@media (max-width: 768px) {
  .content-with-sidebar {
    display: block;
    padding: 1rem 0.85rem 2rem;
  }
  .content-with-sidebar > .sidebar,
  .content-with-sidebar > aside.sidebar {
    position: static;
    margin-top: 2rem;
  }
}

/* Override the mobile-settlement-qa.css max-width rule at desktop (it set it fine,
   but the padding needs updating to account for wider screens) */
@media (min-width: 769px) {
  .content-with-sidebar {
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-right: clamp(1rem, 4vw, 2.5rem);
  }
}

/* Override homepage-missing.css sidebar row layout when inside .content-with-sidebar.
   At 769px–1024px homepage-missing.css turns .sidebar into flex-direction:row — but
   inside the 2-col grid (300px column) we always want column-stacked cards. */
@media (min-width: 769px) {
  .content-with-sidebar > .sidebar,
  .content-with-sidebar > aside.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .content-with-sidebar > .sidebar .sidebar-card,
  .content-with-sidebar > aside.sidebar .sidebar-card {
    flex: none;
    min-width: 0;
    width: 100%;
  }
}


/* ══ 3. DETAIL CONTENT — readable line length ════════════════════════════════
   The main content column should cap at ~75ch for readability.
   On 1440px with 340px sidebar, the main column is ~860px — fine.
   But prose sections (eligibility, explainer) should have their own max-width. */

.detail-content .detail-section p,
.detail-content .detail-section li {
  line-height: 1.7;
  color: #374151;
  font-size: 0.95rem;
}

.detail-content .detail-section h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #111827;
  margin: 1.5rem 0 0.6rem;
  line-height: 1.25;
}

.detail-content .detail-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin: 1.25rem 0 0.5rem;
}

.detail-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.detail-section:last-child {
  border-bottom: none;
}


/* ══ 4. DETAIL STATS CARDS — key data grid ══════════════════════════════════
   .detail-stats is the 3–4 stat cards row (Deadline / Est. Payout / Proof / etc.)
   Mobile already forces flex-direction:column via inline style. On desktop: row. */

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.detail-stat {
  flex: 1 1 200px;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.detail-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.detail-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.detail-stat-sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.detail-stat-sub.good {
  color: #1d4ed8;
  font-weight: 600;
}

.detail-payout-note {
  font-size: 0.68rem !important;
  font-style: italic;
}

/* Deadline countdown block inside the stat card */
.deadline-countdown-block {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.cd-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}

.cd-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1.1;
}

.deadline-countdown-block.cd-expired .cd-num {
  color: #9ca3af;
}

.cd-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-top: 1px;
}

.cd-sep {
  font-size: 1rem;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 6px;
}


/* ══ 5. RELATED SETTLEMENTS GRID — card grid layout ═════════════════════════
   .related-grid wraps the "You May Also Be Eligible For" cards.
   Needs desktop grid layout — currently only has the mobile 1-column override. */

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* At exactly 2 columns on medium desktops */
@media (min-width: 900px) and (max-width: 1200px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 columns on wide desktop */
@media (min-width: 1200px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ══ 6. RELATED CARD — card styling ══════════════════════════════════════════
   .related-card is currently unstyled — no background, border, or padding.
   Adds premium card treatment matching the overall design system. */

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  min-height: 100px;
}

.related-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.related-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.related-card-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 9px;
  border-radius: 10px;
}

.related-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: auto;
}

.related-card-payout {
  font-weight: 700;
  color: #1e40af;
}

.related-card-deadline {
  font-size: 0.72rem;
  color: #1d4ed8;
  font-weight: 600;
}

/* "See All" link below the grid */
.related-see-all {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.related-see-all:hover {
  text-decoration: underline;
}


/* ══ 7. SECTION HEADINGS — consistent desktop typography ══════════════════
   .sr-crosssell-heading and other section h2s in .detail-content */

.sr-crosssell-heading {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.35rem;
}


/* ══ 8. STATUS BADGE — Open/Closed prominence ════════════════════════════════
   The settlement status badge (.card-deadline) already has colors.
   Ensure it's visually prominent at desktop. */

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

/* Open status: existing .card-deadline class already styled in design-system.
   Add explicit "Open" badge that's separate from deadline */
.sr-status-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #15803d;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
}

/* Closed banner: ensure it's visually differentiated */
.settlement-closed-banner {
  background: #fee2e2;
  border-bottom: 2px solid #fca5a5;
  padding: 0.85rem 1.25rem;
  color: #7f1d1d;
}

.settlement-closed-label {
  font-weight: 800;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.2rem;
}

.settlement-closed-msg {
  font-size: 0.84rem;
  line-height: 1.55;
}

.settlement-closed-browse {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b91c1c;
  text-decoration: none;
}

.settlement-closed-browse:hover {
  text-decoration: underline;
}


/* ══ 9. COMPANY NAME LINK — prominence ═══════════════════════════════════════ */

.detail-company {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0.25rem 0 0.5rem;
}

.detail-summary {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  max-width: 72ch;
  margin: 0.5rem 0 1rem;
}


/* ══ 10. TRUST ROW — consistent spacing ══════════════════════════════════════ */

.sr-trust-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.75rem;
}

.sr-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.sr-last-updated {
  font-size: 0.73rem;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}


/* ══ 11. SOCIAL PROOF STRIP — desktop horizontal layout ══════════════════════ */

.ssp-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1.25rem;
}

.ssp-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #4b5563;
}

.ssp-value {
  font-size: 0.8rem;
  color: #374151;
}

.ssp-sep {
  color: #d1d5db;
  font-size: 0.8rem;
}


/* ══ 12. ABOVE-FOLD CTA STRIP — desktop sizing ═══════════════════════════════
   Already has good mobile styles. On desktop it should be max-width contained
   and have the button at full width (it's already styled well inline).
   Just ensure the strip doesn't go edge-to-edge on 1440px. */

.above-fold-cta-strip {
  background: rgba(239, 246, 255, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  margin: 0.85rem 0 1.25rem;
}

.above-fold-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: all 0.15s;
  min-height: 52px;
  text-align: center;
  letter-spacing: 0.01em;
}

.above-fold-cta-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff !important;
}

.above-fold-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #4b5563;
  font-weight: 500;
}

.above-fold-trust-micro {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  padding-top: 0.5rem;
  margin-top: 0.1rem;
}

.above-fold-trust-micro span {
  font-size: 0.74rem;
  color: #6b7280;
  white-space: nowrap;
}


/* ══ 13. CTA MAIN BUTTON — .filing-cta-main-btn ════════════════════════════ */

.filing-cta-main-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(22, 163, 74, 0.4);
  transition: all 0.15s;
  letter-spacing: 0.01em;
  min-height: 56px;
  line-height: 1.2;
}

.filing-cta-main-btn:hover {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.55);
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}


/* ══ 14. DETAIL FILING CLARIFICATION — fine print under CTA ════════════════ */

.detail-filing-clarification {
  font-size: 0.72rem;
  color: #9ca3af;
  text-align: center;
  margin: 0.4rem 0 0;
  line-height: 1.45;
}


/* ══ 15. SR-PRICE-ANCHOR — price context text ═══════════════════════════════ */

.sr-price-anchor {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  margin: 0.3rem 0;
}


/* ══ 16. SR CTA TRUST BLOCK ═════════════════════════════════════════════════ */

.sr-cta-trust-block {
  text-align: center;
  margin-top: 0.3rem;
}

.sr-trust-badge-wrap {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.sr-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
}


/* ══ 17. KEY TAKEAWAYS BOX ══════════════════════════════════════════════════
   .sr-key-takeaways needs explicit background + border to be visible */

.sr-key-takeaways {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  margin: 1.25rem 0;
}

.sr-key-takeaways-header {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #1d4ed8;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sr-key-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sr-key-takeaways li {
  font-size: 0.88rem;
  color: #1f2937;
  line-height: 1.55;
  padding-left: 1.25rem;
  position: relative;
}

.sr-key-takeaways li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 800;
  font-size: 0.78rem;
}


/* ══ 18. TIMELINE — important dates ══════════════════════════════════════════ */

.sr-dates-timeline {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.sr-dates-timeline-heading {
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sr-timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f9fafb;
}

.sr-timeline-row:last-child {
  border-bottom: none;
}

.sr-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.sr-timeline-dot.dot-past    { background: #d1d5db; }
.sr-timeline-dot.dot-active  { background: #22c55e; }
.sr-timeline-dot.dot-future  { background: #bfdbfe; }
.sr-timeline-dot.dot-urgent  { background: #ef4444; }

.sr-timeline-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sr-timeline-label {
  font-size: 0.84rem;
  color: #374151;
  font-weight: 500;
}

.sr-timeline-date {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-left: auto;
}

.sr-timeline-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.sr-timeline-status.status-open   { background: #dcfce7; color: #15803d; }
.sr-timeline-status.status-urgent { background: #fee2e2; color: #b91c1c; }


/* ══ 19. BREADCRUMBS — desktop styling ══════════════════════════════════════ */

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  font-size: 0.875rem;
}

/* Already styled inline — ensure proper font-size at desktop */
@media (min-width: 769px) {
  .breadcrumb-nav {
    font-size: 0.875rem;
  }
}


/* ══ 20. SIDEBAR QUICK FACTS CARD (.qf-*) — desktop polish ══════════════════ */

.qf-card {
  background: #ffffff;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 16px;
}

.qf-header {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.qf-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.qf-item:last-of-type {
  border-bottom: none;
}

.qf-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.qf-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.qf-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.qf-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.qf-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 0.85rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.15s;
}

.qf-cta:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff;
}

.qf-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: #9ca3af;
  flex-wrap: wrap;
}


/* ══ 21. SIDEBAR RELATED CARD ════════════════════════════════════════════════ */

.sidebar-related-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 16px;
}

.sidebar-related-card .sr-header {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 0.65rem;
}

.sidebar-related-card .sr-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.sidebar-related-card .sr-item:last-of-type {
  border-bottom: none;
}

.sidebar-related-card .sr-item:hover .sr-title {
  color: #2563eb;
}

.sidebar-related-card .sr-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.12s;
}

.sidebar-related-card .sr-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: #6b7280;
}

.sidebar-related-card .sr-payout {
  color: #1d4ed8;
  font-weight: 600;
}

.sidebar-related-card .sr-badge {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
}

.sidebar-related-card .sr-urgent {
  color: #dc2626;
  font-weight: 700;
}


/* ══ 22. SHARE CARD SIDEBAR ══════════════════════════════════════════════════ */

.sidebar-share-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 16px;
}

.sidebar-share-card .ss-header {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 0.55rem;
}


/* ══ 23. NO PROOF BADGE — pill style ════════════════════════════════════════ */

.no-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
}


/* ══ 24. CARD CATEGORY PILL ══════════════════════════════════════════════════ */

.card-category {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
}


/* ══ 25. CARD DEADLINE BADGES ════════════════════════════════════════════════ */

.card-deadline {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
}

.card-deadline.urgent,
.card-deadline.last-chance {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fca5a5;
  animation: sr-deadline-pulse 2s ease-in-out infinite;
}

.card-deadline.warning {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

.card-deadline.expired {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #e5e7eb;
}


/* ══ 26. HERO BADGES STRIP ════════════════════════════════════════════════════ */

.hero-badges-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.5rem;
}

.hero-payout-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e3a8a;
}

.hero-payout-emoji { font-size: 0.9rem; }
.hero-payout-label { color: #6b7280; font-weight: 500; }
.hero-payout-value { font-weight: 800; }

.hero-difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  color: #374151;
}

.hero-difficulty-badge.easy { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.hero-difficulty-badge.moderate { background: #fefce8; border-color: #fde68a; color: #92400e; }

.hero-difficulty-time { font-size: 0.72rem; color: #9ca3af; margin-left: 2px; }

.hero-claimed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(239, 246, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  color: #374151;
}


/* ══ 27. PRO GATE — blurred payout badge for free users ══════════════════════ */

.pro-gate-wrapper {
  position: relative;
  display: inline-flex;
}

.pro-gate-wrapper--badge .pro-gate-blur-inner {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.pro-gate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.pro-gate-lock {
  font-size: 0.85rem;
  line-height: 1;
}

.pro-gate-title {
  font-size: 0.6rem;
  font-weight: 700;
  color: #1e40af;
  white-space: nowrap;
}

.pro-gate-cta {
  font-size: 0.62rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.pro-gate-cta:hover { text-decoration: underline; }


/* ══ 28. SIDEBAR URGENCY COUNTDOWN — inside .sidebar-card.sidebar-cta ═══════ */

.sidebar-urgency-countdown {
  font-size: 0.78rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(254, 243, 199, 0.85);
  border: 1px solid rgba(252, 211, 77, 0.45);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
  text-align: center;
}


/* ══ 29. CALENDAR ADD BUTTONS ════════════════════════════════════════════════ */

.cal-add-wrap {
  margin-top: 0.85rem;
}

.cal-add-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal-add-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cal-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
}

.cal-google  { background: #fff; border: 1px solid #e2e8f0; color: #374151; }
.cal-apple   { background: #fff; border: 1px solid #e2e8f0; color: #374151; }
.cal-outlook { background: #fff; border: 1px solid #e2e8f0; color: #374151; }
.cal-btn-sm:hover { background: #f0f7ff; border-color: #bfdbfe; color: #1d4ed8; }


/* ══ 30. SOURCE ATTRIBUTION / "LAST UPDATED" ════════════════════════════════
   Ensure the .sr-last-updated and .sr-source-link-premium are visible */

.sr-source-link-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.12s;
}

.sr-source-link-premium:hover { color: #1d4ed8; text-decoration: underline; }


/* ══ 31. DETAIL HEADER LAYOUT — h1 width ════════════════════════════════════
   On desktop, the h1 should not exceed ~72ch for readability.
   Already has clamp font-size inline — just ensure it's block. */

.detail-header h1 {
  display: block;
  max-width: 72ch;
}

/* Ensure the H1 flex container stretches properly */
.detail-header > div:first-of-type {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}


/* ══ 32. STICKY URGENCY BAR OVERRIDE — desktop ════════════════════════════
   The urgency bar has inline top:0 but #stickyUrgencyBar in mobile-qa already
   sets correct top values per breakpoint. Ensure desktop is also correct. */

/* Already handled by mobile-settlement-qa.css — no override needed */


/* ══ 33. PAYOUT ESTIMATOR WIDGET — desktop polish ════════════════════════════
   .pe-widget needs explicit background and styling */

.pe-widget {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(20, 30, 48, 0.92) 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  margin: 1.25rem 0;
  color: #e2e8f0;
}

.pe-header {
  margin-bottom: 1rem;
}

.pe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
  margin-bottom: 0.4rem;
}

.pe-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
}

.pe-range {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.pe-range-min,
.pe-range-max {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.pe-range-max { color: #60a5fa; }

.pe-range-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
}

.pe-range-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.4) 0%, #2563eb 100%);
  border-radius: 3px;
}

.pe-range-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #2563eb;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
}

.pe-range-dot-label {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  background: rgba(37, 99, 235, 0.8);
  padding: 1px 6px;
  border-radius: 4px;
}

.pe-most-common {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.pe-most-common-icon { font-size: 1rem; }

.pe-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pe-tier {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.pe-tier-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.pe-tier-amount {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #94a3b8;
}

.pe-tier-high .pe-tier-amount { color: #60a5fa; }

.pe-vs-avg { margin-top: 0.75rem; }

.pe-vs-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.pe-vs-pct { font-weight: 700; color: #60a5fa; }

.pe-vs-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.pe-vs-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  border-radius: 3px;
  transition: width 1s ease-out;
}

.pe-vs-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: #475569;
  margin-top: 0.25rem;
}


/* ══ 34. HERO CONV BLOCK — proper sizing on 1440px ═══════════════════════════
   The .hero-conv-block max-width should be constrained to main content column width.
   On 1440px + 340px sidebar, main col is ~840px. Block should not exceed this. */

.hero-conv-block {
  max-width: 680px;
}


/* ══ 35. BOTTOM RELATED SETTLEMENTS (SEO section) ═══════════════════════════
   The related settlements section at bottom of page (Task #1027986 SEO hub pages)
   — make sure the grid is also styled */

#bottomRelatedSection .bottom-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}


/* ══ 36. RESPONSIVE: 769px–1024px (tablet) tweaks ═══════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
  }

  .detail-inner {
    padding: 1.25rem clamp(0.85rem, 3vw, 1.75rem) 1.25rem;
  }
}


/* ══ 37. RESPONSIVE: 1440px+ (wide desktop) tweaks ══════════════════════════ */

@media (min-width: 1440px) {
  .content-with-sidebar {
    max-width: 1380px;
  }
  .detail-inner {
    max-width: 1380px;
  }
}


/* ══ 38. HERO SECTION ALIGNMENT ═════════════════════════════════════════════ */

/* Ensure hero section doesn't have excessive vertical whitespace */
.detail-hero {
  padding-bottom: 0 !important;
}

/* Category + badge row above h1 */
.detail-meta-row .card-category,
.detail-meta-row .sr-verified-badge {
  flex-shrink: 0;
}


/* ══ 39. BANNER STACK: max 1 notification bar ════════════════════════════════
   Keep only the urgency bar on desktop. Pro nudge bars are already hidden by
   premium-polish-984249.css. This is a safety reinforcement. */

#srProNudgeBar,
#sr-mobile-cta-bar,
#pastDueBanner {
  display: none !important;
}


/* ══ 40. SHARE BUTTONS — desktop position ════════════════════════════════════
   Share buttons are inside the sidebar (.sidebar-share-card).
   The monochrome share icons CSS already handles appearance.
   Just ensure no overflow. */

.share-btns-wrap,
.share-icons-row {
  flex-wrap: wrap;
  gap: 0.5rem;
}
