/* AO Marketplace. Colours, lockup and court pattern are taken from the
   AO Collective AO27 deck (Canva). The sweep and the white job card carry the
   page; everything else stays quiet around them. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }

:root {
  --coral: #ff5757;
  --violet: #8c52ff;
  --navy: #1e2886;
  --court: #0091d2;
  --ink: #000c3c;
  --paper: #ffffff;
  --mist: #f5f1fa;
  --line: #e3ddf0;
  --muted: #5d5f80;
  --danger: #b3261e;
  --sweep: linear-gradient(90deg, var(--coral), var(--violet));
  --badge: linear-gradient(90deg, #ff66c4, #ffde59);
  --body: "Poppins", system-ui, sans-serif;
  --display: "Archivo", "Poppins", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-sweep :focus-visible { outline-color: var(--paper); }
.card :focus-visible, .panel :focus-visible { outline-color: var(--navy); }

/* ------------------------------------------------------------ member shell */
.on-sweep {
  min-height: 100vh;
  color: var(--paper);
  background: var(--sweep) fixed;
}
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.masthead {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding: 1.25rem 0;
}
.lockup-link { display: inline-block; line-height: 0; }
.lockup { height: 2.9rem; width: auto; }
.lockup.big { height: auto; width: min(34rem, 100%); }
.badge { display: inline-block; line-height: 0; background: var(--badge); border-radius: 999px; padding: .45rem 1.3rem .45rem 1.1rem; }
.badge .lockup { height: 2rem; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; font-size: .95rem; }
.nav a { text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav form { margin: 0; }
.linkish {
  font: inherit; color: inherit; background: none; border: 0; padding: .25rem 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
main { padding: 1.5rem 0 5rem; }

.tagline {
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  text-transform: uppercase; font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .01em;
}
.page-title {
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  text-transform: uppercase; font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.15;
}
.lede { max-width: 38rem; margin-top: .75rem; font-size: 1.05rem; }
.flash {
  margin: 0 0 1.5rem; padding: .8rem 1.1rem; border-radius: 14px;
  background: var(--paper); color: var(--ink); font-weight: 500;
  border-left: 6px solid var(--navy);
}

/* ------------------------------------------------------------ welcome page */
@media (min-width: 900px) {
  .on-sweep.with-pattern { background: url("../img/court-pattern.svg") left top / auto 100% no-repeat fixed, var(--sweep) fixed; }
}
.welcome { display: grid; gap: 2.5rem; align-items: center; padding-top: 2vh; }
@media (min-width: 900px) { .welcome { grid-template-columns: 1.15fr 1fr; gap: 4rem; padding-top: 6vh; } }
.welcome .tagline { margin-top: 1.25rem; }
.welcome .lede + .lede { margin-top: 1rem; }

/* ---------------------------------------------------------------- job card */
.card {
  background: var(--paper); color: var(--ink);
  border-radius: 28px; padding: 1.75rem 1.9rem;
}
.board { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 820px) { .board { grid-template-columns: 1fr 1fr; } }
.job { display: flex; flex-direction: column; gap: 1rem; }
.job-head { display: flex; justify-content: space-between; gap: 1.25rem; align-items: flex-start; }
.job-title {
  font-family: var(--display); font-weight: 400; font-stretch: 100%;
  text-transform: uppercase; color: var(--court);
  font-size: 1.55rem; line-height: 1.12; letter-spacing: -.01em;
}
.job-title a { text-decoration: none; }
.job-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.partner-logo { flex: none; width: 112px; max-height: 84px; object-fit: contain; }
.partner-name {
  flex: none; max-width: 9rem; text-align: right; color: var(--navy);
  font-family: var(--display); font-weight: 700; font-stretch: 75%;
  text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; line-height: 1.15;
}
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.chip { background: var(--navy); color: var(--paper); padding: .28rem 1.2rem; font-size: .9rem; }
.chip.soft { background: var(--mist); color: var(--navy); }
.job-body { white-space: pre-line; font-size: .95rem; }
.job-facts { display: grid; gap: .25rem 1.5rem; font-size: .9rem; color: var(--muted); margin: 0; }
@media (min-width: 520px) { .job-facts { grid-template-columns: 1fr 1fr; } }
.job-facts div { display: flex; gap: .4rem; }
.job-facts dt { font-weight: 600; color: var(--ink); }
.job-facts dd { margin: 0; }
.apply-link {
  align-self: center; margin-top: auto; font-style: italic; font-size: 1.15rem;
  text-underline-offset: 4px; color: var(--ink);
}
.apply-link:hover { color: var(--navy); }
.applied-note { align-self: center; margin-top: auto; font-weight: 500; color: var(--navy); }

.empty { margin-top: 2rem; max-width: 34rem; }
.empty h2 { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 1.25rem; }

/* ---------------------------------------------------------------- job page */
.job-page { display: grid; gap: 1.5rem; margin-top: 1rem; align-items: start; }
@media (min-width: 960px) { .job-page { grid-template-columns: 1.1fr 1fr; } }
.job-page .job-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.back { display: inline-block; font-size: .95rem; text-underline-offset: 3px; }

/* ------------------------------------------------------------------- forms */
.form { display: grid; gap: 1.1rem; }
.form h2, .panel h2 { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 1.2rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field label, .field .label { font-weight: 500; font-size: .92rem; }
.hint { font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7rem .9rem; border: 1.5px solid #bdb6d3; border-radius: 12px; background: var(--paper);
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--violet);
}
input[type="file"] { font: inherit; font-size: .9rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 1fr 1fr 1fr; } }

.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  padding: .75rem 1.6rem; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: var(--paper);
}
.btn:hover { background: #151d66; border-color: #151d66; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--mist); }
.btn.small { padding: .35rem .95rem; font-size: .85rem; border-width: 1.5px; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.error { color: var(--danger); font-weight: 500; }

/* ---------------------------------------------------- my applications list */
.stack { display: grid; gap: 1rem; margin-top: 2rem; }
.app-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; align-items: center; border-radius: 20px; padding: 1.2rem 1.5rem; }
.app-row h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--court); font-size: 1.15rem; }
.app-row h2 a { text-decoration: none; }
.app-row h2 a:hover { text-decoration: underline; }
.app-row p { font-size: .9rem; color: var(--muted); }

