/* ── Sage Editors Design System ─────────────────────────────────────────────── */
/* Self-hosted fonts (no render-blocking request to Google Fonts) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/merriweather-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/merriweather-latin-700-normal.woff2') format('woff2'); }
:root {
  --navy:    #0F172A;
  --navy-mid:#1E293B;
  --navy-light:#334155;
  --gold:    #D97706;
  --gold-light:#F59E0B;
  --gold-pale:#FEF3C7;
  --white:   #FFFFFF;
  --off-white:#F8FAFC;
  --gray-100:#F1F5F9;
  --gray-200:#E2E8F0;
  --gray-400:#94A3B8;
  --gray-600:#475569;
  --gray-800:#1E293B;
  --green:   #16A34A;
  --red:     #DC2626;
  --orange:  #EA580C;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
}

/* ── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--navy); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--gray-600); }

/* ── Container ───────────────────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
  text-decoration: none;
}
.btn-primary   { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline   { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-ghost     { color: var(--navy); background: var(--gray-100); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-danger    { background: var(--red); color: var(--white); }
.btn-sm        { padding: .4rem 1rem; font-size: .85rem; }
.btn-lg        { padding: .9rem 2rem; font-size: 1.05rem; }

/* ── Navbar ──────────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); box-shadow: var(--shadow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem; gap: 1rem;
}
.brand { font-family: var(--font-serif); font-size: 1.4rem; letter-spacing: -.5px; }
.brand-sage    { color: var(--gold); }
.brand-editors { color: var(--white); }
.nav-links {
  display: flex; align-items: center; gap: .25rem; flex-wrap: wrap;
}
.nav-links li a {
  color: var(--gray-200); padding: .45rem .85rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; transition: color .15s;
}
.nav-links li a:hover { color: var(--gold-light); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }
.nav-caret { font-size: .65rem; margin-left: .2rem; opacity: .7; }

/* ── Nav Dropdowns ─────────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + .25rem); left: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 200;
  padding: .4rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open  .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: .5rem 1rem;
  color: var(--gray-200);
  font-size: .875rem;
  font-weight: 400;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.07); color: var(--gold-light); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding: .75rem 0 1rem; gap: .1rem; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: .6rem 1rem; }
  /* Mobile dropdowns: inline, not absolute */
  .nav-dropdown-menu {
    position: static;
    background: rgba(255,255,255,.04);
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 1rem;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; } /* hover off on mobile */
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white); padding: 6rem 0 5rem; text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--gold); }
.hero p { color: var(--gray-200); font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; margin-top: 3.5rem; flex-wrap: wrap; }
.hero-stat strong { font-size: 2rem; color: var(--gold); display: block; }
.hero-stat span   { font-size: .85rem; color: var(--gray-400); }

/* ── Sections ────────────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--gray-400); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { max-width: 560px; margin: 0 auto; }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.75rem; border: 1px solid var(--gray-200);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Service cards */
.service-card { border-top: 4px solid var(--gold); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: .5rem; }

