/* =========================================================
   PP framework — sitewide non-block rules.

   THIS FILE CARRIES NO DESIGN. The starter is deliberately
   unstyled: layout, typography and colour come from
   theme.json, and the visual design comes from the build's
   own Figma / Claude Design work.

   Only two things belong here:

     1. The brand variable surface, so per-block CSS has one
        place to read from. Values mirror theme.json.
     2. The handful of core block-library defaults we have to
        restore, because inc/setup.php dequeues
        `wp-block-library` and those defaults then vanish.

   What must NOT go here: per-page styling, section rhythm,
   decorative treatments, bullet styles. The LCT original
   reached 922 lines because Contact, Clients, Accommodation
   and Airport page rules were added to it, along with a
   client-specific readable-measure cap. Page furniture
   belongs in the block that renders it; brand design belongs
   in the build's own stylesheet.
   ========================================================= */

/* ---------------------------------------------------------
   Brand variables.

   Mirrors theme.json's palette. Editors pick by preset name
   in the sidebar; block CSS reads these. Rebranding a site
   means changing these nine values and the matching palette
   in theme.json, and nothing else.

   The starter's values are neutral greyscale on purpose, so
   nobody mistakes the starter for a finished design.

   The -rgb triples exist so a colour can be used at partial
   alpha — rgb(var(--fw-primary-rgb) / 0.85) — and stay
   swappable.
   --------------------------------------------------------- */
:root {
	/* WCAC, read off wcac.org.uk 2026-11-17. Mirrors theme.json. */
	--fw-primary:     #237688; /* teal: header, footer, headings, buttons */
	--fw-secondary:   #423D3D; /* charcoal: contact bar, copyright bar */
	--fw-accent:      #044958; /* dark teal: menu hover, mobile menu fill */
	--fw-link:        #0A0A0A; /* content links */
	--fw-highlight:   #064554; /* button hover */
	--fw-text:        #0A0A0A; /* body text */
	--fw-grey:        #979797; /* form field borders */
	--fw-light-grey:  #F7F7F7; /* "Our Charity" band overlay */
	--fw-bg-grey:     #FEFEFE; /* page background */
	--fw-white:       #FFFFFF;

	--fw-primary-rgb:    35 118 136;
	--fw-secondary-rgb:  66 61 61;
	--fw-accent-rgb:     4 73 88;
	--fw-link-rgb:       10 10 10;
	--fw-light-grey-rgb: 247 247 247;

	/* The one vertical rhythm knob. Ten section blocks read it as
	   `padding: var(--fw-section-py, 48px) 20px`, and nothing defined it — so
	   a fresh clone carried 96px of vertical padding per section that nobody
	   asked for, inherited from LCT. Declared at 0 here, so the starter
	   asserts no rhythm and a build sets this one value to get it back. */
	--fw-section-py: 0;
}

/* ---------------------------------------------------------
   Restored core defaults.

   `wp-block-library` is dequeued, so these stop existing.
   Each one is here because something breaks without it, not
   because it looks better.
   --------------------------------------------------------- */

/* Border box sizing, globally.
   Not a core default being restored — a correction. The browser default
   (content-box) means `width: 100%` plus padding overflows its parent, which
   took a 1440 viewport to 1480 on the SCR build before anyone noticed. Every
   modern stylesheet assumes border-box; the starter should not make each build
   rediscover that. */
*, *::before, *::after { box-sizing: border-box; }

/* Alignment classes core would otherwise provide. */
.has-text-align-left   { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right  { text-align: right; }
/* core writes this class too, and the core stylesheet is dequeued. */
.has-text-align-justify { text-align: justify; }

/* Core resets these on the block-library stylesheet; without it the browser
   default indent applies and list markers sit outside the content column. */
.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

/* Core's `* { font: inherit }` reset removes these; put them back so bold and
   italic in editor content still render as bold and italic. */
/* `bolder` is relative: inside a heading or a paragraph already set to 700 it
   computes to 900, which is a different weight from the one the design
   asks for and a visibly heavier one where the family has a 900 cut. */
strong, b { font-weight: bold; }
em, i     { font-style: italic; }

/* Images should never overflow their container. */
img, svg, video { max-width: 100%; height: auto; }

/* Horizontal-overflow safety net. Stops one wide element forcing the whole
   page to scroll sideways on mobile. */
html, body { overflow-x: clip; }

/* Figures carry a browser default margin that fights block spacing. */
figure { margin: 0; }

/* Screen-reader-only text. Core ships this in wp-block-library, which
   inc/setup.php dequeues, so without it every visually-hidden label — the
   search block's and the categories block's among them — renders as a
   full-width absolutely positioned element and drags the document hundreds of
   pixels wider than the viewport. !important because plugin stylesheets that
   load after the theme routinely set label widths. */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px !important;
	width: 1px !important;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip-path: none;
	height: auto !important;
	width: auto !important;
	margin: 0;
	padding: 15px 23px 14px;
	background: #fff;
	color: #1a1a1a;
	display: block;
	font-size: 14px;
	line-height: normal;
	text-decoration: none;
	top: 5px;
	left: 5px;
	z-index: 100000;
}

/* Core image alignment. wp-block-library is dequeued, so the classes core
   writes into image blocks have no styling of their own: an `aligncenter`
   screenshot sat hard left instead of centred. */
figure.wp-block-image { margin: 0 0 1em; }
figure.wp-block-image.aligncenter { display: table; margin-left: auto; margin-right: auto; }
figure.wp-block-image.alignleft { float: left; margin: 0.5em 1em 1em 0; }
figure.wp-block-image.alignright { float: right; margin: 0.5em 0 1em 1em; }
figure.wp-block-image img { display: block; height: auto; }
figure.wp-block-image figcaption { margin: 8px 0 0; font-size: 13px; }
