/* Scoped layout for debt hub + single debt templates (child theme). */

html {
  scroll-behavior: smooth;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="auto"],
html:not([data-theme]) {
  color-scheme: light dark;
}

body.debt-clock-site {
  background-color: #f4f6fa;
  color: #1b2733;
}

/* ---- Microsite header (logo + About Debtclock.ca + Provincial Debt Clocks) ---- */
.debt-clocksite-site-header {
  background: #fff;
  border-bottom: 1px solid #d4dce6;
  margin-bottom: 0.5rem;
}

/*
 * Desktop: __bar uses display:contents so brand + nav share one flex row.
 * Mobile: __bar is a real flex row (logo | toggle); nav stacks below.
 */
.debt-clocksite-site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.debt-clocksite-site-header__bar {
  display: contents;
}

.debt-clocksite-site-header__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.debt-clocksite-site-header__logo {
  display: block;
  height: clamp(42px, 6vw, 58px);
  width: auto;
  max-width: min(240px, 55vw);
  object-fit: contain;
  vertical-align: middle;
}

.debt-clocksite-site-header__brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #10202e;
}

.debt-clocksite-site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  padding: 0;
  border: 1px solid #d4dce6;
  border-radius: 4px;
  background: #fff;
  color: #10202e;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 32, 46, 0.08);
  -webkit-appearance: none;
  appearance: none;
}

.debt-clocksite-site-header__menu-toggle:hover {
  background: #f4f6fa;
}

.debt-clocksite-site-header__menu-toggle:focus-visible {
  outline: 2px solid #1f6fd6;
  outline-offset: 2px;
}

.debt-clocksite-site-header__menu-icon {
  display: block;
  position: relative;
  width: 1.15rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.debt-clocksite-site-header__menu-icon span {
  position: absolute;
  left: 0;
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.debt-clocksite-site-header__menu-icon span:nth-child(1) {
  top: 0;
}

.debt-clocksite-site-header__menu-icon span:nth-child(2) {
  top: calc(50% - 1px);
}

.debt-clocksite-site-header__menu-icon span:nth-child(3) {
  top: calc(100% - 2px);
}

.debt-clocksite-site-header__menu-toggle[aria-expanded="true"] .debt-clocksite-site-header__menu-icon span:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.debt-clocksite-site-header__menu-toggle[aria-expanded="true"] .debt-clocksite-site-header__menu-icon span:nth-child(2) {
  opacity: 0;
}

.debt-clocksite-site-header__menu-toggle[aria-expanded="true"] .debt-clocksite-site-header__menu-icon span:nth-child(3) {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.debt-clocksite-site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.debt-clocksite-site-header__btn,
.debt-clocksite-site-header__select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  border: none;
  background: #dd230f;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(16, 32, 46, 0.12);
  box-sizing: border-box;
}

.debt-clocksite-site-header__btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.95;
}

.debt-clocksite-site-header__btn:hover,
.debt-clocksite-site-header__select:hover {
  background: #c41f0d;
}

.debt-clocksite-site-header__btn:focus-visible,
.debt-clocksite-site-header__select:focus-visible {
  outline: 2px solid #1f6fd6;
  outline-offset: 2px;
}

.debt-clocksite-site-header__provincial {
  position: relative;
}

.debt-clocksite-site-header__select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  max-width: min(100%, 16rem);
}

@media (max-width: 720px) {
  .debt-clocksite-site-header__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
  }

  .debt-clocksite-site-header__bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 2.6rem;
  }

  .debt-clocksite-site-header__brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .debt-clocksite-site-header__logo {
    height: 2.6rem;
    max-width: min(200px, calc(100vw - 5.5rem));
  }

  .debt-clocksite-site-header__menu-toggle {
    display: inline-flex;
  }

  .debt-clocksite-site-header__nav {
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .debt-clocksite-site-header.is-nav-open .debt-clocksite-site-header__nav {
    display: flex;
  }

  .debt-clocksite-site-header__btn,
  .debt-clocksite-site-header__select {
    width: 100%;
    max-width: none;
  }

  .debt-clocksite-site-header__provincial {
    width: 100%;
  }
}

