/* brand.css - THE BRAND SLOT. This file belongs to the demo, not to the theme.
 *
 * WHAT IT IS
 * theme-default ships this sheet with no paint in it. DefaultHeadInclude.cshtml
 * registers it AFTER default_custom.css, so every rule a brand writes here wins a
 * cascade tie against the theme without !important, and the theme's own sheet is
 * never edited. A theme bump is then a file copy, not a re-copy plus re-append.
 *
 * WHO WRITES IT
 * A demo copies theme-default into a demo-local layer (or its build folder), rewrites
 * THIS file and brand.tokens.json beside it, and delivers the copy. It never appends
 * brand CSS to default_custom.css: an appended sheet is a fork of the theme that the
 * next theme release silently discards or silently fails to receive.
 *
 * WHAT GOES HERE, in this order
 *   1. The token block below, filled from brand.tokens.json (css section). Only the
 *      tokens the brand changes; an omitted token keeps the theme value.
 *   2. Brand-only component rules: the logo lockup, a signature section, a motif.
 *      A rule that would help every demo is not a brand rule: it is a theme fix and
 *      belongs in default_custom.css upstream (Distribution PR), not here.
 *
 * WHAT DOES NOT GO HERE
 *   - --dw-color-button-primary and the rest of the per-scheme palette. They live in
 *     the GENERATED System/Styles/ColorSchemes pair (.css AND .json), block #19 of
 *     default_custom.css. brand.tokens.json carries the scheme table a generator
 *     writes into that pair; this sheet only consumes the result.
 *   - Fonts. The Typography pair loads them (Google Fonts import) and sets
 *     --dw-font-family per role. This sheet may reference a brand font by name.
 *
 * WHY :root:root
 * DefaultHeadInclude.cshtml inlines a render-critical copy of six --td-* tokens in a
 * head <style> element, and its position relative to this sheet's link element is up
 * to the platform. A doubled :root (specificity 0,2,0) beats the inline :root (0,1,0)
 * whatever the source order, so a brand token cannot lose to the neutral copy and no
 * !important is needed.
 *
 * AUTHORING GUARDS (the same G1 to G4 as default_custom.css): never type the
 * comment-close sequence inside comment prose; keep the sentinel rule below so a
 * CSSOM assert can prove the sheet parsed; !important every override of a
 * Bootstrap/Swift flex utility in every tier; never write a numeric-leading id
 * selector. Never write a marker string into the page from here (no content: that
 * names the brand file, no debug banner).
 */

/* The sentinel. Inert: nothing in a Swift document carries the attribute. */
[data-td-block="brand"] { --td-block: brand; }

/* 1. Brand tokens. Ships with every declaration commented out, so the slot paints
 *    nothing until a demo fills it. Uncomment and set what the brand changes.
 *
 * :root:root {
 *   --td-ink:          #1F2933;
 *   --td-ink-soft:     #323F4B;
 *   --td-slate:        #3E4C59;
 *   --td-slate-mid:    #52606D;
 *   --td-slate-light:  #CBD2D9;
 *   --td-grey-light:   #F5F7FA;
 *   --td-hairline:     #E4E7EB;
 *   --td-white:        #FFFFFF;
 *   --td-accent:       #3E4C59;
 *   --td-accent-soft:  rgba(62, 76, 89, .07);
 *   --td-radius:       12px;
 *   --td-radius-sm:    8px;
 *   --td-shadow-soft:  0 1px 2px rgba(31, 41, 51, .06), 0 12px 28px -14px rgba(31, 41, 51, .22);
 *   --td-logo-h:       1.75rem;
 *   --td-logo-w-phone: 132px;
 *   --td-logo-w-laptop: 170px;
 *   --td-hero-max-h:   60vh;
 *   --td-button-primary-ink-primary: #RRGGBB;
 * }
 *
 * The first thirteen are the theme's own token block (the first six also have the
 * inline head copy). The logo and hero tokens size blocks #13, #23 and the
 * image-height caps. The button-ink token is the hook of block #30; set it only
 * when the brand needs it (README, "Opt-in hooks").
 *
 * The accent on dark grounds: a brand whose accent is dark on light schemes sets a
 * lighter one per dark scheme, for example
 *   [data-dw-colorscheme="dark"], [data-dw-colorscheme="darksubtle"] { --td-accent: #4FB184; }
 */

/* 2. Brand-only component rules go below this line. */

