/* STAHR Awards theme. All colours are tokens; change them here only. */
:root {
  --stahr-wine: #5F021A;
  --stahr-deep: #2D0312;
  --stahr-plum: #48081D;
  --stahr-gold: #BC9F65;   /* accent only: never text on light backgrounds (2.4:1) */
  --stahr-blush: #E0B1A1;
  --stahr-paper: #FBF7F4;
  --ink: #1F1A1C;
  --white: #FFFFFF;
  --iwis-purple: #4C2D8B;  /* iWorkinSport elements only */
  --muted: #6B6266;        /* 5.5:1 on paper */
  --line: #E7DED9;
  --field: #CFC4C0;
  --ok: #2E6B3F;  --ok-bg: #E8F1EA;
  --warn: #8A5A00; --warn-bg: #FBF1DC;
  --err: #A3261C; --err-bg: #F8E6E3;
  --font-head: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stahr-paper); color: var(--ink); font: 16px/1.6 var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: var(--stahr-wine); }
a:hover { color: var(--stahr-plum); }
:focus-visible { outline: 2px solid var(--stahr-wine); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--stahr-wine); line-height: 1.25; }
h1 { font-weight: 300; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: .03em; }
h2 { font-weight: 300; font-size: 1.5rem; letter-spacing: .02em; }
h3 { font-weight: 600; font-size: 1rem; }
.rule::after { content: ""; display: block; width: 56px; height: 2px; background: var(--stahr-gold); margin-top: 14px; }
.label-caps { font-family: var(--font-head); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* header and footer */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.site-head .logo img { width: 140px; display: block; }
.site-head nav a { color: var(--stahr-wine); text-decoration: none; font-size: .92rem; margin-left: 18px; }
.site-head nav a:hover { text-decoration: underline; }
.site-foot { background: var(--stahr-deep); color: #D9C9C3; font-size: .85rem; margin-top: 64px; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.site-foot a { color: var(--white); }
.site-foot .part { display: flex; align-items: center; gap: 10px; color: #D9C9C3; text-decoration: none; }
.site-foot .part img { height: 38px; width: auto; background: var(--white); border-radius: 4px; padding: 3px 6px; }

/* hero */
.hero { background: radial-gradient(ellipse at 75% -10%, #5a0d26 0%, var(--stahr-deep) 62%); color: var(--white); padding: 56px 0 48px; }
.hero h1 { color: var(--white); margin: 10px 0 0; }
.hero h1::after { content: ""; display: block; width: 56px; height: 2px; background: var(--stahr-gold); margin-top: 16px; }
.hero .eyebrow { color: var(--stahr-gold); }
.hero p { color: #EBDAD3; max-width: 620px; font-size: 1.05rem; }
.hero .logo-white { width: 220px; margin-bottom: 18px; }
.hero.slim { padding: 32px 0 28px; }

/* cards and grids */
.card { background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(45,3,18,.08); padding: 24px; margin: 0 0 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.route { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.route:hover { border-color: var(--stahr-wine); }
.route h3 { color: var(--stahr-wine); margin-top: 0; }
.cat-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--stahr-gold); font-size: .8rem; color: var(--stahr-wine); margin-right: 8px; }

/* wizard */
.wizard { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 32px 0; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; font-size: .92rem; position: sticky; top: 16px; }
.steps li { padding: 8px 0 8px 34px; position: relative; color: var(--muted); }
.steps li a { color: inherit; text-decoration: none; }
.steps li::before { content: attr(data-n); position: absolute; left: 0; top: 7px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--field); background: var(--white); font-size: .75rem; display: grid; place-items: center; }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "\2713"; background: var(--stahr-wine); border-color: var(--stahr-wine); color: var(--white); }
.steps li.on { color: var(--stahr-wine); font-weight: 600; }
.steps li.on::before { border-color: var(--stahr-wine); color: var(--stahr-wine); border-width: 2px; }
.entry-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.entry-tabs a { font-size: .85rem; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; background: var(--white); }
.entry-tabs a.on { background: var(--stahr-wine); color: var(--white); border-color: var(--stahr-wine); }
@media (max-width: 760px) {
  .wizard { grid-template-columns: 1fr; padding-top: 16px; }
  .steps { display: flex; gap: 8px; position: static; }
  .steps li { padding: 0; font-size: 0; }
  .steps li::before { position: static; display: grid; font-size: .8rem; }
  .steps li.on { font-size: .85rem; display: flex; gap: 6px; align-items: center; }
  .site-head nav a { margin: 0 14px 0 0; }
}

/* forms */
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-family: var(--font-head); font-weight: 600; color: var(--stahr-wine); margin-bottom: 10px; font-size: 1rem; }
.field { margin-bottom: 20px; }
.field > label, .field .lbl { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.req { color: var(--err); font-weight: 400; }
.hint { font-size: .86rem; color: var(--muted); margin: 0 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], select, textarea {
  width: 100%; border: 1px solid var(--field); border-radius: 6px; padding: 10px 12px; font: inherit; background: var(--white); color: var(--ink); }
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--stahr-wine); outline-offset: 1px; border-color: var(--stahr-wine); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--stahr-wine); flex: none; }
.count { display: flex; justify-content: flex-end; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.count.over { color: var(--err); font-weight: 600; }
.weight { font-size: .74rem; color: var(--stahr-wine); border: 1px solid #D9C2C8; border-radius: 10px; padding: 0 8px; margin-left: 6px; font-weight: 500; white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.btn { display: inline-block; font: 600 .95rem var(--font-body); border-radius: 6px; padding: 11px 22px; border: 1px solid var(--stahr-wine); cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--stahr-wine); color: var(--white); }
.btn-primary:hover { background: var(--stahr-plum); color: var(--white); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--stahr-wine); }
.btn-ghost:hover { background: #F6EEEA; }
.btn-small { padding: 6px 12px; font-size: .85rem; }
.btn-light { background: var(--white); color: var(--stahr-wine); border-color: var(--white); }
.linkbtn { background: none; border: 0; color: var(--stahr-wine); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* messages */
.alert { border-radius: 6px; padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.notice { border-left: 3px solid var(--stahr-gold); background: var(--white); padding: 12px 16px; margin: 0 0 16px; border-radius: 0 6px 6px 0; }

/* tables and badges */
table.tbl { width: 100%; border-collapse: collapse; background: var(--white); font-size: .92rem; }
table.tbl th, table.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.tbl th { color: var(--stahr-wine); font-weight: 600; background: #F6EEEA; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: .76rem; padding: 2px 9px; border-radius: 10px; background: #EFE8E4; color: var(--ink); white-space: nowrap; }
.badge-complete, .badge-paid, .badge-received, .badge-approved, .badge-given { background: var(--ok-bg); color: var(--ok); }
.badge-awaiting_signoff, .badge-awaiting_consent, .badge-awaiting_payment, .badge-pending, .badge-requested, .badge-invoiced, .badge-unpaid { background: var(--warn-bg); color: var(--warn); }
.badge-withdrawn, .badge-declined, .badge-refused, .badge-failed, .badge-cancelled { background: var(--err-bg); color: var(--err); }
.files li { margin: 4px 0; }
.prose p { margin: 0 0 12px; }
.answer { white-space: pre-wrap; margin: 0 0 16px; }
