/* ============================================================
   Tu Es Belle CE Academy — Guided Course Finder (Gap 8, 87/1)
   Two questions — license, then years held — then the exact
   course card, mirroring the homepage course cards. Scoped
   under .cg. Brand: emerald #04352A, fine gold, ivory ground.
   ============================================================ */

.cg {
  margin: 0 auto;
  width: 100%;
  max-width: var(--shell, 76rem);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3rem) 0.5rem;
  box-sizing: border-box;
}

.cg__panel {
  background: #FDFBF5;
  border: 1px solid rgba(200, 169, 106, 0.65);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 14px 34px rgba(4, 53, 42, 0.10);
}

.cg__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8A6D3B;
  margin: 0 0 0.5rem;
  text-align: center;
}

.cg__title {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: #04352A;
  text-align: center;
}

.cg__sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #4A463C;
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  text-align: center;
}

.cg__steps {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.cg__steps li {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(4, 53, 42, 0.15);
}

.cg__steps li.is-done,
.cg__steps li.is-now {
  background: #C8A96A;
}

.cg__stepof {
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A6D3B;
  margin: 0 0 0.4rem;
}

.cg__q {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.3rem, 3.4vw, 1.55rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1.1rem;
  color: #04352A;
}

.cg__q:focus,
.cg__kicker:focus {
  outline: none;
}

.cg__group {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04352A;
  margin: 1.1rem 0 0.6rem;
}

.cg__group:first-of-type {
  margin-top: 0;
}

.cg__opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cg__opt {
  appearance: none;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.35;
  text-align: left;
  min-height: 56px;
  background: #FFFFFF;
  color: #04352A;
  border: 1px solid rgba(138, 107, 49, 0.45);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cg__opt:hover,
.cg__opt:focus-visible {
  background: #F8F0DC;
  border-color: #C8A96A;
  outline: 3px solid rgba(200, 169, 106, 0.55);
  outline-offset: 2px;
}

.cg__opt:active { transform: scale(0.99); }

.cg__back,
.cg__restart {
  appearance: none;
  font: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  color: #8A6D3B;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.6rem 0.2rem;
  margin-top: 1rem;
}

.cg__back:hover,
.cg__back:focus-visible,
.cg__restart:hover,
.cg__restart:focus-visible {
  color: #04352A;
  outline: 3px solid rgba(200, 169, 106, 0.55);
  outline-offset: 2px;
}

.cg__kicker {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A6D3B;
  margin: 0 0 0.8rem;
}

.cg__vetnote {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #04352A;
  background: #F8F0DC;
  border: 1px solid rgba(200, 169, 106, 0.5);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.1rem;
  max-width: 44rem;
}

.cg__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  max-width: 34rem;
}

.cg__cards--pair {
  max-width: none;
}

.cg-card {
  background: #FFFFFF;
  border: 1px solid rgba(138, 107, 49, 0.35);
  border-radius: 1rem;
  padding: 1rem 1rem 1.15rem;
  text-align: center;
}

.cg-card .cg-media {
  display: block;
  margin: 0 0 0.9rem;
}

.cg-card .cg-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.7rem;
  object-fit: cover;
  aspect-ratio: 16/10;
  border: 1px solid rgba(200, 169, 106, 0.55);
}

.cg-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  line-height: 1.4;
  color: #04352A;
}

.cg-card h3 a {
  color: #04352A;
  text-decoration: none;
}

.cg-card h3 a:hover { text-decoration: underline; }

.cg-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4A463C;
}

.cg-card .cg-price {
  margin: 0.4rem 0 0;
  font-size: 1.06rem;
  line-height: 1.4;
  font-weight: 700;
  color: #8A6D3B;
}

.cg-card .cg-num { margin: 0.15rem 0 0; font-size: 0.85rem; }

.cg-card .cg-cardnote {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.cg__note {
  font-size: 1rem;
  line-height: 1.65;
  color: #4A463C;
  margin: 1.1rem 0 0;
  max-width: 46rem;
}

.cg__altlabel {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #04352A;
  margin: 1.4rem 0 0.8rem;
}

.cg__noscript {
  font-size: 1rem;
  line-height: 1.6;
  color: #4A463C;
  text-align: center;
  margin: 0;
}

@media (max-width: 640px) {
  .cg__opts { grid-template-columns: 1fr; }
  .cg__cards { grid-template-columns: 1fr; max-width: none; }
}

/* Fix 132 (Nov 4, 2026): homepage image optimization — right-sized WebP
   backgrounds for the hero and full-bleed bands. This stylesheet loads ONLY
   on the five homepages; all other pages keep the original JPEG backgrounds
   from style.css. */
.hero-media { background-image: url('../img/hero-hp1536.webp'); }
.bleed--tracks { background-image: url('../img/tracks-hp1024.webp'); }
.bleed--texture { background-image: url('../img/texture-hp1536.webp'); }

/* ---------- Fix 193 — gold borders site-wide (Rozmin's item 66, Nov 6, 2026) ----------
   The course finder's borders join the site-wide gold #C8A96A — several
   finder rims were a darker bronze (rgba(138, 107, 49, ...)). The shared
   style.css flip already reaches the finder on the homepages; this keeps
   the finder gold wherever its sheet is loaded. Borders only. */
.cg, .cg *, .cg *::before, .cg *::after,
[data-cg-root], [data-cg-root] *, [data-cg-root] *::before, [data-cg-root] *::after { border-color: #C8A96A !important; }
/* ============ Fix 201 — the business number stays together (Rozmin's order, Nov 6, 2026) ============
   (346) 812-7727 must never split across lines. The number's own links
   (text/call) render on one line, and .keep-together wraps every
   plain-text printing of the number site-wide. */
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }
.keep-together { white-space: nowrap; }
