/*
 * SFC Impact Map
 *
 * EVERY selector is prefixed `sfc-im-`. This is not cosmetic: an earlier build of the design
 * prototype lost time to a class name that meant two different things in one stylesheet, which
 * silently turned a page container into a two-column grid and tinted it on hover. Any new class
 * added here gets the prefix, with no exceptions.
 *
 * Colours are the live site's, taken from the Blog tab: yellow #FFCB1D, blue #2397CB /
 * #12688F, ink #212121, body #616161, faint #9E9E9E, line #E0E0E0, cream #FFFDE7.
 * The site is light-only, so these are literals rather than theme-reactive tokens.
 */

.sfc-im {
  --sfc-im-ink: #212121;
  --sfc-im-body: #616161;
  --sfc-im-faint: #9e9e9e;
  --sfc-im-line: #e0e0e0;
  --sfc-im-line-soft: #f1f1f1;
  --sfc-im-panel: #ffffff;
  --sfc-im-cream: #fffde7;
  --sfc-im-yellow: #ffcb1d;
  --sfc-im-blue: #2397cb;
  --sfc-im-blue-deep: #12688f;
  --sfc-im-blue-soft: #e3f1f9;
  --sfc-im-land: #dce4e9;
  --sfc-im-sea: #f2f6f8;
  --sfc-im-radius: 16px;

  color: var(--sfc-im-body);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.sfc-im *,
.sfc-im *::before,
.sfc-im *::after { box-sizing: border-box; }

/* ---------------- stat tiles ---------------- */

/*
 * The stat row is a real list, but it lives inside whatever the theme does to `ul` in post
 * content. On the live site Divi's own `list-style-type: disc` beat a plain `list-style: none`
 * here and drew a bullet beside every tile. Found on the real page, not in the harness - the
 * dev harness has no theme CSS to fight. Hence the extra class + type in the selector, and an
 * explicit ::marker reset for browsers that would still paint one.
 */
.sfc-im ul.sfc-im-stats {
  display: grid;
  /* Five tiles since 0.3.2: Founders, Ventures, Finalists, Winners, Countries. */
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.sfc-im ul.sfc-im-stats > li.sfc-im-stat { list-style: none; }
.sfc-im ul.sfc-im-stats > li.sfc-im-stat::marker { content: none; }
.sfc-im ul.sfc-im-stats > li.sfc-im-stat::before { content: none; }
@media (max-width: 1000px) {
  /* Five across gets cramped before the phone breakpoint does. */
  .sfc-im ul.sfc-im-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  /* Two by two on a phone. Four across at 390px left the numbers at 13px and wrapping. */
  .sfc-im ul.sfc-im-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* An odd tile count leaves the last one alone in its row; let it take the full width
     rather than sit half-empty beside a gap. */
  .sfc-im ul.sfc-im-stats > li.sfc-im-stat:last-child:nth-child(odd) { grid-column: span 2; }
}
.sfc-im-stat {
  background: var(--sfc-im-panel);
  border: 1px solid var(--sfc-im-line);
  border-radius: var(--sfc-im-radius);
  padding: 22px 20px;
}
.sfc-im-stat b {
  display: block;
  font: 700 30px/1 "Plus Jakarta Sans", "Open Sans", sans-serif;
  color: var(--sfc-im-ink);
  font-variant-numeric: tabular-nums;
}
.sfc-im-stat span {
  display: block;
  margin-top: 8px;
  font: 600 12px/1.3 "Plus Jakarta Sans", "Open Sans", sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sfc-im-faint);
}
@media (max-width: 700px) {
  .sfc-im-stat { padding: 16px 14px; }
  .sfc-im-stat b { font-size: 22px; }
  .sfc-im-stat span { font-size: 10px; }
}

/* ---------------- controls ---------------- */

.sfc-im-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.sfc-im-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sfc-im-panel);
  border: 1px solid var(--sfc-im-line);
  border-radius: 9999px;
  padding: 9px 18px;
}
.sfc-im-field svg { flex: none; }
.sfc-im-search,
.sfc-im-theme {
  border: 0;
  outline: 0;
  padding: 0;
  background: none;
  font: 400 16px/1.4 "Open Sans", sans-serif;
  color: #424242;
}
.sfc-im-search { width: 210px; }
@media (max-width: 520px) { .sfc-im-search { width: 150px; } }

