/* =========================================================================
   BIKE OTTAWA CANDIDATE TOOL — theme variables
   -------------------------------------------------------------------------
   Values below are taken directly from bikeottawa.ca's stylesheet (Zeko
   theme): Oswald for headings, Open Sans for body text, #9e0022 as the
   site's link/accent color, #1b1f22 as the body text / button color.
   The theme already loads these fonts site-wide, so no @import is needed
   here — this widget will just inherit and reuse them.
   ========================================================================= */

.bo-tool {
  /* --- Colors (from bikeottawa.ca style.css) --- */
  --bo-ink: #1b1f22;           /* body text / button background */
  --bo-accent: #9e0022;        /* site link color (maroon) */
  --bo-accent-dark: #6e0019;   /* darkened accent, for hover states */
  --bo-muted: #666666;         /* secondary/muted text */
  --bo-paper: #ffffff;         /* card background */
  --bo-bg: #f6f6f6;            /* section/page background */
  --bo-border: #efefef;        /* hairline/divider color */

  /* --- Typography (from bikeottawa.ca style.css) --- */
  --bo-font-heading: "Oswald", "Helvetica Neue", helvetica, arial, sans-serif;
  --bo-font-body: "Open Sans", "Helvetica Neue", helvetica, arial, sans-serif;

  font-family: var(--bo-font-body);
  color: var(--bo-ink);
  background: var(--bo-bg);
  border: 1px solid var(--bo-border);
  border-radius: 0; /* the site's buttons/blocks use square corners */
  overflow: hidden;
}

.bo-tool * {
  box-sizing: border-box;
}

/* --- Header --- */
.bo-header {
  background: var(--bo-ink);
  color: #fff;
  padding: 20px;
}

.bo-header__eyebrow {
  font-family: var(--bo-font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.75;
  margin: 0 0 6px;
}

.bo-header h2 {
  font-family: var(--bo-font-heading);
  font-size: 28px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}

.bo-header p {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.9;
  max-width: 640px;
}

/* --- Ward selector ("street sign" buttons, wrapping into a grid) --- */
.bo-wardbar {
  background: var(--bo-paper);
  border-bottom: 1px solid var(--bo-border);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.bo-ward-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 2px solid var(--bo-ink);
  color: var(--bo-ink);
  border-radius: 0;
  padding: 6px 12px;
  font-family: var(--bo-font-heading);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.bo-ward-btn:hover {
  border-color: var(--bo-accent);
  color: var(--bo-accent);
}

.bo-ward-btn[aria-pressed="true"] {
  background: var(--bo-ink);
  color: #fff;
  border-color: var(--bo-ink);
}

.bo-ward-btn__num {
  font-size: 10px;
  font-weight: 700;
  background: var(--bo-accent);
  color: #fff;
  padding: 1px 4px;
}

.bo-ward-btn[aria-pressed="true"] .bo-ward-btn__num {
  background: #fff;
  color: var(--bo-ink);
}

/* --- Theme sections --- */
.bo-sections {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bo-section {
  background: var(--bo-paper);
  border: 1px solid var(--bo-border);
  overflow: hidden;
}

.bo-section__head {
  background: var(--bo-bg);
  border-bottom: 1px solid var(--bo-border);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bo-section__dot {
  width: 8px;
  height: 8px;
  background: var(--bo-accent);
  margin-top: 6px;
  flex: 0 0 auto;
}

.bo-section__title {
  font-family: var(--bo-font-heading);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bo-ink);
  margin: 0;
}

.bo-section__question {
  font-family: var(--bo-font-body);
  font-size: 14px;
  color: var(--bo-muted);
  margin: 4px 0 0;
}

.bo-section__grid {
  display: flex;
  flex-direction: column;
}

.bo-card {
  padding: 14px 16px;
  border-top: 1px solid var(--bo-border);
}

.bo-card:first-child {
  border-top: none;
}

.bo-card__who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.bo-card__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bo-accent);
  color: #fff;
  font-family: var(--bo-font-heading);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.bo-card__name {
  font-family: var(--bo-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--bo-ink);
}

.bo-card__role {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--bo-muted);
}

.bo-card__answer {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--bo-ink);
}

.bo-card__answer.is-empty {
  color: var(--bo-muted);
  font-style: italic;
}

.bo-footer {
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--bo-muted);
}

.bo-tool[data-loading="true"] {
  padding: 40px 20px;
  text-align: center;
  color: var(--bo-muted);
}

.bo-tool[data-error="true"] {
  padding: 20px;
  color: var(--bo-accent);
  background: #fdf2f2;
}
