/* ==========================================================================
   NMT International Alliance — light theme
   Primary blue #1664A9 (from logo) · Accent orange #ED6D00 (sparingly)
   ========================================================================== */

:root {
  --blue-900: #0b3d66;
  --blue-800: #104e82;
  --blue-700: #1664a9;
  --blue-600: #1d77c4;
  --blue-100: #d8e9f6;
  --blue-50:  #f5f9fc;
  --accent:   #ed6d00;
  --accent-dark: #c75b00;
  --ink:      #16283a;
  --muted:    #54697e;
  --line:     #dce8f2;
  --card:     #ffffff;
  --shadow-sm: 0 1px 3px rgba(11, 61, 102, .08);
  --shadow-md: 0 6px 20px rgba(11, 61, 102, .10);
  --shadow-lg: 0 14px 44px rgba(11, 61, 102, .14);
  --radius:   14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-800); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; color: var(--blue-900); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue-700); color: #fff; padding: .5rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; height: 46px; width: auto; }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: inline-block; padding: .55rem .8rem; border-radius: 999px;
  color: var(--ink); font-size: .98rem; font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.site-nav a.active { background: var(--blue-700); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--blue-900); border-radius: 2px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .site-nav a { padding: .7rem 1rem; border-radius: 10px; }
  html.js .site-nav.open { display: flex; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: .78rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 16px rgba(22, 100, 169, .35); }
.btn-primary:hover { background: var(--blue-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-700); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(237, 109, 0, .3); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }

/* ---------- Hero (home) ---------- */

.hero { position: relative; background: var(--blue-50); overflow: hidden; }
.hero picture, .hero img.hero-img { display: block; width: 100%; }
.hero img.hero-img { height: clamp(420px, 62vh, 640px); object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(245, 249, 252, .97) 0%, rgba(245, 249, 252, .88) 34%, rgba(245, 249, 252, .45) 58%, rgba(245, 249, 252, .08) 78%);
  display: flex; align-items: center;
}
.hero-content { max-width: 640px; padding: 2.2rem 0; }
.hero .kicker { color: var(--accent); }
.hero h1 { margin-bottom: .6rem; }
.hero p.hero-sub { font-size: clamp(1.05rem, 1.9vw, 1.25rem); color: var(--muted); margin: 0 0 1.6rem; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .hero img.hero-img { height: 480px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(245, 249, 252, .96) 0%, rgba(245, 249, 252, .82) 55%, rgba(245, 249, 252, .35) 100%); align-items: flex-start; }
  .hero-content { padding-top: 2.6rem; }
}

/* ---------- Sections ---------- */

.section { padding: 4.2rem 0; }
.section.tinted { background: var(--blue-50); }
.section-head { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; }
.section-head .lead { color: var(--muted); font-size: 1.1rem; margin: 0; }

.kicker {
  margin: 0 0 .4rem; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-700);
}
.kicker-light { color: #ffc890; }

/* ---------- Trinity: NMT · imOmics · GiP ---------- */

.trinity-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 900px) { .trinity-grid { grid-template-columns: repeat(3, 1fr); } }

