/* ==========================================================================
   BASE
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Official kit typography: Manrope for English content. Cairo is loaded
     (see layouts/app.blade.php) for future Arabic content but isn't applied
     yet — no Arabic/RTL content exists on the site today. */
  font-family: "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) { font-family: "Cairo", "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
h1, h2, h3 { font-family: inherit; font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }
.wrap-wide { max-width: var(--wide-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; font-size: var(--fs-sm); font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

.eyebrow {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--blue); font-weight: 700;
}
.section-label {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--navy); margin: 0 0 var(--sp-2);
}
.section-sub { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--sp-5); max-width: 560px; line-height: 1.6; }
.body-text { font-size: var(--fs-base); color: var(--ink); line-height: 1.8; max-width: 680px; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
header.site-header {
  position: sticky; top: 0; z-index: 100; min-height: var(--header-h);
  display: flex; align-items: center; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 225, 236, .72);
  transition: background var(--dur-med) var(--ease), backdrop-filter var(--dur-med) var(--ease),
    border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
header.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5); width: 100%; }
.logo { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.logo-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: var(--r-md); background: var(--surface); }
.logo-mark img { width: 34px; height: 34px; object-fit: contain; }
.logo-copy { display: flex; flex-direction: column; line-height: 1.1; }
.logo-copy strong { font-size: 15px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

nav.main-nav { display: flex; gap: clamp(14px, 1.5vw, 22px); align-items: center; margin-left: auto; font-size: 13px; }
.nav-link {
  position: relative; color: var(--ink); text-decoration: none; padding: 10px 0; font-weight: 700; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--navy); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0; background: var(--blue);
  border-radius: 2px; transition: width var(--dur-med) var(--ease);
}
.nav-link.active { color: var(--blue); font-weight: 700; }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }
.nav-link--placeholder { cursor: default; }
.nav-link--placeholder:hover { color: var(--ink); }
.nav-link--placeholder::after { display: none; }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--primary); background: var(--primary); color: #fff; padding: 8px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 800; line-height: 1.25; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.nav-cta:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; font-size: 13px; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; font-family: inherit; font-size: inherit; font-weight: 700; line-height: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.nav-dropdown-toggle > svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) var(--ease); color: var(--muted); }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 48px rgba(11,27,43,.14);
  padding: 10px; min-width: 290px; z-index: 50;
}
.nav-dropdown-menu::before { position: absolute; top: -13px; left: 0; right: 0; height: 13px; content: ""; }
.nav-dropdown-menu--wide { min-width: 340px; }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 11px; padding: 11px; font-size: 13px; color: var(--ink); text-decoration: none; border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: var(--bg); color: var(--navy); }
.nav-menu-label { display: block; padding: 4px 10px 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-menu-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--blue-50); color: var(--primary); }
.nav-menu-icon svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav-item-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.nav-item-copy strong { font-size: 12px; font-weight: 800; }
.nav-item-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 600; white-space: nowrap; }

/* The account menu lives in .header-actions, at the far right of the
   header, not centered in .main-nav like the Work/Resources/Content
   dropdowns — a centered menu there would overflow off the right edge of
   the viewport, so it aligns to its own right edge instead. */
