/* dc-back.css — one look for every "go back" control in Debate Central (Edward 2026-11-24:
   "all buttons visible, easily found, like go back or previous screen").
   A page marks its back control with class="dc-back"; this file makes it a clear gold-outlined pill
   that is large enough to tap on a phone. It never decides WHETHER a page shows a control:
   - layout (display) is set only at zero specificity via :where(), and never on [hidden] elements,
     so every page rule that hides a control (desktop-only, phone-only, [hidden], JS toggles) still wins;
   - disabled controls keep their page's own dimmed look and cursor. */
:where(.dc-back:not([hidden])) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
html body .dc-back {
  min-height: 48px !important;
  padding: 9px 20px !important;
  border: 1.5px solid rgba(240, 196, 107, .9) !important;
  border-radius: 999px !important;
  background: rgba(8, 11, 28, .9) !important;
  color: #f6d68c !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .35) !important;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
html body .dc-back.dc-back-arrow::before { content: "\2190"; font-size: 16px; line-height: 1; }
html body .dc-back:not(:disabled):not([aria-disabled="true"]):hover,
html body .dc-back:not(:disabled):not([aria-disabled="true"]):focus-visible {
  background: #f0c46b !important;
  color: #0b0d1c !important;
  outline: none;
}
html body .dc-back:focus-visible { box-shadow: 0 0 0 3px rgba(240, 196, 107, .45) !important; }
@media (max-width: 640px) {
  html body .dc-back { min-height: 48px !important; font-size: 15px !important; padding: 10px 14px !important;
    white-space: normal; max-width: min(100%, 75vw); line-height: 1.15 !important; text-align: left; flex-shrink: 0; }
}
/* A back control that a page adds above its own content. */
.dc-back-bar { display: flex; align-items: center; padding: 14px 16px 0; position: relative; z-index: 30; }
@media (max-width: 640px) { .dc-back-bar { padding: 10px 12px 0; } }
/* A back control pinned to the top-left corner of a page whose content is centred on screen. */
html body .dc-back.dc-back-fixed { position: fixed; top: 14px; left: 14px; z-index: 60; }
@media (max-width: 640px) { html body .dc-back.dc-back-fixed { top: 10px; left: 10px; } }

/* Accessible, consistent top-right dismissal on cards using the shared shell.
   Do not affect [hidden], disabled controls or the page's close behavior. */
html body .modal-close:not([hidden]),
html body .desk-close:not([hidden]) {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0c46b !important;
  border-radius: 12px !important;
  background: #181d32 !important;
  color: #fff4d5 !important;
  font-size: 27px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.65) !important;
  cursor: pointer;
}
html body .modal-close:not(:disabled):focus-visible,
html body .desk-close:not(:disabled):focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px;
}
html body .modal-close:not(:disabled):hover,
html body .desk-close:not(:disabled):hover { background:#f0c46b !important; color:#101422 !important; }

/* Zero-specificity layout preserves INFO-menu top-right alignment. */
:where(.modal-close:not([hidden]), .desk-close:not([hidden])) { display: flex; }
