/* The Betting Slip — coupon stylesheet.
   Warm paper ground, Springbok green, gold accents, dashed perforations.
   One file, no build step, no JS. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #f7f4ea;
  color: #14231a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; }

a { color: #0b4a2b; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #14231a; }
a:focus-visible { outline: 3px solid #b8891a; outline-offset: 2px; }

h1, h2, h3 { line-height: 1.22; margin: 0 0 12px; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 7px; }

strong { font-weight: 700; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 62ch; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: #ffc72c; color: #14231a; font-weight: 800;
  padding: 10px 16px; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- Masthead ---------- */

.topbar { background: #082e1b; color: #cfe0d5; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px;
  padding-top: 7px; padding-bottom: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
}

.masthead {
  background: #0d5c33;
  background-image: radial-gradient(circle at 16% 22%, rgba(255, 199, 44, 0.34), rgba(255, 199, 44, 0) 58%);
  color: #ffffff;
  padding: 26px 0 24px;
}
.wordmark {
  display: inline-block;
  font-size: 34px; font-weight: 800; letter-spacing: 0.06em;
  color: #ffffff; text-decoration: none;
}
.wordmark span { color: #ffc72c; }
.tagline { margin: 6px 0 0; max-width: 58ch; font-size: 15px; color: #d8ecdf; }

.navrail { background: #eae3cf; border-bottom: 2px solid #d6cbb0; }
.navrail ul {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 11px 0;
}
.navrail li { margin: 0; }
.navrail a {
  display: block; padding: 6px 15px; border-radius: 999px;
  background: #f7f4ea; border: 1px solid #d2c7a9;
  color: #14231a; font-size: 14.5px; font-weight: 700; text-decoration: none;
}
.navrail a:hover { background: #ffffff; }
.navrail a[aria-current] { background: #0d5c33; border-color: #0d5c33; color: #ffffff; }

/* ---------- Page furniture ---------- */

main { padding-bottom: 8px; }

.crumbs { font-size: 13.5px; color: #5c5546; padding: 14px 0 2px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline; margin: 0; }
.crumbs li + li::before { content: " / "; color: #a99f83; }

.dateline {
  display: inline-block; margin: 16px 0 10px;
  background: #eae3cf; border: 1px dashed #b7ab8b; border-radius: 6px;
  padding: 5px 12px; font-size: 13px; font-weight: 700; color: #3d4b41;
  letter-spacing: 0.04em;
}

.verdict {
  background: #ffffff; border: 2px solid #14231a; border-radius: 10px;
  border-left-width: 8px; border-left-color: #ffc72c;
  padding: 16px 20px; margin: 0 0 26px; max-width: 68ch;
}
.verdict p { margin: 0; font-size: 17px; }

.sect { margin: 38px 0 0; }
.sect-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 14px; }
.sect-head h2 { margin: 0; }
.pill {
  background: #ffc72c; color: #14231a; border-radius: 999px;
  padding: 5px 13px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.rule { flex: 1 1 50px; min-width: 30px; border-top: 2px dashed #0d5c33; }

/* ---------- The slip ---------- */

.slip-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; margin: 0 0 8px;
}

.slip {
  display: flex; flex-direction: column;
  background: #ffffff; border: 2px solid #14231a; border-radius: 10px; overflow: hidden;
}
.slip--gold { box-shadow: 0 0 0 3px #ffc72c; }

/* the slip at the top of the counter: full width, heavier gold ring */
.slip--victor {
  grid-column: 1 / -1;
  box-shadow: 0 0 0 5px #ffc72c;
}
.slip--victor .stub { font-size: 13px; padding: 11px 18px; }
.slip--victor .slip-head { padding: 18px 18px 12px; }
.slip--victor .kiosk { padding: 11px 14px; }
.slip--victor .slip-name { font-size: 23px; }
.slip--victor .slip-op { font-size: 14px; }
.slip--victor .boxes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px; padding: 12px 18px 16px;
}
.slip--victor .boxes li { border-bottom: 1px dotted #ded4b8; font-size: 15px; }
.slip--victor .slip-foot { padding: 12px 18px; }

.slip-note {
  margin: 0; padding: 0 18px 14px; max-width: 84ch;
  font-size: 15px; line-height: 1.55; color: #3d4b41;
  border-bottom: 2px dashed #c9c0a6;
}

.stub {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 15px; color: #ffffff;
  font-size: 12px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase;
}
.stub-yes { background: #0d5c33; }
.stub-blank { background: #5c5546; }
.stub-flag { background: #9a3412; }

.stub-right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.topmark {
  color: #ffc72c; border: 1px solid #ffc72c; border-radius: 3px;
  padding: 3px 9px; letter-spacing: 0.14em; white-space: nowrap;
}

.punch { border-bottom: 2px dashed #c9c0a6; }

.slip-head { display: flex; align-items: center; gap: 14px; padding: 15px 15px 13px; }
.kiosk {
  flex: 0 0 auto; line-height: 0;
  background: #f7f4ea; border: 1px solid #ded4b8; border-radius: 6px; padding: 8px 10px;
}
.slip-name { margin: 0; font-size: 18px; font-weight: 800; }
.slip-op { margin: 2px 0 0; font-size: 13px; color: #5c5546; }

.boxes { list-style: none; margin: 0; padding: 12px 15px 14px; }
.boxes li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  margin: 0; padding: 6px 0; border-bottom: 1px dotted #ded4b8; font-size: 14.5px;
}
.boxes li:last-child { border-bottom: 0; }
.boxes .label { color: #3d4b41; }
.stamp-yes { color: #0d5c33; font-weight: 800; white-space: nowrap; }
.stamp-blank { color: #5c5546; font-weight: 700; white-space: nowrap; }
.stamp-flag { color: #9a3412; font-weight: 800; white-space: nowrap; }

.slip-foot {
  margin-top: auto; background: #f0ead6; border-top: 2px dashed #c9c0a6;
  padding: 11px 15px;
}
.slip-foot a { font-weight: 800; text-decoration: none; font-size: 15px; }
.slip-foot a:hover { text-decoration: underline; }

/* ---------- The counter: field readout on a slip page ---------- */

.counter {
  background: #ffffff; border: 2px solid #14231a; border-radius: 10px;
  padding: 4px 18px 6px; margin: 0 0 24px; max-width: 74ch;
}
.counter div {
  display: grid; grid-template-columns: 210px 1fr; gap: 4px 18px;
  padding: 11px 0; border-bottom: 1px dotted #ded4b8;
}
.counter div:last-child { border-bottom: 0; }
.counter dt { font-weight: 700; font-size: 14.5px; color: #3d4b41; }
.counter dd { margin: 0; font-size: 15px; }

.stampline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
.stampline .tag {
  border-radius: 999px; padding: 6px 15px; color: #ffffff;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.tag-yes { background: #0d5c33; }
.tag-blank { background: #5c5546; }
.tag-flag { background: #9a3412; }
.tag-top { background: #ffc72c; color: #14231a; box-shadow: inset 0 0 0 2px #0d5c33; }
.stampline .slipno { font-size: 13px; font-weight: 700; color: #5c5546; letter-spacing: 0.08em; }

.brandline { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; }

/* ---------- Steps ---------- */

.step {
  background: #ffffff; border: 1px solid #ded4b8; border-left: 4px solid #0d5c33;
  border-radius: 0 8px 8px 0; padding: 13px 18px; margin: 0 0 12px; max-width: 72ch;
}
.step--last { border-left-color: #ffc72c; }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; font-size: 15px; }

/* ---------- Tables, notes, lists ---------- */

.tbl-scroll { overflow-x: auto; margin: 0 0 20px; }
table {
  border-collapse: collapse; width: 100%; min-width: 520px;
  background: #ffffff; font-size: 15px;
}
caption { text-align: left; font-size: 13.5px; color: #5c5546; padding: 0 0 7px; }
th, td { border: 1px solid #ded4b8; padding: 9px 12px; text-align: left; vertical-align: top; }
thead th { background: #eae3cf; font-weight: 800; }

.notice {
  background: #0d5c33; color: #ffffff; border-radius: 10px;
  padding: 16px 20px; margin: 0 0 24px; max-width: 68ch;
}
.notice p { margin: 0; }
.notice a { color: #ffe08a; }

.ticks { list-style: none; padding-left: 0; max-width: 68ch; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before {
  content: "✔"; position: absolute; left: 0; top: 0; color: #0d5c33; font-weight: 800;
}
.gaps { list-style: none; padding-left: 0; max-width: 68ch; }
.gaps li { padding-left: 26px; position: relative; }
.gaps li::before {
  content: "—"; position: absolute; left: 0; top: 0; color: #9a3412; font-weight: 800;
}

.qa { max-width: 68ch; }
.qa h3 { margin-top: 22px; }

.signed {
  display: flex; gap: 14px; align-items: flex-start;
  background: #eae3cf; border-radius: 10px; padding: 14px 18px;
  margin: 34px 0 0; max-width: 72ch;
}
.initials {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: #0d5c33; color: #ffc72c;
  font-size: 16px; font-weight: 800; text-align: center; line-height: 44px;
}
.signed p { margin: 0; font-size: 14.5px; }

.alsoslips { margin: 34px 0 0; border-top: 2px dashed #c9c0a6; padding-top: 16px; }
.alsoslips h2 { font-size: 17px; }
.alsoslips ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.alsoslips li { margin: 0; }
.alsoslips a {
  display: block; background: #ffffff; border: 1px solid #ded4b8; border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.alsoslips a:hover { background: #eae3cf; }

/* ---------- Footer ---------- */

.site-foot { background: #082e1b; color: #d5e4da; margin-top: 52px; padding: 30px 0 36px; }
.site-foot a { color: #ffe08a; }
.foot-lead { max-width: 72ch; font-size: 14.5px; }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; }
.foot-links li { margin: 0; }
.age { font-size: 14.5px; font-weight: 700; color: #ffc72c; margin: 0; max-width: 72ch; }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .slip-grid { grid-template-columns: 1fr; }
  .slip--victor .boxes { grid-template-columns: 1fr; }
  .counter div { grid-template-columns: 1fr; }
  .counter dt { color: #5c5546; }
}

@media (max-width: 520px) {
  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  .wordmark { font-size: 27px; }
  .topbar .wrap { font-size: 10.5px; letter-spacing: 0.09em; }
  .boxes li { flex-direction: column; gap: 2px; }
  .stub > span:first-child { white-space: nowrap; }
  .slip--victor .stub { flex-direction: column; align-items: flex-start; gap: 8px; }
  table { min-width: 440px; }
}
