/* ═══════════════════════════════════════════════════════════
   pages.css — Organic Luxury Theme
   Dominant white • Deep forest greens • Gold accents
   ═══════════════════════════════════════════════════════════ */

/* ─── SITE HEADER ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 0 var(--border), 0 2px 20px rgba(28,56,41,0.06);
}

.header-brand-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 40px; gap: 16px;
}

.header-branding { display: flex; align-items: center; gap: 16px; }
.header-seal { width: 56px; height: 56px; flex-shrink: 0; }
.header-seal img { width: 100%; height: 100%; object-fit: contain; }

.header-brand-text { display: flex; flex-direction: column; gap: 2px; }
.header-republic { font-size: 10.5px; font-style: italic; color: var(--text-muted); letter-spacing: 0.02em; }
.header-dept {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  line-height: 1.1; color: var(--accent); letter-spacing: -0.2px;
}
.header-division {
  font-size: 11px; font-weight: 600; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.header-clock-wrap { text-align: right; flex-shrink: 0; }
.header-clock-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-muted); text-transform: uppercase;
}
.header-clock {
  font-size: 13px; font-weight: 700; color: var(--accent);
  font-family: var(--mono); margin-top: 3px;
}

/* ─── NAV BUTTONS ───────────────────────────────────────── */
.btn-nav {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; font-family: var(--sans);
  text-decoration: none; transition: all 0.18s; white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn-nav--gold {
  background: var(--gold); border: 1px solid var(--gold);
  color: #fff; box-shadow: 0 2px 10px rgba(184,146,42,0.25);
}
.btn-nav--gold:hover { background: var(--gold-rich); }
.btn-nav--default {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-nav--default:hover { background: var(--surface-3); border-color: var(--border-hi); }
.btn-nav--danger {
  background: rgba(192,57,43,0.07); border: 1px solid rgba(192,57,43,0.18);
  color: var(--danger);
}
.btn-nav--danger:hover { background: rgba(192,57,43,0.13); }

/* ─── MAIN CONTENT ──────────────────────────────────────── */
.main-content {
  width: 100%; background: var(--bg); min-height: 100vh; overflow-x: hidden;
}
.main-content--home {
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--border), 0 4px 40px rgba(26,61,43,0.06);
}

.section-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}

/* ─── ANNOUNCE STRIP ────────────────────────────────────── */
.announce-strip {
  width: 100%; background: var(--accent);
  border-bottom: 2px solid var(--gold);
  padding: 0; overflow: hidden;
}
.announce-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: stretch;
}
.announce-label {
  background: var(--gold); color: var(--surface);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-family: var(--mono);
  padding: 10px 22px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.announce-ticker {
  flex: 1; padding: 10px 24px;
  font-size: 12.5px; color: rgba(255,255,255,0.80);
  overflow: hidden; white-space: nowrap;
  font-family: var(--sans); font-weight: 400; letter-spacing: 0.02em;
}
.ticker-wrap { display: inline-block; animation: ticker 28s linear infinite; }
.ticker-wrap span { margin-right: 80px; }
.ticker-sep { color: var(--gold-rich); margin-right: 80px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  width: 100%;
  background: var(--accent);
  display: flex; align-items: center; overflow: hidden;
}

/* Organic texture overlays */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 90% 40%, rgba(184,146,42,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 5% 90%,  rgba(62,112,85,0.20) 0%,  transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 0%,  rgba(46,94,68,0.30) 0%,   transparent 50%);
}

/* Subtle leaf-vein grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,146,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,146,42,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Gold accent line — left edge */
.hero::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 90px 40px;
  display: grid; grid-template-columns: 1fr 400px; gap: 72px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,146,42,0.12); border: 1px solid rgba(184,146,42,0.28);
  color: var(--gold-light); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  font-family: var(--mono); margin-bottom: 22px;
}
.hero-badge::before { content: '●'; font-size: 7px; animation: pulse 2.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 300; line-height: 1.08;
  color: #fff; letter-spacing: -0.5px; margin-bottom: 20px;
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-title span { color: var(--gold-rich); font-weight: 600; font-style: normal; }

.hero-subtitle {
  font-size: 16px; color: rgba(255,255,255,0.65);
  line-height: 1.75; margin-bottom: 36px; max-width: 500px;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; font-family: var(--sans);
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition); letter-spacing: 0.03em;
}
.btn-gold {
  background: var(--gold); color: #fff;
  box-shadow: 0 4px 20px rgba(184,146,42,0.35);
}
.btn-gold:hover {
  background: var(--gold-rich); transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(184,146,42,0.45);
}
.btn-outline {
  background: transparent; color: rgba(255,255,255,0.80);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.38);
}

/* Hero stat card */
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,146,42,0.18);
  border-radius: 20px; padding: 32px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.hero-card-label {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--gold-rich);
  text-transform: uppercase; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(184,146,42,0.15);
}
.stat-row { display: flex; flex-direction: column; gap: 12px; }
.stat-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07); transition: all var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(184,146,42,0.18); }
.stat-icon { font-size: 22px; flex-shrink: 0; }
.stat-num {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  color: var(--gold-light); line-height: 1;
}
.stat-desc { font-size: 11.5px; color: rgba(255,255,255,0.50); margin-top: 2px; font-weight: 300; }

/* ─── SECTIONS ─────────────────────────────────────────── */
.section { padding: 80px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after {
  content: ''; display: block; width: 32px; height: 1px; background: var(--gold);
}

.section-title {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 42px);
  font-weight: 400; color: var(--accent); line-height: 1.15;
  letter-spacing: -0.3px; margin-bottom: 12px;
}
.section-title em { font-style: italic; color: var(--accent-light); }

.section-lead {
  font-size: 16px; color: var(--text-dim); line-height: 1.7;
  max-width: 600px; font-weight: 300; margin-bottom: 48px;
}

/* ─── QUICK LINKS GRID ──────────────────────────────────── */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.quick-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  text-decoration: none; color: inherit;
  transition: all 0.24s ease;
  position: relative; overflow: hidden;
}
.quick-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s ease;
}
.quick-card:hover::before { transform: scaleX(1); }
.quick-card:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.qcard-icon { font-size: 28px; margin-bottom: 14px; }
.qcard-title {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--accent); margin-bottom: 8px; line-height: 1.2;
}
.qcard-desc {
  font-size: 13.5px; color: var(--text-dim); line-height: 1.6;
  font-weight: 300; flex: 1;
}
.qcard-arrow {
  margin-top: 20px; font-size: 18px; color: var(--gold);
  font-family: var(--serif); font-weight: 300;
  transition: transform 0.18s ease;
}
.quick-card:hover .qcard-arrow { transform: translateX(4px); }

/* ─── ISSUANCES SECTION ─────────────────────────────────── */
.issuances-bg {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.issuances-layout {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

.issuance-col-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-hi);
  margin-bottom: 8px;
}
.issuance-col-icon { font-size: 22px; }
.issuance-col-title {
  font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--accent);
}
.issuance-col-count {
  font-size: 11px; color: var(--text-muted); font-family: var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1px;
}

.issuance-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.issuance-item:last-child { border-bottom: none; }

.iitem-date {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.04em;
  white-space: nowrap; padding-top: 2px; min-width: 36px;
}
.iitem-title {
  font-size: 13.5px; color: var(--text); line-height: 1.55;
  font-weight: 400;
}
.iitem-badge {
  display: inline-block; font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
  margin-left: 8px; vertical-align: middle; font-family: var(--mono);
}
.badge-new    { background: linear-gradient(135deg, #b8892a, #d4a84b); color: #fff; border: 1px solid rgba(184,138,42,0.50); box-shadow: 0 1px 5px rgba(184,138,42,0.25); }
.badge-urgent { background: rgba(192,57,43,0.08); color: var(--danger);  border: 1px solid rgba(192,57,43,0.18); }

.issuances-footer { text-align: center; margin-top: 40px; }

/* ─── DIVIDER ORNAMENT ──────────────────────────────────── */
.ornament-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 60px auto; max-width: 300px; justify-content: center;
}
.ornament-divider::before,
.ornament-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.ornament-divider::after { background: linear-gradient(to left, transparent, var(--gold)); }
.ornament-leaf {
  font-size: 18px; color: var(--gold);
  opacity: 0.7; letter-spacing: 6px;
}

/* ─── ABOUT SECTION ─────────────────────────────────────── */
.about-section {
  background: var(--surface);
}

.about-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.about-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.about-tag::after { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }

.about-title {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 42px);
  font-weight: 400; color: var(--accent); line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -0.3px;
}
.about-title em { font-style: italic; color: var(--accent-light); }

