@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');
/* Mathyze (PAJM) author pages: PAJM navy and gold */
:root { --navy: #123a63; --navy-2: #0d2b4a; --ink: #0b1b30; --muted: #5f7183; --line: #dde5ed; --soft: #f4f7fa;
  --ok: #1d6b45; --warn: #9a5b00; --bad: #a3141c; --link: #123a63;
  --sans: "Lato", "PT 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: #edf1f6; }
.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: #edf1f6; border-color: #f0c2bb; }
.flash-warning { background: #fbf5ea; border-color: #e6cfa6; }
.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: #e6cfa6; background: #fbf5ea; }
.status-submitted { background: #eef3fb; color: #1f4f99; border-color: #c7d6ef; }
.status-under_review, .status-revision_requested { background: #fbf5ea; color: var(--warn); border-color: #e6cfa6; }
.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: #0b1b30; 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: #0d2b4a; }
.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 #123a63; }
.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: #0b1b30; }
.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: #123a63; color: #f2e9d8; font: 600 12px/1 Georgia, serif; letter-spacing: .04em; box-shadow: inset 0 0 0 3px #123a63, 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: #123a63; 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: #0b1b30; font-size: 1.05rem; }
.b-main { padding-top: 26px; padding-bottom: 56px; }
.b-scik .card { border-radius: 10px; border-color: #dde5ed; 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: #123a63; border-color: #123a63; color: #fff; }
.b-scik .btn-primary:hover { background: #0d2b4a; }
.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 #123a63; outline-offset: 1px; }
.b-scik .list th { background: #f4f7fa; color: #5f7183; }
.b-scik .pay, .b-scik .actions { border-left-color: #123a63; }
.b-submit { display: flex; gap: 10px; align-items: center; }
.b-submit select { width: auto; margin: 0; }
.b-foot { border-top: 1px solid #dde5ed; background: #f4f7fa; color: #5f7183; font-size: .88rem; padding: 18px 0 26px; }

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

.btn-primary, button.btn-primary, .btn.btn-primary { background: #c08a3e; border-color: #c08a3e; color: #fff; }
.btn-primary:hover, button.btn-primary:hover { background: #a2712c; border-color: #a2712c; }

/* ===== Mathyze (PAJM) author pages (shell/mathyze.html): navy band, gold actions, serif headings ===== */
body.m-body{background:#f4f7fa;font-family:"Lato","PT Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;color:#22303f}
.m-body h1,.m-body h2,.m-body h3{font-family:"Source Serif 4","PT Serif",Georgia,serif;color:#0b1b30}
.m-body h1{font-size:1.9rem;border-bottom:3px solid #c08a3e;display:inline-block;padding-bottom:4px;margin-bottom:18px}
.m-wrap{max-width:1060px;margin:0 auto;padding:0 28px}
.m-band{background:linear-gradient(180deg,#0d2b4a,#123a63);color:#fff}
.m-top{display:flex;justify-content:space-between;align-items:center;min-height:36px;font-size:.8rem;border-bottom:1px solid rgba(255,255,255,.12)}
.m-pub{color:#c3d3e2;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.m-pub:hover{color:#fff;text-decoration:none}
.m-top-links{display:flex;align-items:center;gap:18px}.m-top-links a,.m-linkbtn{color:#dbe6f1}.m-top-links a:hover{color:#fff}
.m-inline{display:inline;margin:0}.m-linkbtn{background:none;border:0;padding:0;font:inherit;cursor:pointer}.m-linkbtn:hover{color:#fff;text-decoration:underline}
.m-mast{display:flex;align-items:center;gap:20px;padding-top:22px;padding-bottom:24px}
.m-thumb img{width:54px;height:auto;display:block;border-radius:3px;border:2px solid rgba(255,255,255,.85);box-shadow:0 6px 16px -8px rgba(0,0,0,.6)}
.m-id{flex:1;min-width:0}
.m-name{display:block;font:700 1.65rem/1.2 "Source Serif 4","PT Serif",Georgia,serif;color:#fff}.m-name:hover{color:#fff;text-decoration:none}
.m-sub{display:block;color:#c3d3e2;font-size:.85rem;margin-top:4px;letter-spacing:.03em}
.m-cta{background:#c08a3e;color:#fff;font-weight:700;padding:11px 20px;border-radius:6px;white-space:nowrap}.m-cta:hover{background:#a2712c;color:#fff;text-decoration:none}
.m-main{padding-top:34px;padding-bottom:60px}
.m-body .card{background:#fff;border:1px solid #dde5ed;border-left:5px solid #123a63;border-radius:8px;box-shadow:0 1px 2px rgba(11,27,48,.05),0 8px 24px -12px rgba(11,27,48,.18)}
.m-body .btn{border-radius:6px;font-weight:700}
.m-body .btn-primary,.m-body button.btn-primary{background:#c08a3e;border-color:#c08a3e;color:#fff}
.m-body .btn-primary:hover{background:#a2712c;border-color:#a2712c}
.m-body input,.m-body select,.m-body textarea{border-radius:6px;border-color:#c3d3e2;background:#fbfdff}
.m-body input:focus,.m-body select:focus,.m-body textarea:focus{outline:2px solid #e6cfa6;border-color:#c08a3e}
.m-foot{background:#0b1b30;color:#aebdcc;font-size:.85rem}.m-foot a{color:#dbe6f1}
.m-foot-in{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:20px;padding-bottom:24px}
@media(max-width:640px){.m-mast{flex-wrap:wrap}.m-cta{order:3}}
