/* ═══════════════════════════════════════════════════════════════
   LETLOU ENERGY — INTELLIGENCE & UPDATES (news.html)
   Page-scoped styles only. No resets, no body overrides.
   All colour, shadow, font, and transition values from
   LetlouGlobal.css design tokens.
   ═══════════════════════════════════════════════════════════════ */

/* ── Page shell — sets --sh-image so the section-header parallax
   background resolves correctly. Mirrors the pattern used by
   #about, #services, #experience etc. on index.html. ── */
#news {
  --sh-image: url('../assets/images/03-sections/05-news/parallex-news.webp');
  overflow-x: clip;
}


/* ══════════════════════════════════════════════════════════════
   NEWS TICKER
   Horizontally scrolling strip of article headlines.
   JS duplicates the inner items for a seamless CSS loop.
   ══════════════════════════════════════════════════════════════ */

.news-ticker {
  background: var(--color-navy-deep);
  border-top: 1px solid color-mix(in srgb, var(--color-amber) 15%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-amber) 15%, transparent);
  overflow: hidden;
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
}

/* Fade masks at both edges */
.news-ticker::before,
.news-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.news-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--color-navy-deep), transparent);
}

.news-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--color-navy-deep), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* -50% because JS doubles the items */
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-play-state: paused; }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 2.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: color-mix(in srgb, white 70%, transparent);
  letter-spacing: 0.01em;
  border-right: 1px solid color-mix(in srgb, var(--color-amber) 18%, transparent);
  line-height: 1;
}

.ticker-item i {
  color: var(--color-amber);
  font-size: 0.72rem;
  opacity: 0.85;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════
   SPACERS
   Visual breathing room between the ticker, repo, and CTA band.
   ══════════════════════════════════════════════════════════════ */

.spacer-ticker-repo {
  height: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-off-white);
}

.spacer-repo-cta {
  height: clamp(2rem, 4vw, 3.5rem);
  background: var(--color-off-white);
}


/* ══════════════════════════════════════════════════════════════
   REPO LAYOUT — single column (sidebar removed)
   ══════════════════════════════════════════════════════════════ */

.repo-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-off-white);
  overflow-x: clip;
}

@media (min-width: 1400px) {
  .repo-layout { max-width: 1400px; }
}


/* ══════════════════════════════════════════════════════════════
   FILTER BAR
   Sticky horizontal bar replacing the sidebar.
   ── Structure ──
     .repo-filter-bar
       .repo-filter-bar__pills     ← discipline pill buttons (JS)
       .repo-filter-bar__divider
       .repo-filter-bar__year      ← year <select>
       .repo-filter-bar__search    ← search (icon → field on mobile)
   ══════════════════════════════════════════════════════════════ */

.repo-filter-bar {
  position: sticky;
  top: var(--header-height, 68px);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-border-soft);
  /* Subtle top shadow to separate from content when scrolled */
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-navy) 4%, transparent);
}

/* ── Discipline pills ── */
.repo-filter-bar__pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Fade edges to hint scrollability */
  mask-image: linear-gradient(to right, transparent 0, black 8px, black calc(100% - 8px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8px, black calc(100% - 8px), transparent 100%);
  padding: 2px 8px; /* breathing room within mask */
}

.repo-filter-bar__pills::-webkit-scrollbar { display: none; }

/* ── Filter pill buttons (JS-generated; replaces old .filter-btn) ── */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-white);
  color: var(--color-text-mid);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-pill:hover {
  background: var(--color-amber-tint);
  color: var(--color-navy);
  border-color: var(--color-amber-border);
}

.filter-pill.active {
  background: var(--color-amber-tint);
  color: var(--color-navy);
  border-color: var(--color-amber-border);
  font-weight: 700;
}

.filter-pill:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

.filter-pill--inactive {
  opacity: 0.4;
  pointer-events: none;
}

.filter-pill .filter-count {
  font-size: 0.65rem;
  font-weight: 700;
  background: color-mix(in srgb, black 6%, transparent);
  padding: 0.05rem 0.35rem;
  border-radius: 99px;
  flex-shrink: 0;
}

.filter-pill.active .filter-count {
  background: color-mix(in srgb, var(--color-navy) 12%, transparent);
}

/* ── Divider ── */
.repo-filter-bar__divider {
  width: 1px;
  height: 22px;
  background: var(--color-border-soft);
  flex-shrink: 0;
}

