/* Tracking result page (track-result.html) */
.tr-switch { background: #fff8e6; border-bottom: 1px solid #f0dca6; font-size: 14px; }
.tr-switch .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
.tr-switch span { color: #7a5a12; margin-right: 6px; }
.tr-switch button { font: 600 13.5px var(--sans); padding: 6px 12px; border: 1px solid #e5cf93; background: #fff; border-radius: 4px; color: #6b4e0e; cursor: pointer; }
.tr-switch button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tr-state[hidden] { display: none; }

.tr-sum { position: relative; }
.tr-id span { display: block; font-size: 13px; color: var(--mu); }
.tr-id b { font: 600 18px var(--sans); color: var(--navy); letter-spacing: .02em; }
.tr-pill { position: absolute; top: 0; right: 0; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 20px; }
.tr-pill.blue { background: #e3edf8; color: #1c4f86; }
.tr-pill.amber { background: #fdf0d5; color: #8a5a00; }
.tr-pill.green { background: #e6edf5; color: #17304a; }
.tr-pill.red { background: #f8e4e1; color: #8e2f22; }
.tr-sum h2 { font: 600 23px/1.3 var(--serif) !important; margin: 12px 0 4px !important; }
.tr-au { font-size: 15.5px; color: var(--body); margin: 0 0 14px !important; text-align: left !important; }
.tr-meta { display: flex; flex-wrap: wrap; gap: 6px 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.tr-meta div { padding: 0 20px; border-left: 1px solid var(--rule); }
.tr-meta div:first-child { padding-left: 0; border-left: 0; }
.tr-meta dt { font-size: 12.5px; color: var(--mu); }
.tr-meta dd { font-size: 15px; font-weight: 600; color: var(--ink); }

.tr-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); counter-reset: s; position: relative; }
.tr-steps li { text-align: center; position: relative; }
.tr-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #d6dee7; z-index: 0; }
.tr-steps li:first-child::before { display: none; }
.tr-steps li.done::before, .tr-steps li.now::before, .tr-steps li.stop::before { background: var(--navy); }
.tr-steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 2px solid #c9d2dc; font-style: normal; font: 600 13px var(--sans); color: var(--mu); }
.tr-steps i .ic { width: 16px; height: 16px; }
.tr-steps li.done i { background: var(--navy); border-color: var(--navy); color: #fff; }
.tr-steps li.now i { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 4px #e3eaf2; }
.tr-steps li.stop i { background: #8e2f22; border-color: #8e2f22; color: #fff; }
.tr-steps b { display: block; font-size: 13px; font-weight: 600; color: var(--mu); }
.tr-steps li.done b, .tr-steps li.now b { color: var(--ink); }
.tr-steps li.stop b { color: #8e2f22; }

.kickline { font-size: 13.5px; font-weight: 600; color: var(--navy-md); margin-bottom: 4px; }
.tr-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 18px; }
.tr-reviews div { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; background: var(--tint); }
.tr-reviews span { display: block; font-size: 13.5px; color: var(--mu); }
.tr-reviews b { display: flex; align-items: center; gap: 6px; font-size: 16px; margin-top: 2px; }
.tr-reviews b .ic { width: 17px; height: 17px; }
.tr-reviews .ok { color: #17304a; }
.tr-reviews .wait { color: #8a5a00; }

.tr-gates { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 18px; }
.tr-gate { border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.tr-gate p { margin: 0 !important; font-size: 15px; }
.tr-gh { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.tr-gh .n { width: 30px; height: 30px; border-radius: 50%; background: #e3eaf2; color: var(--navy); display: grid; place-items: center; font: 600 13px var(--sans); }
.tr-gh b { font-size: 17px; color: var(--ink); }
.chip { margin-left: auto; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.chip.amber { background: #fdf0d5; color: #8a5a00; }
.tr-fee { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.tr-fee div { background: var(--tint); padding: 10px 12px; }
.tr-fee dt { font-size: 12.5px; color: var(--mu); }
.tr-fee dd { font: 600 18px var(--serif); color: var(--navy); }
.tr-gate .btn { width: 100%; }
.tr-or { display: flex; align-items: center; gap: 10px; color: var(--mu); font-size: 13.5px; }
.tr-or::before, .tr-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.tr-file { display: flex; align-items: center; gap: 8px; border: 1.5px dashed #b9c6d4; border-radius: 6px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; color: var(--navy); cursor: pointer; background: var(--tint); }
.tr-file input { display: none; }
.tr-file .ic { width: 17px; height: 17px; transform: rotate(180deg); }

.tr-pub div { padding: 12px 0; border-top: 1px solid var(--rule); }
.tr-pub div:first-child { border-top: 0; }
.tr-pub dt { font-size: 13px; color: var(--mu); }
.tr-pub dd { font-size: 15px; word-break: break-all; }
.tr-certs { display: grid; gap: 10px; margin-bottom: 12px; }
.tr-fb { border-left: 3px solid var(--navy); background: var(--tint); padding: 14px 16px; border-radius: 0 6px 6px 0; margin: 14px 0; }
.tr-fb p { margin: 6px 0 0 !important; font-size: 15px; }
.tr-err { display: flex; gap: 12px; align-items: flex-start; background: #f8e4e1; border-left: 3px solid #8e2f22; color: #5c1d14; padding: 14px 16px; border-radius: 0 6px 6px 0; margin-bottom: 18px; font-size: 15px; }
.tr-err .ic { color: #8e2f22; margin-top: 2px; }

.tr-hist { border-left: 2px solid #d6dee7; margin: 6px 0 0 6px; }
.tr-hist li { position: relative; padding: 0 0 16px 20px; }
.tr-hist li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.tr-hist time { display: block; font-size: 13px; color: var(--mu); }
.tr-hist b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.tr-hist span { display: block; font-size: 13.5px; color: var(--mu); }

@media (max-width: 860px) {
  .tr-switch .wrap { gap: 6px; }
  .tr-switch span { flex-basis: 100%; font-size: 13px; }
  .tr-pill { position: static; display: inline-block; margin-top: 10px; }
  .tr-sum h2 { font-size: 19px !important; }
  .tr-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; }
  .tr-meta div, .tr-meta div:first-child { padding: 0 10px 0 0; border: 0; }
  .tr-steps { grid-template-columns: 1fr; gap: 0; margin-left: 4px; }
  .tr-steps li { display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px 0; }
  .tr-steps li::before { left: 15px; top: -50%; width: 2px; height: 100%; }
  .tr-steps i { margin: 0; flex: none; width: 30px; height: 30px; }
  .tr-steps b { font-size: 14.5px; }
  .tr-gates, .tr-reviews { grid-template-columns: 1fr; }
  .tr-gate { padding: 16px; }
}

.tr-steps li { text-align: center !important; }
@media (max-width: 860px) { .tr-steps li { text-align: left !important; } }
.tr-hist li, .tr-gate p { text-align: left !important; }

/* Author Dashboard (Author Circle) */
.ad-hero { background: var(--navy) !important; border-color: var(--navy) !important; color: #dbe4ee; text-align: center; padding: 40px 32px 36px !important; }
.ad-k { font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: #b9c8d7; }
.ad-hero h2 { font: 600 32px/1.2 var(--serif) !important; color: #fff !important; margin: 8px 0 10px !important; }
.ad-hero p { font: 400 18px/1.55 var(--serif); color: #e4ebf2; max-width: 640px; margin: 0 auto 14px !important; text-align: center !important; }
.ad-since { display: inline-block; font-size: 13.5px; color: #dbe4ee; border: 1px solid rgba(255, 255, 255, .3); border-radius: 20px; padding: 5px 14px; }
.ad-paper { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.ad-paper:first-of-type { border-top: 0; padding-top: 4px; }
.ad-paper h3 { font: 600 18px/1.4 var(--serif) !important; margin: 0 0 6px !important; }
.ad-paper h3 a { color: var(--link); }
.ad-meta { font-size: 13.5px; color: var(--mu); margin-bottom: 8px; }
.ad-paper .more-link { font-size: 14.5px; }
.ad-figs { background: var(--tint); border: 1px solid var(--rule); border-radius: 8px; padding: 4px 14px; align-self: start; }
.ad-figs div { padding: 9px 0; border-top: 1px solid var(--rule); }
.ad-figs div:first-child { border-top: 0; }
.ad-figs dt { font-size: 12.5px; color: var(--mu); }
.ad-figs dd { font-size: 14px; color: var(--body); }
.ad-figs b { font: 600 17px var(--serif); color: var(--navy); }
.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ad-grid .full { grid-column: 1 / -1; }
.ad-sign { text-align: center; padding: 8px 0 4px; }
.ad-sign span { display: block; font: italic 400 16px var(--serif); color: var(--mu); }
.ad-sign b { display: block; font: 600 15px var(--sans); color: var(--ink); margin-top: 4px; }
.ad-hero, .ad-sign { text-align: center; }
@media (max-width: 860px) {
  .ad-hero { padding: 30px 18px 28px !important; }
  .ad-hero h2 { font-size: 25px !important; }
  .ad-hero p { font-size: 16px; }
  .ad-paper { grid-template-columns: 1fr; gap: 12px; }
  .ad-grid { grid-template-columns: 1fr; }
}

/* phones: compact progress card instead of the 7-row list */
.tr-mini { display: none; }
@media (max-width: 860px) {
  .tr-steps { display: none; }
  .tr-mini { display: block; background: var(--tint); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; }
  .tr-mh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
  .tr-mh span { font-size: 13px; color: var(--mu); }
  .tr-mh b { font: 600 17px var(--serif); color: var(--navy); }
  .tr-mh b.stop { color: #8e2f22; }
  .tr-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .tr-bar i { height: 6px; border-radius: 3px; background: #d6dee7; }
  .tr-bar i.done { background: var(--navy); }
  .tr-bar i.stop { background: #8e2f22; }
  .tr-next { display: block; margin-top: 9px; font-size: 13.5px; color: var(--body); }
  .tr-sum h2 { font-size: 19px !important; line-height: 1.35; }
  .tr-meta { margin-bottom: 16px; }
}

/* preview bar grouped by stage; inline status pills; state boxes; proof buttons */
.tr-switch .wrap { flex-direction: column; align-items: stretch; gap: 6px; }
.tr-switch .lead { font-weight: 600; }
.tr-switch .grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tr-switch em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #7a5a12; width: 86px; flex: none; }
.tr-pill.inl { position: static; display: inline-block; margin: 0 0 12px; }
.tr-st { border-radius: 6px; padding: 11px 13px; font-size: 14.5px; line-height: 1.5; text-align: left !important; }
.tr-st.red { background: #f8e4e1; color: #5c1d14; }
.tr-st.green { background: #e6edf5; color: #17304a; }
.chip.red { background: #f8e4e1; color: #8e2f22; }
.chip.green { background: #e6edf5; color: #17304a; }
.tr-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.s-a h3 { font: 600 18px var(--sans) !important; margin: 4px 0 6px !important; }
.s-a .form { margin-top: 14px; }
@media (max-width: 860px) {
  .tr-switch em { width: 100%; }
  .tr-proof { grid-template-columns: 1fr; }
}
.tr-fix[hidden] { display: none; }
.tr-hist li::before { top: 4px; }

/* ---- live tracking states (WordPress search-manuscript.php) ---- */
.tbpnells { display: none !important; }                 /* one stage panel at a time; the page script reveals the current one */
.tr-reviews .bad { color: #8e2f22; }
.tr-st.amber { background: #fdf0d5; color: #6b4a00; }
.chip.blue { background: #e3edf8; color: #1c4f86; }
.tr-gate form { display: grid; gap: 10px; margin: 0; }
.tr-gate .btn { width: 100%; justify-content: center; }
.tr-file { position: relative; flex-wrap: wrap; }
.tr-file input { display: block !important; position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; opacity: 0; }   /* focusable, so a required field can still be validated */
.tr-fname { flex-basis: 100%; font-weight: 400; font-size: 13.5px; color: var(--body); word-break: break-all; }
.tr-fname:empty { display: none; }
.tr-upmsg { display: none; color: var(--mu); font-size: 14px; margin: 10px 0 0; }
.tr-ferr { color: #8e2f22; font-size: 14px; margin-top: 4px; }
.tr-ferr:empty { display: none; }
.tr-ferr p { margin: 0; }
.tr-certs form { margin: 0; }
.tr-certs { display: flex; flex-wrap: wrap; gap: 10px; }

/* the manuscript proof card printed by mu-plugins/ijlmh-author-proofs.php: restyled here, plugin untouched */
#author-proof { margin: 0 !important; border: 0 !important; background: transparent !important; border-radius: 0 !important; }
#author-proof > div:first-child { background: none !important; color: var(--navy) !important; padding: 0 0 12px !important; font: 600 22px/1.3 var(--serif) !important; letter-spacing: 0 !important; }
#author-proof > div:first-child span { font: 600 13.5px var(--sans) !important; color: var(--mu) !important; margin-top: 6px; }
#author-proof > div + div { padding: 0 !important; font-size: 16px; line-height: 1.6; color: var(--body); }
#author-proof a[href] { background: var(--navy) !important; border-radius: 4px !important; }
#author-proof button { font-family: var(--sans) !important; border-radius: 4px !important; }
#author-proof button[value="accept"], #author-proof button[value="modify"] { background: var(--navy) !important; color: #fff !important; }
#author-proof button[onclick*="pfmodify"], #author-proof #pfadd { background: #fff !important; color: var(--navy) !important; border: 1.5px solid var(--navy) !important; }
#author-proof p[style*="1e7a34"] { color: var(--navy) !important; }
#author-proof p[style*="8a6d1a"] { color: #6b4a00 !important; }
#author-proof input[type=text] { font: 15px var(--sans); border-color: #c8d0d9 !important; padding: 10px 12px !important; }
@media (max-width: 860px) { #author-proof .pfrow { flex-direction: column; } #author-proof .pfrow input { flex: 1 1 auto !important; } }
.trp > section + section { margin-top: 22px; }       /* a stage panel that holds more than one white section */
/* the site-wide justify rule (.prose li) must not reach the stepper or the activity list; the form's label rule must not
   reach the file boxes; a submit <input> wears the button style, not the text-field style */
.prose .tr-steps li, .prose .tr-steps li b, .tr-steps li, .tr-steps li b { text-align: center !important; hyphens: none !important; }
.tr-hist li, .tr-hist li div { text-align: left !important; hyphens: none !important; }
.form label.tr-file { display: flex; margin-bottom: 0; }
.form input[type=submit].btn { width: auto; background: var(--navy); color: #fff; border: 1.5px solid var(--navy); font: 600 15.5px/1 var(--sans); padding: 13px 22px; border-radius: 4px; cursor: pointer; }
.form input[type=submit].btn:hover { background: var(--navy-dk, #102438); }