.debt-clocksite-hub,
.debt-clocksite-single {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Wider canvas when clock + petition sit side by side (hub + single pages). */
@media (min-width: 960px) {
  .debt-clocksite-split {
    max-width: 1280px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    grid-template-areas: "main petition";
    column-gap: 1.75rem;
    row-gap: 1.5rem;
    align-items: start;
  }

  /* Truck spans full width under clock + petition (hub + singles). */
  .debt-clocksite-split:has(> .debt-clocksite-truck) {
    grid-template-areas:
      "main petition"
      "truck truck";
  }

  .debt-clocksite-split__main {
    grid-area: main;
    min-width: 0;
  }

  .debt-clocksite-split__petition {
    grid-area: petition;
    margin: 0;
    padding: 0;
  }

  .debt-clocksite-split > .debt-clocksite-truck {
    grid-area: truck;
  }

  /* Keep clock + petition card tops flush (hero used to add 1rem top padding). */
  .debt-clocksite-split .debt-clocksite-hero {
    padding-top: 0;
  }

  .debt-clocksite-split .debt-clocksite-clock-panel {
    margin-top: 0;
  }

  .debt-clocksite-split__petition .debt-clock-clocksite-petition-shell {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .debt-clocksite-hub,
  .debt-clocksite-single {
    padding: 1rem 0.65rem 2rem;
  }
}

.debt-clocksite-hero {
  text-align: center;
  padding: 1rem 0 2rem;
}

/* Card variant owns its own left alignment; don't center its internals. */
.debt-clocksite-hero .debt-clocksite-clock-panel--card,
.debt-clocksite-hero .ctf-debt-clock-root[data-variant="card"] {
  text-align: left;
}

.debt-clocksite-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
  color: #10202e;
  font-weight: 700;
}

.debt-clocksite-hero .debt-clocksite-lead {
  color: #3f4f60;
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  font-size: 1.05rem;
}

/* Standalone hero clock: grey billboard comes from the React embed CSS. */
.debt-clocksite-hero-clock:not(.debt-clocksite-clock-panel__clock) {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.debt-clocksite-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.debt-clocksite-cta-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sources / FAQ / Share under the live counter. */
.debt-clocksite-utility-row {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.debt-clocksite-utility-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.debt-clocksite-utility-row__actions .debt-clocksite-btn {
  min-width: 6.5rem;
  cursor: pointer;
  font: inherit;
}

.debt-clocksite-btn--share {
  gap: 0.45rem;
}

.debt-clocksite-btn__share-icon {
  flex-shrink: 0;
  display: block;
}

.debt-clocksite-utility-row__actions .debt-clocksite-btn.is-active {
  box-shadow: inset 0 0 0 1px currentColor;
}

.debt-clocksite-utility-row__actions .debt-clocksite-btn--muted.is-active {
  background: #5f6b78;
  border-color: #4f5a66;
  color: #fff !important;
}

.debt-clocksite-utility-row__actions .debt-clocksite-btn--outline.is-active {
  background: #fff;
  border-color: #dd230f;
  color: #dd230f !important;
  box-shadow: inset 0 0 0 1px #dd230f;
}

.debt-clocksite-utility-panel {
  text-align: left;
  background: #fff;
  border: 1px solid #d4dce6;
  border-radius: 12px;
  padding: 1rem 1.15rem 1.15rem;
  box-shadow: 0 1px 3px rgba(16, 32, 46, 0.06);
}

.debt-clocksite-utility-panel[hidden] {
  display: none !important;
}

.debt-clocksite-utility-panel__heading {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: #10202e;
}

.debt-clocksite-utility-panel__body {
  color: #3f4f60;
  font-size: 0.95rem;
  line-height: 1.5;
}

.debt-clocksite-utility-panel__body > *:first-child {
  margin-top: 0;
}

.debt-clocksite-utility-panel__body > *:last-child {
  margin-bottom: 0;
}

.debt-clocksite-utility-panel__body h2,
.debt-clocksite-utility-panel__body h3 {
  font-size: 1rem;
  color: #10202e;
  margin: 0.85rem 0 0.4rem;
}

.debt-clocksite-utility-panel__body a {
  color: #dd230f;
}

/* Accrued counter + Sources/FAQ(/Share) sit on one row; panels span below. */
.debt-clocksite-live-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  max-width: 1060px;
  margin: 0.35rem auto 1.35rem;
}

.debt-clocksite-live-stack > .debt-clock-live,
.debt-clocksite-live-stack > .debt-clocksite-utility-row {
  display: contents;
}

.debt-clocksite-live-stack .debt-clock-accrued {
  order: 1;
}

.debt-clocksite-live-stack .debt-clocksite-utility-row__actions {
  order: 2;
  margin-bottom: 0;
}

.debt-clocksite-live-stack .debt-clocksite-utility-panel {
  order: 3;
  flex: 1 1 100%;
  width: min(100%, 40rem);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Debt Clock truck intro (hub + provincial singles).
   White card (same chrome as clock/petition panels). Mobile: image above copy.
   Desktop: full-width under clock+petition split; image left, title + copy right. */
.debt-clocksite-truck {
  margin: 0.35rem 0 1.75rem;
  text-align: left;
}

@media (min-width: 960px) {
  .debt-clocksite-split > .debt-clocksite-truck {
    margin-top: 0.65rem;
    margin-bottom: 0.5rem;
  }
}

.debt-clocksite-truck__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1.1rem;
  align-items: start;
  padding: 0.85rem 0.9rem 1rem;
  background: #fff;
  border: 1px solid #d4dce6;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 32, 46, 0.06);
  box-sizing: border-box;
}

.debt-clocksite-truck__figure {
  margin: 0;
  min-width: 0;
  overflow: visible;
}

.debt-clocksite-truck__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 473;
  object-fit: contain;
  object-position: center right;
  background: transparent;
}

.debt-clocksite-truck__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  padding-top: 0.15rem;
}

