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

   The step system, cards, templates and posters come from bathroom-flow.css,
   repainted for the zine by components/flow/flow-css.js; this file adds what
   only this page has, in the same ink outlines: the why-protests-fail band,
   the dress code read-out with tappable rules, the teacher/parent tally, the
   proposal, the protest action picker and timeline.

   Inside a step, structure is drawn with rules, not boxes: the step is
   already the card. A heavy ink rule opens a block, thin rules divide its
   rows, a 2px ink rule closes it. Only things the student clicks (rules,
   actions, counters) and the email templates keep an outline. */

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

/* it only speaks up when the directory fails, so it takes no room otherwise */
#bf-school-status:empty { display: none; }

/* Any class rule with a `display` beats the browser's own `[hidden]`, so an
   element hidden from script (the protest step and its pip) stays hidden. */
.dc [hidden] { display: none !important; }

.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;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* folds open flush, no indent */
.dc .bf-solution-body { padding-left: 0; }

/* ------------------------------------------------ why protests fail
   Above the steps, so it can be one box; the three fears inside it are
   columns split by rules, not cards. */

.dc-why {
  margin: 0 0 30px;
  padding: 22px 24px 18px;
  border: 3px solid #16130f;
  border-radius: 0;
  background: #FDE7E0;
  box-shadow: 6px 6px 0 #16130f;
}
.dc-why .bf-h3 { margin: 0 0 8px; }
.dc-why p { font-size: 16px; line-height: 1.6; color: var(--bf-ink); margin: 0 0 12px; }
.dc-fears {
  list-style: none;
  padding: 0;
  margin: 4px 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid #16130f;
  border-bottom: 2px solid #16130f;
}
.dc-fears li {
  list-style: none;
  margin: 0;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--bf-soft);
}
.dc-fears li:first-child { padding-left: 0; }
.dc-fears li:last-child { padding-right: 0; }
.dc-fears li + li { border-left: 1px solid rgba(22,19,15,.3); }
.dc-fears span { display: block; font-size: 24px; margin-bottom: 4px; }
.dc-fears strong { display: block; color: var(--bf-ink); font-size: 15px; }
@media (max-width: 620px) {
  .dc-why { padding: 18px 18px 14px; box-shadow: 4px 4px 0 #16130f; }
  .dc-fears { grid-template-columns: 1fr; }
  .dc-fears li, .dc-fears li:first-child, .dc-fears li:last-child { padding: 12px 0; }
  .dc-fears li + li { border-left: 0; border-top: 1px solid rgba(22,19,15,.3); }
}

/* --------------------------------------------------- the code read-out */

.dc-code {
  margin: 6px 0 16px;
  padding: 14px 0 12px;
  border-top: 3px solid #16130f;
  border-bottom: 2px solid #16130f;
}
.dc-code--loading { border-top-color: var(--bf-line); border-bottom-color: var(--bf-line); }
.dc-code p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--bf-ink); }
.dc-code .dc-code-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #148d75;
  margin-bottom: 6px;
}
.dc-code-title {
  font-family: var(--dl-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bf-ink);
  margin: 0 0 6px;
}
.dc-code-date { display: inline; font-size: 14px; font-weight: 600; color: var(--bf-soft); }
.dc-code .dc-code-src { font-size: 14px; }
.dc-code .dc-code-hint { font-weight: 600; color: var(--bf-ink); margin-top: 14px; }
.dc-code .dc-code-cons {
  font-size: 14.5px; color: var(--bf-soft);
  margin: 12px 0 0;
}

.dc-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 2px solid #16130f;
  border-radius: 0;
  background: #E6ECFF;
  color: #16130f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.dc-tag--ok { background: #E4F6E9; }
