/* Each setting inherits from the website unless the editor chooses a local value. */
[data-hima-body-size] {font-size:calc(1rem * var(--hima-body-scale))}
/* A body override may reach spans inside a headline or directory listing. Keep the two roles independent. */
[data-hima-body-font],
[data-hima-body-font] :where(p,span,a,button,label,input,select,textarea,option,li,td,th,b,strong,small,kbd,summary,dd,dt,legend,.eyebrow,.support-note,.rail-count,.oc-area,.oc-foot,.foot-base,.office-label,.hm-atlas,.oc-clock):not(:where(:is(h1,h2,h3,h4,h5,h6,caption,.nd-name),:is(h1,h2,h3,h4,h5,h6,caption,.nd-name) *)) {
  font-family:var(--hima-body-font) !important;
}
[data-hima-heading-font] :is(h1,h2,h3,h4,h5,h6,caption,.nd-name),
[data-hima-heading-font] :is(h1,h2,h3,h4,h5,h6,caption,.nd-name) :where(span,em,strong,b,a) {
  font-family:var(--hima-heading-font) !important;
}
[data-hima-body-weight],
[data-hima-body-weight] :where(p,span,a,button,label,input,select,textarea,option,li,td,th,b,strong,small,kbd,summary,dd,dt,legend,.eyebrow,.support-note,.rail-count,.oc-area,.oc-foot,.foot-base,.office-label,.hm-atlas,.oc-clock):not(:where(:is(h1,h2,h3,h4,h5,h6,caption,.nd-name),:is(h1,h2,h3,h4,h5,h6,caption,.nd-name) *)) {
  font-weight:var(--hima-body-weight) !important;
}
[data-hima-heading-weight] :is(h1,h2,h3,h4,h5,h6,caption,.nd-name),
[data-hima-heading-weight] :is(h1,h2,h3,h4,h5,h6,caption,.nd-name) :where(span,em,strong,b,a) {
  font-weight:var(--hima-heading-weight) !important;
}
[data-hima-body-style],
[data-hima-body-style] :where(p,span,a,button,label,input,select,textarea,option,li,td,th,b,strong,small,kbd,summary,dd,dt,legend,.eyebrow,.support-note,.rail-count,.oc-area,.oc-foot,.foot-base,.office-label,.hm-atlas,.oc-clock):not(:where(:is(h1,h2,h3,h4,h5,h6,caption,.nd-name),:is(h1,h2,h3,h4,h5,h6,caption,.nd-name) *)) {
  font-style:var(--hima-body-style) !important;
}
[data-hima-heading-style] :is(h1,h2,h3,h4,h5,h6,caption,.nd-name),
[data-hima-heading-style] :is(h1,h2,h3,h4,h5,h6,caption,.nd-name) :where(span,em,strong,b,a) {
  font-style:var(--hima-heading-style) !important;
}
/* Body italics inherit through containers; original section headings are upright. */
[data-hima-body-style]:not([data-hima-heading-style]) :is(h1,h2,h3,h4,h5,h6,caption,.nd-name) {
  font-style:normal;
}
#network[data-hima-heading-size] .nd-content h3 {font-size:calc(1.17rem * var(--hima-heading-scale))}
#network[data-hima-heading-size] .nd-content caption {font-size:calc(1rem * var(--hima-heading-scale))}

:root[data-theme=light][data-hima-light-buttons] {
  --hima-accent-raw:var(--hima-light-fill);
  --hima-accent-on-dark:var(--hima-light-onDark);
  --hima-accent-on-light:var(--hima-light-onLight);
  --hima-on-accent:var(--hima-light-ink);
  --hima-btn-fill:var(--hima-light-fill);
  --hima-btn-text:var(--hima-light-text);
  --hima-btn-hover:var(--hima-light-hoverFill);
  --hima-btn-hover-text:var(--hima-light-hoverText);
}
:root[data-theme=dark][data-hima-dark-buttons] {
  --hima-accent-raw:var(--hima-dark-fill);
  --hima-accent-on-dark:var(--hima-dark-onDark);
  --hima-accent-on-light:var(--hima-dark-onLight);
  --hima-on-accent:var(--hima-dark-ink);
  --hima-btn-fill:var(--hima-dark-fill);
  --hima-btn-text:var(--hima-dark-text);
  --hima-btn-hover:var(--hima-dark-hoverFill);
  --hima-btn-hover-text:var(--hima-dark-hoverText);
}
/* Filled CTAs use the editor's exact foreground and hover choices. */
:root:is([data-theme=dark][data-hima-dark-buttons],[data-theme=light][data-hima-light-buttons])
:is(.light-btn, .enquiry-send, .footer-enquiry, .nd-form-button, .theme-switch, .menu,
    .round, .oc-info, .oc-close, .oc-plot, .oc-cast, .oc-repair button,
    .oc-speed-step button, .oc-steer-buttons button, .hm-atlas-pin, .hm-atlas-inset,
    .hm-atlas-chooser button, .oc-error button,
    .nd-more:is(:hover,:focus-visible), .nd-row[open] .nd-toggle,
    .nd-row summary:is(:hover,:focus-visible) .nd-toggle,
    .mode-switch button:is(:hover,:focus-visible,[aria-pressed=true]),
    .oc-cameras button:is(:hover,:focus-visible,[aria-pressed=true])) {
  color:var(--hima-button-foreground,var(--hima-btn-text)) !important;
  background-color:var(--hima-button-background,var(--hima-btn-fill)) !important;
  border-color:var(--hima-button-background,var(--hima-btn-fill)) !important;
}

/* Set these variables on the interactive element itself, so its label and icon
   change together. The directory's expand/collapse marker inherits from summary. */
:root:is([data-theme=dark][data-hima-dark-buttons],[data-theme=light][data-hima-light-buttons])
:is(button,a,summary):is(:hover,:focus-visible,:active,[aria-pressed=true],.is-selected,.oc-held):not(:disabled),
:root:is([data-theme=dark][data-hima-dark-buttons],[data-theme=light][data-hima-light-buttons])
.nd-row[open] .nd-toggle {
  --hima-button-background:var(--hima-btn-hover);
  --hima-button-foreground:var(--hima-btn-hover-text);
}

:root:is([data-theme=dark][data-hima-dark-buttons],[data-theme=light][data-hima-light-buttons])
.hm-atlas-key .hm-atlas-key-pin::before {
  background:var(--hima-btn-fill);border-color:var(--hima-btn-text);
}
:root:is([data-theme=dark][data-hima-dark-buttons],[data-theme=light][data-hima-light-buttons])
.hm-atlas-key .hm-atlas-key-selected::before {
  background:var(--hima-btn-hover);border-color:var(--hima-btn-hover-text);
}