.debt-clocksite-truck .debt-clocksite-section-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.28rem, 2.5vw, 1.58rem);
  line-height: 1.2;
  color: #10202e;
}

.debt-clocksite-truck__copy {
  color: #3f4f60;
  font-size: 1.08rem;
  line-height: 1.5;
}

.debt-clocksite-truck__copy > p {
  margin: 0;
}

.debt-clocksite-truck__donate-lead {
  margin-top: 0.85rem !important;
  color: #10202e;
  font-size: 1.05rem;
  line-height: 1.4;
  text-align: center;
}

.debt-clocksite-truck__donate-action {
  margin-top: 0.7rem !important;
  text-align: center;
}

.debt-clocksite-truck__donate-action .debt-clocksite-btn {
  min-width: 8.5rem;
}

@media (min-width: 720px) {
  .debt-clocksite-truck__card {
    /* Wider image column so the truck expands toward the right into card space. */
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 0.95rem 1.1rem;
    align-items: center;
    padding: 0.95rem 1rem 0.95rem 0.85rem;
  }

  .debt-clocksite-truck__body {
    padding-top: 0.25rem;
    padding-right: 0.15rem;
  }

  .debt-clocksite-truck__copy {
    font-size: 1.1rem;
  }
}

/* ---- Live enhancements: accrued-since-arrival counter ---- */
.debt-clock-live {
  max-width: 1060px;
  margin: 0.25rem auto 1.25rem;
  text-align: center;
}

.debt-clock-accrued {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 1.15rem;
  background: #fff;
  border: 1px solid #f1c9c3;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 32, 46, 0.06);
}

.debt-clock-accrued__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8a5a54;
}

.debt-clock-accrued__value {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #dd230f;
  line-height: 1.1;
}

.debt-clocksite-federal-petition,
.debt-clocksite-petition-section {
  scroll-margin-top: 1.5rem;
  margin-top: 0;
  margin-bottom: 2.5rem;
}

.debt-clocksite-split__petition.debt-clocksite-federal-petition,
.debt-clocksite-split__petition.debt-clocksite-petition-section {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.debt-clocksite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.debt-clocksite-btn:focus {
  outline: 2px solid #1f6fd6;
  outline-offset: 2px;
}

.debt-clocksite-btn--primary {
  background: #dd230f;
  color: #fff !important;
  border-color: #c41f0d;
}

.debt-clocksite-btn--primary:hover {
  opacity: 0.92;
}

.debt-clocksite-btn--secondary {
  background: #fff;
  color: #1b2733 !important;
  border-color: #c2ccd8;
}

.debt-clocksite-btn--secondary:hover {
  border-color: #8a99aa;
}

/* Sources: soft grey fill for contrast next to outline / primary actions. */
.debt-clocksite-btn--muted {
  background: #6b7684;
  color: #fff !important;
  border-color: #5c6672;
}

.debt-clocksite-btn--muted:hover {
  background: #5f6b78;
  border-color: #4f5a66;
}

/* FAQ: white face + red outline (same on default + bank-card pages). */
.debt-clocksite-btn--outline {
  background: #fff;
  color: #dd230f !important;
  border-color: #dd230f;
}

.debt-clocksite-btn--outline:hover {
  background: #fff7f6;
}

.debt-clocksite-btn--disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.debt-clocksite-btn--disabled.debt-clocksite-btn--primary {
  background: #b9b3b3;
  border-color: #a9a2a2;
}

.debt-clocksite-btn--disabled:focus {
  outline: none;
}

.debt-clocksite-about {
  max-width: 1080px;
}

.debt-clocksite-about__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .debt-clocksite-about__layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    column-gap: 1.75rem;
  }
}

.debt-clocksite-about__article {
  margin: 0;
  padding: 0;
  color: #3f4f60;
  font-size: 1.05rem;
  line-height: 1.6;
}

.debt-clocksite-about__article .debt-clocksite-section-title {
  margin-bottom: 0.85rem;
}

.debt-clocksite-about__lead {
  margin: 0 0 1.75rem;
  max-width: 46rem;
}

.debt-clocksite-about__section-heading {
  margin: 0 0 1.15rem;
  color: #10202e;
  font-size: 1.2rem;
  font-weight: 700;
}