.about-body {
  font-size: 15px; color: var(--text-dim); line-height: 1.8;
  margin-bottom: 24px; font-weight: 300;
}

.about-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 32px;
}
.about-list li {
  font-size: 14px; color: var(--text-dim); line-height: 1.5; font-weight: 400;
  padding-left: 22px; position: relative;
}
.about-list li::before {
  content: '✦';
  position: absolute; left: 0; color: var(--gold);
  font-size: 10px; top: 3px;
}

/* About stat cards */
.about-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.about-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.24s ease;
  position: relative; overflow: hidden;
}
.about-stat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity 0.24s;
}
.about-stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hi); }
.about-stat-card:hover::after { opacity: 1; }

.about-stat-num {
  font-family: var(--serif); font-size: 38px; font-weight: 600;
  color: var(--accent); line-height: 1; margin-bottom: 6px;
}
.about-stat-label {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--accent);
  color: rgba(255,255,255,0.75);
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding: 64px 40px 48px;
}

.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.footer-ph-seal   { width: 40px; height: 40px; object-fit: contain; opacity: 0.85; }
.footer-seal-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.footer-logo-seal { width: 40px; height: 40px; object-fit: contain; opacity: 0.85; }
.footer-logo-text { display: flex; flex-direction: column; gap: 1px; }
.f-republic { font-size: 10px; color: rgba(255,255,255,0.45); font-style: italic; }
.f-dept { font-family: var(--serif); font-size: 15px; font-weight: 500; color: #fff; }
.f-div  { font-size: 10.5px; color: var(--gold-rich); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.footer-desc {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.75; margin-bottom: 20px; font-weight: 300;
}
.footer-foi-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(184,146,42,0.12); border: 1px solid rgba(184,146,42,0.22);
  color: var(--gold-rich); font-size: 11px; font-weight: 600;
  padding: 7px 14px; border-radius: 100px; text-decoration: none;
  transition: all var(--transition);
}
.footer-foi-badge:hover { background: rgba(184,146,42,0.22); }

.footer-heading {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-rich);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.60);
  text-decoration: none; transition: color var(--transition); font-weight: 300;
}
.footer-links a:hover { color: var(--gold-light); }

/* Transparency strip */
.footer-transparency {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 40px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}

.ts-seal-badge {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(184,146,42,0.18);
  border-radius: 12px; padding: 12px 20px;
  text-decoration: none; transition: all var(--transition); flex-shrink: 0;
}
.ts-seal-badge:hover { background: rgba(255,255,255,0.07); }
.ts-seal-icon img { display: block; }
.ts-seal-title { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ts-seal-sub   { font-size: 10px; color: rgba(255,255,255,0.45); }
.ts-seal-arrow { font-size: 11px; color: var(--gold-rich); display: flex; align-items: center; gap: 5px; }

.ts-disclosures {
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px;
}
.ts-disc-label { color: rgba(255,255,255,0.45); font-size: 11px; font-family: var(--mono); align-self: center; }
.ts-disclosures a { color: rgba(255,255,255,0.60); text-decoration: none; transition: color var(--transition); }
.ts-disclosures a:hover { color: var(--gold-light); }

/* Footer bottom */
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.40); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--gold-light); }
.footer-tag { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.25); letter-spacing: 0.08em; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner       { grid-template-columns: 1fr; gap: 48px; }
  .hero-card        { max-width: 400px; }
  .about-layout     { grid-template-columns: 1fr; gap: 48px; }
  .issuances-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner     { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .section          { padding: 56px 20px; }
  .section-inner    { padding: 0 20px; }
  .hero-inner       { padding: 64px 24px; }
  .quick-links-grid { grid-template-columns: 1fr; }
  .about-visual     { grid-template-columns: 1fr 1fr; }
  .footer-inner     { grid-template-columns: 1fr; padding: 48px 24px 32px; }
  .footer-bottom    { padding: 16px 24px; flex-direction: column; align-items: flex-start; }
  .footer-transparency { padding: 20px 24px; }
  .header-inner     { padding: 12px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   EXISTING APP STYLES (non-landing pages) — kept for
   compatibility with all other partials & app panels.
   Only color tokens changed via variables.css above.
   ═══════════════════════════════════════════════════════════ */

/* ─── CAPTURE / APP PANELS ───────────────────────────────── */
.ceditor-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
}
.ceditor-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.ceditor-body { display: grid; grid-template-columns: 240px 1fr; flex: 1; overflow: hidden; }
.ceditor-list-col { border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.ceditor-slide-list { flex: 1; overflow-y: auto; padding: 10px 0; }
.celist-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; cursor: pointer; transition: background var(--transition); border-left: 3px solid transparent; user-select: none; }
.celist-item:hover { background: var(--surface-2); }
.celist-selected   { background: var(--gold-glow) !important; border-left-color: var(--gold); }
.celist-dragging   { opacity: 0.4; }
.celist-dragover   { background: var(--accent-glow); border-left-color: var(--accent); }
.celist-handle { color: var(--text-muted); font-size: 16px; cursor: grab; line-height: 1; flex-shrink: 0; }
.celist-icon  { font-size: 18px; flex-shrink: 0; }
.celist-label { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ceditor-add-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; background: transparent; border: none; border-top: 1px solid var(--border); color: var(--accent); font-size: 13px; font-weight: 700; font-family: var(--sans); cursor: pointer; transition: background var(--transition); width: 100%; }
.ceditor-add-btn:hover { background: var(--gold-glow); color: var(--gold); }
.ceditor-form-col { overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; }
.ceditor-empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; gap: 4px; }
.cform-row { margin-bottom: 16px; }
.cform-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; font-family: var(--mono); }
.cform-input { width: 100%; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--sans); color: var(--text); transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
.cform-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,42,0.12); }
.cform-icon-input { width: 80px; font-size: 22px; text-align: center; }
.cform-textarea { resize: vertical; min-height: 90px; font-size: 13px; line-height: 1.6; }
.cform-color-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ccolor-opt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-dim); cursor: pointer; }
.ccolor-opt input[type=radio] { accent-color: var(--gold); }
.ccolor-swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid rgba(0,0,0,0.1); }
.cform-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.cform-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; font-family: var(--sans); border: none; cursor: pointer; transition: all var(--transition); }
.cform-btn-save { background: var(--gold); color: #fff; box-shadow: 0 2px 8px rgba(184,146,42,0.25); }
.cform-btn-save:hover:not(:disabled) { background: var(--gold-rich); transform: translateY(-1px); }
.cform-btn-save:disabled { opacity: 0.6; cursor: not-allowed; }
.cform-btn-delete { background: rgba(192,57,43,0.07); color: var(--danger); border: 1px solid rgba(192,57,43,0.18); }
.cform-btn-delete:hover { background: rgba(192,57,43,0.13); }
.ceditor-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; flex-wrap: wrap; }
.ceditor-status { font-size: 13px; color: var(--text-muted); font-family: var(--mono); }
.ceditor-status-ok  { color: var(--success); }
.ceditor-status-err { color: var(--danger); }
@media (max-width: 640px) { .ceditor-body { grid-template-columns: 1fr; } .ceditor-list-col { border-right: none; border-bottom: 1px solid var(--border); max-height: 200px; } }

/* Carousel */
.cslide-img-wrap { width: 180px; height: 140px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: rgba(28,56,41,0.05); border: 1px solid var(--border); }
.cslide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cform-img-upload { border: 2px dashed var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.cform-img-upload:hover { border-color: var(--gold); }
.cform-img-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; cursor: pointer; color: var(--text-muted); font-size: 13px; transition: background var(--transition); }
.cform-img-label:hover { background: var(--surface-2); color: var(--text-dim); }
.cform-img-preview { position: relative; }
.cform-img-preview img { width: 100%; height: 140px; object-fit: cover; display: block; }
.cform-img-remove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(10,22,16,0.7); border: none; color: #fff; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.cform-img-remove:hover { background: var(--danger); }
@media (max-width: 640px) { .cslide-img-wrap { width: 100%; height: 160px; } }

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — Organic Luxury
   ═══════════════════════════════════════════════════════════ */

