/* Design pass, 10 Nov 2026. Loaded last so it can adjust the Base44 styles in app.css without editing them.
   1. One primary action: WhatsApp is the only solid orange button; everything else is an outline.
   2. Dark text on the orange (white on this orange was only 2.9:1; dark is about 7:1).
   3. Body-grey slightly lighter for reading outdoors on a phone.
   4. Yellow kept for headline accents, numbers and the active page; small mono labels are now neutral.
   5. Line icons instead of emoji. */
:root{
  --accent-foreground:220 5% 8%;
  --muted-foreground:0 0% 72%;
}

/* ---- 1 + 2: buttons ---- */
section a[href^="https://wa.me"] > button,
a.cp-btn[href^="https://wa.me"]{
  background:hsl(var(--accent)) !important;color:hsl(var(--accent-foreground)) !important;border:1px solid transparent !important;box-shadow:none !important;
}
section a[href^="https://wa.me"] > button:hover,
a.cp-btn[href^="https://wa.me"]:hover{background:hsl(var(--accent) / .88) !important}

section a:not([href^="https://wa.me"]) > button,
a.cp-btn:not([href^="https://wa.me"]){
  background:transparent !important;color:hsl(var(--foreground)) !important;
  border:1px solid hsl(var(--foreground) / .3) !important;box-shadow:none !important;clip-path:none !important;
}
section a:not([href^="https://wa.me"]) > button:hover,
a.cp-btn:not([href^="https://wa.me"]):hover{background:hsl(var(--foreground) / .1) !important}
/* chamfered corner stays on the primary button only (inline style on some, set here for the courses page) */
a.cp-btn[href^="https://wa.me"]{clip-path:polygon(0 0,100% 0,100% 65%,93% 100%,0 100%)}

/* ---- 4: ration the yellow. Small mono eyebrow labels go neutral; headline words, prices, numbers, active links stay yellow ---- */
.font-mono.text-xs.text-primary.tracking-widest,
.cp-eyebrow,.cp-num{color:hsl(var(--foreground) / .72) !important}

/* ---- 5: line icons in the little "badge" pills ---- */
.ui-i{width:14px;height:14px;flex:none;stroke:hsl(var(--primary));fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* primary button: same chamfered corner everywhere (header and some page buttons already had it inline) */
section a[href^="https://wa.me"] > button{clip-path:polygon(0 0,100% 0,100% 65%,94% 100%,0 100%) !important}

/* header WhatsApp button: orange outline, so the hero button is the one solid orange button at the top of the page.
   (The phone menu's WhatsApp button stays solid: it is the only action in that panel.) */
header nav a[href^="https://wa.me"] > button{
  background:transparent !important;color:hsl(var(--accent)) !important;
  border:1px solid hsl(var(--accent)) !important;box-shadow:none !important;clip-path:none !important;
}
header nav a[href^="https://wa.me"] > button:hover{background:hsl(var(--accent)) !important;color:hsl(var(--accent-foreground)) !important}

/* small Union Jack beside the "Proudly British" labels (drawn as SVG: flag emoji show as the letters GB on Windows) */
.ui-flag{display:inline-block;width:1.45em;height:.725em;margin-right:.65em;vertical-align:-.1em;border:1px solid hsl(var(--foreground) / .25);box-sizing:content-box}

/* Sideways swipe rows must not also scroll up and down. Cards waiting to slide in sit 50px low, which made the row
   scrollable vertically on phones (the cards "wobbled" as you touched them). Lock the row to sideways only. */
.band-cards,.cp-nav{overflow-y:hidden}
.band-cards{overscroll-behavior-x:contain;touch-action:pan-x pan-y}

/* ---- Page header band: diagonal stripes, same as the back office header. Used at the top of every page except the home page. ---- */
.pg-band{background:hsl(var(--background)) repeating-linear-gradient(135deg,transparent 0 22px,hsl(220 5% 10%) 22px 44px);padding:3.5rem 0}
@media (min-width:640px){.pg-band{padding:5rem 0}}
.pg-band .pg-lede{margin:1.25rem 0 0;max-width:42rem;font-size:1.05rem;line-height:1.65;color:hsl(var(--muted-foreground))}

/* One H1 size for every striped page header. The H1s were sized in four different places (Tailwind classes on About,
   Scan and Business Card; .cp-h1 on Courses; .legal h1 on Terms and Privacy). The doubled class outranks all of them. */
.pg-band.pg-band h1{font-size:clamp(2.25rem,6vw,3.75rem);line-height:1;letter-spacing:-.01em}

/* Courses header band has its padding on the inner .cp-head (the band itself is padding:0 inline), so match it to .pg-band */
.cp-headband .cp-head{padding-top:3.5rem;padding-bottom:3.5rem}
@media (min-width:640px){.cp-headband .cp-head{padding-top:5rem;padding-bottom:5rem}}

/* Striped header bands: same label, heading and intro spacing on every page (each page had its own). */
.pg-band .font-mono.text-xs.tracking-widest,.pg-band .cp-eyebrow,.pg-band .lg-label{
  display:block;font:400 .75rem/1 var(--font-mono);letter-spacing:.16em;text-transform:uppercase;color:hsl(var(--foreground) / .72) !important}
.pg-band.pg-band h1{margin:1rem 0 0;font-weight:900;text-transform:uppercase}
.pg-band.pg-band h1 + p:not(.lg-meta){margin:1.25rem 0 0;max-width:42rem;font-size:1.05rem;line-height:1.65;color:hsl(var(--muted-foreground))}
.pg-band.pg-band .legal .lg-meta{margin:1.25rem 0 0}
.pg-band.pg-band .legal .lg-meta + p{margin:1rem 0 0;max-width:42rem;font-size:1.05rem;line-height:1.65}

/* Let header H1s use the full width so short headings don't wrap early (the intro paragraph keeps its own 42rem limit). */
.pg-band .max-w-3xl{max-width:none}

/* Business card page: front and back side by side on desktop (stacked on phones and tablets). */
@media (min-width:900px){
  .bc-wrap{max-width:56rem;display:grid;grid-template-columns:1fr 1fr;column-gap:2.5rem;align-items:start}
  .bc-wrap > :not(.bc-side){grid-column:1 / -1}
  .bc-wrap > .bc-draft{justify-self:center;max-width:36rem}
}

/* Home page closing call-to-action: same diagonal stripes as the inner-page header bands (keeps its own padding). */
.cta-band{background:hsl(var(--background)) repeating-linear-gradient(135deg,transparent 0 22px,hsl(220 5% 10%) 22px 44px)}

/* Yellow line along the bottom of every striped page header, matching the back office header bar (4px, same yellow). */
.pg-band.pg-band{border-bottom:4px solid hsl(68 100% 50%)}

/* Mobile footer layout: Navigation + Training side by side, Contact left-aligned below, NPORS/CSCS centred, thin lines between sections. */
@media (max-width:767px){
  footer > div > .grid{grid-template-columns:1fr 1fr;column-gap:1.5rem;row-gap:0}
  footer > div > .grid > div{padding:1.5rem 0}
  footer > div > .grid > div:nth-child(1){grid-column:1 / -1;padding-top:0;border-bottom:1px solid hsl(var(--border))}
  footer > div > .grid > div:nth-child(4){grid-column:1 / -1;border-top:1px solid hsl(var(--border))}
  footer > div > p.font-mono{text-align:center !important;margin-top:0 !important;display:block;width:100%;text-align:center;padding:1.25rem 0 .25rem;border-top:1px solid hsl(var(--border))}
}
