/*
  site.css: the look of the public site.

  The idea: the site is the venue's own front desk. The page is a flat violet
  wall. On it hangs a whiteboard in a metal frame (the day's hours and the
  courts), with paper notices held up by lavender magnets beside it. Violet
  marker draws the lines and numbers, and anything you can tap is a magnet.

  This file dresses the booking page and the simple pages (coming soon, not
  found, something went wrong). The home page keeps the site's original look
  instead, in home.css, by the owner's choice on 15 Nov 2026. The two files
  never load on the same page.

  The colours come from the Smash Pickleball logo, deep violet and lavender,
  used flat. Colour fades, glows, sparkles, and fake 3D edges are left out on
  purpose: they are what makes a site look machine-made.

  Big titles use Archivo, a free font (open licence, see fonts/ARCHIVO-OFL.txt)
  with the same wide, heavy, slanted capitals as the logo. The font files live
  in public/fonts, so the browser never loads anything from another website,
  and Android phones show the same lettering as iPhones.

  Sizes are written for a phone first, then widened for bigger screens.

  Spacing is written the long way (padding-top, margin-left) on purpose.
  The shorter modern spellings are skipped by older iPhones, which would
  leave the page cramped and off-centre there. For the same reason, space
  between items in a row is made with margins: older iPhones ignore "gap"
  in a flexible row (it is fine in a grid, which they understand). Where a
  newer rule such as "overflow-wrap: anywhere" is used, an older rule that
  those iPhones do understand comes just before it.
*/

/* ---------- 1. The logo-style font ---------- */

/* Two files of the same font: the first holds ordinary letters and numbers,
   the second extra symbols such as the peso sign (₱). A browser fetches the
   second only when a page uses one of those symbols. */
