/* ===============================================================
   Chiang Mai Local - ordinary page design (2026-11-03, ported from lantalocal)

   Loaded only on content pages (cm_is_content_page() in functions.php): /about/, /contact/,
   /terms/, /privacy-policy/, /your-business/ and any new plain page. Not loaded on the
   home page, listings, archives or Directorist utility pages.

   Markup comes from template-parts/content-page.php:
     article.cm-page-article > header.cm-page-hero + div.cm-page (the_content)

   Components for page content (all opt-in by class). Class names use the cm- prefix.
     p.cm-lede              larger intro paragraph
     p.cm-page-meta         "Last updated" line, centered pill
     ul.cm-bullets          dot bullets
     ul.cm-checklist        card list with check marks (li > strong + text optional)
     div.cm-callout         warm card; add .cm-callout--dark for the dark CTA box
     a.cm-btn               button (inside a callout or on its own); .cm-btn--ghost variant
     p.cm-note              small muted aside
     div.cm-page--legal     wrapper div inside the content: ruled section heads for policies

   A featured image on the page renders as a round badge above the title (e.g. a sticker or emblem).

   Headings use Georgia via --cm-font-head: no webfont request is added (Playfair Display is
   named in the token).
   =============================================================== */

/* ---------- hero ---------- */
.cm-page-article .cm-page-hero {
  position: relative;
  text-align: center;
  padding: 72px 24px 64px;
  margin: 0 0 8px;
  background: var(--cm-paper-lt, #faf6ec);
  /* Full-bleed band from inside .theme-container without widening the page:
     paint the background out to the viewport edges, then clip it back to the band's height. */
  box-shadow: 0 0 0 100vmax var(--cm-paper-lt, #faf6ec);
  clip-path: inset(0 -100vmax);
}

.cm-page-article .cm-page-hero__eyebrow {
  margin: 0 0 14px;
  font-family: var(--cm-font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cm-saffron-dk, #964D08);
}

.cm-page-article .cm-page-hero__title {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--cm-font-head, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--cm-teak, #2C2416);
}

/* short accent rule under the title */
.cm-page-article .cm-page-hero__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 22px auto 0;
  border-radius: 3px;
  background: var(--cm-accent, #E8B84B);
}

.cm-page-article .cm-page-hero__sub {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cm-teak-lt, #5a4a36);
}

/* Featured image = a badge/emblem above the eyebrow (e.g. a sticker or emblem). Shape and shadow are
   left to the artwork itself - a die-cut sticker PNG keeps its own outline. */
.cm-page-article .cm-page-hero__badge {
  margin: 0 auto 22px;
  width: 132px;
}
.cm-page-article .cm-page-hero__badge img {
  display: block;
  width: 100%;
  height: auto;
}
/* Landscape featured image : large, centered. */
.cm-page-article .cm-page-hero__badge--wide { width: 100%; max-width: 520px; }

/* ---------- body ---------- */
.cm-page-article .cm-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  font-family: var(--cm-font-body, 'DM Sans', system-ui, sans-serif);
  color: var(--cm-teak, #2C2416);
}

.cm-page-article .cm-page > :first-child { margin-top: 0; }
.cm-page-article .cm-page > :last-child  { margin-bottom: 0; }

.cm-page-article .cm-page p,
.cm-page-article .cm-page li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--cm-teak, #2C2416);
}
.cm-page-article .cm-page p { margin: 0 0 20px; }

.cm-page-article .cm-page h2 {
  font-family: var(--cm-font-head, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cm-teak, #2C2416);
  margin: 52px 0 14px;
  padding: 0;
  border: 0;
}

/* Easy TOC injects empty <span class="ez-toc-section"> anchors into headings; they carry the
   theme's global span line-height (1.86) and stretch every wrapped heading line to ~45px. */
.cm-page-article .cm-page h2 span,
.cm-page-article .cm-page h3 span { line-height: inherit; }

.cm-page-article .cm-page h3 {
  font-family: var(--cm-font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cm-teak, #2C2416);
  margin: 32px 0 8px;
}

.cm-page-article .cm-page a:not(.cm-btn) {
  color: #964D08; /* link color: 4.5:1+ on white */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cm-page-article .cm-page a:not(.cm-btn):hover { text-decoration-thickness: 2px; }

.cm-page-article .cm-page strong { color: var(--cm-teak, #2C2416); font-weight: 700; }

/* lede */
.cm-page-article .cm-page p.cm-lede {
  font-size: 20px;
  line-height: 1.65;
  color: var(--cm-teak, #2C2416);
  margin-bottom: 24px;
}

/* "Last updated" */
.cm-page-article .cm-page p.cm-page-meta {
  display: table;
  margin: 0 auto 36px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--cm-teak-lt, #5a4a36);
  background: var(--cm-paper, #F5EFE0);
  border-radius: 999px;
}
.cm-page-article .cm-page p.cm-page-meta strong { font-weight: 600; color: inherit; }

.cm-page-article .cm-page p.cm-note {
  font-size: 15px;
  color: var(--cm-teak-lt, #5a4a36);
}

/* ---------- lists ---------- */
.cm-page-article .cm-page ul.cm-bullets {
  list-style: none !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}
.cm-page-article .cm-page ul.cm-bullets > li {
  position: relative;
  list-style: none !important;
  margin: 0 0 10px;
  padding-left: 26px !important;
}
.cm-page-article .cm-page ul.cm-bullets > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cm-saffron-dk, #964D08);
}

.cm-page-article .cm-page ul.cm-checklist {
  list-style: none !important;
  display: grid;
  gap: 12px;
  margin: 8px 0 24px !important;
  padding: 0 !important;
}
.cm-page-article .cm-page ul.cm-checklist > li {
  position: relative;
  list-style: none !important;
  margin: 0;
  padding: 18px 20px 18px 66px !important;
  background: var(--cm-paper, #F5EFE0);
  border-radius: 12px;
  line-height: 1.55;
}
.cm-page-article .cm-page ul.cm-checklist > li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--cm-saffron-dk, #964D08)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

/* ---------- callouts & buttons ---------- */
.cm-page-article .cm-page .cm-callout {
  margin: 40px 0 0;
  padding: 28px 28px;
  background: var(--cm-paper-lt, #faf6ec);
  border: 1px solid rgba(44, 36, 22, .08);
  border-radius: var(--cm-radius, 16px);
  text-align: center;
}
.cm-page-article .cm-page .cm-callout > :last-child { margin-bottom: 0; }
.cm-page-article .cm-page .cm-callout + p { margin-top: 32px; }
.cm-page-article .cm-page > .cm-callout:first-child { margin-top: 0; }
.cm-page-article .cm-page .cm-callout p { margin-bottom: 14px; }
.cm-page-article .cm-page .cm-callout__label {
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cm-teak-lt, #5a4a36) !important;
  margin: 0 0 12px !important;
}

.cm-page-article .cm-page .cm-callout--dark {
  background: var(--cm-teak, #2C2416);
  border-color: var(--cm-teak, #2C2416);
}
.cm-page-article .cm-page .cm-callout--dark p,
.cm-page-article .cm-page .cm-callout--dark .cm-callout__label { color: rgba(255,255,255,.85) !important; }
.cm-page-article .cm-page .cm-callout--dark a:not(.cm-btn) { color: #fff; }

.cm-page-article .cm-page a.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 14px 28px;
  border: 2px solid var(--cm-saffron-dk, #964D08);
  border-radius: 8px;
  background: var(--cm-saffron-dk, #964D08);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background var(--cm-ease, .22s ease), border-color var(--cm-ease, .22s ease), transform var(--cm-ease, .22s ease);
}
.cm-page-article .cm-page a.cm-btn:hover {
  background: var(--cm-teak, #2C2416);
  border-color: var(--cm-teak, #2C2416);
  color: #fff;
  transform: translateY(-2px);
}
.cm-page-article .cm-page a.cm-btn--ghost {
  background: transparent;
  color: var(--cm-teak, #2C2416);
}
.cm-page-article .cm-page a.cm-btn--ghost:hover { color: #fff; }

/* ---------- legal pages ---------- */
.cm-page-article .cm-page.cm-page--legal h2,
.cm-page-article .cm-page .cm-page--legal h2 {
  font-size: 1.375rem;
  margin: 40px 0 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(44, 36, 22, .1);
}
.cm-page-article .cm-page .cm-page--legal p,
.cm-page-article .cm-page .cm-page--legal li { font-size: 16px; }

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .cm-page-article .cm-page-hero { padding: 44px 20px 40px; }
  .cm-page-article .cm-page-hero__eyebrow { font-size: 12px; margin-bottom: 10px; }
  .cm-page-article .cm-page-hero__title::after { margin-top: 18px; }
  .cm-page-article .cm-page-hero__sub { font-size: 17px; margin-top: 16px; }
  .cm-page-article .cm-page-hero__badge { width: 104px; margin-bottom: 18px; }
  .cm-page-article .cm-page-hero__badge--wide { width: 100%; max-width: 520px; }
  .cm-page-article .cm-page { padding: 36px 20px 56px; }
  .cm-page-article .cm-page p.cm-lede { font-size: 18px; }
  .cm-page-article .cm-page h2 { margin-top: 40px; }
  .cm-page-article .cm-page ul.cm-checklist > li { padding: 16px 16px 16px 58px !important; }
  .cm-page-article .cm-page ul.cm-checklist > li::before { left: 16px; top: 16px; width: 28px; height: 28px; }
  .cm-page-article .cm-page .cm-callout { padding: 24px 20px; }
  .cm-page-article .cm-page a.cm-btn { width: 100%; }
}


/* ===============================================================
   /your-business/ landing. Moved verbatim from the <style> block that used to sit in that page's
   own post_content (2026-11-03), so the page renders as before.
   =============================================================== */
.cm-biz-landing {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  font-family: var(--cm-font-body, 'DM Sans', system-ui, sans-serif);
  color: var(--cm-teak, #2C2416);
}

.cm-biz-landing__hero {
  text-align: center;
  margin-bottom: 48px;
}

.cm-biz-landing__headline {
  font-family: var(--cm-font-head, 'Playfair Display', Georgia, serif);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cm-teak, #2C2416);
  margin: 0 0 16px;
}

.cm-biz-landing__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cm-teak-lt, #5a4a36);
  margin: 0;
}

.cm-biz-landing h2 {
  font-family: var(--cm-font-head, 'Playfair Display', Georgia, serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--cm-teak, #2C2416);
  margin: 40px 0 12px;
  line-height: 1.25;
}

.cm-biz-landing p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.cm-biz-landing__benefits {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 16px;
}

.cm-biz-landing__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.55;
  padding: 18px 20px;
  background: var(--cm-paper, #F5EFE0);
  border-radius: 10px;
}

.cm-biz-landing__benefits li .cm-ben-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--cm-saffron, #C8660A);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.cm-biz-landing__benefits li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cm-teak, #2C2416);
}

.cm-biz-landing__benefits li span {
  color: var(--cm-teak-lt, #5a4a36);
}

.cm-biz-landing__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 40px;
  text-align: center;
}

.cm-biz-landing__step {
  padding: 24px 16px;
  background: #fff;
  border: 1.5px solid rgba(45,41,38,.09);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(45,41,38,.06);
}

.cm-biz-landing__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--cm-teak, #2C2416);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.cm-biz-landing__step-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--cm-teak, #2C2416);
}

.cm-biz-landing__step-desc {
  font-size: 13px;
  color: var(--cm-teak-lt, #5a4a36);
  line-height: 1.5;
  margin: 0;
}

.cm-biz-landing__cta-box {
  text-align: center;
  padding: 40px 24px;
  background: var(--cm-teak, #2C2416);
  border-radius: 16px;
  margin-top: 40px;
}

.cm-biz-landing__cta-box p {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  margin: 0 0 24px;
}

.cm-biz-landing__cta-box h2 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 8px;
}

.cm-biz-landing__cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cm-biz-landing__cta-buttons a {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--cm-font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s ease, transform 0.22s ease;
}

.cm-biz-landing__cta-buttons a.cm-btn-find {
  background: #fff;
  color: var(--cm-teak, #2C2416);
  border: 2px solid #fff;
}

.cm-biz-landing__cta-buttons a.cm-btn-find:hover {
  background: rgba(255,255,255,.88);
  transform: translateY(-2px);
}

.cm-biz-landing__cta-buttons a.cm-btn-add {
  background: var(--cm-saffron, #C8660A);
  color: #fff;
  border: 2px solid var(--cm-saffron, #C8660A);
}

.cm-biz-landing__cta-buttons a.cm-btn-add:hover {
  background: var(--cm-accent-dk, #c99a37);
  border-color: var(--cm-accent-dk, #c99a37);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cm-biz-landing__steps {
    grid-template-columns: 1fr;
  }
  .cm-biz-landing__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cm-biz-landing__cta-buttons a {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------
   CTA box cascade fix - 2026-08-10
   The child theme styles ALL page content generically:
     .page-template-default .hentry h2                     (0,2,1)
     .page-template-default .hentry p                      (0,2,1)
     .page-template-default .hentry a:not(...):not(...)     (0,4,1)
   Every one of those outranks this component's own selectors
   (0,1,1)/(0,2,1), so they were repainting the dark CTA box:
   gold heading, a cream border-bottom under it, near-black body
   text on navy, and gold underlined button labels.
   Re-declared below inside .page-template-default .hentry so the
   overrides win on specificity alone - no !important needed.
   The :hover variants exist because the theme's
   ...a:not(...):hover rule is (0,5,1) and would otherwise
   recolour the button labels on hover.
   --------------------------------------------------------------- */
.page-template-default .hentry .cm-biz-landing .cm-biz-landing__cta-box h2 {
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
  margin: 0 0 8px;
}

.page-template-default .hentry .cm-biz-landing .cm-biz-landing__cta-box p {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  margin: 0 0 24px;
}

.page-template-default .hentry .cm-biz-landing .cm-biz-landing__cta-box a.cm-btn-add {
  background: var(--cm-saffron, #C8660A);
  color: #fff;
  border-color: var(--cm-saffron, #C8660A);
  text-decoration: none;
}

.page-template-default .hentry .cm-biz-landing .cm-biz-landing__cta-box a.cm-btn-add:hover {
  /* A darkened saffron. The page's own rule reached for --cm-accent-dk (#c99a37),
     a light gold off the accent ramp, which puts white label text at ~2.2:1 on
     hover. Nobody ever saw it because the button was broken anyway. */
  background: #A65508;
  border-color: #A65508;
  color: #fff;
  text-decoration: none;
}

.page-template-default .hentry .cm-biz-landing .cm-biz-landing__cta-box a.cm-btn-find {
  background: #fff;
  color: var(--cm-teak, #2C2416);
  border-color: #fff;
  text-decoration: none;
}

.page-template-default .hentry .cm-biz-landing .cm-biz-landing__cta-box a.cm-btn-find:hover {
  background: rgba(255,255,255,.88);
  color: var(--cm-teak, #2C2416);
  text-decoration: none;
}
