/* ─── News Page ──────────────────────────────────────────────── */
body { padding-top: 68px; background: var(--slate-pale); }
.news-page { max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; }

/* ─── Hero ───────────────────────────────────────────────────── */
.news-hero { text-align: center; padding: 52px 24px 28px; }
.news-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  color: var(--text); margin: 10px 0 12px;
}
.news-hero-sub { font-size: 16px; color: var(--text-3); max-width: 560px; margin: 0 auto 18px; line-height: 1.6; }
.news-date-badge {
  display: inline-block; background: var(--blue-pale); color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
}

/* ─── Section tabs — matches dashboard tab bar style ─────────── */
.news-section-tabs {
  position: sticky; top: 68px; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  margin: 0 -24px 32px;
  display: flex;
}
.nst-btn {
  padding: 16px 24px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  color: var(--text-3);
  background: none; border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nst-btn:hover { color: var(--text); }
.nst-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ─── Section panels ─────────────────────────────────────────── */
.news-section.hidden { display: none; }
.section-intro { max-width: 680px; margin: 0 auto 24px; text-align: center; font-size: 15px; color: var(--text-3); line-height: 1.6; }

/* ─── Filter bar ─────────────────────────────────────────────── */
.news-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.news-filter-btn {
  padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 20px;
  background: var(--white); font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--text-2); cursor: pointer; transition: all .15s;
}
.news-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.news-filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ─── Two-col layout ─────────────────────────────────────────── */
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }

/* ─── News card ──────────────────────────────────────────────── */
.news-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card.featured { border-color: var(--blue); border-width: 2px; }
.news-card.krc-card { border-left: 4px solid var(--emerald); }
.news-card.krc-card.featured { border-color: var(--blue); border-left-color: var(--blue); }

.news-card-header { padding: 20px 24px 0; }
.news-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.news-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 12px;
}
.news-tag.spiritual  { background: var(--blue-pale); color: var(--blue); }
.news-tag.physical   { background: var(--emerald-pale); color: var(--emerald); }
.news-tag.featured   { background: #fef3c7; color: #92400e; }
.news-tag.krc-welcome  { background: var(--emerald-pale); color: var(--emerald); }
.news-tag.krc-spotlight{ background: #ede9fe; color: #6d28d9; }
.news-tag.krc-milestone{ background: #fef3c7; color: #92400e; }
.news-tag.krc-project  { background: #dbeafe; color: #1e40af; }

.news-card-body { padding: 0 24px 20px; }
.news-card-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.35; }
.news-card.featured .news-card-title { font-size: 22px; }
.news-card-summary { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }
.news-card-insight {
  background: var(--blue-pale); border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0; padding: 12px 16px;
  font-size: 13px; color: #1e40af; line-height: 1.5; margin-bottom: 14px; font-style: italic;
}
.news-card-insight strong { font-style: normal; display: block; margin-bottom: 4px; color: var(--blue); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.news-card-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-4);
}
.news-card-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }
.news-card-footer a:hover { text-decoration: underline; }

/* KRC entity meta strip */
.krc-entity-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
  font-size: 12px; color: var(--text-3); font-weight: 500;
}
.seek-tag  { color: var(--blue); font-weight: 600; }
.offer-tag { color: var(--emerald); font-weight: 600; }

/* ─── Demo disclaimer banners ────────────────────────────────── */
.demo-banner {
  background: #fef9c3; border-bottom: 1px solid #fde047;
  color: #713f12; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-align: center;
  padding: 5px 12px;
}
.demo-banner-inline {
  font-size: 11px; font-weight: 700; color: #713f12;
  background: #fef9c3; border: 1px solid #fde047;
  border-radius: 4px; padding: 3px 10px;
  display: inline-block; margin-bottom: 6px;
}

/* ─── Loading / empty ────────────────────────────────────────── */
.news-loading { text-align: center; padding: 60px 24px; color: var(--text-3); font-size: 15px; }
.news-spinner {
  width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--blue);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.news-empty { text-align: center; padding: 60px 24px; color: var(--text-3); font-size: 15px; }