/*
 * The status legend, back in 0.5.0 after 0.3.1 removed it along with the status filters.
 *
 * A fieldset rather than a list ON PURPOSE: Divi's `.et-l--body ul` forces discs and padding
 * on any list this plugin renders, and every list here has to carry a selector that beats it
 * (see tools/check-theme-collisions.mjs gate 1). Two checkboxes do not need to be a list to
 * earn that fight. The fieldset's own theme inheritance IS reset here, for the same reason.
 *
 * Each label carries the real row bullet, built from the same classes the rows use, so the
 * legend cannot drift from what it is a key to. Those classes are written for a grid cell, so
 * the two grid properties are unset here and nowhere else.
 */
.sfc-im-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  padding: 7px 18px;
  border: 1px solid var(--sfc-im-line);
  border-radius: 9999px;
  background: var(--sfc-im-panel);
}
.sfc-im-legend-title {
  float: none;
  width: auto;
  padding: 0;
  margin: 0;
  border: 0;
  font: 600 11px/1.3 "Plus Jakarta Sans", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sfc-im-faint);
}
.sfc-im-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font: 400 14px/1.4 "Open Sans", sans-serif;
  color: #424242;
  cursor: pointer;
}
.sfc-im-legend-item input { margin: 0; cursor: pointer; accent-color: var(--sfc-im-blue-deep); }
.sfc-im-legend-item i {
  grid-column: auto;
  grid-row: auto;
  margin-top: 0;
  flex: none;
}
@media (max-width: 520px) {
  .sfc-im-legend { gap: 10px; padding: 8px 14px; }
  .sfc-im-legend-item { font-size: 13px; }
}

/* ---------------- map ---------------- */

.sfc-im-figure { margin: 0; }
.sfc-im-stage {
  position: relative;
  border: 1px solid var(--sfc-im-line);
  border-radius: var(--sfc-im-radius);
  overflow: hidden;
  background: var(--sfc-im-sea);
}
.sfc-im-svg { display: block; width: 100%; height: auto; }

