/* Conversation Club site-wide chrome. The page-reset rules (font/background/sizing) are scoped to body.cc-site, used by the Welcome-controller public pages only -- Games/Manager keep their own look (own header files), untouched. The .cc-nav* rules below are NOT scoped to body.cc-site: the members area also uses them (members/header.php) for its nav band, while keeping members.css for everything below the nav. */
:root {
  --cc-butter: #FEE782;
  --cc-indigo-band: #3838B0;
  --cc-indigo-card: #5150C8;
  --cc-coral: #F37662;
  --cc-ink: #1A1A1A;
  --cc-bg-light: #FFFDF8;
}

/* restore the browser's real root sizing + base typeface on every Welcome-controller
   page — site-wide Bootstrap sets html{font-size:10px}, which silently shrinks every
   rem-based value here by 62.5%; :has() scopes the fix to pages that carry
   body.cc-site so Members/Games/Manager (own header files, no cc-site class) are untouched. */
html:has(body.cc-site) {
  font-size: 16px;
}

/* neutralize the site-wide Bootstrap container/background on every Welcome-controller page */
body.cc-site {
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--cc-ink);
}
body.cc-site > .container {
  background: none;
  padding: 0;
  max-width: none;
  width: 100%;
}

/* ---- compact nav band for every non-home Welcome page (about/contact/signup/login/
   checkout/reset/set-password) -- same cc-nav, no hero beneath it, so the butter field
   is just a top band rather than the continuous nav+hero wash the homepage has ---- */
.cc-hero-field--compact { padding-bottom: 0; }

/* ---- plain content wrapper for every non-home page, replacing the old
   semi-opaque map-background .container treatment ---- */
.cc-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.5rem) clamp(3rem, 6vw, 4.5rem);
}
.cc-page h1, .cc-page h2, .cc-page h3, .cc-page legend {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--cc-ink);
}
.cc-page a { color: var(--cc-indigo-band); }
.cc-nav-cta.active { background: var(--cc-coral); }

.cc-hero-field, .cc-features, .cc-footer { box-sizing: border-box; }
.cc-hero-field *, .cc-features *, .cc-footer * { box-sizing: border-box; }