@font-face {
  font-family: "Archivo Expanded";
  src: url("/fonts/archivo-expanded-black-italic-latin.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo Expanded";
  src: url("/fonts/archivo-expanded-black-italic-latin-ext.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Colours and other shared values ---------- */

:root {
  /* The wall, the sign above the desk, and the floor */
  --wall: #3d1d8f;
  --wall-deep: #2b1268;
  --floor: #1a0b42;

  /* What hangs on the wall */
  --enamel: #fbfaff;
  --paper: #ffffff;
  --frame: #c3c6ce;

  /* Marker ink, magnets, and words */
  --ink: #34167f;
  --ink-soft: #57478a;
  --grid: #7444d6;
  --magnet: #c4b0f4;
  --magnet-light: #d8cbf9;
  --on-wall: #ffffff;
  --on-wall-soft: #ddd0fa;
  --open: #11704a;
  --practice: #ffc53d;
  /* Red marker: used only to point out a problem in a form, and while online
     booking is paused, for the note on the booking page and the switch box at
     the top of the dashboard. */
  --problem: #b42318;

  /* Shadows always fall downwards, as from the lights above the desk. */
  --hang: 0 12px 28px rgba(16, 6, 46, 0.45);
  --hang-light: 0 8px 18px rgba(16, 6, 46, 0.32);
  --lift: 0 3px 8px rgba(16, 6, 46, 0.3);
  --lift-high: 0 9px 18px rgba(16, 6, 46, 0.34);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo Expanded", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 3. Basics ---------- */

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

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

/* The page is a column: header, the wall, then the footer. The wall grows to
   fill the screen, so on a short page the footer (the floor) still sits at
   the bottom instead of leaving bare wall below it. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--on-wall);
  background: var(--wall);
  caret-color: var(--ink);
}

/* Text picked up with a finger or the mouse is highlighted in lavender. */
::selection {
  background: var(--magnet);
  color: var(--floor);
}

body > main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

svg {
  display: block;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* A clear outline for people who move around with the keyboard: lavender on
   the violet wall, violet marker on the white board and notices. */
:focus-visible {
  outline: 3px solid var(--magnet);
  outline-offset: 3px;
  border-radius: 3px;
}

.board :focus-visible,
.sheet :focus-visible {
  outline-color: var(--ink);
}

/* Words for screen readers only: read aloud, but not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The space either side is 1rem, but never more than 5% of the screen each
   side, so very large text on a small phone doesn't eat the room in between. */
.wrap {
  width: calc(100% - 2rem);
  width: calc(100% - min(2rem, 10vw));
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.wrap--narrow {
  max-width: 38rem;
}

/* Hidden above the page, then moved up by its own full height as well, so
   however tall large text makes it, none of it shows until a keyboard user
   reaches it. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  transform: translateY(-100%);
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
  transform: none;
}

/* ---------- 4. Magnets: everything you can tap ---------- */

/* A magnet is a flat strip stuck to the board, with crisp corners like a
   real magnetic label. It lifts off the board a little when the pointer is
   over it, or while a finger presses it. */
.magnet {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  background: var(--magnet);
  color: var(--floor);
  text-decoration: none;
  box-shadow: var(--lift);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

/* A button that is a magnet: phones give buttons their own rounded look,
   which is taken off so it matches the link magnets exactly. */
button.magnet {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.magnet:hover,
.magnet:active {
  transform: translateY(-2px);
  background: var(--magnet-light);
  box-shadow: var(--lift-high);
  color: var(--floor);
}

.magnet__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* On a board (the admin pages), a magnet's words and padding stop growing at
   a share of the board's width, so "SAVE BUSINESS DETAILS" still fits a
   small phone set to very large text. At ordinary sizes nothing changes. */
.board .magnet {
  padding-left: 1rem;
  padding-left: min(1rem, 7cqi);
  padding-right: 1rem;
  padding-right: min(1rem, 7cqi);
}

.board .magnet__title {
  font-size: 1.05rem;
  font-size: min(1.05rem, 9cqi);
}

.board .magnet__note {
  font-size: 0.875rem;
  font-size: min(0.875rem, 6cqi);
}

/* The small magnet in the header. */
.magnet--small {
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
}

.magnet--small .magnet__title {
  font-size: 0.95rem;
}

/* A white magnet with a lavender edge, for the quieter choice beside the
   main one: "Log out", "Remove logo". */
.magnet--quiet,
.magnet--quiet:hover,
.magnet--quiet:active {
  border: 2px solid var(--magnet);
  background: var(--paper);
  color: var(--ink);
}

/* A magnet with a line of explanation under its title, as on the admin dashboard. */
.magnet__note {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ---------- 5. Practice banner ---------- */

/* Yellow and amber stripes, like tape around work in progress. */
.practice-banner {
  padding: 0.5rem 1rem;
  background: repeating-linear-gradient(-45deg, var(--practice) 0 16px, #ffb300 16px 32px);
  color: #1c1330;
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- 6. Header: the sign above the desk ---------- */

.site-header {
  background: var(--wall-deep);
  color: var(--on-wall);
}

/* The row may wrap onto two lines, so very small phones and people who use
   large text never get a page that scrolls sideways. */
.site-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.wordmark {
  display: inline-block;
  margin-right: 1rem;
  color: var(--magnet);
  line-height: 1;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--magnet-light);
}

/* The owner's own logo, once uploaded, in place of the name in letters. It
   keeps its shape and never grows past the header's height, or past part of
   a narrow screen when the visitor uses very large text. */
.wordmark--logo {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.wordmark__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 7rem;
  max-width: min(7rem, 35vw);
  max-height: 2.75rem;
  max-height: min(2.75rem, 14vw);
}

.wordmark__top {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

/* "PICKLEBALL" in thin spaced capitals with a rule either side, as in the logo. */
.wordmark__bottom {
  display: flex;
  align-items: center;
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.wordmark__bottom::before,
.wordmark__bottom::after {
  content: "";
  flex: 1 0 0.35rem;
  height: 1px;
  background: currentColor;
}

.wordmark__bottom::before {
  margin-right: 0.4rem;
}

/* The spacing after the last letter already leaves a small gap here. */
.wordmark__bottom::after {
  margin-left: 0.06rem;
}

/* With very large text the Book magnet moves under My booking, at the
   right, instead of running past the edge of the screen. */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-right: 0.35rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  color: var(--on-wall);
  font-weight: 700;
  text-decoration: none;
}

.site-nav__link:hover {
  text-decoration: underline;
}

/* The admin pages' "Log out" button sits in its own little form. */
.site-nav__form {
  display: inline-flex;
  margin: 0;
}

/* ---------- 7. The wall ---------- */

.wall {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

.wall__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* ---------- 8. The whiteboard ---------- */

/* White enamel in a plain aluminium frame. The soft shadow below it is what
   lifts it off the wall. The board measures its own width, so the big words
   across its top can be sized to fit it (see below). */
.board {
  position: relative;
  container-type: inline-size;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 0.85rem;
  padding-left: min(0.85rem, 4.25vw);
  padding-right: 0.85rem;
  padding-right: min(0.85rem, 4.25vw);
  border: 0.5rem solid var(--frame);
  border-width: min(0.5rem, 2.5vw);
  border-radius: 6px;
  background: var(--enamel);
  color: var(--ink);
  box-shadow: var(--hang);
}

.board__title {
  line-height: 1;
}

/* The big word written across the top of the board: the day, such as
   "Today", or "Closed". */
.board__when {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* The big word is sized from the board's own width ("cqi" is one
   hundredth of it), so the longest word always fits on one line: on a small
   phone, beside "How booking works" on a desktop, and when a visitor has set
   their phone to very large text. The longest day name, "Wednesday", is about
   8.5 letter-heights wide; "Today" is 4.5. The first two lines of each rule
   are for older phones that can't measure the board. */
.board__when {
  font-size: 1.75rem;
  font-size: clamp(1.75rem, 8.8vw, 4.5rem);
  font-size: min(11cqi, 4.5rem);
}

.board__when--short {
  font-size: 2.75rem;
  font-size: clamp(2.75rem, 15vw, 5.25rem);
  font-size: min(20.5cqi, 5.25rem);
}

.board__at {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.board__date {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.status {
  margin-top: 0.15rem;
  font-weight: 800;
}

.status--open {
  color: var(--open);
}

.status--closed {
  color: var(--ink-soft);
}

.board__note {
  margin-top: 1rem;
}

.board__empty {
  margin-top: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 3px solid var(--ink);
  font-weight: 700;
}

/* The grid of hours and courts, drawn in violet marker. Its outer edge is
   left open, the way lines are drawn on a board. */
.board__grid {
  width: 100%;
  margin-top: 1rem;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

/* Very large text on a small phone: the grid's hour column, cell padding and
   words stop growing at a share of the board's width ("cqi" is one hundredth
   of it), so the court columns keep room for their names. Each rule's second
   size line does this. At ordinary text sizes the plain size is always the
   smaller one, so nothing changes. */

/* Narrow on a phone, so the court columns keep room for their names. */
.board__hour-col {
  width: 5.25rem;
  width: min(5.25rem, 31cqi);
}

.board__grid th,
.board__grid td {
  height: 2.5rem;
  padding: 0.3rem 0.4rem;
  padding-left: min(0.4rem, 2.4cqi);
  padding-right: min(0.4rem, 2.4cqi);
  border: 2px solid var(--grid);
  text-align: left;
  vertical-align: middle;
}

.board__grid tr > :first-child {
  border-left: 0;
}

.board__grid tr > :last-child {
  border-right: 0;
}

.board__grid tbody tr:last-child > * {
  border-bottom: 0;
}

.board__grid thead th {
  padding-bottom: 0.5rem;
  border-top: 0;
  border-bottom: 3px solid var(--ink);
  vertical-align: bottom;
}

.board__court {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-size: min(0.875rem, 5cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.board__rate {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-size: min(0.8125rem, 4.6cqi);
  font-weight: 700;
}

.board__grid tbody th {
  font-size: 0.9375rem;
  font-size: min(0.9375rem, 6.3cqi);
  font-weight: 700;
  white-space: nowrap;
}

/* Hours already over today: one row, crossed out with a marker line that
   draws itself once when the page opens. The slight slope is the hand. */
.board__row--passed th {
  color: var(--ink-soft);
}

.board__passed {
  position: relative;
  display: inline-block;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.board__passed::after {
  content: "";
  position: absolute;
  left: -0.25rem;
  right: -0.25rem;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(-0.8deg);
  transform-origin: left center;
  animation: marker-stroke 0.6s var(--ease-out) 0.2s both;
}

@keyframes marker-stroke {
  from {
    transform: rotate(-0.8deg) scaleX(0);
  }

  to {
    transform: rotate(-0.8deg) scaleX(1);
  }
}

/* The hour happening now: circled in marker, drawn just after the strike. */
.board__hour {
  position: relative;
  display: inline-block;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

.marker-circle {
  position: absolute;
  left: -0.6rem;
  top: -0.55rem;
  width: calc(100% + 1.2rem);
  height: calc(100% + 1.1rem);
  max-width: none;
  overflow: visible;
  animation: marker-circle 0.6s var(--ease-out) 0.8s both;
}

/* The circle is revealed from left to right, like a pen going round. */
@keyframes marker-circle {
  from {
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }

  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

/* "now" sits under the circled hour at every width, clear of the circle and
   of the grid line beside it. */
.board__now {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-size: min(0.75rem, 5cqi);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

/* ---------- 8b. Picking hours (Stage 3) ---------- */

/* The row of day magnets on the wall above the board: seven days at a time,
   the chosen one pressed in dark violet (the owner's choice, 15 Nov 2026).
   The row measures its own width: seven across when it has room for them,
   counted in text widths, otherwise four and three, so a small phone or
   very large text never squeezes a day's name. */
.days {
  container-type: inline-size;
  margin-bottom: 1rem;
}

.days__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

/* Seven across: each tile is narrow, so its words take a smaller share. */
@container (min-width: 19.5em) {
  .days__list {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .day__weekday {
    font-size: 0.75rem;
    font-size: min(0.75rem, 3.7cqi);
  }

  .day__number {
    font-size: 1.25rem;
    font-size: min(1.25rem, 6.5cqi);
  }
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  min-height: min(3.25rem, 20cqi);
  padding: 0.35rem 0.15rem;
  background: var(--magnet);
  color: var(--floor);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: var(--lift);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.day:hover,
.day:active {
  transform: translateY(-2px);
  background: var(--magnet-light);
  box-shadow: var(--lift-high);
}

/* Four across (a small phone, or very large text): the words may take a bigger share. */
.day__weekday {
  font-size: 0.75rem;
  font-size: min(0.75rem, 5.5cqi);
}

.day__number {
  margin-top: 0.15rem;
  font-size: 1.25rem;
  font-size: min(1.25rem, 9cqi);
}

/* The day on the board: pressed in, dark violet with a lavender edge. */
.day--current,
.day--current:hover,
.day--current:active {
  transform: none;
  border: 2px solid var(--magnet);
  background: var(--floor);
  color: var(--on-wall);
  box-shadow: none;
}

/* A day the courts are closed: still there to look at, but quieter. */
.day--closed {
  background: var(--wall-deep);
  color: var(--on-wall-soft);
  box-shadow: none;
}

.days__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.days__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  color: var(--on-wall);
  font-weight: 700;
  text-decoration: none;
}

.days__link:hover {
  text-decoration: underline;
}

.days__link--later {
  margin-left: auto;
}

/* A short note at the top of the board, such as "that hour was just taken". */
.board__message {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  font-weight: 700;
  /* A long GCash reference number may break, rather than stick out of the
     board on a small phone with very large text (Stage 10's phone check). */
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* A free hour is a magnet stuck in its square. Tapping it ticks the box
   hidden inside, and the magnet turns dark violet and says "Picked". The
   words stop growing at a share of the board's width, as the grid's do. */
.board__grid .board__slot {
  padding: 0.2rem;
}

.slot {
  position: relative;
  display: block;
  cursor: pointer;
}

/* The tick box itself is invisible but still there, so keyboards and screen
   readers use it as an ordinary tick box. */
.slot__box {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.slot__face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.3rem 0.2rem;
  border: 2px solid transparent;
  background: var(--magnet);
  color: var(--floor);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-size: min(0.8rem, 4.6cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: var(--lift);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.slot:hover .slot__face {
  transform: translateY(-2px);
  background: var(--magnet-light);
  box-shadow: var(--lift-high);
}

.slot__box:focus-visible + .slot__face {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.slot__picked {
  display: none;
  align-items: center;
}

.slot__box:checked + .slot__face,
.slot:hover .slot__box:checked + .slot__face {
  background: var(--ink);
  color: var(--paper);
}

.slot__box:checked + .slot__face .slot__free {
  display: none;
}

.slot__box:checked + .slot__face .slot__picked {
  display: inline-flex;
}

/* A tick drawn in front of "Picked". */
.slot__picked::before,
.pick-grid__picked::before {
  content: "";
  flex: none;
  width: 0.35em;
  height: 0.7em;
  margin-right: 0.45em;
  border: solid currentColor;
  border-width: 0 0.16em 0.16em 0;
  transform: translateY(-0.1em) rotate(45deg);
}

/* An hour that can't be picked says why in words: "Booked", or "Walk in"
   (free, but too soon to book online), which is in Open Green. */
.slot-word {
  display: block;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-size: min(0.875rem, 4.8cqi);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.slot-word--walk-in {
  color: var(--open);
}

/* Stage 12: while online booking is paused, a free hour is written "Free"
   in Marker Ink, with nothing to tap, so it still stands out from Booked. */
.slot-word--free {
  color: var(--ink);
}

/* The tray along the bottom edge of the board: an aluminium strip running
   right to the frame, holding what is picked and the Continue magnet. */
.tray {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: -1rem;
  margin-left: -0.85rem;
  margin-left: calc(-1 * min(0.85rem, 4.25vw));
  margin-right: -0.85rem;
  margin-right: calc(-1 * min(0.85rem, 4.25vw));
  padding-top: 0.6rem;
  padding-bottom: 0.75rem;
  padding-left: 0.85rem;
  padding-left: min(0.85rem, 4.25vw);
  padding-right: 0.85rem;
  padding-right: min(0.85rem, 4.25vw);
  background: var(--frame);
  color: var(--floor);
}

.tray__pick {
  flex: 1 1 8.5rem;
  min-width: 0;
  margin-right: 0.75rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.tray__go {
  flex: none;
  margin-top: 0.35rem;
  margin-bottom: 0.1rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.board .tray__go .magnet__title {
  font-size: 0.95rem;
  font-size: min(0.95rem, 8cqi);
}

/* On a screen that is tall for its text size, the tray stays at the bottom
   of the screen while the hours scroll past, then settles at the end of the
   board. Measured in "em" (text heights), a phone held sideways or set to
   very large text does not count as tall, so there the tray never covers
   the board. While the tray does its job, the header keeps only the name. */
@media (min-height: 36em) {
  .tray {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
  }

  .page-book--picking .site-nav {
    display: none;
  }
}

/* ---------- 9. Paper notices ---------- */

/* A sheet of paper held to the wall by a lavender magnet. Like the board, it
   measures its own width, so its title can be sized to fit it, and its
   sides stop growing at a share of the screen when the text is very large. */
.sheet {
  position: relative;
  container-type: inline-size;
  padding: 1.75rem 1.25rem 1.5rem;
  padding-left: min(1.25rem, 6.25vw);
  padding-right: min(1.25rem, 6.25vw);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--hang-light);
  /* A long email address may break, rather than stick out of the paper on a
     small phone with very large text (Stage 10's phone check). */
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.sheet::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: -0.75rem;
  border-radius: 50%;
  background: var(--magnet);
  box-shadow: var(--lift);
}

/* With very large text the title's words stop growing at a share of the
   sheet's width: as large as an eight-letter word allows, about the size of
   the text below it, so a word such as "BEFORE" never breaks in the middle. */
.sheet__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-size: min(1.35rem, 13cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.sheet p + p {
  margin-top: 0.75rem;
}

.note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Notes meant only for the owner while the site is being built. */
.note--builder {
  padding: 0.6rem 0.75rem;
  border: 2px dashed #c98a00;
  border-radius: 3px;
  color: #5c3d00;
}

/* The numbered steps: big marker numerals, because the order matters. */
.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.6rem;
  counter-increment: step;
}

.steps li + li {
  margin-top: 0.9rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
}

/* Simple pages: coming soon, not found, something went wrong */

.wall--simple {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.sheet--page {
  padding-top: 2rem;
}

.sheet--page .sheet__title {
  font-size: 1.85rem;
  font-size: clamp(1.85rem, 7vw, 2.5rem);
  font-size: min(clamp(1.85rem, 7vw, 2.5rem), 12cqi);
}

.sheet--page .magnet {
  margin-top: 0.75rem;
}

/* ---------- 9a. The policy pages (Stage 10) ---------- */

/* Terms, Privacy, Refund policy, House rules and Contact: each a tall paper
   notice pinned on the wall at a comfortable reading width, like the rules
   pinned up at a real venue, with a row of magnets above it to go between
   them. */
.wrap--policy {
  max-width: 44rem;
}

.policy-nav {
  container-type: inline-size;
  margin-bottom: 1.75rem;
}

.policy-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@container (min-width: 24em) {
  .policy-nav__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (min-width: 40em) {
  .policy-nav__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* With very large text the words stop growing at a share of the row, so
   "PRIVACY" never breaks in the middle on a small phone. */
.policy-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  height: 100%;
  padding: 0.4rem 0.5rem;
  background: var(--magnet);
  color: var(--floor);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-size: min(0.8rem, 5cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  box-shadow: var(--lift);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.policy-nav__link:hover,
.policy-nav__link:active {
  transform: translateY(-2px);
  background: var(--magnet-light);
  box-shadow: var(--lift-high);
}

/* The page you are on: pressed in, dark violet with a lavender edge, like the chosen day. */
.policy-nav__link--current,
.policy-nav__link--current:hover,
.policy-nav__link--current:active {
  transform: none;
  border: 2px solid var(--magnet);
  background: var(--floor);
  color: var(--on-wall);
  box-shadow: none;
}

.sheet--policy {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.sheet--policy .sheet__title {
  font-size: 1.85rem;
  font-size: clamp(1.85rem, 7vw, 2.5rem);
  font-size: min(clamp(1.85rem, 7vw, 2.5rem), 12cqi);
}

.policy__lead {
  font-size: 1.05rem;
}

/* Each part of a page is ruled off from the one before in violet marker. */
.policy__heading {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--grid);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.sheet--policy p + ul,
.sheet--policy ul + p,
.sheet--policy p + .note {
  margin-top: 0.75rem;
}

/* A point in a list: a short stroke of violet marker before it. */
.policy__list li {
  position: relative;
  padding-left: 1.4rem;
}

.policy__list li + li {
  margin-top: 0.6rem;
}

.policy__list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 0.65rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grid);
}

.policy__changed {
  margin-top: 1.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Practice only: a blank in [square brackets] for the owner to fill in,
   marked like a builder's note. */
.policy__blank {
  padding-left: 0.15em;
  padding-right: 0.15em;
  border-radius: 2px;
  outline: 2px dashed #c98a00;
  background: #fff3cd;
  color: #5c3d00;
}

/* Contact: the ways to reach the venue, then the complaint form on a board below. */
.contact-list {
  margin-top: 1.25rem;
}

.contact-list .who__row + .who__row {
  margin-top: 0.35rem;
}

.contact-hours li + li {
  margin-top: 0.2rem;
}

.policy-board {
  margin-top: 2.5rem;
}

.policy__dti {
  margin-top: 1.75rem;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ---------- 9b. Admin pages: forms written on the board ---------- */

/* The admin pages hang their forms on the same whiteboard as the booking
   page. Boxes to type in are drawn in the board's violet marker; buttons are
   magnets; a problem is pointed out in red marker. */

.wrap--form {
  max-width: 44rem;
}

/* The way back to the dashboard, written on the wall above the board. */
.back-link {
  margin-bottom: 1rem;
  color: var(--on-wall-soft);
  font-size: 0.95rem;
}

.back-link a {
  color: var(--on-wall);
  font-weight: 700;
}

.board--page {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

/* The page's name across the top of the board, sized from the board's own
   width as well, so a long word such as "BUSINESS" fits a small phone at
   any text size. */
.board__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  text-transform: uppercase;
  font-size: 1.85rem;
  font-size: clamp(1.85rem, 7vw, 2.5rem);
  font-size: min(clamp(1.85rem, 7vw, 2.5rem), 13cqi);
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.board__lead {
  max-width: 38rem;
  margin-top: 0.6rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.form {
  margin-top: 1.25rem;
}

.form--after {
  margin-top: 0.75rem;
}

.field + .field,
.field + .check {
  margin-top: 1.1rem;
}

.field__label {
  display: block;
  font-weight: 800;
}

.field__hint {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  /* A long email address in a hint breaks rather than widening the page. */
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.field__problem {
  margin-top: 0.3rem;
  color: var(--problem);
  font-weight: 700;
}

/* A box drawn in violet marker. Text inside is 16 pixels or more, so iPhones
   don't zoom in when it is tapped. */
.field__input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border: 2px solid var(--grid);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field__input--tall {
  min-height: 5.5rem;
  line-height: 1.45;
  resize: vertical;
}

.field__input:hover {
  border-color: var(--ink);
}

.field__input:focus-visible {
  border-color: var(--ink);
  border-radius: 2px;
  outline-offset: 2px;
}

.field--problem .field__input,
.week__day--problem .field__input {
  border-color: var(--problem);
}

/* Choices drawn the same way, with a marker arrow instead of each phone's own. */
select.field__input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2334167f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem 1.1rem;
}

/* A price box, with the peso sign in front. */
.money {
  display: flex;
  align-items: stretch;
  margin-top: 0.45rem;
}

.money__sign {
  display: flex;
  flex: none;
  align-items: center;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  border: 2px solid var(--grid);
  border-right-width: 0;
  border-radius: 2px 0 0 2px;
  background: var(--enamel);
  font-weight: 800;
}

.money .field__input {
  flex: 1 1 auto;
  margin-top: 0;
  border-radius: 0 2px 2px 0;
  font-variant-numeric: tabular-nums;
}

/* A tick box with its words beside it. The whole line can be tapped. */
.check {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0.65rem;
  accent-color: var(--ink);
}

/* The words beside a tick box, in their own span so they can wrap, even a
   long word such as "confirmation" with very large text. */
.check__text {
  min-width: 0;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Choosing a picture: the phone's own file chooser, with its button drawn as a white magnet. */
.field__file {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.5rem;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-size: min(1rem, 7cqi);
  white-space: normal;
}

.field__file::-webkit-file-upload-button {
  min-height: 2.75rem;
  margin-right: 0.75rem;
  padding-left: 0.9rem;
  padding-left: min(0.9rem, 6cqi);
  padding-right: 0.9rem;
  padding-right: min(0.9rem, 6cqi);
  border: 2px solid var(--magnet);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.field__file::file-selector-button {
  min-height: 2.75rem;
  margin-right: 0.75rem;
  padding-left: 0.9rem;
  padding-left: min(0.9rem, 6cqi);
  padding-right: 0.9rem;
  padding-right: min(0.9rem, 6cqi);
  border: 2px solid var(--magnet);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.form__submit {
  margin-top: 1.5rem;
}

/* "Saved." after a change went through: a note in marker, with a drawn tick. */
.form-note {
  display: flex;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  font-weight: 700;
}

.form-note__mark {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  margin-right: 0.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* What went wrong, in red marker: one line on the login page, or the list
   of things to fix above a form, each linked to its box. */
.form-problem,
.form-problems {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--problem);
  border-radius: 2px;
  background: var(--paper);
  color: var(--problem);
  font-weight: 700;
}

.form-problems__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.form-problems__list {
  margin-top: 0.4rem;
  padding-left: 1.25rem;
  list-style: disc;
  font-weight: 600;
}

.form-problems__list a {
  color: var(--problem);
}

/* One court, add-on or picture on a settings page, ruled off from the next
   in marker, the way rows are ruled on the board. */
.entry {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--grid);
}

.entry--new {
  border-top: 3px solid var(--ink);
}

.entry--empty {
  color: var(--ink-soft);
  font-weight: 700;
}

/* The test buttons on the Messages page (Stage 11): each button, where it
   sends, and what became of the last test, one under the other. */
.try + .try {
  margin-top: 1.5rem;
}

.try .field__hint {
  margin-top: 0.4rem;
}

.try__last {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  /* Resend's and Semaphore's numbers are long, with no spaces to break at. */
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.entry__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-size: min(1.05rem, 7cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Opening hours: one row per day. The boxes stand one above the other on a
   narrow board, and side by side once the board is wide enough for them
   (measured in text widths, so very large text keeps them stacked). The
   heavy rule goes above the whole week, not on a day: a line on a day's own
   box would be drawn through its name. */
.week__day {
  min-width: 0;
  margin: 0;
  padding: 1.1rem 0 1rem;
  border: 0;
  border-bottom: 2px solid var(--grid);
}

.week {
  border-top: 3px solid var(--ink);
}

/* A form group's title normally sits on its top edge, with the group's
   padding below it. Floating it makes it an ordinary line inside the
   padding instead, so the name sits close to its own boxes. */
.week__name {
  float: left;
  width: 100%;
  margin-bottom: 0.45rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-size: min(1rem, 7cqi);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.week__problem {
  clear: both;
  margin-bottom: 0.4rem;
}

.week__times {
  display: grid;
  clear: both;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem 0.75rem;
}

/* A day ticked "Closed all day" keeps its hours for when it reopens. They
   are shown faded, with a line saying so, so the day can't be read as open.
   (Phones too old to understand this rule simply show them as normal.) */
.week__kept {
  display: none;
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.week__day:has(.week__closed input:checked) .week__time {
  opacity: 0.45;
}

.week__day:has(.week__closed input:checked) .week__kept {
  display: block;
}

.week__time {
  display: block;
}

.week__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.week__time .field__input {
  margin-top: 0.25rem;
}

.week__closed {
  margin-top: 0;
}

@container (min-width: 17em) {
  .week__times {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .week__closed {
    grid-column: 1 / -1;
  }
}

@container (min-width: 36em) {
  .week__times {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }

  .week__closed {
    grid-column: auto;
  }
}

/* The dashboard's settings: a magnet for each page, two across on a wide board. */
.admin-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.magnet--menu {
  display: flex;
  width: 100%;
  min-height: 4rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

@container (min-width: 30em) {
  .admin-menu {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* Two across, the magnets in a row are the same height, with their words
     at the top so the titles line up (the owner's choice of 21 Nov 2026: a
     magnet with a one-line note used to stand shorter than the one beside
     it). Each place in the list holds one magnet link, which stretches to
     fill it. Lists kept one to a line are left as they were. */
  .admin-menu:not(.admin-menu--single) > li {
    display: flex;
  }

  .admin-menu:not(.admin-menu--single) > li > .magnet--menu {
    justify-content: flex-start;
  }
}

/* "Before the live site opens": a list ticked off in marker. */
.checklist {
  margin-top: 1rem;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
}

.checklist__item + .checklist__item {
  margin-top: 0.55rem;
}

.checklist__mark {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.6rem;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checklist__item--done .checklist__mark path {
  stroke-width: 2.8;
}

.checklist__label {
  padding-top: 0.05rem;
  font-weight: 700;
}

.checklist__item--done .checklist__label {
  color: var(--ink-soft);
  font-weight: 600;
}

/* How each picture looks now. The logo is shown on the header's purple, as
   visitors will see it; the QR code at a size a phone can scan. */
.picture-preview {
  margin: 0.9rem 0 0;
}

.picture-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

.picture-preview--sign {
  padding: 1rem;
  border-radius: 2px;
  background: var(--wall-deep);
}

.picture-preview--sign img {
  width: auto;
  max-height: 4rem;
}

/* The court photo is previewed in both shapes the home page uses, so the
   owner sees exactly what customers will see on a phone and on a computer. */
.picture-preview__shape {
  margin: 0;
}

.picture-preview__shape + .picture-preview__shape {
  margin-top: 0.75rem;
}

.picture-preview__shape img {
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Shown about as wide as a phone screen. */
.picture-preview .picture-preview__phone {
  max-width: 20rem;
  aspect-ratio: 16 / 9;
}

.picture-preview__computer {
  aspect-ratio: 3 / 1;
}

.picture-preview__shape figcaption {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
}

.picture-preview--qr img {
  width: 12rem;
  border: 2px solid var(--grid);
  background: var(--paper);
}

.picture-preview__size {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.picture-preview--sign .picture-preview__size {
  color: var(--on-wall-soft);
}

.picture-preview--none {
  padding: 0.9rem 1rem;
  border: 2px solid var(--grid);
  border-radius: 2px;
  color: var(--ink-soft);
  font-weight: 600;
}

.gcash-now__name {
  margin-top: 0.9rem;
}

.site-footer--admin {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* ---------- 9c. Booking steps: your details, check and hold, the booking ---------- */

/* What was picked, at the top of the details and last-look pages, ruled off
   in marker like a line on the board. */
.pick {
  margin-top: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-top: 3px solid var(--ink);
  border-bottom: 2px solid var(--grid);
}

.pick__court {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-size: min(1.05rem, 7cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.pick__when {
  margin-top: 0.2rem;
  font-weight: 700;
}

/* Which hours are on which court, for a booking that switches courts at the hour. */
.pick__plan {
  margin-top: 0.2rem;
}

.pick__change {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.pick__change a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

/* The picked hours as a small board under the day and time (the owner's
   choice, 16 Nov 2026): the board's own grid, with each picked hour filled in
   dark violet with the tick and "Picked", as on the booking board. It is
   flat, not a magnet, because nothing here can be tapped. */
.pick-grid {
  margin-top: 0.5rem;
}

.board__grid .pick-grid__cell {
  padding: 0.2rem;
}

.pick-grid__picked {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-size: min(0.8rem, 4.6cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

/* Add-ons: each on its own line, its name and price at the left and how
   many at the right, ruled off like the rows of the board. */
.addons {
  min-width: 0;
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}

.addons__title {
  padding: 0;
  font-weight: 800;
}

.addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--grid);
}

.addon__label {
  font-weight: 800;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.addon__price {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.addon__problem {
  grid-column: 1 / -1;
  grid-row: 2;
}

.addon__quantity {
  width: 5.5rem;
  width: min(5.5rem, 34cqi);
  margin-top: 0;
  font-variant-numeric: tabular-nums;
}

.addon.field--problem .field__input {
  border-color: var(--problem);
}

/* The short privacy notice above the boxes for name, mobile and email. */
.privacy-note {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.privacy-note + .field {
  margin-top: 1.1rem;
}

/* What it costs: one line for the court hours, one for each add-on, and the
   total under a heavy marker rule. Amounts line up at the right. */
.bill {
  width: 100%;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}

/* The Big Text Rule (from Stage 9, when a month's totals came to need it):
   the words and amounts stop growing at a share of the board's width, so a
   long amount such as ₱123,400 never pushes the page sideways on a small
   phone with very large text. At ordinary text sizes nothing changes. */
.bill th,
.bill td {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--grid);
  font-size: 1rem;
  font-size: min(1rem, 6.6cqi);
  vertical-align: top;
}

.bill th {
  padding-right: 0.75rem;
  padding-right: min(0.75rem, 5cqi);
  font-weight: 600;
  text-align: left;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.bill td {
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.bill tfoot th,
.bill tfoot td {
  border-top: 3px solid var(--ink);
  border-bottom: 0;
  font-size: 1.2rem;
  font-size: min(1.2rem, 7.9cqi);
  font-weight: 900;
}

/* The customer's details, as they will be used. */
.who {
  margin-top: 1rem;
}

.who__row {
  display: flex;
  flex-wrap: wrap;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.who dt {
  flex: none;
  width: 4.5rem;
  margin-right: 0.5rem;
  font-weight: 800;
  /* A label with one very long word (a host setting's name, Stage 12) may
     break, rather than stick out on a small phone with very large text. */
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.who dd {
  flex: 1 1 10rem;
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Longer labels, such as "What happened" on a sent message (Stage 5). With
   very large text the value still moves under its label, as above. */
.who--wide dt {
  width: 8rem;
  max-width: 100%;
}

/* The tick box for the Terms, Refund Policy and House Rules. Its words may
   run to two lines, so the box sits beside the first. */
.agree {
  margin-top: 1.25rem;
}

.check--agree {
  align-items: flex-start;
  margin-top: 0.25rem;
  font-weight: 600;
}

.check--agree input {
  margin-top: 0.1rem;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 0.75rem;
}

.form__actions .magnet {
  margin-top: 0.75rem;
  margin-right: 0.75rem;
}

/* A booking's own page: by when to pay, written big on the board. */
.held__label {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.held__time {
  margin-top: 0.35rem;
  font-size: 2.75rem;
  font-size: clamp(2.75rem, 15vw, 5.25rem);
  font-size: min(16cqi, 5.25rem);
}

.held__lead {
  max-width: 38rem;
  margin-top: 0.85rem;
}

.held__left {
  margin-top: 0.5rem;
  font-weight: 800;
}

.ticket {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
}

.ticket__code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.ticket__label {
  margin-right: 0.6rem;
  font-weight: 800;
}

.ticket__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-size: min(1.5rem, 9cqi);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* The day under a deadline's clock time when it is not today, such as "tomorrow". */
.held__day {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
}

/* ---------- 9d. Paying by GCash, and checking a payment (Stage 4) ---------- */

/* A note in marker on the board: why a proof came back, or how much has
   arrived so far. A 2px Marker Ink box, like the board's other notes. */
.pay-note {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.pay-note p + p {
  margin-top: 0.5rem;
}

/* Why a proof could not be taken, at the very top of the board. */
.pay-refusal {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* The steps to pay, numbered in big marker numerals like "How booking
   works", each ruled off from the next. The list that starts at step 2
   ("send it again") starts its count at 1, so its first number reads 2. */
.pay-steps {
  margin-top: 1.25rem;
  counter-reset: step;
}

.pay-steps--later {
  counter-reset: step 1;
}

.pay-step {
  position: relative;
  padding-left: 2.6rem;
  padding-left: min(2.6rem, 14cqi);
  counter-increment: step;
}

.pay-step + .pay-step {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--grid);
}

.pay-step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-size: min(1.75rem, 11cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
}

.pay-step + .pay-step::before {
  top: 1.15rem;
}

.pay-step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-size: min(1.2rem, 8cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.pay-step__to {
  margin-top: 0.2rem;
  font-weight: 800;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.pay-step__text {
  margin-top: 0.6rem;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* A box to type in, straight after a line of explanation. */
.pay-step__text + .field {
  margin-top: 1.1rem;
}

/* A box straight after "Password confirmed until ..." (Stage 9; the refund
   form has the same note above its first box). */
.form-note + .field {
  margin-top: 1.1rem;
}

/* The QR code, at a size another phone can scan from this screen. */
.pay-qr {
  margin: 0.9rem 0 0;
}

.pay-qr img {
  display: block;
  width: 14rem;
  max-width: 100%;
  height: auto;
  border: 2px solid var(--grid);
  background: var(--paper);
}

.pay-qr__save {
  margin-top: 0.75rem;
}

.pay-sent {
  margin-top: 0.85rem;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* "Sent the wrong screenshot or number?": a line that opens the form again. */
.resend {
  margin-top: 1.25rem;
  border-top: 2px solid var(--grid);
}

.resend__toggle {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

/* "Paid by GCash" and "Still to pay" under the total: plainer than the total. */
.bill tfoot .bill__paid th,
.bill tfoot .bill__paid td {
  border-top: 2px solid var(--grid);
  font-size: 1rem;
  font-size: min(1rem, 6.6cqi);
  font-weight: 700;
}

.bill tfoot .bill__paid td {
  font-weight: 800;
}

/* The dashboard's payments to check: one to a line, however wide the board. */
.admin-menu--single {
  grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 30em) {
  .admin-menu--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A payment's day, drawn as the booking board (a Stage 4 change, the owner's
   choice): the booking being checked fills its hours in Marker Ink with its
   code, like a picked hour on the booking page; other bookings say Booked. */
.sched {
  margin-top: 1.25rem;
}

.sched .board__grid {
  margin-top: 0.25rem;
}

.board__grid .sched__cell {
  padding: 0.2rem;
  padding: min(0.2rem, 1.4cqi);
}

/* The code is in the phone's own bold letters, like the "Booked" words (the
   logo lettering is too wide for 8 characters in a court's square on a
   small phone), and stops growing at a share of the board's width, so it
   stays on one line even with very large text. */
.sched__mine {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  padding-left: 0.1rem;
  padding-left: min(0.1rem, 0.7cqi);
  padding-right: 0.1rem;
  padding-right: min(0.1rem, 0.7cqi);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-size: min(0.875rem, 4.8cqi);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* A customer's screenshot, wide enough to read the amount and reference. */
.proof {
  margin: 1.25rem 0 0;
}

.proof__link {
  display: block;
  max-width: 28rem;
}

.proof__image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--grid);
  background: var(--paper);
}

.proof__caption,
.proof__earlier {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.proof__earlier a {
  color: var(--ink);
}

.pick--payment {
  margin-top: 1.25rem;
}

.pay-choice {
  margin-top: 0.9rem;
}

/* ---------- 9e. Messages, late payments, and Find my booking (Stage 5) ---------- */

/* On a payment's day board, an hour of the booking being checked that
   another booking has now (its proof arrived after the hold ended): the
   code drawn in a dashed marker outline with "Taken" under it, so the clash
   shows at a glance. It stops growing with the board, like the code. */
.sched__clash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  padding-left: 0.1rem;
  padding-left: min(0.1rem, 0.7cqi);
  padding-right: 0.1rem;
  padding-right: min(0.1rem, 0.7cqi);
  border: 2px dashed var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.875rem;
  font-size: min(0.875rem, 4.8cqi);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.sched__clash-word {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-size: min(0.75rem, 4.2cqi);
  font-weight: 700;
  letter-spacing: 0;
}

/* Sent messages: what became of each message, under its line. */
.message-status {
  font-weight: 800;
}

/* A text, as a phone shows it: its plain words in a box. */
.sms-text {
  max-width: 24rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--grid);
  border-radius: 2px;
  background: var(--paper);
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.email-subject {
  margin-top: 0.75rem;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* An email as it arrives, in a frame as wide as the board, on the same
   violet as the email's own background while it loads. */
.email-frame {
  display: block;
  width: 100%;
  height: 40rem;
  margin-top: 0.75rem;
  border: 2px solid var(--grid);
  background: var(--wall);
}

.email-open {
  margin-top: 0.6rem;
  font-weight: 700;
}

/* An email's plain-text copy, with its own line breaks, in the board's letters. */
.email-plain {
  margin-top: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--grid);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ---------- 9f. Google sign-in and My bookings (Stage 6) ---------- */

/* "Continue with Google" at the top of Your details: a white magnet as wide
   as the form, a line on what it does, then a ruled "or" before the boxes
   that guests fill in. */
.sign-in {
  margin-top: 1.25rem;
}

.sign-in__button {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: center;
}

/* The "Continue with Google" button, here and on My booking (the maker's
   choice, 5 Dec 2026): white with Google's thin grey edge, "Continue with"
   in the phone's own letters, and the word Google bigger and bolder, each
   letter in Google's own colour as in Google's logo, so customers see at a
   glance that this is Google's sign-in. Google's colours appear nowhere else
   on the site. It lifts like every magnet, but stays white. */
.google-button,
.google-button:hover,
.google-button:active {
  border: 1px solid #747775;
  background: var(--paper);
  color: #1f1f1f;
}

.google-button {
  align-items: center;
  text-align: center;
}

/* On a board or a notice, the words stop growing at a share of its width,
   so very large text on a small phone still fits inside the button. The
   word Google is sized from the words around it, so it stays the same
   amount bigger at every size. */
.google-button__words {
  font-size: 1rem;
  font-size: min(1rem, 8.5cqi);
  font-weight: 600;
  line-height: 1.2;
}

.google-button__google {
  font-size: 1.6em;
  font-weight: 700;
}

.google-button__blue {
  color: #4285f4;
}

.google-button__red {
  color: #ea4335;
}

.google-button__yellow {
  color: #fbbc05;
}

.google-button__green {
  color: #34a853;
}

.sign-in__note {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.sign-in__or {
  display: flex;
  align-items: center;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.sign-in__or::before,
.sign-in__or::after {
  content: "";
  flex: 1 1 0;
  min-width: 1rem;
  border-top: 2px solid var(--grid);
}

.sign-in__or span {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  text-align: center;
}

/* Signed in: who, with a plain "Not you? Sign out" link-like button. */
.signed-in {
  margin-top: 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--grid);
  border-radius: 2px;
  background: var(--paper);
}

.signed-in__form {
  margin-top: 0.35rem;
}

.signed-in__out {
  -webkit-appearance: none;
  appearance: none;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

/* A second paper notice under the first in the side column. */
.account-note {
  margin-top: 1.75rem;
}

.account-note form {
  margin-top: 0.75rem;
}

/* My bookings: the count under the title in bold, and the past folded away. */
.my-count {
  font-weight: 800;
}

.past {
  margin-top: 1.75rem;
  border-top: 2px solid var(--grid);
}

.past__toggle {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.past .entry:first-of-type {
  margin-top: 0.5rem;
}

.sign-out {
  margin-top: 1rem;
}

/* "Remove my account" (Stage 10): a quiet link under Sign out, since it
   opens a page that explains what happens before anything is removed. */
.remove-account {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* An earlier version of the owner's words on the Policy pages page. */
.policy-version + .policy-version {
  margin-top: 1rem;
}

/* The pretend sign-in page: one magnet for each test person. */
.practice-people {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.practice-people li + li {
  margin-top: 0.75rem;
}

/* ---------- 9g. The staff schedule (Stage 7) ---------- */

/* The schedule is the booking page's board, wider, for staff: each court
   hour by hour, the booked hours with the customer's name and where the
   booking stands (the owner's choice, 17 Nov 2026). Wide enough for two
   courts side by side on a desktop without stretching across the screen. */
.wrap--schedule {
  max-width: 56rem;
}

/* A day before yesterday, which only the owner may open: no link, and quiet. */
.day--out,
.day--out:hover,
.day--out:active {
  transform: none;
  background: var(--wall-deep);
  color: var(--on-wall-soft);
  box-shadow: none;
  cursor: default;
}

.board--schedule {
  padding-top: 1.25rem;
}

.schedule__count {
  margin-top: 0.15rem;
  font-weight: 800;
}

.schedule__actions {
  margin-top: 1.5rem;
}

/* A square holding a booking or blocked hours fills its cell, however many
   hours tall it is. (A cell given any height lets what is inside it stretch
   to the cell's real height.) An empty hour that can be booked holds the
   booking page's Free square, to pick for a customer. */
.board__grid .staff-cell {
  height: 1px;
  padding: 0.2rem;
  padding: min(0.2rem, 1.4cqi);
}

.staff-booking,
.staff-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 2.1rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  padding-left: 0.4rem;
  padding-left: min(0.4rem, 1.6cqi);
  padding-right: 0.4rem;
  padding-right: min(0.4rem, 1.6cqi);
  text-decoration: none;
  line-height: 1.2;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

/* A booking is a magnet: lavender once booked, white with a lavender edge
   while it is only held or its payment waits to be checked. */
.staff-booking {
  background: var(--magnet);
  color: var(--floor);
  box-shadow: var(--lift);
}

.staff-booking--held,
.staff-booking--check {
  border: 2px solid var(--magnet);
  background: var(--paper);
  color: var(--ink);
}

a.staff-booking:hover,
a.staff-booking:active,
a.staff-block:hover,
a.staff-block:active {
  transform: translateY(-2px);
  box-shadow: var(--lift-high);
}

a.staff-booking:hover,
a.staff-booking:active {
  background: var(--magnet-light);
}

a.staff-booking--held:hover,
a.staff-booking--held:active,
a.staff-booking--check:hover,
a.staff-booking--check:active {
  background: var(--paper);
}

.staff-booking__name {
  font-size: 0.875rem;
  font-size: min(0.875rem, 4.8cqi);
  font-weight: 800;
}

.staff-booking__status,
.staff-booking__closed {
  margin-top: 0.1rem;
  font-size: 0.8125rem;
  font-size: min(0.8125rem, 4.5cqi);
  font-weight: 600;
}

.staff-booking--due .staff-booking__status {
  font-weight: 800;
}

/* The courts closed at the booking's time: a dashed marker outline, as for
   an hour taken on a payment's day board, so it stands out to sort out. */
.staff-booking--closed,
a.staff-booking--closed:hover,
a.staff-booking--closed:active {
  border: 2px dashed var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.staff-booking__closed {
  font-weight: 800;
}

/* Blocked or closed hours: an aluminium strip, like a sign hung over the court. */
.staff-block {
  background: var(--frame);
  color: var(--floor);
  box-shadow: var(--lift);
}

.staff-block__word {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-size: min(0.8125rem, 4.5cqi);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.staff-block__reason {
  margin-top: 0.1rem;
  font-size: 0.8125rem;
  font-size: min(0.8125rem, 4.5cqi);
  font-weight: 600;
}

/* On the staff board the tray sits between the board and the buttons under
   it, so it keeps its own bottom edge instead of running to the frame, on
   every screen size (two class names outweigh the wider screens' one). */
.tray.tray--staff {
  margin-bottom: 0;
}

/* Hours already over keep their bookings for the record, with the hour quieter. */
.staff-grid__row--over th {
  color: var(--ink-soft);
}

/* The booking page's board: an hour staff blocked, or closed for bad weather. */
.slot-word--closed {
  color: var(--ink-soft);
}

/* On the board for closing the courts every hour can be picked (the owner's
   choice, 18 Nov 2026): a booked hour shows the customer's name on white
   with a lavender edge, like a held booking, and an hour already blocked
   says Closed on aluminium. Once picked, each turns dark violet with the
   tick, like any picked hour. */
.slot__face--booked {
  border-color: var(--magnet);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-size: min(0.875rem, 4.8cqi);
  font-weight: 800;
  font-style: normal;
  text-transform: none;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.slot__face--closed {
  background: var(--frame);
}

.pay-step__text + .field,
.form-problems + .field {
  margin-top: 1rem;
}

/* The bookings in hours being closed, and what happens to each. */
.affected {
  margin-top: 0.75rem;
}

.affected__item {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-top: 2px solid var(--grid);
}

.affected__item:first-child {
  border-top: 0;
}

.affected__name {
  font-weight: 800;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.affected__when,
.affected__what {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.9rem;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.affected__what {
  color: var(--ink-soft);
  font-weight: 700;
}

/* The booking list: the search box, the week's pages, each day ruled off. */
.search .field__input {
  -webkit-appearance: none;
  appearance: none;
}

.bookings__summary {
  margin-top: 1.25rem;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.bookings__summary a {
  font-weight: 700;
}

.bookings__page {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  color: var(--ink);
  font-weight: 700;
}

.bookings__page--later {
  margin-left: auto;
}

/* One booking, as staff see it. */
.booking-standing {
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.bill-after {
  margin-top: 0.6rem;
}

/* What happened to a booking, oldest first, each line ruled off. */
.log {
  margin-top: 0.25rem;
}

.log__item {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-top: 2px solid var(--grid);
}

.log__item:first-child {
  border-top: 0;
}

.log__when {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.log__what {
  display: block;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* The Print button shows only once its script has run. */
.magnet[hidden] {
  display: none;
}

/* The day sheet: the board and the day's list, ready to print. */
.sheet-tools__buttons {
  margin-top: 0;
  margin-bottom: 1rem;
}

.day-sheet {
  padding-top: 1.25rem;
}

.day-sheet__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-size: min(1.5rem, 9cqi);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.day-sheet__meta {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.day-sheet__heading {
  margin-top: 1.75rem;
}

.day-sheet__blocks li + li {
  margin-top: 0.25rem;
}

.day-list {
  width: 100%;
  table-layout: fixed;
}

.day-list th,
.day-list td {
  padding: 0.45rem 0.4rem;
  padding-left: min(0.4rem, 1.6cqi);
  padding-right: min(0.4rem, 1.6cqi);
  border-bottom: 2px solid var(--grid);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.day-list th {
  border-bottom: 3px solid var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.day-list__time,
.day-list__name,
.day-list__code,
.day-list__money {
  display: block;
  font-weight: 800;
}

.day-list__time,
.day-list__code {
  font-variant-numeric: tabular-nums;
}

.day-list__small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

/* On a narrow board each booking stands as its own block, so nothing is
   squeezed into slivers of columns or pushed off the side. */
@container (max-width: 29.99em) {
  .day-list thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .day-list tr,
  .day-list td {
    display: block;
  }

  .day-list tr {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--grid);
  }

  .day-list td {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    border-bottom: 0;
  }
}

/* ---------- 9h. Changing a booking, and the money (Stage 8) ---------- */

/* A choice of one, such as the reason for cancelling or how a refund was
   sent: round buttons laid out like the tick boxes, with no frame round them. */
.choices {
  min-width: 0;
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}

.choices .check {
  margin-top: 0.35rem;
}

.choices + .field {
  margin-top: 1.1rem;
}

/* "What to do" on a booking's page: cash at the desk, then a magnet for each
   change. */
.cash {
  margin-top: 0.5rem;
}

.booking-actions {
  margin-top: 1rem;
}

/* A payment waiting to be checked that should be checked soon: its own
   line on the magnet, in heavier marker. */
.magnet__urgent {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Each payment of a booking, with its invoice number under it, ruled off
   from the next like the lines on the board. */
.payments__item {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-top: 2px solid var(--grid);
}

.payments__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.payments__cash {
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.payments__invoice {
  margin-top: 0.6rem;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.invoice {
  margin-top: 0.6rem;
}

/* The invoice number and its date: one under the other on a phone, side by
   side on a wide board. */
.invoice__boxes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.1rem;
  column-gap: 0.75rem;
}

.invoice__boxes .field + .field {
  margin-top: 0;
}

@container (min-width: 30em) {
  .invoice__boxes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.invoice .magnet {
  margin-top: 0.75rem;
}

/* On the board for moving a booking, its own hours say "Here now": white
   with a Marker Ink edge until picked, when they turn dark violet like any
   picked hour. */
.slot__face--own {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

/* Who added a note to Needs attention, after the note. */
.note-by {
  color: var(--ink-soft);
  font-weight: 700;
}

/* "Invoice to issue" under Needs attention, and its link on the Bookings page. */
.invoices-due {
  margin-top: 0.75rem;
}

.bookings__invoices {
  margin-top: 0.75rem;
  font-weight: 700;
}

/* ---------- 9i. Sales, staff logins, what staff did, backups (Stage 9) ---------- */

/* The Sales page: a month's money, one ruled line for each day, the date on
   the left and the money in on the right, and what was sent back under it. */
.ledger {
  margin-top: 0.25rem;
}

.ledger__day {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 0.75rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-top: 2px solid var(--grid);
}

.ledger__day:first-child {
  border-top: 0;
}

.ledger__date {
  font-weight: 700;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.ledger__amount {
  font-size: 1rem;
  font-size: min(1rem, 6.6cqi);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.ledger__amount--none {
  color: var(--ink-soft);
  font-weight: 600;
}

.ledger__more {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Staff logins: one ruled entry for each login, its buttons under it. */
.logins {
  margin-top: 1rem;
}

.logins__item {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-top: 2px solid var(--grid);
}

.logins__item:first-child {
  border-top: 0;
}

.logins__name {
  font-size: 1.1rem;
  font-weight: 800;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.logins__facts {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.logins__facts strong {
  color: var(--ink);
}

.logins__facts a {
  color: var(--ink);
  font-weight: 700;
}

.logins__actions {
  margin-top: 0;
}

/* A password the site made up, shown once: big enough to copy without a
   slip, and free to break anywhere so a narrow phone never cuts it off. */
.new-login {
  margin-top: 1.25rem;
}

.new-login__value {
  font-size: 1.25rem;
  font-size: min(1.25rem, 8cqi);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* What staff did: who each person is, under their name, and a line worth a
   second look (a login paused after wrong passwords, a new GCash QR code) in
   a 2px Marker Ink box, like the board's other notes. (Its two classes beat
   the first line's "no rule above".) */
.activity__who {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.log__item.log__item--warning {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
}

.log__what a {
  color: var(--ink);
}

/* "Another day": a date box and its Show button. */
.day-jump {
  margin-top: 0.75rem;
}

/* ---------- 9j. Going live (Stage 12) ---------- */

/* The online booking switch at the top of the dashboard: one box that
   everyone logged in sees, with the button inside it for the owner only (the
   owner's choice of 21 Nov 2026, after trying the first version and seeing
   pictures of two ways). While booking is on, its edge and big words are
   Open Green, since green means open on this site; while it is paused they
   are Red Marker, like the note customers see on the booking page, so nobody
   misses a pause. On the white box, green is 6.1 to 1 and red 6.6 to 1, both
   easy to read. */
.booking-switch p + p,
.booking-switch p + form {
  margin-top: 0.6rem;
}

/* "Online booking is ON" or "PAUSED". The size stops growing at a share of
   the board's width (The Big Text Rule), so on a small phone set to very
   large text "PAUSED" still fits on one line instead of breaking in two. At
   ordinary text sizes the plain size is always the smaller one. */
.booking-switch__state {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
  font-size: min(1.5rem, 14cqi);
  font-weight: 800;
  line-height: 1.15;
}

.booking-switch__since {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.booking-switch--on {
  border-color: var(--open);
}

.booking-switch--on .booking-switch__state {
  color: var(--open);
}

.booking-switch--paused {
  border-color: var(--problem);
}

.booking-switch--paused .booking-switch__state {
  color: var(--problem);
}

/* The note customers see on the booking page while online booking is paused,
   in red marker, words and edge both, and in big letters, so nobody misses
   it (the owner's choices of 21 Nov 2026, after trying it: first red, then
   bigger). "Online booking is paused." stands on a line of its own in big
   bold letters; how to book instead follows in bold, a size up from the
   board's other words. The phone number inside it is a link, which takes
   the same red. Red on the white note is 6.6 to 1, well over the 4.5 to 1
   that small words need to be easy to read. This rule comes after
   .pay-note's in this file, so its red edge wins over that violet one. */
.board__paused {
  border-color: var(--problem);
  color: var(--problem);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

/* The big first line stops growing at a share of the board's width (The Big
   Text Rule), so on a small phone set to very large text, "booking" still
   fits on one line instead of breaking in two. At ordinary text sizes the
   plain size is always the smaller one, so nothing changes there. */
.board__paused strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.75rem;
  font-size: min(1.75rem, 16cqi);
  font-weight: 800;
  line-height: 1.15;
}

/* A host setting's name, such as TRUST_PROXY_HOPS, written in a sentence on
   the connection check: one long word, so it may break on a small phone
   with very large text rather than push the page sideways. */
.setting-name {
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ---------- 10. Footer: the floor below the wall ---------- */

.site-footer {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  background: var(--floor);
  color: var(--on-wall-soft);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--on-wall);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

/* A long email address or business name wraps instead of widening the page. */
.site-footer__business {
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.site-footer__name {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--on-wall);
}

.site-footer__todo {
  max-width: 28rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px dashed rgba(255, 197, 61, 0.75);
  border-radius: 3px;
  color: #ffe2a0;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1.5rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer__fine {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(221, 208, 250, 0.25);
  font-size: 0.85rem;
}

/* ---------- 11. Small phones and wider screens ---------- */

/* Phones narrower than 392 pixels: smaller court names and prices, so names
   such as "Covered Court" keep whole words and "₱400 an hour" fits. */
@media (max-width: 24.49rem) {
  .board__court {
    font-size: 0.75rem;
    font-size: min(0.75rem, 5cqi);
  }

  .board__rate {
    font-size: 0.75rem;
    font-size: min(0.75rem, 4.6cqi);
  }
}

/* Phones narrower than 352 pixels: a slimmer hour column. */
@media (max-width: 21.99rem) {
  .board__hour-col {
    width: 4.25rem;
    width: min(4.25rem, 31cqi);
  }

  .board__grid th,
  .board__grid td {
    padding-left: 0.3rem;
    padding-left: min(0.3rem, 2.4cqi);
    padding-right: 0.3rem;
    padding-right: min(0.3rem, 2.4cqi);
  }

  /* 11 pixels, the smallest size still easy to read, keeps "₱400 an hour"
     on one line in these narrow columns. */
  .board__rate {
    font-size: 0.6875rem;
    font-size: min(0.6875rem, 4.6cqi);
  }
}

@media (min-width: 40rem) {
  .board {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
    padding-left: 1.4rem;
    padding-left: min(1.4rem, 3.5vw);
    padding-right: 1.4rem;
    padding-right: min(1.4rem, 3.5vw);
  }

  .board__grid th,
  .board__grid td {
    height: 2.75rem;
    padding-left: 0.6rem;
    padding-left: min(0.6rem, 2.4cqi);
    padding-right: 0.6rem;
    padding-right: min(0.6rem, 2.4cqi);
  }

  .board__hour-col {
    width: 7.5rem;
    width: min(7.5rem, 31cqi);
  }

  .board__court {
    font-size: 1rem;
    font-size: min(1rem, 5cqi);
  }
  .tray {
    margin-bottom: -1.4rem;
    margin-left: -1.4rem;
    margin-left: calc(-1 * min(1.4rem, 3.5vw));
    margin-right: -1.4rem;
    margin-right: calc(-1 * min(1.4rem, 3.5vw));
    padding-left: 1.4rem;
    padding-left: min(1.4rem, 3.5vw);
    padding-right: 1.4rem;
    padding-right: min(1.4rem, 3.5vw);
  }
}

/* Tablets: the booking page's notice keeps to a comfortable reading width. */
@media (min-width: 48rem) {
  .wall {
    padding-top: 2.25rem;
    padding-bottom: 4rem;
  }

  .wall__side {
    max-width: 38rem;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* Laptops and desktops. */
@media (min-width: 62rem) {
  .wall__layout {
    gap: 2.5rem;
  }

  /* Booking page: the board on the left, "How booking works" beside it. */
  .wall__layout--side {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }

  .wall__side {
    max-width: none;
  }
}

/* ---------- 12. Contrast themes and less motion ---------- */

/* Windows contrast themes repaint the page in the visitor's own colours.
   The marker lines and magnet dots are drawn as shapes, so they are given
   the theme's text colour here, or they would vanish. */
@media (forced-colors: active) {
  .board__passed::after,
  .sheet::before,
  .policy__list li::before {
    background: CanvasText;
  }

  /* The page you are on, in the row between the policy pages (Stage 10). */
  .policy-nav__link--current {
    border: 4px solid Highlight;
  }

  .marker-circle {
    color: CanvasText;
  }

  /* A picked hour keeps a heavy edge, so it still stands out once the
     theme has repainted the magnets. */
  .slot__box:checked + .slot__face {
    border-color: Highlight;
    border-width: 4px;
  }

  /* The booking being checked, on a payment's day board, and the picked
     hours on a customer's summary, likewise. */
  .sched__mine,
  .pick-grid__picked {
    border: 4px solid Highlight;
  }

  /* The staff schedule's squares (Stage 7) keep an edge too. */
  .staff-booking,
  .staff-block {
    border: 2px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 13. Printing ---------- */

/* Printers leave out background colours, so the violet wall would print as
   pale text on white paper. On paper everything becomes plain dark text,
   and the parts you can only use on a screen are left out. */
@media print {
  .practice-banner,
  .site-nav,
  .skip-link,
  .days,
  .tray {
    display: none;
  }

  body,
  .site-header,
  .site-footer,
  .board,
  .sheet {
    background: none;
    box-shadow: none;
    color: #000;
  }

  .wordmark,
  .site-footer a,
  .site-footer__name,
  .site-footer__todo,
  .status--open,
  .status--closed {
    color: #000;
  }

  .board,
  .board__grid th,
  .board__grid td {
    border-color: #000;
  }

  /* Filled squares would print as white words on white paper, so on paper
     they are dark words in a box instead. */
  .pick-grid__picked,
  .sched__mine {
    border: 2px solid #000;
    background: none;
    color: #000;
  }

  .sheet::before {
    display: none;
  }

  /* The day sheet (Stage 7): only the sheet itself, in plain black on white. */
  .page-sheet .site-header,
  .page-sheet .site-footer,
  .page-sheet .sheet-tools {
    display: none;
  }

  .page-sheet .wall {
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-sheet .wrap {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .page-sheet .board {
    border: 0;
    padding: 0;
  }

  .staff-booking,
  .staff-block {
    border: 1px solid #000;
    background: none;
    color: #000;
    box-shadow: none;
  }

  .staff-booking--closed {
    border-style: dashed;
  }

  .day-sheet__meta,
  .day-list__small,
  .staff-grid__row--over th,
  .board__rate {
    color: #000;
  }

  .day-list th,
  .day-list td,
  .board__grid thead th {
    border-color: #000;
  }

  .staff-grid tr,
  .day-list tr {
    break-inside: avoid;
  }
}
