/* ============================================================
   Abstract submission sub-page — academic / university aesthetic.
   Reuses the registration system (.reg-page rhythm, the checkout
   blue-badge header, .field / .field-error primitives and .btn).
   This page is a two-column "submit" layout: a compact form on the
   left and an information panel on the right, plus a compact
   categorised track browser, guidelines and FAQ. Page-specific
   rules are scoped under .abs-page so the rest of the site is
   untouched.
   ============================================================ */

/* ---- Two-column submit layout ---- */
.abs-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 34px;
  align-items: start;
  margin-top: 30px;
}
/* no information panel → form spans the column, capped for readability */
.abs-grid--solo { grid-template-columns: 1fr; max-width: 760px; }
.abs-form-col { min-width: 0; }

/* ---- Compact form ---- */
.abs-form {
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
}
.abs-page .abs-form .field { gap: 5px; }
.abs-page .abs-form .field label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
/* Narrow controls: less padding, content-sized */
.abs-page .abs-form .field input,
.abs-page .abs-form .field select {
  padding: 9px 12px;
  font-size: 0.96rem;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
}
/* keep room for the native select arrow (registration.css draws it) */
.abs-page .abs-form .field select { padding-right: 32px; }
.abs-page .abs-form .field-row { gap: 14px; }
.abs-form__warn { margin-bottom: 2px; }