/* Pricing card */
.pricing-card { text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--gold); border-width: 2px; }
.pricing-card.featured .badge { background: var(--gold); color: var(--white); position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: .25rem .9rem; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.price-range { font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.price-unit  { font-size: .9rem; color: var(--gray-400); }
.price-features { margin: 1.25rem 0; text-align: left; }
.price-features li { padding: .35rem 0; color: var(--gray-600); font-size: .9rem; }
.price-features li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin: 1rem 0; font-weight: 500; }
.alert-success { background: #dcfce7; color: var(--green); border-left: 4px solid var(--green); }
.alert-error   { background: #fee2e2; color: var(--red); border-left: 4px solid var(--red); }
.alert-info    { background: var(--gold-pale); color: #92400e; border-left: 4px solid var(--gold); }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group  { margin-bottom: 1.25rem; }
.form-label  { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: .95rem; color: var(--navy);
  background: var(--white); transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,119,6,.12); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .82rem; color: var(--gray-400); margin-top: .3rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }

/* ── Tables ──────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--navy); color: var(--white); padding: .75rem 1rem; text-align: left; font-weight: 600; }
td { padding: .7rem 1rem; border-bottom: 1px solid var(--gray-200); color: var(--gray-600); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }

/* ── Status badges ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 99px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.badge-pending   { background: var(--gold-pale); color: #92400e; }
.badge-paid      { background: #dbeafe; color: #1e40af; }
.badge-assigned  { background: #e0e7ff; color: #3730a3; }
.badge-in_progress { background: #ede9fe; color: #6d28d9; }
.badge-completed { background: #dcfce7; color: var(--green); }
.badge-cancelled { background: #fee2e2; color: var(--red); }
.badge-submitted { background: #f0fdf4; color: #15803d; }
/* Peer review specific statuses */
.badge-open            { background: #dbeafe; color: #1e40af; }
.badge-under_review    { background: #ede9fe; color: #6d28d9; }
.badge-report_submitted { background: #f0fdf4; color: #15803d; }

/* ── Dashboard layout ────────────────────────────────────────────────────────── */
.dashboard { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); padding: 2rem 1rem; }
.sidebar-brand { font-family: var(--font-serif); margin-bottom: 2rem; display: block; }
.sidebar-nav a { display: block; padding: .6rem 1rem; border-radius: var(--radius-sm); color: var(--gray-300); font-size: .9rem; margin-bottom: .2rem; transition: background .15s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--gold); color: var(--white); }
.dash-main { background: var(--off-white); padding: 2rem; }
.dash-header { margin-bottom: 2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--gold); }
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat-card .stat-label { font-size: .82rem; color: var(--gray-400); }

@media (max-width: 768px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { padding: 1rem; }
  .dash-main { padding: 1.25rem; }
}

/* ── Risk score widget ───────────────────────────────────────────────────────── */
.risk-meter { margin: 2rem 0; }
.risk-bar-outer { background: var(--gray-200); border-radius: 99px; height: 20px; overflow: hidden; }
.risk-bar-inner { height: 100%; border-radius: 99px; transition: width 1s ease; }
.risk-green  { background: var(--green); }
.risk-orange { background: var(--orange); }
.risk-red    { background: var(--red); }
.risk-score-num { font-size: 3rem; font-weight: 700; }
.risk-flag { background: var(--gray-100); border-left: 3px solid var(--gold); padding: .75rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: .75rem; font-size: .9rem; color: var(--gray-800); }

/* ── Checkout ────────────────────────────────────────────────────────────────── */
.checkout-wrap { max-width: 680px; margin: 4rem auto; padding: 0 1.25rem; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.payment-btn { display: block; text-align: center; padding: 1.25rem; border-radius: var(--radius); border: 2px solid var(--gray-200); cursor: pointer; transition: all .2s; background: var(--white); }
.payment-btn:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.payment-btn .pay-logo { font-size: 1.3rem; font-weight: 700; }
.payment-btn .pay-sub { font-size: .82rem; color: var(--gray-400); margin-top: .2rem; }

/* ── Page-specific helpers ───────────────────────────────────────────────────── */
.page-hero { padding: 4rem 0 3rem; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: var(--white); }
.page-hero h1 { color: var(--white); }
.page-hero p  { color: var(--gray-300); margin-top: .75rem; font-size: 1.05rem; }
.tag-pill { display: inline-block; padding: .2rem .75rem; background: var(--gold-pale); color: #92400e; border-radius: 99px; font-size: .78rem; font-weight: 600; margin: .2rem; }

/* ── Testimonials ────────────────────────────────────────────────────────────── */
.testimonial { background: var(--navy-mid); border-radius: var(--radius); padding: 1.75rem; color: var(--gray-200); position: relative; }
.testimonial blockquote { font-style: italic; margin-bottom: 1rem; font-size: .95rem; line-height: 1.7; }
.testimonial .author { color: var(--gold); font-weight: 600; font-size: .85rem; }

/* ── Trust icons row ─────────────────────────────────────────────────────────── */
.trust-row { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; justify-content: center; padding: 1.5rem 0; }
.trust-item { font-size: .88rem; font-weight: 600; color: var(--gray-600); display: flex; align-items: center; gap: .4rem; }
.trust-item::before { content: "✓"; color: var(--green); }

/* ── CTA Banner ──────────────────────────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, var(--gold) 0%, #b45309 100%); color: var(--white); text-align: center; padding: 4rem 0; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 2rem; }
.cta-banner .btn { background: var(--white); color: var(--gold); font-weight: 700; }
.cta-banner .btn:hover { background: var(--navy); color: var(--white); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: var(--gray-400); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-brand p { font-size: .88rem; margin-top: .75rem; max-width: 280px; }
.footer-email a { color: var(--gold); }
.footer-address { font-size: .85rem; color: var(--gray-400); margin-top: .35rem; }
.opt { font-weight: 400; color: var(--gray-400); font-size: .85em; }
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: 1rem; }
.footer-col ul li a { font-size: .88rem; display: block; padding: .25rem 0; transition: color .15s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid var(--navy-light); margin-top: 3rem; padding: 1.25rem 0; font-size: .82rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }  .mt-3 { margin-top: 1.5rem; }  .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-gold  { color: var(--gold); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.font-bold  { font-weight: 700; }
.divider    { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }
.flex       { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.w-full { width: 100%; }

/* ── Account, admin and tool additions ─────────────────────────────────────── */

/* Status badges used by editors, customers, refunds, tools */
.badge-verified, .badge-approved, .badge-active, .badge-ready, .badge-delivered { background: #dcfce7; color: var(--green); }
.badge-rejected, .badge-suspended { background: #fee2e2; color: var(--red); }
.badge-in_review, .badge-quality_check, .badge-revision { background: #e0e7ff; color: #3730a3; }

/* Sub-navigation for editor and admin areas */
.subnav { background: var(--navy-mid); border-bottom: 1px solid var(--navy-light); }
.subnav-inner { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: thin; padding-top: .4rem; padding-bottom: .4rem; }
.subnav a { color: var(--gray-200); font-size: .85rem; font-weight: 500; padding: .45rem .75rem; border-radius: var(--radius-sm); white-space: nowrap; }
.subnav a:hover { background: var(--navy-light); color: var(--white); }
.subnav a.active { background: var(--gold); color: var(--white); }
.subnav-end { margin-left: auto; }
.subnav-count { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; border-radius: 99px; background: var(--red); color: var(--white); font-size: .72rem; text-align: center; line-height: 1.3rem; }

/* Layout helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.inline-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.inline-actions form { display: inline; margin: 0; }
.range-tabs { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.range-tabs a { padding: .35rem .8rem; border-radius: 99px; font-size: .85rem; border: 1px solid var(--gray-200); color: var(--gray-600); background: var(--white); }
.range-tabs a.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* Editor application */
.checklist li { padding: .4rem 0; color: var(--gray-600); display: flex; gap: .6rem; }
.checklist li.done { color: var(--green); }
.steps { margin: .75rem 0 1rem 1.25rem; list-style: decimal; }
.steps li { margin-bottom: .5rem; }
.status-card { border-left: 4px solid var(--gold); }
.status-verified { border-left-color: var(--green); }
.status-rejected { border-left-color: var(--red); }

/* Admin */
.row-edit { display: inline-block; }
.row-edit summary { list-style: none; display: inline-block; }
.row-edit summary::-webkit-details-marker { display: none; }
.row-edit-form { display: grid; gap: .4rem; margin: .5rem 0; min-width: 240px; }
.message-card.unread { border-left: 4px solid var(--gold); }
.bar-chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; margin-bottom: .5rem; border-bottom: 1px solid var(--gray-200); }
.bar-chart .bar { flex: 1; background: var(--gold); border-radius: 2px 2px 0 0; min-width: 2px; }
.bar-chart .bar:hover { background: var(--navy); }

/* Legal pages */
.legal .card { margin-bottom: 1.25rem; }
.legal h3 { margin-bottom: .6rem; }
.legal p { margin-bottom: .75rem; color: var(--gray-800); }
.legal ul, .legal ol { margin: 0 0 .75rem 1.5rem; list-style: disc; }
.legal li { margin-bottom: .3rem; }
.legal a { color: var(--gold); text-decoration: underline; }

/* Contact form spam trap */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Free tools */
.unlock-box { background: var(--gold-pale); border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.25rem; }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 800px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col { background: var(--off-white); border-radius: var(--radius-sm); padding: 1rem; }
.compare-col h4 { font-size: .9rem; margin-bottom: .4rem; }
.compare-col p { font-size: .92rem; }
.compare-note { margin-top: 1rem; font-size: .9rem; color: var(--gray-600); }
.citation-row { padding: .75rem 0; border-bottom: 1px solid var(--gray-100); }
.citation-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: var(--off-white); padding: .75rem; border-radius: var(--radius-sm); margin-top: .4rem; white-space: pre-wrap; word-break: break-word; }
.progress-bar { height: 10px; background: var(--gray-100); border-radius: 99px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--green); transition: width .25s; }
.checklist-category { margin-bottom: 1rem; }
.checklist-category h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.checklist-item { display: flex; gap: .65rem; align-items: flex-start; padding: .4rem 0; }
.checklist-item input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--green); flex-shrink: 0; }
.journal-search-input { width: 100%; padding: .55rem .75rem; margin-bottom: .5rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font: inherit; }

/* Ghost buttons in the dark top bar (Sign In / Dashboard / Admin) */
.nav-links li a.btn-ghost { color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.35); }
.nav-links li a.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.1); border-color: var(--gold-light); }