.header-actions .nav-dropdown-menu { left: auto; right: 0; transform: none; min-width: 220px; }
.nav-dropdown-menu-signout {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px; border: none; background: none;
  font-family: inherit; font-size: 13px; color: var(--ink); text-align: left; border-radius: var(--r-md); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-dropdown-menu-signout:hover { background: var(--bg); color: var(--navy); }
@media (max-width: 1180px) {
  .header-actions .nav-dropdown-menu { left: 0; right: 0; }
}

@media (max-width: 1180px) {
  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    position: absolute; top: var(--header-h); left: 0; right: 0; background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: var(--sp-4) clamp(20px, 4vw, 32px) var(--sp-6);
  }
  .nav-toggle { display: flex; }
  .nav-dropdown { width: 100%; }
  nav.main-nav > .nav-link, .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 4px; }
  .nav-link::after { display: none; }
  .nav-dropdown-menu {
    display: none; position: static; transform: none; box-shadow: none; border: 1px solid var(--line); padding: 8px;
    min-width: 0; margin: 0 0 var(--sp-2); background: var(--bg);
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: #fff; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}
@media (max-width: 560px) {
  .logo-copy small { display: none; }
  .logo-copy strong { font-size: 14px; }
  .nav-cta { padding: 9px 13px; font-size: 11px; }
}
@media (max-width: 390px) {
  .logo-copy { display: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
/* Kit spec (slide 5): pill radius, 700 weight, 14px vertical padding, and
   exactly four states — Default, Hover (Primary→Secondary), On Dark
   Surface, Disabled (40% opacity of Primary, no hover). */
.btn-primary {
  background: var(--primary); color: #fff; font-size: var(--fs-sm); font-weight: 700; padding: 14px 24px;
  border-radius: var(--r-full); border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn-primary:hover { background: var(--secondary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled, .btn-primary[disabled] {
  background: var(--primary); opacity: 0.4; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none;
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 700; padding: 14px 22px; border-radius: var(--r-full); cursor: pointer;
  background: #fff; text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }
.btn-outline:active { transform: scale(0.97); }
.btn-outline:disabled, .btn-outline[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* On Dark Surface — the kit's 4th required state, for buttons placed over
   a Primary-colored band (e.g. footer/CTA sections). Wrap the button(s) in
   an element with this class. */
.on-dark-surface .btn-primary { background: #fff; color: var(--primary); }
.on-dark-surface .btn-primary:hover { background: var(--bg); box-shadow: none; }
.on-dark-surface .btn-primary:disabled, .on-dark-surface .btn-primary[disabled] { background: #fff; opacity: 0.4; }
.on-dark-surface .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.on-dark-surface .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.on-dark-surface .btn-outline:disabled, .on-dark-surface .btn-outline[disabled] { opacity: 0.4; border-color: rgba(255, 255, 255, 0.4); background: transparent; }

.btn-text {
  color: var(--blue); font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; transition: color var(--dur-fast) var(--ease);
}
.btn-text:hover { color: var(--navy-dark); }

/* ==========================================================================
   BADGES / CHIPS
   ========================================================================== */
.badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 3px 11px;
  border-radius: var(--r-sm); letter-spacing: 0.2px;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.pending { background: var(--pending-bg); color: var(--pending-text); }

.chip {
  font-size: var(--fs-xs); padding: 6px 13px; border-radius: var(--r-full); color: var(--muted);
  border: 1px solid var(--line); cursor: pointer; background: #fff; font-weight: 600;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: #e6f1fb; color: var(--navy); border-color: var(--blue); }

.tab {
  font-size: var(--fs-sm); padding: 9px 18px; border-radius: var(--r-full); color: var(--muted);
  border: 1px solid var(--line); cursor: pointer; background: #fff; font-weight: 500;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tab:hover { border-color: var(--navy); color: var(--navy); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow-sm); transform-style: preserve-3d; will-change: transform;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.card:not(.tilting):hover { transform: translateY(-3px) scale(1.012); }

/* Kit spec (slide 8): icon + big figure + one-line label. */
.stat-tile { background: var(--surface); border-radius: var(--r-md); padding: var(--sp-5) var(--sp-4); text-align: center; transition: transform var(--dur-med) var(--ease); }
.stat-tile:hover { transform: translateY(-2px); }
.stat-tile .stat-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto var(--sp-2); border-radius: 50%; background: var(--blue-50); color: var(--navy); }
.stat-tile .num { font-size: var(--fs-2xl); font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-tile .label { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; color: #fff; font-size: var(--fs-xs); font-weight: 700;
  background: var(--navy);
}

/* ==========================================================================
   PAGE LAYOUT PRIMITIVES (reused across Home, Contact, and other pages)
   ========================================================================== */
.section-band { padding: var(--sp-20) 0; }
.section-band.surface { background: var(--surface); }
.section-band.dark { background: var(--navy); color: #eaf2ff; border-radius: var(--r-xl); }

.hero-portrait {
  width: 220px; height: 220px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); color: #eafcff; text-align: center; padding: var(--sp-5);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4);
  margin-bottom: var(--sp-6); flex-wrap: wrap;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 780px) { .grid-3 { grid-template-columns: 1fr; } }

.newsletter-block { max-width: 480px; margin: 0 auto; text-align: center; }
.newsletter-block h2 { font-size: var(--fs-xl); color: #fff; margin: var(--sp-2) 0 var(--sp-2); }
.newsletter-block p.lede { color: #c9dcf7; font-size: var(--fs-sm); margin: 0 0 var(--sp-5); }
.newsletter-block .newsletter-form { max-width: 380px; margin: 0 auto; }

/* ---------- Page title block (used by any index/detail page) ---------- */
.page-title { padding: var(--sp-10) 0 var(--sp-2); }
.page-title h1 { font-size: var(--fs-2xl); margin: 0 0 var(--sp-2); }
.page-title p { font-size: var(--fs-base); color: var(--muted); margin: 0; max-width: 520px; line-height: 1.65; }

.empty-state { text-align: center; padding: var(--sp-10) 0; color: var(--muted); font-size: var(--fs-sm); display: none; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--blue); text-decoration: none; margin: var(--sp-6) 0 var(--sp-4); font-weight: 600; }
.back-link:hover { color: var(--navy-dark); }

/* ---------- Animated underline links (prose content) ---------- */
.article-body a, .biography-body a, .body-text a, .timeline-desc a {
  color: var(--navy); text-decoration: none; padding-bottom: 1px;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size var(--dur-med) var(--ease);
}
.article-body a:hover, .biography-body a:hover, .body-text a:hover, .timeline-desc a:hover { background-size: 100% 1px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin: var(--sp-6) 0 var(--sp-4); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumbs [aria-current="page"] { overflow-wrap: break-word; min-width: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.action-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-4) 0 var(--sp-8); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--ink); margin-bottom: var(--sp-3); align-items: flex-start; line-height: 1.55; }
.info-list .ico { color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* ---------- Side card (sidebar info blocks: organizer, venue, location...) ---------- */
.side-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-4); background: #fff; }
.side-card h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.6px; color: var(--navy); margin: 0 0 var(--sp-3); font-weight: 700; }
.side-row { display: flex; gap: 10px; font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.side-row:last-child { margin-bottom: 0; }
.side-row svg { color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.side-row strong { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }

/* ---------- Full-width primary submit button (forms) ---------- */
.reg-btn {
  width: 100%; background: var(--primary); color: #fff; font-size: var(--fs-sm); font-weight: 700;
  padding: 14px 0; border: none; border-radius: var(--r-full); cursor: pointer; margin-top: var(--sp-2);
  transition: background var(--dur-fast) var(--ease); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.reg-btn:hover { background: var(--secondary); }
.reg-btn:disabled, .reg-btn[disabled] { background: var(--primary); opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.success-msg { display: none; text-align: center; padding: var(--sp-5) 4px; font-size: var(--fs-sm); color: var(--ok-text); }
.success-msg.show { display: block; animation: fadeUp var(--dur-slow) var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.success-msg .check { width: 40px; height: 40px; border-radius: 50%; background: var(--ok-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-3); }

/* ---------- Vertical timeline (career timeline, agendas, etc.) ----------
   Structural bits (.timeline, .timeline-item, ::before dot) plus the
   line-draw reveal animation are defined together further below. ---------- */
.timeline-year { font-size: var(--fs-xs); font-weight: 700; color: var(--navy); }
.timeline-title { font-size: var(--fs-sm); font-weight: 700; margin: 2px 0 3px; }
.timeline-subtitle { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 4px; }
.timeline-desc { font-size: var(--fs-sm); color: var(--ink); margin: 0; line-height: 1.6; }

/* ---------- Centered editorial text block (Home mission, About mission) ---------- */
.mission-block { max-width: 720px; margin: 0 auto; text-align: center; }
.mission-block h2 { font-size: var(--fs-2xl); margin: var(--sp-2) 0 var(--sp-4); }
.mission-block p { font-size: var(--fs-lg); color: var(--ink); line-height: 1.7; font-weight: 400; }

/* ---------- Two-column info grid (leadership/awards/memberships, etc.) ---------- */
.info-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 700px) { .info-grid-2 { grid-template-columns: 1fr; } }
.info-block h3 { font-size: var(--fs-md); font-weight: 700; margin: 0 0 var(--sp-3); }

/* ---------- Simple image gallery grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-3) var(--sp-3) var(--sp-2);
  background: linear-gradient(to top, rgba(4, 20, 40, 0.82), transparent); color: #fff; font-size: var(--fs-xs);
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  pointer-events: none;
}
.gallery-item:hover .gallery-item-caption { opacity: 1; transform: translateY(0); }

/* ---------- Search box + category filter chips (Events, Articles, Case Studies) ---------- */
.search-box { position: relative; flex: 1; max-width: 260px; margin-left: auto; }
.search-box input {
  width: 100%; padding: 10px 14px 10px 34px; border: 1px solid var(--line); border-radius: var(--r-full);
  font-size: var(--fs-sm); box-sizing: border-box; font-family: inherit;
}
.search-box input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3,125,218,0.14); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-icon svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .search-box { max-width: none; width: 100%; margin-left: 0; } }

.category-filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: 0 0 var(--sp-6); }

/* ---------- YouTube click-to-embed ---------- */
.youtube-embed {
  position: relative; background-size: cover; background-position: center; cursor: pointer;
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
}
.youtube-embed::before {
  content: ""; position: absolute; inset: 0; background: rgba(4, 20, 40, 0.28);
  transition: background var(--dur-fast) var(--ease);
}
.youtube-embed:hover::before { background: rgba(4, 20, 40, 0.15); }
.youtube-embed .play-circle { position: relative; z-index: 1; }
.youtube-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Button micro-interaction: gentle press ---------- */
.btn-primary:active, .btn-outline:active, .reg-btn:active { transform: scale(0.97); }

/* ---------- Hero portrait: soft ambient gradient movement + parallax hook ---------- */
@keyframes hero-gradient-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-portrait {
  background-size: 200% 200%;
  animation: hero-gradient-drift 12s ease-in-out infinite;
  will-change: transform;
  transition: transform 120ms linear;
}

/* ---------- Image zoom on hover (galleries, thumbnails) ---------- */
.gallery-item, .video-thumb, .youtube-embed, .org-hero-band { overflow: hidden; }
.gallery-item img {
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(10, 16, 24, 0.92); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: var(--sp-6);
  opacity: 0; transition: opacity var(--dur-med) var(--ease);
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay.show { opacity: 1; }
.lightbox-overlay img {
  max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); transform: scale(0.97); transition: transform var(--dur-med) var(--ease);
}
.lightbox-overlay.show img { transform: scale(1); }
.lightbox-caption { position: absolute; bottom: var(--sp-6); left: 0; right: 0; text-align: center; color: #fff; font-size: var(--fs-sm); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.12); border: none; color: #fff; cursor: pointer;
  border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: var(--sp-5); right: var(--sp-5); }
.lightbox-prev { left: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--sp-5); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { display: none; } }

/* ---------- Timeline line-draw reveal ---------- */
.timeline { position: relative; padding-left: var(--sp-6); }
.timeline-line {
  position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--teal), var(--navy));
  transform: scaleY(0); transform-origin: top; transition: transform 900ms var(--ease);
}
.timeline.revealed .timeline-line { transform: scaleY(1); }
.timeline-item { position: relative; margin-bottom: var(--sp-6); }
.timeline-item::before {
  content: ""; position: absolute; left: -24px; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy);
  transform: scale(0); transition: transform var(--dur-med) var(--ease);
}
.timeline.revealed .timeline-item::before { transform: scale(1); }
.timeline.revealed .timeline-item:nth-child(1)::before { transition-delay: 80ms; }
.timeline.revealed .timeline-item:nth-child(2)::before { transition-delay: 220ms; }
.timeline.revealed .timeline-item:nth-child(3)::before { transition-delay: 360ms; }
.timeline.revealed .timeline-item:nth-child(4)::before { transition-delay: 500ms; }
.timeline.revealed .timeline-item:nth-child(5)::before { transition-delay: 640ms; }
.timeline.revealed .timeline-item:nth-child(6)::before { transition-delay: 780ms; }

/* ---------- Quote wall: staggered reveal ---------- */
.quote-wall[data-reveal] .quote-card { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.quote-wall[data-reveal].revealed .quote-card { opacity: 1; transform: translateY(0); }
.quote-wall[data-reveal].revealed .quote-card:nth-child(1) { transition-delay: 0ms; }
.quote-wall[data-reveal].revealed .quote-card:nth-child(2) { transition-delay: 120ms; }
.quote-wall[data-reveal].revealed .quote-card:nth-child(3) { transition-delay: 240ms; }

/* ---------- Checkmark that draws itself (success states) ---------- */
.check-path {
  stroke-dasharray: 24; stroke-dashoffset: 24;
  animation: check-draw 500ms 150ms var(--ease) forwards;
}
@keyframes check-draw { to { stroke-dashoffset: 0; } }

/* ---------- Back-to-top button ---------- */
.back-to-top {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5); width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; box-shadow: var(--shadow-md); z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), background var(--dur-fast) var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-dark); }

/* ---------- Reading progress bar (article pages) ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--gradient-brand);
  z-index: 150; transition: width 80ms linear;
}

/* ---------- Full-width gradient quote band (reused: Home, About) ---------- */
.quote-band {
  background: var(--gradient-brand); color: #fff; padding: var(--sp-20) 0; text-align: center; position: relative; overflow: hidden;
}
.quote-band-mark { font-size: 64px; line-height: 1; opacity: 0.35; font-weight: 800; }
.quote-band-text {
  font-size: clamp(22px, 3.2vw, var(--fs-2xl)); font-weight: 700; line-height: 1.35; max-width: 780px; margin: 0 auto var(--sp-5);
  letter-spacing: -0.01em; text-wrap: balance;
}
.quote-band-source { font-size: var(--fs-sm); color: #d7f4f7; }

/* ---------- Closing CTA band (reused: Home, About) ---------- */
.cta-band { background: var(--navy); color: #eaf2ff; padding: var(--sp-16) 0; text-align: center; border-radius: var(--r-xl); }
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); margin: var(--sp-2) 0 var(--sp-4); }
.cta-band p { color: #c9dcf7; max-width: 520px; margin: 0 auto var(--sp-6); font-size: var(--fs-base); }
.cta-band-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Blurred decorative blobs (very low opacity, purely ambient) ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.22; pointer-events: none; z-index: 0; }
.blob.blob-teal { background: var(--teal); }
.blob.blob-blue { background: var(--blue); }
.blob.blob-navy { background: var(--navy); }
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -16px) scale(1.06); }
}
.blob { animation: blob-drift 14s ease-in-out infinite; }

/* ---------- Glass card (org cards, credential cards on premium sections) ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}

/* ---------- Magazine-style alternating image/text section.
   Order which column comes first directly in markup (not with CSS
   direction tricks) so DOM/reading order always matches the visuals. ---------- */
.magazine-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); align-items: center; }
@media (max-width: 780px) { .magazine-row { grid-template-columns: 1fr; } }
.magazine-visual {
  aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; position: relative;
}
.magazine-visual img { width: 100%; height: 100%; object-fit: cover; }
.magazine-kicker { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--blue); margin-bottom: var(--sp-3); display: block; }
.magazine-row h3 { font-size: var(--fs-xl); font-weight: 800; margin: 0 0 var(--sp-3); letter-spacing: -0.01em; }
.magazine-row p { font-size: var(--fs-base); color: var(--ink); line-height: 1.75; margin: 0 0 var(--sp-4); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-8); }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0 10px;
  border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .active span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled { color: var(--muted); }