/* ── Year select ── */
.repo-filter-bar__year {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-mid);
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  padding: 0.3rem 1.6rem 0.3rem 0.65rem;
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888780'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  transition: border-color var(--transition);
}

.repo-filter-bar__year:hover,
.repo-filter-bar__year:focus {
  border-color: var(--color-amber);
  outline: none;
}

/* ── Search: icon button + expandable field ── */
.repo-filter-bar__search {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Icon-only toggle button (always visible) */
.repo-filter-bar__search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border-soft);
  background: var(--color-white);
  color: var(--color-text-mid);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.repo-filter-bar__search-toggle:hover,
.repo-filter-bar__search-toggle[aria-expanded="true"] {
  background: var(--color-amber-tint);
  border-color: var(--color-amber-border);
  color: var(--color-navy);
}

.repo-filter-bar__search-toggle:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

/* Expanded search field — shown when toggle is active */
.repo-filter-bar__search-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-amber);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem 0.3rem 0.65rem;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-navy) 10%, transparent);
  z-index: 10;
  min-width: 200px;
  animation: search-field-open 0.18s ease both;
}

@keyframes search-field-open {
  from { opacity: 0; transform: translateY(-50%) scale(0.96); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

.repo-filter-bar__search-field > i {
  color: var(--color-amber);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Reuse .search-input for the text field inside the expanded panel */
.repo-filter-bar__search-field .search-input {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.82rem;
  flex: 1;
  min-width: 0;
  box-shadow: none;
}

.repo-filter-bar__search-field .search-input:focus {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.repo-filter-bar__search-close {
  background: none;
  border: none;
  color: var(--color-text-hint);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.repo-filter-bar__search-close:hover { color: var(--color-navy); }

/* On wider screens (≥560px), show search as an always-visible field instead of icon+panel */
@media (min-width: 560px) {
  .repo-filter-bar__search-toggle { display: none; }

  .repo-filter-bar__search-field {
    position: static;
    transform: none;
    animation: none;
    min-width: 160px;
    max-width: 220px;
    box-shadow: none;
    border-color: var(--color-border-soft);
  }

  .repo-filter-bar__search-field:focus-within {
    border-color: var(--color-amber);
    box-shadow: 0 0 0 3px var(--color-amber-tint);
  }

  .repo-filter-bar__search-close { display: none; }

  /* Discipline mobile select hidden on desktop */
  .repo-filter-bar__discipline-select { display: none; }
}

/* ── Mobile (≤559px): three selects in a row ── */
@media (max-width: 559px) {
  .repo-filter-bar {
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
  }

  /* Hide pill row and divider — replaced by discipline select */
  .repo-filter-bar__pills { display: none; }
  .repo-filter-bar__divider { display: none; }

  /* Show discipline select */
  .repo-filter-bar__discipline-select {
    display: block;
    flex: 1;
    min-width: 0;
  }

  /* Year select same flex behaviour */
  .repo-filter-bar__year {
    flex: 1;
    min-width: 0;
  }

  /* Search: always-visible compact field (no toggle button) */
  .repo-filter-bar__search-toggle { display: none; }
  .repo-filter-bar__search { flex: 1; min-width: 0; }

  .repo-filter-bar__search-field {
    position: static;
    transform: none;
    animation: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border-color: var(--color-border-soft);
  }

  .repo-filter-bar__search-field:focus-within {
    border-color: var(--color-amber);
    box-shadow: 0 0 0 2px var(--color-amber-tint);
  }

  .repo-filter-bar__search-close { display: none; }
}


/* ══════════════════════════════════════════════════════════════
   SECTION HEADER — RSS link
   ══════════════════════════════════════════════════════════════ */

.section-header-rss {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-amber);
  text-decoration: none;
  transition: opacity var(--transition);
}

.section-header-rss:hover { opacity: 0.75; }

.section-header-rss:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-header-rss i { font-size: 0.72rem; }


/* ══════════════════════════════════════════════════════════════
   REPO MAIN — header + table
   ══════════════════════════════════════════════════════════════ */

.repo-main {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.repo-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.repo-header__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.repo-header .eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  background: var(--color-amber-tint);
  border: 1px solid var(--color-amber-border);
  border-radius: 99px;
  padding: 0.15rem 0.7rem;
}

.repo-header h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.25;
}

.iport-result-count {
  font-size: 0.75rem;
  color: var(--color-text-hint);
  flex-shrink: 0;
}

.repo-header p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   REPOSITORY TABLE
   ══════════════════════════════════════════════════════════════ */

.repo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.repo-table thead tr {
  background: var(--color-off-white);
  border-bottom: 2px solid var(--color-border-soft);
}

.repo-table thead th {
  padding: 0.75rem 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-hint);
  text-align: left;
  white-space: nowrap;
}

/* ── Data rows (JS-generated via .repo-row) ── */
.repo-row {
  border-bottom: 1px solid var(--color-border-soft);
  cursor: pointer;
  transition: background var(--transition-fast);
}

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

.repo-row:hover { background: var(--color-amber-tint); }

.repo-row:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: -2px;
}

.repo-row td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
}