.dc-tag--warn { background: #FDF3D8; }

/* the rules are buttons: tap one to target it */
.dc-rules { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 6px; }
.dc .dc-rule {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
  padding: 8px 12px;
  border: 2px solid #16130f;
  border-radius: 0;
  background: #fff;
  box-shadow: 3px 3px 0 #16130f;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.4;
  text-align: left;
  color: #16130f;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.dc .dc-rule:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #16130f; }
.dc .dc-rule:focus-visible { outline: 3px solid #3ECFB0; outline-offset: 2px; }
.dc .dc-rule.is-active {
  background: #E4F6E9;
  box-shadow: 1px 1px 0 #16130f;
  transform: translate(2px, 2px);
}
.dc-rule-icon { display: inline; flex: none; }

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

.dc-addrule { margin: 16px 0 20px; }
.dc-addrule-row { display: flex; gap: 10px; }
.dc-addrule-row .bf-input { flex: 1; min-width: 0; }
.dc-addrule .dc-rules { margin-top: 12px; }

/* a highlighted line: flat tint, no border */
.dc .bf-step-body > p.dc-callout, .dc-callout {
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: #E4F6E9;
  color: var(--bf-ink);
  font-size: 15px;
  line-height: 1.55;
  margin: 4px 0 16px;
}
.dc .bf-step-body > p.dc-callout--warn, .dc-callout--warn { background: #FDF3D8; }

/* know your rights: ruled rows */
.dc-rights { margin-top: 22px; }
.dc-facts {
  list-style: none; padding: 0 !important; margin: 4px 0 14px;
  border-top: 3px solid #16130f; border-bottom: 2px solid #16130f;
}
.dc .dc-facts li {
  list-style: none;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--bf-line);
  font-size: 15px;
  line-height: 1.55;
  color: var(--bf-soft);
}
.dc .dc-facts li:last-child { border-bottom: 0; }
.dc-facts strong { color: var(--bf-ink); }

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

.dc-questions { list-style: decimal; padding-left: 22px !important; margin: 6px 0 12px; }
.dc .dc-questions li { list-style: decimal; margin-bottom: 10px; font-size: 15px; 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 {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid #16130f;
  border-radius: 0;
  background: #fff;
  font-size: 13px;
  color: #16130f;
}

/* a story from a real school: a ruled block, not a dark card */
.dc-story {
  margin: 26px 0 18px;
  padding: 16px 0 14px;
  border-top: 3px solid #16130f;
  border-bottom: 2px solid #16130f;
}
.dc-story-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #148d75;
  margin-bottom: 6px;
}
.dc-story h3 {
  font-family: var(--dl-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bf-ink);
  margin: 0 0 8px;
}
.dc-story p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--bf-ink); }
.dc .dc-story a { font-weight: 600; }

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

.dc-tally {
  margin: 26px 0 10px;
  padding: 16px 0 12px;
  border-top: 3px solid #16130f;
  border-bottom: 2px solid #16130f;
}
.dc-tally .bf-h3 { margin-top: 0; }
.dc-tally-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 10px;
  border-top: 1px solid var(--bf-line);
}
/* straight after the parent fold, whose closing rule already opens it */
.dc .bf-solution + .dc-tally { margin-top: 0; border-top: 0; padding-top: 18px; }
@media (max-width: 560px) { .dc-tally-grid { grid-template-columns: 1fr; } }
.dc-tally-col { padding: 12px 0 4px; }
@media (max-width: 560px) { .dc-tally-col + .dc-tally-col { border-top: 1px solid var(--bf-line); } }
.dc .dc-tally-title { font-weight: 700; color: var(--bf-ink); margin: 0 0 6px; font-size: 16px; }
.dc-count { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.dc-count + .dc-count { border-top: 1px solid var(--bf-line); }
.dc-count-label { display: block; flex: 1; font-size: 14.5px; 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 .dc-count-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid #16130f;
  border-radius: 0;
  background: #fff;
  box-shadow: 2px 2px 0 #16130f;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #16130f;
  cursor: pointer;
}
.dc .dc-count-btn:hover { background: #E4F6E9; }
.dc .dc-count-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.dc-count-n {
  display: block;
  min-width: 26px;
  text-align: center;
  font-family: var(--dl-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--bf-ink);
}
.dc .dc-tally-read { margin: 10px 0 0; font-size: 14.5px; color: var(--bf-ink); font-weight: 600; }

/* ------------------------------------------------ the proposal
   One after the other: first what the rule should say, then what you trade
   for it. Each is a ruled block with a numbered kicker. */

.dc .bf-step-body ol.dc-plan { list-style: none; padding: 0; margin: 10px 0 22px; display: grid; gap: 22px; }
.dc-plan > li { list-style: none; margin: 0; }
.dc .dc-plan-card {
  padding: 14px 0 0;
  border-top: 3px solid #16130f;
  border-radius: 0;
  background: none;
}
.dc .dc-plan-card p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--bf-ink); }
.dc-plan-kicker {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #148d75;
  margin-bottom: 8px;
}
.dc-plan-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border: 2px solid #16130f;
  border-radius: 0;
  background: #3ECFB0;
  color: #16130f;
  font-size: 13px;
  letter-spacing: 0;
}
.dc-plan-card--chip .dc-plan-num { background: #FDE7E0; }
.dc .dc-plan-card .dc-plan-src { font-size: 13.5px; color: var(--bf-soft); }
.dc-chips { list-style: none; padding: 0 !important; margin: 4px 0 0; }
.dc .dc-chips li {
  list-style: none; margin: 0; padding: 10px 0;
  border-top: 1px solid var(--bf-line);
  font-size: 15px; line-height: 1.55; color: var(--bf-soft);
}
.dc-chips strong { color: var(--bf-ink); }

.dc-outcome { margin-top: 26px; }
.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: 16px; }
#dc-outcome-out > p { font-size: 16px; line-height: 1.65; color: var(--bf-ink); }
.dc-win {
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: #E4F6E9;
}
.dc-win h3 { font-family: var(--dl-font-display); font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--bf-ink); }
.dc-win ul { list-style: disc; padding-left: 22px; margin: 0; }
.dc .dc-win li { list-style: disc; font-size: 15px; line-height: 1.6; color: var(--bf-ink); margin-bottom: 6px; }
.dc-win strong { color: var(--bf-ink); }

