/* One department brief and adaptive invitation; the choices set its contents. */
.department-brief {
  --ending-paper: #f7f9fc;
  --ending-ink: #142b49;
  --ending-red: #aa2833;
  --ending-white: #ffffff;
  margin: 0;
  padding: 0;
  background: var(--ending-paper);
  color: var(--ending-ink);
  font-family: "Switzer", Arial, sans-serif;
}
.ending-inner {
  width: min(1320px, calc(100% - clamp(40px, 8.8vw, 176px)));
  margin-inline: auto;
}
.ending-setup { padding-block: 72px 64px; }
.ending-setup .ending-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(50px, 7vw, 110px);
}
.ending-prelude { display: block; margin: 0; }
.ending-prelude .demo-brief-eyebrow {
  margin: 4px 0 0;
  color: var(--ending-ink);
  font-size: 10px;
}
.ending-prelude > p:last-child {
  margin: 28px 0 0;
  max-width: 13ch;
  font: 550 clamp(34px, 3.8vw, 55px)/1.05 "Hubot Sans", Arial, sans-serif;
  letter-spacing: -.045em;
}
.department-brief .demo-brief-choices { min-width: 0; padding: 0; margin: 0; border: 0; }
.department-brief .demo-brief-legend { width: 100%; padding: 0 0 18px; font-size: 12px; font-weight: 550; line-height: 1.55; }
.department-brief .demo-brief-legend span { color: #52657c; font-weight: 400; margin-left: 8px; }
.ending-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 34px;
}
.department-brief .demo-brief-choice {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 122px;
  padding: 20px 0 14px;
  border-top: 1px solid #c5d0df;
  border-bottom: 0;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.department-brief .demo-brief-choice input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  border: 1.5px solid #52657c;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: inherit;
}
.department-brief .demo-brief-choice input::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0;
}
.department-brief .demo-brief-choice input:checked { background: var(--ending-red); border-color: var(--ending-red); }
.department-brief .demo-brief-choice input:checked::after { opacity: 1; }
.department-brief .demo-brief-choice input:focus-visible { outline: 2px solid var(--ending-red); outline-offset: 5px; }
.department-brief .demo-brief-choice:has(input:focus-visible) { outline: 1px solid var(--ending-red); outline-offset: 7px; }
.department-brief .demo-brief-choices:disabled .demo-brief-choice { cursor: default; }
.department-brief .demo-brief-choices:disabled input { opacity: .65; }
.department-brief .demo-brief-choice:has(input:checked) { border-top-color: var(--ending-red); }
.department-brief .demo-brief-choice-copy { display: grid; gap: 9px; }
.department-brief .demo-brief-choice-copy strong { font-size: 23px; line-height: 1.16; font-weight: 550; }
.department-brief .demo-brief-choice-copy > span { max-width: 25ch; font-size: 12px; line-height: 1.5; color: #52657c; }
.department-brief .demo-brief-choice-index { display: none; }
.department-brief .demo-brief-fallback { margin-top: 20px; max-width: 60ch; color: #52657c; font-size: 14px; line-height: 1.6; }
.department-brief .demo-brief-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.department-brief .ending-frame {
  display: block;
  position: relative;
  padding: clamp(42px,6vw,86px) 0 28px;
  background: #eaf0f7;
  color: var(--ending-ink);
  isolation: auto;
}
.department-brief .ending-frame::before,
.department-brief .ending-frame::after { content: none; }
.ending-frame-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: start;
  gap: 64px;
  padding-bottom: 40px;
}
.department-brief #demo-brief-title {
  margin: 0;
  font-family: "Hubot Sans", Arial, sans-serif;
  font-size: clamp(48px, 5.6vw, 80px);
  font-weight: 580;
  font-stretch: 95%;
  letter-spacing: -.055em;
  line-height: 1.02;
  color: var(--ending-ink);
  text-wrap: initial;
}
.department-brief #demo-brief-title > span { display: block; white-space: nowrap; }
.ending-result { min-width: 0; padding-top: 7px; }
.department-brief .demo-brief-count {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.department-brief .demo-brief-default,
.department-brief .demo-brief-selected {
  margin: 0 0 28px;
  padding: 0;
  max-width: 41ch;
  color: var(--ending-ink);
}
.department-brief .demo-brief-default { font-size: 17px; line-height: 1.6; }
.department-brief .demo-brief-selected { counter-reset: ending-priority; }
.department-brief .demo-brief-selected li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0;
  padding: 0 0 9px;
  color: var(--ending-ink);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
  counter-increment: ending-priority;
  list-style: none;
}
.department-brief .demo-brief-selected li::before {
  content: counter(ending-priority, decimal-leading-zero);
  display: block;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--ending-ink);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  transform: none;
}
.department-brief .demo-brief-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin: 0;
  padding: 17px 20px;
  background: var(--ending-red);
  color: var(--ending-white);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.department-brief .demo-brief-action svg { flex: 0 0 22px; width: 22px; height: 22px; }
