/* Shared UI and accessibility for both Brand A Page presentations. */
:root {
  --bap-ink: #171918;
  --bap-paper: #f8f9f5;
  --bap-accent: #d7f05b;
  --bap-muted: #5d635d;
  --bap-font: "DM Sans", system-ui, sans-serif;
}

html:not([data-view="bold"]) [data-view-only="bold"],
html[data-view="bold"] [data-view-only="refined"] {
  display: none !important;
}

.bap-style-picker[hidden] { display: none !important; }
.bap-style-picker {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 4px 4px 4px 57px;
  min-inline-size: 0;
  border: 1px solid #c8ccc4;
  border-radius: 999px;
  color: var(--bap-ink);
  background: var(--bap-paper);
  font: 600 .875rem/1 var(--bap-font);
  letter-spacing: 0;
  text-transform: none;
  isolation: isolate;
  mix-blend-mode: normal;
}
.bap-style-picker legend {
  position: absolute;
  top: 50%;
  left: 13px;
  padding: 0;
  transform: translateY(-50%);
  color: var(--bap-muted);
  font: inherit;
  font-weight: 500;
}
.bap-style-picker label { position: relative; display: block; margin: 0; cursor: pointer; }
.bap-style-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}
.bap-style-picker label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--bap-ink);
  font: inherit;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.bap-style-picker label:hover > span { background: #e6e9df; }
.bap-style-picker input:checked + span { background: var(--bap-ink); color: #fff; }
html[data-view="bold"] .bap-style-picker input:checked + span { background: var(--bap-accent); color: var(--bap-ink); }
.bap-style-picker input:focus-visible + span { outline: 2px solid var(--bap-ink); outline-offset: 3px; }
.bap-style-picker input:focus-visible { outline: none; box-shadow: none; }
.bap-style-picker * { box-sizing: border-box; }

html[data-view="refined"] body { cursor: auto; }
html[data-view="refined"] :where(a[href], button, label, input[type="radio"]) { cursor: pointer; }
html[data-view="refined"] :where(.cursor, .hb-cursor, .dw-cursor) { display: none !important; }
html[data-view="refined"] :where(.reveal, .hb-appear, .dw-reveal, .pf-reveal) { opacity: 1 !important; visibility: visible; transform: none !important; }
html:not(.bap-view-js) :where(.reveal, .hb-appear, .dw-reveal, .pf-reveal) { opacity: 1 !important; transform: none !important; }
html:not(.bap-view-js) :is(body, body *) { cursor: auto; }
html:not(.bap-view-js) :is(a[href], button) { cursor: pointer; }
html:not(.bap-view-js) :where(.cursor, .hb-cursor, .dw-cursor) { display: none !important; }
:where(a[href], button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid #171918; outline-offset: 4px; box-shadow: 0 0 0 6px #f8f9f5; }
html.bap-view-ready main > section { overflow-anchor: none; }

@media (max-width: 600px) {
  .bap-style-picker { padding-left: 4px; }
  .bap-style-picker legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; transform: none; }
  .bap-style-picker label > span { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  :where(.cursor, .hb-cursor, .dw-cursor) { display: none !important; }
  :where(.reveal, .hb-appear, .dw-reveal, .pf-reveal) { opacity: 1 !important; transform: none !important; }
  body, a, button, .project-static { cursor: auto; }
  a[href], button, label, input[type="radio"] { cursor: pointer; }
}
