/* ==========================================================================
   FindPaidFocusGroup — Single study page
   Loaded after home.css (which holds the design tokens, buttons, header, footer).
   ========================================================================== */

.study { padding: var(--space-8) 0 var(--space-20); }

/* ---------- Breadcrumbs ---------- */
.fp .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.fp .crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-muted); }
.fp .crumbs a:hover { color: var(--brand); text-decoration: underline; }
.fp .crumbs span { color: var(--ink); }

/* ---------- Closed banner ---------- */
.fp .closed-banner {
  margin-top: var(--space-4); padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--pay-soft); color: var(--ink); font-size: 15px;
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
}

/* ---------- Layout ---------- */
.fp .study__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-12); margin-top: var(--space-6); align-items: start;
}

/* ---------- Badges ---------- */
.fp .badges { display: flex; flex-wrap: wrap; gap: 8px; }
.fp .badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: var(--surface-200); color: var(--ink-muted);
}
.fp .badge.ok { background: var(--brand-soft); color: var(--brand-strong); }
.fp .badge--closed { background: var(--pay-soft); color: var(--pay); }

/* ---------- Title ---------- */
.fp .study__main h1 { margin-top: 14px; font-size: 40px; line-height: 46px; }
.fp .study__main .lead { margin-top: 12px; }

/* ---------- Facts grid ---------- */
.fp .facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
}
.fp .facts__item { background: var(--surface); padding: 14px 16px; }
.fp .facts dt { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.fp .facts dd { margin: 2px 0 0; font-weight: 700; }
.fp .facts__item--pay dd { color: var(--pay); font-size: 20px; }

/* ---------- Featured image ---------- */
.fp .study__hero-img { margin: var(--space-8) 0 0; padding: 0; }
.fp .study__hero-img-el {
  display: block; width: 100%; max-height: 420px;
  object-fit: cover; border-radius: var(--radius-md);
}

/* ---------- Post content (from the editor) ---------- */
.fp .study__content { margin-top: var(--space-8); font-size: 17px; line-height: 28px; }
.fp .study__content > * + * { margin-top: 16px; }
.fp .study__content h2, .fp .study__h2 { font-size: 22px; line-height: 30px; margin: 32px 0 10px; }
.fp .study__content h3 { font-size: 18px; margin: 24px 0 8px; }
.fp .study__content ul, .fp .study__content ol { padding-left: 20px; display: grid; gap: 6px; }
.fp .study__content a { color: var(--brand); text-decoration: underline; }
.fp .study__content img { border-radius: var(--radius-md); }
.fp .study__text { font-size: 17px; line-height: 28px; }

/* ---------- Tags ---------- */
.fp .post-tags { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Ad slots ---------- */
.fp .study__main .ad-slot { min-height: 280px; }
.fp .study__aside .ad-slot { min-height: 250px; margin-top: 20px; }

/* Sidebar AdSense (300×250) — centre inside 340 px column */
.fp .study__aside .adsense-horizontal-responsive,
.fp .study__aside > div[class] { text-align: center; margin-top: 20px; }
.fp .study__aside .fg-responsive-ad,
.fp .study__aside .fg-vertical-responsive { text-align: center; margin-top: 20px; }

/* Leaderboard / mid-content ads — small top margin to breathe */
.fp .study__wrap > .adsense-horizontal-responsive { margin-bottom: 0; }
.fp .study__main .adsense-horizontal-responsive,
.fp .study__main .fg-responsive-ad { margin-top: var(--space-6); }

/* ---------- Apply box ---------- */
.fp .study__aside { position: sticky; top: 24px; }
.fp .apply-box {
  padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lift);
}
.fp .apply-box__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.fp .pay--lg { font-size: 24px; height: 40px; padding: 0 14px; }
.fp .pay--sm { font-size: 16px; height: 28px; padding: 0 10px; }
.fp .btn-block { width: 100%; margin-top: 18px; }
.fp .btn[aria-disabled="true"] { cursor: default; color: var(--ink-muted); }
.fp .apply-box__note { margin-top: 10px; text-align: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.fp .apply-box__note a { color: var(--brand); text-decoration: underline; }
.fp .apply-box hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.fp .apply-box__meta { list-style: none; padding: 0; display: grid; gap: 8px; }
.fp .apply-box__meta strong { color: var(--ink); }

/* ---------- Related ---------- */
.fp .related { padding: 0; margin-top: 72px; }
.fp .related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.fp .card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  transition: border-color .15s;
}
.fp .card:hover { border-color: var(--brand); }
.fp .card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fp .rel-card h3 { font-size: 16px; line-height: 22px; }

/* ---------- Mobile apply bar ---------- */
.fp .apply-bar { display: none; }

@media (max-width: 960px) {
  .fp .study__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .fp .study__aside { position: static; }
  .fp .related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .study { padding-top: var(--space-4); padding-bottom: 96px; }
  .fp .study__main h1 { font-size: 30px; line-height: 36px; }
  .fp .facts { grid-template-columns: repeat(2, 1fr); }
  .fp .related__grid { grid-template-columns: 1fr; }
  .fp .related { margin-top: var(--space-12); }

  .fp .apply-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px var(--space-4) calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(15, 42, 34, .08);
  }
  .fp .apply-bar .btn { flex: 1; height: 46px; }
}