/* ─── ABOUT HERO ──────────────────────────────────────────── */
.about-hero {
  position: relative;
  min-height: 420px;
  background: var(--accent);
  display: flex; align-items: center; overflow: hidden;
  padding: 80px 40px;
}
.about-hero .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,146,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,146,42,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.about-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 85% 40%, rgba(184,146,42,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(62,112,85,0.20) 0%, transparent 60%);
}
.about-hero::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.about-hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.about-hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300; line-height: 1.08;
  color: #fff; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.about-hero-title span { color: var(--gold-rich); font-weight: 600; }
.about-hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.65);
  line-height: 1.75; max-width: 560px; font-weight: 300;
}

/* ─── MAIN-CONTENT PAGE ────────────────────────────────────── */
.main-content--page { padding-top: 0; }

/* ─── MISSION & VISION ─────────────────────────────────────── */
.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (max-width: 768px) { .mv-grid { grid-template-columns: 1fr; } }

.mv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: all 0.24s ease;
}
.mv-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}
.mv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.mv-tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.mv-tag::after { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }

.mv-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--accent); margin-bottom: 14px;
}
.mv-body {
  font-size: 15px; color: var(--text-dim); line-height: 1.8;
  font-weight: 300; font-style: italic;
}

/* ─── STATS STRIP ──────────────────────────────────────────── */
.stats-strip {
  background: var(--accent);
  border-top: 1px solid rgba(184,146,42,0.2);
  border-bottom: 1px solid rgba(184,146,42,0.2);
  padding: 0;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 40px;
}
@media (max-width: 768px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
}

.stat-block {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
}
.stat-block:last-child { border-right: none; }
.stat-block:hover { background: rgba(184,146,42,0.05); }

.stat-block .stat-num {
  font-family: var(--serif); font-size: 42px; font-weight: 600;
  color: var(--gold-light); line-height: 1; margin-bottom: 8px;
}
.stat-block .stat-label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ─── LEADERSHIP / SUPERINTENDENT ─────────────────────────── */
.leadership-bg { background: var(--surface-2); }

.superintendent-card {
  display: grid; grid-template-columns: 340px 1fr; gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .superintendent-card { grid-template-columns: 1fr; } }

.supt-photo {
  height: 100%; min-height: 320px;
  background: var(--surface-2);
  position: relative; overflow: hidden;
}

.supt-info { padding: 40px 40px 40px 0; }
@media (max-width: 900px) { .supt-info { padding: 32px; } }

.supt-role {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.supt-role::after { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }

.supt-name {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  color: var(--accent); line-height: 1.2; margin-bottom: 16px;
}
.supt-body {
  font-size: 15px; color: var(--text-dim); line-height: 1.8;
  font-weight: 300; margin-bottom: 28px;
}
.supt-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── ASSISTANT GRID ───────────────────────────────────────── */
.asst-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.asst-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.24s ease;
  text-align: center;
}
.asst-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-hi); }

.asst-photo {
  width: 100%; aspect-ratio: 3/4;
  background: var(--surface-2); overflow: hidden;
  position: relative;
}
.asst-name {
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  color: var(--accent); padding: 16px 16px 4px; line-height: 1.3;
}
.asst-role {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); padding: 0 16px 18px; line-height: 1.4;
}

/* ─── BUTTON OUTLINE DARK ─────────────────────────────────── */
.btn-outline-dark {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border-hi);
}
.btn-outline-dark:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ─── CORE VALUES ─────────────────────────────────────────── */
.values-bg {
  background: var(--accent);
}
.values-section-label {
  color: rgba(184,146,42,0.8) !important;
}
.values-section-label::after {
  background: rgba(184,146,42,0.6) !important;
}
.values-section-title {
  color: #fff !important;
}
.values-section-lead {
  color: rgba(255,255,255,0.60) !important;
}
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.value-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,146,42,0.18);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.24s ease;
}
.value-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(184,146,42,0.38);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.value-icon { font-size: 36px; margin-bottom: 16px; }
.value-title {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--gold-light); margin-bottom: 10px;
}
.value-desc {
  font-size: 13.5px; color: rgba(255,255,255,0.55);
  line-height: 1.7; font-weight: 300;
}

/* ─── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 40px;
}
.cta-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; gap: 48px; } }

.cta-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  margin: 24px 0 32px;
}
.cta-list li {
  font-size: 14px; color: var(--text-dim); line-height: 1.5; font-weight: 400;
  padding-left: 22px; position: relative;
}
.cta-list li::before {
  content: '✦';
  position: absolute; left: 0; color: var(--gold);
  font-size: 10px; top: 3px;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.cta-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  transition: all 0.24s ease; position: relative; overflow: hidden;
}
.cta-stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity 0.24s;
}
.cta-stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hi); }
.cta-stat-card:hover::before { opacity: 1; }

.cta-stat-num {
  font-family: var(--serif); font-size: 38px; font-weight: 600;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}
.cta-stat-label {
  font-size: 11px; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}


/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE — Organic Luxury
   ═══════════════════════════════════════════════════════════ */

/* ─── CONTACT HERO ────────────────────────────────────────── */
.contact-hero {
  position: relative;
  min-height: 360px;
  background: #0e2619;
  display: flex; align-items: center; overflow: hidden;
  padding: 80px 40px;
}

/* Deep layered organic base */
.contact-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 100% 110%, #2d5a1b 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at -5% -10%, #1b4a2a 0%, transparent 50%),
    radial-gradient(ellipse 70% 90% at 50% 50%,  #122014 0%, transparent 70%),
    linear-gradient(155deg, #0e2619 0%, #1a3d2b 45%, #142c1e 100%);
}

/* Botanical leaf silhouettes + gold grid lines */
.contact-hero .hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(184,146,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,146,42,0.04) 1px, transparent 1px),
    radial-gradient(ellipse 28% 70% at 5% 80%,  rgba(74,154,92,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 18% 55% at 12% 20%, rgba(90,181,102,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 35% 65% at 95% 15%, rgba(62,128,72,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 22% 50% at 88% 85%, rgba(77,150,87,0.08) 0%, transparent 50%);
  background-size: 56px 56px, 56px 56px, auto, auto, auto, auto;
}

/* Warm gold breath */
.contact-hero .hero-grid::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(184,146,42,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(195,145,50,0.06) 0%, transparent 55%);
  filter: blur(18px);
}

/* Gold accent bar */
.contact-hero::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 2;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(184,146,42,0.3) 15%,
    var(--gold) 35%,
    var(--gold) 65%,
    rgba(184,146,42,0.3) 85%,
    transparent 100%);
}
.contact-hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.contact-hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300; line-height: 1.08;
  color: #fff; letter-spacing: -0.5px; margin-bottom: 18px;
}
.contact-hero-title span { color: var(--gold-rich); font-weight: 600; }
.contact-hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.65);
  line-height: 1.75; max-width: 520px; font-weight: 300;
}

/* ─── CONTACT GRID ────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-top: 0;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ─── INFO CARDS ──────────────────────────────────────────── */
.info-cards { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all 0.22s ease;
}
.info-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-hi); }