/* ==========================================================================
   ACTION MENU (calendar / share dropdowns on cards — reuses the generic
   [data-dropdown] JS behavior from site.js)
   ========================================================================== */
.action-menu { position: relative; display: inline-block; }
.action-menu-list {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 6px; z-index: 20; min-width: 170px;
}
.action-menu.open .action-menu-list { display: block; }
.action-menu-list button, .action-menu-list a {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: none;
  padding: 8px 10px; font-size: var(--fs-sm); color: var(--ink); border-radius: var(--r-sm); cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}
.action-menu-list button:hover, .action-menu-list a:hover { background: var(--surface); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 5px; font-weight: 600; }
/* Kit spec (slide 12): 10px radius, 1px Border stroke, Background fill,
   15% opacity Primary focus ring — never remove focus states. */
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); font-size: var(--fs-sm); box-sizing: border-box; font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(4, 81, 203, 0.15);
}
.field input.error, .field select.error, .field textarea.error { border-color: var(--warn-text); }
.field-error { font-size: 10px; color: var(--warn-text); margin-top: 4px; display: none; }
.field-error.show { display: block; }
.field-note { font-size: 10px; color: var(--muted); margin-top: 4px; }
.field-checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--sp-2); line-height: 1.5; }
.field-checkbox input { width: auto; margin-top: 2px; }
.field-checkbox a { color: var(--blue); text-decoration: underline; }

.spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: none;
}
.spinner.show { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   NEWSLETTER (shared partial, used in footer + homepage section)
   ========================================================================== */
.newsletter-form { display: flex; gap: 10px; margin-bottom: var(--sp-3); }
.newsletter-form.is-subscribed { display: none !important; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 11px 18px; border-radius: var(--r-full); border: 1px solid var(--line);
  font-size: var(--fs-sm); font-family: inherit;
}
.newsletter-form button {
  background: var(--navy-dark); color: #fff; border: none; border-radius: var(--r-full); padding: 0 20px;
  font-size: var(--fs-sm); font-weight: 700; cursor: pointer; transition: background var(--dur-fast) var(--ease);
}
.newsletter-form button:hover { background: #022c73; }
.newsletter-success { display: none; font-size: var(--fs-sm); color: var(--ok-text); }

/* On dark (navy) surfaces — the homepage's dark Newsletter section — invert field styling.
   The footer itself is now a light surface (see FOOTER above), so it uses the default
   light input styling and no longer needs this override. */
.on-dark .newsletter-form input {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
}
.on-dark .newsletter-form input::placeholder { color: #D7E1EC}
.on-dark .newsletter-form input:focus { outline: 2px solid var(--teal); background: rgba(255, 255, 255, 0.1); }
.on-dark .newsletter-form button { background: var(--teal); color: #04303a; }
.on-dark .newsletter-form button:hover { filter: brightness(1.08); }
.on-dark .newsletter-success { color: #b7f4e0; }
.on-dark .newsletter-note { color: #D7E1EC; }

/* ==========================================================================
   REVEAL-ON-SCROLL
   ========================================================================== */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  position: relative; overflow: hidden; margin-top: var(--sp-20); border-top: 0;
  background: #0B1B2B; color: #fff;
}
footer.site-footer::before {
  position: absolute; top: -180px; right: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(5, 199, 216, 0.08); content: ""; pointer-events: none;
}
.footer-cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8);
  padding-block: var(--sp-12); border-bottom: 1px solid rgba(215, 225, 236, 0.16);
}
.footer-eyebrow {
  display: block; margin-bottom: var(--sp-2); color: var(--teal); font-size: 12px;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.footer-cta h2 { max-width: 700px; margin: 0; color: #fff; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.footer-cta p { max-width: 690px; margin: var(--sp-3) 0 0; color: #D7E1EC; font-size: var(--fs-sm); line-height: 1.7; }
.footer-cta-button {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 14px 22px; border-radius: var(--r-full); background: #fff;
  color: var(--navy); font-size: var(--fs-sm); font-weight: 800; text-decoration: none;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer-cta-button:hover { background: var(--teal); color: #0B1B2B; transform: translateY(-2px); }
.footer-main {
  position: relative; display: grid;
  grid-template-columns: minmax(260px, 1.5fr) .75fr 1fr minmax(260px, 1.25fr);
  gap: clamp(28px, 4vw, 64px); padding-block: var(--sp-12);
}
.footer-about { min-width: 0; }
.footer-brand {
  display: inline-flex; align-items: center; gap: var(--sp-3); color: #fff; font-size: 18px;
  font-weight: 800; letter-spacing: -.02em; text-decoration: none;
}
.footer-brand-mark {
  display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md); background: #fff;
}
.footer-brand-mark img { width: 32px; height: 32px; object-fit: contain; }
.footer-desc { max-width: 390px; margin: var(--sp-4) 0 var(--sp-5); color: #D7E1EC; font-size: 14px; line-height: 1.75; }
.footer-email {
  display: inline-flex; align-items: center; gap: var(--sp-2); color: #fff; font-size: 13px;
  font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
}
.footer-email svg { color: var(--teal); flex: 0 0 auto; }
.footer-email:hover { color: var(--teal); }
.footer-col h3, .footer-newsletter h3 {
  margin: 0 0 var(--sp-4); color: #fff; font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.footer-col a {
  display: block; width: fit-content; margin-bottom: 11px; color: #D7E1EC; font-size: 13px;
  line-height: 1.5; text-decoration: none;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--teal); transform: translateX(3px); }
.footer-newsletter > p { margin: 0 0 var(--sp-4); color: #D7E1EC; font-size: 13px; line-height: 1.65; }
.site-footer .newsletter-form {
  display: flex; gap: var(--sp-2); padding: 5px; border: 1px solid rgba(215,225,236,.24);
  border-radius: var(--r-full); background: rgba(255,255,255,.07);
}
.site-footer .newsletter-form input {
  min-width: 0; flex: 1; padding: 10px 8px 10px 14px; border: 0; outline: 0;
  background: transparent; color: #fff; font: inherit; font-size: 13px;
}
.site-footer .newsletter-form input::placeholder { color: rgba(215,225,236,.65); }
.site-footer .newsletter-form:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5,199,216,.14); }
.site-footer .newsletter-form button {
  flex: 0 0 auto; padding: 10px 16px; border: 0; border-radius: var(--r-full);
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer;
}
.site-footer .newsletter-form button:hover { background: var(--blue); }
.site-footer .newsletter-note { color: rgba(215,225,236,.68) !important; line-height: 1.5; }
.site-footer .newsletter-success { color: var(--teal) !important; }
.footer-bottom-wrap { border-top: 1px solid rgba(215,225,236,.14); background: rgba(0,0,0,.12); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding-block: var(--sp-5); color: rgba(215,225,236,.72); font-size: 12px;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer-bottom-links a { color: rgba(215,225,236,.8); text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; }

@media (max-width: 980px) {
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-newsletter { grid-column: 1 / -1; max-width: 540px; }
}
@media (max-width: 700px) {
  .footer-cta { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-about, .footer-newsletter { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-about, .footer-newsletter { grid-column: auto; }
  .footer-cta-button { width: 100%; }
  .site-footer .newsletter-form { align-items: stretch; border-radius: var(--r-md); flex-direction: column; }
  .site-footer .newsletter-form button { width: 100%; }
  .footer-bottom-links { gap: var(--sp-3); flex-direction: column; }
}

/* ==========================================================================
   PLACEHOLDER / CONFIRM MARKERS
   (used across pages wherever real content is pending verification)
   ========================================================================== */
.confirm-note {
  font-size: var(--fs-sm); color: var(--warn-text); background: var(--warn-bg); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); line-height: 1.55;
}
.placeholder-block {
  border: 1px dashed var(--muted); border-radius: var(--r-lg); padding: var(--sp-5); text-align: center;
  font-size: var(--fs-sm); color: var(--muted); margin: var(--sp-6) 0 var(--sp-2); line-height: 1.6;
}

/* ==========================================================================
   FEED (lightweight social-style posts — homepage feed + /posts page)
   ========================================================================== */
.feed-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); max-width: 620px; }

/* ---------- Homepage section header — sans-serif, matches the rest of
   this design system. Do not use the serif .cine-section-h2 here. ---------- */
.feed-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-5); flex-wrap: wrap; gap: var(--sp-3); }
.feed-section-kicker { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--blue-800); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.feed-section-h2 { font-family: inherit; font-size: 27px; font-weight: 600; margin: 0; color: var(--ink); }

/* ---------- Homepage asymmetric grid: one wide featured post + a
   narrower column stacking the next two, echoing the Events "next event
   + list" pattern instead of a plain single-column stack. ---------- */
.feed-asym-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-4); align-items: start; }
.feed-asym-side { display: flex; flex-direction: column; gap: var(--sp-4); }
@media (max-width: 780px) { .feed-asym-grid { grid-template-columns: 1fr; } }

.feed-post {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5);
  background: #fff; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
/* .card's hover lift (translateY + scale, from site.css's generic card component) reads as
   too much movement across a whole scrolling feed of these — keep the border/shadow feedback
   from .card:hover but drop the actual lift for feed posts specifically. */
.feed-post.card:hover { transform: none; }
/* The share menu pops up above the card and needs to render outside the card's
   rounded corner — overflow:hidden above exists only to clip the featured-post
   accent shape, so it's relaxed just while the menu is actually open. */
/* The card's hover tilt/scale (.card:not(.tilting):hover, above) forces this
   subtree onto a GPU layer at a fractional scale, which is what was making
   the share menu's text render blurry — cancel it while the menu is open. */
.feed-post.share-open { overflow: visible; transform-style: flat; will-change: auto; }
.feed-post.share-open:hover { transform: none; }
.feed-post-featured { padding: var(--sp-6); }
.feed-post-accent { position: absolute; top: 0; right: 0; width: 220px; height: 90px; opacity: 0.9; pointer-events: none; }
.feed-post-head { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-3); position: relative; z-index: 1; }
.feed-post-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue-800);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-xs); flex-shrink: 0;
}
.feed-post-avatar-sm { width: 32px; height: 32px; font-size: 11px; }
.feed-post-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-post-author { font-weight: 700; margin: 0; line-height: 1.3; font-size: var(--fs-sm); }
.feed-post-time { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.feed-post-pin {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--blue-800);
  background: var(--blue-50); padding: 4px 10px; border-radius: var(--r-full); flex-shrink: 0;
}
.feed-post-pin svg { width: 14px; height: 14px; }
.feed-post-body { white-space: pre-line; line-height: 1.65; margin: 0 0 var(--sp-3); font-size: var(--fs-base); color: var(--ink); position: relative; z-index: 1; }
.feed-post-compact .feed-post-body { font-size: var(--fs-sm); }
.feed-post-media { border-radius: var(--r-md); overflow: hidden; margin-top: var(--sp-3); background: var(--surface); position: relative; z-index: 1; }
.feed-post-media img { width: 100%; display: block; max-height: 420px; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.feed-post-compact .feed-post-media img { max-height: 160px; }
.feed-post:hover .feed-post-media img { transform: scale(1.02); }
.feed-post-video-link, .feed-post-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; margin-top: var(--sp-3);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  position: relative; z-index: 1;
}
.feed-post-video-link:hover, .feed-post-link:hover { border-color: var(--blue-800); color: var(--blue-800); background: var(--surface); }
.feed-post-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.feed-load-more { text-align: center; margin-top: var(--sp-6); }
.feed-load-more .btn-outline:disabled { opacity: 0.4; cursor: default; }
.posts-load-more-btn { border-color: var(--blue-200); color: var(--blue-800); }
.posts-load-more-btn:hover { border-color: var(--blue-800); color: var(--blue-800); }

