/* Deltas for the dress-code campaign flow (/doorstops/dress-code).

   The step system, cards, templates and posters come from bathroom-flow.css;
   this file re-tints them and adds what only this page has: the dress code
   card with tappable rules, the teacher/parent tally, the proposal cards,
   the protest action picker and timeline.

   Denim indigo with a hot-pink second color: it's a page about clothes, and
   it should look like it has some. */

:root {
  --bf-accent: hsl(230, 52%, 44%);
  --bf-accent-soft: hsl(230, 70%, 96%);
  --dc-pink: #C2185B;
  --dc-pink-soft: #FDECF2;
  --dc-navy: #1F2A5C;
}

body.dc {
  background: linear-gradient(170deg, #EEF1FD 0%, #FBF1F6 48%, #F3F1FB 100%) fixed;
  background-color: #F3F2FB;
}

/* the shared sheet hard-codes the blue in a few focus rings and borders */
.dc .bf-step.is-open { border-color: hsl(230, 40%, 80%); }
.dc .bf-input:focus { box-shadow: 0 0 0 3px hsla(230, 52%, 44%, 0.16); }
.dc .bf-choice:hover { border-color: hsl(230, 40%, 74%); }
.dc .bf-unsure, .dc .bf-callout, .dc .bf-resume { border-color: hsl(230, 32%, 84%); }
.dc .bf-spinner { border-color: hsla(230, 52%, 44%, 0.25); border-top-color: var(--bf-accent); }
.dc .bf-step[hidden], .dc .bf-pip[hidden] { display: none; }

.dc .bf-title { max-width: 14ch; margin-left: auto; margin-right: auto; }
.dc-hero-sub {
  max-width: 540px;
  margin: 0 auto 22px;
  font-size: 13.5pt;
  line-height: 1.55;
  color: var(--bf-soft);
  text-align: center;
}

#bf-school-status:empty { display: none; }
.dc a { display: inline; }
.dc .bf-step-body a:not(.bf-btn), .dc-why a, .dc .bf-help a:not(.bf-btn) {
  color: var(--bf-accent);
  text-decoration: underline;
}

/* ------------------------------------------------ why protests fail */

.dc-why {
  margin: 0 0 22px;
  padding: 20px 20px 16px;
  border-radius: var(--bf-radius);
  background: #fff;
  border: 1px solid var(--bf-line);
  box-shadow: var(--bf-shadow);
}
.dc-why p { font-size: 12.5pt; line-height: 1.6; color: var(--bf-soft); margin: 0 0 12px; }
.dc-fears {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dc-fears li {
  list-style: none;
  padding: 12px;
  border-radius: 12px;
  background: var(--dc-pink-soft);
  font-size: 11.5pt;
  line-height: 1.45;
  color: var(--bf-soft);
}
.dc-fears span { display: block; font-size: 24px; margin-bottom: 4px; }
.dc-fears strong { display: block; color: var(--bf-ink); }
@media (max-width: 620px) { .dc-fears { grid-template-columns: 1fr; } }

/* --------------------------------------------------- the code card */

.dc-code {
  margin: 4px 0 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid hsl(230, 32%, 86%);
  border-top: 5px solid var(--bf-accent);
}
.dc-code--none { border-top-color: var(--dc-pink); }
.dc-code--loading { border-top-color: var(--bf-line); }
.dc-code p { margin: 0 0 8px; font-size: 12pt; line-height: 1.55; }
.dc-code-kicker {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 10.5pt !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bf-accent);
}
.dc-code--none .dc-code-kicker { color: var(--dc-pink); }
.dc-code-title {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 16pt;
  line-height: 1.25;
  color: var(--bf-ink);
  margin: 0 0 6px;
}
.dc-code-date { font-size: 11pt; font-weight: 600; color: var(--bf-soft); }
.dc-code-src { font-size: 11pt !important; }
.dc-code-hint { font-weight: 600; color: var(--bf-ink); margin-top: 10px !important; }
.dc-code-cons { font-size: 11.5pt !important; color: var(--bf-soft); margin-top: 10px !important; }

.dc-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--bf-accent-soft);
  color: var(--bf-accent);
  font-size: 9.5pt;
  font-weight: 700;
  vertical-align: 1px;
}
.dc-tag--ok { background: #E6F6EC; color: var(--bf-done); }
.dc-tag--warn { background: #FFF3DD; color: hsl(36, 80%, 34%); }

.dc-rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.dc-rule {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--bf-line);
  background: #FAFAFD;
  font: inherit;
  font-size: 11.5pt;
  line-height: 1.4;
  text-align: left;
  color: var(--bf-ink);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.dc-rule:hover { border-color: hsl(230, 40%, 74%); transform: translateY(-1px); }
.dc-rule.is-active {
  border-color: var(--dc-pink);
  background: var(--dc-pink-soft);
  box-shadow: 0 2px 0 var(--dc-pink);
}
.dc-rule-icon { flex: none; }

.dc-where { list-style: disc; padding-left: 22px !important; margin: 4px 0 4px; }
.dc-where li { list-style: disc; font-size: 12pt; line-height: 1.55; color: var(--bf-soft); margin-bottom: 4px; }

.dc-addrule { margin: 14px 0 18px; }
.dc-addrule-row { display: flex; gap: 8px; }
.dc-addrule-row .bf-input { flex: 1; min-width: 0; }

.dc .bf-step-body > p.dc-callout, .dc-callout {
  padding: 11px 14px;
  border-left: 4px solid var(--dc-pink);
  border-radius: 8px;
  background: var(--dc-pink-soft);
  color: var(--bf-ink);
  font-size: 12pt;
  line-height: 1.55;
  margin: 0 0 12px;
}
.dc-callout--warn { border-left-color: hsl(36, 80%, 50%); background: #FFF8E6; }

.dc-rights { margin-top: 16px; }
.dc-facts { list-style: none; padding: 0 !important; margin: 4px 0 12px; display: grid; gap: 8px; }
.dc-facts li {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--bf-line);
  border-left: 4px solid var(--bf-accent);
  border-radius: 10px;
  background: #fff;
  font-size: 12pt;
  line-height: 1.55;
  color: var(--bf-soft);
}
.dc-facts strong { color: var(--bf-ink); }

/* ------------------------------------------------------- the survey */

.dc-questions { list-style: decimal; padding-left: 22px !important; margin: 6px 0 12px; }
.dc-questions li { list-style: decimal; margin-bottom: 10px; font-size: 12pt; line-height: 1.45; color: var(--bf-ink); }
.dc-q-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dc-q-opts span {
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--bf-line);
  background: #fff;
  font-size: 10.5pt;
  color: var(--bf-soft);
}

.dc-story {
  margin: 18px 0 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--dc-navy);
  color: #E8EBFA;
}
.dc-story-kicker {
  display: block;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 10.5pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFB3C7;
  margin-bottom: 6px;
}
.dc-story h3 {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 16pt;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 8px;
}
.dc-story p { margin: 0 0 10px; font-size: 12pt; line-height: 1.6; color: #CDD3F0; }
.dc .dc-story a { color: #FFB3C7; text-decoration: underline; font-weight: 600; }

/* -------------------------------------------------------- the tally */

.dc-tally {
  margin: 18px 0 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bf-accent-soft);
  border: 1px solid hsl(230, 40%, 88%);
}
.dc-tally .bf-h3 { margin-top: 0; }
.dc-tally-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
@media (max-width: 560px) { .dc-tally-grid { grid-template-columns: 1fr; } }
.dc-tally-col { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--bf-line); }
.dc-tally-title { font-weight: 700; color: var(--bf-ink); margin: 0 0 8px; font-size: 12pt; }
.dc-count { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.dc-count-label { flex: 1; font-size: 11.5pt; color: var(--bf-soft); }
.dc-count--yes .dc-count-label::before { content: '👍 '; }
.dc-count--meh .dc-count-label::before { content: '🤷 '; }
.dc-count--no .dc-count-label::before { content: '👎 '; }
.dc-count-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--bf-line);
  background: #fff;
  font-size: 16pt;
  line-height: 1;
  color: var(--bf-accent);
  cursor: pointer;
}
.dc-count-btn:hover { border-color: var(--bf-accent); }
.dc-count-btn:active { transform: scale(0.94); }
.dc-count-n {
  min-width: 26px;
  text-align: center;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 15pt;
  font-weight: 700;
  color: var(--bf-ink);
}
.dc-tally-read { margin: 10px 0 0; font-size: 11.5pt; color: var(--bf-ink); font-weight: 600; }

