/* harken_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/HarkenHeadInclude.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. */

:root {
  --harken-brandkit: "0.1.0";
  --harken-primary: #ed1b34;
  --harken-primary-rgb: 237, 27, 52;
  --harken-secondary: #363535;
  --harken-secondary-rgb: 54, 53, 53;
  --harken-accent: #af1b34;
  --harken-accent-rgb: 175, 27, 52;
  --harken-text: #232323;
  --harken-text-rgb: 35, 35, 35;
  --harken-muted: #717477;
  --harken-muted-rgb: 113, 116, 119;
  --harken-bg: #ffffff;
  --harken-bg-rgb: 255, 255, 255;
  --harken-bg-subtle: #f6f1ea;
  --harken-bg-subtle-rgb: 246, 241, 234;
  --harken-bg-inverse: #363535;
  --harken-bg-inverse-rgb: 54, 53, 53;
  --harken-link: #ed1b34;
  --harken-link-rgb: 237, 27, 52;
  --harken-link-hover: #af1b34;
  --harken-link-hover-rgb: 175, 27, 52;
  --harken-border: #cdced0;
  --harken-border-rgb: 205, 206, 208;
  --harken-border-strong: #9ea0a2;
  --harken-border-strong-rgb: 158, 160, 162;
  --harken-font-body: "Roboto", sans-serif;
  --harken-font-heading: "Roboto Condensed", "Roboto", sans-serif;
  --harken-radius-sm: 4px;
  --harken-radius-md: 8px;
  --harken-radius-lg: 16px;
  --harken-card-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.075);
  --harken-input-focus: #ed1b34;
  --harken-input-focus-rgb: 237, 27, 52;
  --harken-btn-primary-hover: #cf0019;
  --harken-btn-primary-hover-text: #ffffff;
  --harken-btn-secondary-hover: #504f4f;
  --harken-btn-secondary-hover-text: #ffffff;
  --harken-focus-ring: #232323;
}

/* Hover and focus colours per colour scheme; the nearest scheme ancestor wins. */
[data-dw-colorscheme="light"] {
  --harken-btn-primary-hover: #cf0019;
  --harken-btn-primary-hover-text: #ffffff;
  --harken-btn-secondary-hover: #504f4f;
  --harken-btn-secondary-hover-text: #ffffff;
  --harken-focus-ring: #232323;
}
[data-dw-colorscheme="lightgrey1"] {
  --harken-btn-primary-hover: #cf0019;
  --harken-btn-primary-hover-text: #ffffff;
  --harken-btn-secondary-hover: #504f4f;
  --harken-btn-secondary-hover-text: #ffffff;
  --harken-focus-ring: #232323;
}
[data-dw-colorscheme="lightgrey2"] {
  --harken-btn-primary-hover: #cf0019;
  --harken-btn-primary-hover-text: #ffffff;
  --harken-btn-secondary-hover: #504f4f;
  --harken-btn-secondary-hover-text: #ffffff;
  --harken-focus-ring: #232323;
}
[data-dw-colorscheme="dark"] {
  --harken-btn-primary-hover: #cf0019;
  --harken-btn-primary-hover-text: #ffffff;
  --harken-btn-secondary-hover: #e4e4e4;
  --harken-btn-secondary-hover-text: #34373b;
  --harken-focus-ring: #ffffff;
}
[data-dw-colorscheme="darksubtle"] {
  --harken-btn-primary-hover: #e4e4e4;
  --harken-btn-primary-hover-text: #34373b;
  --harken-btn-secondary-hover: #504f4f;
  --harken-btn-secondary-hover-text: #ffffff;
  --harken-focus-ring: #ffffff;
}
[data-dw-colorscheme="primary"] {
  --harken-btn-primary-hover: #e4e4e4;
  --harken-btn-primary-hover-text: #34373b;
  --harken-btn-secondary-hover: #504f4f;
  --harken-btn-secondary-hover-text: #ffffff;
  --harken-focus-ring: #ffffff;
}
[data-dw-colorscheme="secondary"] {
  --harken-btn-primary-hover: #cf0019;
  --harken-btn-primary-hover-text: #ffffff;
  --harken-btn-secondary-hover: #e4e4e4;
  --harken-btn-secondary-hover-text: #34373b;
  --harken-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(--harken-btn-primary-hover);
  --bs-btn-hover-border-color: var(--harken-btn-primary-hover);
  --bs-btn-hover-color: var(--harken-btn-primary-hover-text);
  --bs-btn-active-bg: var(--harken-btn-primary-hover);
  --bs-btn-active-border-color: var(--harken-btn-primary-hover);
  --bs-btn-active-color: var(--harken-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(--harken-btn-secondary-hover);
  --bs-btn-hover-border-color: var(--harken-btn-secondary-hover);
  --bs-btn-hover-color: var(--harken-btn-secondary-hover-text);
  --bs-btn-active-bg: var(--harken-btn-secondary-hover);
  --bs-btn-active-border-color: var(--harken-btn-secondary-hover);
  --bs-btn-active-color: var(--harken-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(--harken-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(--harken-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(--harken-link-hover, var(--harken-link));
}

main .card {
  box-shadow: var(--harken-card-shadow);
}

:is(.form-control, .form-select):focus {
  border-color: var(--harken-input-focus);
  box-shadow: 0 0 0 0.2rem rgba(var(--harken-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 colour was not captured, so the header keeps the colour scheme set on its rows. */

/* Harken additions (build/10-brand.ps1): harken.com details the token build does not carry */
:root { --harken-red: #ED1B34; --harken-red-dark: #AF1B34; --harken-cream: #F6F1EA; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--harken-red-dark) !important; border-color: var(--harken-red-dark) !important; color: #fff !important; }
.btn-primary:hover svg, .btn-primary:focus svg, .btn-primary:hover .icon-2, .btn-primary:focus .icon-2 { fill: #fff !important; color: #fff !important; stroke: currentColor; }
h1, h2, h3, .h1, .h2, .h3 { letter-spacing: .02em; }