.pill { display: inline-block; padding: .15rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 500; background: var(--mist); color: var(--navy); white-space: nowrap; }
.pill.live, .pill.shortlisted, .pill.sent { background: #dcf3e6; color: #14532d; }
.pill.draft, .pill.new, .pill.logged { background: #e6e9fb; color: var(--navy); }
.pill.closed, .pill.declined { background: #ecebf1; color: #4a4b63; }
.pill.failed { background: #fbe4e2; color: var(--danger); }

/* ------------------------------------------------------------------- admin */
.admin-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar::before { content: ""; display: block; height: 6px; background: var(--sweep); }
.admin-bar .masthead { padding: .8rem 0; color: var(--ink); }
.admin-home { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.admin-tag { font-size: .8rem; font-weight: 500; color: var(--muted); }
.admin main { padding-top: 2rem; }
.admin .page-title { color: var(--ink); font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.admin .flash { border: 1px solid var(--line); border-left: 6px solid var(--navy); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.sub { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.panel + .panel { margin-top: 1.5rem; }
.split + .panel { margin-top: 1.5rem; }
.panel > h2 { margin-bottom: 1rem; }
.split { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.5fr 1fr; } .split > .panel + .panel { margin-top: 0; } }
.draft-banner { display: grid; gap: 1rem 2rem; align-items: center; margin-bottom: 1.5rem; padding: 1.2rem 1.5rem; border-radius: 18px; background: #fff6d9; border: 1.5px solid #e2c25a; }
@media (min-width: 900px) { .draft-banner { grid-template-columns: 1.2fr 1fr; } }
.draft-banner h2 { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 1.15rem; margin-bottom: .3rem; }
.draft-banner p { font-size: .93rem; }
.pill.draft { background: #fff1cc; color: #7a4a00; }
.notice { padding: .8rem 1.1rem; border-radius: 12px; background: #fff6d9; border: 1px solid #ecd68a; font-size: .92rem; margin-bottom: 1.5rem; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .85rem; padding: .5rem .75rem; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
td { padding: .8rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a.strong { font-weight: 600; text-decoration: none; color: var(--navy); }
td a.strong:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pre { white-space: pre-line; }
.inline-forms { display: flex; flex-wrap: wrap; gap: .4rem; }
.inline-forms form { margin: 0; }
.thumb { width: 72px; height: 44px; object-fit: contain; }

.preview-sweep { background: var(--sweep); border-radius: 18px; padding: 1.5rem; }
.mail-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }

fieldset.audience { border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem 1.2rem; margin: 0; display: grid; gap: .8rem; min-width: 0; }
fieldset.audience legend { font-weight: 600; padding: 0 .4rem; }
.audience-pick { display: grid; gap: 1.1rem; padding-left: 1.7rem; }
@media (min-width: 760px) { .audience-pick { grid-template-columns: 1fr 1fr; } }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-check { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .8rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; cursor: pointer; }
.tag-check:has(input:checked) { border-color: var(--navy); background: var(--mist); }
.tag-check input { accent-color: var(--navy); }
.pick-list { display: grid; gap: .45rem; max-height: 15rem; overflow-y: auto; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.tags { color: var(--navy); }
.reach { margin-top: .6rem; color: var(--ink); }
td details { margin-top: .4rem; }
td details .form { margin-top: .6rem; min-width: 15rem; }
.demo-bar { margin: 0; padding: .5rem 1rem; text-align: center; font-size: .88rem; font-weight: 500; background: #ffde59; color: #000c3c; }
.demo-bar a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.site-foot { padding: 0 0 2rem; font-size: .88rem; }
.site-foot a { text-underline-offset: 3px; }
.legal { display: grid; gap: .9rem; max-width: 46rem; }
.legal h2 { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 1.1rem; margin-top: .6rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.legal p, .legal li { font-size: .95rem; }
.legal a { color: var(--navy); }
.erase { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.stack-col { display: grid; gap: 1.5rem; }
.narrow { width: min(30rem, 100%); margin-top: 1.5rem; }
.login-card { width: min(26rem, 100%); margin: 8vh auto 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color .15s, border-color .15s; }
}