/* ---------- /posts page banner — compact diagonal-accent header, not a
   full hero (this is a listing page). ---------- */
.posts-banner {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--blue-800); min-height: 140px; padding: var(--sp-6);
  display: flex; align-items: center; margin: var(--sp-8) 0 var(--sp-2);
}
.posts-banner-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.posts-banner-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; width: 100%; }
.posts-banner-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 6px; }
.posts-banner-content h1 { font-size: var(--fs-h3); font-weight: 800; color: #fff; margin: 0; line-height: 1.2; }
.posts-banner-content p { font-size: var(--fs-sm); color: var(--blue-100); margin: 6px 0 0; }
.posts-banner-actions { display: flex; gap: var(--sp-2); flex-shrink: 0; flex-wrap: wrap; }
/* Kit buttons lift on hover (site-wide, .btn-primary:hover/.btn-outline:active) — too much
   movement for these two hero CTAs sitting right next to static text; keep the color/shadow
   feedback but drop the translate/scale here specifically. */
.posts-banner-actions .btn-primary:hover,
.posts-banner-actions .btn-outline:hover,
.posts-banner-actions .btn-primary:active,
.posts-banner-actions .btn-outline:active { transform: none; }
@media (max-width: 700px) { .posts-banner-content { flex-direction: column; align-items: flex-start; } }

/* ---------- /posts page layout: feed centered at near-full width, filter
   as a sticky nav bar under the hero, sign-in as a dismissible corner toast ---------- */
.posts-main { max-width: 1080px; margin: 0 auto; }
.posts-main .feed-list { max-width: none; display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (max-width: 700px) { .posts-main .feed-list { grid-template-columns: 1fr; } }

.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); }
.sidebar-card h4 { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 var(--sp-3); }
.sidebar-chip-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.posts-filter-widget {
  position: sticky; top: var(--header-h); z-index: 20;
  margin: 0 0 var(--sp-6); border-radius: var(--r-lg);
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
}
.posts-filter-widget h4 { margin: 0; flex-shrink: 0; }
@media (max-width: 640px) { .posts-filter-widget { flex-direction: column; align-items: flex-start; } }