.sfc-im-land {
  fill: var(--sfc-im-land);
  stroke: #ffffff;
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
}
.sfc-im-land.is-active { cursor: pointer; }
.sfc-im-land.is-selected {
  stroke: var(--sfc-im-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
/* No hover colour shift: the live site's other pages are static, and Danny asked for the
   same behaviour here. The tooltip is the hover feedback. */

.sfc-im-marker { cursor: pointer; }
.sfc-im-marker:focus { outline: none; }
.sfc-im-marker:focus-visible .sfc-im-marker-ring {
  stroke: var(--sfc-im-ink);
  stroke-width: 2;
  fill: none;
}
/* .sfc-im-dot went with the second marker shape in 0.3.1. */
.sfc-im-badge { fill: #ffffff; stroke: var(--sfc-im-blue-deep); stroke-width: 1.1; }
.sfc-im-badge-text {
  font: 700 10px/1 "Plus Jakarta Sans", sans-serif;
  fill: var(--sfc-im-ink);
  text-anchor: middle;
  pointer-events: none;
}

/* ---------------- tooltip ---------------- */

.sfc-im-tip {
  position: absolute;
  z-index: 6;
  width: 252px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.12s;
  background: var(--sfc-im-panel);
  border: 1px solid var(--sfc-im-line);
  border-radius: 10px;
  padding: 13px 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
.sfc-im-tip.is-open { opacity: 1; }
.sfc-im-tip h4 {
  margin: 0 0 3px;
  font: 700 15px/1.3 "Plus Jakarta Sans", sans-serif;
  color: var(--sfc-im-ink);
}
.sfc-im-tip-meta { font-size: 12px; color: var(--sfc-im-faint); }
.sfc-im-tip-themes {
  font-size: 13px;
  color: var(--sfc-im-body);
  border-top: 1px solid var(--sfc-im-line-soft);
  padding-top: 8px;
  margin-top: 8px;
}

/* ---------------- country panel ---------------- */

.sfc-im-panel-side {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(370px, 80%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  background: var(--sfc-im-panel);
  border-right: 1px solid var(--sfc-im-line);
  box-shadow: 16px 0 38px rgba(0, 0, 0, 0.16);
  transform: translateX(-101%);
  /*
   * `visibility` is load-bearing, not belt-and-braces. translateX(-101%) puts the panel fully
   * outside the stage, but a box-shadow is painted OUTSIDE the box that casts it: 16px offset
   * plus 38px blur reached ~50px back into the map, so the closed panel drew a permanent dark
   * band down the left edge of the world. The stage's `overflow: hidden` cannot help - the
   * shadow is inside the clip box even when the panel is not. Hiding the panel removes the
   * caster. The 0.22s delay on close lets the slide-out finish before it disappears.
   */
  visibility: hidden;
  transition: transform 0.22s ease, visibility 0s linear 0.22s;
}
.sfc-im-panel-side.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.22s ease, visibility 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) {
  .sfc-im-panel-side,
  .sfc-im-tip { transition: none; }
}
.sfc-im-panel-head {
  /* The close button is anchored to the head, not the panel (0.7.0) - see the phone rule. */
  position: relative;
  display: grid;
  gap: 5px;
  padding: 16px 46px 13px 18px;
  border-bottom: 1px solid var(--sfc-im-line-soft);
}
.sfc-im-panel-head h4 {
  margin: 0;
  font: 700 17px/1.25 "Plus Jakarta Sans", sans-serif;
  color: var(--sfc-im-ink);
}
.sfc-im-panel-sub { font-size: 13px; color: var(--sfc-im-faint); }
.sfc-im-panel-close {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--sfc-im-line);
  color: var(--sfc-im-body);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.sfc-im-panel-body {
  overflow-y: auto;
  padding: 9px 11px 16px;
  display: grid;
  gap: 4px;
  align-content: start;
}

/*
 * On a narrow screen the map is only ~190px tall, so a side panel inside it would be a
 * 260px-wide column with almost no vertical room. Below 700px the panel stops overlaying the
 * map and becomes a list underneath it, in the same bordered card: full width, natural
 * height, no transform. `position: relative` matters - without it the close button would
 * anchor to the stage and land on top of the map.
 */
@media (max-width: 700px) {
  .sfc-im-panel-side {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    border-right: 0;
    border-top: 1px solid var(--sfc-im-line);
    box-shadow: none;
    display: none;
  }
  .sfc-im-panel-side.is-open { display: flex; }
  /*
   * NO SCROLL BOX INSIDE THE PAGE (0.7.0). Until 0.6.1 the list was capped at 60vh and
   * scrolled on its own, inside a page that also scrolls. Measured at 390x844 on the live
   * site: 506px of box, Nigeria's finalists 5.5 box-heights of scrolling before the
   * participant button, and 30 box-heights with participants open - a thumb caught in a
   * window a third of the screen tall. The list now takes its natural height and the page is
   * the only thing that scrolls.
   */
  .sfc-im-panel-body { max-height: none; overflow: visible; }
  /*
   * `clip`, not `hidden`, on a phone only. `hidden` makes the stage a scroll container, and a
   * sticky element sticks to its nearest scroll container - so the panel head below would
   * stick to a box that never scrolls, i.e. not at all. `clip` still trims the rounded
   * corners without being one. `hidden` stays first as the fallback for a browser without clip.
   */
  .sfc-im-stage { overflow: hidden; overflow: clip; }
  /*
   * THE HEAD STICKS below the site's own fixed header while the list scrolls (0.7.0), so a
   * reader sixty rows down still sees which country this is and can close it. 70px is the
   * Divi header measured on the live site at 390px - position fixed, top 0, z-index 10010.
   * It is a custom property so a theme change is a one-line fix rather than a hunt.
   */
  .sfc-im-panel-head {
    position: sticky;
    top: var(--sfc-im-sticky-top, 70px);
    z-index: 3;
    background: var(--sfc-im-panel);
  }
}

/* One venture row. Two columns so the bullet sits in its own cell and BOTH the name and the
   impact line share one left edge - the wrapped-text raggedness the prototype review caught. */
.sfc-im-venture {
  display: grid;
  grid-template-columns: 9px 1fr;
  column-gap: 9px;
  row-gap: 3px;
  align-items: start;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.sfc-im-venture:hover,
.sfc-im-venture:focus-visible {
  background: var(--sfc-im-cream);
  border-color: var(--sfc-im-line);
}
/*
 * A participant row: same grid as a venture row so the two read as one list, but nothing
 * that suggests it can be opened. No pointer cursor, no hover state, no focus ring - it is a
 * div with no handler, and the styling must not promise otherwise.
 *
 * Since 0.5.0 this class carries BOTH kinds of inert row - a pasted participant, and a
 * venture page with no status tag. The bullets are cut by STATUS now, not by whether a page
 * exists: a yellow rounded square for a finalist or winner, a blue circle for everyone else.
 * Which makes this rule the one that holds the promise - it is what an untagged venture page
 * picks up the moment it stops being a button. Reusing .sfc-im-venture-name,
 * -brief and -meta here is deliberate: the description clamp added in 0.3.5 then applies to
 * both kinds of row without being written twice.
 */
.sfc-im-participant {
  display: grid;
  grid-template-columns: 9px 1fr;
  column-gap: 9px;
  row-gap: 3px;
  align-items: start;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  font: inherit;
}
/*
 * THE BLUE CIRCLE: every row that does not open. A venture page with no status tag and a
 * pasted participant row are the same thing to a reader, so they get the same bullet.
 *
 * Until 0.4.1 this was a HOLLOW circle against the venture row's filled one, a distinction
 * that meant "has a page here" - which stopped being visible to a reader in 0.5.0, when
 * having a page stopped deciding anything. Filled now, so the two bullets are peers.
 */
.sfc-im-participant-dot {
  grid-column: 1;
  grid-row: 1;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--sfc-im-blue);
}
/*
 * The disclosure for a long participant tail. A control, not a venture - so it looks like a
 * control: full width, quiet, and it says what it will reveal before revealing it.
 */
.sfc-im-others-toggle {
  display: block;
  width: calc(100% - 20px);
  margin: 14px 10px 4px;
  padding: 9px 12px;
  border: 1px dashed var(--sfc-im-line);
  border-radius: 8px;
  background: none;
  text-align: left;
  font: 600 12px/1.3 "Plus Jakarta Sans", sans-serif;
  letter-spacing: .03em;
  color: var(--sfc-im-body);
  cursor: pointer;
}
.sfc-im-others-toggle:hover,
.sfc-im-others-toggle:focus-visible {
  background: var(--sfc-im-cream);
  border-color: var(--sfc-im-blue);
  color: var(--sfc-im-ink);
}
/* Separates the openable ventures from the participants without shouting about it. */
.sfc-im-others-head {
  margin: 14px 10px 4px;
  padding-top: 10px;
  border-top: 1px solid var(--sfc-im-line);
  font: 600 11px/1.3 "Plus Jakarta Sans", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sfc-im-faint);
}
/*
 * THE YELLOW ROUNDED SQUARE: a finalist or a winner, and the only row that opens.
 *
 * SHAPE AND COLOUR BOTH DIFFER from the blue circle above, deliberately (Danny, 2026-09-14).
 * Colour alone is not a distinction - it disappears in a greyscale print and for a
 * colour-blind reader - and the map's own history says so: 0.3.1 removed two marker shapes
 * precisely because they had become a code with no key, which is why the legend carries these
 * same two swatches.
 *
 * Both colours are the existing custom properties. No new literal enters this stylesheet for
 * a distinction the palette already makes.
 */
.sfc-im-venture-dot {
  grid-column: 1;
  grid-row: 1;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 2.5px;
  background: var(--sfc-im-yellow);
}
.sfc-im-venture-name {
  grid-column: 2;
  grid-row: 1;
  font: 600 14px/1.35 "Plus Jakarta Sans", sans-serif;
  color: var(--sfc-im-ink);
}
/* Row 2 is the venture's own opening line, row 3 its area of impact. Both are omitted when
   empty rather than filled with a placeholder (0.3.4), so the grid rows collapse on their
   own and a sparse row stays compact. */
.sfc-im-venture-brief {
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  line-height: 1.45;
  color: var(--sfc-im-body);
  /* Clamped, not shortened (0.3.5). The payload sends 140 characters and the drawer shows
     the whole description; this only caps how much of it a ROW spends. Measured on the live
     page before clamping: a 390px screen gave the brief 4 lines, a median row 164px, and
     Nigeria's 78 rows a 13,151px scroll inside a 506px panel - 26 screens. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
/*
 * A PARTICIPANT'S DESCRIPTION IS NOT CLAMPED (0.7.0). The server now sends a whole first
 * sentence of up to 200 characters for these rows, and a participant row cannot be opened to
 * read the rest - so a clamp here would put back, in the browser, exactly the "..." the server
 * stopped sending. Finalist rows keep the clamp; their pop-up holds the full text.
 */
.sfc-im-participant .sfc-im-venture-brief {
  display: block;
  -webkit-line-clamp: none;
  line-clamp: none;
  overflow: visible;
}
/*
 * Two lines for a FINALIST row on a phone - and written AFTER the base rule above, which is
 * the whole fix. Until 0.6.1 this sat in the earlier phone block, at the same specificity as
 * the base rule, so the base rule's `3` won by source order and every phone got three lines
 * under a comment promising two. Measured: computed line-clamp 3 at 390px on the live site.
 */
@media (max-width: 700px) {
  .sfc-im-venture .sfc-im-venture-brief { -webkit-line-clamp: 2; line-clamp: 2; }
}
.sfc-im-venture-meta {
  grid-column: 2;
  grid-row: 3;
  font-size: 11.5px;
  color: var(--sfc-im-faint);
}
.sfc-im-empty { padding: 14px 10px; font-size: 14px; color: var(--sfc-im-faint); }

/* ---------------- scale legend ---------------- */

.sfc-im-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  font: 400 13px/1.4 "Open Sans", sans-serif;
  color: var(--sfc-im-faint);
}
.sfc-im-scale-bar {
  display: block;
  width: 190px;
  height: 9px;
  border-radius: 20px;
  border: 1px solid var(--sfc-im-line);
  flex: none;
}
.sfc-im-count { font-variant-numeric: tabular-nums; }

/* ---------------- states ---------------- */

.sfc-im-status {
  padding: 40px 20px;
  text-align: center;
  font-size: 15px;
  color: var(--sfc-im-faint);
}
.sfc-im-status.is-error { color: #a33; }
.sfc-im-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ---------------- venture pop-up ----------------
 *
 * A bottom sheet, matching the approved design (artifact 1a27e47b). It is `position: fixed` on
 * document.body rather than inside the map, because the stage clips its children.
 *
 * Colours are hard-coded here instead of using the plugin's custom properties: this element is
 * a child of <body>, outside .sfc-im, so it does not inherit them.
 */

.sfc-im-drawer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100000;
  display: none;
  padding: 22px 24px 26px;
  background: #ffffff;
  color: #616161;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.18);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
}
.sfc-im-drawer.is-open { display: block; }

.sfc-im-drawer-inner {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}

.sfc-im-drawer-close {
  position: absolute;
  top: -6px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #616161;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.sfc-im-drawer-close:hover { background: #fffde7; }

.sfc-im-pill {
  justify-self: start;
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  font: 600 11px/1 "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sfc-im-pill.is-winner { background: #ffcb1d; color: #3d2d00; }
.sfc-im-pill.is-finalist { background: #fff3c9; color: #4a3800; }
/* No .is-participant rule: since 0.3.1 an untagged venture shows no pill at all. */
.sfc-im-pill[hidden] { display: none !important; }

.sfc-im-drawer-name {
  margin: 0;
  padding: 0 44px 0 0;
  font: 700 22px/1.3 "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
  color: #212121;
}

.sfc-im-drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 13px;
  color: #9e9e9e;
}

.sfc-im-drawer-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #616161;
  /* ACF textareas keep their line breaks; without this they collapse into one block. */
  white-space: pre-line;
}
.sfc-im-drawer-desc:empty { display: none; }

/*
 * The milestone update. Set apart from the description by a rule and a heading, because the
 * two answer different questions - what the venture is, and what has happened since. Hidden
 * with the `hidden` property when there is no update, which is the case for 68 of 69 today.
 */
.sfc-im-drawer-update {
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #eeeeee;
}
.sfc-im-drawer-update-head {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9e9e9e;
}
.sfc-im-drawer-update-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #616161;
  white-space: pre-line;
}

.sfc-im-drawer-btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* Two of 162 ventures have no video and therefore no button at all. */
.sfc-im-drawer-btns:empty { display: none; }
.sfc-im-drawer-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 8px 22px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #424242;
  font: 700 15px/1.4 "Open Sans", Helvetica, Arial, sans-serif;
  text-decoration: none;
}
.sfc-im-drawer-btn:hover { background: #fffde7; color: #424242; }
.sfc-im-drawer-btn.is-yellow {
  background: #ffcb1d;
  border-color: #ffcb1d;
  color: #424242;
}
.sfc-im-drawer-btn.is-yellow:hover { background: #f5c000; color: #424242; }

@media (max-width: 700px) {
  .sfc-im-drawer { padding: 18px 16px 20px; max-height: 78vh; overflow-y: auto; }
  .sfc-im-drawer-name { font-size: 19px; }
  .sfc-im-drawer-btn { font-size: 14px; }
}
