/* =========================================================
   FEDERALIST — Global Design System
   Bootstrap 5.3 + Custom Tokens
   ========================================================= */

:root {
  --fed-primary: #0B6E4F;
  --fed-primary-dark: #075038;
  --fed-primary-soft: #E6F2ED;
  --fed-secondary: #C1121F;
  --fed-secondary-soft: #FBE7E9;
  --fed-accent: #F4B400;
  --fed-accent-soft: #FEF6DA;
  --fed-bg: #FAFBFA;
  --fed-card: #FFFFFF;
  --fed-border: #E9ECEF;
  --fed-border-strong: #DEE2E6;
  --fed-text: #212529;
  --fed-muted: #43514B;
  --fed-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --fed-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 2px 6px rgba(16, 24, 40, 0.04);
  --fed-shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.08), 0 6px 12px rgba(16, 24, 40, 0.05);
  --fed-radius-card: 20px;
  --fed-radius-btn: 50px;
  --fed-radius-input: 15px;
  --fed-container-max: 1200px;
  --fed-timeline-max: 700px;
  --fed-profile-max: 700px;
  /* Real social-brand colors */
  --brand-facebook: #1877F2;
  --brand-instagram: #E4405F;
  --brand-x: #000000;
  --brand-youtube: #FF0000;
  --brand-tiktok: #000000;
  --brand-website: #0B6E4F;
}

.quote-avatar {
    width: 150px;height: 150px;
    border-radius: 50%;object-fit: cover;flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.2);
}
.quote-text {
    color: #fff;font-weight: 500;font-size: 1.3rem;max-width: 60ch;
}
.quote-btn-text{ font-size: 1rem;}
.quote-layout { flex-wrap: nowrap!important;}
.quote-author {
    display: inline-block;margin-top: .5rem;font-size: 1rem;
    font-weight: 400;color: rgba(255,255,255,.75);
}
.quote-btn { flex-shrink: 0; white-space: nowrap;}
@media (max-width: 1200px) {
    .quote-avatar { width: 130px; height: 130px; }
    .quote-text { font-size: 1.15rem; max-width: 45ch; }
}
@media (max-width: 991px) {
    .quote-avatar { width: 120px; height: 120px; }
    .quote-text { font-size: 1rem;}
    .quote-btn-text{ font-size: 0.9rem;}
}
/* Mobile */
@media (max-width: 767.99px) {
    .quote-layout { flex-wrap: wrap!important;justify-content: center; }
    .quote-avatar { width: 150px; height: 150px; }
    .quote-text { font-size: 1rem; text-align:justify; }
    .quote-btn-text{ font-size: 0.8rem;}
    .margin-top767 { margin-top: 15px; }
}
/* Bootstrap primary override (buttons, links) */
.btn-primary, .bg-primary {
  background-color: var(--fed-primary) !important;
  border-color: var(--fed-primary) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--fed-primary-dark) !important;
  border-color: var(--fed-primary-dark) !important;
}
.text-primary { color: var(--fed-primary) !important;}
.text-secondary-fed {color: var(--fed-secondary) !important;}
.text-accent-fed { color: var(--fed-accent) !important;}
.bg-primary-soft { background-color: var(--fed-primary-soft) !important;}
.bg-accent-soft { background-color: var(--fed-accent-soft) !important;}

/* Base */
* { box-sizing: border-box; }
html, body {
  background: var(--fed-bg);
  color: var(--fed-text);
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body { min-height: 100vh; }
main { min-height: 60vh; }

.container-fed {
  max-width: var(--fed-container-max);
  margin-left: auto;margin-right: auto;padding-left: 1rem;padding-right: 1rem;width: 100%;
}
.container-timeline {
  max-width: var(--fed-timeline-max);margin-left: auto; margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;letter-spacing: -0.01em;color: var(--fed-text);
}
h1 { font-weight: 800; letter-spacing: -0.025em; }
.display-hero {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem);
  font-weight: 800;line-height: 1.05;letter-spacing: -0.03em;
}
.lead-fed {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
  color: var(--fed-muted);line-height: 1.6;
}
.eyebrow {
  text-transform: uppercase;letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700;color: var(--fed-primary);
}

/* Buttons — pill */
.btn {
  border-radius: var(--fed-radius-btn);
  font-weight: 600;padding: 0.7rem 1.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-lg { padding: 0.95rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; box-shadow: 0 6px 16px rgba(11, 110, 79, 0.22); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(11, 110, 79, 0.28); }
.btn-outline-primary {
  color: var(--fed-primary);border-color: var(--fed-primary);
}
.btn-outline-primary:hover {
  background-color: var(--fed-primary);
  border-color: var(--fed-primary);
  color: #fff;
}
.btn-accent {
  background: var(--fed-accent);border-color: var(--fed-accent);color: #1a1a1a;
}
.btn-accent:hover {
  background: #d99f00;border-color: #d99f00;color: #1a1a1a;
}
.btn-ghost {
  background: transparent;color: var(--fed-text);
  border: 1px solid var(--fed-border);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--fed-border-strong);
  box-shadow: var(--fed-shadow-sm);
}
.btn-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}