.trinity-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.7rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.trinity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trinity-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--blue-700);
}
.trinity-card.pillar-imomics::before { background: linear-gradient(90deg, var(--blue-700), #4ba3d8); }
.trinity-card.pillar-gip::before { background: var(--accent); }

.trinity-step {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem;
}
.trinity-num {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 800; color: #fff; background: var(--blue-700);
  font-size: 1.05rem; flex: 0 0 auto;
}
.pillar-imomics .trinity-num { background: linear-gradient(135deg, var(--blue-700), #4ba3d8); }
.pillar-gip .trinity-num { background: var(--accent); }
.trinity-card h3 { font-size: 1.5rem; margin: 0; }
.trinity-tag { margin: .15rem 0 .8rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trinity-card p { color: var(--ink); margin: 0 0 1.2rem; font-size: .99rem; }
.trinity-card .card-link { margin-top: auto; font-weight: 600; }
.trinity-card .card-link::after { content: " →"; }

.trinity-flow { text-align: center; margin-top: 1.6rem; color: var(--muted); font-size: .95rem; }
.trinity-flow strong { color: var(--blue-900); }

/* ---------- Stats band ---------- */

.stats-band { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 2.6rem 0; text-align: center; }
@media (min-width: 800px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat .num { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.stat .lbl { color: var(--blue-100); font-size: .95rem; }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.6rem;
}

/* ---------- Advisors ---------- */

.advisor-card { display: flex; gap: 1.4rem; align-items: flex-start; }
.advisor-photo {
  flex: 0 0 132px; width: 132px; height: 158px; object-fit: cover; object-position: top;
  border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--blue-50);
}
.advisor-card h3 { margin-bottom: .15rem; }
.advisor-role { color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0 0 .6rem; }
.advisor-bio { color: var(--muted); font-size: .95rem; margin: 0 0 .7rem; }
.more-info { font-weight: 600; font-size: .95rem; }
.more-info::after { content: " ↗"; }

@media (max-width: 560px) {
  .advisor-card { flex-direction: column; }
  .advisor-photo { width: 150px; height: 180px; }
}

/* ---------- Members (tabs) ---------- */

.tab-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tab-list.center { justify-content: center; }
.tab-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: .6rem 1.15rem; border-radius: 999px; font-size: .98rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: all .15s ease;
}
.tab-btn:hover { border-color: var(--blue-700); color: var(--blue-700); }
.tab-btn.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.tab-btn .count {
  display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700); font-size: .8rem; font-weight: 700;
}
.tab-btn.active .count { background: rgba(255, 255, 255, .22); color: #fff; }

.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.6rem; }
.pill-tabs .tab-btn { padding: .42rem .95rem; font-size: .9rem; }

html.js [data-tabs] > [data-panel]:not(.active) { display: none; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.member-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1.2rem; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-700); text-decoration: none; }
.member-logo {
  width: 100%; height: 86px; display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
}
.member-logo img { max-height: 86px; max-width: 100%; object-fit: contain; }
.member-name { font-weight: 700; color: var(--blue-900); font-size: 1rem; line-height: 1.35; }
.member-country { color: var(--muted); font-size: .87rem; margin-top: .25rem; }
.member-visit { margin-top: .7rem; font-size: .85rem; font-weight: 600; color: var(--blue-700); }
.member-visit::after { content: " ↗"; }

/* ---------- Journal ---------- */

.journal-hero {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700) 70%, #2b86c5);
  color: #fff; padding: 3.4rem 0 3rem;
}
.journal-hero h1 { color: #fff; }
.journal-hero p { color: var(--blue-100); max-width: 820px; margin: 0; }

.issue-card { display: block; color: var(--ink); border-left: 5px solid var(--blue-700); }
.issue-card:hover { text-decoration: none; box-shadow: var(--shadow-md); border-left-color: var(--accent); }
.issue-card .issue-date { font-size: .85rem; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.issue-card h3 { margin: .2rem 0 .3rem; }
.issue-card .issue-sub { color: var(--accent-dark); font-weight: 600; font-size: .95rem; margin: 0 0 .4rem; }
.issue-card p { margin: 0 0 .8rem; color: var(--muted); font-size: .95rem; }
.issue-meta { font-size: .88rem; color: var(--blue-700); font-weight: 600; }

.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.article-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm);
}
.article-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: .35rem; }
.section-tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100);
  padding: .15rem .6rem; border-radius: 999px;
}
.article-item h3 { margin: 0; font-size: 1.12rem; }
.article-authors { color: var(--muted); font-size: .92rem; margin: .2rem 0 0; }
.article-note { color: var(--muted); font-size: .88rem; margin: .5rem 0 0; font-style: italic; }
.doi-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem;
  font-weight: 700; font-size: .92rem; color: var(--accent-dark);
}
.doi-link:hover { color: var(--accent); }
.doi-link::after { content: " ↗"; }