/* ---- nav + hero share one continuous yellow field ---- */
.cc-hero-field { background: var(--cc-butter); }
.cc-nav { padding: 0.9rem 1.5rem; }
.cc-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cc-nav-brand {
  /* the approved wordmark is a real extracted image, not a reproduced font --
     no font/weight approximation matches it exactly, so the actual artwork
     is used here instead. */
  display: inline-flex;
  align-items: center;
}
.cc-nav-brand img { display: block; }
.cc-nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.cc-nav-links a {
  color: var(--cc-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.cc-nav-links a.active, .cc-nav-links a:hover {
  border-bottom-color: var(--cc-indigo-band);
  color: var(--cc-indigo-band);
}
.cc-nav-cta {
  background: var(--cc-indigo-band);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
}

/* explicit rather than inherited from body.cc-site, so the nav reads identically
   wherever it's used -- Welcome pages (body.cc-site) and members/header.php (no
   body.cc-site, keeps members.css for the page below the nav) alike */
.cc-nav { font-family: 'DM Sans', sans-serif; }

/* ---- members-area dropdowns (Learn Spanish submenu, Account submenu): same
   cc-nav visual language: Bootstrap's own dropdown-menu JS/positioning/.open
   toggle is kept as-is, only restyled to match ---- */
.cc-nav-links li.dropdown { position: relative; }
.cc-nav-dropdown-toggle,
.cc-nav-account-toggle {
  display: inline-flex;
  align-items: center;
  color: var(--cc-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.cc-nav-links li.dropdown.active > .cc-nav-dropdown-toggle,
.cc-nav-dropdown-toggle:hover,
.cc-nav-dropdown-toggle:focus,
.cc-nav-account-toggle:hover,
.cc-nav-account-toggle:focus {
  border-bottom-color: var(--cc-indigo-band);
  color: var(--cc-indigo-band);
}
.cc-nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}
.cc-nav-account {
  position: relative;
  display: flex;
  align-items: center;
}
.cc-nav .dropdown-menu {
  font-family: 'DM Sans', sans-serif;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}
.cc-nav .dropdown-menu > li > a {
  color: var(--cc-ink);
  padding: 0.5rem 1.1rem;
  font-weight: 500;
}
.cc-nav .dropdown-menu > li > a:hover,
.cc-nav .dropdown-menu > li > a:focus {
  background: var(--cc-butter);
  color: var(--cc-ink);
}

/* ---- hero ---- */
.cc-hero { padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 7vw, 5rem); }
.cc-hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.cc-hero-copy h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  margin: 0 0 1.1rem;
  color: var(--cc-ink);
}
.cc-hero-copy p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--cc-ink);
}
.cc-hero-cta {
  display: inline-block;
  background: var(--cc-indigo-band);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
}
.cc-hero-cta:hover { background: #2c2c8c; }
/* when the homepage CTA class is reused inside .cc-page (about.php's expanded
   pattern), .cc-page a's generic link color would otherwise override this button's
   white text with the same indigo as its background -- scope back to white here. */
.cc-page a.cc-hero-cta { color: #fff; }
.cc-hero-art { min-width: 0; }
.cc-hero-art img { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
@media (max-width: 760px) {
  .cc-hero-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---- features: deep-indigo band, lighter-indigo rounded cards, yellow headings ---- */
.cc-features {
  background: var(--cc-indigo-band);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}
.cc-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
}
.cc-features-card {
  min-width: 0;
  background: var(--cc-indigo-card);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}
.cc-features-icon {
  /* real vector icons now (video/flashcards/articles svgs), not a glyph badge --
     they carry their own yellow/indigo/coral fills, so no background box */
  display: block;
  width: 3.5rem;
  height: 3.5rem;
}
.cc-features-heading {
  margin: 1.25rem 0 0.75rem;
  color: var(--cc-butter);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}
.cc-features-description { margin: 0; font-size: 1.125rem; line-height: 1.6; color: #fff; }
@media (max-width: 639px) {
  .cc-features-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- footer ---- */
.cc-footer {
  background: var(--cc-indigo-band);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.95rem;
}
.cc-footer a { color: var(--cc-butter); text-decoration: underline; }

/* ---- page content: forms (login, signup, contact, reset-password) ----
   Shared form treatment for login/contact/signup/reset — mirrors the
   pattern established on login.php, reused verbatim by the other bodies. */
.cc-form {
  background: var(--cc-bg-light);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
.cc-form-legend {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--cc-ink);
  border: none;
  margin: 0 0 0.75rem;
}
.cc-form-notice {
  background: rgba(254, 231, 130, 0.35);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.cc-form-notice p { margin: 0 0 0.5rem; }
.cc-form-notice p:last-child { margin-bottom: 0; }
.cc-form-notice a { text-decoration: underline; }
.cc-form-error {
  color: var(--cc-coral);
  font-weight: 600;
  margin: 0 0 1rem;
}
.cc-text-emphasis {
  color: var(--cc-indigo-band);
  font-weight: 600;
}
.cc-form-group { margin: 0 0 1.1rem; }
.cc-input {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 0.6rem;
  box-sizing: border-box;
}
.cc-input:focus { outline: none; border-color: var(--cc-indigo-band); }
.cc-btn {
  display: inline-block;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.cc-btn-primary { background: var(--cc-indigo-band); color: #fff; }
.cc-btn-primary:hover { background: #2c2c8c; }
.cc-form-footer { margin-top: 0.5rem; text-align: center; }
.cc-form-footer a { color: var(--cc-indigo-band); text-decoration: underline; }

/* ---- about/signup extensions: existing tokens only, no new colors ---- */
.cc-course-table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.cc-course-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  color: var(--cc-ink);
}
.cc-course-table th, .cc-course-table td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  white-space: nowrap;
}
.cc-course-table th {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: #fff;
  background: var(--cc-indigo-band);
}
.cc-course-table tbody tr:nth-child(even) { background: rgba(254, 231, 130, 0.25); }

.cc-about-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin: 0 1.25rem 0.75rem 0;
}
@media (max-width: 639px) {
  .cc-about-portrait { float: none; display: block; margin: 0 auto 1rem; }
}

.cc-signup-illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
  float: left;
  margin-right: 1.5rem;
}
@media (max-width: 639px) {
  .cc-signup-illustration { float: none; margin: 0 auto 1.25rem; }
}


/* ---- login: glass/clay "high-five" illustrated panel treatment. Scoped entirely
   under cc-login-* names and the .cc-login-card modifier on top of the existing
   .cc-form/.cc-input/.cc-btn-primary classes, so about/contact/signup/reset-password
   (which share those same base classes) are completely unaffected. ---- */
.cc-login-stage {
  position: relative;
  isolation: isolate;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 85% 20%, #fff7d7 0%, transparent 48%),
    radial-gradient(ellipse at 65% 90%, #e7b65f 0%, transparent 56%),
    var(--cc-butter);
  box-shadow: 0 24px 50px rgba(118, 91, 36, 0.13);
  border-radius: 62px 28px 64px 28px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 30px;
}
.cc-login-stage::after {
  content: '';
  position: absolute;
  inset: 8% 1% 6% 43%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 90% 15%, #9fb6d8 0%, transparent 60%),
    radial-gradient(ellipse at 10% 90%, #e7b65f 0%, transparent 65%);
  filter: blur(12px);
}
.cc-login-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-top: 54px;
}
.cc-login-scene-art {
  width: 100%;
  height: auto;
  border-radius: 30px;
  display: block;
}
.cc-login-bubble {
  position: absolute;
  z-index: 1;
  top: 18%;
  padding: 13px 23px;
  border-radius: 50% 50% 45% 48%;
  font: 700 23px/1.15 'DM Sans', sans-serif;
  color: #fff;
  box-shadow:
    inset 0 3px 4px rgba(255, 255, 255, 0.208),
    inset 0 -4px 6px rgba(0, 0, 0, 0.08),
    0 8px 12px rgba(120, 85, 40, 0.145);
  white-space: nowrap;
}
.cc-login-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  width: 18px;
  height: 19px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 35% 100%);
}
.cc-login-bubble--hola { left: 3%; background: #a8431b; }
.cc-login-bubble--hola::after { right: 18px; }
.cc-login-bubble--hello { right: 0; top: 12%; background: #192844; }
.cc-login-bubble--hello::after { left: 18px; }

.cc-login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.42);
  border-right-color: rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  padding: 36px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.937),
    0 22px 36px -12px rgba(112, 87, 40, 0.333),
    0 4px 12px rgba(112, 87, 40, 0.07);
  overflow: hidden;
}
.cc-login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 40%, rgba(255, 255, 255, 0.04));
  z-index: -1;
}
.cc-login-card .cc-form-legend,
.cc-login-card p:not(.cc-form-error),
.cc-login-card .cc-form-footer a {
  color: #192844;
}
.cc-login-card .cc-form-footer {
  font-size: 15px;
  line-height: 20px;
  margin-top: 19px;
}
.cc-login-card .cc-form-group {
  margin-bottom: 17px;
}
.cc-login-card .cc-form-legend {
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.12;
}
.cc-login-card p:not(.cc-form-error) {
  line-height: 1.5;
  font-size: 16px;
  margin: 0 0 26px;
}
.cc-login-card .cc-input {
  height: 50px;
  background: var(--cc-bg-light);
  border-color: #65758c;
  padding: 14px 16px;
  border-radius: 10px;
  color: #192844;
}
.cc-login-card .cc-input::placeholder {
  color: #192844;
  opacity: 1;
}
.cc-login-card .cc-btn-primary {
  position: relative;
  padding: 17px 16px;
  font-size: 1rem;
  background: linear-gradient(180deg, #3065d0 0%, #2455c7 48%, #1945af 100%);
  border: 1px solid #2c5bc4;
  box-shadow:
    inset 0 4px 5px rgba(255, 255, 255, 0.26),
    inset 0 -5px 6px rgba(16, 47, 135, 0.24),
    0 5px 0 rgb(21, 53, 138),
    0 11px 17px rgba(25, 63, 156, 0.22);
  text-shadow: 0 1px 1px rgba(20, 55, 129, 0.5);
}
.cc-login-card .cc-btn-primary:hover {
  background: linear-gradient(180deg, #2455c7 0%, #1945af 48%, #123a8f 100%);
}

/* widen the shared page wrapper only on the page that carries the login stage --
   same :has()-scoping technique already used above for body.cc-home's font-size fix.
   .cc-page's own clamp() horizontal padding would otherwise eat into the stage's
   1040px budget (992px measured instead of 1040px) -- override the padding too,
   sized so the stage still reaches its own max-width exactly, matching the approved
   target's own main{padding:64px 32px 72px} / mobile main{padding:26px 16px 34px}. */
main.cc-page:has(.cc-login-stage) {
  max-width: 1104px; /* 1040 (stage) + 32px padding each side */
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 639px) {
  main.cc-page:has(.cc-login-stage) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cc-login-stage {
    display: block;
    padding: 0 10px 14px;
    gap: 0;
    border-radius: 30px 16px 30px 16px;
  }
  .cc-login-stage::after { inset: 23% 0 0 0; }
  .cc-login-scene {
    height: 192px;
    padding-top: 30px;
    overflow: visible;
  }
  .cc-login-scene-art {
    width: auto;
    height: 160px;
    max-width: 100%;
    border-radius: 22px;
  }
  .cc-login-bubble {
    font-size: 17px;
    padding: 9px 16px;
    top: 14px;
  }
  .cc-login-bubble--hola { left: 11px; }
  .cc-login-bubble--hello { right: 8px; top: 5px; }
  .cc-login-card {
    padding: 24px 20px;
    border-radius: 24px;
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.937),
      0 15px 23px -10px rgba(112, 87, 40, 0.333);
  }
  .cc-login-card .cc-form-legend { font-size: 28px; margin-bottom: 12px; line-height: 1.12; }
  .cc-login-card p:not(.cc-form-error) { font-size: 15px; margin-bottom: 20px; }
  .cc-login-card .cc-input { height: 47px; font-size: 15px; padding: 13px 14px; border-radius: 10px; }
  .cc-login-card .cc-form-group { margin-bottom: 14px; }
  .cc-login-card .cc-btn-primary { padding: 15px 16px; }
  .cc-login-card .cc-form-footer { margin-top: 17px; }
}