/* Ref ID cell */
.ref-cell {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: monospace;
  color: var(--color-text-hint);
  white-space: nowrap;
  min-width: 130px;
}

/* Headline + meta cell */
.title-cell { max-width: 480px; }

.title-cell .title {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 0.3rem;
  transition: color var(--transition-fast);
}

.repo-row:hover .title-cell .title { color: var(--color-amber); }

.title-cell .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--color-text-hint);
}

.title-cell .meta i { font-size: 0.65rem; }

/* Category badge */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  white-space: nowrap;
  /* bg + color set inline by JS from LetlouUtils tag helpers */
}

.type-badge i { font-size: 0.62rem; }

/* Date cell */
.date-cell {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Search highlight */
.repo-table mark {
  background: color-mix(in srgb, var(--color-amber) 30%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* Empty / loading state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem !important;
  color: var(--color-text-hint);
}


/* ══════════════════════════════════════════════════════════════
   LOAD-MORE FOOTER
   ══════════════════════════════════════════════════════════════ */

.load-more-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-off-white);
}

.iport-result-count {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition-fast);
}

.load-more-btn:hover {
  background: var(--color-amber);
  color: var(--color-navy-deep);
  transform: translateY(-1px);
}

.load-more-btn:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}


/* ══════════════════════════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════════════════════════ */

.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  border-top: 3px solid var(--color-amber);
  border-radius: var(--radius-lg);
  margin: 0 clamp(1rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.cta-text p {
  font-size: 0.92rem;
  color: color-mix(in srgb, white 68%, transparent);
  margin: 0;
  max-width: 480px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-amber);
  color: var(--color-navy-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition-fast);
}

.cta-btn:hover {
  background: var(--color-amber-hover);
  transform: translateY(-2px);
}

.cta-btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

.cta-btn i { font-size: 0.78rem; }


/* ══════════════════════════════════════════════════════════════
   ARTICLE MODAL (news-page version)
   Opened via dialog.showModal() by LetlouNewsPortal.js.
   Uses the native <dialog> element — backdrop is ::backdrop.

   POSITIONING: #articleDialog uses the same .article-overlay /
   .article-modal pattern as #searchDetailOverlay. The <dialog>
   shell is a full-viewport transparent host; .article-modal
   positions itself with fixed + translate(-50%,-50%).
   Do NOT add position/size rules to dialog#articleDialog here —
   they conflict with LetlouComponents.css .article-overlay rules.
   ══════════════════════════════════════════════════════════════ */

dialog#articleDialog:not([open]) {
  display: none;
}

dialog#articleDialog::backdrop {
  background: color-mix(in srgb, var(--color-navy-deep) 75%, transparent);
  backdrop-filter: blur(3px);
}

/* ── Modal hero image ── */
#modalHero {
  height: 220px;
  background-color: var(--color-navy-deep);
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

#modalHero.no-image {
  height: 80px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
}

/* ── Modal close button ── */
#modalCloseBtn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--color-navy-deep) 65%, transparent);
  border: 1px solid color-mix(in srgb, white 15%, transparent);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition-fast);
}

#modalCloseBtn:hover { background: color-mix(in srgb, var(--color-navy-deep) 90%, transparent); transform: scale(1.08); }
#modalCloseBtn:focus-visible { outline: 2px solid var(--color-amber); outline-offset: 2px; }

/* ── Modal scrollable content ── */
#modalContent {
  overflow-y: auto;
  flex: 1 1 auto;
  padding: 1.5rem 2rem 2rem;
}