.trinity-echo {
  background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.trinity-echo .echo-pill {
  background: #fff; border: 1.5px solid var(--blue-100); color: var(--blue-900);
  border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .95rem;
}
.trinity-echo .echo-text { color: var(--muted); font-size: .95rem; margin: 0; flex: 1 1 340px; }

/* ---------- Mission statement ---------- */

.banner { position: relative; overflow: hidden; background: var(--blue-900); }
.banner img { display: block; width: 100%; height: clamp(220px, 34vh, 360px); object-fit: cover; opacity: .55; }
.banner .banner-title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 0 20px;
}
.banner .banner-title h1 { color: #fff; margin: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

.essay { max-width: 800px; margin: 0 auto; }
.essay-card { padding: 2.4rem clamp(1.4rem, 4vw, 3rem); }
.essay h1 { margin-bottom: .2rem; }
.essay .subtitle { color: var(--muted); font-size: 1.12rem; margin: 0 0 1rem; }
.essay .byline { font-weight: 700; color: var(--accent-dark); margin-bottom: 1.6rem; }
.essay-body { font-family: var(--serif); font-size: 1.08rem; line-height: 1.85; color: #22303f; }
.essay-body p { margin: 0 0 1.15rem; }
.doi-chip {
  display: inline-block; margin-top: .4rem; background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 999px; padding: .35rem .95rem; font-family: var(--font); font-size: .9rem; font-weight: 600;
}
.refs { font-size: .95rem; color: var(--muted); }
.refs ul { padding-left: 1.2rem; }
.refs li { margin-bottom: .5rem; }

/* ---------- Contact ---------- */

.contact-banner { text-align: center; background: var(--blue-50); padding: 2.5rem 0 0; }
.contact-banner img { max-width: 460px; width: 100%; margin: 0 auto; display: block; }

.info-card { text-align: center; }
.info-card .icon-circle {
  width: 58px; height: 58px; margin: 0 auto .8rem; border-radius: 50%;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  display: flex; align-items: center; justify-content: center; color: var(--blue-700);
}
.info-card h3 { margin-bottom: .3rem; }
.info-card p { color: var(--muted); margin: 0 0 .9rem; }

/* ---------- Forms ---------- */

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.8rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--blue-900); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="url"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(22, 100, 169, .15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- Flash messages ---------- */

.flash { max-width: var(--wrap); margin: 1rem auto; padding: .9rem 1.2rem; border-radius: var(--radius-sm); font-weight: 500; }
.flash-success { background: #eaf7ee; border: 1px solid #bfe5c9; color: #1c6b38; }
.flash-error { background: #fdeeea; border: 1px solid #f5c9b8; color: #a33c12; }
.flash-info { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-800); }

/* ---------- Footer ---------- */

.site-footer { background: var(--blue-900); color: #cfdfee; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 20px 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-brand img { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; }
.footer-tagline { margin: 1rem 0 0; font-size: .95rem; max-width: 420px; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-nav a { display: block; color: #cfdfee; padding: .18rem 0; font-size: .96rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact p { margin: 0 0 .6rem; font-size: .96rem; }
.footer-contact a { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .14); padding: 1.1rem 0; font-size: .88rem; color: #9db8cf; }

/* ---------- Page intro (inner pages) ---------- */

.page-intro { background: var(--blue-50); border-bottom: 1px solid var(--line); padding: 2.8rem 0 2.2rem; }
.page-intro h1 { margin-bottom: .3rem; }
.page-intro p { color: var(--muted); margin: 0; max-width: 760px; font-size: 1.08rem; }

.breadcrumb { font-size: .9rem; margin-bottom: 1.2rem; color: var(--muted); }
.breadcrumb a { font-weight: 600; }

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-body { background: var(--blue-50); }

.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 16px; background: linear-gradient(160deg, var(--blue-50), #e9f2fa);
}
.auth-card { width: 100%; max-width: 430px; }
.auth-card .brand-center { text-align: center; margin-bottom: 1.2rem; }
.auth-card .brand-center img { height: 52px; width: auto; }
.auth-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1rem; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  flex: 0 0 250px; background: var(--blue-900); color: #cfdfee;
  display: flex; flex-direction: column; padding: 1.2rem 0;
}
.admin-brand { padding: 0 1.2rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; gap: .6rem; }
.admin-brand img { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.admin-brand:hover { text-decoration: none; }
.admin-badge {
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800;
  padding: .15rem .55rem; border-radius: 999px; letter-spacing: .06em;
}
.admin-nav { display: flex; flex-direction: column; padding: 1rem .8rem; gap: 2px; }
.admin-nav a {
  color: #cfdfee; padding: .6rem .9rem; border-radius: 9px; font-size: .97rem; font-weight: 500;
  display: flex; align-items: center; gap: .5rem; justify-content: space-between;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.admin-nav a.active { background: var(--blue-700); color: #fff; }
.pill-count {
  background: var(--accent); color: #fff; border-radius: 999px; font-size: .74rem;
  font-weight: 800; padding: .05rem .5rem;
}
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.6rem;
}
.admin-topbar h1 { font-size: 1.35rem; margin: 0; }
.admin-content { padding: 1.6rem; }
.admin-content .flash { margin: 0 0 1.2rem; max-width: none; }

@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { flex: none; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
}

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 1.6rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.stat-card .num { font-size: 1.9rem; font-weight: 800; color: var(--blue-700); display: block; line-height: 1.1; }
.stat-card .lbl { color: var(--muted); font-size: .9rem; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.admin-table th { background: var(--blue-50); color: var(--blue-900); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .thumb { width: 56px; height: 42px; object-fit: contain; background: var(--blue-50); border-radius: 6px; border: 1px solid var(--line); }
.admin-table .thumb.round { width: 46px; height: 54px; object-fit: cover; object-position: top; }

.table-wrap { overflow-x: auto; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions form { display: inline; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.toolbar .spacer { flex: 1; }
.toolbar select, .toolbar input[type="text"] {
  padding: .5rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; background: #fff;
}

.msg-unread td { background: #fff8f2; font-weight: 600; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.badge.orange { background: #fff3e8; color: var(--accent-dark); border-color: #f5d3b3; }

.pages-form .field textarea { min-height: 110px; font-size: .95rem; }
.pages-group { margin-bottom: 2rem; }
.pages-group > h2 { font-size: 1.15rem; border-bottom: 2px solid var(--blue-100); padding-bottom: .4rem; margin-bottom: 1.2rem; }

/* Utility */
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 1.8rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.narrow-card { max-width: 860px; margin-left: auto; margin-right: auto; }
.lead-text { font-size: 1.1rem; }
.center-actions { justify-content: center; }
.form-narrow { max-width: 520px; }
.plain-link { text-decoration: none; color: inherit; }
.plain-link:hover { text-decoration: none; color: inherit; }
