/* path: static/css/app.css */
/* path: public/assets/css/app.css */
:root {
  --navy: #071a3d;
  --navy-2: #0c3d86;
  --blue: #0b5ed7;
  --blue-dark: #0a4aa8;
  --sky: #8fc5ff;
  --ink: #0f1f3a;
  --muted: #5b6b82;
  --line: #dde5ef;
  --bg: #f5f8fc;
  --white: #ffffff;
  --yellow: #ffd54a;
  --green: #137a36;
  --green-bg: #d9f7e4;
  --red: #b3261e;
  --red-bg: #fde2e0;
  --amber: #8a5a00;
  --amber-bg: #fff1c2;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(12, 40, 90, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 10px; color: var(--ink); }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 10px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* Top bar */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 19px;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 18px;
  height: 14px;
  border-radius: 2px;
  background: var(--sky);
  opacity: 0.8;
}
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0.3px; }
.topnav { display: flex; gap: 20px; align-items: center; flex: 1; flex-wrap: wrap; }
.topnav a, .nav-item { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.topnav a:hover { color: var(--blue); }
.nav-item { cursor: default; color: var(--muted); }
.nav-item::after { content: " \25BE"; font-size: 11px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.icon-btn { color: var(--ink); text-decoration: none; font-size: 16px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:disabled { background: #aab7c8; border-color: #aab7c8; cursor: not-allowed; }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: #eef4fb; color: var(--navy); }
.btn-ghost { background: var(--white); color: var(--blue); border: 1px solid var(--blue); }
.btn-ghost:hover { background: #eef4fb; color: var(--blue); }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 30%, rgba(143, 197, 255, 0.35), transparent 45%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  margin-top: -1px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px;
  align-items: center;
}
.hero h1 { color: var(--white); font-size: 42px; line-height: 1.15; }
.brand-hl { color: var(--sky); }
.hero-sub { color: #dbe7f7; font-size: 17px; max-width: 640px; }
.agreement {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  max-width: 680px;
}
.agreement-title { color: var(--yellow); font-size: 17px; margin-bottom: 6px; }
.agreement p { color: #e6eefa; font-size: 14px; margin: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-art {
  min-height: 300px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(143, 197, 255, 0.25), rgba(11, 94, 215, 0.05)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 12px, transparent 12px 24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Role cards */
.roles { max-width: 1200px; margin: -36px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; position: relative; }
.role-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.role-head {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  color: var(--white);
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 700;
}
.role-card ul { list-style: none; padding: 16px 18px 0; margin: 0; flex: 1; }
.role-card li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; }
.role-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.role-link { padding: 12px 18px 18px; text-align: right; font-weight: 600; }

/* Sections */
.section { padding: 40px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }

/* Stepper */
.steps { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 14px 0 20px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.steps li.on { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.steps .num { width: 20px; height: 20px; border-radius: 50%; background: #e9eff7; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.steps li.on .num { background: var(--blue); color: var(--white); }

/* Panels and forms */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.narrow { max-width: 560px; margin: 40px auto; }
.find-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.find-wide { grid-column: 1 / -1; }
label > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
select, textarea, input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9d5e3;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* Results table */
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; background: #f1f5fa; color: var(--muted); font-weight: 600; font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.row-journal { display: flex; align-items: center; gap: 12px; }
.thumb { width: 48px; height: 64px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.row-journal a { color: var(--ink); font-weight: 600; text-decoration: none; }
.row-journal a:hover { color: var(--blue); }
.match-pill { background: var(--green-bg); color: var(--green); font-weight: 700; border-radius: 999px; padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.arrow-link { color: var(--blue); text-decoration: none; font-weight: 700; font-size: 18px; }

/* Journal grid */
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-cover { display: block; aspect-ratio: 3 / 4; background: #e9eef4; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--blue); }
.card-body h3 { font-size: 15px; }

/* Pills and tags */
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; font-weight: 600; background: #e8f1fd; color: var(--blue-dark); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.pill-muted { background: #eef1f5; color: var(--muted); }
.tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; }
.tag-open { background: var(--green-bg); color: var(--green); }
.tag-hybrid { background: #e3f2fd; color: var(--blue-dark); }
.tag-closed { background: var(--red-bg); color: var(--red); }

/* Journal details */
.detail-head { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 24px; }
.detail-cover img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.detail-main .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.key-info { border-left: 1px solid var(--line); padding-left: 22px; }
.key-info dl { margin: 0; }
.key-info dt { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 10px; }
.key-info dd { margin: 2px 0 0; font-size: 14px; }
.hybrid-image { width: 100%; border-radius: 8px; margin-top: 12px; display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.two-col .panel p { font-size: 15px; }

.table-plain { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-plain th, .table-plain td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table-plain th { color: var(--muted); font-weight: 600; }

.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Footer */
.footer { background: var(--navy); color: #c9d7ea; margin-top: 56px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 26px 20px; font-size: 13px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .roles { grid-template-columns: 1fr; }
  .find-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-head { grid-template-columns: 1fr; }
  .key-info { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .two-col { grid-template-columns: 1fr; }
  .topnav { display: none; }
}


/* Vordict Journals author submission portal */
.brand-mark {
  width: 42px; height: 34px; display: inline-block; flex: 0 0 42px;
  background: url("../img/vordict-logo.svg") center / contain no-repeat;
  position: relative;
}
.brand { display:flex; align-items:center; gap:10px; color:var(--navy); text-decoration:none; font-weight:800; font-size:20px; line-height:1.1; white-space:nowrap; }
.brand small { display:block; color:var(--muted); font-size:10px; font-weight:600; letter-spacing:.04em; margin-top:4px; }
.topbar-inner { gap:18px; }
.topnav { display:flex; align-items:center; gap:18px; margin-left:auto; }
.topnav a { color:var(--ink); text-decoration:none; font-size:13px; font-weight:600; white-space:nowrap; }
.nav-group { position:relative; padding:10px 0; }
.nav-group > a::after { content:"\2304"; padding-left:5px; color:var(--muted); }
.mega-menu { display:none; position:absolute; top:100%; left:-14px; min-width:220px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); padding:10px; z-index:30; }
.mega-menu a { display:block; padding:10px; border-radius:6px; }
.mega-menu a:hover { background:#edf5ff; color:var(--blue); }
.nav-group:hover .mega-menu, .nav-group:focus-within .mega-menu { display:block; }
.topbar-right { display:flex; align-items:center; gap:10px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:8px; padding:11px 17px; background:var(--blue); color:#fff; text-decoration:none; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.btn:hover { background:var(--blue-dark); color:#fff; }
.btn-sm { padding:9px 13px; font-size:12px; }
.btn-ghost { background:#fff; color:var(--blue); border:1px solid #b8cce7; }
.btn-ghost:hover { background:#eff6ff; color:var(--blue-dark); }
.icon-btn { color:var(--ink); text-decoration:none; font-size:18px; padding:5px; }
.hero { background:linear-gradient(110deg,#061936 0%,#0a315e 55%,#075b83 100%); color:#fff; overflow:hidden; }
.hero-inner { max-width:1200px; min-height:420px; margin:auto; padding:54px 24px; display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:24px; }
.hero h1 { color:#fff; font-size:44px; max-width:660px; }
.hero-sub { color:#e0efff; font-size:18px; max-width:650px; }
.brand-hl { color:#91caff; }
.agreement { border:1px solid rgba(255,255,255,.65); border-radius:14px; padding:15px 18px; margin:22px 0; background:rgba(2,18,43,.62); max-width:690px; }
.agreement-title { color:#ffdf58; font-size:17px; margin-bottom:5px; }
.agreement p { color:#f1f6fc; font-size:13px; margin:0; }
.hero-art { min-height:300px; border-radius:18px; background:radial-gradient(circle at 60% 45%,rgba(24,199,255,.42),transparent 34%),linear-gradient(135deg,rgba(255,255,255,.04),rgba(0,190,255,.08)); }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.btn-light { background:#fff; color:var(--navy); }
.btn-light:hover { background:#eaf4ff; color:var(--navy); }
.info-band { display:grid; grid-template-columns:1.5fr 1fr; gap:24px; margin:34px 0; padding:28px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow); }
.info-band p { color:var(--muted); max-width:760px; }
.info-card { background:#f1f6fd; border-radius:12px; padding:20px; }
.info-card a { font-weight:700; text-decoration:none; }
.eyebrow { text-transform:uppercase; letter-spacing:.09em; font-size:11px; color:var(--blue); font-weight:800; }
.about-strip { text-align:center; padding:28px 12px 8px; }
.about-strip p { color:var(--muted); }
.footer p { max-width:900px; color:#d6e2f2; }
.footer-links { display:flex; gap:18px; flex-wrap:wrap; margin:14px 0; }
.footer-links a { color:#fff; text-decoration:none; }

/* Author workspace */
.portal-shell { max-width:1400px; margin:28px auto; padding:0 20px; display:grid; grid-template-columns:235px minmax(0,1fr); gap:24px; }
.portal-sidebar { background:linear-gradient(180deg,#0c2d57,#071a3d); color:#fff; border-radius:12px; padding:18px 12px; align-self:start; min-height:520px; }
.side-title { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:#9ec8f6; padding:8px 12px 18px; font-weight:800; }
.portal-sidebar a { display:block; color:#eaf3ff; text-decoration:none; padding:12px; border-radius:7px; font-size:13px; margin:3px 0; }
.portal-sidebar a:hover,.portal-sidebar a.active { background:#0b5ed7; color:#fff; }
.portal-main { min-width:0; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:20px; }
.page-heading h1 { margin-bottom:4px; }
.slim-agreement { background:#eef6ff; border:1px solid #c9def8; max-width:none; color:var(--ink); margin:0 0 20px; }
.slim-agreement strong { color:var(--blue-dark); }
.slim-agreement p { color:#435875; margin:5px 0 0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:18px 0; }
.stat-card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px; box-shadow:var(--shadow); }
.stat-card span { display:block; color:var(--blue); font-size:20px; }
.stat-card strong { display:block; font-size:26px; margin:4px 0; }
.stat-card small { color:var(--muted); }
.empty-state { text-align:center; padding:42px 16px; }
.empty-icon { color:var(--blue); font-size:38px; }

/* Submission wizard */
.submission-wrap { max-width:1120px; margin:0 auto; padding:12px 20px 50px; }
.submission-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:8px 0 22px; }
.submission-heading h1 { margin:4px 0; }
.stepper { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; margin:22px 0; }
.stepper-item { display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; position:relative; color:#7b899b; }
.stepper-item:not(:last-child)::after { content:""; position:absolute; top:15px; left:60%; width:80%; height:2px; background:#dce5f0; z-index:0; }
.stepper-item span { width:30px; height:30px; display:flex; align-items:center; justify-content:center; border:1px solid #cbd7e6; background:#fff; border-radius:50%; font-size:12px; font-weight:800; z-index:1; }
.stepper-item small { font-size:11px; font-weight:600; }
.stepper-item.current { color:var(--blue); }
.stepper-item.current span,.stepper-item.done span { background:var(--blue); color:#fff; border-color:var(--blue); }
.stepper-item.done { color:var(--blue-dark); }
.wizard-panel { padding:24px; }
.wizard-title { display:flex; align-items:flex-start; justify-content:space-between; border-bottom:1px solid var(--line); padding-bottom:15px; margin-bottom:20px; }
.wizard-title h2 { margin:0; }
.step-count { color:var(--muted); font-size:12px; }
.wizard-panel label { display:block; font-size:13px; font-weight:700; margin-bottom:7px; }
.wizard-panel label b { color:#c22; }
.wizard-panel input[type="text"],.wizard-panel input[type="email"],.wizard-panel input[type="file"],.wizard-panel select,.wizard-panel textarea { display:block; width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid #cbd7e6; border-radius:8px; background:#fff; color:var(--ink); font:inherit; font-size:14px; margin-top:6px; }
.wizard-panel textarea { min-height:90px; }
.field-gap { height:18px; }
.journal-choice-grid { display:grid; grid-template-columns:1.5fr 1fr; gap:24px; }
.journal-summary { background:#f2f7fd; border:1px solid var(--line); border-radius:10px; padding:20px; }
.cover-mini { width:64px; height:84px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:900; font-size:22px; border-radius:5px; background:linear-gradient(145deg,#092c5a,#0b79c9); margin-bottom:12px; }
.journal-summary a { font-weight:700; text-decoration:none; font-size:13px; }
.radio-list { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.radio-option { display:flex!important; align-items:center; gap:8px; font-weight:500!important; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-grid .full { grid-column:1/-1; }
.file-input { padding:16px!important; background:#f8fbff!important; }
.upload-hint { border:1px dashed #8eadd4; border-radius:10px; padding:25px; text-align:center; color:var(--blue); background:#f6faff; margin-top:15px; }
.file-list { padding:0; list-style:none; }
.file-list li { padding:9px 0; border-bottom:1px solid var(--line); font-size:13px; }
.file-list span { color:var(--muted); float:right; }
.notice { padding:12px 14px; border-radius:8px; font-size:13px; margin:12px 0 18px; }
.notice.info { background:#edf5ff; border:1px solid #c9def8; color:#23466e; }
.notice.warning { background:#fff7e3; border:1px solid #f1d99c; color:#6c4c09; }
.checkline { display:flex!important; align-items:flex-start; gap:9px; margin:18px 0!important; font-weight:500!important; }
.checkline input { margin-top:3px; }
.wizard-actions { display:flex; justify-content:space-between; gap:12px; border-top:1px solid var(--line); padding-top:18px; margin-top:24px; }
.review-checklist { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.review-checklist > div { border:1px solid var(--line); border-radius:8px; padding:12px; display:grid; grid-template-columns:28px 1fr; align-items:center; }
.review-checklist span { grid-row:span 2; color:var(--green); font-weight:900; font-size:18px; }
.review-checklist strong { font-size:13px; }
.review-checklist small { color:var(--muted); font-size:12px; }
.success-wrap { max-width:850px; margin:55px auto; padding:0 20px; }
.success-card { text-align:center; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); border-radius:14px; padding:38px; }
.success-mark { width:62px; height:62px; margin:0 auto 16px; border-radius:50%; background:#dff7e8; color:#168143; display:flex; align-items:center; justify-content:center; font-size:34px; font-weight:800; }
.success-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; background:#f2f7fd; border:1px solid var(--line); border-radius:10px; margin:24px 0; padding:18px; }
.success-meta div { display:flex; flex-direction:column; gap:5px; }
.success-meta small { color:var(--muted); font-size:11px; }
.success-meta strong { font-size:13px; }
.center-actions { justify-content:center; }

@media(max-width:1050px) {
  .topnav { display:none; }
  .hero-inner { grid-template-columns:1fr; }
  .hero-art { min-height:180px; }
}
@media(max-width:760px) {
  .portal-shell { grid-template-columns:1fr; }
  .portal-sidebar { min-height:0; display:flex; flex-wrap:wrap; }
  .side-title { width:100%; padding-bottom:8px; }
  .portal-sidebar a { padding:9px; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .stepper { grid-template-columns:repeat(4,1fr); row-gap:16px; }
  .stepper-item:not(:last-child)::after { display:none; }
  .journal-choice-grid,.form-grid,.review-checklist,.info-band { grid-template-columns:1fr; }
  .form-grid .full { grid-column:auto; }
  .success-meta { grid-template-columns:1fr; }
  .submission-heading,.page-heading { align-items:flex-start; flex-direction:column; }
  .hero h1 { font-size:34px; }
}

.repeat-list { display:grid; gap:14px; margin-bottom:14px; }
.repeat-card { border:1px solid var(--line); border-radius:10px; padding:16px; background:#fbfdff; }
.repeat-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; color:var(--navy); }
.text-button { border:0; background:transparent; color:#b3261e; cursor:pointer; font:inherit; font-size:12px; font-weight:700; }

/* admin */
.flash { padding: 10px 14px; margin: 12px auto; max-width: 1180px; border-radius: 3px; }
.flash.ok { background: #e6f4ea; }
.flash.error { background: #fbe4e4; }
main > h1 { max-width: 1180px; margin: 24px auto 8px; padding: 0 20px; }
main > p, main > form, main > section, main > table, main > .pager { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
table.list { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
table.list th { background: #efefef; }
.narrow-table { width: auto; }
.card-admin { background: #fff; padding: 14px 18px; margin: 14px 0; border: 1px solid var(--line); }
dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 12px; }
dt { font-weight: bold; }
dd { margin: 0; }
form.narrow { max-width: 420px; display: grid; gap: 12px; }
form.narrow label { display: grid; gap: 4px; font-size: 14px; }
.search, .filters, .actions, .bulk { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
input[type=search] { min-width: 280px; }
.bar { display: inline-block; width: 120px; height: 10px; background: #ddd; vertical-align: middle; }
.bar span { display: block; height: 10px; background: #2e7d4f; }
.pager { display: flex; gap: 14px; align-items: center; margin: 14px 0; }

@media (max-width: 800px) {
  .hero h1 { font-size: 28px; }
  .info-band { grid-template-columns: 1fr; }
  .main-nav a { margin-left: 10px; font-size: 13px; }
}