.ending-pilot,
.ending-support a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  color: var(--ending-ink);
  font-size: 12px;
  text-decoration: none;
}
.ending-pilot { margin-top: 5px; }
.ending-pilot svg,
.ending-support a svg { flex: 0 0 19px; width: 19px; height: 19px; }
.ending-support {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.ending-support p { margin: 0; font-size: 11px; line-height: 1.6; }
.ending-support a { min-width: 250px; }
.department-brief .demo-brief-action:focus-visible,
.ending-pilot:focus-visible,
.ending-support a:focus-visible { outline: 2px solid var(--ending-red); outline-offset: 5px; }

@media (max-width: 1100px) {
  .ending-topic-grid { gap: 0 22px; }
  .ending-setup .ending-inner { gap: 40px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .department-brief .demo-brief-choice { gap: 11px; }
  .department-brief .demo-brief-choice-copy strong { font-size: 20px; }
  .ending-frame-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; }
  .department-brief .demo-brief-selected li { font-size: 21px; gap: 12px; }
}
@media (max-width: 980px) {
  .ending-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .department-brief .demo-brief-choice { min-height: 100px; }
  .department-brief .demo-brief-choice-copy strong { font-size: 20px; }
  .ending-frame-body { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .department-brief #demo-brief-title { font-size: clamp(54px, 8vw, 76px); }
  .ending-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 0; }
  .department-brief .demo-brief-default,
  .department-brief .demo-brief-selected { margin-bottom: 0; }
}
@media (max-width: 700px) {
  .ending-setup { padding-block: 46px 42px; }
  .ending-setup .ending-inner { display: block; }
  .ending-prelude { margin-bottom: 29px; }
  .ending-prelude > p:last-child { margin-top: 20px; font-size: 38px; max-width: 15ch; line-height: 1.05; }
  .department-brief .demo-brief-legend { padding-bottom: 16px; font-size: 11px; }
  .department-brief .demo-brief-legend span { display: inline; margin-left: 5px; }
  .ending-topic-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .department-brief .demo-brief-choice { min-height: 78px; padding-block: 18px; gap: 16px; align-items: center; }
  .department-brief .demo-brief-choice:last-child { border-bottom: 1px solid #c5d0df; }
  .department-brief .demo-brief-choice-copy { gap: 4px; }
  .department-brief .demo-brief-choice-copy strong { font-size: 20px; }
  .department-brief .demo-brief-choice-copy > span { max-width: none; font-size: 11px; }
  .department-brief .ending-frame { padding-block: 42px 24px; }
  .ending-frame-body { padding-bottom: 21px; gap: 21px; }
  .department-brief #demo-brief-title { font-size: clamp(34px, 10vw, 56px); letter-spacing: -.05em; }
  .ending-result { display: block; }
  .department-brief .demo-brief-default,
  .department-brief .demo-brief-selected { margin: 0 0 22px; max-width: 37ch; }
  .department-brief .demo-brief-default { font-size: 15px; line-height: 1.6; }
  .department-brief .demo-brief-selected li { font-size: 22px; padding-bottom: 7px; }
  .department-brief .demo-brief-action { min-height: 56px; padding-inline: 18px; font-size: 12px; }
  .ending-pilot { margin-top: 5px; min-height: 48px; }
  .ending-support { flex-direction: column; align-items: stretch; gap: 0; }
  .ending-support p { font-size: 11px; }
  .ending-support a { min-width: 0; }
}
@media (max-width: 360px) {
  .department-brief .demo-brief-legend span { display: block; margin-left: 0; }
  .department-brief .demo-brief-choice-copy strong { font-size: 19px; }
  .department-brief .demo-brief-action { font-size: 11px; padding-inline: 16px; }
}
@media (hover: hover) and (pointer: fine) {
  .department-brief .demo-brief-choice:hover { background: #142b4904; }
  .department-brief .demo-brief-action:hover { background: #88202a; }
  .ending-pilot:hover span,
  .ending-support a:hover span { text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .department-brief .demo-brief-choice,
  .department-brief .demo-brief-action { transition: none; }
}
@media (forced-colors: active) {
  .department-brief .ending-frame { border-block: 1px solid CanvasText; }
  .department-brief #demo-brief-summary-title { opacity: 1; }
  .department-brief .demo-brief-choice input { appearance: auto; -webkit-appearance: checkbox; }
  .department-brief .demo-brief-choice input::after { display: none; }
  .department-brief .demo-brief-action { border: 1px solid CanvasText; }
}