.posts-signin-toast {
  position: fixed; right: var(--sp-6); bottom: var(--sp-6); z-index: 30; width: 300px;
  background: var(--blue-800); color: #fff; border-radius: var(--r-lg); padding: var(--sp-4);
  box-shadow: var(--shadow-lg);
}
.posts-signin-toast[hidden] { display: none; }
.posts-signin-toast h4 { color: var(--blue-100); margin: 0 0 var(--sp-2); }
.posts-signin-toast p { font-size: var(--fs-sm); color: var(--blue-100); line-height: 1.6; margin: 0 0 var(--sp-3); }
.posts-signin-toast .btn-outline { width: 100%; justify-content: center; }
.posts-signin-toast .btn-outline:active { transform: none; }
.posts-signin-toast-close {
  position: absolute; top: var(--sp-2); right: var(--sp-2); background: none; border: none; cursor: pointer;
  color: var(--blue-100); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.posts-signin-toast-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.posts-signin-toast-close svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .posts-signin-toast { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); width: auto; } }

/* ---------- feed-post extensions: topic tag, title, "Read story", unified engagement footer ---------- */
.feed-post-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; background: var(--blue-50); color: var(--blue-800); padding: 4px 10px; border-radius: var(--r-sm); margin-bottom: var(--sp-2); }
.feed-post-title { font-size: var(--fs-lg); font-weight: 800; margin: 0 0 var(--sp-2); line-height: 1.3; }
.feed-post-title a { color: inherit; text-decoration: none; }
.feed-post-title a:hover { color: var(--primary); }
.feed-post-read-link { margin-bottom: var(--sp-2); }