/* ── Orders: progress, delivery, messages ─────────────────────────────────── */
.kv td { padding: .35rem 0; vertical-align: top; }
.kv td:first-child { color: var(--gray-600); width: 140px; padding-right: 1rem; }
.progress-steps { display: flex; gap: .5rem; margin: 0 0 1.75rem; padding: 0; counter-reset: none; }
.progress-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; font-size: .82rem; color: var(--gray-400); }
.progress-steps li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--gray-200); z-index: 0; }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.done::before, .progress-steps li.current::before { background: var(--green); }
.progress-steps .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--white); border: 2px solid var(--gray-200); font-weight: 700; margin-bottom: .35rem; }
.progress-steps li.done { color: var(--green); }
.progress-steps li.done .dot { background: var(--green); border-color: var(--green); color: var(--white); }
.progress-steps li.current { color: var(--navy); font-weight: 600; }
.progress-steps li.current .dot { border-color: var(--gold); color: var(--gold); }
@media (max-width: 520px) { .progress-steps .label { font-size: .7rem; } }
.delivery-card { border-left: 4px solid var(--green); }
.thread { display: flex; flex-direction: column; gap: .6rem; max-height: 520px; overflow-y: auto; padding: .25rem; }
.thread-empty { color: var(--gray-400); font-size: .9rem; }
.msg { max-width: 80%; background: var(--gray-100); border-radius: 12px 12px 12px 4px; padding: .6rem .85rem; align-self: flex-start; }
.msg-mine { align-self: flex-end; background: var(--gold-pale); border-radius: 12px 12px 4px 12px; }
.msg-admin:not(.msg-mine) { background: #e0e7ff; }
.msg-meta { font-size: .76rem; color: var(--gray-600); margin-bottom: .2rem; }
.msg-body { white-space: pre-wrap; word-break: break-word; font-size: .93rem; }
.unread-pill { display: inline-block; background: var(--red); color: var(--white); border-radius: 99px; padding: .15rem .55rem; font-size: .75rem; font-weight: 600; }
code { background: rgba(0,0,0,.06); padding: .05rem .3rem; border-radius: 4px; font-size: .85em; }

/* ══ Admin app shell (sidebar + top bar), modelled on Material Dashboard ══════ */
.admin-body { background: #eef1f5; min-height: 100vh; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.admin-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar { width: 252px; flex-shrink: 0; background: var(--white); box-shadow: 0 0 24px rgba(15,23,42,.08);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 40; }
.admin-brand { display: flex; align-items: center; gap: .5rem; padding: 1.4rem 1.4rem 1.2rem; margin: 0 1rem .75rem; border-bottom: 1px solid var(--gray-200); }
.admin-brand .brand { font-size: 1.35rem; }
.admin-brand .brand-editors { color: var(--navy); }
.admin-brand-tag { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); background: var(--gray-100); border-radius: 99px; padding: .15rem .5rem; }
.side-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 .9rem .5rem; display: flex; flex-direction: column; gap: .2rem; }
.side-link { flex-shrink: 0; display: flex; align-items: center; gap: .85rem; padding: .6rem .95rem; border-radius: 8px; color: var(--gray-600); font-size: .92rem; font-weight: 500; transition: background .15s, color .15s, box-shadow .15s; }
.side-link:hover { background: var(--gray-100); color: var(--navy); }
.side-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.side-link.active { background: linear-gradient(60deg, #b45309, var(--gold-light)); color: var(--white); box-shadow: 0 4px 14px -4px rgba(217,119,6,.65); }
.side-icon { display: inline-flex; opacity: .85; }
.side-link.active .side-icon { opacity: 1; }
.side-label { flex: 1; }
.side-count { min-width: 1.4rem; padding: 0 .4rem; border-radius: 99px; background: var(--red); color: var(--white); font-size: .72rem; font-weight: 700; line-height: 1.4rem; text-align: center; }
.side-link.active .side-count { background: var(--white); color: #b45309; }
.side-foot { margin: .75rem .9rem 1rem; border-top: 1px solid var(--gray-200); border-radius: 0; padding-top: 1rem; }
.icon-btn.sidebar-close, .icon-btn.sidebar-toggle, .sidebar-backdrop { display: none; }

/* Main column + top bar */
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 2rem; position: sticky; top: 0; z-index: 30;
  background: rgba(238,241,245,.92); backdrop-filter: blur(6px); }
.admin-title { font-size: 1.3rem; font-weight: 600; margin: 0; flex: 1; color: var(--navy); }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; color: var(--gray-600); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.icon-btn:focus-visible, .avatar-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bell-dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--red);
  color: var(--white); font-size: .66rem; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #eef1f5; }
.avatar-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .6rem .3rem .3rem; border-radius: 99px; border: 0; background: transparent; cursor: pointer; color: var(--navy); font: inherit; font-weight: 600; font-size: .9rem; }
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { background: var(--white); box-shadow: var(--shadow-sm); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-light), var(--navy)); color: var(--gold-light); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.avatar-lg { width: 46px; height: 46px; font-size: 1rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.35rem; }
.caret { font-size: .7rem; color: var(--gray-400); }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--white); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15,23,42,.16); padding: .4rem; z-index: 50; }
.dropdown-wide { min-width: 300px; }
.dropdown-head { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-400); padding: .5rem .7rem .35rem; }
.dropdown-empty { padding: .6rem .7rem .8rem; color: var(--gray-600); font-size: .9rem; }
.dropdown-item { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 7px; color: var(--gray-800); font-size: .9rem; }
.dropdown-item:hover, .dropdown-item:focus-visible { background: var(--gold-pale); color: var(--navy); outline: none; }
.dropdown-icon { display: inline-flex; color: var(--gray-400); }
.dropdown-item:hover .dropdown-icon { color: var(--gold); }
.dropdown-profile { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem .8rem; border-bottom: 1px solid var(--gray-100); margin-bottom: .3rem; font-size: .9rem; }
.dropdown-profile span:not(.avatar) { color: var(--gray-600); font-size: .82rem; word-break: break-all; }
.dropdown-sep { border: 0; border-top: 1px solid var(--gray-100); margin: .3rem 0; }