.debt-clocksite-about__panel {
  background: #fff;
  border: 1px solid #d4dce6;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 32, 46, 0.06);
  padding: 0;
  margin: 0 0 1.5rem;
  overflow: hidden;
}

.debt-clocksite-about__accordion-heading {
  margin: 0;
}

.debt-clocksite-about__accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  color: #10202e;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.debt-clocksite-about__accordion-toggle:hover {
  background: #f8fafc;
}

.debt-clocksite-about__accordion-toggle:focus-visible {
  outline: 2px solid #1f6fd6;
  outline-offset: -2px;
}

.debt-clocksite-about__accordion-label {
  flex: 1 1 auto;
  min-width: 0;
}

.debt-clocksite-about__accordion-icon {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid #dd230f;
  border-bottom: 2px solid #dd230f;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -0.2rem;
}

.debt-clocksite-about__accordion-toggle[aria-expanded="true"] .debt-clocksite-about__accordion-icon {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.debt-clocksite-about__accordion-panel {
  padding: 0 1.15rem 0.35rem;
  border-top: 1px solid #e6ecf2;
}

.debt-clocksite-about__accordion-panel[hidden] {
  display: none;
}

.debt-clocksite-about__timeline-entry {
  padding: 0 0 1.35rem;
  margin: 0 0 1.15rem;
  border-bottom: 1px dashed #c8d2de;
}

.debt-clocksite-about__timeline-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.debt-clocksite-about__figure {
  margin: 0 0 0.85rem;
}

.debt-clocksite-about__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.debt-clocksite-about__timeline-entry p,
.debt-clocksite-about__damage-copy p {
  margin: 0 0 0.85rem;
}

.debt-clocksite-about__damage-block {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 0 0 1.25rem;
  margin: 0 0 1rem;
  border-bottom: 1px dashed #c8d2de;
}

.debt-clocksite-about__damage-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.debt-clocksite-about__damage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
}

.debt-clocksite-about__damage-icon img {
  display: block;
  width: 3.25rem;
  height: auto;
  max-height: 3.25rem;
  object-fit: contain;
}

.debt-clocksite-about__damage-title {
  margin: 0 0 0.45rem;
  color: #dd230f;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.debt-clocksite-about__callout {
  margin-top: 0.35rem;
  padding: 0.85rem 0.95rem;
  background: #f4f6fa;
  border-left: 3px solid #dd230f;
  border-radius: 0 4px 4px 0;
  color: #2d3a4a;
  font-size: 0.98rem;
}

.debt-clocksite-about__aside {
  position: relative;
}

@media (min-width: 900px) {
  .debt-clocksite-about__aside {
    position: sticky;
    top: 1rem;
  }
}

.debt-clocksite-about__quote {
  position: relative;
  margin: 0;
  padding: 1.35rem 1.2rem 1.3rem 1.25rem;
  background: #fff;
  border: 1px solid #d4dce6;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 32, 46, 0.06);
  color: #2d3a4a;
  overflow: hidden;
}

.debt-clocksite-about__quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #dd230f;
}

.debt-clocksite-about__quote-mark {
  display: block;
  margin: 0 0 0.15rem;
  color: #dd230f;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 0.75;
  font-family: Georgia, "Times New Roman", serif;
  opacity: 0.9;
}

.debt-clocksite-about__quote-text,
.debt-clocksite-about__quote p {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #2d3a4a;
}

.debt-clocksite-about__quote-footer {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid #e6ecf2;
}

.debt-clocksite-about__quote-cite {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-style: normal;
}

.debt-clocksite-about__quote-author {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: #10202e;
}

.debt-clocksite-about__quote-source {
  font-size: 0.86rem;
  line-height: 1.35;
  color: #5a6a7a;
}

.debt-clocksite-sources__range,
.debt-clocksite-faq__calculation {
  margin: 0 0 0.85rem;
}

.debt-clocksite-section-title {
  color: #10202e;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

/* Province / federal clock toggle (rendered inline beside "Now viewing"). */
.debt-clocksite-switcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto 1.75rem;
  max-width: 22rem;
}

.debt-clocksite-switcher__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3f4f60;
}

.debt-clocksite-switcher__control {
  position: relative;
  width: 100%;
}

.debt-clocksite-switcher__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 0.7rem 2.75rem 0.7rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #10202e;
  background: #fff;
  border: 1px solid #c2ccd8;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 32, 46, 0.06);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.debt-clocksite-switcher__select:hover {
  border-color: #8a99aa;
}

.debt-clocksite-switcher__select:disabled {
  color: #64748b;
  background: #f1f5f9;
  border-color: #d5dde6;
  box-shadow: none;
  cursor: not-allowed;
}