.info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gold-wash);
  border: 1px solid rgba(184,146,42,0.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.info-icon svg { width: 18px; height: 18px; }

.info-label {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.info-value {
  font-size: 15px; font-weight: 600; color: var(--accent); line-height: 1.4;
}
.info-sub {
  font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.5;
}
.info-link {
  color: var(--gold); text-decoration: none; transition: color var(--transition);
}
.info-link:hover { color: var(--gold-rich); }

/* ─── HOURS CARD ──────────────────────────────────────────── */
.hours-card {
  background: var(--accent);
  border: 1px solid rgba(184,146,42,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 4px;
}
.hours-title {
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  color: #fff; margin-bottom: 4px;
}
.hours-sub {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 16px;
}
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hours-row:last-child { border-bottom: none; }
.hours-day { font-size: 13.5px; color: rgba(255,255,255,0.70); font-weight: 400; }
.hours-time { font-size: 13.5px; color: var(--gold-light); font-weight: 600; }
.hours-closed { color: rgba(255,255,255,0.35) !important; font-style: italic; }

/* ─── CONTACT FORM ────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--accent); margin-bottom: 6px;
}
.form-sub {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.form-input, .form-select, .form-textarea {
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--sans);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,42,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-select { cursor: pointer; }
.form-note {
  font-size: 12px; color: var(--text-muted); margin-top: 12px;
}
.form-submit {
  margin-top: 20px;
  width: 100%;
  padding: 14px 28px;
  background: var(--gold);
  color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; font-family: var(--sans);
  cursor: pointer; letter-spacing: 0.04em;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(184,146,42,0.30);
}
.form-submit:hover {
  background: var(--gold-rich); transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(184,146,42,0.40);
}
.form-success {
  background: rgba(46,125,82,0.08);
  border: 1px solid rgba(46,125,82,0.20);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--success);
  font-size: 14px; font-weight: 500;
  display: none;
}

/* ─── MAP SECTION ─────────────────────────────────────────── */
.map-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(184,146,42,0.15);
  padding: 64px 24px 72px;
}

/* Rich organic layered background */
.map-section::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 100% 120%, #2a5519 0%, transparent 50%),
    radial-gradient(ellipse 80%  70% at -10% -10%, #1b4a2a 0%, transparent 45%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #101e14 0%, transparent 75%),
    linear-gradient(160deg, #0d2117 0%, #182f20 40%, #0f1e15 100%);
}

/* Grid lines + botanical leaf silhouettes in background */
.map-section::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(184,146,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,146,42,0.04) 1px, transparent 1px),
    radial-gradient(ellipse 30% 80% at 2%  90%, rgba(74,154,92,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 18% 60% at 8%  15%, rgba(90,181,102,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 25% 70% at 98% 10%, rgba(62,128,72,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 20% 55% at 92% 90%, rgba(77,150,87,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(26,61,43,0.40) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 75%  40%, rgba(184,146,42,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 25%  50%, rgba(184,146,42,0.05) 0%, transparent 50%);
  background-size: 56px 56px, 56px 56px, auto, auto, auto, auto, auto, auto, auto;
}

/* Top gold shimmer line */
.map-section .map-container {
  position: relative; z-index: 2;
}
.map-container {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(184,146,42,0.25);
  box-shadow: 0 24px 64px rgba(0,0,0,0.50), 0 0 0 1px rgba(255,255,255,0.04) inset;
  background: var(--surface-3);
  position: relative;
}

/* Gold top edge on map container */
.map-container::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 10;
  background: linear-gradient(90deg, transparent 0%, rgba(184,146,42,0.6) 50%, transparent 100%);
}

.map-wrap {
  width: 100%; height: 420px;
  position: relative;
}
.map-container iframe { width: 100%; height: 100%; border: none; display: block; }
.map-overlay {
  position: absolute; top: 20px; left: 20px;
  background: rgba(14, 28, 18, 0.82);
  border: 1px solid rgba(184,146,42,0.28);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(255,255,255,0.04) inset;
  max-width: 300px;
  z-index: 10;
  backdrop-filter: blur(16px);
}

/* Gold top line on overlay */
.map-overlay::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,146,42,0.5), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}

.map-overlay-title {
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  color: #fff; margin-bottom: 4px;
}
.map-overlay-addr {
  font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 10px;
}
.map-overlay-link {
  font-size: 12px; font-weight: 700; color: var(--gold);
  text-decoration: none; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 5px;
}
.map-overlay-link:hover { color: var(--gold-rich); }

/* ─── DIRECTORY STRIP ────────────────────────────────────── */
.directory-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 40px;
}
.directory-strip-inner {
  max-width: 1200px; margin: 0 auto;
}
.dir-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
  margin-top: 40px;
}
.dir-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all 0.22s ease;
}
.dir-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-hi); }
.dir-card-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.dir-card-name {
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  color: var(--accent); margin-bottom: 3px; line-height: 1.3;
}
.dir-card-role {
  font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5;
}
.dir-card-contact { display: flex; flex-direction: column; gap: 6px; }
.dir-card--editable { cursor:grab; position:relative; transition:border-color .18s,box-shadow .18s,opacity .18s,transform .18s; }
.dir-card--editable:active { cursor:grabbing; }
.dir-card--editable.dragging { opacity:.42; transform:scale(.98); }
.dir-card--editable.drag-over { border-color:var(--gold); }
.dir-card--editable.edit-selected { border-color:var(--gold); box-shadow:0 0 0 3px rgba(197,145,24,.12); }
.dir-card-drag {
  color:var(--gold); left:10px; opacity:.42; position:absolute; top:9px; transition:.15s;
}
.dir-card--editable:hover .dir-card-drag { opacity:1; }
.dir-card-edit {
  align-items:center; background:var(--accent); border:2px solid #fff; border-radius:50%;
  box-shadow:0 5px 14px rgba(0,0,0,.2); color:#fff; cursor:pointer; display:flex;
  height:35px; justify-content:center; opacity:0; pointer-events:none; position:absolute;
  right:11px; top:11px; transform:scale(.75); transition:.16s ease; width:35px; z-index:3;
}
.dir-card--editable.edit-selected .dir-card-edit {
  opacity:1; pointer-events:auto; transform:scale(1);
}
.dir-card-add {
  align-items:center; background:rgba(197,145,24,.035); border:2px dashed rgba(197,145,24,.45);
  color:var(--accent); cursor:pointer; display:flex; flex-direction:column; font-family:var(--sans);
  justify-content:center; min-height:190px; text-align:center; transition:.18s ease;
}
.dir-card-add:hover {
  background:rgba(197,145,24,.09); border-color:var(--gold); transform:translateY(-2px);
}
.dir-card-add-icon {
  align-items:center; background:var(--accent); border-radius:50%; color:#fff; display:flex;
  height:46px; justify-content:center; margin-bottom:10px; width:46px;
}
.dir-card-add strong { font-size:13px; }
.dir-card-add small { color:var(--text-muted); font-size:10px; margin-top:4px; }
.dir-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-dim);
}
.dir-contact-item svg { color: var(--gold); flex-shrink: 0; }
.dir-contact-item a {
  color: var(--accent-light); text-decoration: none;
  transition: color var(--transition); word-break: break-all;
}
.dir-contact-item a:hover { color: var(--gold); }


/* ═══════════════════════════════════════════════════════════
   TRANSPARENCY (RESOURCES) PAGE — Organic Luxury
   ═══════════════════════════════════════════════════════════ */

/* ─── TS HERO (override navy to green luxury) ─────────────── */
.ts-hero {
  background: var(--accent) !important;
  background-image:
    radial-gradient(ellipse 70% 80% at 90% 30%, rgba(184,146,42,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(62,112,85,0.25) 0%, transparent 55%) !important;
  border-bottom: 3px solid var(--gold) !important;
  padding: 64px 32px 56px;
  text-align: center;
  position: relative; overflow: hidden;
}
.ts-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,146,42,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,146,42,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
.ts-hero-seal {
  width: 80px; height: 80px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.ts-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(184,146,42,0.15);
  border: 1px solid rgba(184,146,42,0.35);
  border-radius: 100px; padding: 5px 16px; margin-bottom: 18px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--gold-light); text-transform: uppercase; font-family: var(--mono);
  position: relative; z-index: 1;
}
.ts-hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400; color: #fff; line-height: 1.15;
  margin-bottom: 14px; letter-spacing: -0.3px;
  position: relative; z-index: 1;
}
.ts-hero-title span { color: var(--gold-rich); font-weight: 600; }
.ts-hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.60);
  max-width: 560px; margin: 0 auto 24px; line-height: 1.75;
  font-weight: 300; position: relative; z-index: 1;
}
.ts-law-badge {
  display: inline-block;
  background: rgba(184,146,42,0.10); border: 1px solid rgba(184,146,42,0.22);
  border-radius: 8px; padding: 8px 20px;
  font-size: 12px; color: rgba(255,255,255,0.50); font-family: var(--mono);
  position: relative; z-index: 1;
}
.ts-law-badge strong { color: var(--gold-light); }

/* ─── TS WRAP & INTRO ─────────────────────────────────────── */
.ts-wrap {
  max-width: 960px; margin: 0 auto; padding: 48px 24px 80px;
}
.ts-intro {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--gold-wash);
  border: 1px solid rgba(184,146,42,0.18);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}
.ts-intro-icon { font-size: 28px; flex-shrink: 0; }
.ts-intro-text { font-size: 14px; color: var(--text-dim); line-height: 1.75; }
.ts-intro-text strong { color: var(--accent); }

/* ─── TS CARDS ────────────────────────────────────────────── */
.ts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px; overflow: hidden;
  transition: box-shadow 0.22s;
}
.ts-card:hover { box-shadow: var(--shadow-md); }

.ts-card-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--accent) !important;
  background-image:
    radial-gradient(ellipse 100% 100% at 100% 0%, rgba(184,146,42,0.15) 0%, transparent 60%) !important;
}
.ts-card-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(184,146,42,0.18);
  border: 1px solid rgba(184,146,42,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--gold-light); font-family: var(--mono);
}
.ts-card-title {
  font-size: 14px; font-weight: 700; color: #fff;
}
.ts-card-title small {
  display: block; font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.45); margin-top: 2px; font-family: var(--mono);
}

