/* Behind the Question shares Hope Defended's navy masthead and quiet reading palette. */
#btq {
  --guide-ink: #213c45;
  --guide-muted: #4e6265;
  --guide-navy: #183946;
  --guide-green: #215c55;
  --guide-soft: #edf4ee;
  --guide-line: #c7d2ca;
  --guide-paper: #fcfbf7;
  --guide-copper: #a26842;
  --guide-branch: #a87a54;
  --guide-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --guide-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  box-sizing: border-box;
  width: min(100%, 860px);
  margin-inline: auto;
  border: 1px solid var(--guide-line);
  border-radius: 13px;
  color: var(--guide-ink);
  background: var(--guide-paper);
  font: 400 1rem/1.55 var(--guide-sans);
  text-align: start;
  overflow-wrap: break-word;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
#btq *, #btq *::before, #btq *::after { box-sizing: border-box; }
#btq [hidden] { display: none !important; }
#btq :where(h1, h2, h3, h4, p, blockquote, ul) { margin: 0; }
#btq :where(h1, h2, h3, h4) {
  color: var(--guide-navy);
  font-family: var(--guide-serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.023em;
}
#btq h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); }
#btq h2 { font-size: clamp(1.23rem, 2.6vw, 1.55rem); }
#btq h3 { font-size: 1.2rem; }
#btq :where(button, summary) {
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#btq button { text-align: start; }
#btq :where(button, summary, a, [tabindex]):focus-visible {
  outline: 3px solid #a35224;
  outline-offset: 3px;
}
#btq :where([tabindex="-1"]):focus:not(:focus-visible) { outline: none; }
#btq :where(button, summary, [tabindex], .guide-item) { scroll-margin-block: 13px; }
#btq .guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 13px;
  min-height: 56px;
  padding: 7px clamp(13px, 3.8vw, 31px);
  border-radius: 12px 12px 0 0;
  color: #f6fbf6;
  background: var(--guide-navy);
}
#btq .guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font: 700 .87rem/1.27 var(--guide-sans);
  letter-spacing: .035em;
}
#btq .guide-brand svg { display: block; flex: none; width: 25px; height: 31px; color: #c0d7c8; }
#btq .guide-brand small { display: block; color: #cfdfd5; font: 450 .76rem/1.3 var(--guide-sans); letter-spacing: .01em; }
#btq .guide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid #809d9c;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font: 600 .86rem/1.35 var(--guide-sans);
}
#btq .guide-header :focus-visible { outline-color: #ffd29a; }
#btq .guide-main {
  width: min(100%, 740px);
  margin-inline: auto;
  padding: clamp(18px, 4vw, 33px) clamp(14px, 4vw, 30px) clamp(20px, 4vw, 34px);
}
#btq .guide-intro { max-width: 60ch; margin-bottom: 19px; }
#btq .guide-intro h1 { margin-bottom: 6px; }
#btq .guide-intro p, #btq .guide-main > p { color: var(--guide-muted); line-height: 1.5; }
#btq .guide-index, #btq .guide-options { display: grid; gap: 9px; padding: 0; }
#btq .guide-topic-group + .guide-topic-group { margin-top: 1.6rem; }
#btq .guide-topic-group h2 { margin-bottom: .65rem; color: var(--guide-green); }
#btq .guide-topic, #btq .guide-reason {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  width: 100%;
  min-width: 0;
  min-height: 55px;
  border: 1px solid var(--guide-line);
  border-radius: 9px;
  padding: 12px 15px;
  color: var(--guide-ink);
  background: #fff;
  text-align: start;
  transition: background-color .14s ease, border-color .14s ease;
}
#btq .guide-topic { min-height: 70px; }
#btq .guide-topic-title { flex: 1; color: var(--guide-navy); font: 500 clamp(1.12rem, 2.5vw, 1.34rem)/1.33 var(--guide-serif); }
#btq .guide-arrow, #btq .guide-indicator {
  display: inline-grid;
  flex: 0 0 1.55rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  place-items: center;
  color: var(--guide-green);
  background: #edf3ed;
  font: 600 1rem/1 var(--guide-sans);
}
#btq .guide-pages {
  display: block;
  position: relative;
  flex: 0 0 40px;
  height: 39px;
  border-radius: 8px;
  background: #e8efe9;
  color: var(--guide-green);
}
#btq .guide-pages::before, #btq .guide-pages::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  width: 16px;
  height: 21px;
  border: 1.4px solid currentColor;
  border-radius: 2px 4px 3px 2px;
  background: linear-gradient(currentColor,currentColor) 50% 36% / 8px 1px no-repeat,
              linear-gradient(currentColor,currentColor) 40% 55% / 6px 1px no-repeat, #fffdf5;
  transition: transform .68s cubic-bezier(.2,.75,.2,1);
}
#btq .guide-pages::before { color: var(--guide-copper); background-color: #f8eada; transform: translate(-3px,-2px) rotate(-12deg); }
#btq .guide-pages::after { transform: translate(2px,1px) rotate(5deg); }
#btq .guide-reason[aria-expanded="true"] .guide-pages::before { transform: translate(-7px,0) skewY(10deg); }
#btq .guide-reason[aria-expanded="true"] .guide-pages::after { transform: translate(7px,0) skewY(-10deg); }
#btq .guide-indicator { position: relative; }
#btq .guide-indicator::before, #btq .guide-indicator::after {
  content: ""; position: absolute; width: 11px; height: 2px; border-radius: 1px; background: currentColor;
}
#btq .guide-indicator::after { transform: rotate(90deg); transition: transform .4s ease; }
#btq .guide-reason[aria-expanded="true"] .guide-indicator::after { transform: rotate(0deg); }
#btq .guide-question { max-width: 35ch; margin-bottom: clamp(17px, 3vw, 24px); text-wrap: pretty; }
#btq .guide-prompt { margin: 0 0 9px; color: var(--guide-green); }
#btq .guide-prompt + p { margin: -2px 0 11px; font-size: .94rem; }
#btq .guide-item { min-width: 0; border: 1px solid var(--guide-line); border-radius: 9px; background: #fff; }
#btq .guide-item:has(.guide-reason[aria-expanded="true"]) { border-color: #809f91; }
#btq .guide-item .guide-reason { border: 0; border-radius: 8px; }
#btq .guide-reason-text { flex: 1; font: 620 1rem/1.4 var(--guide-sans); }
#btq .guide-reason[aria-expanded="true"] { border-radius: 8px 8px 0 0; color: #194e43; background: var(--guide-soft); }
#btq .guide-reason[aria-expanded="true"] .guide-indicator { background: #cfe2d7; color: #234f45; }
#btq .guide-panel {
  padding: 12px clamp(14px, 3.5vw, 23px) 15px;
  border-top: 1px solid #ccdbcf;
  border-radius: 0 0 8px 8px;
  background: #fffefb;
}
#btq .guide-concern { margin: 0; color: var(--guide-muted); font-size: .95rem; line-height: 1.53; }
#btq .guide-responses {
  --fork-gap: 12px;
  position: relative; display: grid; gap: var(--fork-gap); padding: 15px 0 0 19px;
}
#btq .guide-responses::before, #btq .guide-branch::before, #btq .guide-branch::after {
  content: ""; position: absolute; pointer-events: none; border-color: var(--guide-branch); border-style: solid; border-width: 0;
}
#btq .guide-responses::before { left: 4px; top: 3px; height: 12px; border-left-width: 2px; transform-origin: top; }
#btq .guide-branch { position: relative; min-width: 0; --arrive-delay: .13s; }
#btq .guide-branch + .guide-branch { --arrive-delay: .35s; }
#btq .guide-branch::before { top: 0; bottom: calc(-1 * var(--fork-gap)); left: -15px; border-left-width: 2px; transform-origin: top; }
#btq .guide-branch:last-child::before { bottom: auto; height: 13px; }
#btq .guide-branch::after {
  left: -15px; width: 15px; top: 12px; height: 9px; border-width: 0 0 2px 2px;
  border-bottom-left-radius: 7px; transform-origin: left;
}
#btq .guide-panel h2 { margin: 3px 0 8px; }
#btq .guide-answer {
  height: 100%; padding: 11px 14px; border: 1px solid #c9d5cb; border-radius: 3px 10px 10px 10px;
  background: linear-gradient(130deg,#f4f8f3,#fff 60%); box-shadow: 0 2px 0 #e4eae1;
}
#btq .guide-answer h4 { margin: 0 0 4px; color: var(--guide-green); font: 700 .9rem/1.36 var(--guide-sans); letter-spacing: 0; }
#btq .guide-answer :is(p, blockquote) { color: var(--guide-ink); font: 400 1.025rem/1.55 var(--guide-sans); }
#btq .guide-grounding { margin: 16px 0 0; padding: 10px 12px; border-radius: 5px; color: #55452d; background: #f5f0e6; font-size: .91rem; line-height: 1.5; }
#btq .guide-grounding :is(h4, strong) { color: #60492c; font: 700 .86rem/1.43 var(--guide-sans); letter-spacing: 0; }
#btq .guide-grounding h4 { margin-bottom: 4px; }
#btq .guide-grounding[data-safety-note] { background: #fbeeed; border: 1px solid #d7aaa4; border-inline-start: 4px solid #a44d45; color: #4b2b29; }
#btq .guide-grounding[data-safety-note] h4 { color: #813a33; }
#btq .guide-source { margin: 12px 0 -4px; border-top: 1px solid #d8dfd6; color: var(--guide-ink); font-size: .94rem; line-height: 1.55; }
#btq .guide-source summary { min-height: 44px; padding: 10px 0; color: var(--guide-green); font-weight: 650; }
#btq .guide-source h3 { margin: 3px 0 7px; }
#btq .guide-source p + p, #btq .guide-answer p + p { margin-top: .65em; }
#btq .guide-source a { color: var(--guide-green); text-underline-offset: .15em; }
@media (hover: hover) {
  #btq .guide-topic:hover, #btq .guide-reason:hover { border-color: #729381; background: #f2f6f0; }
  #btq .guide-item:has(.guide-reason:hover) { border-color: #729381; }
  #btq .guide-back:hover { background: #2c5156; }
  #btq .guide-source summary:hover { text-decoration: underline; text-underline-offset: .16em; }
  #btq :is(.guide-topic:hover,.guide-reason[aria-expanded="false"]:hover) .guide-pages::before {
    transform: translate(-5px,-2px) rotate(-17deg);
  }
}
@media (min-width: 650px) {
  #btq .guide-responses { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 29px 0 0; }
  #btq .guide-responses::before { left: calc(50% - 1px); top: 3px; height: 13px; }
  #btq .guide-branch::before {
    top: -15px; bottom: auto; height: 15px; left: 50%; right: calc(var(--fork-gap) / -2);
    border-width: 2px 0 0 2px; border-top-left-radius: 8px; transform-origin: right top;
  }
  #btq .guide-branch:last-child::before {
    left: calc(var(--fork-gap) / -2); right: 50%; height: 15px; border-width: 2px 2px 0 0;
    border-radius: 0 8px 0 0; transform-origin: left top;
  }
  #btq .guide-branch::after {
    top: -3px; left: calc(50% - 3px); width: 6px; height: 6px; border: 0; border-radius: 50%;
    background: var(--guide-branch); z-index: 1; transform-origin: center;
  }
  #btq .guide-answer { border-radius: 9px; }
}
@keyframes btq-trace-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes btq-trace-across { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes btq-settle-page { from { transform: translateY(6px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  #btq .guide-opening .guide-responses::before { animation: btq-trace-down .27s ease-out both; }
  #btq .guide-opening .guide-branch::before { animation: btq-trace-down .52s var(--arrive-delay) ease-in-out both; }
  #btq .guide-opening .guide-branch::after { animation: btq-trace-across .37s var(--arrive-delay) ease-out both; }
  #btq .guide-opening .guide-answer { animation: btq-settle-page .65s var(--arrive-delay) cubic-bezier(.18,.75,.2,1) backwards; }
}
@media (min-width: 650px) and (prefers-reduced-motion: no-preference) {
  #btq .guide-opening .guide-branch::before { animation-name: btq-trace-across; }
}
@media (max-width: 430px) {
  #btq { border-radius: 9px; }
  #btq .guide-header { border-radius: 8px 8px 0 0; }
  #btq .guide-topic, #btq .guide-reason { gap: 8px; padding: 10px 11px; }
  #btq .guide-topic { min-height: 62px; }
  #btq .guide-reason-text { font-size: .98rem; }
  #btq .guide-options { gap: 7px; }
  #btq .guide-panel { padding: 11px 12px 13px; }
  #btq .guide-answer { padding-inline-start: 10px; }
  #btq .guide-reason .guide-pages { flex-basis: 36px; }
  #btq .guide-reason .guide-pages::before, #btq .guide-reason .guide-pages::after { left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #btq *, #btq *::before, #btq *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  #btq :where(.guide-topic, .guide-item, .guide-back) { border-color: ButtonText; }
  #btq .guide-reason[aria-expanded="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  #btq .guide-indicator::before, #btq .guide-indicator::after, #btq .guide-branch::after { background-color: ButtonText; }
}

#btq .guide-topic, #btq .guide-back { text-decoration: none; }
#btq .guide-topic { text-align: start; }
.gd-guide-entry { margin: .65rem 0 1rem; }
.gd-guide-entry p { margin: .15rem 0 .5rem; }
.gd-guide-link { display: inline-flex; align-items: center; min-height: 44px; color: #215c55; font-weight: 650; text-underline-offset: .15em; }
.defense-reference-answer .gd-guide-link { margin-inline-start: .8rem; }
.gd-guide-link:focus-visible { outline: 3px solid #a35224; outline-offset: 2px; }

#main:has(#btq) > .crumb a, #btq .guide-safety-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
#btq .guide-safety-jump {
  padding: 0;
  border: 0;
  background: transparent;
  color: #7c3938;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}
#btq [data-safety-note]:focus-visible, #btq .guide-safety-jump:focus-visible {
  outline: 2px solid #7c3938;
  outline-offset: 2px;
}
