/* 19/29 Agency — shared base for the hand-coded pages: tokens, reset, top bar,
   buttons, footer, cookie banner. Mobile first; breakpoints 768 / 1024 / 1440.
   Boxes square; buttons, fields and chips rounded.
   --g-banner-h is set by the footer script while the cookie bar is open on
   tablet/desktop, so a first screen can end above it. */
:root {
	--g-ink: #0a0a0a;
	--g-paper: #ffffff;
	--g-on-dark: #ffffff;
	--g-on-dark-muted: rgba(255, 255, 255, .86);
	--g-mist: #f2f2f2;
	--g-line: #e2e2e2;
	--g-line-strong: #b8b8b8;
	--g-text: #3a3a3a;
	--g-muted: #5c5c5c;
	--g-error: #c4321c;
	--g-grey: #959ca3;          /* Angel's accent grey from the live site */
	--g-top-h: calc(80px + env(safe-area-inset-top));
	--g-font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--g-gutter: 20px;
	--g-ease: cubic-bezier(.2, .7, .2, 1);
	--g-banner-h: 0px;
	--g-screen: calc(100svh - var(--g-banner-h));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body.g-body {
	margin: 0;
	background: var(--g-ink);
	color: var(--g-on-dark);
	font: 400 16px/1.55 var(--g-font);
	-webkit-font-smoothing: antialiased;
}
/* Light pages (agency, book staff) — "silver and gold": white and soft silver surfaces,
   Angel's grey for lines and small text, gold (from the 19/29 sign) as hairlines only. */
body.g-light {
	--g-ink: #1c1d1f;
	--g-mist: #f4f5f6;
	--g-silver: #e9ebed;
	--g-line: #e3e5e8;
	--g-muted: #646b72;
	--g-text: #3b3f44;
	--g-gold: #a8875a;
	background: var(--g-paper); color: var(--g-ink);
}
.g-light .g-eyebrow { color: var(--g-muted); }
.g-body img, .g-body video { display: block; max-width: 100%; }
:where(.g-body) a { color: inherit; }
.g-body :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.g-skip {
	position: absolute; left: 12px; top: -60px; z-index: 50;
	padding: 12px 18px; border-radius: 999px;
	background: var(--g-paper); color: var(--g-ink); font-weight: 600; text-decoration: none;
}
.g-skip:focus { top: 12px; }

/* ---------- Reveal on scroll (added only when motion is allowed) ---------- */
.g-reveal-on .js-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--g-ease), transform .7s var(--g-ease); }
.g-reveal-on .js-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Top bar: over a hero (overlay) or a solid black bar ---------- */
.g-top {
	z-index: 10;
	display: flex; align-items: center; gap: 8px;
	padding: calc(14px + env(safe-area-inset-top)) var(--g-gutter) 14px;
	color: var(--g-on-dark);
}
.g-top--overlay { position: absolute; inset: 0 0 auto 0; }
.g-top--solid { position: relative; background: var(--g-ink); }
.g-light .g-top--solid { background: var(--g-paper); color: var(--g-ink); box-shadow: 0 1px 0 var(--g-line); z-index: 11; }
.g-light .g-top__nav a:hover { background: var(--g-mist); }
.g-top__logo { display: inline-flex; width: 52px; height: 52px; }
.g-top__logo svg { width: 100%; height: 100%; }
.g-top__nav { display: none; gap: 2px; margin-left: auto; }
.g-top__nav a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
	border-radius: 999px; text-decoration: none; font-weight: 500;
	transition: background-color .2s var(--g-ease);
}
.g-top__nav a:hover { background: rgba(255, 255, 255, .14); }
.g-top__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* "Book staff" is always in the top bar (Angel: visible without scrolling) */
.g-top__cta { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: 15px; background: var(--g-paper); color: var(--g-ink); border-color: var(--g-paper); }
.g-top__cta:hover { background: transparent; color: var(--g-on-dark); }
.g-light .g-top__cta { background: var(--g-ink); color: var(--g-paper); border-color: var(--g-ink); }
.g-light .g-top__cta:hover { background: transparent; color: var(--g-ink); }