.debt-clocksite-switcher__select:disabled + .debt-clocksite-switcher__chevron {
  border-right-color: #94a3b8;
  border-bottom-color: #94a3b8;
}

.debt-clocksite-switcher__select:focus {
  outline: none;
  border-color: #dd230f;
  box-shadow: 0 0 0 3px rgba(221, 35, 15, 0.18);
}

.debt-clocksite-switcher__chevron {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid #dd230f;
  border-bottom: 2px solid #dd230f;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.debt-clocksite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.debt-clocksite-grid a {
  display: block;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #d4dce6;
  border-radius: 8px;
  color: #1b2733 !important;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 32, 46, 0.05);
}

.debt-clocksite-grid a:hover {
  border-color: #dd230f;
  color: #dd230f !important;
}

.debt-clocksite-history {
  background: #fff;
  border: 1px solid #d4dce6;
  border-radius: 12px;
  padding: 1.35rem 1.5rem 1.75rem;
  color: #2c3a48;
  line-height: 1.65;
}

.debt-clocksite-history h2 {
  color: #10202e;
  margin-top: 0;
}

.debt-clocksite-history p:last-child {
  margin-bottom: 0;
}

/* ---- Sources (above) + Brief history footer card ---- */
.debt-clocksite-sources {
  margin: 0 0 1.25rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

/* When Sources is the only child, drop the divider. */
.debt-history-inner > .debt-clocksite-sources:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.debt-clocksite-sources__heading {
  color: #10202e;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.debt-clocksite-sources__content {
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.debt-clocksite-sources__content p:last-child,
.debt-clocksite-sources__content ul:last-child,
.debt-clocksite-sources__content ol:last-child {
  margin-bottom: 0;
}

.debt-clocksite-brief-history h2 {
  color: #10202e;
  margin-top: 0;
}

.debt-clocksite-brief-history > *:last-child {
  margin-bottom: 0;
}

.debt-clocksite-sources__content a {
  color: #dd230f;
  text-decoration: underline;
  font-weight: 600;
}

.debt-clocksite-sources__content a:hover,
.debt-clocksite-sources__content a:focus {
  color: #b41c0c;
}

/* ---- Debt clock lane ----------------------------------------------------
   Grey billboard + red outlines come from the shared React embed CSS
   (debt-clock-embed.css). This only spaces the lane wrapper. */
.debt-clocksite-single .debt-clocksite-clock-lane {
  margin-bottom: 1.75rem;
  padding: 0;
  background: transparent;
  border: none;
  text-align: center;
}

/* Petition shell: light card with high-contrast text (was dark + unreadable). */
.debt-clocksite-split__petition .debt-clock-clocksite-petition-shell,
.debt-clocksite-federal-petition .debt-clock-clocksite-petition-shell {
  background: #fff;
  border: 1px solid #d4dce6;
  border-radius: 12px;
  padding: 0 1rem 1.15rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 32, 46, 0.06);
}

/* Quiet the default petition “card” chrome on debt pages */
body.debt-clock-site .petition-template.card.ctf-template {
  border: none;
  box-shadow: none;
  background: transparent;
  margin: 0;
  width: 100%;
  max-width: none;
}

body.debt-clock-site .petition-template .petition-details {
  background: transparent;
}

body.debt-clock-site .petition-template .petition-intro,
body.debt-clock-site .petition-template .petition-intro p {
  text-align: center;
}

/* Compact sidebar petition: red headline band + prominent body copy. */
body.debt-clock-site .debt-clocksite-split__petition .petition-template h1,
body.debt-clock-site .debt-clocksite-split__petition .petition-content h1,
body.debt-clock-site .debt-clocksite-federal-petition .petition-template h1,
body.debt-clock-site .debt-clocksite-federal-petition .petition-content h1 {
  font-size: inherit;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

body.debt-clock-site .debt-clock-clocksite-petition-shell .petition-headline {
  display: block;
  background: #dd230f;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  padding: 0.45rem 1rem;
  margin: 0 -1rem 0.9rem;
}

body.debt-clock-site .debt-clock-clocksite-petition-shell .petition-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #10202e;
  margin: 0 0 0.45rem;
}

body.debt-clock-site .debt-clocksite-split__petition .petition-intro,
body.debt-clock-site .debt-clocksite-split__petition .petition-intro p,
body.debt-clock-site .debt-clocksite-federal-petition .petition-intro,
body.debt-clock-site .debt-clocksite-federal-petition .petition-intro p {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: #10202e;
  margin: 0.15em 0 0.45em;
  text-align: center;
}

body.debt-clock-site .debt-clocksite-split__petition .petition-form {
  margin-top: 0.85rem;
}

body.debt-clock-site .debt-clocksite-split__petition .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  max-width: none;
  margin: 0;
}

body.debt-clock-site .debt-clocksite-split__petition .form-group {
  margin-bottom: 0.35rem;
}