.feed-post-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: var(--sp-3); padding-top: var(--sp-3); position: relative; z-index: 1; }
.feed-post-actions { display: flex; align-items: center; gap: var(--sp-5); }
.feed-post-action { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); padding: 0; }
.feed-post-action svg { width: 20px; height: 20px; }
.feed-post-action .count { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.feed-post-action:hover { color: var(--primary); }
.feed-post-action.liked { color: var(--primary); }
.feed-post-action.liked svg { fill: var(--primary); stroke: var(--primary); }

.feed-post-signin { display: none; align-items: center; gap: 8px; margin-top: var(--sp-3); font-size: 12.5px; color: var(--muted); background: var(--bg); padding: var(--sp-3); border-radius: var(--r-sm); border: 1px solid var(--line); }
.feed-post-signin.show { display: flex; }
.feed-post-signin a { color: var(--primary); font-weight: 700; }

.feed-post-share-wrap { position: relative; }
/* top/left are set inline by feed-post-scripts.blade.php every time the menu
   opens — position:fixed + viewport-coordinate math (with boundary flipping)
   replaces a static bottom/right offset that used to overlap post content on
   long posts and clip off-screen near the viewport edge. z-index is above
   .posts-signin-toast's 30 so an open share menu — the user's active focus —
   never ends up hidden behind that fixed corner widget. */
.feed-post-share-menu {
  display: none; position: fixed; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4);
  box-shadow: var(--shadow-md); width: min(280px, calc(100vw - 2 * var(--sp-4)));
}
.feed-post-share-menu.open { display: block; }
.feed-post-share-platforms { display: flex; gap: 6px; margin-bottom: var(--sp-3); flex-wrap: wrap; }
.feed-post-share-platforms a {
  flex: 1; min-width: 56px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #fff; font-size: 11.5px; font-weight: 700; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.feed-post-share-platforms a:hover { border-color: var(--primary); color: var(--primary); background: var(--bg); }
.feed-post-share-copy-row { display: flex; gap: 6px; }
.feed-post-share-copy-row input { flex: 1; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 9px; font-size: 11px; color: var(--muted); background: var(--bg); }
.feed-post-share-copy-row button { background: var(--ink); color: #fff; border: none; border-radius: var(--r-sm); padding: 0 12px; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }

.feed-post-share-preview-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: var(--sp-3) 0 6px; display: block; }
.feed-post-share-preview { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.feed-post-share-preview-img { height: 70px; background: linear-gradient(135deg, var(--blue-50), var(--blue-200)); background-size: cover; background-position: center; }
.feed-post-share-preview-body { padding: var(--sp-2) var(--sp-3); background: var(--bg); }
.feed-post-share-preview-title { font-size: 12px; font-weight: 800; margin-bottom: 3px; line-height: 1.3; color: var(--ink); }
.feed-post-share-preview-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }
.feed-post-share-preview-domain { font-size: 9.5px; color: var(--muted); text-transform: uppercase; margin-top: 5px; display: block; font-weight: 700; }

/* ---------- post detail page ---------- */
.post-detail-wrap { margin-top: var(--sp-8); }
.post-detail-back { display: inline-block; margin-bottom: var(--sp-4); }
.post-detail-comments { margin-top: var(--sp-6); }
.post-detail-comments h2 { font-size: var(--fs-lg); font-weight: 800; margin: 0 0 var(--sp-4); }
.comment-item { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.comment-item:first-child { border-top: none; }
.comment-item-body { flex: 1; }
.comment-item-author { font-weight: 700; font-size: var(--fs-sm); margin: 0; }
.comment-item-text { font-size: var(--fs-sm); color: var(--ink); margin: 2px 0 0; line-height: 1.6; }
.comment-form { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); align-items: flex-start; }
.comment-form textarea {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg);
  padding: var(--sp-3); font-family: inherit; font-size: var(--fs-base); resize: none; min-height: 48px; color: var(--ink);
}
.comment-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(4,81,203,0.15); }