/* 4over tokens (brand kit captured from 4over.com, 2026-12-02) */
:root:root {
  --td-ink:          #231f20;
  --td-ink-soft:     #3a3a3a;
  --td-slate:        #3a3a3a;
  --td-slate-mid:    #494949;
  --td-slate-light:  #dddddd;
  --td-grey-light:   #f6f6f6;
  --td-hairline:     #e8e8e8;
  --td-white:        #ffffff;
  --td-accent:       #d93a00;
  --td-accent-soft:  rgba(245, 66, 2, .07);
  --td-logo-w-phone: 110px;
  --td-logo-w-laptop: 140px;
}
[data-dw-colorscheme="dark"], [data-dw-colorscheme="darksubtle"] { --td-accent: #ff6a33; }

/* Generated rules from 4over_custom.css (brand-kit-extractor 0.1.0) */
/* 4over_custom.css
   Generated by brand-kit-extractor 0.1.0 from brand.tokens.json; rebuild with build_swift2.py.
   Loaded after swift.css and the Style assets through Custom/4overHeadInclude.cshtml.
   Button fills and label colours come from the colour scheme JSON; this sheet only sets
   hover, focus and shape details on top of them. */

@font-face {
  font-family: "Montserrat";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/4over-montserrat-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/4over-montserrat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/4over-montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/4over-montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/4over-inter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/4over-inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/4over-inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/4over-inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --4over-brandkit: "0.1.0";
  --4over-primary: #d93a00;
  --4over-primary-rgb: 217, 58, 0;
  --4over-secondary: #005287;
  --4over-secondary-rgb: 0, 82, 135;
  --4over-accent: #005287;
  --4over-accent-rgb: 0, 82, 135;
  --4over-text: #231f20;
  --4over-text-rgb: 35, 31, 32;
  --4over-muted: #494949;
  --4over-muted-rgb: 73, 73, 73;
  --4over-bg: #ffffff;
  --4over-bg-rgb: 255, 255, 255;
  --4over-bg-subtle: #f6f6f6;
  --4over-bg-subtle-rgb: 246, 246, 246;
  --4over-bg-inverse: #3a3a3a;
  --4over-bg-inverse-rgb: 58, 58, 58;
  --4over-link: #231f20;
  --4over-link-rgb: 35, 31, 32;
  --4over-link-hover: #005287;
  --4over-link-hover-rgb: 0, 82, 135;
  --4over-border: #e8e8e8;
  --4over-border-rgb: 232, 232, 232;
  --4over-border-strong: #aaaaaa;
  --4over-border-strong-rgb: 170, 170, 170;
  --4over-font-body: "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --4over-font-heading: "Montserrat", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --4over-radius-sm: 5px;
  --4over-radius-md: 35px;
  --4over-radius-lg: 150px;
  --4over-btn-radius: 35px;
  --4over-card-radius: 0px;
  --4over-card-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.075);
  --4over-input-radius: 0px;
  --4over-input-focus: #d93a00;
  --4over-input-focus-rgb: 217, 58, 0;
  --4over-btn-primary-hover: #bc1500;
  --4over-btn-primary-hover-text: #ffffff;
  --4over-btn-secondary-hover: #003b6f;
  --4over-btn-secondary-hover-text: #ffffff;
  --4over-focus-ring: #231f20;
}

/* Hover and focus colours per colour scheme; the nearest scheme ancestor wins. */
[data-dw-colorscheme="light"] {
  --4over-btn-primary-hover: #bc1500;
  --4over-btn-primary-hover-text: #ffffff;
  --4over-btn-secondary-hover: #003b6f;
  --4over-btn-secondary-hover-text: #ffffff;
  --4over-focus-ring: #231f20;
}
[data-dw-colorscheme="lightgrey1"] {
  --4over-btn-primary-hover: #bc1500;
  --4over-btn-primary-hover-text: #ffffff;
  --4over-btn-secondary-hover: #003b6f;
  --4over-btn-secondary-hover-text: #ffffff;
  --4over-focus-ring: #231f20;
}
[data-dw-colorscheme="lightgrey2"] {
  --4over-btn-primary-hover: #bc1500;
  --4over-btn-primary-hover-text: #ffffff;
  --4over-btn-secondary-hover: #003b6f;
  --4over-btn-secondary-hover-text: #ffffff;
  --4over-focus-ring: #231f20;
}
[data-dw-colorscheme="dark"] {
  --4over-btn-primary-hover: #bc1500;
  --4over-btn-primary-hover-text: #ffffff;
  --4over-btn-secondary-hover: #e4e4e4;
  --4over-btn-secondary-hover-text: #1b1718;
  --4over-focus-ring: #ffffff;
}
[data-dw-colorscheme="darksubtle"] {
  --4over-btn-primary-hover: #bc1500;
  --4over-btn-primary-hover-text: #ffffff;
  --4over-btn-secondary-hover: #e4e4e4;
  --4over-btn-secondary-hover-text: #1b1718;
  --4over-focus-ring: #ffffff;
}
[data-dw-colorscheme="primary"] {
  --4over-btn-primary-hover: #e4e4e4;
  --4over-btn-primary-hover-text: #1b1718;
  --4over-btn-secondary-hover: #003b6f;
  --4over-btn-secondary-hover-text: #ffffff;
  --4over-focus-ring: #ffffff;
}
[data-dw-colorscheme="secondary"] {
  --4over-btn-primary-hover: #bc1500;
  --4over-btn-primary-hover-text: #ffffff;
  --4over-btn-secondary-hover: #e4e4e4;
  --4over-btn-secondary-hover-text: #1b1718;
  --4over-focus-ring: #ffffff;
}