/* Phone menu: a disclosure (works without JavaScript) */
.g-menu { flex: none; }
.g-top__nav + .g-menu { margin-left: auto; } /* Book Staff page: no button in the bar */
.g-menu__btn {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
	list-style: none; cursor: pointer; border: 1.5px solid currentColor;
}
.g-menu__btn::-webkit-details-marker { display: none; }
.g-menu__btn .g-icon:last-child, .g-menu[open] .g-menu__btn .g-icon:first-child { display: none; }
.g-menu[open] .g-menu__btn .g-icon:last-child { display: block; }
.g-menu__panel {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
	display: grid; padding: 8px var(--g-gutter) 20px;
	background: var(--g-ink); color: var(--g-on-dark); box-shadow: 0 1px 0 rgba(255,255,255,.12);
}
.g-light .g-menu__panel { background: var(--g-paper); color: var(--g-ink); box-shadow: 0 1px 0 var(--g-line), 0 12px 24px rgba(28, 29, 31, .08); }
.g-menu__panel a {
	display: flex; align-items: center; min-height: 52px; font-size: 20px; font-weight: 500; text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.g-light .g-menu__panel a { border-bottom-color: var(--g-line); }
.g-menu__panel a:last-child { border-bottom: 0; }
.g-menu__panel a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.g-eyebrow {
	margin: 0 0 10px; font-size: 14px; font-weight: 500;
	letter-spacing: .14em; text-transform: uppercase; color: var(--g-on-dark-muted);
}

.g-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 26px; border-radius: 999px;
	font: 600 16px/1 var(--g-font); text-decoration: none; white-space: nowrap;
	border: 1.5px solid currentColor; cursor: pointer;
	transition: background-color .2s var(--g-ease), color .2s var(--g-ease), border-color .2s var(--g-ease), transform .15s var(--g-ease);
	touch-action: manipulation;
}
.g-btn:active { transform: scale(.98); }
.g-btn--light { background: var(--g-paper); color: var(--g-ink); border-color: var(--g-paper); }
.g-btn--light:hover { background: transparent; color: var(--g-on-dark); }
.g-btn--ghost { color: var(--g-on-dark); }
/* Button row: under a text block, buttons share the width on phones */
.g-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.g-actions .g-btn { flex: 1 1 150px; }
@media (min-width: 768px) {
	.g-actions { margin-top: 32px; }
	.g-actions .g-btn { flex: 0 0 auto; min-width: 180px; }
}

.g-btn--dark { background: var(--g-ink); color: var(--g-paper); border-color: var(--g-ink); }
.g-btn--dark:hover { background: transparent; color: var(--g-ink); }
.g-btn--dark .g-icon { flex: none; }
.g-btn--ghost:hover { background: var(--g-paper); color: var(--g-ink); border-color: var(--g-paper); }
.g-btn--outline { background: transparent; color: var(--g-ink); border-color: var(--g-ink); }
.g-btn--outline:hover { background: var(--g-ink); color: var(--g-paper); }

