/* Journal of Indian Social Transformation — jistjournal.org
   Palette taken from the first-issue cover: deep purple ground, warm gold accent,
   paper-cream page. Light and dark are both first-class; neither is an afterthought. */
:root{
  --paper:#f7f4ee; --card:#fff; --ink:#1d1a24; --ink-soft:#635d70;
  --rule:#ded7cc; --track:#efeae1;
  --accent:#5b3a82; --accent-2:#472c66; --gold:#b08d4e;
  --notebg:#f4efe4;
  /* consent pills: amber = registered but unsigned, green = signed sheet on file */
  --wait-bg:#fbf3e2; --wait-ink:#7a5a18; --wait-line:#e6d3ab;
  --ok-bg:#e9f3ec; --ok-ink:#255f3e; --ok-line:#b9d8c5;
  --serif:"Spectral",Georgia,"Times New Roman",serif;
  --ui:"Archivo",system-ui,-apple-system,sans-serif;
  --col-main:1.62fr; --col-side:1fr; --col-gap:56px;
  /* the hero carries three zones — text, cover, status. Declared here with the
     others so no block ever invents its own columns. */
  --hero-text:1.5fr; --hero-cover:340px; --hero-side:1fr;
  color-scheme:light;
}
:root[data-theme=dark]{
  --paper:#17141c; --card:#211c29; --ink:#ece7f2; --ink-soft:#a79fb5;
  --rule:#3a3247; --track:#2a2434;
  --accent:#b79ae0; --accent-2:#cbb4ec; --gold:#d9b26a;
  --notebg:#241d2f;
  --wait-bg:#3a2f1a; --wait-ink:#e9c77c; --wait-line:#5c4a26;
  --ok-bg:#1d3327; --ok-ink:#8fd4aa; --ok-line:#2f5a41;
  color-scheme:dark;
}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);
  font:18px/1.75 var(--serif);-webkit-font-smoothing:antialiased}
main{display:block}
.wrap{max-width:1560px;margin:0 auto;padding:34px 34px 70px}

/* header */
header.site{position:sticky;top:0;z-index:20;background:var(--paper);
  border-bottom:1px solid var(--rule)}
header.site .bar{max-width:1560px;margin:0 auto;padding:13px 34px;
  display:flex;align-items:center;gap:26px}
.brand{text-decoration:none;color:inherit;flex:0 1 auto;
  display:flex;align-items:center;gap:12px}
.brand img{width:44px;height:auto;flex:0 0 44px}
.brand .txt b{display:block;font:600 17px/1.25 var(--serif);letter-spacing:-.01em}
.brand .kicker{display:block;font:10.5px var(--ui);letter-spacing:.15em;
  text-transform:uppercase;color:var(--ink-soft);margin-top:2px}
nav.site{margin-left:auto;display:flex;flex-wrap:wrap;gap:20px}
nav.site a{font:13.5px var(--ui);color:var(--ink-soft);text-decoration:none;
  padding:4px 0;border-bottom:2px solid transparent}
nav.site a:hover{color:var(--accent)}
nav.site a[aria-current=page]{color:var(--ink);border-bottom-color:var(--gold)}
.tswitch{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;
  border:1px solid var(--rule);border-radius:50%;background:var(--card);
  color:var(--ink-soft);cursor:pointer}
.tswitch:hover{color:var(--accent);border-color:var(--accent)}
.tswitch svg{width:17px;height:17px}
:root[data-theme=light] .tswitch .moon,
:root[data-theme=dark] .tswitch .sun{display:none}

/* type */
h1{font:600 clamp(30px,4vw,46px)/1.12 var(--serif);letter-spacing:-.02em;margin:0 0 10px}
h2{font:600 25px/1.3 var(--serif);margin:38px 0 13px}
h3{font:600 20px/1.35 var(--serif);margin:26px 0 8px}
p{margin:0 0 15px}
.lede{font-size:20.5px;line-height:1.62}
.chapline{font:11.5px var(--ui);letter-spacing:.19em;text-transform:uppercase;
  color:var(--gold);margin:0 0 20px}