/* ─── TS DOCUMENT LIST ────────────────────────────────────── */
.ts-card-body { padding: 0 24px; }
.ts-doc-list { list-style: none; }
.ts-doc-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.ts-doc-item:last-child { border-bottom: none; }
.ts-doc-icon { font-size: 22px; flex-shrink: 0; }
.ts-doc-info { flex: 1; min-width: 0; }
.ts-doc-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.4; margin-bottom: 3px;
}
.ts-doc-meta {
  font-size: 11.5px; color: var(--text-muted);
  font-family: var(--mono); letter-spacing: 0.02em;
}
.ts-doc-status {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 100px; white-space: nowrap; flex-shrink: 0;
  font-family: var(--mono);
}
.status-available {
  background: rgba(46,125,82,0.10); color: var(--success);
  border: 1px solid rgba(46,125,82,0.22);
}
.status-pending {
  background: rgba(199,124,26,0.10); color: var(--warn);
  border: 1px solid rgba(199,124,26,0.22);
}
.ts-doc-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold); text-decoration: none;
  font-family: var(--mono); flex-shrink: 0;
  transition: color var(--transition);
}
.ts-doc-link:hover { color: var(--gold-rich); }

/* ─── TS NOTICE ───────────────────────────────────────────── */
.ts-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0 20px;
  font-size: 13px; color: var(--text-dim); line-height: 1.65;
}
.ts-notice svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }


/* ═══════════════════════════════════════════════════════════
   HISTORY PAGE — colour corrections for Organic Luxury
   (keeps existing history.css layout, just aligns to green/gold)
   ═══════════════════════════════════════════════════════════ */

/* Override navy hero with deep green */
.hy-hero {
  background: var(--accent) !important;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(184,146,42,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(26,61,43,0.6) 0%, transparent 60%) !important;
}


/* ═══════════════════════════════════════════════════════════
   TEMPLATES PAGE — Organic Luxury
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO ────────────────────────────────────────────────── */
.tmpl-hero {
  position: relative;
  min-height: 380px;
  background: var(--accent);
  display: flex; align-items: center; overflow: hidden;
  padding: 80px 40px;
}
.tmpl-hero .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,146,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,146,42,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.tmpl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 85% 40%, rgba(184,146,42,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 5% 85%,  rgba(62,112,85,0.22) 0%, transparent 55%);
}
.tmpl-hero::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.tmpl-hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.tmpl-hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300; line-height: 1.08;
  color: #fff; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.tmpl-hero-title span { color: var(--gold-rich); font-weight: 600; }
.tmpl-hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.65);
  line-height: 1.75; max-width: 560px; font-weight: 300;
  margin-bottom: 28px;
}
.tmpl-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.tmpl-meta-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,0.75);
  font-family: var(--mono); letter-spacing: 0.04em;
}
.tmpl-meta-chip svg { color: var(--gold-light); flex-shrink: 0; }

/* ─── NOTICE BAR ──────────────────────────────────────────── */
.tmpl-notice {
  background: var(--gold-wash);
  border-top: 1px solid rgba(184,146,42,0.18);
  border-bottom: 1px solid rgba(184,146,42,0.18);
  padding: 12px 40px;
}
.tmpl-notice-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text-dim); line-height: 1.6;
}
.tmpl-notice-inner svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.tmpl-notice-inner strong { color: var(--accent); }

/* ─── SECTION WRAPPER ─────────────────────────────────────── */
.tmpl-section {
  background: var(--bg);
  padding: 56px 40px 80px;
}
.tmpl-inner {
  max-width: 1200px; margin: 0 auto;
}

/* ─── SEARCH BAR ──────────────────────────────────────────── */
.tmpl-search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 18px;
  margin-bottom: 40px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tmpl-search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,42,0.10);
}
.tmpl-search-bar svg { color: var(--text-muted); flex-shrink: 0; }
.tmpl-search-bar input {
  flex: 1; border: none; outline: none;
  font-size: 14px; font-family: var(--sans); color: var(--text);
  background: transparent;
}
.tmpl-search-bar input::placeholder { color: var(--text-light); }

/* ─── CATEGORY ────────────────────────────────────────────── */
.tmpl-category { margin-bottom: 40px; }
.tmpl-cat-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.tmpl-cat-icon { font-size: 20px; }
.tmpl-cat-label {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--accent); flex: 1;
}
.tmpl-cat-count {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 100px;
}

/* ─── TEMPLATE CARDS ──────────────────────────────────────── */
.tmpl-cards {
  display: flex; flex-direction: column; gap: 10px;
}
.tmpl-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: all 0.22s ease;
}
.tmpl-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hi);
  transform: translateX(3px);
}

/* File icon */
.tmpl-card-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
}
.tmpl-icon-docx {
  background: rgba(28,100,168,0.08);
  border-color: rgba(28,100,168,0.15);
  color: #1C64A8;
}
.tmpl-icon-pdf {
  background: rgba(192,57,43,0.08);
  border-color: rgba(192,57,43,0.15);
  color: #C0392B;
}

/* Body */
.tmpl-card-body { flex: 1; min-width: 0; }
.tmpl-card-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.35; margin-bottom: 4px;
}
.tmpl-card-specs {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--mono); letter-spacing: 0.02em;
}

/* Actions */
.tmpl-card-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

/* Format badge */
.tmpl-ext-badge {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
}
.tmpl-ext-docx {
  background: rgba(28,100,168,0.09); color: #1C64A8;
  border: 1px solid rgba(28,100,168,0.18);
}
.tmpl-ext-pdf {
  background: rgba(192,57,43,0.09); color: #C0392B;
  border: 1px solid rgba(192,57,43,0.18);
}

/* Preview button */
.tmpl-preview-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 600; font-family: var(--sans);
  letter-spacing: 0.03em; cursor: pointer;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.tmpl-preview-btn:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent);
}
.tmpl-preview-btn--ext:hover {
  background: var(--gold-wash);
  border-color: var(--gold);
  color: var(--gold);
}

/* Download button */
.tmpl-dl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 700; font-family: var(--sans);
  letter-spacing: 0.03em; cursor: pointer;
  background: var(--gold); color: #fff;
  border: none; text-decoration: none;
  box-shadow: 0 2px 10px rgba(184,146,42,0.25);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.tmpl-dl-btn:hover {
  background: var(--gold-rich);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(184,146,42,0.35);
}

/* Empty state */
.tmpl-empty {
  text-align: center; padding: 64px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Responsive */
@media (max-width: 680px) {
  .tmpl-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tmpl-card-actions { flex-wrap: wrap; }
  .tmpl-section { padding: 40px 20px 60px; }
  .tmpl-notice { padding: 12px 20px; }
}


/* ═══════════════════════════════════════════════════════════
   TEMPLATE PREVIEW MODAL — Organic Luxury
   Full-viewport overlay with iframe + header + footer bar
   ═══════════════════════════════════════════════════════════ */

.tprev-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(10,22,16,0.70);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.tprev-overlay.tprev-open {
  opacity: 1; pointer-events: all;
}

.tprev-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.18);
  width: 100%; max-width: 960px;
  height: 90vh; max-height: 880px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
.tprev-overlay.tprev-open .tprev-modal {
  transform: translateY(0) scale(1);
}

/* ─── Modal Header ──────────────────────────────────────── */
.tprev-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--accent);
  flex-shrink: 0;
}
.tprev-header-left {
  display: flex; align-items: center; gap: 14px;
}
.tprev-file-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(184,146,42,0.16);
  border: 1px solid rgba(184,146,42,0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); flex-shrink: 0;
}
.tprev-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
}
.tprev-title {
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  color: #fff; line-height: 1.25;
}

.tprev-header-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

/* Download button inside modal header */
.tprev-dl-btn-modal {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; font-family: var(--sans);
  letter-spacing: 0.03em;
  background: var(--gold); color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(184,146,42,0.35);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.tprev-dl-btn-modal:hover {
  background: var(--gold-rich); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(184,146,42,0.45);
}

/* Close button */
.tprev-close-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all 0.18s ease;
}
.tprev-close-btn:hover {
  background: rgba(192,57,43,0.25);
  border-color: rgba(192,57,43,0.40);
  color: #fff;
}

/* ─── iFrame Body ───────────────────────────────────────── */
.tprev-body {
  flex: 1; position: relative; overflow: hidden;
  background: var(--surface-2);
}
.tprev-loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  font-size: 14px; color: var(--text-muted); font-weight: 500;
}
.tprev-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: tprevSpin 0.8s linear infinite;
}
@keyframes tprevSpin { to { transform: rotate(360deg); } }