/* ---------- Footer: brand + Book staff, four link columns, bottom bar with © and legal ---------- */
.g-foot { background: var(--g-ink); color: var(--g-on-dark); border-top: 1px solid rgba(255, 255, 255, .16); }
.g-foot a { text-decoration: none; }
.g-foot__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 56px var(--g-gutter) 40px; max-width: 1440px; margin: 0 auto; }
.g-foot__brand { grid-column: 1 / -1; display: grid; justify-items: start; gap: 18px; }
.g-foot__logo { display: inline-flex; width: 64px; height: 64px; }
.g-foot__logo svg { width: 100%; height: 100%; }
.g-foot__line { margin: 0; max-width: 36ch; font-size: 17px; line-height: 1.5; color: var(--g-on-dark-muted); }
.g-foot__cta { background: var(--g-paper); color: var(--g-ink); border-color: var(--g-paper); }
.g-foot__title { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--g-on-dark-muted); }
.g-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.g-foot__col a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; overflow-wrap: anywhere; }
.g-foot__col a:hover, .g-foot__legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.g-foot__note { display: flex; align-items: center; min-height: 44px; color: var(--g-on-dark-muted); }
/* Phones: short lists (Agency, Follow) two across; the family links and contact details get a full row each. */
.g-foot__col--wide { grid-column: 1 / -1; }
.g-foot__col:nth-child(2) { order: 1; } .g-foot__col:nth-child(5) { order: 2; } .g-foot__col:nth-child(3) { order: 3; } .g-foot__col:nth-child(4) { order: 4; }
.g-foot__bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
	max-width: 1440px; margin: 0 auto; padding: 16px var(--g-gutter) calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(255, 255, 255, .16);
}
.g-foot__copy { margin: 0; font-size: 14px; color: rgba(255,255,255,.7); }
.g-foot__legal { display: flex; flex-wrap: wrap; column-gap: 20px; }
.g-foot__legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--g-on-dark-muted); }
.g-light .g-foot { --g-on-dark: var(--g-ink); --g-on-dark-muted: var(--g-text); background: var(--g-silver); border-top: 1px solid var(--g-gold); }
.g-light .g-foot__cta { background: var(--g-ink); color: var(--g-paper); border-color: var(--g-ink); }
.g-light .g-foot__cta:hover { background: transparent; color: var(--g-ink); }
.g-light .g-foot__bar { border-top-color: var(--g-line-strong); }
.g-light .g-foot__copy { color: var(--g-muted); }

@media (min-width: 768px) {
	:root { --g-gutter: 40px; --g-top-h: calc(88px + env(safe-area-inset-top)); }
	.g-top__logo { width: 60px; height: 60px; }
	.g-top__nav { display: flex; }
	.g-top__cta { margin-left: 8px; }
	.g-menu { display: none; }
	.g-foot__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 72px 40px 48px; }
	.g-foot__col--wide { grid-column: auto; }
	.g-foot__col:nth-child(n) { order: 0; }
	.g-foot__bar { padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 1024px) {
	.g-top--solid { padding-left: 56px; padding-right: 56px; }
	.g-foot__inner { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding: 88px 56px 56px; }
	.g-foot__brand { grid-column: auto; }
	.g-foot__bar { padding-left: 56px; padding-right: 56px; }
}

@media (min-width: 1440px) {
	.g-top--solid { padding-left: 80px; padding-right: 80px; }
	.g-foot__inner { padding-left: 80px; padding-right: 80px; }
	.g-foot__bar { padding-left: 80px; padding-right: 80px; }
}