/* ------------------------------------------------ the proposal cards */

/* one after the other: first what the rule should say, then what you trade for it */
.dc .bf-step-body ol.dc-plan { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; gap: 22px; position: relative; }
.dc-plan > li { list-style: none; margin: 0; position: relative; }
.dc-plan > li + li::before {
  content: '';
  position: absolute;
  left: 28px;
  top: -22px;
  height: 22px;
  border-left: 3px dotted hsl(230, 40%, 78%);
}
.dc-plan-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--bf-accent);
  color: #fff;
  font-size: 10.5pt;
  letter-spacing: 0;
  vertical-align: 1px;
}
.dc-plan-card--chip .dc-plan-num { background: var(--dc-pink); }
.dc-plan-card {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--bf-line);
  border-top: 5px solid var(--bf-accent);
}
.dc-plan-card--chip { border-top-color: var(--dc-pink); }
.dc-plan-card p { margin: 0 0 8px; font-size: 12pt; line-height: 1.55; color: var(--bf-ink); }
.dc-plan-kicker {
  display: block;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 10.5pt;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bf-accent);
  margin-bottom: 6px;
}
.dc-plan-card--chip .dc-plan-kicker { color: var(--dc-pink); }
.dc-plan-card .dc-plan-src { font-size: 10.5pt; color: var(--bf-soft); }
.dc-chips { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.dc-chips li { list-style: none; font-size: 11.5pt; line-height: 1.5; color: var(--bf-soft); }
.dc-chips strong { color: var(--bf-ink); }

.dc-outcome { margin-top: 18px; }
.dc-outcome .bf-choices { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .dc-outcome .bf-choices { grid-template-columns: 1fr; } }
#dc-outcome-out { margin-top: 12px; }
#dc-outcome-out > p { font-size: 12.5pt; line-height: 1.6; color: var(--bf-ink); }
.dc-win {
  padding: 18px 20px;
  border-radius: 14px;
  background: #E9F8EF;
  border: 1px solid hsl(150, 40%, 78%);
}
.dc-win h3 { font-family: 'League Spartan', 'Poppins', sans-serif; font-size: 18pt; margin: 0 0 8px; color: var(--bf-ink); }
.dc-win ul { list-style: disc; padding-left: 22px; margin: 0; }
.dc-win li { list-style: disc; font-size: 12pt; line-height: 1.6; color: var(--bf-soft); margin-bottom: 6px; }
.dc-win strong { color: var(--bf-ink); }

.dc-find { margin: 8px 0 0; font-size: 11pt; color: var(--bf-soft); }

/* --------------------------------------------------- the protest */

.dc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 20px; }
@media (max-width: 560px) { .dc-actions { grid-template-columns: 1fr; } }
.dc-action {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'icon name' 'icon risk' 'meta meta';
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid var(--bf-line);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.dc-action:hover { transform: translateY(-2px); border-color: hsl(230, 40%, 74%); }
.dc-action.is-active { border-color: var(--dc-pink); background: var(--dc-pink-soft); box-shadow: 0 3px 0 var(--dc-pink); }
.dc-action-icon { grid-area: icon; font-size: 30px; }
.dc-action-name { grid-area: name; font-weight: 700; color: var(--bf-ink); font-size: 12.5pt; }
.dc-action-meta { grid-area: meta; margin-top: 8px; font-size: 11pt; line-height: 1.5; color: var(--bf-soft); }
.dc-risk {
  grid-area: risk;
  justify-self: start;
  padding: 1px 9px;
  border-radius: 99px;
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.dc-risk--0 { background: #E6F6EC; color: var(--bf-done); }
.dc-risk--1 { background: #FFF3DD; color: hsl(36, 80%, 34%); }
.dc-risk--2 { background: #FDE7E7; color: hsl(0, 62%, 44%); }

.dc-timeline { list-style: none; padding: 0 !important; margin: 8px 0 18px; position: relative; }
.dc-timeline li {
  list-style: none;
  position: relative;
  padding: 0 0 18px 26px;
  border-left: 2px solid hsl(230, 40%, 84%);
  margin-left: 8px;
  font-size: 12pt;
  line-height: 1.55;
  color: var(--bf-soft);
}
.dc-timeline li:last-child { border-left-color: transparent; }
.dc-timeline li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--dc-pink);
}
.dc-when {
  display: block;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12.5pt;
  color: var(--bf-ink);
  margin-bottom: 2px;
}
.dc-timeline .bf-template { margin-top: 10px; }

/* ------------------------------------------------ Doorstop Session ending */

.dc-session {
  margin: 4px 0 16px;
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--dc-navy) 0%, #3A2A6B 100%);
  color: #E8EBFA;
}
.dc-session h3 {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 19pt;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 10px;
}
.dc-session p { margin: 0 0 12px; font-size: 12.5pt; line-height: 1.6; color: #CDD3F0; }
.dc-session ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.dc-session li { list-style: disc; font-size: 12.5pt; line-height: 1.6; color: #CDD3F0; margin-bottom: 6px; }
.dc-session .bf-btn { background: #FFB3C7; color: var(--dc-navy); }
.dc-session .bf-btn:hover { background: #fff; }
