/* ============================================================================
   Coppell — Village Collective — editable-page custom styles (V2)

   Coppell authored custom CSS via <style> tags inside their editable-page
   content under V1. V2's AdminSafeInlineScrubber strips <style>, so that CSS is
   migrated here — but only the parts that are SAFE, i.e. that style content
   INSIDE div.editable_page. Every rule is scoped under .editable_page so it can
   never modify V2 chrome (nav, banner, layout) or other villages.

   Loaded only for coppell, only on the pages that render editable content:
     - villages#index        (homepage)
     - editable_pages#show2   (interior pages)
   via a conditional stylesheet_link_tag "villages/coppell" in those views.

   Per-template migration notes + keep/drop ledger:
     docs/editable_page_custom_styling_v1_to_v2/coppell/

   STRUCTURE
     1. Page: public homepage (villages#index)
   ============================================================================ */


/* ────────────────────────────────────────────────────────────────────────
   1. PAGE: public homepage (villages#index)
   docs: docs/editable_page_custom_styling_v1_to_v2/coppell/public_homepage/
   ──────────────────────────────────────────────────────────────────────── */

/* Re-authored from `body { font-family: 'Open Sans', sans-serif }`. Body
   background-color was dropped (whole-page, not content). NOTE: 'Open Sans' is
   not loaded by V2 (Nunito ships instead); falls back to sans-serif unless the
   font is added. */

.editable_page {
  font-family: 'Open Sans', sans-serif;
}

/* Content headings + paragraph/list sizing (bare element selectors re-scoped). */
.editable_page h1 {
  font-size: 42px !important;
  font-weight: bold !important;
  margin-bottom: .5em !important;
}
.editable_page h2 {
  font-size: 33px !important;
  margin-bottom: .5em !important;
  margin-top: .5em !important;
  font-weight: bold !important;
  text-align: left;
}
.editable_page h3 {
  font-size: 27px !important;
  font-weight: bold !important;
  text-align: left;
}
.editable_page h4 {
  font-size: 21.33px !important;
  font-weight: bold !important;
  text-align: left;
}
.editable_page p {
  font-size: 21.33px !important;
}
.editable_page li.me {
  font-size: 21.33px;
  margin-bottom: 0.5em;
}

/* Top spacing for major content blocks. */
.editable_page h1,
.editable_page h2,
.editable_page .bluebg,
.editable_page .hv_flex_container {
  margin-top: 4rem;
}

/* Call-to-action button. */
.editable_page a.button {
  background-color: #145679 !important;
  color: #fff !important;
  transition: background-color 0.3s ease !important;
  text-transform: none !important;
  border-radius: 12px !important;
  padding: 8px 24px !important;
  font-weight: normal !important;
}
.editable_page a.button:hover {
  background-color: #679da9 !important;
}

/* Light-blue content panel. */
.editable_page .bluebg {
  background: #deeff5;
  padding: 20px 20px 64px 20px;
  border-radius: 12px;
}

/* Content utility (not used in this template's HTML; kept for parity). */
.editable_page .button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

/* Multi-column content layout. */
.editable_page .hv_flex_container {
  display: flex;
  flex: 1 !important;
  flex-wrap: wrap;
  gap: 1rem;
}
.editable_page .left_col,
.editable_page .middle_col,
.editable_page .right_col {
  flex: 1 !important;
  min-width: 250px;
}

/* ── FAQ section ──────────────────────────────────────────────────────────
   Uses native <details>/<summary>. Those tags are allowed by the V2 scrubber
   (added to AdminSafeInlineScrubber's tags list), so the accordion renders and
   these rules bind. */
.editable_page .faq-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.editable_page .faq-section h2 {
  font-size: 48px;
  margin-bottom: 40px;
  color: #000000 !important;
}
.editable_page .faq-accordion {
  text-align: left;
}
.editable_page .faq-accordion details {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  background-color: #fafafa;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.editable_page .faq-accordion details[open] {
  background-color: #f0f8fb;
}
.editable_page .faq-accordion summary {
  font-size: 20px;
  font-weight: bold;
  color: #000000 !important;
  cursor: pointer;
  list-style: none;
}
.editable_page .faq-accordion summary::-webkit-details-marker {
  display: none; /* Hides the default arrow */
}
/* 16px here is intentionally overridden by `.editable_page p { …!important }`
   above — same conflict as the V1 CSS; preserved, not "fixed". */
.editable_page .faq-accordion p {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

/* Mobile normalization. Re-authored from `body *:not(nav *)`: nav is outside
   .editable_page in V2, so `.editable_page *` keeps the same content intent. */
@media (max-width: 768px) {
  .editable_page * {
    color: #000 !important;
    font-family: inherit !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    text-transform: inherit !important;
  }
  .editable_page h1 {
    margin-top: 0;
  }
}


/* ────────────────────────────────────────────────────────────────────────
   2. PAGE: village hub (editable_pages#show2)
   docs: docs/editable_page_custom_styling_v1_to_v2/coppell/village_hub/
   Only the new .card* component lives here; the rest of this page's <style>
   repeats the shared content styles in section 1.
   NOTE: this page's V1 h2 had no margin-top (got 4rem from the grouped rule),
   while the canonical h2 in section 1 sets margin-top:.5em. Canonical wins, so
   village_hub section headings sit tighter than in V1 — see the docs ledger.
   ──────────────────────────────────────────────────────────────────────── */

/* Quicklink cards. */
.editable_page .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.editable_page .card {
  width: 200px;
  padding: 20px;
  background: #004DA0;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.editable_page .card img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}
/* .card a binds to a nested anchor; the cards themselves are <a class="card">
   with no inner <a>, so this matches nothing here. Kept for fidelity. */
.editable_page .card a {
  display: inline-block;
  margin-top: 10px;
}
.editable_page .card h4 {
  text-align: center;
  color: #fff !important;
}