/* File attachment */
.abs-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.abs-file {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-tint);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.abs-file:hover { border-color: var(--blue); background: var(--blue-tint); }
.abs-file.is-set { border-style: solid; border-color: var(--blue); background: #fff; }
.abs-file__ic {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  color: var(--blue);
}
.abs-file__ic svg { width: 19px; height: 19px; }
.abs-file__text { flex: 1; min-width: 0; font-size: 0.92rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abs-file__text strong { color: var(--ink); font-weight: 600; }
.abs-file__btn {
  flex: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 32%, transparent);
  border-radius: 999px;
  padding: 6px 13px;
}
.abs-file:hover .abs-file__btn { border-color: var(--blue); }
.abs-file__input:focus-visible + .abs-file { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

.abs-hint { font-size: 0.84rem; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.abs-hint a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.abs-formnote { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; color: var(--ink-2); line-height: 1.5; margin: 9px 0 0; background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; }
.abs-formnote svg { width: 15px; height: 15px; color: var(--ac-teal); flex: none; margin-top: 2px; }
.abs-submit { width: 100%; justify-content: center; margin-top: 4px; font-size: 1.02rem; padding: 13px 20px; }

/* ---- Right-hand information panel ---- */
.abs-aside { position: sticky; top: 90px; display: grid; gap: 16px; }
.abs-aside__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.abs-aside__card--trust { background: var(--bg-tint); box-shadow: none; }
.abs-aside__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
  margin: 0 0 14px;
}
.abs-aside__title svg { width: 19px; height: 19px; color: var(--blue); flex: none; }

.abs-aside__process { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.abs-aside__process li { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }

.abs-aside__trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.abs-aside__trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }
.abs-aside__trust .ci { color: var(--blue); width: 18px; height: 18px; flex: none; margin-top: 1px; display: grid; place-items: center; }
.abs-aside__trust .ci svg { width: 16px; height: 16px; }

/* ---- Confirmation / next-steps state (in the form column) ---- */
.abs-done {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
}
.abs-done__ic { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 0 18px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); }
.abs-done__ic svg { width: 28px; height: 28px; }
.abs-done h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--ink); margin: 0 0 12px; }
.abs-done p { font-size: 1.02rem; color: var(--ink-2); line-height: 1.6; margin: 0 0 18px; }
.abs-done strong { color: var(--ink); font-weight: 600; }
.abs-done__steps { margin: 0 0 24px; padding-left: 20px; display: grid; gap: 9px; }
.abs-done__steps li { font-size: 0.96rem; color: var(--ink-2); line-height: 1.5; }
.abs-done__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Track summary (the full described programme lives on /tracks) ---- */
.abs-tracks-lite {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}
.abs-tracks-lite__themes {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.abs-tracks-lite__themes li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.abs-tracks-lite__name { font-family: var(--serif); font-weight: 600; font-size: 0.98rem; color: var(--ink); line-height: 1.25; }
.abs-tracks-lite__count { font-family: var(--mono); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.abs-tracks-lite__link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 1rem; color: color-mix(in srgb, var(--acc, var(--blue)) 72%, #000); }
.abs-tracks-lite__link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.abs-tracks-lite__link:hover svg { transform: translateX(3px); }

/* ---- Guidelines cards ---- */
.abs-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.abs-guide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
}
.abs-guide__kicker {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}
.abs-guide__title { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; color: var(--ink); margin: 0 0 10px; }
.abs-guide__intro { font-size: 1rem; color: var(--ink-2); line-height: 1.55; margin: 0 0 16px; }
.abs-guide__list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.abs-guide__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.96rem; color: var(--ink-2); line-height: 1.45; }
.abs-guide__list .ci { color: var(--blue); width: 20px; height: 20px; flex: none; margin-top: 1px; display: grid; place-items: center; }
.abs-guide__list .ci svg { width: 18px; height: 18px; }

.abs-altemail { font-size: 0.86rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.abs-altemail a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ============================================================
   Page accent palette — a restrained multi-hue set used ONLY on
   this page (scoped to .abs-page). It never touches the global
   tokens or the sealed home / registration pages. Each section
   carries one accent; the track themes are colour-coded.
   ============================================================ */
.abs-page {
  --ac-blue: #0E6FB8;
  --ac-teal: #0E8C7A;
  --ac-violet: #5A4AB7;
  --ac-gold: #C9870C;
  --ac-coral: #C2562B;
}
.abs-page #submit { --acc: var(--ac-blue); }
.abs-page #tracks { --acc: var(--ac-teal); }
.abs-page #review { --acc: var(--ac-violet); }
.abs-page #guidelines { --acc: var(--ac-gold); }
.abs-page #faq { --acc: var(--ac-coral); }

/* ---- Interactive hero ---- */
.abs-hero { padding-block: clamp(52px, 6.5vw, 92px); }
/* deeper, less "photographic" image treatment so the glows read cleanly */
.abs-hero .subhead__bg img { filter: blur(8px) brightness(0.5) saturate(0.85); }
/* soft bottom vignette grounds the hero and lifts text contrast */
.abs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 78% at 50% 122%, rgba(0, 0, 0, 0.5), transparent 58%);
}
.abs-hero__badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s var(--ease) infinite; }
.abs-hero__hl { color: var(--gold-2); }
.abs-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0, #000, transparent 76%);
  mask-image: radial-gradient(120% 100% at 50% 0, #000, transparent 76%);
}
.abs-hero .wrap { position: relative; z-index: 2; }
/* two-column composition: copy on the left, abstract-preview card on the right */
.abs-hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
/* no "at a glance" panel → copy spans the full width */
.abs-hero__inner--solo { grid-template-columns: 1fr; }
.abs-hero__copy { min-width: 0; }
/* staggered entrance for the hero content */
.abs-hero__copy > * { animation: absRise 0.6s var(--ease-out) both; }
.abs-hero__copy > *:nth-child(1) { animation-delay: 0.04s; }
.abs-hero__copy > *:nth-child(2) { animation-delay: 0.11s; }
.abs-hero__copy > *:nth-child(3) { animation-delay: 0.18s; }
.abs-hero__copy > *:nth-child(4) { animation-delay: 0.25s; }
.abs-hero__copy > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes absRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.abs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold-2);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.abs-hero h1 { max-width: 18ch; }
.abs-hero .subhead__sub { max-width: 60ch; }
/* colour glows that lift the navy out of "flat" — they drift slowly */
.abs-hero__glow { position: absolute; z-index: 1; pointer-events: none; border-radius: 50%; filter: blur(46px); mix-blend-mode: screen; }
.abs-hero__glow--a { width: 540px; height: 440px; right: -130px; top: -180px; background: radial-gradient(circle, rgba(58, 138, 221, 0.5), transparent 64%); animation: absDriftA 17s var(--ease) infinite alternate; }
.abs-hero__glow--b { width: 500px; height: 430px; left: -150px; bottom: -220px; background: radial-gradient(circle, rgba(201, 135, 12, 0.34), transparent 62%); animation: absDriftB 21s var(--ease) infinite alternate; }
@keyframes absDriftA { to { transform: translate(-30px, 26px); } }
@keyframes absDriftB { to { transform: translate(34px, -24px); } }