/* Inputs */
.form-control, .form-select {
  border-radius: var(--fed-radius-input);
  border: 1px solid var(--fed-border);
  padding: 0.75rem 1rem;background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--fed-primary);
  box-shadow: 0 0 0 0.2rem rgba(11, 110, 79, 0.15);
}
.form-check-input:checked {
  background-color: var(--fed-primary);border-color: var(--fed-primary);
}
.input-group-text {
  border-radius: var(--fed-radius-input);
  background: #fff;border: 1px solid var(--fed-border);
}

/* Cards */
.card {
  border-radius: var(--fed-radius-card);
  border: 1px solid var(--fed-border);
  background: var(--fed-card);
  box-shadow: var(--fed-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.card.card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--fed-shadow-lg);
  border-color: var(--fed-border-strong);
}
.card .card-img-top {
  border-top-left-radius: var(--fed-radius-card);
  border-top-right-radius: var(--fed-radius-card);
}

/* ================== NAVBAR ================== */
.fed-navbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--fed-border);
  padding: 0.75rem 0;
}
.fed-navbar .navbar-brand {
  font-weight: 800;font-size: 1.35rem;
  letter-spacing: -0.02em;color: var(--fed-text);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.fed-navbar .navbar-brand .brand-mark {
  width: 34px; height: 34px;border-radius: 10px;
  background: linear-gradient(135deg, var(--fed-primary), #0f8f66);
  color: #fff;display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
  box-shadow: 0 6px 14px rgba(11, 110, 79, 0.28);
}
.fed-navbar .navbar-brand span.brand-text small {
  display: block;font-size: 0.68rem;font-weight: 500;
  color: var(--fed-muted);letter-spacing: 0.14em;
  text-transform: uppercase;margin-top: -2px;
}
.fed-navbar .nav-link {
  color: var(--fed-text);font-weight: 500;
  padding: 0.5rem 0.9rem !important;border-radius: 10px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.fed-navbar .nav-link:hover { color: var(--fed-primary); background: var(--fed-primary-soft); }
.fed-navbar .nav-link.active { color: var(--fed-primary); font-weight: 600; }

/* ================== HERO ================== */
.hero-fed {
  position: relative;padding: 5rem 0 4rem;overflow: hidden;
}
.hero-fed .hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff;border: 1px solid var(--fed-border);
  border-radius: 999px;padding: 0.4rem 0.9rem;font-size: 0.82rem;
  color: var(--fed-muted);box-shadow: var(--fed-shadow-sm);
}
.hero-info {
  align-items: center;gap: 0.5rem;
  background: #fff;border: 1px solid var(--fed-border);
  border-radius: 999px;padding: 0.4rem 0.9rem;font-size: 0.82rem;
  color: var(--fed-muted);box-shadow: var(--fed-shadow-sm);
  white-space: normal;overflow-wrap: break-word;
}
.hero-fed .hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--fed-primary);
  box-shadow: 0 0 0 4px rgba(11, 110, 79, 0.15);
}
.hero-fed .hero-visual {
  position: relative;border-radius: 28px;overflow: hidden;aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #0B6E4F 0%, #0f8f66 60%, #F4B400 130%);
  box-shadow: var(--fed-shadow-lg);
}
.hero-fed .hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: luminosity; opacity: 0.7;
}
.hero-fed .hero-visual .visual-caption {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; color: #fff;
}
.hero-fed .stat-chip {
  background: #fff;
  border: 1px solid var(--fed-border);
  border-radius: var(--fed-radius-card);
  padding: 1rem 1.25rem;box-shadow: var(--fed-shadow-sm);
}
.hero-fed .stat-chip .num {
  font-size: 1.85rem; font-weight: 800; color: var(--fed-primary); line-height: 1;
}
.hero-fed .stat-chip .lbl { font-size: 0.85rem; color: var(--fed-muted); }

/* Decorative background pattern */
.hero-decor {
  position: absolute;inset: -80px 0 auto -60px;height: 460px;
  background:
    radial-gradient(circle at 20% 20%, rgba(11, 110, 79, 0.10), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(244, 180, 0, 0.10), transparent 45%);
  z-index: -1;
}

/* ================== CAROUSEL ================== */
.fed-carousel .carousel-inner {
  border-radius: var(--fed-radius-card);
  overflow: hidden;box-shadow: var(--fed-shadow-md);
}
.fed-carousel .carousel-item {
  min-height: 260px;color: #fff;padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--fed-primary) 0%, #0f8f66 100%);  
}
.fed-carousel .carousel-item.gold {
  background: linear-gradient(135deg, #b98700 0%, var(--fed-accent) 100%);
  color: #1a1a1a;
}
.fed-carousel .carousel-item.dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);color: #fff;
}
.fed-carousel .carousel-item h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
.fed-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--fed-primary);
}

