/* central-milton-keynes — generated by tools/generate-tokens.mjs from
   clients/central-milton-keynes/contract.tokens.json. DO NOT EDIT: change the contract
   and regenerate. `node tools/generate-tokens.mjs central-milton-keynes --check` fails
   when this file and the contract disagree. */

:root {
  /* Brand palette: private. Only the roles below may use these. */
  --_navy:                  #1A1A2E;
  --_navy-raised:           #262641;
  --_cream:                 #FAF8F4;
  --_cream-tint:            #F0EBE3;
  --_rust:                  #C0392B;
  --_rust-deep:             #96291E;
  --_gold:                  #D4A843;
  --_body:                  #2D3748;
  --_muted:                 #4A5568;
  --_meta:                  #6F6758;
  --_rule:                  #E3DDD3;
  --_on-dark-soft:          #D9D4C9;
  --_white:                 #FFFFFF;

  /* fg */
  --fg-strong:              var(--_navy);
  --fg-medium:              var(--_body);
  --fg-secondary:           var(--_muted);
  --fg-muted:               var(--_muted);
  --fg-on-dark:             var(--_white);
  --fg-on-dark-soft:        var(--_on-dark-soft);
  --fg-on-accent:           var(--_white);
  --fg-on-accent-soft:      var(--_cream-tint);
  --fg-eyebrow:             var(--_rust);
  --fg-emphasis-on-dark:    var(--_gold);
  --fg-link:                var(--_rust);
  --fg-link-on-dark:        var(--_gold);
  --fg-on-badge:            var(--_white);
  --fg-link-hover:          var(--_rust-deep);
  --fg-link-visited:        var(--_rust-deep);
  --fg-caption:             var(--_muted);
  --fg-cite:                var(--_muted);
  --fg-quote:               var(--_navy);
  --fg-nav-current:         var(--_rust);
  --fg-nav-ancestor:        var(--_rust);
  --fg-label:               var(--_body);
  --fg-placeholder:         var(--_muted);

  /* field */
  --field-bg:               var(--_white);
  --field-fg:               var(--_body);
  --field-border:           var(--_meta);
  --field-border-focus:     var(--_rust);
  --field-radius:           var(--radius-sm);
  --field-height:           2.75rem;

  /* status */
  --status-error-bg:        #FDECEA;
  --status-error-fg:        #8C1D13;
  --status-warning-bg:      #FDF4E3;
  --status-warning-fg:      #7A5406;
  --status-success-bg:      #E9F4EC;
  --status-success-fg:      #1B5E34;

  /* link */
  --link-rule:              var(--_rust);
  --link-rule-thickness:    1px;
  --link-rule-offset:       0.15em;

  /* surface */
  --surface-page:           var(--_cream);
  --surface-raised:         var(--_white);
  --surface-sunken:         var(--_cream-tint);
  --surface-inverse:        var(--_navy);
  --surface-inverse-raised: var(--_navy-raised);
  --surface-accent:         var(--_rust);
  --surface-marker:         var(--_cream-tint);
  --surface-badge:          var(--_rust);
  --surface-table-header:   var(--_cream-tint);
  --surface-selected:       var(--_cream-tint);
  --surface-code:           var(--_cream-tint);
  --surface-tint:           var(--_cream-tint);

  /* ground */
  --ground-text:            var(--fg-medium);

  /* gradient */
  --gradient-hero:          none;

  /* action */
  --action-primary-bg:      var(--_rust);
  --action-primary-fg:      var(--_white);
  --action-on-dark-bg:      var(--_gold);
  --action-on-dark-fg:      var(--_navy);
  --action-on-accent-bg:    var(--_white);
  --action-on-accent-fg:    var(--_rust);
  --action-ghost-border:    var(--_white);
  --action-ghost-fg:        var(--_white);
  --action-primary-bg-hover: var(--_rust-deep);
  --action-primary-fg-hover: var(--_white);
  --action-on-dark-bg-hover: var(--_white);
  --action-on-accent-bg-hover: var(--_cream-tint);
  --action-disabled-bg:     var(--_rule);
  --action-disabled-fg:     var(--_muted);
  --action-press-shift:     1px;
  --action-radius:          var(--radius-sm);
  --action-border-width:    0px;

  /* border */
  --border-faint:           var(--_rule);
  --border-card:            var(--_rule);
  --border-soft:            var(--_rule);
  --border-on-dark:         rgba(255, 255, 255, 0.2);
  --border-accent:          var(--_rust);
  --border-accent-on-dark:  var(--_gold);
  --border-quote:           var(--_rust);
  --border-table:           var(--_meta);
  --border-selected:        var(--_rust);

  /* focus */
  --focus-ring:             var(--_rust);
  --focus-ring-width:       2px;
  --focus-ring-offset:      2px;

  /* motion */
  --motion-base:            180ms;

  /* ease */
  --ease-standard:          cubic-bezier(0.4, 0, 0.2, 1);

  /* tracking */
  --tracking-tight:         -0.02em;
  --tracking-wide:          0.08em;

  /* font */
  --font-body:              'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading:           'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono:              ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* hairline */
  --hairline:               1px;

  /* radius */
  --radius-sm:              4px;
  --radius-md:              8px;
  --radius-lg:              12px;
  --radius-pill:            9999px;
  --radius-xs:              2px;
  --radius-org:             0;

  /* shadow */
  --shadow-card-tinted:     0 8px 20px -12px rgba(26, 26, 46, 0.18);
  --shadow-card-sm:         0 1px 2px 0 rgba(26, 26, 46, 0.06);
  --shadow-card-md:         0 4px 12px -4px rgba(26, 26, 46, 0.10);
  --shadow-card-lg:         0 12px 28px -10px rgba(26, 26, 46, 0.14);
  --shadow-image:           none;

  /* t */
  --t-hero:                 clamp(2.5rem, 5vw, 4rem);
  --t-section:              clamp(1.875rem, 3vw, 2.5rem);
  --t-h3:                   1.375rem;
  --t-title:                1.75rem;
  --t-card-title:           1.25rem;
  --t-lead:                 1.125rem;
  --t-body:                 1rem;
  --t-small:                0.875rem;
  --t-eyebrow:              0.8125rem;
  --t-stat:                 clamp(2rem, 4vw, 2.75rem);
  --t-label:                0.875rem;
  --t-tag:                  0.75rem;

  /* lh */
  --lh-tight:               1.1;
  --lh-snug:                1.2;
  --lh-normal:              1.5;
  --lh-relaxed:             1.65;
  --lh-flush:               1;

  /* fw */
  --fw-regular:             400;
  --fw-semi:                600;
  --fw-bold:                700;
  --fw-medium:              500;

  /* space */
  --space-0:                0;
  --space-1:                0.25rem;
  --space-2:                0.5rem;
  --space-3:                0.75rem;
  --space-4:                1rem;
  --space-5:                1.25rem;
  --space-6:                1.5rem;
  --space-7:                2rem;
  --space-8:                2.5rem;
  --space-9:                3rem;
  --space-10:               4rem;
  --space-11:               5rem;
  --space-12:               6rem;

  /* measure */
  --measure-site:           88rem;
  --measure-banner:         82rem;
  --measure-content:        calc(var(--measure-banner) - var(--gutter) - var(--measure-banner) * 0.27 - var(--sidebar-gap));
  --measure-prose:          38rem;
  --measure-prose-tight:    32rem;

  /* gutter */
  --gutter:                 3rem;
  --gutter-page-edge:       1.5rem;

  /* breakpoint */
  --breakpoint-mobile:      48em;
  --breakpoint-sidebar:     64em;

  /* sidebar */
  --sidebar-width:          27%;
  --sidebar-gap:            2.5rem;

  /* main */
  --main-basis:             1124px;

  /* banner */
  --banner-art-cap:         520px;
  --banner-text-max:        34ch;
  --banner-padding-start:   var(--space-10);
  --banner-padding-end:     var(--space-10);
  --banner-overlap:         0;

  /* card */
  --card-radius:            var(--radius-md);
  --card-border-width:      1px;
  --card-header-bg:         var(--_navy);
  --card-header-fg:         var(--_white);

  /* list */
  --list-marker-size:       8px;

  /* image */
  --image-radius:           var(--radius-md);

  /* header */
  --header-height:          5rem;

  /* layer */
  --layer-base:             0;
  --layer-raised:           1;
  --layer-sticky:           10;
  --layer-header:           20;
  --layer-overlay:          30;
}