body.debt-clock-site .debt-clocksite-split__petition .form-group label {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

body.debt-clock-site .debt-clocksite-split__petition .form-control {
  max-width: none;
  width: 100%;
  padding: 0.5rem 0.6rem;
  font-size: 0.84rem;
  line-height: 1.3;
}

body.debt-clock-site .debt-clocksite-split__petition .form-control::placeholder {
  font-size: 0.84rem;
}

body.debt-clock-site .debt-clocksite-split__petition .form-check {
  font-size: 0.78rem;
  line-height: 1.35;
  align-items: flex-start;
}

body.debt-clock-site .debt-clocksite-split__petition .form-check label {
  font-size: 0.78rem;
  line-height: 1.35;
}

body.debt-clock-site .debt-clocksite-split__petition .petition-form button[type="submit"],
body.debt-clock-site .debt-clocksite-split__petition .template-form button[type="submit"] {
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  width: 100%;
}

body.debt-clock-site .debt-clocksite-split__petition .petition-privacy,
body.debt-clock-site .debt-clocksite-split__petition .privacy-note,
body.debt-clock-site .debt-clocksite-split__petition small,
body.debt-clock-site .debt-clocksite-split__petition .form-disclaimer {
  font-size: 0.72rem;
  line-height: 1.35;
}

/* ---- Dark mode (colors only; layout unchanged) ----
   Forced Dark: html[data-theme="dark"].
   Auto (and unset): same overrides inside @media (prefers-color-scheme: dark)
   at the bottom of this file. Light never picks up these rules.
   Theme is server-rendered per page: debt post Colour scheme, else hub default
   (federal post override preferred on the hub home). */
html[data-theme="dark"] body.debt-clock-site {
  background-color: #0f1419;
  color: #e6edf5;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header {
  background: #161d26;
  border-bottom-color: #2a3542;
}

/* Soft muted plate so the black CTF wordmark stays readable on dark chrome */
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header__logo {
  background: #c8ced6;
  border: 1px solid #aeb6c0;
  border-radius: 0.5rem;
  padding: 0.2rem 0.45rem;
  box-sizing: border-box;
  height: clamp(42px, 6vw, 58px);
  object-fit: contain;
}

@media (max-width: 720px) {
  html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header__logo {
    height: 2.6rem;
  }
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header__brand-text {
  color: #e6edf5;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header__menu-toggle {
  background: #1c2530;
  border-color: #3a4758;
  color: #e6edf5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header__menu-toggle:hover {
  background: #243040;
}

/* Keep brand red CTAs readable in dark mode */
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header__btn,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header__select {
  background: #dd230f;
  color: #fff !important;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header__btn:hover,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-site-header__select:hover {
  background: #e83a27;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-hero h1,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-section-title,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-utility-panel__heading,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-utility-panel__body h2,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-utility-panel__body h3,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-sources__heading,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-brief-history h2,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-history h2,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-truck .debt-clocksite-section-title {
  color: #f0f4f8;
}

/*
 * Parent theme sets `p { color: #2d3a4a }` (ctf-landing-pages/style.css), which
 * beats inherited container colors. Re-color paragraphs + secondary copy here.
 */
html[data-theme="dark"] body.debt-clock-site p {
  color: #c5cdd8;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-truck__donate-lead {
  color: #f0f4f8;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-hero .debt-clocksite-lead,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-utility-panel__body,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-utility-panel__body p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-truck__copy,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-truck__copy > p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__article,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__article p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__lead,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__timeline-entry p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__damage-copy p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-switcher__label,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-history,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-history p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-sources__content,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-sources__content p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-brief-history,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-brief-history p {
  color: #c5cdd8;
}

/* White cards → elevated dark surfaces */
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-utility-panel,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-truck__card,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-history,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-grid a,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .debt-clock-clocksite-petition-shell,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .debt-clock-clocksite-petition-shell,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__timeline,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__damage,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__panel {
  background: #1a222d;
  border-color: #2f3b4a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__section-heading,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__accordion-toggle,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__quote-author {
  color: #f0f4f8;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__accordion-toggle:hover {
  background: #141a22;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__accordion-panel {
  border-top-color: #2f3b4a;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__timeline-entry,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__damage-block {
  border-bottom-color: #3a4758;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__damage-title {
  color: #ff6b58;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__callout {
  background: #141a22;
  border-left-color: #dd230f;
  color: #c5cdd8;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__quote {
  background: #1a222d;
  border-color: #2f3b4a;
  color: #c5cdd8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__quote-text,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__quote p {
  color: #c5cdd8;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__quote-footer {
  border-top-color: #2f3b4a;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__quote-source {
  color: #8a99aa;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-about__damage-icon img[src$=".svg"] {
  filter: invert(0.88) brightness(1.05);
}

html[data-theme="dark"] body.debt-clock-site .debt-clock-accrued {
  background: #1a222d;
  border-color: #5a3030;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.debt-clock-site .debt-clock-accrued__label {
  color: #d4a39c;
}

html[data-theme="dark"] body.debt-clock-site .debt-clock-accrued__value {
  color: #ff5a45;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-sources {
  border-bottom-color: #2f3b4a;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-grid a {
  color: #e6edf5 !important;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-grid a:hover {
  border-color: #dd230f;
  color: #ff6b58 !important;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-btn--primary {
  background: #dd230f;
  color: #fff !important;
  border-color: #c41f0d;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-btn--secondary {
  background: #1c2530;
  color: #e6edf5 !important;
  border-color: #3a4758;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-btn--secondary:hover {
  border-color: #6b7c90;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-btn--muted {
  background: #5a6573;
  color: #fff !important;
  border-color: #4a5563;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-btn--muted:hover,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-utility-row__actions .debt-clocksite-btn--muted.is-active {
  background: #6b7684;
  border-color: #5c6672;
  color: #fff !important;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-btn--outline,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-utility-row__actions .debt-clocksite-btn--outline.is-active {
  background: #1c2530;
  color: #ff6b58 !important;
  border-color: #dd230f;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-btn--outline:hover {
  background: #2a1a1a;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-utility-panel__body a,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-sources__content a {
  color: #ff6b58;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-sources__content a:hover,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-sources__content a:focus {
  color: #ff8575;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-switcher__select {
  color: #e6edf5;
  background: #1a222d;
  border-color: #3a4758;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-switcher__select:hover {
  border-color: #6b7c90;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-switcher__select:disabled {
  color: #8a99aa;
  background: #141a22;
  border-color: #2f3b4a;
}

/* Petition form fields on dark cards */
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .form-control,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .form-control {
  background: #121820;
  color: #e6edf5;
  border-color: #3a4758;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .form-group label,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .form-check label,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .form-group label,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .form-check label,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .petition-intro,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .petition-intro p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .petition-intro,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .petition-intro p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .petition-privacy,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .petition-privacy p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .privacy-note,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .privacy-note p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition small,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .form-disclaimer,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .petition-privacy,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .petition-privacy p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .privacy-note,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .privacy-note p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition small,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .form-disclaimer {
  color: #d0d7e0;
}

/* Keep petition titles bright vs secondary helper copy */
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition h1,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .petition-content h1,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition h1,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .petition-content h1 {
  color: #f0f4f8;
}

html[data-theme="dark"] body.debt-clock-site .debt-clock-clocksite-petition-shell .petition-headline {
  background: #dd230f;
  color: #fff;
}

html[data-theme="dark"] body.debt-clock-site .debt-clock-clocksite-petition-shell .petition-title {
  color: #f0f4f8;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .petition-intro,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .petition-intro p,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .petition-intro,
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .petition-intro p {
  color: #f0f4f8;
}

html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .petition-form button[type="submit"],
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-split__petition .template-form button[type="submit"],
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .petition-form button[type="submit"],
html[data-theme="dark"] body.debt-clock-site .debt-clocksite-federal-petition .template-form button[type="submit"] {
  background: #dd230f;
  color: #fff;
  border-color: #c41f0d;
}

/* Auto + OS dark: same color overrides as html[data-theme="dark"]. Keep in sync with the block above. */
@media (prefers-color-scheme: dark) {
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site {
  background-color: #0f1419;
  color: #e6edf5;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header {
  background: #161d26;
  border-bottom-color: #2a3542;
}

/* Soft muted plate so the black CTF wordmark stays readable on dark chrome */
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header__logo {
  background: #c8ced6;
  border: 1px solid #aeb6c0;
  border-radius: 0.5rem;
  padding: 0.2rem 0.45rem;
  box-sizing: border-box;
  height: clamp(42px, 6vw, 58px);
  object-fit: contain;
}

@media (max-width: 720px) {
  html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header__logo {
    height: 2.6rem;
  }
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header__brand-text {
  color: #e6edf5;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header__menu-toggle {
  background: #1c2530;
  border-color: #3a4758;
  color: #e6edf5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header__menu-toggle:hover {
  background: #243040;
}

/* Keep brand red CTAs readable in dark mode */
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header__btn,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header__select {
  background: #dd230f;
  color: #fff !important;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header__btn:hover,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-site-header__select:hover {
  background: #e83a27;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-hero h1,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-section-title,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-utility-panel__heading,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-utility-panel__body h2,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-utility-panel__body h3,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-sources__heading,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-brief-history h2,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-history h2,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-truck .debt-clocksite-section-title {
  color: #f0f4f8;
}

/*
 * Parent theme sets `p { color: #2d3a4a }` (ctf-landing-pages/style.css), which
 * beats inherited container colors. Re-color paragraphs + secondary copy here.
 */
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site p {
  color: #c5cdd8;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-truck__donate-lead {
  color: #f0f4f8;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-hero .debt-clocksite-lead,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-utility-panel__body,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-utility-panel__body p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-truck__copy,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-truck__copy > p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__article,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__article p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__lead,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__timeline-entry p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__damage-copy p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-switcher__label,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-history,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-history p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-sources__content,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-sources__content p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-brief-history,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-brief-history p {
  color: #c5cdd8;
}

/* White cards → elevated dark surfaces */
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-utility-panel,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-truck__card,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-history,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-grid a,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .debt-clock-clocksite-petition-shell,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .debt-clock-clocksite-petition-shell,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__timeline,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__damage,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__panel {
  background: #1a222d;
  border-color: #2f3b4a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__section-heading,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__accordion-toggle,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__quote-author {
  color: #f0f4f8;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__accordion-toggle:hover {
  background: #141a22;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__accordion-panel {
  border-top-color: #2f3b4a;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__timeline-entry,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__damage-block {
  border-bottom-color: #3a4758;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__damage-title {
  color: #ff6b58;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__callout {
  background: #141a22;
  border-left-color: #dd230f;
  color: #c5cdd8;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__quote {
  background: #1a222d;
  border-color: #2f3b4a;
  color: #c5cdd8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__quote-text,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__quote p {
  color: #c5cdd8;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__quote-footer {
  border-top-color: #2f3b4a;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__quote-source {
  color: #8a99aa;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-about__damage-icon img[src$=".svg"] {
  filter: invert(0.88) brightness(1.05);
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clock-accrued {
  background: #1a222d;
  border-color: #5a3030;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clock-accrued__label {
  color: #d4a39c;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clock-accrued__value {
  color: #ff5a45;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-sources {
  border-bottom-color: #2f3b4a;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-grid a {
  color: #e6edf5 !important;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-grid a:hover {
  border-color: #dd230f;
  color: #ff6b58 !important;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-btn--primary {
  background: #dd230f;
  color: #fff !important;
  border-color: #c41f0d;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-btn--secondary {
  background: #1c2530;
  color: #e6edf5 !important;
  border-color: #3a4758;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-btn--secondary:hover {
  border-color: #6b7c90;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-btn--muted {
  background: #5a6573;
  color: #fff !important;
  border-color: #4a5563;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-btn--muted:hover,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-utility-row__actions .debt-clocksite-btn--muted.is-active {
  background: #6b7684;
  border-color: #5c6672;
  color: #fff !important;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-btn--outline,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-utility-row__actions .debt-clocksite-btn--outline.is-active {
  background: #1c2530;
  color: #ff6b58 !important;
  border-color: #dd230f;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-btn--outline:hover {
  background: #2a1a1a;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-utility-panel__body a,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-sources__content a {
  color: #ff6b58;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-sources__content a:hover,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-sources__content a:focus {
  color: #ff8575;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-switcher__select {
  color: #e6edf5;
  background: #1a222d;
  border-color: #3a4758;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-switcher__select:hover {
  border-color: #6b7c90;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-switcher__select:disabled {
  color: #8a99aa;
  background: #141a22;
  border-color: #2f3b4a;
}

/* Petition form fields on dark cards */
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .form-control,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .form-control {
  background: #121820;
  color: #e6edf5;
  border-color: #3a4758;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .form-group label,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .form-check label,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .form-group label,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .form-check label,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .petition-intro,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .petition-intro p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .petition-intro,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .petition-intro p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .petition-privacy,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .petition-privacy p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .privacy-note,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .privacy-note p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition small,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .form-disclaimer,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .petition-privacy,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .petition-privacy p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .privacy-note,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .privacy-note p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition small,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .form-disclaimer {
  color: #d0d7e0;
}

/* Keep petition titles bright vs secondary helper copy */
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition h1,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .petition-content h1,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition h1,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .petition-content h1 {
  color: #f0f4f8;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clock-clocksite-petition-shell .petition-headline {
  background: #dd230f;
  color: #fff;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clock-clocksite-petition-shell .petition-title {
  color: #f0f4f8;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .petition-intro,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .petition-intro p,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .petition-intro,
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .petition-intro p {
  color: #f0f4f8;
}

html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .petition-form button[type="submit"],
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-split__petition .template-form button[type="submit"],
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .petition-form button[type="submit"],
html:is([data-theme="auto"], :not([data-theme])) body.debt-clock-site .debt-clocksite-federal-petition .template-form button[type="submit"] {
  background: #dd230f;
  color: #fff;
  border-color: #c41f0d;
}
}