.dc .dc-find { margin: 8px 0 0; font-size: 14px; color: var(--bf-soft); }
.dc .bf-template .dc-find { padding: 0 18px 16px; margin: 0; }

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

.dc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0 24px; }
@media (max-width: 560px) { .dc-actions { grid-template-columns: 1fr; } }
.dc .dc-action {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'icon name' 'icon risk' 'meta meta';
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  padding: 16px;
  border: 3px solid #16130f;
  border-radius: 0;
  background: #fff;
  box-shadow: 4px 4px 0 #16130f;
  font: inherit;
  text-align: left;
  color: #16130f;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dc .dc-action:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #16130f; }
.dc .dc-action:focus-visible { outline: 3px solid #3ECFB0; outline-offset: 3px; }
.dc .dc-action.is-active { background: #E4F6E9; box-shadow: 2px 2px 0 #16130f; transform: translate(2px, 2px); }
.dc-action-icon { display: block; grid-area: icon; font-size: 30px; }
.dc-action-name { display: block; grid-area: name; font-family: var(--dl-font-display); font-weight: 700; color: var(--bf-ink); font-size: 17px; }
.dc-action-meta { display: block; grid-area: meta; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--bf-soft); }
.dc-risk {
  display: block;
  grid-area: risk;
  justify-self: start;
  padding: 1px 7px;
  border: 2px solid #16130f;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16130f;
}
.dc-risk--0 { background: #E4F6E9; }
.dc-risk--1 { background: #FDF3D8; }
.dc-risk--2 { background: #FDE7E0; }

/* the three fears fold list closes on a rule; give the timeline heading air */
#dc-fears { margin-bottom: 28px; }

.dc-timeline { list-style: none; padding: 0 !important; margin: 16px 0 22px; position: relative; }
.dc .dc-timeline li {
  list-style: none;
  position: relative;
  padding: 0 0 20px 26px;
  border-left: 2px solid #16130f;
  margin-left: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bf-ink);
}
.dc .dc-timeline li:last-child { border-left-color: transparent; }
.dc-timeline li::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3ECFB0;
  border: 2px solid #16130f;
  box-sizing: border-box;
}
.dc-when {
  display: block;
  font-family: var(--dl-font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--bf-ink);
  margin-bottom: 2px;
}
.dc-timeline .bf-template { margin-top: 12px; }
@media (max-width: 560px) {
  .dc .dc-timeline li { padding-left: 20px; }
}

/* ------------------------------------------------ Doorstop Session ending
   The last step's pitch: a ruled block with a bigger head, not a card. */

.dc-session {
  margin: 4px 0 18px;
  padding: 16px 0 22px;
  border-top: 3px solid #16130f;
  border-bottom: 2px solid #16130f;
}
.dc-session h3 {
  font-family: var(--dl-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bf-ink);
  margin: 0 0 10px;
}
.dc-session p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: var(--bf-ink); }
.dc-session ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.dc .dc-session li { list-style: disc; font-size: 16px; line-height: 1.6; color: var(--bf-ink); margin-bottom: 6px; }
