/* rhino_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/RhinoHeadInclude.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: "Work Sans";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/rhino-work-sans-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/rhino-work-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/rhino-work-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("/Files/Templates/Designs/Swift-v2/Custom/fonts/rhino-work-sans-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --rhino-brandkit: "0.1.0";
  --rhino-primary: #121ecd;
  --rhino-primary-rgb: 18, 30, 205;
  --rhino-accent: #1863dc;
  --rhino-accent-rgb: 24, 99, 220;
  --rhino-text: #000000;
  --rhino-text-rgb: 0, 0, 0;
  --rhino-muted: #444444;
  --rhino-muted-rgb: 68, 68, 68;
  --rhino-bg: #ffffff;
  --rhino-bg-rgb: 255, 255, 255;
  --rhino-bg-subtle: #f4f4f4;
  --rhino-bg-subtle-rgb: 244, 244, 244;
  --rhino-bg-inverse: #000000;
  --rhino-bg-inverse-rgb: 0, 0, 0;
  --rhino-link: #3044b8;
  --rhino-link-rgb: 48, 68, 184;
  --rhino-link-hover: #121ecd;
  --rhino-link-hover-rgb: 18, 30, 205;
  --rhino-border: #f4f4f4;
  --rhino-border-rgb: 244, 244, 244;
  --rhino-border-strong: #a4a4a4;
  --rhino-border-strong-rgb: 164, 164, 164;
  --rhino-font-body: "Work Sans", sans-serif;
  --rhino-font-heading: "Work Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --rhino-radius-sm: 2px;
  --rhino-radius-md: 6px;
  --rhino-radius-lg: 10px;
  --rhino-btn-radius: 4px;
  --rhino-card-radius: 8px;
  --rhino-card-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
  --rhino-input-radius: 0px;
  --rhino-input-focus: #121ecd;
  --rhino-input-focus-rgb: 18, 30, 205;
  --rhino-btn-primary-hover: #121ecd;
  --rhino-btn-primary-hover-text: #ffffff;
  --rhino-btn-secondary-hover: #121ecd;
  --rhino-btn-secondary-hover-text: #ffffff;
  --rhino-focus-ring: #000000;
}

/* Hover and focus colours per colour scheme; the nearest scheme ancestor wins. */
[data-dw-colorscheme="light"] {
  --rhino-btn-primary-hover: #121ecd;
  --rhino-btn-primary-hover-text: #ffffff;
  --rhino-btn-secondary-hover: #121ecd;
  --rhino-btn-secondary-hover-text: #ffffff;
  --rhino-focus-ring: #000000;
}
[data-dw-colorscheme="lightgrey1"] {
  --rhino-btn-primary-hover: #121ecd;
  --rhino-btn-primary-hover-text: #ffffff;
  --rhino-btn-secondary-hover: #121ecd;
  --rhino-btn-secondary-hover-text: #ffffff;
  --rhino-focus-ring: #000000;
}
[data-dw-colorscheme="lightgrey2"] {
  --rhino-btn-primary-hover: #121ecd;
  --rhino-btn-primary-hover-text: #ffffff;
  --rhino-btn-secondary-hover: #121ecd;
  --rhino-btn-secondary-hover-text: #ffffff;
  --rhino-focus-ring: #000000;
}
[data-dw-colorscheme="dark"] {
  --rhino-btn-primary-hover: #121ecd;
  --rhino-btn-primary-hover-text: #ffffff;
  --rhino-btn-secondary-hover: #e4e4e4;
  --rhino-btn-secondary-hover-text: #181818;
  --rhino-focus-ring: #ffffff;
}
[data-dw-colorscheme="darksubtle"] {
  --rhino-btn-primary-hover: #e4e4e4;
  --rhino-btn-primary-hover-text: #181818;
  --rhino-btn-secondary-hover: #121ecd;
  --rhino-btn-secondary-hover-text: #ffffff;
  --rhino-focus-ring: #ffffff;
}
[data-dw-colorscheme="primary"] {
  --rhino-btn-primary-hover: #e4e4e4;
  --rhino-btn-primary-hover-text: #181818;
  --rhino-btn-secondary-hover: #121ecd;
  --rhino-btn-secondary-hover-text: #ffffff;
  --rhino-focus-ring: #ffffff;
}
[data-dw-colorscheme="secondary"] {
  --rhino-btn-primary-hover: #121ecd;
  --rhino-btn-primary-hover-text: #ffffff;
  --rhino-btn-secondary-hover: #e4e4e4;
  --rhino-btn-secondary-hover-text: #181818;
  --rhino-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(--rhino-btn-primary-hover);
  --bs-btn-hover-border-color: var(--rhino-btn-primary-hover);
  --bs-btn-hover-color: var(--rhino-btn-primary-hover-text);
  --bs-btn-active-bg: var(--rhino-btn-primary-hover);
  --bs-btn-active-border-color: var(--rhino-btn-primary-hover);
  --bs-btn-active-color: var(--rhino-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(--rhino-btn-secondary-hover);
  --bs-btn-hover-border-color: var(--rhino-btn-secondary-hover);
  --bs-btn-hover-color: var(--rhino-btn-secondary-hover-text);
  --bs-btn-active-bg: var(--rhino-btn-secondary-hover);
  --bs-btn-active-border-color: var(--rhino-btn-secondary-hover);
  --bs-btn-active-color: var(--rhino-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) {
  --bs-btn-border-radius: var(--rhino-btn-radius);
}
[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(--rhino-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(--rhino-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(--rhino-link-hover, var(--rhino-link));
}

main .card {
  --bs-card-border-radius: var(--rhino-card-radius);
  --bs-card-inner-border-radius: calc(var(--rhino-card-radius) - 1px);
  border-radius: var(--rhino-card-radius);
  box-shadow: var(--rhino-card-shadow);
}

:is(.form-control, .form-select) {
  border-radius: var(--rhino-input-radius);
}
:is(.form-control, .form-select):focus {
  border-color: var(--rhino-input-focus);
  box-shadow: 0 0 0 0.2rem rgba(var(--rhino-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;
}

/* RHINO additions on top of the brand-kit sheet (tools/b1_brand.py appends this file to Custom/brand.css). */
/* Clean, flat enterprise look like rhinomobility.com: no edge motif between bands. */
:root { --td-edge-h: 0px; }
.td-edge-bottom::after, .td-edge-top::before { content: none !important; }
/* Device pictures sit on white like the Rhino site. */
.js-product img, .product-image img { background: #fff; }
/* Headings light like the Rhino site; product names stay medium so lists scan. */
h1, .h1, h2, .h2 { font-weight: 400; letter-spacing: -0.01em; }
.js-product .h6, .js-product h3, .product-title { font-weight: 500; }
