/* McMullen Direct home: only what sits inside a visual. Everything else is assets/system.css. */

.facts > div { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.facts > div:last-child { padding-bottom: 0; }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; text-wrap: pretty; }
.facts .is-phone, .facts__ic { display: none; }

/* hero: the booking window on Long Sands */
.hero--centred .hero__lead { color: var(--ink); }
/* its pause button stands on the sky, clear of the fade at the foot */
.hero__window > .loop-pause.loop-pause { top: 12px; bottom: auto; }
.hero__window > .hero__ground { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.tp { --fx-bg: #ffffff; --fx-surface: #f4f4f3; --fx-ink: #0a0a0a; --fx-muted: #6a6a6a; --fx-accent: #1b6235; --fx-accent-ink: #ffffff; overflow: hidden; border-radius: 12px; }
.tp__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; }
.tp__bar b, .tp__app { font-weight: 500; color: var(--u-ink); }
.tp__body { display: grid; grid-template-columns: 5fr 8fr; }
.tp__list { padding: 8px; border-right: 1px solid var(--u-line); }
.tp__list li { display: grid; grid-template-columns: 48px 1fr; padding: 8px 10px; border-radius: 8px; }
.tp__list time { grid-row: span 2; color: var(--u-muted); font-variant-numeric: tabular-nums; }
.tp__list b { font-weight: 500; }
.tp__list span { color: var(--u-muted); }
.tp__list .is-on { background: var(--u-tint); }
.tp__list .is-on :is(time, span) { color: var(--u-accent-text); }
.tp__open { padding: 10px 20px 20px; }
.tp__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 6px; }
.tp__head b { font-size: 16px; font-weight: 500; }
.tp__head span { color: var(--u-muted); }
.tp__jobs li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; height: 32px; border-top: 1px solid var(--u-line); }
.tp__jobs i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--u-accent); color: var(--u-accent-ink); }
.tp__jobs i svg { width: 14px; height: 14px; }
.tp__jobs em { font-style: normal; color: var(--u-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .tp__body { grid-template-columns: 1fr; }
  .tp__list, .tp__app { display: none; }
  .tp__open { padding: 10px 14px 14px; }
  .tp__head { flex-wrap: wrap; gap: 0 10px; padding-bottom: 6px; }
  .tp__jobs li { height: 30px; }
}

/* Puppeteer's board */
.pb.ui { display: flex; flex-direction: column; margin-top: var(--s-7); overflow: hidden; background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.pb__bar { display: flex; flex: none; align-items: center; gap: 20px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; }
.pb__bar b { margin-right: 8px; font-size: 14px; font-weight: 600; color: var(--u-ink); }
.pb__bar .is-on { color: var(--u-ink); font-weight: 500; }
.pb__bar em { padding: 5px 12px; border-radius: 8px; background: var(--u-accent); color: var(--u-accent-ink); font-style: normal; font-weight: 500; }
.pb__cols { display: grid; flex: 1 1 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-height: 0; padding: 12px 12px 0; background: var(--u-fill); }
.pb__col { min-width: 0; overflow: hidden; }
.pb.ui { position: relative; }
.pb.ui::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; background: linear-gradient(transparent, var(--u-fill)); pointer-events: none; }
.pb__head { display: flex; justify-content: space-between; padding: 4px 4px 10px; }
.pb__head b { font-weight: 500; }
.pb__head span { color: var(--u-muted); }
.pb__col ul { display: grid; gap: 10px; }
.pb-card { padding: 9px 14px; border: 1px solid var(--u-border); border-radius: 10px; background: var(--u-bg); }
.pb-card__top, .pb-card__row { display: flex; justify-content: space-between; gap: 8px; }
.pb-card__top b { font-size: 14px; font-weight: 500; }
.pb-card__rk { color: var(--u-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-card__row { margin-top: 6px; color: var(--u-muted); white-space: nowrap; }
.pb-lbs { padding: 0 7px; border-radius: 6px; background: var(--u-tint); color: var(--u-accent-text); font-weight: 500; }
.pb-card svg { width: 18px; height: 18px; color: var(--u-accent-text); }
.pb-card__foot { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--u-line); }
@media (max-width: 1023px) {
  .pb__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 480px; }
  .pb__col.is-ext { display: none; }
}
@media (max-width: 639px) {
  .pb.ui { margin-top: var(--s-6); }
  .pb__cols { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pb__col:not(.is-first) { display: none; }
  .pb__bar { gap: 14px; }
  .pb__bar span:not(.is-on), .pb__bar em { display: none; }
}

/* YAFFA's ledger and the Paperless search */
#back-office .panel { --p-h: 300px; }
.lg, .dc { width: 100%; overflow: hidden; }
.lg__rows li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .7fr) auto; gap: 12px; align-items: center; height: 44px; padding: 0 16px; border-top: 1px solid var(--u-line); white-space: nowrap; color: var(--u-muted); }
.lg__rows li:first-child, .dc__rows li:first-child { border-top: 0; }
.lg__rows b { font-weight: 500; color: var(--u-ink); }
.lg__rows em { margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: var(--u-tint); color: var(--u-accent-text); font-style: normal; font-size: 12px; }
.lg__rows strong { min-width: 64px; text-align: right; font-weight: 500; color: var(--u-ink); font-variant-numeric: tabular-nums; }
.lg__rows .is-in { color: var(--u-accent-text); }
.dc__find { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--u-line); }
.dc__find b { font-size: 14px; font-weight: 500; }
.dc__find .ui-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.dc__rows li { display: grid; grid-template-columns: 20px minmax(0, 1.5fr) minmax(0, 1fr) 84px; gap: 12px; align-items: center; height: 52px; padding: 0 16px; border-top: 1px solid var(--u-line); white-space: nowrap; color: var(--u-muted); }
.dc__rows b { overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--u-ink); }
.dc__rows em { justify-self: end; padding: 2px 8px; border-radius: 6px; background: var(--u-fill-2); color: var(--u-text-2); font-style: normal; font-size: 12px; }
@media (max-width: 1279px) { .lg__rows li { grid-template-columns: minmax(0, 1fr) auto; } .lg__rows span { display: none; } .dc__rows li { grid-template-columns: 20px minmax(0, 1fr) 84px; } .dc__rows span { display: none; } }
@media (max-width: 639px) { #back-office .panel { --p-h: 420px; } }

/* Treasurer Pro's connections */
.tp-hub { border-radius: var(--r-lg); height: 100%; min-height: 420px; }
.tp-hub > .dg { position: absolute; inset: 0; }
/* a small laptop: wide enough for the diagram to keep its names */
@media (min-width: 1024px) and (max-width: 1279px) { #treasurer-pro .tp-hub { grid-column: 6 / -1; } }
@media (max-width: 1279px) { :is(#treasurer-pro, #anthony, #method) .fill { flex: 1 0 auto; } }
@media (max-width: 639px) {
  #treasurer-pro .tp-hub { display: none; }
  /* a phone has no room for the diagram's names: the same six, with their icons, stand in for it */
  .facts { padding: var(--s-1) var(--s-4); border: 14px solid #cdd6c6; border-radius: var(--r-lg); background: #fff; }
  .facts > div, .facts .is-phone { position: relative; display: block; padding: var(--s-3) 0 var(--s-3) 36px; }
  .facts > div:first-child { border-top: 0; }
  .facts > div:last-child { padding-bottom: var(--s-3); }
  .facts dd { color: var(--muted); font-size: 15px; line-height: 22px; }
  .facts__ic { position: absolute; left: 0; top: 15px; display: block; width: 20px; height: 20px; }
}

/* race night photographs and figures */
.rn { margin-top: var(--s-7); }
.rn > .frame { height: 100%; min-height: 0; }
.rn__stats { margin-top: var(--s-5); }
.rn__stats > div { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.rn__stats p + p { margin-top: var(--s-1); }
.rn__tall .frame__img { object-position: 50% 18%; }
@media (min-width: 640px) and (max-width: 1023px) {
  .rn { grid-template-rows: 340px; }
  .rn > .frame:nth-child(1) { grid-column: span 5; } .rn > .frame:nth-child(2) { grid-column: span 4; } .rn > .frame:nth-child(3) { grid-column: span 3; }
  .rn__stats > div { grid-column: span 4; }
}
@media (max-width: 639px) {
  .rn { margin-top: var(--s-6); grid-template-rows: 5fr 5fr 8fr; }
  .rn > .frame { grid-column: 1 / -1; }
  .rn__stats > div { grid-column: span 4; padding-top: var(--s-3); }
  .rn__stats p + p { font-size: 14px; line-height: 20px; }
}

/* FundOur.Group's three games */
.fg .panel { --p-h: 300px; }
.fg__box { position: absolute; z-index: 1; inset: var(--s-5) var(--s-5) 0; overflow: hidden; border-bottom: 0; border-radius: 12px 12px 0 0; }
.fg__nums { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 16px; }
.fg__nums i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--u-fill-2); font-style: normal; font-variant-numeric: tabular-nums; }
.fg__nums .is-on { background: var(--u-accent); color: var(--u-accent-ink); font-weight: 500; }
.fg__let { padding: 20px 16px 0; }
.fg__draw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fg__draw i { display: grid; place-items: center; height: 72px; border-radius: 10px; background: var(--u-accent); color: var(--u-accent-ink); font: 500 32px/1 var(--font-display); font-style: normal; }
.fg__let ul { margin-top: 12px; }
.fg__let li { display: grid; grid-template-columns: 1fr auto 64px; gap: 12px; align-items: center; height: 44px; border-top: 1px solid var(--u-line); }
.fg__let li:first-child { border-top: 0; }
.fg__let b { font-weight: 500; }
.fg__let span { font-family: var(--font-mono); }
.fg__let em { color: var(--u-accent-text); font-style: normal; font-weight: 500; text-align: right; }
.fg__win li { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 4px; padding: 5px 12px; border-top: 1px solid var(--u-line); text-align: center; }
.fg__win li:first-child { border-top: 0; }
.fg__win b { padding: 7px 4px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.fg__win .is-on { background: var(--u-accent); color: var(--u-accent-ink); }
.fg__win span { color: var(--u-muted); }
@media (min-width: 640px) and (max-width: 1023px) {
  .grid.fg { flex: none; row-gap: var(--s-5); }
  .fg > .card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: var(--s-6); }
  .fg > .card > :is(h3, p) { grid-column: 1; }
  .fg > .card > .panel { --p-h: 196px; grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
@media (max-width: 639px) { .fg .panel { --p-h: 260px; } }

/* a hall booking, before and after */
.bf-panel { display: flex; flex-direction: column; margin-top: var(--s-7); }
.bf.ui { position: relative; z-index: 1; display: flex; flex: 1 0 auto; flex-direction: column; width: auto; padding: var(--s-2) var(--s-6); border-radius: var(--r-lg); background: #ffffff; }
.bf__row { display: grid; flex: 1 1 auto; grid-template-columns: 4fr 5fr 6fr; column-gap: var(--gutter); align-items: center; min-height: 56px; border-top: 1px solid var(--line); font-size: 18px; }
.bf__row > :nth-child(1) { font-weight: 500; }
.bf__row > :nth-child(2) { color: var(--muted); }
.bf__row > :nth-child(3) { display: flex; align-items: center; gap: var(--s-3); }
.bf__row--head { flex: none; min-height: 48px; border-top: 0; font-size: 16px; }
.bf__row--head > span:nth-child(n) { font-weight: 500; color: var(--ink); }
.bf__row i { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.bf__row i svg { width: 18px; height: 18px; }
@media (max-width: 639px) {
  .bf-panel { margin-top: var(--s-5); }
  .bf.ui { padding: 0 var(--s-4); }
  .bf__row { grid-template-columns: 1fr; align-content: center; gap: 2px; padding-block: var(--s-2); font-size: 16px; line-height: 22px; }
  .bf__row > :nth-child(3) { gap: var(--s-2); }
  .bf__row i { width: 20px; height: 20px; }
  .bf__row--head { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .bf__row--head + .bf__row { border-top: 0; }
}

/* what it runs on */
.st__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }
.legal__marks { order: 3; width: 100%; }

/* three games across from 1024 (the kit's span-4 cards go two up there) */
.fg > .card { grid-column: 1 / -1; }
@media (min-width: 1024px) { .fg > .card { grid-column: auto / span 4; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .facts > div { padding-block: var(--s-3); }
  #anthony .split-col { gap: var(--s-4); }
  #anthony .t-lead { font-size: 18px; }
}
@media (max-width: 639px) {
  .pb-card { padding-block: 8px; }
  .st__row { gap: 6px; }
  .st__row .ic-tile { --tile: 32px; }
}
@media (max-width: 359px) {
  main > .section > .wrap > .fill { flex: 1 0 auto; }
  .nav .nav__bar { gap: 8px; }
  .nav .nav__logo { font-size: 14px; }
  .nav .nav__actions .btn { padding-inline: 6px; font-size: 12px; }
}
/* the legal row reads from the left; a phone's footer keeps the last column (the header's menu has the rest) */
.footer__legal { justify-content: flex-start; }
@media (min-width: 640px) and (max-width: 1023px) { .closing__links .footer__col { grid-column: span 4; } }
@media (max-width: 639px) {
  .closing__links .footer__col:not(:last-child) { display: none; }
  .closing__links .footer__col { grid-column: 1 / -1; }
  .closing__links .footer__col ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
}