/* Content area: existing pages' hero blocks become plain page headers */
.admin-content { padding: .5rem 2rem 2.5rem; }
.admin-body .alert.container { margin: 0 2rem 1rem; max-width: none; width: auto; }
.admin-content .container { max-width: none; padding-left: 0; padding-right: 0; }
.admin-content .page-hero { background: none; padding: .25rem 0 1rem !important; color: var(--gray-600); }
.admin-content .page-hero h1, .admin-content .page-hero h2 { color: var(--navy) !important; font-size: 1.35rem; margin-bottom: .25rem; }
.admin-content .page-hero p { color: var(--gray-600); }
.admin-content .section { padding: 0 0 1.5rem !important; background: none; }
.admin-content .card, .admin-content .table-wrap.card { border: 0; box-shadow: 0 2px 10px rgba(15,23,42,.07); border-radius: 12px; }

/* Overview: stat tiles with raised icon boxes */
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 1.6rem 0 2.6rem; }
.tile { position: relative; background: var(--white); border-radius: 12px; box-shadow: 0 2px 10px rgba(15,23,42,.07); padding: 1rem 1.15rem .9rem; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.12); }
.tile-icon { position: absolute; top: -20px; left: 1.15rem; width: 64px; height: 64px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); }
.tile-green  { background: linear-gradient(60deg, #15803d, #22c55e); box-shadow: 0 6px 16px -6px rgba(22,163,74,.7); }
.tile-orange { background: linear-gradient(60deg, #b45309, #f59e0b); box-shadow: 0 6px 16px -6px rgba(217,119,6,.7); }
.tile-red    { background: linear-gradient(60deg, #b91c1c, #ef4444); box-shadow: 0 6px 16px -6px rgba(220,38,38,.7); }
.tile-blue   { background: linear-gradient(60deg, #0e7490, #22b8cf); box-shadow: 0 6px 16px -6px rgba(14,116,144,.7); }
.tile-body { text-align: right; min-height: 56px; }
.tile-label { display: block; font-size: .82rem; color: var(--gray-600); }
.tile-value { display: block; font-size: 1.65rem; font-weight: 600; color: var(--navy); line-height: 1.25; margin-top: .15rem; }
.tile-foot { border-top: 1px solid var(--gray-100); margin-top: .9rem; padding-top: .65rem; font-size: .8rem; color: var(--gray-600); display: flex; align-items: center; gap: .35rem; }
.tile-foot .icon { flex-shrink: 0; }

/* Overview: chart cards with raised coloured chart headers */
.chart-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2.6rem; }
.chart-card { background: var(--white); border-radius: 12px; box-shadow: 0 2px 10px rgba(15,23,42,.07); margin-top: 1.2rem; }
.chart-head { margin: -1.2rem 1rem 0; border-radius: 10px; padding: .6rem .4rem .25rem; }
.chart-green  { background: linear-gradient(60deg, #15803d, #22c55e); box-shadow: 0 8px 20px -8px rgba(22,163,74,.75); }
.chart-orange { background: linear-gradient(60deg, #b45309, #f59e0b); box-shadow: 0 8px 20px -8px rgba(217,119,6,.75); }
.chart-blue   { background: linear-gradient(60deg, #1e3a8a, #3b82f6); box-shadow: 0 8px 20px -8px rgba(37,99,235,.75); }
.mini-chart { display: block; height: auto; }
.mini-chart .pt { cursor: default; }
.mini-chart .pt:hover circle:last-child { r: 6; }
.mini-chart .pt:hover path { fill-opacity: 1; }
.chart-body { padding: 1rem 1.15rem .4rem; }
.chart-body h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.chart-body p { font-size: .85rem; color: var(--gray-600); }
.chart-body strong { color: var(--navy); }
.chart-foot { border-top: 1px solid var(--gray-100); margin: .6rem 1.15rem 0; padding: .65rem 0 .85rem; font-size: .8rem; color: var(--gray-600); display: flex; align-items: center; gap: .35rem; }
.chart-foot a { display: inline-flex; align-items: center; gap: .35rem; }

/* Overview: panels with coloured headers */
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.panel { background: var(--white); border-radius: 12px; box-shadow: 0 2px 10px rgba(15,23,42,.07); margin-top: 1.2rem; padding-bottom: .5rem; }
.panel-head { margin: -1.2rem 1rem 0; border-radius: 10px; padding: 1rem 1.15rem; color: var(--white); }
.panel-head h3 { color: var(--white); font-size: 1.05rem; margin: 0; }
.panel-head p { color: rgba(255,255,255,.85); font-size: .85rem; margin: .15rem 0 0; }
.panel-orange { background: linear-gradient(60deg, #b45309, #f59e0b); box-shadow: 0 8px 20px -8px rgba(217,119,6,.75); }
.panel-navy { background: linear-gradient(60deg, var(--navy), var(--navy-light)); box-shadow: 0 8px 20px -8px rgba(15,23,42,.6); }
.panel .table-wrap { margin: .6rem .5rem 0; box-shadow: none; }
.panel table thead th { background: none; color: var(--gold); font-weight: 600; font-size: .82rem; border-bottom: 1px solid var(--gray-200); }
.empty-row { text-align: center; padding: 1.5rem !important; color: var(--gray-400); }
.panel-more { display: block; text-align: right; padding: .4rem 1.15rem .5rem; font-size: .85rem; color: var(--gold); font-weight: 600; }
.todo-list { padding: .7rem .6rem .2rem; }
.todo-list li a { display: flex; align-items: center; gap: .7rem; padding: .7rem .6rem; border-radius: 8px; color: var(--gray-800); font-size: .92rem; }
.todo-list li a:hover { background: var(--gray-100); }
.todo-list li + li a { border-top: 1px solid var(--gray-100); }
.todo-icon { display: inline-flex; width: 34px; height: 34px; border-radius: 8px; align-items: center; justify-content: center; background: var(--gold-pale); color: var(--gold); flex-shrink: 0; }
.todo-list a.urgent .todo-icon { background: #fee2e2; color: var(--red); }
.todo-text { flex: 1; }
.todo-go { color: var(--gray-400); display: inline-flex; }
.todo-empty { padding: 1rem .6rem; color: var(--gray-600); }

.profile-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--gray-100); }

/* Responsive */
@media (max-width: 1200px) {
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .chart-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid { grid-template-columns: 1fr; row-gap: 2.4rem; }
}
@media (max-width: 960px) {
  .admin-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .2s ease; }
  body.sidebar-open .admin-sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 35; }
  .icon-btn.sidebar-close, .icon-btn.sidebar-toggle { display: inline-flex; }
  .sidebar-close { margin-left: auto; }
  .admin-topbar { padding: .8rem 1rem; }
  .admin-content { padding: .5rem 1rem 2rem; }
  .admin-body .alert.container { margin: 0 1rem 1rem; }
  .avatar-name, .caret { display: none; }
}
@media (max-width: 640px) {
  .stat-tiles, .chart-cards { grid-template-columns: 1fr; }
  .admin-title { font-size: 1.1rem; }
  .dropdown-menu { position: fixed; left: .75rem; right: .75rem; top: 64px; min-width: 0; }
}

/* Action cells keep table layout (a flex <td> breaks the row borders) */
td.inline-actions { display: table-cell; white-space: normal; }
td.inline-actions > form, td.inline-actions > a, td.inline-actions > span { display: inline-block; margin: .15rem .3rem .15rem 0; vertical-align: middle; }

/* ── Resources, articles and tool guides ──────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.post-card { display: flex; flex-direction: column; gap: .5rem; }
.post-card .tag-pill { align-self: flex-start; margin: 0; }
.post-card h2, .post-card h3 { font-size: 1.1rem; line-height: 1.4; margin: 0; }
.post-card h2 a, .post-card h3 a { color: var(--navy); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--gold); }
.post-card p { margin: 0; color: var(--gray-600); font-size: .93rem; }
.post-meta { font-size: .85rem; color: var(--gray-400); }
.post-card .post-meta { margin-top: auto; color: var(--gray-400); }
.breadcrumbs { font-size: .85rem; margin-bottom: .75rem; color: var(--gray-400); }
.breadcrumbs a { color: var(--gray-200); }
.breadcrumbs a:hover { color: var(--gold-light); }

.prose { font-size: 1.05rem; line-height: 1.75; color: var(--gray-800); }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; color: var(--gray-600); }
.prose code { background: var(--gray-100); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--navy); color: var(--gray-100); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose table { width: 100%; font-size: .95rem; }
.prose .table-wrap { margin: 0 0 1.25rem; }
.prose hr { border: 0; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
  margin: 1.75rem 0; padding: 1.25rem 1.5rem; border: 1px solid var(--gold-light); background: var(--gold-pale); border-radius: var(--radius); }
.post-cta strong { display: block; color: var(--navy); font-size: 1.05rem; }
.post-cta p { margin: .25rem 0 0; font-size: .95rem; color: var(--gray-600); }
.post-cta .btn { text-decoration: none; flex-shrink: 0; }
.post-cta-dark { background: var(--navy); border-color: var(--navy); }
.post-cta-dark strong { color: var(--gold-light); }
.post-cta-dark p { color: var(--gray-200); }

.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); margin-bottom: .75rem; }
.faq-item summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0; padding: 0 1.25rem 1.1rem; font-size: 1rem; }

/* ── Admin article editor ─────────────────────────────────────────────────────── */
.post-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
@media (max-width: 960px) { .post-editor { grid-template-columns: 1fr; } }
.post-body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.6; min-height: 420px; }
.post-preview { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 1.25rem; min-height: 420px; }
.label-note { color: var(--gray-400); font-weight: 400; font-size: .85rem; }
.serp-preview { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); font-family: Arial, sans-serif; }
.serp-url { font-size: .78rem; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { font-size: 1.05rem; color: #1a0dab; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.serp-desc { font-size: .82rem; color: #4d5156; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.shortcode-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; }
.shortcode-list code { background: var(--gray-100); padding: .1rem .35rem; border-radius: 4px; user-select: all; }
.prose .post-cta .btn, .prose .post-cta a.btn { color: var(--white); text-decoration: none; }
.post-editor textarea:not(.post-body) { font-family: inherit; }
/* Mid-width screens: keep the main nav on one line */
@media (min-width: 769px) and (max-width: 1080px) {
  .nav-links { gap: 0; flex-wrap: nowrap; }
  .nav-links li a { padding: .4rem .5rem; font-size: .84rem; white-space: nowrap; }
  .nav-links li a.btn { padding: .4rem .7rem; }
  .nav-caret { display: none; }
}
@media (min-width: 769px) and (max-width: 940px) {
  .nav-links > li:has(> a[href="/"]) { display: none; }   /* the logo links home */
  .brand { font-size: 1.2rem; }
}

.nav-dropdown-sep { border-top: 1px solid rgba(255,255,255,.1); margin-top: .3rem; padding-top: .3rem; }

/* ── Services overview and service pages ──────────────────────────────────── */
.service-list { display: flex; flex-direction: column; gap: 1.25rem; max-width: 1000px; margin: 0 auto; }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1.5rem; align-items: center; border-left: 4px solid var(--gold); }
.service-row-main { display: flex; gap: 1.25rem; align-items: flex-start; }
.service-row-main .service-icon { margin: 0; }
.service-row h2 { font-size: 1.3rem; margin-bottom: .35rem; }
.service-row h2 a { color: var(--navy); }
.service-row h2 a:hover { color: var(--gold); }
.service-row-features { margin-top: .75rem; columns: 2; column-gap: 1.5rem; }
.service-row-features li { break-inside: avoid; }
.service-row-side { display: flex; flex-direction: column; gap: .6rem; }
.service-row-side .price-range { font-size: 1.6rem; text-align: center; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row-features { columns: 1; }
}
.service-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 760px) { .service-detail-grid { grid-template-columns: 1fr; } }
.service-price-card { border-top: 4px solid var(--gold); }
.service-cards { grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 640px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }
.service-cards .service-card { display: flex; flex-direction: column; padding: 1.4rem; }
.service-cards .service-card h3 { font-size: 1.1rem; hyphens: manual; }
.service-cards .service-card p { font-size: .93rem; }
.service-cards .service-card p.mt-2 { margin-top: auto; padding-top: .75rem; }
.service-cards .service-card .btn { align-self: flex-start; }
.price-note { color: var(--gray-400); font-size: .85em; }
.price-edit td, .price-edit th { vertical-align: middle; }
.price-edit input.form-control { max-width: 110px; padding: .4rem .6rem; }

/* ── Outreach ─────────────────────────────────────────────────────────────── */
.outreach-tabs a { font-weight: 500; }
.outreach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .outreach-grid { grid-template-columns: 1fr; } }
.outreach-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .outreach-settings { grid-template-columns: 1fr; } }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .9rem 1rem; }
.filter-bar .form-control { width: auto; flex: 1 1 160px; min-width: 140px; }
.filter-bar input[type=search] { flex: 2 1 240px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1rem; position: sticky; top: 0; z-index: 5; }
.action-sep { width: 1px; height: 24px; background: var(--gray-200); margin: 0 .25rem; }
.form-control-sm { padding: .35rem .6rem; font-size: .85rem; width: auto; min-width: 170px; }
.contacts-table td { vertical-align: top; }
.contact-email { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; color: var(--gray-600); word-break: break-all; }
.role-pill { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--gray-100); color: var(--gray-600); }
.role-research_office, .role-graduate_school { background: #dcfce7; color: #15803d; }
.role-leadership, .role-head_of_department { background: #e0e7ff; color: #3730a3; }
.role-library, .role-publishing { background: var(--gold-pale); color: #92400e; }
.score { display: inline-block; min-width: 2.2rem; text-align: center; padding: .15rem .4rem; border-radius: 6px; font-weight: 700; font-size: .85rem; }
.score-hi { background: #dcfce7; color: #15803d; } .score-mid { background: var(--gold-pale); color: #92400e; } .score-lo { background: var(--gray-100); color: var(--gray-600); }
.sender-status { border-left: 4px solid var(--gray-400); }
.sender-status.is-on { border-left-color: var(--green); }
.email-preview { padding: 0; overflow: hidden; }
.email-head { padding: .85rem 1.1rem; background: var(--off-white); border-bottom: 1px solid var(--gray-200); display: grid; gap: .25rem; font-size: .92rem; }
.email-body { white-space: pre-wrap; font-family: inherit; font-size: .95rem; line-height: 1.6; margin: 0; padding: 1.1rem; background: none; color: var(--gray-800); }
.email-foot { padding: 0 1.1rem 1rem; margin: 0; }
.template-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.template-row:first-of-type { border-top: 0; }
.template-row form { margin: 0; }
.check-row { display: flex; gap: .5rem; align-items: center; font-weight: 400; cursor: pointer; }
.toggle-row { font-size: 1.05rem; }
.test-row { display: flex; gap: .6rem; }
.test-row .form-control { flex: 1; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.outreach-tabs { margin-bottom: 2.2rem; }
.check-row { font-size: .95rem; }

/* ── Admin → Community ── */
.platform-tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--gray-100); color: var(--gray-800); }
.platform-reddit { background: #ffedd5; color: #9a3412; }
.platform-quora { background: #fee2e2; color: #991b1b; }
.score-pill { display: inline-block; min-width: 2.2rem; text-align: center; font-size: .78rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; background: var(--gray-100); color: var(--gray-600); }
.score-pill.is-mid { background: #dbeafe; color: #1e40af; }
.score-pill.is-high { background: #dcfce7; color: var(--green); }
.community-table td { vertical-align: top; }
.question-body { margin-top: .9rem; background: var(--off-white); border-radius: 8px; max-height: 340px; overflow: auto; }
.posted-box { border-top: 1px solid var(--gray-100); padding-top: 1rem; }
.check-list, .bullet-list { list-style: disc; } .check-list li::marker, .bullet-list li::marker { color: var(--gold); }
.check-list { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--gray-600); display: flex; flex-direction: column; gap: .35rem; }
.settings-sub { font-size: .95rem; margin: 1.1rem 0 .3rem; display: flex; align-items: center; gap: .45rem; }
.conn-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--gray-400); display: inline-block; }
.conn-dot.is-on { background: var(--green); }

/* ── Admin → Publishing ── */
.project-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.project-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.25rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-100); }
@media (max-width: 900px) { .project-actions { grid-template-columns: 1fr; } }
.project-form .inline-actions { flex-wrap: wrap; }
.project-form .form-control-sm { width: auto; min-width: 0; flex: 1 1 160px; }
.accept-fields { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.accept-fields[hidden] { display: none; }
.project-form textarea.form-control { width: 100%; min-width: 0; font-family: inherit; display: block; }

/* ── Free tools: journals, references, citations ── */
.journal-search { position: relative; }
.journal-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: .2rem 0 0; padding: .25rem 0; list-style: none; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; }
.journal-suggest li { padding: .5rem .8rem; cursor: pointer; display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; }
.journal-suggest li span { font-size: .78rem; color: var(--gray-600); }
.journal-suggest li.is-active, .journal-suggest li:hover { background: var(--gold-pale); }
.q-badge { display: inline-block; font-weight: 700; font-size: .78rem; padding: .15rem .5rem; border-radius: 6px; background: var(--gray-100); color: var(--gray-800); }
.q-badge.q-lg { font-size: 1.05rem; padding: .3rem .7rem; }
.q-q1 { background: #dcfce7; color: #166534; } .q-q2 { background: #fef9c3; color: #854d0e; } .q-q3 { background: #ffedd5; color: #9a3412; } .q-q4 { background: #fee2e2; color: #991b1b; }
.journal-card .indexed { margin: .8rem 0 .4rem; font-weight: 600; font-size: .92rem; }
.journal-card .indexed.is-yes { color: var(--green); } .journal-card .indexed.is-old { color: #9a3412; }
.journal-card.is-missing { border-left: 4px solid var(--orange); }
.journal-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; }
.journal-facts div { display: flex; gap: .35rem; font-size: .9rem; } .journal-facts dt { color: var(--gray-600); } .journal-facts dd { margin: 0; font-weight: 600; }
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--gray-100); font-size: .9rem; }
.ref-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.ref-result { border: 1px solid var(--gray-200); border-left: 4px solid var(--gray-400); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.ref-result.ref-ok { border-left-color: var(--green); } .ref-result.ref-check { border-left-color: var(--gold); } .ref-result.ref-bad { border-left-color: var(--red); }
.ref-result-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.ref-n { font-weight: 700; color: var(--gray-600); min-width: 1.6rem; }
.ref-text { margin: 0 0 .3rem; font-size: .88rem; color: var(--gray-600); word-break: break-word; }
.ref-detail { margin: 0; font-size: .9rem; word-break: break-word; }
.citation-text i { font-style: italic; }
p.citation-text { font-family: var(--font-serif, Georgia, serif); font-size: .98rem; line-height: 1.55; }
.manual-entry > summary { cursor: pointer; list-style: revert; }
.finder-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.quartile-pick { border: 0; padding: 0; margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.quartile-pick legend { width: 100%; margin-bottom: .3rem; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--gray-200); border-radius: 999px; font-size: .88rem; cursor: pointer; }
.chip-check input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip-check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.finder-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .finder-results { grid-template-columns: 1fr; } }
.finder-card h2 { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.finder-card-head { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.finder-facts { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .86rem; color: var(--gray-600); }
.finder-facts .oa { color: var(--green); font-weight: 600; }
.finder-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.quote-table { margin-top: 1rem; font-size: .9rem; width: 100%; }
.quote-table td { padding: .35rem 0; } .quote-table td:first-child { color: var(--gray-600); width: 40%; }
.quote-email > summary { cursor: pointer; font-size: .92rem; color: var(--gray-800); }
.row-edit > summary { list-style: none; } .row-edit > summary::-webkit-details-marker { display: none; }
.row-edit-panel { position: absolute; right: 1rem; z-index: 20; width: min(520px, 90vw); background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem; text-align: left; }
.journals-table td { vertical-align: top; } .journals-table td:last-child { position: relative; }

/* ── LinkedIn Planner ─────────────────────────────────────────────────────── */
.outreach-grid.li-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .outreach-grid.li-two { grid-template-columns: 1fr; } }
.li-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.li-cal-head { font-size: .72rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .04em; padding: 0 .3rem .2rem; }
.li-cal-day { min-height: 92px; border: 1px solid var(--gray-200); border-radius: 8px; padding: .25rem; display: flex; flex-direction: column; gap: 3px; background: var(--white); min-width: 0; }
.li-cal-day.is-empty { border: none; background: none; }
.li-cal-day.is-past { background: var(--off-white); }
.li-cal-day.is-today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.li-cal-num { font-size: .78rem; font-weight: 600; color: var(--gray-600); align-self: flex-start; padding: 0 .25rem; border-radius: 4px; }
.li-cal-num:hover { background: var(--gold-pale); color: var(--navy); }
.li-chip { display: block; font-size: .7rem; line-height: 1.3; padding: .15rem .3rem; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; }
.li-planned, .li-key.li-planned { background: var(--gold-pale); border-color: var(--gold); color: #92400e; }
.li-scheduled, .li-key.li-scheduled { background: #dbeafe; border-color: #2563eb; color: #1e40af; }
.li-posted, .li-key.li-posted { background: #dcfce7; border-color: var(--green); color: #166534; }
.li-late, .li-key.li-late { background: #fee2e2; border-color: var(--red); color: #991b1b; }
.li-skipped, .li-key.li-skipped { background: var(--gray-100); border-color: var(--gray-400); color: var(--gray-600); text-decoration: line-through; }
.li-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; border-left: 3px solid; margin: 0 .2rem 0 .6rem; vertical-align: -1px; text-decoration: none; }
.li-key:first-child { margin-left: 0; }
@media (max-width: 700px) {
  .li-cal { gap: 2px; }
  .li-cal-day { min-height: 54px; padding: .15rem; }
  .li-chip { font-size: 0; padding: 0; height: 6px; border-left-width: 0; border-radius: 3px; }
  .li-cal-head { font-size: .62rem; padding: 0; text-align: center; }
}
.li-count { font-variant-numeric: tabular-nums; }
.li-count.is-over { color: var(--red); font-weight: 600; }
.li-feed { white-space: pre-wrap; font-size: .9rem; line-height: 1.45; color: var(--gray-800); background: var(--off-white); border: 1px solid var(--gray-200); border-radius: 8px; padding: .75rem .85rem; overflow-wrap: anywhere; }
.li-more { color: var(--gray-600); font-weight: 600; margin-left: .25rem; }
.check-list li.is-error { color: var(--red); }
.check-list li.is-error::marker { color: var(--red); }
.check-list li.is-warn { color: #92400e; }
.li-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.li-actions .btn svg, .li-steps .btn svg { vertical-align: -3px; margin-right: .2rem; }
.li-img-preview { border: 1px solid var(--gray-200); border-radius: 8px; padding: .4rem; background: var(--off-white); max-width: 420px; }
.li-img-preview img { display: block; max-width: 100%; max-height: 240px; margin: 0 auto; border-radius: 4px; }
.li-steps { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 1.2rem; }
.li-steps > li::marker { font-weight: 700; color: var(--gold); }
.li-session-text { margin-top: .6rem; max-height: 340px; overflow: auto; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--off-white); font-size: .9rem; overflow-wrap: anywhere; }
.li-when { display: inline-flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.li-when span { background: var(--navy); color: var(--white); padding: .45rem .8rem; border-radius: 8px; font-weight: 600; font-size: 1.05rem; }
.li-progress { flex: 0 1 240px; height: 6px; background: var(--gray-200); border-radius: 99px; overflow: hidden; }
.li-progress span { display: block; height: 100%; background: var(--gold); }
.li-cols { width: 100%; border-collapse: collapse; font-size: .88rem; }
.li-cols th { text-align: left; vertical-align: top; padding: .35rem .6rem .35rem 0; font-family: monospace; white-space: nowrap; color: var(--navy); }
.li-cols td { padding: .35rem 0; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); }
.li-radio { display: flex; flex-direction: column; gap: .45rem; font-size: .92rem; }
.li-radio label { display: flex; gap: .5rem; align-items: baseline; cursor: pointer; }
@media (max-width: 700px) {
  .li-table .li-col-len { display: none; }
  .li-table th, .li-table td { padding-left: .5rem; padding-right: .5rem; }
}
.refund-flag { margin-top: .4rem; font-size: .8rem; color: var(--gray-800); background: var(--gold-pale); border-left: 3px solid var(--gold); border-radius: 4px; padding: .35rem .5rem; white-space: pre-wrap; max-width: 260px; }
.role-pill { display: inline-block; margin-top: .2rem; font-size: .72rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; background: var(--gold-pale); color: #92400e; }

/* Founder / owner profile card (About page and article author box) */
.owner-card { display: flex; gap: 1.5rem; align-items: flex-start; }
.owner-photo { border-radius: 50%; object-fit: cover; flex-shrink: 0; width: 120px; height: 120px; }
.owner-card-compact .owner-photo { width: 72px; height: 72px; }
.owner-text { min-width: 0; }
.owner-kicker { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 .25rem; }
.owner-name { margin: 0; color: var(--navy); }
.owner-card-compact .owner-name { font-weight: 700; font-size: 1.05rem; }
.owner-title { color: var(--gray-600); margin: .15rem 0 .75rem; font-size: .95rem; }
.owner-text p { margin-bottom: .6rem; }
.owner-creds { margin: .5rem 0 .75rem 1.1rem; color: var(--gray-700, #374151); }
.owner-creds li { margin-bottom: .25rem; }
.owner-links { margin: 0; font-size: .92rem; }
.owner-photo-preview img { border-radius: 50%; object-fit: cover; }
.perm-matrix td:not(:first-child) { color: var(--green, #15803d); font-weight: 700; }
@media (max-width: 560px) { .owner-card { flex-direction: column; } }

/* Outreach automation checklist */
.auto-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.auto-steps li { font-size: .95rem; }
.auto-steps li span { display: inline-block; width: 1.2rem; font-weight: 700; }
.auto-steps li.ok { color: var(--gray-600); }
.auto-steps li.ok span { color: var(--green); }
.auto-steps li.todo { color: var(--navy); font-weight: 600; }
.auto-steps li.todo span { color: var(--gold); }

/* Outreach contacts: Found on column and inline editor */
.contacts-table .found-on { max-width: 220px; font-size: .85rem; word-break: break-all; }
.edited-tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green); background: #DCFCE7; border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.contact-edit > td { background: var(--off-white); border-top: 0; }
.contact-edit-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; padding: .5rem 0 .75rem; }
.contact-source { border-left: 3px solid var(--gold); padding-left: 1rem; font-size: .88rem; }
.contact-context { margin: 0; padding: .6rem .75rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: 6px; color: var(--gray-600); font-size: .85rem; line-height: 1.5; white-space: pre-wrap; }
tr.just-saved > td { background: var(--gold-pale); transition: background 2s; }
@media (max-width: 900px) { .contact-edit-grid { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
