/* =========================================================
   EflyerMarketing — Distribution Lookup, COLORADO profile
   assets/css/efm-distribution-colorado.css
   v1.7.692  (2026-08-20)

   Styling for the Denver Metro featured offers and the three-area builder.

   SCOPING RULE, NON-NEGOTIABLE
   ---------------------------
   Every selector in this file begins with .efm-dist-profile-colorado. That
   class is applied to the lookup section by the controller when, and only
   when, the colorado renderer is active. Nothing here can reach a generic
   state even though the file loads on all of them.

   The temptation is to style .efm-dist-co-* directly, since those classes only
   appear in Colorado markup anyway. Don't: the guarantee then rests on markup
   staying unique forever, rather than on a selector that cannot match. This
   codebase has been bitten before by styling that leaked once a class name got
   reused, and the profile prefix costs nothing.

   No !important anywhere. If a rule here loses, the cause is a legacy
   !important in style.css and the fix is to retire that rule deliberately —
   see the CSS notes in memory/. Escalating here just moves the fight.

   Mobile is the primary target. Denver's two priced offers have to be
   understandable on a phone held one-handed, so the offers stack, the prices
   stay large, and the CTAs are full-width tap targets by default; the
   side-by-side layout is the ENHANCEMENT at 720px, not the base case.
   ========================================================= */

.efm-dist-profile-colorado .efm-dist-co-featured {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-color: rgba(239, 211, 137, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.42);
}

/* ---------------------------------------------------------
   The two priced offers
   --------------------------------------------------------- */

.efm-dist-profile-colorado .efm-dist-co-offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.efm-dist-profile-colorado .efm-dist-co-offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(239, 211, 137, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(214, 177, 93, 0.10), rgba(214, 177, 93, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.040), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.24);
}

/*
 * The primary offer is visually louder because it is the one most customers
 * actually buy — the MOST POPULAR label is drawn from real ordering history,
 * not from a growth-hacking impulse. If that stops being true, remove the
 * label; do not leave it up because it converts.
 */