#tprevFrame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; display: block;
  transition: opacity 0.3s ease;
}

/* ─── Modal Footer ──────────────────────────────────────── */
.tprev-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}
.tprev-footer-note {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-muted); font-family: var(--mono);
  letter-spacing: 0.02em;
}
.tprev-footer-note svg { color: var(--gold); flex-shrink: 0; }

.tprev-open-new {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; font-family: var(--mono);
  letter-spacing: 0.06em; color: var(--gold);
  text-decoration: none; text-transform: uppercase;
  transition: color var(--transition);
}
.tprev-open-new:hover { color: var(--gold-rich); }

/* Responsive */
@media (max-width: 640px) {
  .tprev-overlay { padding: 0; align-items: flex-end; }
  .tprev-modal   { border-radius: 20px 20px 0 0; height: 94vh; max-height: none; }
  .tprev-title   { font-size: 15px; }
  .tprev-footer  { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════ */

.login-wrap {
  min-height: calc(100vh - var(--navbar-height, 120px));
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         48px 20px 64px;
  gap:             28px;
}

/* Branding block above card */
.login-brand {
  display:     flex;
  align-items: center;
  gap:         16px;
  text-align:  left;
}
.login-seal {
  width:     56px;
  height:    56px;
  flex-shrink: 0;
}
.login-seal img {
  width:      100%;
  height:     100%;
  object-fit: contain;
}
.login-brand-text { display: flex; flex-direction: column; gap: 1px; }
.login-republic {
  font-size:      10.5px;
  font-style:     italic;
  color:          var(--text-muted);
  letter-spacing: 0.02em;
}
.login-dept {
  font-family: var(--serif);
  font-size:   18px;
  font-weight: 600;
  color:       var(--accent);
  line-height: 1.15;
}
.login-division {
  font-size:      11px;
  font-weight:    600;
  color:          var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Card */
.login-card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-md);
  padding:       36px 40px 32px;
  width:         100%;
  max-width:     420px;
}

.admin-badge {
  display:        inline-flex;
  align-items:    center;
  padding:        3px 12px;
  background:     var(--gold-glow);
  border:         1px solid rgba(184,146,42,0.25);
  border-radius:  20px;
  font-size:      10px;
  font-weight:    700;
  font-family:    var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-bottom:  14px;
}

.login-card-title {
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--text-muted);
  margin-bottom:  4px;
  font-family:    var(--mono);
}

.login-card-heading {
  font-family:   var(--serif);
  font-size:     26px;
  font-weight:   600;
  color:         var(--accent);
  margin:        0 0 24px;
  line-height:   1.2;
}

/* Error message */
.login-error {
  display:       flex;
  align-items:   center;
  gap:           8px;
  padding:       11px 14px;
  background:    rgba(192,57,43,0.08);
  border:        1px solid rgba(192,57,43,0.22);
  border-radius: var(--radius-sm);
  color:         var(--danger);
  font-size:     13px;
  font-weight:   500;
  margin-bottom: 20px;
}

/* Form fields */
.form-group {
  display:        flex;
  flex-direction: column;
  gap:            6px;
  margin-bottom:  16px;
}
.form-label {
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--text-dim);
  font-family:    var(--mono);
}
.form-input {
  width:         100%;
  padding:       10px 14px;
  border:        1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size:     14px;
  font-family:   var(--sans);
  color:         var(--text);
  background:    var(--surface);
  outline:       none;
  transition:    border-color 0.18s, box-shadow 0.18s;
  box-sizing:    border-box;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow:   0 0 0 3px rgba(184,146,42,0.12);
}
.form-input::placeholder { color: var(--text-light); }

/* Password field wrapper */
.input-wrap {
  position: relative;
  display:  flex;
  align-items: center;
}
.input-wrap .form-input { padding-right: 42px; }

.pwd-toggle {
  position:      absolute;
  right:         10px;
  background:    none;
  border:        none;
  cursor:        pointer;
  color:         var(--text-muted);
  padding:       4px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  border-radius: 4px;
  transition:    color 0.15s;
}
.pwd-toggle:hover { color: var(--accent); }

/* Divider */
.login-divider {
  height:        1px;
  background:    var(--border);
  margin:        20px 0;
}

/* Submit button */
.btn-login {
  width:           100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         12px 20px;
  background:      var(--accent);
  color:           #fff;
  border:          none;
  border-radius:   var(--radius-sm);
  font-size:       14px;
  font-weight:     700;
  font-family:     var(--sans);
  cursor:          pointer;
  transition:      background 0.18s, box-shadow 0.18s;
  letter-spacing:  0.02em;
}
.btn-login:hover {
  background:  var(--accent-dim);
  box-shadow:  var(--shadow-md);
}

/* Back link */
.login-back {
  text-align:  center;
  margin-top:  18px;
}
.login-back a {
  font-size:       12px;
  color:           var(--text-muted);
  text-decoration: none;
  transition:      color 0.15s;
}
.login-back a:hover { color: var(--accent); }

/* Footer note */
.login-footer {
  font-family:    var(--mono);
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 0.12em;
  color:          var(--text-light);
  text-align:     center;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card {
    padding:       28px 22px 24px;
    border-radius: var(--radius);
  }
  .login-brand { flex-direction: column; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════
   SHOWCASE SLIDER SECTION  (index.php)
   ═══════════════════════════════════════════════════════════ */
.showcase-section {
  background:  var(--surface);
  padding:     56px 0 0;
  border-top:  1px solid var(--border);
}
.showcase-inner {
  max-width: 1200px;
  margin:    0 auto;
  padding:   0 40px;
}
.showcase-header {
  display:         flex;
  align-items:     baseline;
  justify-content: space-between;
  gap:             16px;
  margin-bottom:   24px;
  flex-wrap:       wrap;
}
.showcase-title {
  font-family:  var(--serif);
  font-size:    clamp(1.4rem, 2.5vw, 2rem);
  font-weight:  600;
  color:        var(--accent);
  margin:       0;
  flex:         1;
}
.showcase-title em { color: var(--gold); font-style: italic; }

.showcase-manage-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  padding:         6px 14px;
  border:          1px solid var(--border);
  border-radius:   var(--radius-sm);
  font-size:       12px;
  font-weight:     700;
  color:           var(--text-dim);
  text-decoration: none;
  background:      var(--surface-2);
  transition:      all var(--transition);
  white-space:     nowrap;
}
.showcase-manage-btn:hover {
  border-color: var(--gold);
  color:        var(--gold);
  background:   var(--gold-wash);
}

/* Extend the hs-section so it sits flush inside the section */
.showcase-section .hs-section {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  height:        500px;
  margin-top:    0;
}
@media (max-width: 768px) {
  .showcase-inner { padding: 0 20px; }
  .showcase-section .hs-section { height: 340px; border-radius: var(--radius) var(--radius) 0 0; }
}
@media (max-width: 480px) {
  .showcase-section .hs-section { height: 260px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .showcase-section { padding-top: 40px; }
}
/* ═══════════════════════════════════════════════════════════
   ISSUANCE PANEL — Redesigned (Organic Luxury Theme)
   Drop-in replacement styles for .issuance-panel
   Add to css/pages.css (or include as css/issuances.css)
   ═══════════════════════════════════════════════════════════ */

/* ── PANEL SHOW/HIDE ── */
.issuance-panel          { display: none; animation: ipanel-fade 260ms ease; }
.issuance-panel.active   { display: block; }
@keyframes ipanel-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CARD CONTAINER ── */
.ipanel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 20px);
  box-shadow: var(--shadow-md, 0 8px 32px rgba(26,61,43,0.08));
  border-top: 3px solid var(--gold);
  overflow: hidden;
}

/* ── HEADER ── */
.ipanel-header {
  padding: 28px 32px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(26,61,43,0.02) 0%, rgba(184,146,42,0.03) 100%);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
}
.ipanel-eyebrow {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.ipanel-eyebrow::after { content: ''; width: 20px; height: 1px; background: var(--gold); }
.ipanel-title {
  font-family: var(--serif); font-size: 26px; font-weight: 400;
  color: var(--accent); line-height: 1.15; margin-bottom: 6px;
}
.ipanel-desc {
  font-size: 13.5px; color: var(--text-dim); font-weight: 300; line-height: 1.65;
  max-width: 520px;
}
.ipanel-header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; padding-top: 4px; }

