/* SCIK author pages */
:root { --navy: #7a0d13; --navy-2: #560a0e; --ink: #1b1a19; --muted: #7b7570; --line: #e5e0d9; --soft: #faf8f5;
  --ok: #1d6b45; --warn: #9a5b00; --bad: #a3141c; --link: #7a0d13;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--soft); }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: .3rem 0 .8rem; color: var(--navy); line-height: 1.3; }
h2 { font-size: 1.05rem; margin: 0 0 .7rem; color: var(--navy); }
h3 { font-size: .95rem; margin: .4rem 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.topbar { background: var(--navy); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; }
.logo { color: #fff; font-weight: 600; font-size: 1.05rem; }
.topbar nav { display: flex; gap: 18px; align-items: center; }
.topbar nav a, .linklike { color: #dfe7f3; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.muted-light { color: #c9d4e6; font-size: .88rem; }
main { padding: 20px 20px 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; }
.narrow { max-width: 420px; margin: 40px auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 6px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--muted); margin: 0; font-size: .9rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; }
.error { color: var(--bad); }
label { display: block; margin: 0 0 12px; font-weight: 500; font-size: .92rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #c8cfda; border-radius: 6px; font: inherit; font-weight: 400; background: #fff; }
textarea { resize: vertical; }
input[type=file] { padding: 6px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 4px; }
fieldset.author { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; padding: 10px 14px 2px; }
legend { font-weight: 600; color: var(--navy); padding: 0 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.span2 { grid-column: span 2; }
.hp { position: absolute; left: -9999px; }
.form h2 { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.form h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.btn { display: inline-block; padding: 8px 16px; border-radius: 6px; border: 1px solid #b9c2d0; background: #fff; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.btn:hover { text-decoration: none; background: var(--soft); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; } .btn-primary:hover { background: var(--navy-2); }
.btn-danger { color: var(--bad); border-color: #e5b4ae; } .btn-danger:hover { background: #fdf1ef; }
.btn-quiet { border-color: transparent; color: var(--muted); }
.btn-small { padding: 4px 10px; font-size: .85rem; }
.btn-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.inline { display: inline; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; border: 1px solid; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-success { background: #ecf7f0; border-color: #b5dfc4; }
.flash-error { background: #fdf1ef; border-color: #f0c2bb; }
.flash-warning { background: #fff7e6; border-color: #f1d49a; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 8px 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--navy); border-color: var(--navy); font-weight: 600; }
.count { background: var(--line); border-radius: 10px; padding: 0 7px; font-size: .78rem; margin-left: 2px; }
.filters select { width: auto; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.list th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--soft); padding: 9px 12px; border-bottom: 1px solid var(--line); }
.list td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list .title { font-weight: 500; color: var(--ink); }
.list.compact td { padding: 7px 10px; font-size: .9rem; }
.badge { display: inline-block; font-size: .76rem; padding: 2px 8px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.badge.big { font-size: .9rem; padding: 4px 12px; }
.badge-ok { color: var(--ok); border-color: #b5dfc4; background: #ecf7f0; }
.badge-warn { color: var(--warn); border-color: #f1d49a; background: #fff7e6; }
.status-submitted { background: #eef3fb; color: #1f4f99; border-color: #c7d6ef; }
.status-under_review, .status-revision_requested { background: #fff7e6; color: var(--warn); border-color: #f1d49a; }
.status-provisional, .status-accepted { background: #eef7ff; color: #0b5c8f; border-color: #b9dcf3; }
.status-paid { background: #ecf7f0; color: var(--ok); border-color: #b5dfc4; }
.status-declined, .status-withdrawn { background: #f4f4f5; color: #6b6b72; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.actions { border-left: 4px solid var(--navy); }
.stage { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .92rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.files { list-style: none; padding: 0; margin: 0; } .files li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mail { border-bottom: 1px solid var(--line); padding: 6px 0; } .mail summary { cursor: pointer; }
pre { white-space: pre-wrap; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: .85rem; }
.foot { padding: 0 20px 30px; }
@media (max-width: 860px) { .cols, .grid2, .grid3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .list th:nth-child(4), .list td:nth-child(4), .list th:nth-child(5), .list td:nth-child(5) { display: none; } }
.hunk { padding: 10px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.hunk .ctx { color: var(--muted); }
.hunk .del { background: #fdecea; color: #8a1c13; text-decoration: line-through; padding: 2px 4px; border-radius: 3px; margin: 2px 0; }
.hunk .ins { background: #e8f6ee; color: #135c33; padding: 2px 4px; border-radius: 3px; margin: 2px 0; }
.upload { border: 1px dashed #c8cfda; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }

.pay { border-left: 4px solid var(--navy); }
.btn-pay { font-size: 1.05rem; padding: 10px 22px; }

/* ---- SCIK brand: maroon/cream identity shared with the scik.org journal sites ---- */
body.b-scik { background: #efece7; color: #1b1a19; font-size: 16px; line-height: 1.6; }
.b-scik h1, .b-scik h2 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; color: #560a0e; }
.b-scik h1 { font-size: 1.7rem; }
.b-wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.b-top { background: #fff; border-bottom: 3px solid #7a0d13; }
.b-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; flex-wrap: wrap; }
.b-mark { display: flex; align-items: center; gap: 12px; color: #1b1a19; }
.b-mark:hover { text-decoration: none; }
.b-seal { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: #7a0d13; color: #f2e9d8; font: 600 12px/1 Georgia, serif; letter-spacing: .04em; box-shadow: inset 0 0 0 3px #7a0d13, inset 0 0 0 4.5px rgba(242,233,216,.5); }
.b-name { font: 600 1.12rem/1.2 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.b-nav { display: flex; gap: 20px; align-items: center; font-size: .95rem; }
.b-nav a, .b-link { color: #4a4644; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.b-nav a:hover, .b-link:hover { color: #7a0d13; text-decoration: none; }
.b-inline { display: inline; margin: 0; }
.b-journal { padding: 8px 22px 10px; border-top: 1px solid #f0ece6; font-size: .95rem; color: #4a4644; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.b-journal strong { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; color: #1b1a19; font-size: 1.05rem; }
.b-main { padding-top: 26px; padding-bottom: 56px; }
.b-scik .card { border-radius: 10px; border-color: #e5e0d9; box-shadow: 0 1px 2px rgba(27,26,25,.04), 0 4px 14px rgba(27,26,25,.05); padding: 22px 26px; }
.b-scik .card.flush { padding: 0; overflow: hidden; }
.b-scik .card.flush table.list { border: 0; border-radius: 0; }
.b-scik .narrow { max-width: 440px; }
.b-scik .narrow.wide { max-width: 640px; }
.b-scik .btn { border-radius: 999px; padding: 9px 20px; }
.b-scik .btn-primary { background: #7a0d13; border-color: #7a0d13; color: #fff; }
.b-scik .btn-primary:hover { background: #560a0e; }
.b-scik input:not([type=checkbox]):not([type=radio]), .b-scik select, .b-scik textarea { border-color: #d9d2c8; border-radius: 8px; }
.b-scik input:focus, .b-scik select:focus, .b-scik textarea:focus { outline: 2px solid #7a0d13; outline-offset: 1px; }
.b-scik .list th { background: #faf8f5; color: #7b7570; }
.b-scik .pay, .b-scik .actions { border-left-color: #7a0d13; }
.b-submit { display: flex; gap: 10px; align-items: center; }
.b-submit select { width: auto; margin: 0; }
.b-foot { border-top: 1px solid #e5e0d9; background: #faf8f5; color: #7b7570; font-size: .88rem; padding: 18px 0 26px; }

.b-amount { font: 600 2rem/1.2 Georgia, serif; color: #7a0d13; margin: 0 0 10px; }
.b-jseal { width: 44px; height: 44px; display: block; }