/* ---------- Cookie banner (Complianz), on-brand ---------- */
.g-body .cmplz-cookiebanner {
	--cmplz_banner_background_color: #0a0a0a;
	--cmplz_banner_border_color: rgba(255, 255, 255, .16);
	--cmplz_banner_border_radius: 0;
	--cmplz_text_color: rgba(255, 255, 255, .88);
	--cmplz_hyperlink_color: #ffffff;
	--cmplz_text_font_size: 13px;
	--cmplz_text_line_height: 1.4;
	--cmplz_link_font_size: 13px;
	--cmplz_button_border_radius: 999px;
	--cmplz_button_font_size: 14px;
	--cmplz_button_accept_background_color: #ffffff;
	--cmplz_button_accept_border_color: #ffffff;
	--cmplz_button_accept_text_color: #0a0a0a;
	--cmplz_button_deny_background_color: transparent;
	--cmplz_button_deny_border_color: rgba(255, 255, 255, .7);
	--cmplz_button_deny_text_color: #ffffff;
	--cmplz_button_settings_background_color: transparent;
	--cmplz_button_settings_border_color: rgba(255, 255, 255, .7);
	--cmplz_button_settings_text_color: #ffffff;
	font-family: var(--g-font);
}
.g-body .cmplz-cookiebanner .cmplz-close { color: #ffffff; }
.g-body .cmplz-cookiebanner .cmplz-btn {
	font-family: var(--g-font); font-weight: 600;
	margin: 0 !important; height: 44px !important; padding: 0 16px !important;
	width: auto !important; min-width: 0 !important; white-space: nowrap;
}
.g-body .cmplz-cookiebanner .cmplz-buttons { flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; }
.g-body .cmplz-cookiebanner .cmplz-header,
.g-body .cmplz-cookiebanner .cmplz-divider { display: none !important; }
.g-body .cmplz-cookiebanner .cmplz-body,
.g-body .cmplz-cookiebanner .cmplz-documents { margin: 0 !important; }

/* Light pages: white banner, charcoal text, gold hairline (the black version stays on the black homepage). */
.g-light .cmplz-cookiebanner {
	--cmplz_banner_background_color: #ffffff;
	--cmplz_banner_border_color: #a8875a;
	--cmplz_text_color: #3b3f44;
	--cmplz_hyperlink_color: #1c1d1f;
	--cmplz_button_accept_background_color: #1c1d1f;
	--cmplz_button_accept_border_color: #1c1d1f;
	--cmplz_button_accept_text_color: #ffffff;
	--cmplz_button_deny_background_color: transparent;
	--cmplz_button_deny_border_color: #1c1d1f;
	--cmplz_button_deny_text_color: #1c1d1f;
	--cmplz_button_settings_background_color: transparent;
	--cmplz_button_settings_border_color: #1c1d1f;
	--cmplz_button_settings_text_color: #1c1d1f;
}
.g-light .cmplz-cookiebanner .cmplz-close { color: #1c1d1f; }
.g-light .cmplz-cookiebanner .cmplz-btn { border-width: 1.5px !important; }

/* Phones: compact card at the bottom; on the homepage at the top, so it never covers the hero buttons. */
@media (max-width: 767px) {
	.g-body .cmplz-cookiebanner.cmplz-show {
		left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom)) !important;
		width: auto; max-width: none; transform: none !important;
		margin: 0; padding: 14px 14px 12px; row-gap: 8px;
		box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
	}
	.g-light .cmplz-cookiebanner.cmplz-show { border-width: 1px !important; box-shadow: 0 12px 32px rgba(28, 29, 31, .14); }
	.g-body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { flex: 1 1 auto !important; padding: 0 12px !important; }
	.g-home .cmplz-cookiebanner.cmplz-show, .g-agency .cmplz-cookiebanner.cmplz-show { top: calc(8px + env(safe-area-inset-top)); bottom: auto !important; }
}

/* Tablet/desktop: one slim bar across the bottom; the page shrinks to sit above it. */
@media (min-width: 768px) {
	.g-body .cmplz-cookiebanner.cmplz-show {
		left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
		width: 100% !important; max-width: none !important; margin: 0 !important; transform: none !important;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto auto !important;
		grid-template-areas: "body docs buttons" !important;
		align-items: center; column-gap: 28px; row-gap: 0;
		padding: 14px var(--g-gutter) !important;
		border-width: 1px 0 0 !important;
	}
	.g-light .cmplz-cookiebanner.cmplz-show { box-shadow: 0 -8px 24px rgba(28, 29, 31, .06); }
	.g-body .cmplz-cookiebanner .cmplz-body { grid-area: body !important; max-width: none !important; }
	.g-body .cmplz-cookiebanner .cmplz-message { width: auto !important; max-width: 120ch; }
	.g-body .cmplz-cookiebanner .cmplz-documents { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; white-space: nowrap; }
	.g-body .cmplz-cookiebanner .cmplz-buttons { grid-area: buttons !important; }
	.g-body .cmplz-cookiebanner .cmplz-documents { grid-area: docs !important; justify-content: flex-start !important; }
	.g-body .cmplz-cookiebanner .cmplz-links.cmplz-information { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.g-body .cmplz-cookiebanner.cmplz-show {
		grid-template-columns: minmax(0, 1fr) auto !important;
		grid-template-areas: "body body" "docs buttons" !important;
		row-gap: 10px;
	}
	.g-body .cmplz-cookiebanner .cmplz-documents { flex-direction: row !important; gap: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* QA screenshots (?shot=1): hide the cookie bar and the preview pill */
html.g-shot body .cmplz-cookiebanner.cmplz-show, html.g-shot body .cmplz-cookiebanner, html.g-shot a[href*="h1929_preview=off"] { display: none !important; }
html.g-shot { --g-banner-h: 0px !important; }

/* Keep a phrase on one line (e.g. "UK and worldwide."). */
.g-nowrap { white-space: nowrap; }