.plbl{font:10.5px var(--ui);letter-spacing:.17em;text-transform:uppercase;
  color:var(--accent);margin:0 0 8px}
ul,ol{margin:0 0 15px;padding-left:22px}
li{margin-bottom:7px}
a{color:var(--accent)}
hr.rule{border:0;border-top:1px solid var(--rule);margin:42px 0}
hr{border:0;border-top:1px solid var(--rule);margin:18px 0}
.empty{color:var(--ink-soft);font-style:italic}
.fine{font:14px/1.6 var(--serif);color:var(--ink-soft)}

/* one grid, declared once — every side box shares the same edges */
.cols{display:grid;
  grid-template-columns:minmax(0,var(--col-main)) minmax(0,var(--col-side));
  gap:var(--col-gap);align-items:start}
.hero .row{display:grid;
  grid-template-columns:minmax(0,var(--hero-text)) minmax(0,var(--hero-cover)) minmax(0,var(--hero-side));
  gap:var(--col-gap);align-items:start}
.aside{background:var(--card);border:1px solid var(--rule);border-radius:5px;
  padding:24px 26px;font-size:16.5px}
.aside p{margin-bottom:12px}
.hero{padding-top:8px}
/* The status panel is the cover's twin: same top edge, same bottom edge. The cover
   is a fixed 340px wide at 800:1136, so its height is exact arithmetic — bind the
   panel to that number rather than hoping two independent columns happen to match.
   Keep the panel's text short enough to fit, or the box grows past the cover. */
.hero .aside{min-height:calc(var(--hero-cover) * 1136 / 800)}

/* buttons */
.actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:20px}
.btn{display:inline-block;font:14px var(--ui);letter-spacing:.03em;
  padding:11px 24px;border-radius:4px;text-decoration:none;
  background:var(--accent);color:#fff;border:1px solid var(--accent)}
.btn:hover{background:var(--accent-2);border-color:var(--accent-2)}
.btn.ghost{background:none;color:var(--accent)}
.btn.ghost:hover{background:none;color:var(--accent-2)}

/* notes, status, steps */
.note{background:var(--notebg);border-left:3px solid var(--gold);
  padding:15px 19px;margin:20px 0;border-radius:0 4px 4px 0}
.note b{color:var(--ink)}
/* A label/value pair side by side needs room. In the hero's 362px zone the pairs
   were breaking mid-phrase ("First / issue"), so they stack instead: label above,
   value below, each on one line. */
.status dl,.aside .status dl{margin:0 0 16px;display:block;font-size:16px}
.status dt,.aside .status dt{font:10.5px var(--ui);letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-soft);margin-top:12px}
.status dt:first-of-type{margin-top:0}
.status dd,.aside .status dd{margin:1px 0 0;font-weight:600;font-size:17px;text-align:left}
.status dd.zero{color:var(--gold)}
.aside dl{margin:0;display:grid;grid-template-columns:1fr auto;gap:9px 16px;font-size:16px}
.aside dt{color:var(--ink-soft)} .aside dd{margin:0;text-align:right;font-weight:600}
ol.steps{padding-left:20px}
ol.steps li{margin-bottom:11px}

/* the Board table — the one block on the site that carries its own ground, so the
   reader can see at a glance who is listed and on what consent */
.tblwrap{overflow-x:auto;border:1px solid var(--rule);border-radius:6px;background:var(--card)}
table.mtable{border-collapse:collapse;width:100%;min-width:640px;font-size:16px}
table.mtable th{font:11px var(--ui);letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-soft);text-align:left;padding:13px 18px;background:var(--notebg);
  border-bottom:1px solid var(--rule);white-space:nowrap}
table.mtable td{padding:16px 18px;border-bottom:1px solid var(--rule);vertical-align:top}
table.mtable tr:last-child td{border-bottom:0}
table.mtable td b{font:600 17.5px var(--ui);display:block;margin-bottom:4px}
table.mtable .aff{font:13.5px/1.5 var(--ui);color:var(--ink-soft)}
table.mtable th:nth-child(1){width:36%} table.mtable th:nth-child(2){width:31%}
.pill{display:inline-block;font:12px/1.45 var(--ui);padding:5px 12px;border-radius:999px;
  border:1px solid transparent;white-space:nowrap}