/* ─── Sidebar widgets ────────────────────────────────────────── */
.news-sidebar { display: flex; flex-direction: column; gap: 16px; }
.news-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm);
}
.news-widget-cta { background: var(--blue); border-color: var(--blue); }
.news-widget-title {
  font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.news-widget-cta .news-widget-title { border-bottom-color: rgba(255,255,255,.2); }

.vert-coverage-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.vert-coverage-row:last-child { border-bottom: none; }
.vert-coverage-row .count { margin-left: auto; font-weight: 700; font-size: 12px; background: var(--blue-pale); color: var(--blue); padding: 2px 8px; border-radius: 10px; }

.platform-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.platform-row:last-child { border-bottom: none; }
.platform-row-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.news-subscribe-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius); background: rgba(255,255,255,.1); color: #fff;
  font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box;
}
.news-subscribe-input::placeholder { color: rgba(255,255,255,.5); }
.news-subscribe-input:focus { border-color: rgba(255,255,255,.7); }

/* ─── Mini tags ──────────────────────────────────────────────── */
.mini-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  background: var(--slate-pale); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 10px; color: var(--text-2);
}

/* ─── Leaders grid ───────────────────────────────────────────── */
.leaders-search-bar {
  position: relative; margin-bottom: 28px;
}
.leaders-search-bar input {
  width: 100%; padding: 12px 44px 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; outline: none; box-sizing: border-box;
  background: var(--white);
}
.leaders-search-bar input:focus { border-color: var(--blue); }
.leaders-search-bar .dir-search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; }

.leaders-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.leader-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px;
  box-shadow: var(--shadow-sm); text-align: center;
  cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.leader-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.leader-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, #7c3aed 100%);
  color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.leader-name   { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.leader-entity { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 2px; }
.leader-type   { font-size: 11px; color: var(--text-4); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.leader-verts  { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 8px; }
.leader-geo    { font-size: 12px; color: var(--text-3); }

/* ─── Leader modal ───────────────────────────────────────────── */
.leader-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 1001; width: 90%; max-width: 560px; max-height: 85vh;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden;
}
.leader-modal-inner { overflow-y: auto; max-height: 85vh; padding: 32px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--slate-pale); border: 1px solid var(--border); border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; font-family: inherit;
}
.lm-header { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.lm-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue) 0%, #7c3aed 100%);
  color: #fff; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.lm-name   { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.lm-entity { font-size: 15px; color: var(--text-2); font-weight: 600; margin-bottom: 3px; }
.lm-type   { font-size: 12px; color: var(--text-4); text-transform: uppercase; letter-spacing: .06em; }
.lm-tags   { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.lm-section { margin-bottom: 18px; }
.lm-section p { font-size: 14px; color: var(--text-2); line-height: 1.65; margin: 0; }
.lm-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-4); margin-bottom: 6px; }

/* ─── Archive ────────────────────────────────────────────────── */
.archive-controls {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.archive-search-wrap { position: relative; margin-bottom: 14px; }
.archive-search-wrap input {
  width: 100%; padding: 11px 44px 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; outline: none; box-sizing: border-box;
}
.archive-search-wrap input:focus { border-color: var(--blue); }
.archive-search-wrap .dir-search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.archive-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.archive-filters select,
.archive-filters input[type="date"] {
  padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-family: inherit; outline: none; background: var(--white);
}
.archive-filters select:focus,
.archive-filters input[type="date"]:focus { border-color: var(--blue); }

.archive-count { font-size: 13px; color: var(--text-3); margin-bottom: 16px; font-weight: 500; }

.archive-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 10px; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.archive-row:hover { box-shadow: var(--shadow); }
.archive-row-type {
  flex-shrink: 0; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 10px; height: fit-content; margin-top: 2px;
}
.archive-row-type.global { background: var(--blue-pale); color: var(--blue); }
.archive-row-type.krc    { background: var(--emerald-pale); color: var(--emerald); }
.archive-row-title  { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.archive-row-meta   { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-4); margin-bottom: 6px; align-items: center; }
.archive-row-summary{ font-size: 13px; color: var(--text-3); line-height: 1.55; }
.archive-row-body   { flex: 1; }
.archive-row-arrow  { flex-shrink: 0; font-size: 20px; color: var(--text-4); align-self: center; margin-left: 4px; }
.archive-row:hover .archive-row-arrow { color: var(--blue); }

/* ─── Article modal ───────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}
.modal-backdrop.hidden { display: none; }
.article-modal {
  position: fixed; inset: 0; z-index: 201;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; pointer-events: none;
}
.article-modal.hidden { display: none; }
.article-modal-inner {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 680px;
  max-height: 88vh;
  overflow: hidden;
  pointer-events: all;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { order: -1; }
  .leaders-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
  .archive-filters { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .news-section-tabs { gap: 6px; }
  .nst-btn { padding: 8px 14px; font-size: 13px; }
}
