/* Mid-Atlantic Transportation Conference 2027 — site styles
   Layout ideas borrowed from professional-society calls for papers:
   tinted photo banners, a full-width headline strip, a bright deadline box,
   and a coloured band for dates. Palette is the conference's own:
   navy, steel teal and a warm gold. */

:root {
  --blue: #1f3a5f;          /* navy: header, headings, primary buttons */
  --blue-dark: #142842;
  --blue-tint: #edf2f7;
  --teal: #2b6f7d;          /* dates band, banner tint */
  --teal-dark: #1f5560;
  --gold: #e6b34a;          /* deadline box */
  --gold-tint: #fbf3df;
  --ink: #1d2533;
  --ink-2: #364152;
  --muted: #5d6778;
  --line: #dbe0e7;
  --line-strong: #b3bcc8;
  --panel: #f4f6f8;
  --paper: #ffffff;
  --card: #ffffff;
  --focus: #2b5ea7;
  --danger: #a3261d;
  --danger-bg: #fdf3f2;
  --ok: #24663f;
  --warn: #7a5300;
  --t1: #1f3a5f; --t2: #2b6f7d; --t3: #b07c1d; --t4: #7a3b4a;
  --radius: 8px;
  --serif: "Poppins", system-ui, sans-serif;   /* headings */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Inter", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--blue); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.12rem; }
p, li { max-width: 72ch; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 780px; }
.wrap.narrow { max-width: var(--wrap); }
.wrap.narrow > * { max-width: 780px; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-weight: 600; }
.eyebrow { font-size: .9rem; font-weight: 600; color: var(--teal); margin-bottom: .4rem; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Header ── */
.site-header { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark { display: none; }
.brand-text { line-height: 1.25; white-space: nowrap; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.brand-text span { font-size: .8rem; color: #c9d5e4; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { white-space: nowrap; color: #e3eaf3; text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 10px; border-radius: 6px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 6px 6px 0 0; }
.nav .btn { margin-left: 10px; }
.nav .btn-primary, .nav .btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: none; border-radius: 999px; }
.nav .btn-primary:hover { background: #f0c463; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 999px; padding: 6px 14px; font: 500 .9rem var(--sans); }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--blue); flex-direction: column; align-items: stretch; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}

/* ── Buttons: rounded pills ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .93rem var(--sans);
  height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .12s, color .12s, border-color .12s; line-height: 1.2; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary, .btn-dark { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover, .btn-dark:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost, .btn-light { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover, .btn-light:hover { background: var(--blue); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline-light:hover { background: #fff; color: var(--blue); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #f0c463; border-color: #f0c463; color: var(--ink); }
.btn-sm { height: 34px; padding: 0 14px; font-size: .85rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-link { background: none; border: none; color: var(--blue); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ── Photo banners ── */
.banner {
  position: relative; color: #fff; isolation: isolate;
  background: var(--teal-dark) var(--img) center / cover no-repeat;
}
.banner::before { /* duotone-style tint so white text always reads */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 40, 66, .92) 0%, rgba(31, 85, 96, .78) 55%, rgba(43, 111, 125, .45) 100%);
}
.banner .wrap { padding-top: 64px; padding-bottom: 60px; }
.banner h1 { color: #fff; margin: 0; max-width: 18em; }
.banner p { color: #e4edf3; font-size: 1.1rem; max-width: 40em; margin: .6em 0 0; }
.banner .eyebrow { color: var(--gold); font-size: .95rem; }
.banner.hero .wrap { padding-top: 104px; padding-bottom: 96px; }
.banner.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.banner.hero .lede { font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ribbon { background: var(--blue); color: #fff; border-top: 4px solid var(--gold); }
.ribbon .wrap { padding-top: 26px; padding-bottom: 26px; }
.ribbon p { font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.3; margin: 0; max-width: 32em; }

/* Inner pages without a photo (portal) */
.page-hero { background: var(--blue); color: #fff; padding: 44px 0 36px; border-bottom: 4px solid var(--gold); }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #d6e0ec; max-width: 40em; margin: 0; }
.page-hero .eyebrow { color: var(--gold); }
.who-box { text-align: right; font-size: .9rem; color: #d6e0ec; }
.who-box strong { color: #fff; font-weight: 600; }
.who-box .btn-link { color: #fff; }

/* ── Sections ── */
section.block { padding: 64px 0; }
section.block.tight { padding: 44px 0; }
section.block.alt { background: var(--panel); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 36em; color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.split-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .split-intro { grid-template-columns: 1fr; gap: 32px; } }

/* "Why present" list */
.why { list-style: none; padding: 0; margin: 0 0 1.5em; }
.why li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.why li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--teal); }
.why strong { color: var(--blue); }

/* Gold deadline box */
.deadline-box { background: var(--gold); color: var(--ink); border-radius: 20px; padding: 30px 32px; }
.deadline-box h2, .deadline-box h3 { color: var(--ink); }
.deadline-box .label { font-weight: 600; font-size: .95rem; margin: 0 0 4px; }
.deadline-box .big { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.2; margin: 0 0 6px; }
.deadline-box .countdown { font-size: .95rem; margin: 0 0 16px; }
.deadline-box p { font-size: .95rem; }
.deadline-box .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.deadline-box .btn { background: #fff; color: var(--blue); border-color: #fff; }
.deadline-box .btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.deadline-box .btn.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.deadline-box .btn.btn-primary:hover { background: var(--blue-dark); }
.deadline-box small { display: block; margin-top: 16px; font-size: .85rem; line-height: 1.5; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.layout-aside .deadline-box { position: sticky; top: 96px; }
.layout-aside .deadline-box .actions { flex-direction: column; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .layout-aside .deadline-box { position: static; } }

/* Format facts */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; }
.facts dt, .facts dd { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; padding-right: 24px; color: var(--blue); }
.facts dd { margin: 0; color: var(--ink-2); }

/* ── Track cards with photos ── */
.track-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.track-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.track-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--line); }
.track-card .body { padding: 18px 20px 22px; border-top: 4px solid var(--c, var(--blue)); flex: 1; }
.track-card .tag { display: block; font-size: .82rem; font-weight: 600; color: var(--c, var(--teal)); margin-bottom: 4px; }
.track-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.track-card p { margin: 0; font-size: .93rem; color: var(--ink-2); }
@media (max-width: 1000px) { .track-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .track-cards { grid-template-columns: 1fr; } }
.t1 { --c: var(--t1); } .t2 { --c: var(--t2); } .t3 { --c: var(--t3); } .t4 { --c: var(--t4); }

/* Track list with topics (Call page) */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tracks > li { max-width: none; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tracks > li > img { width: 96px; height: 96px; border-radius: 6px; object-fit: cover; }
.tracks .tag { display: block; font-size: .82rem; font-weight: 600; color: var(--teal); margin-bottom: 2px; }
.tracks h3 { margin: 0 0 6px; font-size: 1.02rem; }
.tracks p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.tracks ul { grid-column: 1 / -1; padding-left: 18px; margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
.tracks ul li { margin-bottom: 4px; }
@media (max-width: 760px) { .tracks { grid-template-columns: 1fr; } }
.prose .tracks, .prose .route { padding-left: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }

/* ── Dates: timeline with circle markers ── */
.route { list-style: none; margin: 0; padding: 0; }
.route li { position: relative; display: grid; grid-template-columns: 16.5em 1fr; gap: 16px; padding: 9px 0 9px 34px; max-width: none; }
.route li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--teal); background: #fff; }
.route li.em::before { background: var(--gold); border-color: var(--gold); }
.route .when { font-weight: 600; color: var(--blue); font-size: .95rem; }
.route li.em .what { font-weight: 600; }
.route li.past { opacity: .55; }
@media (max-width: 560px) { .route li { grid-template-columns: 1fr; gap: 0; } }

.band { background: var(--teal); color: #fff; padding: 56px 0; }
.band h2 { color: #fff; }
.band .route li::before { border-color: #fff; background: transparent; }
.band .route li.em::before { background: var(--gold); border-color: var(--gold); }
.band .route .when { color: #fff; }
.band .route .what { color: #e8f1f3; }
.band .route li.em .what { color: #fff; }
.band .note { color: #cfe2e6; font-size: .9rem; margin: 20px 0 0; }

.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.callout { border-left: 4px solid var(--gold); background: var(--gold-tint); padding: 14px 18px; margin: 1.2em 0; border-radius: 0 6px 6px 0; }
.callout.info { border-color: var(--teal); background: #e9f2f4; }

/* ── CTA band ── */
.cta-band { background: var(--blue); color: #fff; padding: 52px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin: .35em 0 0; color: #d6e0ec; }
.cta-band .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cta-band .btn-primary:hover { background: #f0c463; border-color: #f0c463; }

/* ── Tables ── */
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .82rem; color: var(--muted); font-weight: 600; background: var(--panel); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ── Program ── */
.day { margin-bottom: 48px; }
.day-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 3px solid var(--teal); padding-bottom: 10px; flex-wrap: wrap; }
.day-head h2 { margin: 0; }
.day-head span { color: var(--muted); }
.session { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.session .time { font-weight: 600; font-size: .92rem; color: var(--ink-2); padding-top: 2px; }
.session h3 { font-size: 1.08rem; margin: 0 0 4px; }
.session .kind { display: inline-block; font-size: .75rem; font-weight: 600; color: #fff; background: var(--teal); padding: 1px 10px; border-radius: 999px; margin-bottom: 6px; }
.session[data-type="keynote"] .kind { background: var(--blue); }
.session[data-type="poster"] .kind { background: var(--t3); }
.session .meta { font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .session { grid-template-columns: 1fr; gap: 4px; } }

/* ── Speakers ── */
.speaker { display: flex; gap: 20px; }
.speaker img, .speaker .avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel); border: 3px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.8rem; color: var(--blue); }
.speaker .role { font-size: .88rem; font-weight: 600; color: var(--teal); }
.tba { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
@media (max-width: 760px) { .tba { grid-template-columns: 1fr; } }
.side-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; }

/* Contact panel (Venue) */
.side-panel { background: var(--panel); border-radius: 16px; padding: 26px 28px; }
.side-panel h2 { font-size: 1.25rem; margin: 0 0 10px; }
.side-panel dl { margin: 0; }
.side-panel dt { color: var(--muted); font-size: .88rem; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.side-panel dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.side-panel dd { margin: 2px 0 0; font-weight: 500; }

/* ── Footer ── */
.site-footer { background: var(--blue-dark); color: #c3cfdd; padding: 52px 0 28px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand-text strong { font-size: 1.05rem; }
.site-footer .brand-text span { color: #c3cfdd; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font: 600 .95rem var(--serif); color: var(--gold); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .legal a { color: #c3cfdd; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ── Forms & portal ── */
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.form-section > h2 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.form-section > h2 .step { font: 600 .9rem var(--sans); color: var(--muted); flex: none; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .93rem; }
.field .hint { display: block; color: var(--muted); font-size: .86rem; margin: -2px 0 8px; font-weight: 400; }
.field .req { color: var(--danger); }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; line-height: 1.4; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background-color: #fff; color: var(--ink);
}
/* Single-line controls share one height so they line up in rows. */
input[type=text], input[type=email], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=search], select { height: 42px; }
/* Dropdowns: same box as text inputs, with a drawn chevron instead of the OS control. */
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6573' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
select:hover { border-color: var(--muted); }
select:disabled, input:disabled { background-color: var(--panel); color: var(--muted); cursor: not-allowed; }
select[multiple] { height: auto; background-image: none; padding-right: 12px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
textarea.abstract { min-height: 320px; font-size: 1rem; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid rgba(43, 94, 167, .2); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--danger) !important; background: var(--danger-bg); }
.error-text { color: var(--danger); font-size: .87rem; font-weight: 500; margin-top: 6px; display: block; }
.error-text:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 4px; width: 17px; height: 17px; flex: none; accent-color: var(--blue); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1.6fr 1.6fr 2fr auto; gap: 12px; align-items: end; }
.row-actions { display: flex; gap: 6px; }
.btn-icon { width: 42px; height: 42px; padding: 0; font-size: 1rem; border-radius: 6px; }
@media (max-width: 700px) { .row, .row-3 { grid-template-columns: 1fr; } }
.author-row { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--panel); }
.author-row .num { font-size: .82rem; color: var(--muted); font-weight: 500; }
.wordcount { font-size: .86rem; font-weight: 500; display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); }
.wordcount.over { color: var(--danger); font-weight: 600; }
.wordbar { height: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.wordbar span { display: block; height: 100%; background: var(--blue); transition: width .2s; }
.wordcount.over + .wordbar span { background: var(--danger); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 12px; z-index: 5; }
.sticky-actions .wrap, .sticky-actions .sticky-inner { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.sticky-actions .wrap.narrow { display: block; }
.save-state { font-size: .86rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid; border-left-width: 3px; }
.alert-error { background: var(--danger-bg); border-color: #e8c3bf; border-left-color: var(--danger); color: #6e1a13; }
.alert-ok { background: #f1f7f3; border-color: #c4dccb; border-left-color: var(--ok); color: #1b4d30; }
.alert-info { background: var(--blue-tint); border-color: #c9d4e3; border-left-color: var(--blue); color: var(--blue-dark); }
.alert-warn { background: #fbf6ea; border-color: #e6d6ab; border-left-color: var(--warn); color: #5c3f00; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

.status { display: inline-block; font-size: .8rem; font-weight: 500; padding: 2px 9px; border-radius: 3px; white-space: nowrap; border: 1px solid transparent; }
.status[data-s="Draft"] { background: var(--panel); border-color: var(--line); color: var(--ink-2); }
.status[data-s="Submitted"] { background: var(--blue-tint); color: var(--blue); }
.status[data-s="Under Review"] { background: #f7f1e3; color: #6b4a00; }
.status[data-s="Clarification Requested"] { background: #fbeee8; color: #7c2e12; }
.status[data-s="Decision Available"] { background: #eaf4ee; color: #1b4d30; }
.status[data-s="Withdrawn"] { background: #f2f2f2; color: #6b6b6b; text-decoration: line-through; }

.receipt { border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 22px 24px; background: #fff; }
.receipt::before { content: "Submission receipt"; display: block; font-weight: 600; font-size: .9rem; color: var(--blue); margin-bottom: 12px; }
.receipt dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; }
.receipt dt { color: var(--muted); font-size: .9rem; }
.receipt dd { margin: 0; font-weight: 500; }
.preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.preview h2 { font-size: 1.5rem; }
.preview .authors { color: var(--ink-2); margin-bottom: 4px; }
.preview .abstract-text { white-space: pre-wrap; margin-top: 16px; }
dialog { border: 1px solid var(--line); border-radius: 6px; padding: 0; max-width: 760px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(27, 34, 48, .25); }
dialog::backdrop { background: rgba(27, 34, 48, .45); }
dialog .dlg-body { padding: 28px; max-height: 70vh; overflow: auto; }
dialog .dlg-foot { padding: 14px 28px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--panel); }

.auth-box { max-width: 440px; margin: 0 auto; }
.otp-input { font-weight: 600 !important; font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.loading { color: var(--muted); padding: 24px 0; }
.notice-config { background: var(--panel); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 7px 0; text-align: center; }

/* ── Staff workspace ── */
.staff-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 69px); }
.staff-nav { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 12px; }
.staff-nav button { display: flex; width: 100%; justify-content: space-between; align-items: center; text-align: left; background: none; border: none; padding: 9px 12px; border-radius: var(--radius); font: 500 .92rem var(--sans); color: var(--ink-2); cursor: pointer; }
.staff-nav button:hover { background: #eceff3; }
.staff-nav button[aria-current="true"] { background: #fff; color: var(--blue); box-shadow: inset 3px 0 0 var(--blue), 0 0 0 1px var(--line); font-weight: 600; }
.staff-nav .count { font-weight: 600; font-size: .75rem; background: #fff; border: 1px solid var(--line); color: var(--ink-2); padding: 0 7px; border-radius: 3px; }
.staff-nav .who { padding: 12px; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 16px; }
.staff-main { padding: 28px 36px 60px; min-width: 0; }
@media (max-width: 860px) { .staff-shell { grid-template-columns: 1fr; } .staff-nav { border-right: none; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: 4px; padding: 10px; } .staff-nav button { width: auto; white-space: nowrap; } .staff-nav .who { display: none; } .staff-main { padding: 20px 16px; } }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: .9rem; }
.toolbar select { padding-right: 34px; background-position: right 12px center; }
.toolbar .btn { height: 36px; }
.toolbar label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.kpi { padding: 14px 18px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.15; color: var(--blue); }
.kpi span { font-size: .82rem; color: var(--muted); }
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 700px) { .scores { grid-template-columns: 1fr 1fr; } }
.score-field label { font-size: .82rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.panel h3 { font-size: 1.12rem; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.state-pill { font-size: .8rem; font-weight: 500; padding: 2px 8px; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; }
.state-pill[data-s="awaiting_ce"] { background: #f7f1e3; border-color: #e6d6ab; }
.state-pill[data-s="approved"] { background: #eaf4ee; border-color: #c4dccb; }
.state-pill[data-s="changes_requested"] { background: #fbeee8; border-color: #ecc9bb; }
.state-pill[data-s="sent"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.state-pill[data-s="queue"] { background: var(--danger-bg); border-color: #e8c3bf; color: #6e1a13; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: var(--radius); z-index: 200; box-shadow: 0 8px 24px rgba(27, 34, 48, .2); font-size: .93rem; }
.toast.err { background: var(--danger); }
tr.clickable { cursor: pointer; }
table.data td:nth-child(2) { min-width: 240px; }
tr.clickable:hover td { background: var(--blue-tint); }
.badge-yes { color: var(--ok); font-weight: 600; } .badge-no { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header, .site-footer, .sticky-actions, .no-print { display: none !important; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .brand-text { white-space: normal; }
  .brand-text strong { font-size: 1rem; }
}

/* Call page: one track per row so topic lists have room. */
.prose .tracks { grid-template-columns: 1fr; gap: 16px; }
.prose .tracks > li { grid-template-columns: 120px 1fr; column-gap: 20px; }
.prose .tracks > li > img { width: 120px; height: 120px; }
.prose .tracks ul { grid-column: 2; columns: 2; column-gap: 28px; margin-top: 0; }
.prose .tracks ul li { break-inside: avoid; }
@media (max-width: 700px) { .prose .tracks > li { grid-template-columns: 1fr; } .prose .tracks ul { grid-column: 1; columns: 1; } }
.toolbar select { max-width: 230px; }
.toolbar input[type=search], .toolbar input[type=text] { min-width: 200px; }
