/* One tactile control language across the boardroom, circuit and campaign. */
:root { --control-brass: #704719; --control-mahogany: #58382b; --control-chrome: #8d9695; --control-paper: #fffaf1; }
button:not(:disabled), a.primary, a.secondary, a.hero-link, a.back-link, .button:not(.disabled), [role="button"] {
  position: relative;
  cursor: pointer;
  transform: translateY(-2px);
  font-family: inherit;
  box-shadow: 0 3px 0 var(--control-chrome), 0 7px 16px #42382c28, inset 0 1px 0 #ffffff80;
  transition: transform 130ms ease, box-shadow 130ms ease, background-color 130ms ease, color 130ms ease, filter 130ms ease;
}
button:not(:disabled):hover, a.primary:hover, a.secondary:hover, a.hero-link:hover, a.back-link:hover, .button:not(.disabled):hover, [role="button"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 0 var(--control-mahogany), 0 12px 24px #42382c30, inset 0 1px 0 #ffffff80;
  filter: brightness(1.04);
}
button:not(:disabled):active, .is-pressed, a.primary:active, a.secondary:active, a.hero-link:active, a.back-link:active, .button:not(.disabled):active, [role="button"]:active {
  transform: translateY(2px) scale(.985);
  background-color: var(--control-brass);
  color: var(--control-paper);
  box-shadow: 0 1px 0 var(--control-mahogany), 0 3px 9px #42382c30, inset 0 2px 6px #58382b33;
  filter: none;
}
button:focus-visible, a.primary:focus-visible, a.secondary:focus-visible, a.hero-link:focus-visible, a.back-link:focus-visible, .button:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid var(--control-brass);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  button:not(:disabled), a.primary, a.secondary, a.hero-link, a.back-link, .button:not(.disabled), [role="button"] { transition: none; transform: none; }
  button:not(:disabled):is(:hover,:active), a:is(.primary,.secondary,.hero-link,.back-link):is(:hover,:active), .button:is(:hover,:active), [role="button"]:is(:hover,:active) { transform: none; }
}

/* Native, touch-friendly help used by the guided journey and its qualification gate. */
.tank-help { position: relative; display: inline-block; flex: 0 0 44px; vertical-align: middle; }
.tank-help > summary {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  list-style: none;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: transparent;
  font-size: 0;
  cursor: help;
}
.tank-help > summary::-webkit-details-marker { display: none; }
.tank-help > summary::marker { content: ""; }
.tank-help > summary::before {
  box-sizing: border-box;
  content: "?";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--control-brass);
  border-radius: 50%;
  color: #302720;
  background: var(--control-paper);
  font: 700 12px/18px system-ui, sans-serif;
}
.tank-help > summary:focus-visible { outline: 3px solid var(--control-brass); outline-offset: 3px; }
.tank-help:not([open]) > .tank-help-popover { display: none; }
/* Closed native details content otherwise establishes a hidden containing block. */
.tank-help:not([data-help-dismissed="true"]):is(:hover, :focus-within)::details-content,
.tank-help:not([data-help-dismissed="true"])[open]::details-content { content-visibility: visible; }
.tank-help:not([data-help-dismissed="true"]):is(:hover, :focus-within) > .tank-help-popover,
.tank-help:not([data-help-dismissed="true"])[open] > .tank-help-popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  box-sizing: border-box;
  display: block;
  width: min(320px, calc(100vw - 32px));
  max-height: min(70vh, 32rem);
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid #8d9695;
  border-radius: 9px;
  color: #282521;
  background: #fffaf1;
  box-shadow: 0 10px 26px #17120e55;
  font: 400 16px/1.55 system-ui, sans-serif;
  text-align: left;
}
.tank-help-popover > :first-child { margin-top: 0; }
.tank-help-popover > :last-child { margin-bottom: 0; }
.tank-help-popover p { color: inherit; }
.modeling-help {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--control-paper);
  font: 700 13px/1.5 system-ui, sans-serif;
}
.modeling-help > span:first-child {
  padding: 6px 10px;
  border: 1px solid #d6c29c;
  border-radius: 4px;
  color: #fffaf1;
  background: #58382b;
}
.modeling-help .tank-help { flex: 0 0 44px; }
.modeling-help .tank-help-popover { border-color: #704719; border-top: 3px solid #58382b; }
.modeling-help .tank-help-popover strong { color: #704719; }
.hero-copy-block .hero-qualifier {
  width: fit-content;
  max-width: 100%;
  margin: -4px 0 12px;
  padding: 6px 10px;
  border-left: 2px solid #e0c891;
  color: #fffaf1;
  background: #17120eb8;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  text-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .tank-help, .tank-help > summary, .tank-help-popover { transition: none !important; transform: none !important; scroll-behavior: auto !important; }
}

/* Native disclosures anchor to the full label, so help stays readable before JavaScript. */
.modeling-help { position: relative; max-width: 100%; }
.modeling-help .tank-help { position: static; }
.modeling-help .tank-help:not([data-help-dismissed="true"]):is(:hover, :focus-within) > .tank-help-popover,
.modeling-help .tank-help:not([data-help-dismissed="true"])[open] > .tank-help-popover {
  left: 0;
  right: auto;
  max-width: 100%;
}