/* ── Modal meta row (tag + date + location + read-time) ── */
#modalMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--color-text-hint);
}

#modalMeta i { font-size: 0.68rem; }

/* ── Modal headline ── */
#modalTitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  /* color handled by .article-modal-header-text h2 { color: #fff } in LetlouComponents.css */
}

/* ── Modal body content ── */
#modalBody {
  font-size: 0.92rem;
  color: var(--color-text-mid);
  line-height: 1.75;
}

#modalBody h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 1.5rem 0 0.5rem;
}

#modalBody p { margin-bottom: 0.85rem; }

/* Author byline (JS-injected) */
.article-author {
  font-size: 0.8rem;
  color: var(--color-text-hint);
  margin-bottom: 1rem;
}

/* Attribution panel for image credits */
.article-attribution-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--color-off-white);
  border-left: 3px solid var(--color-amber-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.article-attribution-panel__icon { color: var(--color-text-hint); flex-shrink: 0; }
.article-attribution-panel__text { flex: 1; }

/* Related project links */
.article-project-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-soft);
}

.article-project-links__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-mid);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-project-links__label i { color: var(--color-amber); }

.article-project-links__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition);
}

.article-project-links__cta:hover { color: var(--color-amber); }
.article-project-links__cta i { font-size: 0.7rem; }

/* ── Modal share row ── */
#shareRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-soft);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text-mid);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.share-btn:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.share-btn:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

.share-btn i { font-size: 0.7rem; }

/* ── Modal proposal CTA ── */
.modal-proposal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-amber);
  color: var(--color-navy-deep);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: background var(--transition), transform var(--transition-fast);
}

.modal-proposal-cta:hover {
  background: var(--color-amber-hover);
  transform: translateY(-1px);
}

.modal-proposal-cta:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* Tablet: collapse to single column */
@media (max-width: 900px) {
  .repo-filter-bar { gap: 0.5rem; }
}

/* Hide table columns on small screens */
@media (max-width: 700px) {
  .repo-table thead th:first-child,
  .repo-table .ref-cell { display: none; }

  .repo-table thead th:last-child,
  .repo-table .date-cell { display: none; }

  .repo-table td { padding: 0.75rem 0.85rem; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

  #modalHero { height: 160px; }
}

@media (max-width: 480px) {
  /* repo-layout and cta-band padding handled by clamp() at base level */
  .load-more-wrap { flex-direction: column; align-items: flex-start; }
}

/* Large screens */
@media (min-width: 1400px) {
  .repo-filter-bar { max-width: 1400px; }
}


/* ══════════════════════════════════════════════════════════════
   FILTER BUTTON — INACTIVE MODIFIER
   Used by .filter-pill--inactive on filter bar pills
   ══════════════════════════════════════════════════════════════ */

.filter-btn--inactive {
  opacity: 0.45;
  pointer-events: none;
}


/* ══════════════════════════════════════════════════════════════
   EMPTY STATE — ICON & MESSAGE
   Replaces inline styles on the folder icon and <p> in empty-state
   ══════════════════════════════════════════════════════════════ */

.empty-state__icon {
  font-size: 2rem;
  opacity: 0.25;
  display: block;
  margin-bottom: 0.75rem;
}

.empty-state__msg {
  margin: 0;
  font-size: 0.9rem;
}


/* ══════════════════════════════════════════════════════════════
   TYPE BADGE — DATA-TAG COLOUR TOKENS
   Replaces inline background/color on .type-badge elements.
   JS now sets data-tag="project" etc. instead of inline styles.
   Token values are already defined in LetlouGlobal.css [data-tag].
   ══════════════════════════════════════════════════════════════ */

.type-badge {
  background: var(--_tag-bg, var(--tag-announcement-bg));
  color:       var(--_tag-color, var(--tag-announcement-color));
}


/* ══════════════════════════════════════════════════════════════
   SEARCH-MODAL — HIDDEN STATE & SHARE LINKS ROW
   Replaces display:none and inline-flex inline styles in
   search-modal.html. JS removes .sd-hidden to reveal elements.
   ══════════════════════════════════════════════════════════════ */

.sd-hidden {
  display: none !important;
}

.article-overlay--hidden {
  display: none !important;
}

.sd-share-links {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