/* Admin buttons */
.ipanel-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm, 6px);
  font-size: 13px; font-weight: 700; font-family: var(--sans);
  border: none; cursor: pointer; transition: all var(--transition, 180ms ease);
  letter-spacing: 0.02em; white-space: nowrap;
}
.ipanel-btn--select {
  border: 1px solid var(--border, #ddd); color: var(--text, #333);
  background: transparent;
  transition: all 0.18s;
}
.ipanel-btn--select:hover { border-color: #e74c3c; color: #e74c3c; background: rgba(231,76,60,0.06); }
.ipanel-btn--scan {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 12px rgba(26,61,43,0.18);
}
.ipanel-btn--scan:hover { background: var(--accent-dim, #2C6147); transform: translateY(-1px); }
.ipanel-btn--upload {
  background: var(--surface); color: var(--text-dim);
  border: 1px solid var(--border);
}
.ipanel-btn--upload:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-wash, rgba(184,146,42,0.06)); }
.ipanel-btn--batch {
  background: var(--surface); color: var(--text-dim);
  border: 1px solid var(--border);
}
.ipanel-btn--batch:hover { border-color: var(--accent); color: var(--accent); background: rgba(26,61,43,0.05); }

/* ── FILTERS BAR ── */
.ipanel-filters-bar {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.ipanel-search-box {
  position: relative; flex: 1; min-width: 220px; max-width: 360px;
}
.ipanel-search-box svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.ipanel-search-input {
  width: 100%; padding: 10px 76px 10px 40px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13.5px; font-family: var(--sans);
  color: var(--text); outline: none;
  box-shadow: inset 0 1px 3px rgba(26,61,43,0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ipanel-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,42,0.12);
}
.ipanel-search-input::placeholder { color: var(--text-muted); }
.ipanel-search-submit {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  padding: 6px 10px; border: 0; border-radius: 7px;
  background: var(--accent); color: #fff;
  font: 600 11px var(--sans); cursor: pointer;
}
.ipanel-search-submit:hover { background: var(--accent-mid); }

.ipanel-filter-divider { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

.ipanel-year-group { display: flex; gap: 6px; flex-wrap: wrap; }
.ipanel-year-btn {
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  font-size: 12.5px; font-weight: 500; font-family: var(--sans);
  text-decoration: none; cursor: pointer;
  transition: all var(--transition);
}
.ipanel-year-btn:hover { border-color: var(--accent-light, #3D7A5A); color: var(--text); }
.ipanel-year-btn.active {
  background: var(--surface); color: var(--accent);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,146,42,0.12);
}

/* Error alert */
.ipanel-alert {
  margin: 14px 32px;
  padding: 12px 16px;
  background: rgba(192,57,43,0.06);
  border: 1px solid rgba(192,57,43,0.20);
  border-radius: var(--radius-sm, 6px);
  color: var(--danger, #C0392B);
  font-size: 13.5px;
}

/* ── TABLE ── */
.ipanel-table-wrap { overflow-x: auto; }
.ipanel-table { width: 100%; border-collapse: collapse; }

.ipanel-table thead {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid, #224E38) 100%);
  border-bottom: 2px solid var(--gold);
}
.ipanel-table thead th {
  padding: 13px 20px; text-align: left;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); white-space: nowrap;
  font-weight: 700;
}
.ipanel-table thead th:first-child { padding-left: 32px; }
.ipanel-table thead th:last-child  { padding-right: 32px; text-align: right; }

.ipanel-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.ipanel-table tbody tr:last-child { border-bottom: none; }
.ipanel-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(184,146,42,0.03) 0%, rgba(184,146,42,0.01) 100%);
}
.ipanel-table tbody td { padding: 16px 20px; vertical-align: middle; }
.ipanel-table tbody td:first-child { padding-left: 32px; }
.ipanel-table tbody td:last-child  { padding-right: 32px; text-align: right; }

/* Cell content */
.ipanel-memo-num {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--gold);
  background: var(--gold-wash, rgba(184,146,42,0.06));
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(184,146,42,0.15);
  display: inline-block; white-space: nowrap;
}
.ipanel-doc-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.35; margin-bottom: 3px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ipanel-doc-sub { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.ipanel-date {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--text-dim, #7a7062); white-space: nowrap;
  letter-spacing: 0.03em;
}
.ipanel-uploader-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ipanel-uploader-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-family: var(--mono); }

/* NEW badge — organic luxury */
.ipanel-badge {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px;
  position: relative; overflow: hidden;
}
/* shimmer sweep */
.ipanel-badge::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.30) 50%, transparent 65%);
  background-size: 200% 100%;
  animation: badgeShimmer 2.4s ease-in-out infinite;
}
@keyframes badgeShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.ipanel-badge--new {
  background: linear-gradient(135deg, #b8892a 0%, #d4a84b 50%, #b8892a 100%);
  color: #fff;
  border: 1px solid rgba(184,138,42,0.55);
  box-shadow: 0 1px 6px rgba(184,138,42,0.30), inset 0 1px 0 rgba(255,255,255,0.15);
}
.ipanel-badge--new::before { content: '✦'; font-size: 7px; opacity: 0.85; }
.ipanel-badge--urgent { background: rgba(192,57,43,0.10); color: var(--danger, #C0392B); border: 1px solid rgba(192,57,43,0.25); }

/* Action buttons */
.ipanel-action-btns { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ipanel-btn-icon {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-dim); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; flex-shrink: 0;
  text-decoration: none;
}
.ipanel-btn-icon:hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(26,61,43,0.10); }
/* Download — gold on hover, matching the theme accent */
.ipanel-btn-icon--view:hover   {
  background: var(--gold-wash, rgba(184,146,42,0.09));
  border-color: rgba(184,146,42,0.50);
  color: var(--gold, #b8892a);
  box-shadow: 0 3px 14px rgba(184,146,42,0.18);
}
.ipanel-btn-icon--edit:hover   { background: rgba(99,115,220,0.07); border-color: rgba(99,115,220,0.45); color: #6373dc; }
.ipanel-btn-icon--delete:hover { background: rgba(192,57,43,0.07);  border-color: rgba(192,57,43,0.40);  color: var(--danger, #C0392B); }

/* ── YEAR SECTION (division memo) ── */
.memo-year-section { margin-bottom: 0; }
.memo-year-section + .memo-year-section { margin-top: 24px; }

.memo-year-section--current .ipanel-table-wrap,
.memo-year-section--former  .ipanel-table-wrap {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

/* ── EMPTY STATE ── */
.ipanel-empty {
  padding: 64px 40px; text-align: center;
}
.ipanel-empty-icon {
  font-size: 40px; margin-bottom: 16px;
  display: block; opacity: 0.4;
}
.ipanel-empty h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: var(--accent); margin-bottom: 8px;
}
.ipanel-empty p { font-size: 14px; color: var(--text-muted); font-weight: 300; }

/* ── FOOTER / PAGINATION ── */
.ipanel-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.ipanel-result-label {
  font-size: 13px; color: var(--text-muted); font-family: var(--mono);
}
.ipanel-result-label strong { color: var(--accent); }
.ipanel-pagination { display: flex; gap: 4px; align-items: center; }
.ipanel-page-btn {
  min-width: 34px; height: 34px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  font-size: 13px; font-family: var(--sans);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.ipanel-page-btn:hover:not([style*="opacity"]) { border-color: var(--accent-light, #3D7A5A); color: var(--text); }
.ipanel-page-btn.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  font-weight: 700; box-shadow: var(--shadow-sm);
}
.ipanel-page-ellipsis {
  color: var(--text-muted); font-size: 13px; padding: 0 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ipanel-header { flex-direction: column; }
  .ipanel-header-actions { width: 100%; }
}
@media (max-width: 640px) {
  .ipanel-filters-bar { flex-direction: column; align-items: stretch; }
  .ipanel-search-box { max-width: 100%; }
  .ipanel-table thead th:nth-child(3),
  .ipanel-table thead th:nth-child(4),
  .ipanel-table tbody td:nth-child(3),
  .ipanel-table tbody td:nth-child(4) { display: none; }
  .ipanel-header { padding: 20px; }
  .ipanel-filters-bar { padding: 14px 20px; }
  .ipanel-footer { padding: 14px 20px; }
  .ipanel-table thead th:first-child,
  .ipanel-table tbody td:first-child { padding-left: 20px; }
  .ipanel-table thead th:last-child,
  .ipanel-table tbody td:last-child  { padding-right: 20px; }
}
/* ── Clickable memo number & title links ── */
a.ipanel-memo-num-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
a.ipanel-memo-num-link:hover .ipanel-memo-num,
a.ipanel-memo-num-link:focus .ipanel-memo-num {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent, #c0392b);
}
a.ipanel-title-link {
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
}
a.ipanel-title-link:hover,
a.ipanel-title-link:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent, #c0392b);
}

/* Official Templates admin upload */
.tmpl-admin-row { display:flex; justify-content:flex-end; margin:-2px 0 24px; }
.tmpl-admin-upload-btn {
  background:var(--accent); border:0; border-radius:9px; color:#fff; cursor:pointer;
  font:600 12px var(--sans); padding:11px 17px;
}
.tmpl-delete-btn {
  background:#fff4f2; border:1px solid #e8b8b1; border-radius:7px; color:#a53326;
  cursor:pointer; font:600 10px var(--sans); padding:7px 9px;
}
.tmpl-edit-btn {
  background:#f3f7f4; border:1px solid #b9cec2; border-radius:7px; color:var(--accent);
  cursor:pointer; font:600 10px var(--sans); padding:7px 9px;
}
.tupload-overlay {
  align-items:center; background:rgba(5,24,17,.64); display:flex; inset:0; justify-content:center;
  opacity:0; padding:20px; pointer-events:none; position:fixed; transition:.2s ease; z-index:10050;
}
.tupload-overlay.open { opacity:1; pointer-events:auto; }
.tupload-modal {
  background:#fff; border-radius:18px; box-shadow:0 30px 80px rgba(0,0,0,.28);
  max-width:590px; overflow:hidden; transform:translateY(12px); transition:.2s ease; width:100%;
}
.tupload-overlay.open .tupload-modal { transform:translateY(0); }
.tupload-header {
  align-items:flex-start; background:var(--accent); color:#fff; display:flex;
  justify-content:space-between; padding:22px 25px;
}
.tupload-header span { color:#d9bc72; font-size:9px; font-weight:700; letter-spacing:.14em; }
.tupload-header h2 { font-family:var(--serif); font-size:27px; margin:3px 0 0; }
.tupload-header button { background:none; border:0; color:#fff; cursor:pointer; font-size:28px; line-height:1; }
.tupload-body { display:grid; gap:15px; padding:24px 25px; }
.tupload-body label > span { color:var(--text-dim); display:block; font-size:11px; font-weight:700; margin-bottom:6px; }
.tupload-body input {
  border:1px solid var(--border); border-radius:9px; box-sizing:border-box;
  font:13px var(--sans); height:43px; padding:0 12px; width:100%;
}
.tupload-body input[type=file] { height:auto; padding:11px; }
.tupload-file small { color:var(--text-muted); display:block; font-size:10px; margin-top:6px; }
.tupload-alert { display:none; border-radius:8px; font-size:12px; padding:10px 12px; }
.tupload-alert.error { background:#fff1ef; color:#a32a1e; display:block; }
.tupload-alert.success { background:#edf9f1; color:#176b37; display:block; }
.tupload-footer {
  align-items:center; background:#faf8f3; border-top:1px solid var(--border);
  display:flex; gap:9px; justify-content:flex-end; padding:16px 25px;
}
.tupload-footer button { border-radius:8px; cursor:pointer; font:600 12px var(--sans); padding:10px 15px; }
.tupload-cancel { background:#fff; border:1px solid var(--border); color:var(--text-dim); }
.tupload-submit { background:var(--accent); border:1px solid var(--accent); color:#fff; }
.tupload-submit:disabled { cursor:wait; opacity:.55; }
@media (max-width:600px) {
  .tupload-overlay { align-items:flex-end; padding:0; }
  .tupload-modal { border-radius:18px 18px 0 0; }
  .tmpl-admin-row { justify-content:stretch; }
  .tmpl-admin-upload-btn { width:100%; }
}

/* In-place Contact page editor */
.cedit-overlay {
  background:rgba(4,24,17,.58); inset:0; opacity:0; pointer-events:none;
  position:fixed; transition:.2s ease; z-index:11000;
}
.cedit-overlay.open { opacity:1; pointer-events:auto; }
.cedit-drawer {
  background:#fff; box-shadow:-20px 0 60px rgba(0,0,0,.25); height:100%;
  margin-left:auto; max-width:720px; overflow-y:auto; transform:translateX(100%);
  transition:.24s ease; width:min(720px,94vw);
}
.cedit-overlay.open .cedit-drawer { transform:translateX(0); }
.cedit-header {
  align-items:flex-start; background:var(--accent); color:#fff; display:flex;
  justify-content:space-between; padding:23px 27px;
}
.cedit-header span { color:#d7b75e; font-size:9px; font-weight:700; letter-spacing:.16em; }
.cedit-header h2 { font-family:var(--serif); font-size:29px; margin:3px 0 0; }
.cedit-header button { background:none; border:0; color:#fff; cursor:pointer; font-size:30px; line-height:1; }
.cedit-tabs { background:#f8f5ee; border-bottom:1px solid var(--border); display:flex; padding:0 25px; }
.cedit-tabs button { background:none; border:0; border-bottom:2px solid transparent; color:var(--text-muted); cursor:pointer; font:600 12px var(--sans); padding:14px 17px; }
.cedit-tabs button.active { border-color:var(--gold); color:var(--accent); }
.cedit-panel { display:none; padding:25px 27px 45px; }
.cedit-panel.active { display:block; }
.cedit-form h3,.cedit-directory-head h3 { color:var(--accent); font:700 14px var(--sans); margin:4px 0 14px; }
.cedit-form h3:not(:first-child) { border-top:1px solid var(--border); margin-top:24px; padding-top:22px; }
.cedit-grid { display:grid; gap:14px; grid-template-columns:1fr 1fr; }
.cedit-grid label.wide { grid-column:1/-1; }
.cedit-grid label > span { color:var(--text-dim); display:block; font-size:10px; font-weight:700; margin-bottom:5px; }
.cedit-grid input,.cedit-grid textarea {
  border:1px solid var(--border); border-radius:8px; box-sizing:border-box;
  font:12px var(--sans); padding:10px 11px; width:100%;
}
.cedit-grid textarea { min-height:72px; resize:vertical; }
.cedit-check { align-items:center; display:flex; gap:8px; padding-top:20px; }
.cedit-check input { width:auto; }
.cedit-check span { margin:0!important; }
.cedit-actions { display:flex; gap:9px; justify-content:flex-end; margin-top:20px; }
.cedit-actions button,.cedit-directory-head button {
  background:var(--accent); border:1px solid var(--accent); border-radius:8px;
  color:#fff; cursor:pointer; font:600 11px var(--sans); padding:10px 14px;
}
.cedit-actions button.secondary { background:#fff; border-color:var(--border); color:var(--text-dim); }
.cedit-message { display:none; font-size:11px; margin-top:14px; padding:10px; }
.cedit-message.success { background:#edf9f1; color:#176b37; display:block; }
.cedit-message.error { background:#fff0ee; color:#a32a1e; display:block; }
.cedit-directory-head { align-items:center; display:flex; justify-content:space-between; margin-bottom:15px; }
.cedit-directory-head h3 { margin:0; }
.cedit-directory-head p { color:var(--text-muted); font-size:11px; margin:3px 0 0; }
.cedit-directory-list { display:grid; gap:8px; }
.cedit-directory-list article {
  align-items:center; border:1px solid var(--border); border-radius:10px;
  display:flex; justify-content:space-between; padding:12px 13px;
}
.cedit-directory-list article.inactive { opacity:.55; }
.cedit-directory-list strong,.cedit-directory-list span { display:block; }
.cedit-directory-list strong { color:var(--accent); font-size:12px; }
.cedit-directory-list span { color:var(--text-muted); font-size:10px; margin-top:3px; }
.cedit-directory-list button { background:#fff; border:1px solid var(--border); border-radius:6px; color:var(--accent); cursor:pointer; font:600 10px var(--sans); margin-left:4px; padding:6px 8px; }
.cedit-directory-list .directory-delete { color:#a53326; }
.cedit-directory-form { background:#faf8f3; border:1px solid var(--border); border-radius:12px; display:none; margin-top:18px; padding:18px; }
.cedit-directory-form.show { display:block; }
@media (max-width:600px) {
  .cedit-grid { grid-template-columns:1fr; }
  .cedit-grid label.wide { grid-column:auto; }
  .cedit-panel { padding:20px 16px 40px; }
}
