/* Rucking Tough brand: Field Olive #3F4A2F, Ruck Black #171A17,
   Bone Paper #F2EAD8, Khaki Canvas #B8A77A, Medal Brass #B68A35, Deep Forest #24301F
   Fix batch 2026-11-10 restyle: de-boxed public surfaces, real type scale,
   brass primary buttons per BRAND.md, selected and focus states, two art
   classes (hero art full width, award art shown whole). */
:root {
  --olive: #3F4A2F; --black: #171A17; --bone: #F2EAD8; --khaki: #B8A77A;
  --brass: #B68A35; --forest: #24301F; --paper: #fffdf7;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bone); color: var(--black); }
a { color: var(--olive); }
a:hover { color: var(--forest); }

/* Header */
.rt-head { background: var(--black); color: var(--bone); text-align: center; padding: 20px 12px 14px; border-bottom: 4px solid var(--brass); }
.rt-brand { font-family: Oswald, sans-serif; font-size: 32px; letter-spacing: 2px; }
.rt-brand span { color: var(--brass); }
.rt-sub { font-family: Oswald, sans-serif; letter-spacing: 4px; font-size: 12px; color: var(--khaki); }

/* Layout measures: wider main column, wide variant that actually widens,
   and a narrower inner measure for forms. */
.rt-main { max-width: 944px; margin: 0 auto; padding: 28px 16px 48px; }
.rt-main.wide { max-width: 1180px; }
.rt-main .narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.rt-foot { text-align: center; color: var(--olive); font-size: 13px; padding: 20px; }

/* Surfaces: public pages are de-boxed (no border, no heavy shadow, no top
   bar). The name .card is kept for markup compatibility. */
.card { background: var(--paper); border: none; border-radius: 14px; padding: 30px 30px 34px; box-shadow: 0 1px 4px rgba(23,26,23,.06); }
.card.wide { max-width: 1180px; margin: 0 auto; }
.hero { text-align: center; }

/* Type tokens */
h1 { font-family: Oswald, sans-serif; color: var(--forest); margin: 10px 0 8px; font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: .5px; }
h2 { font-family: Oswald, sans-serif; color: var(--forest); font-size: 28px; }
h3 { font-family: Oswald, sans-serif; color: var(--olive); margin-bottom: 8px; font-size: 19px; }
.event-title { font-family: 'Roboto Slab', serif; font-size: 20px; color: var(--olive); margin: 2px 0; }
.ref-price { font-weight: 600; color: var(--forest); background: #e9efdf; border-left: 4px solid var(--brass); padding: 10px 14px; border-radius: 6px; }
p { line-height: 1.55; }

/* Art: hero art is a full width atmosphere banner (cropping is fine);
   award art is real medal photography, shown whole and uncropped. */
.hero-art { margin: -6px 0 14px; }
.hero-art img { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; display: block; }
.rt-art { text-align: center; margin-bottom: 12px; }
.rt-art.award-art img { height: 150px; max-width: 100%; object-fit: contain; margin: 0 6px; border-radius: 6px; }
.group-logo-wrap { text-align: center; margin: 4px 0 8px; }
.group-logo { max-height: 76px; max-width: 240px; object-fit: contain; }

/* Forms */
label { display: block; margin: 12px 0; font-weight: 600; font-size: 14px; }
label input, label select, label textarea, .inline-form input, .inline-form select { display: block; width: 100%; margin-top: 5px; padding: 11px; border: 1px solid var(--khaki); border-radius: 6px; font: inherit; font-weight: 400; background: #fff; }
label.check { font-weight: 400; }
label.check input { display: inline; width: auto; margin-right: 8px; }
fieldset.step { border: none; border-top: 2px solid var(--khaki); margin: 20px 0; padding: 14px 4px 6px; }
fieldset.step legend { font-family: Oswald, sans-serif; color: var(--olive); font-size: 18px; padding: 0 8px 0 0; }
.opt-grid { display: grid; gap: 10px; }
.opt-card { border: 1px solid var(--khaki); border-radius: 10px; padding: 13px 15px; background: #fff; cursor: pointer; margin: 0; transition: background .12s ease, border-color .12s ease; }
.opt-card:hover { border-color: var(--olive); }
.opt-card input { display: inline; width: auto; margin-right: 8px; }
.opt-card .opt-title { font-family: Oswald, sans-serif; font-size: 16px; color: var(--forest); }
.opt-card .opt-blurb { display: block; font-weight: 400; font-size: 13.5px; color: #44483f; margin-top: 4px; }
.opt-card .opt-price { display: block; font-weight: 600; font-size: 13.5px; color: var(--olive); margin-top: 5px; }
.opt-card.disabled { opacity: .55; }
/* Selected state: the chosen card visibly changes. */
.opt-card:has(input:checked) { border-color: var(--olive); border-width: 2px; background: #e9efdf; }
.radio-pill:has(input:checked) { border-color: var(--olive); background: #e9efdf; font-weight: 600; }
/* Keyboard and switch focus is always visible. */
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 2px; }
.subbox { border-left: 4px solid var(--brass); padding: 6px 0 6px 14px; margin: 12px 0; }

/* Buttons per BRAND.md: primary is Medal Brass with Ruck Black text,
   secondary is Field Olive with Bone Paper text. */
.btn { display: inline-block; font-family: Oswald, sans-serif; letter-spacing: 1px; background: var(--olive); color: var(--bone); border: 2px solid var(--olive); border-radius: 6px; padding: 10px 19px; cursor: pointer; text-decoration: none; font-size: 15px; }
.btn:hover { background: var(--forest); color: var(--bone); }
.btn.primary { background: var(--brass); color: var(--black); border-color: var(--brass); }
.btn.primary:hover { background: #9a732a; color: var(--black); }
.step-nav { display: flex; gap: 10px; margin-top: 14px; }

.error { background: #f9e3e3; border: 1px solid #b05555; color: #6d1d1d; padding: 12px 14px; border-radius: 6px; margin: 12px 0; }
.notice { background: #e9efdf; border: 1px solid var(--olive); color: var(--forest); padding: 12px 14px; border-radius: 6px; margin: 12px 0; }
.note { color: #5d625a; font-size: 13.5px; }
.sharelink { font-size: 17px; background: var(--bone); border-left: 4px solid var(--brass); padding: 12px 14px; border-radius: 6px; }
.sharelink button { margin-left: 10px; }
.mono { font-family: ui-monospace, monospace; word-break: break-all; }

/* Tables and status chips (organizer and admin stay functional, with
   plain language chips and a scroll container that works on phones). */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { background: var(--olive); color: var(--bone); font-family: Oswald, sans-serif; font-weight: 500; text-align: left; padding: 9px; }
td { border-bottom: 1px solid #e2dbc6; padding: 9px; vertical-align: top; }
.tag { background: var(--brass); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 11.5px; }
.chip { display: inline-block; background: #e9efdf; color: var(--forest); border: 1px solid var(--khaki); border-radius: 999px; padding: 2px 9px; font-size: 12px; white-space: nowrap; }

.merch-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.merch-row span { flex: 1; }
.merch-row input[type=number] { width: 74px; padding: 8px; }
.merch-row select { padding: 8px; }
.distradios { display: inline-flex; gap: 6px; margin-left: 10px; flex-wrap: wrap; }
.radio-pill { border: 1px solid var(--khaki); border-radius: 20px; padding: 3px 10px; margin: 0; font-weight: 400; cursor: pointer; }
.radio-pill input { margin-right: 4px; }
.total-line { font-size: 17px; }
.invoice-box { border: 2px solid var(--brass); border-radius: 8px; padding: 12px 16px; margin: 14px 0; background: #fdf6e0; }
.invoice-lines { margin: 8px 0; padding-left: 20px; line-height: 1.6; }
.proof-card { border: 1px solid #d8cfb4; border-radius: 8px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.proof-form { border: 1px solid #d8cfb4; border-radius: 8px; padding: 14px 16px; margin: 14px 0; background: #fff; }
.prelim-live { font-weight: 600; color: var(--forest); min-height: 1.2em; }
.inline-form { display: inline-flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.inline-form textarea { font: inherit; padding: 8px; border: 1px solid var(--khaki); border-radius: 5px; }
td.actions form { margin: 2px 0; }
td.actions button { font-size: 12.5px; }

@media (max-width: 700px) {
  .rt-main { padding: 16px 8px 32px; }
  .card { padding: 20px 14px 24px; }
  .hero-art img { height: 168px; }
  .rt-art.award-art img { height: 104px; }
  .sharelink { font-size: 15px; }
  table { font-size: 12.5px; }
  td, th { padding: 7px; }
}
@media print { .rt-head, .rt-foot, .step-nav { display: none; } .card { box-shadow: none; border: none; } }
