/* CCCURJ — base styles (layout modeled on classic e-print archive pages) */

/* IBM Plex Sans, self-hosted (SIL Open Font License, see fonts/OFL.txt), Latin subset */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-medium.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-semibold.woff2") format("woff2");
}

:root {
  --ink: #000;
  --link: #0000ee;
  --link-visited: #551a8b;
  --header-bg: #1c1a17;
  --header-link: #b0aba6;
  --footer-bg: #f9f7f7;
  --rule: #ccc;
  --panel-bg: #f0f0f0;
  --sidebar-rule: #ddd;
  --accent: #b31b1b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Lucida Grande", helvetica, arial, verdana, sans-serif;
  font-size: 16px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.62em; margin: 17px 0; }
h2 { font-size: 1.35em; margin: 18px 0; }
h3 { font-size: 0.95em; margin: 15px 0; }

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

.site-header {
  background: var(--header-bg);
  height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wordmark {
  color: #dcd8d4;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; color: #fff; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark .logo { width: 30px; height: 30px; flex: none; }
.wordmark-text span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  color: var(--header-link);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px var(--accent); }
.site-nav .divider { width: 1px; height: 20px; background: #4a4743; margin: 0 8px; }
.site-nav a.login { color: #fff; font-weight: 600; }
.site-nav svg { width: 14px; height: 14px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--header-bg); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; z-index: 10; }

/* ---------- Home ---------- */






/* ---------- Listing ---------- */

.listing { padding: 0 19px; }
.listing h2 { font-size: 19.44px; }
.listing .dates { font-size: 12.96px; padding-left: 40px; }
.listing p { font-size: 12.96px; }
.listing h3 { font-size: 15.16px; }

.listing dl { margin: 0; }
.listing dt { font-size: 12.96px; margin-top: 18px; }
.listing dt a { font-weight: 700; }
.listing dd { margin-left: 40px; }

.list-title { font-size: 18px; font-weight: 700; line-height: 21.6px; margin-top: 4.5px; }
.list-authors { font-size: 14.26px; line-height: 16.85px; }
.list-comments,
.list-subjects { font-size: 11.66px; line-height: 16.85px; }
.primary-subject { font-weight: 700; }

.paging { margin: 30px 0 40px; font-size: 12.96px; }

.list-abstract { font-size: 14.4px; line-height: 1.5; margin: 6px 0 4px; max-width: 72em; }
.listing .empty { font-size: 14.4px; margin: 24px 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Archive, taxonomy, search, about ---------- */

.archive ul { font-size: 14.4px; line-height: 1.4; padding-left: 40px; }
.archive .archive-cats li { margin-bottom: 6px; }
.archive-desc { font-size: 14.4px; max-width: 46em; }

.tax-intro { font-size: 14.4px; max-width: 46em; }
.tax-group { border-top: 1px solid var(--rule); padding: 4px 0 10px; }
.tax-group summary { font-size: 21.6px; font-weight: 700; padding: 10px 0; cursor: pointer; }
.tax-group h3 { font-size: 16px; margin: 18px 0 6px; }
.tax-group h3 span { font-weight: 400; }
.tax-row { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 20px; border-top: 1px solid #eee; padding: 8px 0; }
.tax-row h4 { font-size: 14.4px; margin: 0; }
.tax-row h4 span { font-weight: 400; }
.tax-row p { font-size: 13px; line-height: 1.45; margin: 0; }

.search-form { border: 1px solid #ddd; padding: 10px; max-width: 640px; display: grid; gap: 8px; margin-bottom: 8px; }
.search-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14.4px; }
.search-row input { flex: 1 1 14em; min-width: 0; font-size: 14.4px; padding: 3px 5px; }
.search-row select, .search-row button { font: 13.33px Arial, sans-serif; }
.search-summary { font-size: 12.96px; }

.about p { font-size: 14.4px; line-height: 1.5; max-width: 46em; }

.tool-box pre { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; }

/* ---------- Abstract page ---------- */

.abs-layout { display: flex; align-items: flex-start; }
.abs-main { flex: 1; min-width: 0; }

.breadcrumbs {
  background: var(--panel-bg);
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  font-weight: 700;
  padding: 4px 20px;
}

.abs-body { padding: 0 20px; }

.dateline { font-size: 11.5px; font-style: italic; margin: 8px 0 0; }

.abs-title { font-size: 24px; margin: 4px 0 10px; }

.abs-authors { font-size: 16px; line-height: 1.5; }

.abstract {
  font-size: 14.4px;
  line-height: 1.5;
  margin: 18px 20px 24px;
}

.metatable { font-size: 11.5px; border-collapse: collapse; }
.metatable td { padding: 3px 4px 3px 2px; vertical-align: top; }
.metatable td.label { padding-right: 8px; white-space: nowrap; }

.submission-history { font-size: 13px; line-height: 1.5; margin-bottom: 30px; }
.submission-history h2 { font-size: 15px; margin: 22px 0 6px; }

.abs-sidebar {
  width: 259px;
  flex-shrink: 0;
  border-left: 4px solid var(--sidebar-rule);
  font-size: 13px;
}
.abs-sidebar section { border-bottom: 3px solid var(--sidebar-rule); padding: 6px 12px 8px 13px; }
.abs-sidebar h2 { font-size: 16px; font-weight: 400; margin: 2px 0 4px; }
.abs-sidebar h2.big { font-size: 22px; font-weight: 700; margin: 8px 0 4px 4px; }
.abs-sidebar ul { list-style: none; margin: 0; padding: 0 0 0 20px; }
.abs-sidebar .full-text li { font-size: 16px; }
.abs-sidebar .small { font-size: 9px; }
.abs-sidebar .nav-row { padding-left: 8px; }

.tabs { margin: 0 20px 22px; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 3px; padding-left: 2px; }
.tab-bar button {
  font: 700 12.5px helvetica, arial, sans-serif;
  color: #444;
  background: #eee;
  border: 1px solid #eee;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 9px 18px;
  cursor: pointer;
}
.tab-bar button[aria-selected="true"] { background: #fff; color: #000; border-color: #999; position: relative; top: 1px; }
.tab-panel { border: 1px solid #999; padding: 12px 16px 50px; font-size: 13px; }
.tab-panel h3 { font-size: 18px; font-weight: 400; margin: 16px 0 14px; }
.tool-box { background: #eef5f8; border: 1px solid #d8e6ec; padding: 10px 12px; }
.tool-box p { margin: 12px 0; }

.abs-foot { font-size: 13px; font-style: italic; margin: 0 20px 16px; }

.abs-license { font-size: 11px; padding: 4px 0 2px 20px; }
.withdrawn-notice {
  font-size: 13px;
  background: #fff4e5;
  border-left: 4px solid #b26a00;
  padding: 7px 10px;
  margin: 8px 0 4px;
}

/* ---------- Help pages ---------- */

.help-crumbs { font-size: 12.96px; margin-top: 14px; }
.help h1 { margin-top: 10px; }
.help ul, .help ol { font-size: 14.4px; line-height: 1.5; max-width: 46em; padding-left: 28px; }
.help li { margin-bottom: 5px; }
.help-toc { line-height: 1.8 !important; }
.help-note { background: #eef5f8; border: 1px solid #d8e6ec; padding: 9px 12px; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.help-table { border-collapse: collapse; font-size: 13.5px; margin: 8px 0 16px; }
.help-table th, .help-table td { text-align: left; vertical-align: top; padding: 6px 16px 6px 0; border-bottom: 1px solid #eee; }
.help-table td:first-child { white-space: nowrap; font-weight: 600; }
.fs-rss { font-size: 12.96px; }
.compare-table { max-width: 60em; }
.compare-table td:first-child { white-space: normal; font-weight: normal; }
.compare-table th[scope="row"] { white-space: nowrap; padding-right: 20px; }
.compare-table thead th { font-size: 14.4px; border-bottom: 2px solid #ccc; }
.compare-table thead th:last-child { color: var(--accent); }
.preprint-note {
  font-size: 13px;
  background: #f3f3f1;
  border-left: 4px solid #9a958f;
  padding: 7px 10px;
  margin: 8px 0 4px;
}

/* ---------- Flagship journal ---------- */

.home-flagship {
  max-width: 630px;
  margin: 0 12px 26px;
  border-left: 4px solid var(--accent);
  padding: 2px 0 2px 14px;
  font-size: 14.4px;
}
.home-flagship h2 { margin: 6px 0 4px; }
.home-flagship p { margin: 0 0 6px; }
.home-flagship ul { padding-left: 20px; margin: 6px 0; }
.home-flagship li { line-height: 1.4; margin-bottom: 4px; }
.home-flagship li span { color: #555; font-size: 12.96px; margin-left: 4px; }

.fs-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 8px 20px;
  background: #f6f4f2;
  border-bottom: 3px solid var(--accent);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.fs-title { display: inline-flex; align-items: center; gap: 9px; color: var(--header-bg); font-size: 20px; letter-spacing: 0.02em; }
.fs-title:hover { text-decoration: none; }
.fs-title b { font-weight: 600; color: var(--accent); }
.fs-band nav { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; font-weight: 500; }
.fs-band nav a { color: var(--header-bg); }
.fs-band nav a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px var(--accent); }
.fs-band nav a { padding: 2px 0; }

.fs-lede { font-size: 14.4px !important; line-height: 1.5; max-width: 46em; }
.fs-facts { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; font-size: 12.96px; color: #444; }
.fs-facts li:not(:last-child)::after { content: "·"; color: #888; margin: 0 10px; }
.fs-volumes { font-size: 14.4px; line-height: 1.6; padding-left: 40px; }
.fs-steps { font-size: 14.4px; line-height: 1.5; max-width: 46em; padding-left: 24px; }
.fs-steps li { margin-bottom: 6px; }
.fs-table { border-collapse: collapse; font-size: 14.4px; }
.fs-table th, .fs-table td { text-align: left; padding: 6px 18px 6px 0; border-bottom: 1px solid #eee; }

.journal-banner {
  font-size: 13px;
  background: #fbf3f3;
  border-left: 4px solid var(--accent);
  padding: 7px 10px;
  margin: 8px 0 4px;
}

.open-review { margin: 24px 0 30px; max-width: 52em; }
.open-review h2 { font-size: 15px; margin: 0 0 6px; }
.review-note { font-size: 12.5px; color: #555; margin: 0 0 12px; }
.review { border: 1px solid #ddd; border-left-width: 4px; padding: 8px 14px; margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.review-report { border-left-color: #8a8580; }
.review-response { border-left-color: var(--link); }
.review-decision { border-left-color: var(--accent); }
.review h3 { font-size: 14.4px; margin: 2px 0 4px; }
.review h3 span { font-weight: 400; color: #555; font-size: 12.5px; }
.review p { margin: 4px 0; }
.review-rec { font-size: 13px; }

.policy-list { font-size: 14.4px; line-height: 1.5; max-width: 46em; margin: 8px 0 20px; }
.policy-list dt { font-weight: 700; margin-top: 10px; }
.policy-list dd { margin: 2px 0 0; }

/* ---------- Artifact types ---------- */

.artifact-tag {
  display: inline-block; vertical-align: 2px; margin-right: 4px; padding: 1px 6px;
  border: 1px solid #c9c4bf; border-radius: 3px; background: #f6f4f2; color: #3b3834;
  font: 600 10.5px/1.5 "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
}
a.artifact-tag:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.artifact-table td:first-child { white-space: nowrap; }

/* ---------- Buttons and forms (account pages) ---------- */

.button, .acct button, .acct .button {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--header-bg); border-radius: 3px;
  background: var(--header-bg); color: #fff; font: 500 14px "IBM Plex Sans", -apple-system, sans-serif;
  cursor: pointer; text-decoration: none;
}
.button:hover, .acct button:hover { background: #000; color: #fff; text-decoration: none; }
.acct button.secondary, .acct .button.secondary { background: #fff; color: var(--header-bg); }
.acct button.danger { background: var(--accent); border-color: var(--accent); }
.acct { max-width: 54em; padding-bottom: 30px; }
.acct [hidden] { display: none !important; }
.acct .inline-form { display: inline; }
.acct button.link-button { background: none; border: 0; padding: 0; color: var(--link); font: inherit;
  text-decoration: underline; cursor: pointer; }
.verify-banner { border-left: 4px solid #b26a00; background: #fff4e5; }
.period-tabs { font-size: 14.4px; display: flex; flex-wrap: wrap; gap: 6px; }
.period-tabs button { font: inherit; font-size: 13.5px; padding: 5px 12px; border: 1px solid #ccc; border-radius: 3px;
  background: #fff; color: var(--header-bg); cursor: pointer; }
.period-tabs button[aria-pressed="true"] { background: var(--header-bg); border-color: var(--header-bg); color: #fff; }
.lb-role { font-size: 12px; color: #666; }
.lb-total { font-weight: 600; }
.roles-table { max-width: 64em; }
.roles-table thead th:last-child { color: inherit; }
.roles-table td { min-width: 11em; }
.roles-table .button { white-space: nowrap; }
.role-status { padding-left: 18px; margin: 6px 0; }
.faculty-note { max-width: 46em; margin-top: 18px; }
.faculty-note h2 { margin-top: 4px; }
.board { margin-bottom: 26px; }
.board-table td:first-child { width: 2.5em; color: #555; }
.board-table tr.me td { background: #fbf3f3; }
.report-link { font-size: 12.5px; color: #555; margin-top: 18px; }
.acct p, .acct li { font-size: 14.4px; line-height: 1.5; }
.acct form.stack { display: grid; gap: 14px; margin: 16px 0 24px; max-width: 42em; }
.acct .field { display: grid; gap: 4px; }
.acct label { font-weight: 600; font-size: 14px; }
.acct .hint { font-weight: 400; font-size: 12.5px; color: #555; }
.acct input[type=text], .acct input[type=email], .acct input[type=password], .acct input[type=url],
.acct input[type=number], .acct select, .acct textarea {
  width: 100%; font: 14.4px/1.4 "Lucida Grande", helvetica, arial, sans-serif; padding: 6px 8px;
  border: 1px solid #aaa; border-radius: 3px; background: #fff;
}
.acct textarea { min-height: 7em; resize: vertical; }
.acct select[multiple] { min-height: 10em; }
.acct fieldset { border: 1px solid #ddd; padding: 10px 14px 14px; margin: 0; display: grid; gap: 12px; }
.acct legend { font-weight: 700; font-size: 14.4px; padding: 0 4px; }
.acct .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.acct .check input { margin-top: 3px; flex: none; }
.acct .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flash { padding: 9px 12px; border: 1px solid #d8e6ec; background: #eef5f8; font-size: 14.4px; margin: 12px 0; }
.flash.error { border-color: #e6c3c3; background: #fbeeee; }
.acct-table { border-collapse: collapse; font-size: 13.5px; width: 100%; margin: 8px 0 18px; }
.acct-table th, .acct-table td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; border-bottom: 1px solid #eee; }
.acct-table th { font-size: 12.5px; color: #555; font-weight: 600; }
.status { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11.5px; font-weight: 600;
  background: #eee; color: #333; white-space: nowrap; }
.status.ok { background: #e3f1e3; color: #1d5b1d; }
.status.wait { background: #fff4d6; color: #6b4b00; }
.status.bad { background: #fbe3e3; color: #8a1616; }
.acct .panel { border: 1px solid #ddd; padding: 10px 14px; margin: 12px 0; }
.acct .panel h3 { margin-top: 4px; font-size: 15px; }
.acct dl.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 13.5px; }
.acct dl.meta dt { font-weight: 600; }
.acct dl.meta dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.acct-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 13.5px;
  margin: 0 -19px; padding: 9px 19px; border-bottom: 1px solid #e4e1de; background: #faf9f8; }
.acct-nav a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.acct-nav .nav-logout { margin-left: auto; }
.acct .acct-nav .nav-logout button { background: none; border: none; color: #555; padding: 0; font: inherit; cursor: pointer; }
.acct .acct-nav .nav-logout button:hover { color: var(--ink); text-decoration: underline; background: none; }
.acct section.block { margin: 22px 0; }
.acct .empty-state { color: #555; }
@media (max-width: 760px) { .acct-nav { margin: 0 -16px; padding: 9px 16px; } }
.counter { font-size: 12px; color: #555; }

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

.site-footer {
  background: var(--footer-bg);
  padding: 24px 10px 28px;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.4px;
}
.site-footer p { margin: 10px 0 14px; }
.site-footer .footer-credit { font-size: 12.5px; color: #555; margin-top: -6px; }
.site-footer .footer-credit a { color: var(--header-bg); text-decoration: underline; }
.references { font-size: 13px; line-height: 1.5; max-width: 52em; padding-left: 24px; color: #333; }
.references li { margin-bottom: 6px; }
.about ul { font-size: 14.4px; line-height: 1.5; max-width: 46em; }
.site-footer nav { font-size: 13px; line-height: 2.4; display: flex; flex-wrap: wrap; }
.site-footer nav a { color: var(--header-bg); }
.site-footer nav a:not(:last-child)::after { content: "·"; color: #888; margin: 0 10px; display: inline-block; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .site-header { padding: 0 12px; }
  .site-nav a { padding: 6px 6px; }
  .site-nav .label-optional { display: none; }
  .home, .listing { padding: 0 16px; }
  .listing dd { margin-left: 16px; }
  .tax-row { grid-template-columns: minmax(0, 1fr); }
  .archive ul { padding-left: 22px; }
  .abs-layout { flex-direction: column; }
  .abs-sidebar { width: 100%; border-left: none; border-top: 4px solid var(--sidebar-rule); }
  .abs-body, .breadcrumbs { padding-left: 16px; padding-right: 16px; }
  .abstract { margin: 18px 0 24px; }
  .tabs, .abs-foot { margin-left: 16px; margin-right: 16px; }
  .tab-bar button { padding: 8px 10px; }
  .site-footer { padding-left: 16px; padding-right: 16px; }
  .home-flagship { margin-left: 0; margin-right: 0; }
  .fs-band { padding: 8px 16px; }
  .fs-volumes { padding-left: 22px; }
  .acct dl.meta { grid-template-columns: minmax(0, 1fr); }
  .acct-table { font-size: 12.5px; }
}
.mail-preview { width: 100%; max-width: 640px; height: 560px; border: 1px solid #ddd; background: #f6f4f2; }
.mail-text { white-space: pre-wrap; font-size: 14.4px; line-height: 1.5; overflow-wrap: anywhere; }
.inbox-table tr.unread td { font-weight: 600; }
.review.current { box-shadow: 0 0 0 2px #e6e2de; }

/* Phones: let the header wrap instead of overflowing (Google's mobile-friendly check flags sideways scrolling). */
@media (max-width: 520px) {
  .site-header { height: auto; min-height: 52px; flex-wrap: wrap; padding: 6px 12px; row-gap: 2px; }
  .wordmark { font-size: 24px; }
  .wordmark .logo { width: 24px; height: 24px; }
  .site-nav { flex-wrap: wrap; gap: 0; margin-left: -5px; }
  .site-nav a { padding: 6px 5px; font-size: 12.5px; }
  .site-nav .divider { display: none; }
}

/* Links inside running text are underlined, so they do not rely on color alone (WCAG 1.4.1). */
main p a:not(.button), main li a:not(.button), main dd a:not(.button), main td a:not(.button),
.help-crumbs a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
main p a:not(.button):hover, main li a:not(.button):hover { text-decoration-thickness: 2px; }
/* Comfortable touch targets (at least 24px) on the home page controls and lists. */

/* ---------- Home (2026-10 redesign: one clear path in, less clutter) ---------- */
.home { max-width: 62em; padding: 0 20px 20px; }
.home-hero { padding: 34px 0 10px; }
.home-hero h1 { font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif; font-weight: 600; font-size: 34px;
  line-height: 1.15; margin: 0 0 12px; color: var(--header-bg); }
.home-lede { font-size: 17px; line-height: 1.5; max-width: 38em; margin: 0 0 18px; color: #333; }
.home .button.secondary { background: #fff; color: var(--header-bg); }
.home h2 { font-size: 20px; margin: 30px 0 10px; font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif; font-weight: 600; }
.home ul.home-recent { list-style: none; padding: 0; margin: 0; }
.home-recent li { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 15px; line-height: 1.4; }
.home-recent li span { display: block; color: #555; font-size: 13px; }
.home-more { font-size: 14px; margin: 8px 0 0; }
.home ul.home-paths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-paths a { display: block; height: 100%; padding: 12px 14px; border: 1px solid #d6d2ce; border-radius: 3px;
  text-decoration: none !important; color: var(--header-bg); font-size: 15px; }
.home-paths a:hover { border-color: var(--accent); }
.home-paths span { display: block; color: #555; font-size: 13px; margin-top: 2px; }
@media (max-width: 760px) {
  .home-hero h1 { font-size: 27px; }
  .home ul.home-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-recent a { text-decoration: none !important; font-weight: 500; }
.home-recent a:hover { text-decoration: underline !important; }

/* Dashboard onboarding checklist */
.onboarding h2 { margin-top: 6px; }
.checklist { list-style: none; padding: 0; margin: 10px 0 12px; counter-reset: ck; max-width: 44em; }
.checklist li { counter-increment: ck; position: relative; padding: 9px 0 9px 38px; border-bottom: 1px solid #eee; }
.checklist li::before { content: counter(ck); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #c9c4bf; text-align: center; font: 600 13px/20px "IBM Plex Sans", sans-serif; color: #77716b; }
.checklist li.done::before { content: "\2713"; border-color: #2e7d32; background: #2e7d32; color: #fff; }
.checklist li.done b { color: #555; font-weight: 500; }
.checklist li span { display: block; font-size: 13.5px; color: #555; margin-top: 2px; }
.checklist li span .button { margin-top: 6px; }

/* Home: Flagship and preprints side by side */
.home-hero { padding: 30px 0 4px; }
.home-cards { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin: 20px 0 8px; }
.home-card { border: 1px solid #d6d2ce; border-radius: 4px; padding: 16px 20px 18px; display: flex; flex-direction: column; }
.home-card.flagship-card { border: 2px solid var(--accent); background: #fdf8f8; }
.home .home-card h2 { margin: 2px 0 8px; font-size: 22px; }
.home-card h2 a { color: var(--header-bg); text-decoration: none !important; }
.flagship-card h2 a { color: var(--accent); }
.card-kicker { margin: 0; font: 600 12px "IBM Plex Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #77716b; }
.flagship-card .card-kicker { color: var(--accent); }
.home-card ul { margin: 0 0 10px; padding-left: 18px; font-size: 14.4px; line-height: 1.5; }
.home-card li { margin-bottom: 3px; }
.card-latest { font-size: 13.5px; color: #555; margin: 0 0 12px; }
.card-latest span { display: block; font-size: 12.5px; }
.card-actions { margin: auto 0 0; }
@media (max-width: 760px) { .home-cards { grid-template-columns: minmax(0, 1fr); } }

/* Flagship home in the landing-page style */
.card-kicker.accent { color: var(--accent); }
.flagship-home .home-hero h1 { color: var(--accent); }
.fact-chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.fact-chips li { font-size: 13px; padding: 4px 10px; border: 1px solid #e3c9c9; border-radius: 999px; background: #fdf8f8; color: #444; }
.fact-chips a { color: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hero-actions .button { font-size: 15px; padding: 10px 18px; }
.home ol.steps-cards { list-style: none; padding: 0; }
.home-recent li > span + span { margin-top: 1px; }
.home ol.steps-cards { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .home ol.steps-cards { grid-template-columns: minmax(0, 1fr); } }
.rating-box { margin: 6px 0 2px; }
.rating-box input[type=text] { min-width: 18em; }
.checklist-box { border: 1px solid #d6d2ce; padding: 10px 14px; border-radius: 3px; }
.checklist-box legend { font-weight: 600; padding: 0 4px; }
.checklist-box .check { margin: 4px 0; }
.notice { font-size: 13.5px; padding: 8px 12px; margin: 8px 0 4px; border-left: 4px solid #b26a00; background: #fff4e5; }
.notice-retraction { border-left-color: var(--accent); background: #fbecec; }
.notice-retraction b { color: var(--accent); }
.letter-picker { font-weight: 400; font-size: 12.5px; margin-left: 8px; color: #555; }
.totp-key { font-size: 15px; letter-spacing: .04em; background: #f3f3f1; padding: 2px 6px; }
.recovery { font-size: 15px; background: #fff; padding: 8px 12px; border: 1px solid #ddd; columns: 2; }
.setup-steps li { margin-bottom: 10px; }
.upload-guide { border: 1px solid #d6d2ce; border-radius: 4px; padding: 10px 16px; background: #fbfaf9; margin-bottom: 6px; }
.upload-guide p { margin: 6px 0; } .upload-guide ol { margin: 4px 0 6px; padding-left: 20px; } .upload-guide li { margin-bottom: 6px; }
.upload-guide pre, pre.folder { font-size: 13px; line-height: 1.35; background: #fff; border: 1px solid #e6e2de; padding: 8px 12px; margin: 6px 0; overflow-x: auto; }
.source-files { margin-top: 6px; font-size: 13.5px; } .source-files p { margin: 3px 0; } .src-file { white-space: nowrap; }

/* Home: work that is not a paper */
.home-beyond { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 24px; align-items: center;
  margin: 24px 0 0; padding: 18px 20px; border: 1px solid #e3c9c9; border-radius: 4px; background: #fdf8f8; }
.home .home-beyond h2 { margin: 2px 0 8px; font-size: 20px; }
.beyond-text p { font-size: 14.4px; line-height: 1.5; margin: 0 0 12px; }
.beyond-text .card-actions { margin: 0; }
.home ul.beyond-types { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.beyond-types a { display: block; height: 100%; padding: 10px 12px; border: 1px solid #d6d2ce; border-radius: 3px; background: #fff;
  text-decoration: none !important; color: var(--header-bg); font-size: 14.5px; }
.beyond-types a:hover { border-color: var(--accent); }
.beyond-types span { display: block; color: #555; font-size: 12.5px; margin-top: 2px; }
@media (max-width: 760px) { .home-beyond { grid-template-columns: minmax(0, 1fr); } }
.outline-table td:not(:first-child) { min-width: 12em; }