/* key-dates panel */
.abs-hero__dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 28px; max-width: 660px; }
.abs-hero__date {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 16px 18px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s;
}
.abs-hero__date:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.abs-hero__date--key:hover { border-color: rgba(255, 207, 107, 0.7); }
.abs-hero__date--key {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 207, 107, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 207, 107, 0.25), 0 20px 44px -26px rgba(0, 0, 0, 0.65);
}
.abs-hero__date-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: #bfe0ff; margin-bottom: 12px; }
.abs-hero__date-ic svg { width: 17px; height: 17px; }
.abs-hero__date--key .abs-hero__date-ic { background: rgba(255, 207, 107, 0.18); color: var(--gold-2); }
.abs-hero__date-kicker { display: block; font-family: var(--mono); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.abs-hero__date-val { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.36rem; color: #fff; line-height: 1.05; margin-top: 4px; }
.abs-hero__date-sub { display: block; font-size: 0.74rem; color: rgba(255, 255, 255, 0.66); margin-top: 6px; line-height: 1.35; }
.abs-hero__tag { position: absolute; top: 13px; right: 13px; font-family: var(--mono); font-weight: 700; font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase; color: #2b1d02; background: var(--gold-2); padding: 3px 8px; border-radius: 999px; }

/* hero actions: template download + tracks link */
.abs-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; }
.btn__ico--lead { background: rgba(13, 30, 50, 0.1); }
.abs-hero__tpl .btn__ico--lead { color: var(--blue-deep); }
.abs-hero__tracklink { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 600; font-size: 0.94rem; color: #cfe0f3; transition: color 0.2s, gap 0.2s; }
.abs-hero__tracklink svg { width: 17px; height: 17px; }
.abs-hero__tracklink:hover { color: #fff; gap: 11px; }

/* ---- "At a glance" credibility panel (right column) ---- */
.abs-hero__art { position: relative; display: flex; justify-content: center; will-change: transform; animation: absFade 0.7s ease 0.25s both; }
.abs-hero__panel {
  width: min(360px, 100%);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 20px 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 64px -38px rgba(0, 0, 0, 0.6);
}
.abs-hero__panel-h { font-family: var(--mono); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); margin: 0 0 4px; }
.abs-hero__panel-list { margin: 0; }
.abs-hero__panel-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 13px;
  row-gap: 1px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.abs-hero__panel-row:first-of-type { border-top: none; }
.abs-hero__panel-ic { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(120, 170, 225, 0.16); color: #bfe0ff; }
.abs-hero__panel-ic svg { width: 18px; height: 18px; }
.abs-hero__panel-row dt { margin: 0; font-family: var(--mono); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); }
.abs-hero__panel-row dd { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: #fff; line-height: 1.2; }
@keyframes absFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Colour-coded track themes (one hue per category) ---- */
/* ---- Review process ---- */
.abs-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 18px;
}
.abs-step:nth-of-type(5n + 1) { --sc: var(--ac-blue); }
.abs-step:nth-of-type(5n + 2) { --sc: var(--ac-teal); }
.abs-step:nth-of-type(5n + 3) { --sc: var(--ac-violet); }
.abs-step:nth-of-type(5n + 4) { --sc: var(--ac-gold); }
.abs-step:nth-of-type(5n + 5) { --sc: var(--ac-coral); }
.abs-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.abs-step__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--sc) 13%, transparent); color: var(--sc); margin-bottom: 14px; }
.abs-step__ic svg { width: 21px; height: 21px; }
.abs-step__no { display: block; font-family: var(--mono); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--sc) 70%, #000); }
.abs-step__title { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin: 4px 0 8px; }
.abs-step__desc { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; margin: 0; }

.abs-criteria { margin-top: 30px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 30px); }
.abs-criteria__h { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin: 0 0 18px; text-align: center; }
.abs-criteria__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 16px; }
.abs-criteria__item { display: flex; gap: 12px; align-items: flex-start; }
.abs-criteria__check { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc); }
.abs-criteria__check svg { width: 16px; height: 16px; }
.abs-criteria__title { font-weight: 600; font-size: 0.98rem; color: var(--ink); margin: 0 0 2px; }
.abs-criteria__desc { font-size: 0.88rem; color: var(--muted); line-height: 1.45; margin: 0; }

.abs-ethics { margin: 26px auto 0; max-width: 82ch; text-align: center; font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* ---- Section accent recolouring (guidelines gold, faq coral) ---- */
/* kicker is text → darkened for AA contrast; the .ci check is an icon → bright */
.abs-page #guidelines .abs-guide__kicker { color: color-mix(in srgb, var(--acc) 70%, #000); }
.abs-page #guidelines .abs-guide__list .ci { color: var(--acc); }
.abs-page #faq .faq__q:hover { color: color-mix(in srgb, var(--acc) 72%, #000); }
.abs-page #faq .faq__ico { background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
.abs-page #faq .faq__item.is-open .faq__ico { background: var(--acc); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .abs-hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .abs-hero__art { display: none; }
}
@media (max-width: 900px) {
  .abs-grid { grid-template-columns: 1fr; gap: 26px; }
  .abs-aside { position: static; grid-template-columns: 1fr 1fr; }
  .abs-aside__card--trust { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .abs-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .abs-aside { grid-template-columns: 1fr; }
  .abs-form .field-row { grid-template-columns: 1fr; }
  .abs-hero__dates { grid-template-columns: 1fr; }
}

/* Respect reduced-motion: no entrance, drift, pulse, float or hover lift */
@media (prefers-reduced-motion: reduce) {
  .abs-hero__copy > *,
  .abs-hero__art,
  .abs-hero__glow--a,
  .abs-hero__glow--b,
  .abs-hero__badge .pulse { animation: none; }
  .abs-hero__date { transition: none; }
  .abs-hero__date:hover { transform: none; }
}