body:not(.has-sidebar) { --measure-content: 64rem; }

.c-ground--sunken { background: var(--surface-sunken); }

.c-ground--raised {
  background: var(--surface-raised);
  --ground-text:        var(--fg-medium);
  --fg-muted:           var(--_muted);
  color: var(--ground-text);
}

.c-ground--inverse {
  background: var(--surface-inverse);
  --ground-text:        var(--_white);
  --fg-strong:          var(--_white);
  --fg-medium:          var(--_white);
  --fg-secondary:       var(--_on-dark-soft);
  --fg-muted:           var(--_on-dark-soft);
  --fg-eyebrow:         var(--_gold);
  --fg-link:            var(--_gold);
  --border-faint:       rgba(255, 255, 255, 0.2);
  --border-card:        rgba(255, 255, 255, 0.2);
  --surface-raised:     var(--_navy-raised);
  --focus-ring:         var(--_gold);
  --shadow-card-tinted: none;
  color: var(--ground-text);
}

.c-ground--accent {
  background: var(--surface-accent);
  --ground-text:        var(--_white);
  --fg-strong:          var(--_white);
  --fg-medium:          var(--_white);
  --fg-secondary:       var(--_cream-tint);
  --fg-muted:           var(--_cream-tint);
  --fg-eyebrow:         var(--_cream-tint);
  --fg-link:            var(--_white);
  --border-faint:       rgba(255, 255, 255, 0.3);
  --border-card:        rgba(255, 255, 255, 0.3);
  --focus-ring:         var(--_white);
  --shadow-card-tinted: none;
  color: var(--ground-text);
}

