/* ─── RAFFIA STRONG — Global Styles ──────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:       #080f1e;
  --bg-mid:        #0c1a30;
  --bg-deep:       #091526;
  --surface:       rgba(30, 45, 70, 0.40);
  --surface-hover: rgba(30, 45, 70, 0.72);
  --border:        rgba(100, 130, 170, 0.22);
  --border-hover:  rgba(100, 130, 170, 0.42);
  --text-primary:  #f1f5f9;
  --text-secondary:#cbd5e1;
  --text-muted:    #94a3b8;
  --sky:           #0ea5e9;
  --sky-dim:       rgba(14, 165, 233, 0.15);
  --emerald:       #10b981;
  --amber:         #f59e0b;
  --red:           #f87171;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --nav-height:    112px;
  --content-width: 1024px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(150deg, var(--bg-base) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
  color: var(--text-primary);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
}

.font-serif { font-family: 'Georgia', serif; }
h1, h2 { letter-spacing: -0.3px; }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.page-wrapper {
  position: relative; z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) 16px 64px;
}

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  background: rgba(8,15,30,0.93);
  backdrop-filter: blur(18px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; cursor: pointer; background: none; border: none;
}
.nav-logo-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(14,165,233,0.3); flex-shrink: 0;
}
.nav-logo-icon svg { width: 28px; height: 28px; color: white; }
.nav-logo-title { font-family: 'Georgia', serif; font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1; letter-spacing: -0.5px; }
.nav-logo-sub   { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(14,165,233,0.75); line-height: 1; margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 4px; position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; cursor: pointer; background: none; border: none;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover  { color: var(--text-primary); background: rgba(30,45,70,0.6); }
.nav-link.active { color: var(--text-primary); background: rgba(30,45,70,0.7); }
.nav-link svg { width: 14px; height: 14px; }
.nav-subscribe {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: white;
  cursor: pointer; border: none; margin-left: 4px;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6, #0ea5e9);
  background-size: 200% auto;
  box-shadow: 0 4px 14px rgba(14,165,233,0.25);
}
.nav-subscribe:hover { animation: shimmer 1.4s linear infinite; }
.nav-subscribe svg    { width: 14px; height: 14px; }
.nav-subscribe .chevron { width: 13px; height: 13px; transition: transform 0.2s; }
.nav-subscribe.open .chevron { transform: rotate(180deg); }
.nav-hamburger { display: none; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 4px; }
.nav-mobile {
  display: none; border-top: 1px solid var(--border);
  padding: 10px 16px 12px; background: rgba(8,15,30,0.98);
  flex-direction: column; gap: 4px; animation: mobileSlide 0.18s ease both;
}
.nav-mobile.open { display: flex; }
.nav-mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; cursor: pointer; background: none; border: none;
  transition: color 0.15s, background 0.15s; width: 100%; text-align: left;
}
.nav-mobile-link:hover, .nav-mobile-link.active { color: var(--text-primary); background: rgba(30,45,70,0.6); }
.nav-mobile-sub {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: white;
  cursor: pointer; border: none; width: 100%; text-align: left;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
}
@media (max-width: 640px) { .nav-links { display: none; } .nav-hamburger { display: block; } }

/* ─── MEGA MENU ─────────────────────────────────────────────── */
.mega-menu {
  position: absolute; top: calc(100% + 6px); right: 0; width: 500px;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: linear-gradient(160deg, #0d1b35 0%, #0a1628 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7); overflow: hidden;
  animation: megaExpand 0.22s cubic-bezier(0.16,1,0.3,1) both;
  transform-origin: top center; z-index: 200;
}
.mega-body    { padding: 24px; }
.mega-header  { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.mega-title   { font-family: 'Georgia', serif; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.mega-sub     { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.mega-close   { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 2px; transition: color 0.15s; }
.mega-close:hover { color: var(--text-secondary); }
.mega-success { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 32px; gap: 12px; text-align: center; }
.mega-success-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }

/* ─── FORMS ─────────────────────────────────────────────────── */
.form-row   { display: flex; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; flex: 1; }
.form-group.w-14 { flex: 0 0 56px; }
.form-group.w-20 { flex: 0 0 80px; }
label.form-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.input {
  background: rgba(30,45,70,0.8); border: 1px solid rgba(100,130,170,0.3);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 13px; color: var(--text-primary); outline: none;
  transition: border-color 0.15s; width: 100%;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: rgba(14,165,233,0.5); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; width: 13px; height: 13px; }
.input-icon-wrap .input { padding-left: 30px; }
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px 0; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 700; color: white; cursor: pointer; border: none;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6, #0ea5e9); background-size: 200% auto;
  box-shadow: 0 4px 16px rgba(14,165,233,0.3); transition: opacity 0.15s;
}
.btn-primary:hover    { animation: shimmer 1.4s linear infinite; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; animation: none; }
.btn-secondary {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; border: 1px solid var(--border);
  background: none; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--surface); }
.btn-danger {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
  color: #f87171; cursor: pointer; border: 1px solid rgba(248,113,113,0.3);
  background: none; transition: background 0.15s;
}
.btn-danger:hover { background: rgba(248,113,113,0.1); }
.btn-sky {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  color: white; cursor: pointer; border: none;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6); transition: opacity 0.15s;
}
.btn-sky:hover { opacity: 0.88; }

