/* path: static/css/theme.css */
/* Vordict public and author theme: clean, white, navy with orange calls to action, squared corners */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #0f5ea8;
  --blue-dark: #0b4a86;
  --sky: #9fc6ec;
  --orange: #e8590c;
  --orange-dark: #c2470a;
  --ink: #1d2733;
  --muted: #5f6b7a;
  --line: #dfe4ea;
  --bg: #f4f6f8;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.08);
  --shadow-lift: 0 10px 24px rgba(11, 37, 69, 0.14);
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3 { color: var(--navy); letter-spacing: -0.01em; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Header */
.topbar {
  background: var(--white);
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(11, 37, 69, 0.06);
}
.topbar-inner { padding: 10px 24px; gap: 28px; }
.brand { color: var(--navy); font-size: 18px; font-weight: 800; }
.brand small { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.topnav a { color: var(--navy); font-size: 13px; font-weight: 600; }
.topnav a:hover { color: var(--orange-dark); }
.nav-group { padding: 12px 0; }
.nav-group > a::after { color: var(--muted); }
.mega-menu { border: 0; border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lift); min-width: 240px; }
.mega-menu a { font-size: 14px; color: var(--ink); }
.mega-menu a:hover { background: #eef4fb; color: var(--blue-dark); }
.icon-btn { color: var(--navy); }

/* Buttons */
.btn {
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
}
.btn:hover { background: var(--blue-dark); color: var(--white); }
.btn-sm { padding: 9px 15px; font-size: 13px; }
.btn-ghost { background: var(--white); color: var(--blue); border: 1px solid var(--blue); }
.btn-ghost:hover { background: #eef4fb; color: var(--blue-dark); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #e9f1fa; color: var(--navy); }
.topbar-right .btn { background: var(--orange); }
.topbar-right .btn:hover { background: var(--orange-dark); }
.hero-actions .btn:not(.btn-light) { background: var(--orange); }
.hero-actions .btn:not(.btn-light):hover { background: var(--orange-dark); }
.jcard .btn-sm { display: block; text-align: center; background: var(--orange); }
.jcard .btn-sm:hover { background: var(--orange-dark); }
.info-band .btn { background: var(--navy); }
.info-band .btn:hover { background: var(--navy-2); }
.btn-main { background: var(--blue); border-radius: var(--radius); }
.btn-alt { border-radius: var(--radius); }

/* Hero */
.hero {
  background:
    linear-gradient(100deg, rgba(11, 37, 69, 0.98) 0%, rgba(11, 37, 69, 0.9) 45%, rgba(15, 94, 168, 0.88) 100%),
    linear-gradient(180deg, #0b2545, #0b2545);
  border-bottom: 4px solid var(--orange);
}
.hero-inner { min-height: 0; padding: 72px 24px 64px; }
.hero h1 { font-size: 44px; font-weight: 700; line-height: 1.15; color: var(--white); }
.brand-hl { color: #ffb37a; }
.hero-sub { color: #d7e4f3; font-size: 18px; }
.agreement { border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); }
.agreement-title { color: #ffb37a; font-size: 16px; }
.hero-art {
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(159, 198, 236, 0.22), rgba(232, 89, 12, 0.10)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Service cards */
.roles { margin-top: -40px; }
.role-card { border-radius: var(--radius); box-shadow: var(--shadow-lift); border-top: 4px solid var(--orange); }
.role-head { background: var(--white); color: var(--navy); font-size: 18px; font-weight: 700; padding: 18px 20px 6px; }
.role-card li { font-size: 14px; color: var(--ink); }
.role-card li::before { color: var(--orange); }
.role-link { padding: 12px 20px 20px; text-align: left; }
.role-link a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* Sections and headings */
.section { padding: 48px 0 12px; }
.section-head { border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; margin: 0; }
.crumbs { font-size: 13px; }

.steps li { background: var(--white); border-radius: var(--radius); font-size: 13px; }
.steps li.on { color: var(--navy); border-color: var(--navy); }
.steps li.on .num { background: var(--navy); }

/* Panels and forms */
.panel { border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--navy); }
select, textarea, input[type="text"], .fld input, .fld select, .fld textarea, .wizard-panel input, .wizard-panel select, .wizard-panel textarea, .filter-bar input, .filter-bar select {
  border-color: #c3ccd8;
  border-radius: var(--radius);
}
select:focus, textarea:focus, input[type="text"]:focus, .fld input:focus, .fld select:focus, .fld textarea:focus, .wizard-panel input:focus, .wizard-panel select:focus, .wizard-panel textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}
.match-pill { background: #e3f1e8; color: #1e6b3a; border-radius: var(--radius); }
.table-wrap, .table-plain, .card { border-radius: var(--radius); }
.table th { background: #eef2f7; color: var(--navy); }

/* Journal post cards: portrait cover, title beneath */
.jcard-grid,
.journal-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 26px 22px;
}
.jcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.jcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.jcard-cover {
  display: block;
  height: auto;
  aspect-ratio: 148 / 210; /* A5 portrait */
  background: #e9eef4;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.jcard-cover img { width: 100%; height: 100%; object-fit: contain; }
.jcard-cover.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  background: linear-gradient(160deg, #0b2545 0%, #0f5ea8 62%, #e8590c 100%);
}
.jcard-name { color: var(--white); font-size: 1.1em; font-weight: 700; line-height: 1.35; text-align: center; }
.jcard-body { padding: 14px 16px 16px; gap: 7px; }
.jcard-body h3 { font-size: 1.02em; font-weight: 700; line-height: 1.35; }
.jcard-body h3 a { color: var(--navy); }
.jcard-body h3 a:hover { color: var(--blue); text-decoration: none; }
.jcard-body .small { font-size: 12.5px; }
.jcard-body .tags { gap: 5px; }
.tag { border-radius: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 7px; }
.tag-open { background: #e3f1e8; color: #1e6b3a; }
.tag-hybrid { background: #e6f0fb; color: var(--blue-dark); }
.tag-closed { background: #fbe9e2; color: #9a3a08; }
.jcard .pill, .pill { border-radius: 3px; }
.indexing-chips, .chips { gap: 5px; }

/* Journal detail */
.detail-head { gap: 32px; }
.detail-cover img { border-radius: var(--radius); box-shadow: 0 10px 22px rgba(11, 37, 69, 0.18); border: 0; }
.detail-main h1 { font-size: 32px; }
.key-info { border-left: 1px solid var(--line); }
.key-info dt { text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; }
.two-col .panel { border-top: 0; border-left: 4px solid var(--orange); }
.hybrid-image { border-radius: var(--radius); }

/* Info band and about */
.info-band { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); }
.info-card { background: #eef4fb; border-radius: var(--radius); }
.eyebrow { color: var(--orange-dark); font-size: 12px; letter-spacing: 0.08em; }
.about-strip { padding: 40px 12px 16px; }
.about-strip h2 { font-size: 28px; }

/* Footer */
.footer { background: var(--navy); color: #bccbe0; margin-top: 64px; border-top: 4px solid var(--orange); }
.footer-inner { padding: 34px 24px; }
.footer strong { color: var(--white); font-size: 15px; }
.footer p { color: #bccbe0; }
.footer-links a { color: var(--white); font-weight: 600; }
.footer-links a:hover { color: #ffb37a; }

/* Author portal */
.portal-sidebar { background: var(--navy); border-radius: var(--radius); }
.portal-sidebar a { border-radius: 3px; }
.portal-sidebar a:hover, .portal-sidebar a.active { background: var(--orange); color: var(--white); }
.side-title { color: #ffb37a; }
.stat-card { border-radius: var(--radius); border-top: 3px solid var(--navy); box-shadow: var(--shadow); }
.stat-card span { color: var(--orange-dark); }
.stepper-item.current span, .stepper-item.done span { background: var(--navy); border-color: var(--navy); }
.stepper-item.current, .stepper-item.done { color: var(--navy); }
.wizard-panel { border-top: 3px solid var(--navy); }
.wizard-title h2 { color: var(--navy); }
.success-card { border-radius: var(--radius); border-top: 4px solid var(--orange); }
.success-mark { background: #e3f1e8; color: #1e6b3a; }
.notice.info { background: #eef4fb; border-color: #bfd4ea; }
.card h1, .card h2 { color: var(--navy); }
.author-row { border-radius: var(--radius); }
.note-box { border-radius: var(--radius); }
.pill { font-weight: 600; }

/* Responsive */
@media (max-width: 960px) {
  .hero h1 { font-size: 34px; }
  .hero-inner { padding: 48px 20px 44px; }
}
@media (max-width: 600px) {
  .jcard-grid, .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hero h1 { font-size: 28px; }
  .section-head h2 { font-size: 20px; }
}