.efm-dist-profile-colorado .efm-dist-co-offer-primary {
  border-color: rgba(239, 211, 137, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(239, 211, 137, 0.10),
    0 14px 32px rgba(0, 0, 0, 0.34);
}

.efm-dist-profile-colorado .efm-dist-co-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(239, 211, 137, 0.42);
  border-radius: 999px;
  background: rgba(239, 211, 137, 0.10);
  color: var(--efm-dist-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.efm-dist-profile-colorado .efm-dist-co-offer-title {
  margin: 0;
  color: var(--efm-dist-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.efm-dist-profile-colorado .efm-dist-co-offer-price {
  color: var(--efm-dist-gold);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.efm-dist-profile-colorado .efm-dist-co-offer-copy {
  margin: 0;
  color: var(--efm-dist-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   CTAs — the house gold-edged dark pill
   --------------------------------------------------------- */

.efm-dist-profile-colorado .efm-dist-co-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  padding: 12px 18px;
  border: 1px solid rgba(239, 211, 137, 0.46);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(12, 12, 11, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.28);
  color: var(--efm-dist-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.efm-dist-profile-colorado .efm-dist-co-cta:hover,
.efm-dist-profile-colorado .efm-dist-co-cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  border-color: rgba(239, 211, 137, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.36);
  outline: none;
}

.efm-dist-profile-colorado .efm-dist-co-cta:active {
  transform: translateY(1px);
}

.efm-dist-profile-colorado .efm-dist-co-cta-primary {
  border-color: rgba(239, 211, 137, 0.72);
  background:
    linear-gradient(180deg, rgba(239, 211, 137, 0.16), rgba(239, 211, 137, 0.05)),
    rgba(16, 15, 13, 0.78);
}

.efm-dist-profile-colorado .efm-dist-co-cta-ghost {
  width: auto;
  min-height: 42px;
  padding: 10px 16px;
  border-color: rgba(239, 211, 137, 0.28);
  color: var(--efm-dist-gold-soft);
}

/* Disabled continue: dimmed, but never removed from the tab order — a link
   the customer can reach and be told about beats one that vanishes. */
.efm-dist-profile-colorado .efm-dist-co-cta.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* ---------------------------------------------------------
   Customize row
   --------------------------------------------------------- */

.efm-dist-profile-colorado .efm-dist-co-custom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--efm-dist-line);
}

.efm-dist-profile-colorado .efm-dist-co-custom-title {
  margin: 0;
  color: var(--efm-dist-text);
  font-size: 15px;
  font-weight: 600;
}

.efm-dist-profile-colorado .efm-dist-co-custom-sub {
  margin: 0;
  color: var(--efm-dist-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   The builder
   --------------------------------------------------------- */

.efm-dist-profile-colorado .efm-dist-co-builder {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid rgba(239, 211, 137, 0.22);
  border-radius: 14px;
  background: var(--efm-dist-panel-2);
}

.efm-dist-profile-colorado .efm-dist-co-builder[hidden] {
  display: none;
}

/*
 * The summary is sticky inside the builder so the count and the running price
 * stay on screen while the customer scrolls a nine-item list on a phone. This
 * is the "never make them calculate" requirement made structural: the answer
 * cannot scroll away from the question.
 */
.efm-dist-profile-colorado .efm-dist-co-summary {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: -16px -14px 0;
  padding: 14px;
  border-bottom: 1px solid var(--efm-dist-line);
  border-radius: 14px 14px 0 0;
  background: rgba(24, 24, 22, 0.97);
}

.efm-dist-profile-colorado .efm-dist-co-summary-title {
  color: var(--efm-dist-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.efm-dist-profile-colorado .efm-dist-co-summary-count {
  color: var(--efm-dist-gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.efm-dist-profile-colorado .efm-dist-co-summary-note,
.efm-dist-profile-colorado .efm-dist-co-summary-hint {
  color: var(--efm-dist-muted);
  font-size: 12px;
  line-height: 1.5;
}

.efm-dist-profile-colorado .efm-dist-co-summary-hint[hidden] {
  display: none;
}

.efm-dist-profile-colorado .efm-dist-co-summary-hint {
  color: var(--efm-dist-gold-soft);
}

/* Reaching the included threshold has to be obvious without reading. */
.efm-dist-profile-colorado .efm-dist-co-builder.is-complete .efm-dist-co-summary {
  box-shadow: inset 0 0 0 1px rgba(239, 211, 137, 0.34);
}

.efm-dist-profile-colorado .efm-dist-co-area-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.efm-dist-profile-colorado .efm-dist-co-area {
  margin: 0;
  padding: 0;
}

.efm-dist-profile-colorado .efm-dist-co-area-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid rgba(239, 211, 137, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--efm-dist-text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.efm-dist-profile-colorado .efm-dist-co-area-btn:hover,
.efm-dist-profile-colorado .efm-dist-co-area-btn:focus-visible {
  border-color: rgba(239, 211, 137, 0.46);
  outline: none;
}

.efm-dist-profile-colorado .efm-dist-co-area-btn:active {
  transform: translateY(1px);
}

/*
 * Selected state carries THREE independent signals: border, background and a
 * filled checkmark. Colour alone would fail anyone who cannot distinguish the
 * gold from the neutral border, and the count in the summary is a fourth,
 * textual confirmation.
 */
.efm-dist-profile-colorado .efm-dist-co-area-btn.is-selected {
  border-color: rgba(239, 211, 137, 0.72);
  background:
    linear-gradient(180deg, rgba(239, 211, 137, 0.13), rgba(239, 211, 137, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.efm-dist-profile-colorado .efm-dist-co-area-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(239, 211, 137, 0.46);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}

/*
 * Checkmark as a background-image SVG, not a ::after glyph. Firefox does not
 * render generated content on form controls, and while this is a <button>
 * rather than an <input>, matching the canonical Form 9 checkbox pattern keeps
 * one technique in the codebase instead of two. See memory/form-control-indicators.
 */
.efm-dist-profile-colorado .efm-dist-co-area-btn.is-selected .efm-dist-co-area-mark {
  border-color: rgba(239, 211, 137, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23efd389' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.efm-dist-profile-colorado .efm-dist-co-area-name {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
}

.efm-dist-profile-colorado .efm-dist-co-area-count {
  flex: 0 0 auto;
  color: var(--efm-dist-muted-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.efm-dist-profile-colorado .efm-dist-co-builder-foot {
  display: flex;
  justify-content: stretch;
}

/* ---------------------------------------------------------
   Enhancement: side-by-side offers once there is room
   --------------------------------------------------------- */

@media (min-width: 720px) {

  .efm-dist-profile-colorado .efm-dist-co-offers {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .efm-dist-profile-colorado .efm-dist-co-offer {
    padding: 20px 18px 18px;
  }

  .efm-dist-profile-colorado .efm-dist-co-offer-price {
    font-size: 34px;
  }

  /* Push the CTA to the bottom so the two cards' buttons line up even when
     one carries a badge and the other does not. */
  .efm-dist-profile-colorado .efm-dist-co-cta {
    margin-top: auto;
  }

  .efm-dist-profile-colorado .efm-dist-co-custom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .efm-dist-profile-colorado .efm-dist-co-cta-ghost {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .efm-dist-profile-colorado .efm-dist-co-builder {
    padding: 18px 16px;
  }

  .efm-dist-profile-colorado .efm-dist-co-summary {
    margin: -18px -16px 0;
    padding: 16px;
  }

  .efm-dist-profile-colorado .efm-dist-co-area-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .efm-dist-profile-colorado .efm-dist-co-builder-foot {
    justify-content: flex-end;
  }

  .efm-dist-profile-colorado .efm-dist-co-continue {
    width: auto;
    min-width: 260px;
  }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .efm-dist-profile-colorado .efm-dist-co-cta,
  .efm-dist-profile-colorado .efm-dist-co-area-btn {
    transition: none;
  }

  .efm-dist-profile-colorado .efm-dist-co-cta:hover,
  .efm-dist-profile-colorado .efm-dist-co-cta:focus-visible,
  .efm-dist-profile-colorado .efm-dist-co-cta:active,
  .efm-dist-profile-colorado .efm-dist-co-area-btn:active {
    transform: none;
  }
}

/* ---------------------------------------------------------
   Controller fallback list (all profiles)

   Deliberately plain. It only appears when a renderer has thrown, and a
   failure mode that looks presentable is a failure mode nobody reports.
   --------------------------------------------------------- */

.efm-dist-fallback-list {
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--efm-dist-text);
}

.efm-dist-fallback-list a {
  color: var(--efm-dist-gold);
}