table.mtable .since{display:block;font:12.5px var(--ui);color:var(--ink-soft);margin-top:7px}
.pill.wait{background:var(--wait-bg);color:var(--wait-ink);border-color:var(--wait-line)}
.pill.ok{background:var(--ok-bg);color:var(--ok-ink);border-color:var(--ok-line)}

/* the For Authors requirements — label on the left, rule on the right; stacks on a phone */
.tblwrap.spec{margin:6px 0 14px}
table.spec{border-collapse:collapse;width:100%;font-size:16px}
table.spec th{font:600 13px/1.5 var(--ui);color:var(--ink-soft);text-align:left;vertical-align:top;
  width:34%;padding:13px 18px;background:var(--notebg);border-bottom:1px solid var(--rule)}
table.spec td{padding:13px 18px;border-bottom:1px solid var(--rule);vertical-align:top;line-height:1.55}
table.spec tr:last-child th,table.spec tr:last-child td{border-bottom:0}
@media (max-width:560px){
  table.spec th,table.spec td{display:block;width:auto}
  table.spec th{border-bottom:0;padding-bottom:4px}
}

/* cover */
figure.cover{margin:0;max-width:340px}
figure.cover img{display:block;width:100%;height:auto;border:1px solid var(--rule);
  border-radius:3px;box-shadow:0 8px 26px rgba(0,0,0,.22)}

/* footer — the publisher block is required to be displayed; do not hide it */
footer.page{border-top:1px solid var(--rule);background:var(--card);
  padding:34px;margin-top:20px}
footer.page .pubblock{max-width:1560px;margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,var(--col-main)) minmax(0,var(--col-side));
  gap:var(--col-gap);align-items:start}
/* the two publishers share the main column; correspondence takes the side column,
   so the footer lines up with every other two-column block on the page */
footer.page .pubs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:34px}
footer.page .unit p:first-child{margin-bottom:8px}
/* The body runs on the LABEL's face — Archivo — so the whole footer speaks in one
   voice. The label keeps its own micro-caps style untouched. */
footer.page p{font:16.5px/1.72 var(--ui);margin:0 0 7px;
  text-wrap:pretty;hyphens:none;overflow-wrap:break-word}
/* .plbl is itself a <p>, so the rule above (0,1,1) outranks .plbl (0,1,0) and
   silently ate the label's 10.5px. Restate it here at equal weight. */
footer.page .plbl{font:10.5px var(--ui);letter-spacing:.17em;
  text-transform:uppercase;color:var(--accent);margin:0 0 9px;line-height:1.5}
/* the organisation's name is the first bold run inside the body paragraph,
   not a paragraph of its own — target the <b>, never p:nth-of-type(1),
   which is the label and was silently overridden by it once. */
footer.page .unit p b{font:600 18px var(--ui);display:inline-block;margin-bottom:3px}
footer.page .fine{max-width:1560px;margin:26px auto 0;padding-top:18px;
  border-top:1px solid var(--rule)}

@media (max-width:1240px){
  /* not enough room for three zones — the status panel drops under the cover */
  .hero .row{grid-template-columns:minmax(0,var(--col-main)) minmax(0,var(--col-side))}
  .hero .row>div:nth-child(2){grid-row:1;grid-column:2}
  .hero .row>div:nth-child(3){grid-row:2;grid-column:2}
  .hero .aside{min-height:0}
}
@media (max-width:1000px){
  .cols,.hero .row{grid-template-columns:1fr;gap:30px}
  .hero .row>div:nth-child(2),.hero .row>div:nth-child(3){grid-row:auto;grid-column:1}
  .wrap{padding:26px 20px 56px}
  header.site .bar{padding:11px 20px;gap:14px}
  .brand img{width:36px;flex:0 0 36px}
  nav.site{gap:14px;order:3;width:100%;margin-left:0}
  body{font-size:17px}
}