.c-ground--tint {
  background: var(--surface-tint);
  --ground-text:        var(--_body);
  --fg-strong:          var(--_navy);
  --fg-medium:          var(--_body);
  --fg-muted:           var(--_muted);
  --fg-eyebrow:         var(--_rust);
  --fg-link:            var(--_rust);
  --border-faint:       var(--_rule);
  color: var(--ground-text);
}

.c-ground--page {
  background: var(--surface-page);
  --ground-text:        var(--_body);
  --fg-muted:           var(--_muted);
  --fg-strong:          var(--_navy);
  --fg-medium:          var(--_body);
  --fg-secondary:       var(--_muted);
  --fg-eyebrow:         var(--_rust);
  --fg-link:            var(--_rust);
  --border-faint:       var(--_rule);
  --border-card:        var(--_rule);
  --surface-raised:     var(--_white);
  --focus-ring:         var(--_rust);
  --shadow-card-tinted: 0 8px 20px -12px rgba(26, 26, 46, 0.18);
  --action-primary-bg:  var(--_rust);
  --action-primary-fg:  var(--_white);
  --action-primary-bg-hover: var(--_rust-deep);
  --action-primary-fg-hover: var(--_white);
  --action-ghost-border: var(--_white);
  --action-ghost-fg:    var(--_white);
  color: var(--ground-text);
}