/* Solid button variants only: outline, link, ghost and icon buttons keep Swift's own states. */
[data-dw-button]:is([data-dw-button="primary"], .btn-primary):not(.btn-link):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-info):not(.btn-outline-warning):not(.btn-outline-danger):not(.btn-outline-light):not(.btn-outline-dark):not(.btn-ghost):not(.btn-icon) {
  --bs-btn-hover-bg: var(--4over-btn-primary-hover);
  --bs-btn-hover-border-color: var(--4over-btn-primary-hover);
  --bs-btn-hover-color: var(--4over-btn-primary-hover-text);
  --bs-btn-active-bg: var(--4over-btn-primary-hover);
  --bs-btn-active-border-color: var(--4over-btn-primary-hover);
  --bs-btn-active-color: var(--4over-btn-primary-hover-text);
}
[data-dw-button]:is([data-dw-button="secondary"], .btn-secondary):not(.btn-link):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-info):not(.btn-outline-warning):not(.btn-outline-danger):not(.btn-outline-light):not(.btn-outline-dark):not(.btn-ghost):not(.btn-icon) {
  --bs-btn-hover-bg: var(--4over-btn-secondary-hover);
  --bs-btn-hover-border-color: var(--4over-btn-secondary-hover);
  --bs-btn-hover-color: var(--4over-btn-secondary-hover-text);
  --bs-btn-active-bg: var(--4over-btn-secondary-hover);
  --bs-btn-active-border-color: var(--4over-btn-secondary-hover);
  --bs-btn-active-color: var(--4over-btn-secondary-hover-text);
}
[data-dw-button]:not(.btn-link):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-info):not(.btn-outline-warning):not(.btn-outline-danger):not(.btn-outline-light):not(.btn-outline-dark):not(.btn-ghost):not(.btn-icon):focus-visible {
  outline: 2px solid var(--4over-focus-ring);
  outline-offset: 2px;
  box-shadow: none;
}

/* Link colours on the light schemes. */
main :is([data-dw-colorscheme="light"], [data-dw-colorscheme="lightgrey1"], [data-dw-colorscheme="lightgrey2"]) a:not(.btn):not(.page-link):not(.dropdown-item):not(.nav-link):not([data-dw-button]) {
  color: var(--4over-link);
}
main :is([data-dw-colorscheme="light"], [data-dw-colorscheme="lightgrey1"], [data-dw-colorscheme="lightgrey2"]) a:not(.btn):not(.page-link):not(.dropdown-item):not(.nav-link):not([data-dw-button]):hover {
  color: var(--4over-link-hover, var(--4over-link));
}

main .card {
  --bs-card-border-radius: var(--4over-card-radius);
  --bs-card-inner-border-radius: calc(var(--4over-card-radius) - 1px);
  border-radius: var(--4over-card-radius);
  box-shadow: var(--4over-card-shadow);
}

:is(.form-control, .form-select) {
  border-radius: var(--4over-input-radius);
}
:is(.form-control, .form-select):focus {
  border-color: var(--4over-input-focus);
  box-shadow: 0 0 0 0.2rem rgba(var(--4over-input-focus-rgb), 0.25);
}

/* Logo lockup: 210 px wide on desktop, 150 px below md. */
header[data-swift-page-header] :is(figure, figure svg, figure img) {
  max-width: 210px;
  height: auto;
}
@media (max-width: 767.98px) {
  header[data-swift-page-header] :is(figure, figure svg, figure img) {
    max-width: 150px;
  }
}

/* Content image bands never tower over the fold; a full-bleed poster is not affected. */
main :is([data-dw-itemtype="swift-v2_image"], [data-dw-itemtype="swift-v2_slider"]) figure {
  max-height: min(60vh, 640px);
  overflow: hidden;
}
main :is([data-dw-itemtype="swift-v2_image"], [data-dw-itemtype="swift-v2_slider"]) figure img {
  width: 100%;
  max-height: min(60vh, 640px);
  object-fit: cover;
}

/* Header paint on the landmark attribute (never .navbar); child rows are cleared so the paint shows. */
header[data-swift-page-header] {
  background-color: #ffffff;
}
header[data-swift-page-header] section[data-swift-gridrow][data-dw-colorscheme] {
  background-color: transparent;
}

/* 4over: price-lock outline button keeps 4.5:1 on its tinted hover */
.td-price-lock__action[data-dw-button="outline"]:hover,.td-price-lock__action[data-dw-button="outline"]:focus-visible{color:#a82d00 !important;border-color:#a82d00 !important}