/* ─── STATS BAR ─────────────────────────────────────────────── */
.stats-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.stat-card { flex: 1; min-width: 150px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); padding: 18px 20px; animation: statIn 0.3s ease both; }
.stat-card.warn { border-color: rgba(245,158,11,0.35); background: rgba(120,53,15,0.12); }
.stat-card-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.stat-label     { font-size: 13px; font-weight: 500; color: var(--text-secondary); line-height: 1.3; }
.stat-icon      { width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(30,45,70,0.6); display: flex; align-items: center; justify-content: center; }
.stat-card.warn .stat-icon { background: rgba(120,53,15,0.4); border-color: rgba(245,158,11,0.4); }
.stat-icon svg  { width: 14px; height: 14px; }
.stat-value     { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: var(--text-primary); }
.stat-card.warn .stat-value { color: #fcd34d; }
.stat-sub       { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ─── ENTRY CARDS ───────────────────────────────────────────── */
.entries-list { display: flex; flex-direction: column; gap: 10px; }
.entry-card   { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; animation: entryIn 0.32s ease both; }
.entry-card:hover    { border-color: var(--border-hover); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.entry-card.expanded { border-color: var(--border-hover); }
.entry-header  { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; user-select: none; transition: background 0.15s; }
.entry-header:hover  { background: var(--surface-hover); }
.entry-accent  { width: 4px; align-self: stretch; border-radius: 4px; flex-shrink: 0; }
.entry-accent.issue       { background: linear-gradient(to bottom, #f87171, #dc2626); }
.entry-accent.action      { background: linear-gradient(to bottom, #f59e0b, #b45309); }
.entry-accent.information { background: linear-gradient(to bottom, #0ea5e9, #0369a1); }
/* Legacy support */
.entry-accent.on-track { background: linear-gradient(to bottom, #0ea5e9, #0369a1); }
.entry-accent.at-risk  { background: linear-gradient(to bottom, #f59e0b, #b45309); }
.entry-main    { flex: 1; min-width: 0; }
.entry-top     { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.entry-title   { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.entry-meta-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.entry-variance     { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.entry-variance.neg { color: var(--red); }
.entry-variance.pos { color: var(--emerald); }
.entry-update-count { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); }
.entry-update-count svg { width: 11px; height: 11px; }
.entry-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.entry-date     { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); }
.entry-date svg { width: 11px; height: 11px; }

/* ─── BADGES ────────────────────────────────────────────────── */
.badge          { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.badge-issue       { background: rgba(248,113,113,0.12); color: #f87171; border-color: rgba(248,113,113,0.35); }
.badge-action      { background: rgba(245,158,11,0.12);  color: #fbbf24; border-color: rgba(245,158,11,0.35); }
.badge-information { background: rgba(14,165,233,0.12);  color: #38bdf8; border-color: rgba(14,165,233,0.35); }
.badge-dot         { width: 6px; height: 6px; border-radius: 50%; }
.badge-issue       .badge-dot { background: #f87171; }
.badge-action      .badge-dot { background: #fbbf24; }
.badge-information .badge-dot { background: #38bdf8; }
/* Legacy support */
.badge-on-track { background: rgba(14,165,233,0.12); color: #38bdf8; border-color: rgba(14,165,233,0.35); }
.badge-at-risk  { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.35); }
.badge-on-track .badge-dot { background: #38bdf8; }
.badge-at-risk  .badge-dot { background: #fbbf24; }
.badge-issues   { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: #fbbf24; }
.badge-issues svg { width: 11px; height: 11px; }
.hashtag        { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 500; color: rgba(14,165,233,0.75); }
.hashtag svg    { width: 9px; height: 9px; }
.entry-chevron  { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-muted); transition: transform 0.25s ease, color 0.15s; }
.entry-card.expanded .entry-chevron { transform: rotate(90deg); color: var(--text-secondary); }

/* ─── EXPAND PANEL ──────────────────────────────────────────── */
.entry-detail   { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
.entry-card.expanded .entry-detail { max-height: 2000px; }
.entry-detail-inner  { padding: 0 20px 20px 40px; border-top: 1px solid var(--border); }
.entry-description   { font-size: 15px; color: var(--text-secondary); line-height: 1.7; padding: 18px 0 22px; }
.updates-header { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 14px; }
.updates-header svg { width: 13px; height: 13px; color: var(--sky); }
.updates-count  { font-weight: 400; color: var(--text-muted); }
.updates-empty  { font-size: 13px; color: var(--text-muted); font-style: italic; }
.updates-timeline { display: flex; flex-direction: column; }
.update-row     { display: flex; gap: 12px; }
.update-spine   { display: flex; flex-direction: column; align-items: center; }
.update-num     { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: rgba(30,45,70,0.8); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-muted); font-family: monospace; }
.update-line    { width: 1px; flex: 1; background: var(--border); margin-top: 4px; }
.update-body    { flex: 1; padding-bottom: 16px; }
.update-text    { font-size: 15px; color: var(--text-primary); line-height: 1.65; }
.update-time    { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.update-time svg { width: 10px; height: 10px; }

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.page-eyebrow      { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.page-eyebrow-text { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); filter: brightness(1.2); }
.page-eyebrow svg  { width: 14px; height: 14px; color: var(--sky); filter: brightness(1.2); }
.page-title    { font-family: 'Georgia', serif; font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; margin-bottom: 4px; }
.page-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 36px; }

/* ─── SEARCH ────────────────────────────────────────────────── */
.search-wrap  { position: relative; margin-bottom: 24px; }
.search-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; width: 15px; height: 15px; }
.search-input { width: 100%; background: rgba(30,45,70,0.6); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 40px; font-size: 13px; color: var(--text-primary); outline: none; transition: border-color 0.15s, background 0.15s; }
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: rgba(14,165,233,0.45); background: rgba(30,45,70,0.8); }
.search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 2px; display: none; }
.search-clear.visible { display: block; }
.search-clear:hover { color: var(--text-secondary); }
.search-empty { text-align: center; padding: 48px 0; }
.search-empty svg { width: 32px; height: 32px; color: var(--sky); margin: 0 auto 12px; display: block; }
.search-empty p { font-size: 15px; color: var(--text-primary); font-family: 'Georgia', serif; }
.search-empty span { color: var(--text-secondary); }

/* ─── ADMIN ─────────────────────────────────────────────────── */
.admin-page { max-width: 860px; margin: 0 auto; padding: calc(var(--nav-height) + 40px) 16px 64px; position: relative; z-index: 1; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.admin-login-card { width: 100%; max-width: 360px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: rgba(20,35,60,0.6); padding: 32px; }
.admin-login-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: rgba(14,165,233,0.15); border: 1px solid rgba(14,165,233,0.3); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 520px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: #0d1b35; padding: 24px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title  { font-size: 15px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.modal-title svg { width: 15px; height: 15px; color: var(--sky); }

/* ─── LOADING / ERROR ───────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; padding: 64px; gap: 12px; color: var(--text-muted); font-size: 13px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--sky); border-radius: 50%; animation: spin 0.7s linear infinite; }
.error-banner { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; font-size: 13px; margin-bottom: 16px; }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes entryIn    { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes megaExpand { from { opacity:0; transform:translateY(-6px) scaleY(0.96); } to { opacity:1; transform:translateY(0) scaleY(1); } }
@keyframes mobileSlide{ from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
@keyframes shimmer    { 0% { background-position:-200% center; } 100% { background-position:200% center; } }
@keyframes statIn     { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin       { to { transform:rotate(360deg); } }

/* ─── UPDATE HISTORY ITEMS ──────────────────────────────────── */
.update-hist-item { background:rgba(30,45,70,0.6);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;margin-bottom:8px; }
.update-hist-content { font-size:13px;color:var(--text-primary);line-height:1.6; }
.update-hist-content p { margin-bottom:4px; }
.update-hist-actions { display:flex;gap:6px;margin-top:8px; }
.update-edit-area { width:100%;margin-top:10px;display:none; }
.update-edit-area.open { display:block; }
/* Quill dark theme */
.ql-toolbar { background:rgba(20,35,55,0.9)!important;border-color:rgba(100,130,170,0.3)!important;border-radius:var(--radius-sm) var(--radius-sm) 0 0!important; }
.ql-container { border-color:rgba(100,130,170,0.3)!important;border-radius:0 0 var(--radius-sm) var(--radius-sm)!important;font-size:13px!important; }
.ql-editor { color:var(--text-primary)!important; }
.ql-editor.ql-blank::before { color:var(--text-muted)!important;font-style:normal!important; }
.ql-stroke { stroke:#94a3b8!important; }
.ql-fill { fill:#94a3b8!important; }
.ql-picker-label { color:#94a3b8!important; }
.ql-picker-options { background:#0d1b35!important;border-color:rgba(100,130,170,0.3)!important; }
.ql-toolbar button:hover .ql-stroke,.ql-toolbar button.ql-active .ql-stroke { stroke:#0ea5e9!important; }
.ql-toolbar button:hover .ql-fill,.ql-toolbar button.ql-active .ql-fill { fill:#0ea5e9!important; }
/* Rich text content rendering */
.entry-description h1,.entry-description h2,.entry-description h3,.update-text h1,.update-text h2,.update-text h3 { color:var(--text-primary);margin-bottom:8px;margin-top:14px; }
.entry-description p,.update-text p { margin-bottom:14px; }
.entry-description p:last-child,.update-text p:last-child { margin-bottom:0; }
.entry-description ul,.entry-description ol,.update-text ul,.update-text ol { padding-left:20px;margin-bottom:14px; }
.entry-description li,.update-text li { margin-bottom:6px; }
.entry-description a,.update-text a { color:var(--sky);text-decoration:underline; }
.entry-description strong,.update-text strong { color:var(--text-primary);font-weight:700; }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.pagination { display:flex; align-items:center; justify-content:center; gap:6px; padding:16px 0; flex-wrap:wrap; }
.page-btn {
  min-width:36px; height:36px; padding:0 10px;
  border-radius:var(--radius-sm); border:1px solid var(--border);
  background:var(--surface); color:var(--text-secondary);
  font-size:13px; font-weight:500; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.15s;
}
.page-btn:hover:not(.disabled) { background:var(--surface-hover); border-color:var(--border-hover); color:var(--text-primary); }
.page-btn.active { background:rgba(14,165,233,0.2); border-color:rgba(14,165,233,0.5); color:var(--sky); font-weight:700; }
.page-btn.disabled { opacity:0.35; cursor:not-allowed; }
.page-ellipsis { color:var(--text-muted); font-size:13px; padding:0 4px; line-height:36px; }

/* ─── UPDATE MODAL SIZE ─────────────────────────────────────── */
#updateModal .modal {
  max-width: 650px;   /* 520 * 1.25 */
  max-height: 90vh;
}
#updateModal .modal > div,
#updateModal #updateHistoryWrap {
  max-height: 200px;  /* 25% taller history area */
}

/* ─── MISSION BOX ────────────────────────────────────────────── */
.mission-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 36px;
  line-height: 1.75;
}

.mission-content {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.mission-content h1,
.mission-content h2,
.mission-content h3 {
  color: var(--text-primary);
  font-family: 'Georgia', serif;
  margin-bottom: 12px;
  margin-top: 20px;
}

.mission-content h1 { font-size: 24px; }
.mission-content h2 { font-size: 20px; }
.mission-content h3 { font-size: 17px; }

.mission-content p { margin-bottom: 12px; }

.mission-content ul,
.mission-content ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.mission-content li { margin-bottom: 6px; }

.mission-content a {
  color: var(--sky);
  text-decoration: underline;
}

.mission-content strong { color: var(--text-primary); font-weight: 700; }

.mission-empty {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── MERGE FIELD BUTTONS ───────────────────────────────────── */
.merge-btn {
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 500; font-family: monospace;
  color: var(--sky); cursor: pointer;
  border: 1px solid rgba(14,165,233,0.3);
  background: rgba(14,165,233,0.08);
  transition: background 0.15s, border-color 0.15s;
}
.merge-btn:hover { background: rgba(14,165,233,0.18); border-color: rgba(14,165,233,0.5); }

/* ─── POLL OPTION ROW ───────────────────────────────────────── */
.poll-option-row {
  display: flex; align-items: center; gap: 8px;
}
.poll-option-row .input { flex: 1; }
.poll-option-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px;
  transition: color 0.15s; flex-shrink: 0;
}
.poll-option-remove:hover { color: var(--red); }

/* ─── POLL RESULT BAR ───────────────────────────────────────── */
.result-row { margin-bottom: 14px; }
.result-label { display: flex; justify-content: space-between; font-size:13px; color:var(--text-primary); margin-bottom:5px; }
.result-bar-bg { height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.result-bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #0ea5e9, #3b82f6); transition: width 0.6s ease; }

/* ─── EMAIL LIST ROWS ───────────────────────────────────────── */
.email-row {
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface); padding: 14px 18px; margin-bottom:10px;
  display: flex; align-items: flex-start; gap: 12px;
}
.email-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink:0; margin-top:5px;
}
.email-status-dot.sent   { background: var(--emerald); }
.email-status-dot.draft  { background: var(--text-muted); }
.email-status-dot.failed { background: var(--red); }

/* ─── POLL LIST ROWS ────────────────────────────────────────── */
.poll-row {
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface); padding: 14px 18px; margin-bottom:10px;
  display: flex; align-items: flex-start; gap: 12px;
}
.poll-status-badge {
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid;
}
.poll-status-badge.open   { background: rgba(16,185,129,0.12); color:#34d399; border-color:rgba(16,185,129,0.35); }
.poll-status-badge.draft  { background: rgba(71,85,105,0.2);   color:#94a3b8; border-color:rgba(71,85,105,0.4); }
.poll-status-badge.closed { background: rgba(248,113,113,0.12);color:#f87171; border-color:rgba(248,113,113,0.35); }

/* ─── CONTACT US NAV BUTTON ─────────────────────────────────── */
.nav-contact {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: white;
  cursor: pointer; border: none; margin-left: 4px;
  background: rgba(30,45,70,0.8);
  border: 1px solid var(--border-hover);
  transition: background 0.15s, border-color 0.15s;
}
.nav-contact:hover { background: rgba(30,45,70,1); border-color: var(--sky); }
.nav-contact svg    { width: 14px; height: 14px; }
.nav-contact .chevron { width: 13px; height: 13px; transition: transform 0.2s; }
.nav-contact.open .chevron { transform: rotate(180deg); }

.nav-mobile-contact {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  cursor: pointer; border: 1px solid var(--border);
  background: var(--surface); width: 100%; text-align: left;
  transition: background 0.15s;
}
.nav-mobile-contact:hover { background: var(--surface-hover); }

/* Contact mega positions from right edge, same as subscribe */
.mega-menu-contact { right: 0; }

/* File attach area */
.contact-file-wrap { }

/* ─── EMAIL TYPE BUTTONS ─────────────────────────────────────── */
.email-type-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary);
  transition: all 0.15s; flex: 1; justify-content: center;
}
.email-type-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.email-type-btn.active { background: rgba(14,165,233,0.15); border-color: rgba(14,165,233,0.5); color: var(--sky); font-weight: 600; }