/* The sidebar beside the content, from the site's own breakpoint.

   Source for tools/generate-tokens.mjs, which writes this into each client's
   tokens.css with 64em replaced by the contract's
   breakpoint.sidebar (1025px, Kadence's own, when the contract leaves it
   empty). A media query cannot read a custom property, so the value is
   written in. Moved here from components/_frame.scss and _banner.scss on
   30 October 2026, where 1025px was fixed.

   Below the breakpoint the sidebar drops under the content and the banner's
   quick menu takes its place; on a phone the quick menu is all there is
   (Matt, 6 October 2026). Kadence makes the content and sidebar a grid from
   its own 1025px, so the grid is switched on and off here at the site's
   value instead. Plain CSS: no Sass reaches this file. */

@media screen and (width < 64em) {
	/* Below the site's breakpoint the sidebar stacks, even where Kadence
	   would still put it beside the content. */
	:root .cw-frame.has-sidebar .content-container {
		display: block;
	}
}

@media screen and (min-width: 64em) {
	/* From the site's breakpoint the sidebar sits beside the content, even
	   where Kadence would not yet. */
	:root .cw-frame.has-sidebar .content-container {
		display: grid;
	}

	:root .cw-frame.has-sidebar .content-container {
		column-gap: var(--sidebar-gap);
		grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
	}

	:root .cw-frame.has-left-sidebar .content-container {
		grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
	}

	/* sidebar.divider: rule. A hairline in border.soft down the sidebar's
	   content-side edge, then the gap (Thain Wildbur's service pages, whose
	   sidebar is on the left). A right sidebar's text keeps a little room
	   from its rule. */
	:root .cw-sidebar-divider--rule.has-sidebar #secondary {
		border-inline-start: var(--hairline) solid var(--border-soft);
		padding-inline-start: var(--space-6);
	}

	:root .cw-sidebar-divider--rule.has-left-sidebar #secondary {
		border-inline-start: 0;
		border-inline-end: var(--hairline) solid var(--border-soft);
		padding-inline: 0 var(--space-6);
	}

	:root .cw-frame.has-sidebar .entry-content > :is(.c-stack-prose, .c-inset-quotes) {
		padding-inline: var(--page-edge) max(var(--page-edge), 100% - var(--page-edge) - var(--measure-prose));
	}

	/* One left edge beside a sidebar. Grounds, a full-width band or a panel's
	   own box, fill the content column; everything printed on the page or on
	   a ground starts at the page edge inside it, where the reading panels'
	   text starts. Text stops at the measure; grids and cards run on to the
	   same edge on the right. */
	:root .cw-frame.has-sidebar .entry-content > :is(.c-grid-facts, .c-cards-guides, .c-cards-hubs, .c-cards-cases, .c-split-cases, .c-rows-stories, .c-cards-people, .c-strip-facts:not(.c-strip-facts--inverse)) {
		padding-inline: var(--page-edge);
	}

	:root .cw-frame.has-sidebar .entry-content :is(.c-inset-facts__ground, .c-rows-quotes__ground, .c-strip-facts__ground) {
		padding-inline: var(--page-edge);
	}

	:root .cw-frame.has-sidebar .entry-content > * {
		--reading-measure: var(--measure-prose);
	}

	/* The figure's frame fills the content column like a ground; its caption
	   is text, so it starts on the page edge with the rest. */
	:root .cw-frame.has-sidebar .entry-content .c-inset-figure__caption {
		padding-inline: var(--page-edge);
		max-width: calc(var(--reading-measure) + 2 * var(--page-edge));
	}

	/* The panel's own lines of text, not those in its cards or grid: straight
	   in the panel or its ground, or in the inner container a classic theme
	   wraps round each Group's content (panels/_classic-groups.scss). */
	:root .cw-frame.has-sidebar .entry-content :is(.c-grid-facts, .c-cards-guides, .c-cards-hubs, .c-cards-cases, .c-split-cases, .c-rows-stories, .c-cards-people, .c-strip-facts, .c-inset-facts__ground, .c-rows-quotes__ground, .c-strip-facts__ground) > :is(.c-head, .c-eyebrow, .c-title, .c-lead, .c-sub, .c-body),
	:root .cw-frame.has-sidebar .entry-content :is(.c-grid-facts, .c-cards-guides, .c-cards-hubs, .c-cards-cases, .c-split-cases, .c-rows-stories, .c-cards-people, .c-strip-facts, .c-inset-facts__ground, .c-rows-quotes__ground, .c-strip-facts__ground) > :is(.c-measure, .wp-block-group__inner-container) > :is(.c-head, .c-eyebrow, .c-title, .c-lead, .c-sub, .c-body),
	:root .cw-frame.has-sidebar .entry-content .c-strip-facts > .wp-block-group__inner-container > .c-measure > .wp-block-group__inner-container > .c-head {
		max-width: var(--reading-measure);
	}

	.c-banner-menu {
		display: none;
	}

	/* panels/_article.scss: the reading panels beside a sidebar */
	:root:root .has-sidebar :is(.c-stack-prose, .c-inset-quotes) {
		padding-inline: var(--gutter) max(var(--gutter), 100% - var(--gutter) - var(--measure-prose));
	}

	/* panels/_split-prose.scss: its reading column at the measure beside a sidebar */
	@container c-split-prose (max-width: 863.98px) {
		:root:root .cw-frame.has-sidebar :is(.c-split-prose__grid, .c-split-prose__grid > .wp-block-group__inner-container) > :is(.c-head, .c-split-prose__body) {
			max-width: var(--reading-measure);
		}
	}

	/* panels/_inset-quotes.scss: a pair of quotes beside a sidebar (after article, so it wins) */
	:root:root .has-sidebar .c-inset-quotes--2 {
		padding-inline: var(--gutter);
	}

	:root .cw-frame.has-sidebar .entry-content > .c-inset-quotes--2 {
		padding-inline: var(--page-edge);
	}

	/* panels/_inset-video.scss: its text on the page edge beside a sidebar */
	:root .cw-frame.has-sidebar .entry-content .c-inset-video > :is(.c-title, .c-lead, .c-inset-video__caption),
	:root .cw-frame.has-sidebar .entry-content .c-inset-video > .wp-block-group__inner-container > :is(.c-title, .c-lead, .c-inset-video__caption) {
		padding-inline: var(--page-edge);
		max-width: calc(var(--reading-measure) + 2 * var(--page-edge));
	}

	/* panels/_section-menu.scss: the menu level with the content (sidebar.top) */
	body:not(.cw-sidebar-top--align-top) #secondary .c-context-menu:has(> .c-context-menu__heading) {
		padding-block-start: 45px;
	}

	body:not(.cw-sidebar-top--align-top).has-sidebar:has(.single-content > :is(.c-cards-cases, .c-rows-quotes, .c-rows-stories, .c-inset-facts, .c-grid-facts, .c-cards-guides):first-child) #secondary .c-context-menu:has(> .c-context-menu__heading) {
		padding-block-start: calc(var(--space-7) + 45px);
	}

	/* Content that opens with the dark facts strip: level with the strip's box,
	   which sits the Panel's wide-screen top padding down. */
	body:not(.cw-sidebar-top--align-top).has-sidebar:has(.single-content > .c-strip-facts--inverse:first-child) #secondary .c-context-menu:has(> .c-context-menu__heading) {
		padding-block-start: calc(var(--space-11) + 45px);
	}

	.cw-sidebar-top--align-top.has-sidebar :is(.entry-content, .single-content) > :first-child {
		margin-block-start: 0;
	}

	.cw-sidebar-top--align-top.has-sidebar :is(.entry-content, .single-content) > :first-child:not([class*="c-ground--"]) {
		padding-block-start: 0;
	}

	/* A Panel on its own ground keeps a box around its text: as much space
	   above as at its sides, not a full section's worth. */
	.cw-sidebar-top--align-top.has-sidebar :is(.entry-content, .single-content) > :first-child[class*="c-ground--"] {
		padding-block-start: var(--space-9);
	}
}