/* ================== VIDEOS ================== */
.video-featured {
  position: relative;aspect-ratio: 16 / 9;border-radius: var(--fed-radius-card);
  overflow: hidden;background: #000;box-shadow: var(--fed-shadow-md);
}
.video-featured img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.9;
}
.video-featured .play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
  transition: background 0.2s ease;
}
.video-featured .play-btn i {
  font-size: 3.5rem;background: rgba(255,255,255,0.15);
  border-radius: 50%;width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);transition: transform 0.2s ease;
}
.video-featured:hover .play-btn i { transform: scale(1.08); }
.video-featured .meta {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;color: #fff;
}

.hscroll {
  display: flex;gap: 1rem;overflow-x: auto;
  padding-bottom: 1rem;scroll-snap-type: x mandatory;-webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--fed-border-strong); border-radius: 10px; }
.hscroll > .card {
  flex: 0 0 300px;scroll-snap-align: start;
}
.video-card .thumb {
  position: relative;aspect-ratio: 16/9;overflow: hidden;
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); color: #fff;
  border-radius: 8px; padding: 3px 8px; font-size: 0.72rem; font-weight: 600;
}
.video-card .badge-type {
  position: absolute; top: 8px; left: 8px;
}

/* ================== BADGES ================== */
.badge-fed {
  border-radius: 999px;font-weight: 600;
  padding: 0.35em 0.75em;font-size: 0.72rem;letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.badge-video   { background: rgba(11, 110, 79, 0.12); color: var(--fed-primary); }
.badge-live    { background: rgba(193, 18, 31, 0.12); color: var(--fed-secondary); }
.badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fed-secondary); animation: pulse 1.2s infinite; }
.badge-podcast { background: rgba(244, 180, 0, 0.18); color: #7a5a00; }
.badge-article { background: rgba(33, 37, 41, 0.08); color: var(--fed-text); }
.badge-verified {
  color: var(--fed-primary);font-size: 1rem;vertical-align: middle;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(193, 18, 31, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(193, 18, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(193, 18, 31, 0); }
}

/* ================== FEDERATOR CARD — my-oga.com/h/browse inspired ================== */
.federator-card {
  padding: 0;                       /* photo bleeds to edges */
  text-align: left;display: flex;flex-direction: column;
  overflow: hidden;                 /* clip photo to card radius */
}
.federator-card .card-photo {
  position: relative;width: 100%;
  aspect-ratio: 1 / 1;overflow: hidden;background: #f0f2f4;
}
.federator-card .card-photo img {
  width: 100%; height: 100%;object-fit: cover;transition: transform 0.35s ease;
}
.federator-card:hover .card-photo img { transform: scale(1.04); }
.federator-card .card-photo .verified-tick {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--fed-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  border: 2px solid #fff;box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
.federator-card .card-body {
  padding: 0.95rem 1rem 1.1rem;display: flex;
  flex-direction: column;gap: 0.35rem;flex: 1;
}
.federator-card .name-row {
  display: flex;align-items: center;gap: 0.35rem;margin: 0;
}
.federator-card .name {
  font-weight: 700;font-size: 1rem;color: var(--fed-text);
  line-height: 1.25;margin: 0;display: -webkit-box;
  -webkit-line-clamp: 1;-webkit-box-orient: vertical;overflow: hidden;
}
.federator-card .name-row .inline-verified {
  color: var(--fed-primary);font-size: 0.95rem;flex-shrink: 0;
}
.federator-card .role {
  color: var(--fed-muted);font-size: 0.82rem;font-weight: 500;margin: 0;
}
.federator-card .username {
  color: var(--fed-muted);font-size: 0.8rem;margin: 0;
}
.federator-card .meta {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--fed-muted); font-size: 0.85rem;margin-top: 0.25rem;
}
.federator-card .meta .followers strong { color: var(--fed-text); font-weight: 700; }
.federator-card .socials {
  display: flex;gap: 0.35rem;margin: 0.5rem 0 0.65rem;flex-wrap: wrap;
}
.federator-card .socials a {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem;color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.federator-card .socials a:hover {
  transform: translateY(-2px);filter: brightness(1.08);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.federator-card .view-profile-btn { margin-top: auto;}

/* Brand-color social icons — reusable everywhere */
.social-brand.facebook  { background: var(--brand-facebook); }
.social-brand.x         { background: var(--brand-x); }
.social-brand.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-brand.youtube   { background: var(--brand-youtube); }
.social-brand.tiktok    { background: linear-gradient(135deg, #25F4EE 0%, #000000 50%, #FE2C55 100%); }
.social-brand.website   { background: var(--brand-website); }
.social-brand.linkedin  { background: #0A66C2; }

/* ================== FEDERALIST (subscriber) CARD ================== */
.federalist-card {
  display: flex; align-items: center; gap: 0.75rem;padding: 0.85rem 1rem;
}
.federalist-card img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}
.federalist-card .name { font-weight: 600; margin: 0; font-size: 0.95rem; }
.federalist-card .username { font-size: 0.8rem; color: var(--fed-muted); }
.federalist-card .socials { margin-left: auto; display: flex; gap: 0.3rem; }
.federalist-card .socials a {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--fed-bg); color: var(--fed-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.federalist-card .socials a:hover { background: var(--fed-primary-soft); color: var(--fed-primary); }

/* ================== TIMELINE / PAPER CARD ================== */
.paper-card { padding: 1.25rem;margin-bottom: 1rem;}
.paper-card .paper-header {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem;
}
.paper-card .paper-header img.avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}
.paper-card .paper-header .who .name { font-weight: 700; font-size: 0.95rem; margin: 0; }
.paper-card .paper-header .who .username { font-size: 0.8rem; color: var(--fed-muted); }
.paper-card .paper-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 0.5rem; line-height: 1.35; }
.paper-card .paper-text { color: var(--fed-text); font-size: 0.95rem; line-height: 1.6; }
.paper-card .paper-meta {
  display: flex; align-items: center; gap: 1rem;
  color: var(--fed-muted); font-size: 0.82rem; margin-top: 0.75rem;
}
.paper-card .paper-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.paper-card .paper-media {
  border-radius: 16px;overflow: hidden;
  margin-top: 0.75rem;border: 1px solid var(--fed-border);
}
.paper-card .paper-media.video { position: relative; aspect-ratio: 16/9; background: #000; }
.paper-card .paper-media.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.paper-card .paper-media.video .play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.5)); }
.paper-card .paper-media.video .play-btn i { font-size: 2.5rem; background: rgba(255,255,255,0.15); width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Image gallery in paper */
.paper-media.gallery {display: grid;gap: 4px;}
.paper-media.gallery.count-1 { grid-template-columns: 1fr; }
.paper-media.gallery.count-2 { grid-template-columns: 1fr 1fr; }
.paper-media.gallery.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.paper-media.gallery.count-3 img:first-child { grid-row: span 2; }
.paper-media.gallery.count-4,
.paper-media.gallery.count-many { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.paper-media.gallery img {width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1;}
.paper-media.gallery.count-1 img { aspect-ratio: 16/10; }
.paper-media.gallery .more-cover { position: relative;}
.paper-media.gallery .more-cover::after {
  content: attr(data-more);position: absolute; inset: 0;
  background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.15rem;
}

/* Podcast player */
.paper-media.podcast {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: linear-gradient(135deg, #FEF6DA, #fff);
}
.paper-media.podcast img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.paper-media.podcast .title { font-weight: 700; font-size: 0.95rem; margin: 0; }
.paper-media.podcast .duration { color: var(--fed-muted); font-size: 0.82rem; }
.paper-media.podcast .play-podcast {
  width: 44px; height: 44px; border-radius: 50%; background: var(--fed-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
  border: 0;
}

/* Article card */
.paper-media.article-cover {
  position: relative;aspect-ratio: 16/8;overflow: hidden;
}
.paper-media.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.paper-media.article-cover .read-time {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.92); color: var(--fed-text);
  padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
}

/* Video horizontal scroll inside paper */
.paper-media.video-scroll {
  padding: 0.5rem;
}
.paper-media.video-scroll .hscroll > .video-thumb {
  flex: 0 0 260px; border-radius: 12px; overflow: hidden; position: relative;
  scroll-snap-align: start; aspect-ratio: 16/9;
}
.paper-media.video-scroll .hscroll > .video-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Paper actions */
.paper-actions {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--fed-border);
}
.paper-actions .action {
  background: transparent; border: 0; color: var(--fed-muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 500; padding: 4px 6px;
  border-radius: 8px; transition: color 0.15s ease, background 0.15s ease;
}
.paper-actions .action:hover { color: var(--fed-primary); background: var(--fed-primary-soft); }
.paper-actions .action.liked { color: var(--fed-secondary); }

/* ================== SEARCH & PILLS ================== */
.search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: #fff;
  border-radius: var(--fed-radius-btn);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border: 1px solid var(--fed-border);
  box-shadow: var(--fed-shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.search-bar:focus-within {
  border-color: var(--fed-primary);
  box-shadow: 0 0 0 4px rgba(11, 110, 79, 0.12);
}
.search-bar i { color: var(--fed-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 0.65rem 0; font-size: 0.95rem;
}
.search-bar .btn { padding: 0.55rem 1.15rem; flex-shrink: 0; white-space: nowrap; }

/* Longer localized labels (e.g. "Rechercher" in French) must not push the
   button past the search bar's own box on narrow viewports — the input
   above already has min-width:0 to shrink for it. */
@media (max-width: 420px) {
  .search-bar { padding: 0.35rem 0.35rem 0.35rem 0.85rem; }
  .search-bar .btn { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
}

.category-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.category-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fed-border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fed-text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.category-pill:hover { border-color: var(--fed-primary); color: var(--fed-primary); }
.category-pill.active {
  background: var(--fed-primary);
  color: #fff;
  border-color: var(--fed-primary);
}

/* ================== PROFILE (700px constrained) ================== */
.profile-wrap {
  max-width: var(--fed-profile-max);
  margin: 0 auto;
  padding: 0 1rem;
}
.profile-cover {
  height: 220px;
  border-radius: var(--fed-radius-card);
  background: linear-gradient(135deg, #0B6E4F 0%, #0f8f66 50%, #F4B400 130%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--fed-shadow-sm);
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -70px;   /* ~50% overlap of a 140px avatar */
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}
.profile-avatar-wrap .avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
  object-fit: cover;
  background: #fff;
}
.profile-avatar-wrap .verified-badge {
  position: absolute;
  right: calc(50% - 78px);
  bottom: 6px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--fed-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(11, 110, 79, 0.3);
}
.profile-identity {
  text-align: center;
  padding: 0 0.5rem;
}
.profile-identity h1 {
  font-size: 1.75rem;
  margin: 0.25rem 0 0.15rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.profile-identity .username {
  color: var(--fed-muted);
  font-size: 0.95rem;
  margin: 0;
}
.profile-mission {
  text-align: center;
  color: var(--fed-primary);
  font-weight: 600;
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  padding: 0 1rem;
  line-height: 1.45;
}
.profile-bio {
  text-align: center;
  color: var(--fed-text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0.5rem auto 1rem;
  max-width: 600px;
}
.profile-info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  color: var(--fed-muted);
  font-size: 0.88rem;
  margin: 0 auto 1rem;
}
.profile-info-row a { color: var(--fed-primary); text-decoration: none; font-weight: 500; }
.profile-info-row a:hover { text-decoration: underline; }
.profile-socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.profile-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
.profile-socials a:hover { transform: translateY(-2px); filter: brightness(1.1); }
.profile-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.profile-actions .btn-subscribe {
  min-width: 220px;
  padding: 0.85rem 2rem;
  font-size: 1.02rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(11, 110, 79, 0.28);
}

.profile-tabs {
  border-bottom: 1px solid var(--fed-border);
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.profile-tabs .nav-link {
  color: var(--fed-muted);
  font-weight: 600;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 0.85rem 1.15rem;
  background: transparent;
}
.profile-tabs .nav-link.active {
  color: var(--fed-primary);
  background: transparent;
  border-bottom-color: var(--fed-primary);
}
.profile-tabs .nav-link:hover { color: var(--fed-primary); }

/* ================== TIERS ================== */
.tier-card {
  padding: 1.75rem 1.5rem;height: 100%;
  display: flex; flex-direction: column;
  border: 1px solid var(--fed-border);
}
.tier-card .tier-name {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fed-muted); margin-bottom: 0.25rem;
}
.tier-card .price { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
.tier-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--fed-muted); }
.tier-card ul { list-style: none; padding: 0; margin: 1.25rem 0; }
.tier-card ul li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.4rem 0; font-size: 0.92rem;
}
.tier-card ul li i { color: var(--fed-primary); margin-top: 0.2rem; }
.tier-card .btn { margin-top: auto; }
.tier-card.featured {
  background: linear-gradient(180deg, #F0F9F4, #FFFFFF 40%);
  border: 2px solid var(--fed-primary);
  box-shadow: var(--fed-shadow-lg);
  position: relative;overflow: visible;margin-top: 1rem;
}
.tier-card.featured .popular-tag {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  background: var(--fed-primary); color: #fff;
  padding: 0.45rem 1.05rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(11, 110, 79, 0.35);
  white-space: nowrap; z-index: 3;
}

/* ================== TIMELINE (history) ================== */
.history-timeline { position: relative; padding: 2rem 0; }
.history-timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; background: var(--fed-border); transform: translateX(-50%);
}
.history-item {
  width: 50%; padding: 1rem 2rem; position: relative;
}
.history-item:nth-child(odd)  { margin-left: 0; text-align: right; }
.history-item:nth-child(even) { margin-left: 50%; }
.history-item .year {
  display: inline-block;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: var(--fed-primary-soft); color: var(--fed-primary);
  font-weight: 700; font-size: 0.85rem;
}
.history-item h4 { margin-top: 0.65rem; font-size: 1.15rem; }
.history-item p { color: var(--fed-muted); margin: 0; font-size: 0.95rem; }
.history-item::before {
  content: ''; position: absolute; top: 1.5rem; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 4px solid var(--fed-primary);
}
.history-item:nth-child(odd)::before  { right: -8px; }
.history-item:nth-child(even)::before { left: -8px; }
@media (max-width: 767.98px) {
  .history-timeline::before { left: 12px; }
  .history-item, .history-item:nth-child(odd), .history-item:nth-child(even) {
    width: 100%; margin-left: 0; text-align: left; padding-left: 2.25rem;
  }
  .history-item::before, .history-item:nth-child(odd)::before, .history-item:nth-child(even)::before { left: 4px; right: auto; }
}

/* Comparison boxes */
.compare-box {
  padding: 1.5rem;border-radius: var(--fed-radius-card);background: #fff;
  border: 1px solid var(--fed-border);box-shadow: var(--fed-shadow-sm);
}
.compare-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--fed-primary); font-weight: 700;
}

/* ================== MANIFESTO SCRIPT LINES (one line per PDF line) ================== */
.history-item .script-line {
  margin: 0 0 0.55rem;
  color: var(--fed-text);
}
.history-item .script-line:last-child { margin-bottom: 0; }
.history-item .script-line.script-pause {
  color: var(--fed-muted);
  font-style: italic;
}
.history-item .script-line.script-note {
  color: var(--fed-muted);
  font-size: 0.85rem;
  font-style: italic;
  padding-left: 0.75rem;
  border-left: 2px solid var(--fed-border-strong);
}

/* ================== PROFILE HEADER (myOgaCore page/_PageHeaderPartial inspired) ================== */
.profile-header-row {
  display: flex;align-items: flex-start;gap: 1.25rem;margin-bottom: 1.5rem;
}
.profile-avatar-box {
  width: 108px; height: 108px; flex: 0 0 auto;
  border-radius: var(--fed-radius-card);
  background-size: cover; background-position: center;
  background-color: var(--fed-bg);
  border: 1px solid var(--fed-border);
  box-shadow: var(--fed-shadow-sm);position: relative;
}
.profile-avatar-box .verified-badge {
  position: absolute; right: -6px; bottom: -6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--fed-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; font-size: 0.85rem;
}
.profile-name { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; }
.profile-tagline { color: var(--fed-primary); font-weight: 600; font-size: 0.92rem; margin: 0.1rem 0 0; }
.profile-tags {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  color: var(--fed-muted); font-size: 0.86rem; font-weight: 600; margin-top: 0.5rem;
}
.profile-tags span:not(:last-child)::after { content: "•"; margin-left: 0.5rem; color: var(--fed-border-strong); }
.profile-rating { color: var(--fed-accent); font-size: 0.82rem; letter-spacing: 2px; }
.profile-socials-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.profile-stats-box {
  border: 1px solid var(--fed-border); border-radius: var(--fed-radius-card);
  overflow: hidden; margin-bottom: 1.75rem; background: #fff;
}
.stats-summary {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.15rem; background: transparent; border: 0; cursor: pointer;
}
.stats-summary-cols { display: flex; gap: 1.75rem; }
.stat-col { text-align: left; }
.stat-col strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--fed-text); }
.stat-col small { color: var(--fed-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; }
.stats-arrow { transition: transform 0.2s ease; color: var(--fed-muted); }
.profile-stats-box.open .stats-arrow { transform: rotate(180deg); }
.stats-details { display: none; border-top: 1px solid var(--fed-border); }
.profile-stats-box.open .stats-details { display: block; }
.stats-details-row { padding: 0.7rem 1.15rem; border-top: 1px solid var(--fed-border); font-size: 0.88rem; }
.stats-details-row:first-child { border-top: 0; }
.stats-details-row a { display: flex; align-items: center; gap: 0.5rem; color: var(--fed-text); text-decoration: none; text-transform: capitalize; }
.stats-details-row a:hover { color: var(--fed-primary); }
@media (max-width: 575.98px) {
  .profile-header-row { flex-direction: column; align-items: center; text-align: center; }
  .profile-tags { justify-content: center; }
}

/* ================== CATEGORIES BAR (my-oga.com/h/browse inspired) ================== */
.categories-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}
.categories-wrapper .category-pills {
  flex: 1 1 auto;flex-wrap: nowrap;overflow-x: auto;overflow-y: hidden;
  white-space: nowrap;padding-bottom: 6px;scrollbar-width: thin;
}
.categories-wrapper .category-pills::-webkit-scrollbar { height: 6px; }
.categories-wrapper .category-pills::-webkit-scrollbar-thumb { background: var(--fed-border-strong); border-radius: 20px; }
.categories-wrapper .category-pill { display: inline-block; }
.category-tools { position: relative; flex: 0 0 auto; }
.sort-btn {
  width: 42px; height: 42px; border-radius: var(--fed-radius-input);
  border: 1px solid var(--fed-border); background: #fff; color: var(--fed-text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--fed-shadow-sm); transition: border-color .15s ease, color .15s ease;
}
.sort-btn:hover, .sort-btn.active { border-color: var(--fed-primary); color: var(--fed-primary); }
.sort-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 230px; background: #fff; border: 1px solid var(--fed-border);
  border-radius: var(--fed-radius-card); overflow: hidden; z-index: 50;
  box-shadow: var(--fed-shadow-lg);
}
.sort-menu.active { display: block; }
.sort-menu .sort-title {
  padding: 0.85rem 1rem; font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--fed-muted);
  border-bottom: 1px solid var(--fed-border);
}
.sort-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; color: var(--fed-text); font-size: 0.92rem; font-weight: 500;
}
.sort-menu a:hover { background: var(--fed-primary-soft); color: var(--fed-primary); }
.sort-menu a.active { color: var(--fed-primary); font-weight: 700; }
@media (max-width: 575.98px) {
  .categories-wrapper { grid-template-columns: 1fr auto; }
}

/* ================== REASON BOXES (Become a Federalist / Federator) ================== */
.reason-grid {
  display: grid;grid-template-columns: repeat(2, 1fr);gap: 1rem;
}
.reason-box {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--fed-radius-card);
  padding: 1.35rem 1.5rem;
}
.reason-box .reason-index {
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.reason-box h5 {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
.reason-box p {
  color: #fff;
  opacity: 0.82;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 767.98px) {
  .reason-grid { grid-template-columns: 1fr; }
}

/* ================== LANG TOGGLE (Manifesto) ================== */
.lang-btn.active {
  background: var(--fed-primary);
  border-color: var(--fed-primary);
  color: #fff;
}

/* ================== OBJECTIVES ================== */
.objective-card {
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.objective-card:hover { transform: translateY(-3px); box-shadow: var(--fed-shadow-lg); }
.objective-card .obj-index {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--fed-primary-soft); color: var(--fed-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem;
}
.home-objective-card .obj-index {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--fed-primary-soft); color: var(--fed-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; margin-bottom: 1rem;
}
.objective-card h4 { font-size: 1.15rem; }

/* ================== AUTH ================== */
.auth-shell {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 1rem;
}
.auth-card {
  width: 100%; max-width: 480px;
  padding: 2.25rem;
}
.auth-card .brand-lockup {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.auth-card .auth-tabs .nav-link {
  color: var(--fed-muted); font-weight: 600; border-radius: 999px;
  padding: 0.55rem 1rem;
}
.auth-card .auth-tabs .nav-link.active {
  background: var(--fed-primary); color: #fff;
}
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid var(--fed-border); background: #fff;
  border-radius: var(--fed-radius-btn); padding: 0.7rem 1rem;
  font-weight: 600; font-size: 0.9rem; color: var(--fed-text);
  width: 100%;
}
.social-btn:hover { background: var(--fed-bg); }
.divider-or {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--fed-muted); font-size: 0.85rem; margin: 1rem 0;
}
.divider-or::before, .divider-or::after {
  content: ''; flex: 1; height: 1px; background: var(--fed-border);
}

/* ================== PAYMENT MODAL ================== */
.pay-option {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--fed-border);
  border-radius: var(--fed-radius-input);
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}
.pay-option:hover { border-color: var(--fed-primary); background: var(--fed-primary-soft); }
.pay-option.selected { border-color: var(--fed-primary); background: var(--fed-primary-soft); }
.pay-option .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--fed-bg); color: var(--fed-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.pay-option .name { font-weight: 700; font-size: 0.95rem; margin: 0; }
.pay-option .desc { color: var(--fed-muted); font-size: 0.82rem; margin: 0; }

.step-dots { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.step-dots .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--fed-bg); color: var(--fed-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; border: 1px solid var(--fed-border);
}
.step-dots .dot.active { background: var(--fed-primary); color: #fff; border-color: var(--fed-primary); }
.step-dots .dot.done { background: var(--fed-primary); color: #fff; border-color: var(--fed-primary); }
.step-dots .step-bar { flex: 1; height: 3px; background: var(--fed-border); border-radius: 999px; }
.step-dots .step-bar.done { background: var(--fed-primary); }

.operator-tile {
  border: 1.5px solid var(--fed-border);
  border-radius: var(--fed-radius-input);
  padding: 0.85rem;
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}
.operator-tile:hover { border-color: var(--fed-primary); }
.operator-tile.selected { border-color: var(--fed-primary); background: var(--fed-primary-soft); }
.operator-tile .logo {
  width: 46px; height: 46px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 0.75rem; text-align: center;
}

/* ================== FOOTER ================== */
.fed-footer {
  background: #101418;
  color: #ADB5BD;
  padding: 4rem 0 1.5rem;
  margin-top: 5rem;
}
.fed-footer h6 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}
.fed-footer a {
  color: #ADB5BD;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}
.fed-footer a:hover { color: #fff; }
.fed-footer .footer-brand {
  color: #fff; font-weight: 800; font-size: 1.4rem;
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
}
.fed-footer .footer-brand .brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--fed-primary), #0f8f66); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.fed-footer .socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: #ADB5BD;
}
.fed-footer .socials a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.fed-footer .copy { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem; margin-top: 2rem; font-size: 0.85rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-title { font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.section-sub   { color: var(--fed-muted); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Skeleton loader */
.skeleton { background: linear-gradient(90deg, #eef0f2 25%, #f6f7f8 37%, #eef0f2 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Utility overrides */
.rounded-20 { border-radius: 20px !important; }
.rounded-15 { border-radius: 15px !important; }
.rounded-pill-fed { border-radius: 999px !important; }
.text-fed-muted { color: var(--fed-muted) !important; }

/* Mobile navbar refinements */
@media (max-width: 991.98px) {
  .fed-navbar .navbar-collapse {
    background: #fff;
    padding: 1rem;
    border-radius: 20px;
    margin-top: 0.75rem;
    box-shadow: var(--fed-shadow-md);
  }
  .fed-navbar .nav-link { padding: 0.75rem 1rem !important; }
}

/* Featured hero grid alignment */
@media (min-width: 992px) {
  .hero-fed { padding: 6rem 0 5rem; }
}


/* ================== POLISH — added on refactor pass ================== */

/* Focus rings for accessibility */
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible,
.nav-link:focus-visible, .dropdown-item:focus-visible, .category-pill:focus-visible {
  outline: 3px solid rgba(11, 110, 79, 0.28);
  outline-offset: 2px;
}

/* Language dropdown */
.fed-language .dropdown-toggle {
  background: transparent;
  color: #ADB5BD;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.fed-language .dropdown-toggle:hover,
.fed-language .dropdown-toggle:focus {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: transparent;
}
.fed-language .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--fed-border);
  box-shadow: var(--fed-shadow-md);
  padding: 0.4rem;
  min-width: 180px;
}
.fed-language .dropdown-item {
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--fed-text);
}
.fed-language .dropdown-item:hover { background: var(--fed-primary-soft); color: var(--fed-primary); }
.fed-language .dropdown-item.active,
.fed-language .dropdown-item:active { background: var(--fed-primary); color: #fff; }

/* Larger touch targets on mobile */
@media (max-width: 575.98px) {
  .btn { padding: 0.75rem 1.25rem; }
  .btn-lg { padding: 0.95rem 1.5rem; font-size: 1rem; }
  .fed-navbar .navbar-brand { font-size: 1.15rem; }
  .fed-navbar .navbar-brand small { display: none; }
  .fed-navbar .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .hero-fed { padding: 3rem 0 2.5rem; }
  .hero-fed .display-hero { font-size: 2rem; }
  .hero-fed .hero-visual { aspect-ratio: 16/12; }
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.4rem; }
  .profile-cover { height: 160px; }
  .profile-avatar-wrap { margin-top: -60px; }
  .profile-avatar-wrap .avatar { width: 120px; height: 120px; }
  .profile-avatar-wrap .verified-badge { right: calc(50% - 68px); width: 28px; height: 28px; font-size: 0.8rem; }
  .profile-identity h1 { font-size: 1.4rem; }
  .profile-actions .btn-subscribe { min-width: 0; flex: 1; }
  .fed-carousel .carousel-item { padding: 1.75rem 1.5rem; min-height: 200px; }
  .fed-carousel .carousel-item h3 { font-size: 1.15rem; }
  .stat-chip .num { font-size: 1.35rem; }
  .stat-chip { padding: 0.75rem; }
}

/* Tablet portrait */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-fed .display-hero { font-size: 2.5rem; }
  .profile-cover { height: 180px; }
}

/* Reduce huge headings hitting the viewport edge on very small phones */
@media (max-width: 360px) {
  .hero-fed .display-hero { font-size: 1.75rem; }
  .fed-navbar .navbar-brand .brand-text { font-size: 0.95rem; }
}

/* Landscape mobile — avoid tall hero */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-fed { padding: 2rem 0; }
  .profile-cover { height: 130px; }
  .profile-avatar-wrap { margin-top: -55px; }
  .profile-avatar-wrap .avatar { width: 110px; height: 110px; }
}

/* Better carousel typography contrast */
.fed-carousel .carousel-item p { font-size: 1rem; line-height: 1.5; }
.fed-carousel .carousel-control-prev, .fed-carousel .carousel-control-next { width: 8%; }
.fed-carousel .carousel-control-prev-icon, .fed-carousel .carousel-control-next-icon {
  background-size: 65%; opacity: 0.85; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

/* Card interactive hover cursor */
.card.card-interactive { cursor: default; }
.federator-card .view-profile-btn { border-radius: 10px; padding: 0.55rem 0.85rem; font-weight: 600; }

/* Refined section spacing */
.section { padding: 4.5rem 0; }
@media (min-width: 992px) { .section { padding: 5.5rem 0; } }

/* Ensure paper cards and federalist cards look consistent inside the 700px column */
.container-timeline > .card,
.profile-wrap .paper-card { max-width: 100%; }

/* Nicer image fade for hero visual on light backgrounds */
.hero-fed .hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* Search bar tweak */
.search-bar { padding: 0.35rem 0.35rem 0.35rem 1.15rem; }
.search-bar input::placeholder { color: var(--fed-muted); }

/* Category chip on federators page tweaks */
.category-pill { transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease; }
.category-pill:active { transform: scale(0.97); }

/* Tier card spacing lift so featured tag doesn't clip */
.tier-card { overflow: visible; }

/* Consistent card image radius */
.card > img:first-child { border-top-left-radius: var(--fed-radius-card); border-top-right-radius: var(--fed-radius-card); }

/* Ensure profile bio + info wrap gracefully on narrow phones */
@media (max-width: 400px) {
  .profile-info-row { gap: 0.35rem 0.9rem; font-size: 0.82rem; }
}

/* Avatar verified badge alignment fine-tune on wider viewports */
@media (min-width: 576px) {
  .profile-avatar-wrap .verified-badge { right: calc(50% - 80px); }
}
