/*
Theme Name: Powerhouse Chiropractic - Light Refresh
Theme URI: https://thepowerhousevancouver.com/
Author: Powerhouse Chiropractic
Description: Light visual refresh (child theme) for The Powerhouse Chiropractic parent theme v1. Inter body type, deepened sage primary, flat buttons, shorter left-aligned hero, card sections, one-open FAQ accordion. The parent theme is not modified.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: thepowerhousechiropractic
Text Domain: powerhouse-child
*/

/* ========== 1. Palette ========== */
:root{
  --ph-ink:#1F2A2E;
  --ph-offwhite:#FAF8F5;
  --ph-sage:#5E8C6E;
  --ph-sage-dark:#4A7260;
  --ph-sage-brand:#6f9d7b;
  --ph-terra:#C96F4A;
  --ph-line:rgba(31,42,46,.12);
}

/* ========== 2. Type: Inter body, Brandon Bold headings, one italic serif ========== */
body, button, input, select, textarea{
  font-family:'Inter', Arial, Helvetica, sans-serif;
  font-size:17px;
  line-height:1.65;
  color:var(--ph-ink);
}
h1, h2, h3, h4, h5, h6{
  font-family:'brandon-bold', 'Inter', Arial, sans-serif;
  color:var(--ph-ink);
  letter-spacing:.01em;
}
h2{ font-size:40px; line-height:1.15; }
h3{ font-size:24px; line-height:1.3; }
p{ margin:0 0 16px; }

/* ========== 3. Links and removing orange / amber ========== */
a{ color:var(--ph-sage); }
a:hover, a:focus{ color:var(--ph-sage-dark); }
a[style*="#f1682f"], a[style*="#F1682F"],
button[style*="#f1682f"], button[style*="#F1682F"]{
  background-color:var(--ph-sage) !important;
  border-color:var(--ph-sage) !important;
  color:#fff !important;
}
a[style*="#FCB533"], a[style*="#fcb533"],
button[style*="#FCB533"], button[style*="#fcb533"]{
  background-color:var(--ph-sage) !important;
  border-color:var(--ph-sage) !important;
  color:#fff !important;
}
svg [fill="#f1682f"], svg [fill="#F1682F"],
svg [fill="#FCB533"], svg [fill="#fcb533"]{ fill:var(--ph-sage); }

/* ========== 4. Buttons: ONE flat sage style everywhere ========== */
.fasc-button, a.btn, button.btn, .btn,
input[type="submit"], button[type="submit"],
.book-now .rw-button{
  background:var(--ph-sage) !important;
  background-image:none !important;
  color:#fff !important;
  border:0 !important;
  border-radius:12px !important;
  font-family:'Inter', Arial, sans-serif !important;
  font-weight:600 !important;
  font-size:17px !important;
  line-height:1.25 !important;
  padding:14px 28px !important;
  box-shadow:none !important;
  text-shadow:none !important;
  text-transform:none !important;
  letter-spacing:0 !important;
}
.fasc-button:hover, a.btn:hover, button.btn:hover, .btn:hover,
input[type="submit"]:hover, button[type="submit"]:hover,
.book-now .rw-button:hover{
  background:var(--ph-sage-dark) !important;
  color:#fff !important;
}
.fasc-type-glossy::before, .fasc-type-glossy::after{ display:none !important; }
.book-now .rw-button{ border-right:0 !important; }
.book-now .rw-button .btn-text-2{ margin-left:10px; font-weight:600; }

/* ========== 5. Layout rhythm: 96px / 64px sections, 1120px content width ========== */
.container{ max-width:1120px; }
.home #next-content > section{ padding:96px 0; }
.home #next-content > section.full-image{ padding:0; }
.home .questions, .home .reviews, .home .book-now{ background:var(--ph-offwhite); }
.home h2::after{
  content:""; display:block; width:48px; height:3px;
  background:var(--ph-terra); margin-top:14px;
}
.home .first-screen h2::after, .home .book-now h2::after{ display:none; }

/* ========== 6. Hero: about 70vh, left aligned, lighter overlay ========== */
.home .first-screen{ height:70vh; min-height:560px; }
.first-screen::before, .first-screen::after{
  background:linear-gradient(90deg, rgba(31,42,46,.55) 0%, rgba(31,42,46,.28) 55%, rgba(31,42,46,.08) 100%) !important;
}
.first-screen-content{ align-items:flex-start !important; text-align:left; }
.first-screen-content > img{ display:none !important; }
.first-screen-content .container{ max-width:1120px; width:100%; }
.ph-hero-title{
  font-family:'brandon-bold', 'Inter', Arial, sans-serif;
  font-size:clamp(42px, 5.5vw, 68px);
  line-height:1.02; color:#fff; margin:0 0 14px;
}
.ph-hero-tagline{
  font-family:Georgia, 'Times New Roman', serif;
  font-style:italic; font-weight:400;
  font-size:clamp(20px, 2.4vw, 28px); line-height:1.4;
  color:#fff; margin:0 0 28px; max-width:640px;
}
.first-screen h2{
  font-family:Georgia, 'Times New Roman', serif;
  font-style:italic; font-weight:400;
  font-size:clamp(20px, 2.4vw, 28px); line-height:1.4; color:#fff;
}
.first-screen .custom-button{ margin:0 0 18px; }
.first-screen .custom-button .fasc-button{ font-size:18px !important; padding:16px 32px !important; }
.first-screen .fasc-button{
  background:none !important; background-image:none !important;
  border:0 !important; box-shadow:none !important; border-radius:0 !important;
  color:#fff !important; text-decoration:underline !important;
  text-underline-offset:4px; text-decoration-color:rgba(255,255,255,.6) !important;
  font-size:16px !important; font-weight:500 !important; padding:0 !important;
}
.first-screen .custom-button .fasc-button{
  background:var(--ph-sage) !important; background-image:none !important;
  border:0 !important; border-radius:12px !important; box-shadow:none !important;
  color:#fff !important; text-decoration:none !important;
  font-size:18px !important; font-weight:600 !important; padding:16px 32px !important;
}
.ph-hero-links{ display:flex; flex-wrap:wrap; gap:8px 22px; }
.ph-hero-links a{
  color:#fff !important; font-weight:500; font-size:16px;
  text-decoration:underline; text-underline-offset:4px;
  text-decoration-color:rgba(255,255,255,.6);
}
.ph-hero-links a:hover{ text-decoration-color:#fff; color:#fff !important; }

/* ========== 7. Sticky header: fix the broken icon buttons ========== */
#header{ box-shadow:0 1px 12px rgba(31,42,46,.08); }
.header-nav .nav-opener{
  position:relative; width:44px; height:44px; border-radius:12px;
  background:var(--ph-sage) !important; border:0 !important;
}
.header-nav .nav-opener .icon-nav-opener, .header-nav .nav-opener i{ font-size:0 !important; }
.header-nav .nav-opener::before{
  content:""; position:absolute; left:11px; right:11px; top:50%; height:2px;
  background:#fff; transform:translateY(-1px);
  box-shadow:0 -7px 0 #fff, 0 7px 0 #fff;
}
.icon-nav-opener::before{ content:"" !important; }
.header .rw-scheduler-form-wrap button.rw-sched-button{
  width:44px !important; height:44px !important; min-width:44px !important;
  padding:0 !important; border-radius:12px !important;
  background:var(--ph-sage) !important; background-image:none !important;
  border:0 !important; color:#fff !important; font-size:0 !important;
  line-height:1 !important; box-shadow:none !important; position:relative;
}
.header .rw-scheduler-form-wrap button.rw-sched-button::before,
.header .rw-scheduler-form-wrap button.rw-sched-button::after{
  content:""; position:absolute; background:#fff; left:50%; top:50%;
}
.header .rw-scheduler-form-wrap button.rw-sched-button::before{
  width:20px; height:2px; transform:translate(-50%, -50%);
}
.header .rw-scheduler-form-wrap button.rw-sched-button::after{
  width:2px; height:20px; transform:translate(-50%, -50%);
}

/* ========== 8. Info blocks: bullet lists and feature paragraphs become cards ========== */
.home .info-block .title-column h3 a{ color:var(--ph-ink); }
.home .info-block .title-column h3 a:hover{ color:var(--ph-sage); }
.home .info-block .text-column ul.text-list ul{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px; list-style:none; margin:0 0 8px; padding:0;
}
.home .info-block .text-column ul.text-list ul > li{
  background:#fff; border:1px solid var(--ph-line); border-radius:12px;
  padding:16px 18px; font-weight:500; line-height:1.5;
  box-shadow:0 1px 3px rgba(31,42,46,.06); margin:0;
}
.home .info-block .text-column ul.text-list ul > li::before{
  content:""; display:inline-block; width:8px; height:8px;
  border-radius:50%; background:var(--ph-sage); margin-right:10px;
}
/* Feature cards: class added by refresh.js to blocks whose paragraphs all
   start with a bold lead ("What Makes Us Different"). */
.home .info-block .text-column ul.text-list > li.ph-feature-cards{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px;
}
.home .info-block .text-column ul.text-list > li.ph-feature-cards > h3{
  grid-column:1 / -1;
}
.home .info-block .text-column ul.text-list > li.ph-feature-cards > p{
  background:#fff; border:1px solid var(--ph-line);
  border-top:3px solid var(--ph-sage); border-radius:12px;
  padding:18px 20px; margin:0; box-shadow:0 1px 3px rgba(31,42,46,.06);
}
.home .info-block .text-column ul.text-list > li.ph-feature-cards > p > :is(strong, b),
.home .info-block .text-column ul.text-list > li.ph-feature-cards > p a > :is(strong, b){
  display:block; font-size:18px; line-height:1.35; margin-bottom:6px;
}

/* ========== 9. FAQ accordion ========== */
.questions .accordion > li{
  background:#fff; border:1px solid var(--ph-line); border-radius:12px;
  margin-bottom:12px; overflow:hidden;
}
.questions .accordion .opener{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 22px; font-family:'Inter', Arial, sans-serif;
  font-weight:600; font-size:18px; line-height:1.4; color:var(--ph-ink);
}
.questions .accordion .opener::after{
  content:"+"; font-family:'Inter', Arial, sans-serif;
  font-size:26px; font-weight:400; line-height:1;
  color:var(--ph-sage); flex:0 0 auto;
}
.questions .accordion > li.active .opener::after{
  content:"\2212"; color:var(--ph-terra);
}
.questions .accordion .slide{ padding:0 22px 20px; }
.questions .accordion .slide p{ margin:0 0 10px; }

/* ========== 10. Reviews: white cards, rating summary, tidy pager ========== */
.reviews .wprev-review, .reviews .wprevpro-review{
  background:#fff; border:1px solid var(--ph-line);
  border-radius:12px; padding:22px;
}
.reviews .wprev-header, .reviews .wprevpro-header{ text-align:center; }
.reviews .wprev-slider .wprev-pagination a,
.reviews .wprev-pagination a{
  background:#fff; border:1px solid var(--ph-line);
  color:var(--ph-ink); border-radius:8px;
}
.reviews .wprev-slider .wprev-pagination a.wprev-current,
.reviews .wprev-pagination a.wprev-current{
  background:var(--ph-sage); border-color:var(--ph-sage); color:#fff;
}

/* ========== 11. Awards: smaller, one line ========== */
.best-chiropractor{ padding-top:48px !important; padding-bottom:48px !important; }
.best-chiropractor ul.img-holder{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:28px; list-style:none; margin:0; padding:0;
}
.best-chiropractor ul.img-holder li.img-item{ margin:0; }
.best-chiropractor ul.img-holder li.img-item img{
  max-height:76px; width:auto; max-width:220px; height:auto;
}

/* ========== 12. Team and footer touches ========== */
.home .who-we-are img{ border-radius:12px; }
.footer a{ color:#fff; }
.footer a:hover{ color:var(--ph-sage-brand); }

/* ========== 13. Mobile ========== */
@media (min-width:768px) and (max-width:1023px){
  .home .info-block .text-column ul.text-list ul{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width:767px){
  h2{ font-size:32px; }
  h3{ font-size:22px; }
  .home #next-content > section{ padding:64px 0; }
  .home .first-screen{ min-height:70vh; height:70vh; }
  .ph-hero-title{ font-size:40px; }
  .home .info-block .text-column ul.text-list ul{
    grid-template-columns:1fr;
  }
  .home .info-block .text-column ul.text-list > li.ph-feature-cards{
    grid-template-columns:1fr;
  }
  .best-chiropractor ul.img-holder{ gap:18px; }
  .best-chiropractor ul.img-holder li.img-item img{ max-height:60px; }
}

/* ========== 7b. Header icon buttons — corrected selectors (appended fix) ========== */
/* The hamburger is ONE element carrying BOTH classes (.header-nav.nav-opener);
   the earlier rule used a descendant selector (.header-nav .nav-opener) and never matched. */
.header .header-nav.nav-opener,
.header-nav.nav-opener,
.nav-opener{
position:relative !important; width:44px !important; height:44px !important; min-width:44px !important;
border-radius:12px !important;
background:var(--ph-sage) !important; background-image:none !important;
border:0 !important; box-shadow:none !important;
font-size:0 !important; line-height:1 !important; color:transparent !important;
padding:0 !important; text-indent:0 !important;
display:inline-flex !important; align-items:center !important; justify-content:center !important;
}
.header .header-nav.nav-opener:hover,
.header-nav.nav-opener:hover,
.nav-opener:hover{ background:var(--ph-sage-dark) !important; }
.header .header-nav.nav-opener::before,
.header-nav.nav-opener::before,
.nav-opener::before{
content:"" !important; position:absolute !important; left:11px !important; right:11px !important; top:50% !important; height:2px !important;
background:#fff !important; transform:translateY(-1px) !important;
box-shadow:0 -7px 0 #fff, 0 7px 0 #fff !important;
}
.header .header-nav.nav-opener .icon-nav-opener,
.header .header-nav.nav-opener i,
.header .header-nav.nav-opener span,
.nav-opener .icon-nav-opener, .nav-opener i, .nav-opener span{ font-size:0 !important; }
.icon-nav-opener::before{ content:"" !important; }
/* Booking (RW scheduler) button: same sage square with a white plus, at any width,
   whether or not the wrap carries .rw-expanded, and wherever it sits in the header. */
.header .rw-scheduler-form-wrap button.rw-sched-button,
.rw-scheduler-form-wrap button.rw-sched-button,
button.rw-sched-button{
width:44px !important; height:44px !important; min-width:44px !important;
padding:0 !important; border-radius:12px !important;
background:var(--ph-sage) !important; background-image:none !important;
border:0 !important; color:#fff !important; font-size:0 !important;
line-height:1 !important; box-shadow:none !important; position:relative !important;
display:inline-flex !important; align-items:center !important; justify-content:center !important;
}
.header .rw-scheduler-form-wrap button.rw-sched-button *,
.rw-scheduler-form-wrap button.rw-sched-button *,
button.rw-sched-button *{ font-size:0 !important; }
.header .rw-scheduler-form-wrap button.rw-sched-button::before,
.rw-scheduler-form-wrap button.rw-sched-button::before,
button.rw-sched-button::before{
content:"" !important; position:absolute !important; background:#fff !important; left:50% !important; top:50% !important;
width:20px !important; height:2px !important; transform:translate(-50%, -50%) !important;
}
.header .rw-scheduler-form-wrap button.rw-sched-button::after,
.rw-scheduler-form-wrap button.rw-sched-button::after,
button.rw-sched-button::after{
content:"" !important; position:absolute !important; background:#fff !important; left:50% !important; top:50% !important;
width:2px !important; height:20px !important; transform:translate(-50%, -50%) !important;
}
/* Phone icon in the sticky header: ink, not white-on-white. */
.header a[href^="tel:"]{ color:var(--ph-ink) !important; }
.header a[href^="tel:"] svg, .header a[href^="tel:"] svg *{ fill:var(--ph-ink) !important; }

/* ========== 7c. Header phone link: show the number next to the phone glyph ========== */
/* On the home header the phone link is an icon only; the minimal phone outline reads as an
   empty rectangle. Show the clinic's published number beside it (home header only). */
body.home .header a[href^="tel:"]{
display:inline-flex !important; align-items:center !important; gap:8px !important;
color:var(--ph-ink) !important; font-family:'Inter', Arial, Helvetica, sans-serif !important;
font-size:16px !important; font-weight:600 !important; line-height:1.25 !important;
text-decoration:none !important; white-space:nowrap !important;
}
body.home .header a[href^="tel:"]::after{ content:"(604) 662-3304"; }
@media (max-width:767px){
body.home .header a[href^="tel:"]::after{ content:""; }
}

/* ========== 7d. Header phone link: let the number breathe ========== */
/* The theme styles the phone link as a small fixed-width outlined icon button
   (overflow hidden), which clips the number added in 7c. Unconstrain it. */
body.home .header a[href^="tel:"]{
width:auto !important; max-width:none !important; min-width:0 !important;
overflow:visible !important; flex:none !important; flex-shrink:0 !important;
border:0 !important; background:none !important; background-image:none !important;
box-shadow:none !important; padding:0 !important; margin-right:20px !important;
}
body.home .header a[href^="tel:"] svg{ position:static !important; flex:none !important; }
body.home .header .header-right{
width:auto !important; max-width:none !important; overflow:visible !important;
}

/* ========== 7e. Header right cluster: lay phone + button out as a row ========== */
/* The theme positions parts of the header-right cluster, so the wider phone link
   (7c/7d) slides underneath the Book Appointment button. Make the cluster a normal
   flex row instead. */
body.home .header .header-right{
display:flex !important; align-items:center !important; justify-content:flex-end !important;
gap:0 !important;
width:auto !important; max-width:none !important; overflow:visible !important;
position:static !important;
}
body.home .header .header-right > *{
position:static !important; transform:none !important; float:none !important;
}
body.home .header .header-right .custom-button{
flex:none !important; margin:0 !important;
}

/* ========== 7f. Header phone link: a proper sage icon button, no number ========== */
/* Showing the number next to the icon fought the theme's header layout (the Book
   button is anchored and the wider link slid underneath it). Instead, make the
   phone link itself a clear sage-outlined icon button: the glyph can no longer
   read as an empty rectangle. This supersedes 7c/7d for the number text. */
body.home .header a[href^="tel:"]::after{ content:"" !important; }
body.home .header a[href^="tel:"]{
width:44px !important; height:44px !important; min-width:44px !important;
padding:0 !important; margin-right:12px !important;
border:1.5px solid var(--ph-sage) !important; border-radius:12px !important;
background:transparent !important; background-image:none !important;
overflow:hidden !important;
}
body.home .header a[href^="tel:"] svg{
position:static !important; flex:none !important;
height:24px !important; width:auto !important;
}
body.home .header a[href^="tel:"] svg,
body.home .header a[href^="tel:"] svg *{
fill:var(--ph-sage) !important; stroke:var(--ph-sage) !important;
}
body.home .header a[href^="tel:"]:hover{ background:var(--ph-sage) !important; }
body.home .header a[href^="tel:"]:hover svg,
body.home .header a[href^="tel:"]:hover svg *{
fill:#fff !important; stroke:#fff !important;
}

/* ========== 7g. Center the phone glyph in its button ========== */
/* The theme sizes/positions the inline SVG with a stronger rule, so the glyph sat
   at the left edge of the button. Center it with the header ID for specificity. */
body.home #header a[href^="tel:"]{
text-align:center !important; line-height:44px !important;
}
body.home #header a[href^="tel:"] svg{
display:inline-block !important; vertical-align:middle !important;
height:24px !important; width:auto !important; max-height:24px !important;
margin:0 auto !important;
}

/* ========== 7h. Phone glyph: cancel any float so it can center ========== */
/* The glyph still hugged the left edge: the theme floats the inline SVG, which
   ignores text-align and flex centering. Cancel the float and center it. */
body.home #header a[href^="tel:"] svg{
float:none !important;
display:block !important;
margin-left:auto !important; margin-right:auto !important;
}

/* ========== 7i. Phone glyph: draw a centered outline, hide the theme glyph ========== */
/* The theme's phone glyph sits off-center inside its own viewBox, so centering the
   element never moves the drawn glyph. Hide the theme glyph and draw a clean,
   centered phone outline with ::before instead. */
body.home #header a[href^="tel:"]{ position:relative !important; }
body.home #header a[href^="tel:"] > *{ display:none !important; }
body.home #header a[href^="tel:"]::before{
content:"" !important; position:absolute !important; left:50% !important; top:50% !important;
width:12px !important; height:22px !important;
border:2px solid var(--ph-sage) !important; border-radius:3px !important;
transform:translate(-50%,-50%) !important;
}
body.home #header a[href^="tel:"]:hover::before{ border-color:#fff !important; }

/* ========== 14. Services page hero: buttons clear of the busy photo ========== */
/* The Services page (page-id-178079) uses the Home Template, so its banner
   heading and links sit in the shared .first-screen hero. The theme-wide
   hero rule (section 6) flattens those links to plain underlined white text,
   and the row is right-aligned with a run of non-breaking spaces as spacing,
   so it sits low over the busiest part of the photo. Scope the fix to this
   page only: lift the block to the top of the hero, centre it, and turn the
   links back into solid brand-sage pills. Other pages are untouched. */
body.page-id-178079 .first-screen .first-screen-content{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  align-items:center !important;
  text-align:center;
  padding:clamp(64px, 10vh, 120px) 24px 40px !important;
}
body.page-id-178079 .first-screen .first-screen-content .container{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding-top:0;
  text-align:center;
}
body.page-id-178079 .first-screen .first-screen-content .container p{
  margin-bottom:0;
}
/* Banner heading: keep it centred, with a soft shadow over the photo. */
body.page-id-178079 .first-screen .first-screen-content .container p:first-child{
  margin-bottom:22px;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
}
/* Button row: one centred, evenly spaced, wrapping row. The paragraph's
   non-breaking spaces become zero-width flex items, so spacing comes from
   the buttons' own margins instead. */
body.page-id-178079 .first-screen .first-screen-content .container p + p{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  font-size:0;
  text-align:center;
}
/* Real buttons again: brand sage #6f9d7b (var(--ph-sage-brand)), white text,
   pill shape. !important beats the inline black backgrounds, the global
   sage button rule (section 4) and the plain-text hero rule (section 6). */
body.page-id-178079 .first-screen .first-screen-content .fasc-button{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  background:var(--ph-sage-brand) !important;
  background-color:var(--ph-sage-brand) !important;
  background-image:none !important;
  color:#fff !important;
  border:0 !important;
  border-radius:999px !important;
  box-shadow:0 4px 18px rgba(0,0,0,.35) !important;
  text-shadow:none !important;
  text-decoration:none !important;
  font-style:normal !important;
  font-size:20px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  padding:13px 30px !important;
  margin:7px 8px;
  white-space:nowrap;
}
body.page-id-178079 .first-screen .first-screen-content .fasc-button.fasc-size-large{
  font-size:22px !important;
  padding:15px 38px !important;
}
body.page-id-178079 .first-screen .first-screen-content .fasc-button:hover,
body.page-id-178079 .first-screen .first-screen-content .fasc-button:focus-visible{
  background:var(--ph-sage-dark) !important;
  background-color:var(--ph-sage-dark) !important;
  color:#fff !important;
  text-decoration:none !important;
  box-shadow:0 6px 22px rgba(0,0,0,.4) !important;
}
@media (max-width:767px){
  body.page-id-178079 .first-screen .first-screen-content{
    padding:56px 16px 32px !important;
  }
  body.page-id-178079 .first-screen .first-screen-content .container p:first-child{
    margin-bottom:16px;
  }
  body.page-id-178079 .first-screen .first-screen-content .fasc-button{
    font-size:17px !important;
    padding:11px 22px !important;
    margin:5px 6px;
  }
  body.page-id-178079 .first-screen .first-screen-content .fasc-button.fasc-size-large{
    font-size:18px !important;
    padding:12px 28px !important;
  }
}

/* ========== 10b. Reviews grid: 4 across on desktop ========== */
/* WP Review Pro Template 1 ("Home", Grid, 4 per row) renders each review in .wprevpro_t1_DIV_1 inside .wprevpro_t1_outer_div, but the plugin's W3 float columns do not lay them out side by side in this theme, so lay the grid out explicitly with flexbox. */
.reviews .wprevpro_t1_outer_div{
 display:flex !important;
 flex-wrap:wrap !important;
}
.reviews .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1{
 flex:0 0 25% !important;
 max-width:25% !important;
 width:25% !important;
 min-width:0 !important;
 float:none !important;
 box-sizing:border-box;
}
.reviews .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1 > .outerrevdiv,
.reviews .wprevpro_t1_outer_div .indrevdiv{
 height:100%;
}
@media (min-width:768px) and (max-width:1023px){
 .reviews .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1{
  flex-basis:50% !important;
  max-width:50% !important;
  width:50% !important;
 }
}
@media (max-width:767px){
 .reviews .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1{
  flex-basis:100% !important;
  max-width:100% !important;
  width:100% !important;
 }
}

/* ========== 10c. Reviews grid: unscoped fallback ========== */
/* Same grid as 10b, without the .reviews ancestor, in case the
   shortcode output is not a descendant of the .reviews section. */
.wprevpro_t1_outer_div{
 display:flex !important;
 flex-wrap:wrap !important;
}
.wprevpro_t1_outer_div > .wprevpro_t1_DIV_1{
 flex:0 0 25% !important;
 max-width:25% !important;
 width:25% !important;
 min-width:0 !important;
 float:none !important;
 box-sizing:border-box;
}
.wprevpro_t1_outer_div > .wprevpro_t1_DIV_1.outerrevdiv > .indrevdiv{
 height:100%;
}
@media (min-width:768px) and (max-width:1023px){
 .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1{
  flex-basis:50% !important;
  max-width:50% !important;
  width:50% !important;
 }
}
@media (max-width:767px){
 .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1{
  flex-basis:100% !important;
  max-width:100% !important;
  width:100% !important;
 }
}

/* ========== 10d. Reviews grid: revised breakpoints ========== */
/* This browser's desktop viewport is about 970-1024px wide, so the
   1023px tablet breakpoint in 10b/10c was catching it and giving 2
   across. Cards still fit comfortably 4 across from 900px up, so
   make 900px the 4-across threshold: 2 across at 600-899px, 1 below. */
@media (min-width:900px){
 .reviews .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1,
 .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1{
  flex-basis:25% !important;
  max-width:25% !important;
  width:25% !important;
 }
}
@media (min-width:600px) and (max-width:899px){
 .reviews .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1,
 .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1{
  flex-basis:50% !important;
  max-width:50% !important;
  width:50% !important;
 }
}
@media (max-width:599px){
 .reviews .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1,
 .wprevpro_t1_outer_div > .wprevpro_t1_DIV_1{
  flex-basis:100% !important;
  max-width:100% !important;
  width:100% !important;
 }
}

/* ========== 12b. Team section: 2 rows of 3 on desktop ========== */
/* The "Who we are" team list is ordered chiropractors first (ACF Team
   field on the Home page), so with 3 across the top row is the three
   chiropractors and the second row is the other three team members.
   The parent theme only goes 3-across at 1024px+, which left this
   browser (~970-1024px) and smaller laptops at 2 across; make 900px
   the 3-across threshold (same approach as the Reviews grid in 10d).
   2 across at 600-899px, 1 across below 600px so nothing clips. */
@media (min-width:900px){
.home .who-we-are .team-blocks{
display:flex !important;
flex-wrap:wrap !important;
}
.home .who-we-are .team-blocks .team-block,
.home .who-we-are .team-blocks .team-block.big{
flex:0 0 33.333% !important;
max-width:33.333% !important;
width:33.333% !important;
}
}
@media (min-width:600px) and (max-width:899px){
.home .who-we-are .team-blocks{
display:flex !important;
flex-wrap:wrap !important;
}
.home .who-we-are .team-blocks .team-block,
.home .who-we-are .team-blocks .team-block.big{
flex:0 0 50% !important;
max-width:50% !important;
width:50% !important;
}
}
@media (max-width:599px){
.home .who-we-are .team-blocks .team-block,
.home .who-we-are .team-blocks .team-block.big{
flex:0 0 100% !important;
max-width:100% !important;
width:100% !important;
}
}


/* ========== 15. Section headline accent lines: brand sage ========== */
/* The short line under homepage section headlines (e.g. "Meet the team",
   "Your Questions Answered") was terracotta; recolor it to the clinic's
   brand sage #6f9d7b. Hero and Book Now headings keep no line. */
.home h2::after{
  background:#6f9d7b !important;
}

/* ========== 12c. Team section on About Us: same 2 rows of 3 ========== */
/* The About Us page (page-id-178396) uses the same Home Template and the
same "Who we are" team list as the homepage, but section 12b is scoped
to .home (front page only), so About Us fell back to the parent theme's
2-across layout at this width. Apply the same grid here, scoped to this
page only: 3 across from 900px up, 2 across at 600-899px, 1 across
below 600px, all cards the same size. */
@media (min-width:900px){
body.page-id-178396 .who-we-are .team-blocks{
display:flex !important;
flex-wrap:wrap !important;
}
body.page-id-178396 .who-we-are .team-blocks .team-block,
body.page-id-178396 .who-we-are .team-blocks .team-block.big{
flex:0 0 33.333% !important;
max-width:33.333% !important;
width:33.333% !important;
}
}
@media (min-width:600px) and (max-width:899px){
body.page-id-178396 .who-we-are .team-blocks{
display:flex !important;
flex-wrap:wrap !important;
}
body.page-id-178396 .who-we-are .team-blocks .team-block,
body.page-id-178396 .who-we-are .team-blocks .team-block.big{
flex:0 0 50% !important;
max-width:50% !important;
width:50% !important;
}
}
@media (max-width:599px){
body.page-id-178396 .who-we-are .team-blocks .team-block,
body.page-id-178396 .who-we-are .team-blocks .team-block.big{
flex:0 0 100% !important;
max-width:100% !important;
width:100% !important;
}
}

/* ========== 16. About Us: tighten Book section spacing ========== */
/* The Book section (.book-now) on About Us (page-id-178396) uses the
parent theme's 120px top/bottom padding at desktop, leaving a large
empty gap above and below the "Book Your First Visit" button. Tighten
it to 48px, matching the tightened 48px Awards section, and remove
the trailing margins inside the section so the space below the button
(the button paragraph and the heading under it) adds no extra empty
space. Scoped to About Us only; other pages are untouched. */
body.page-id-178396 .book-now{
  padding-top:48px !important;
  padding-bottom:48px !important;
}
body.page-id-178396 .book-now .flex > p{
  margin-bottom:0;
}
body.page-id-178396 .book-now h2{
  margin-bottom:0;
}
body.page-id-178396 .book-now h2::after{
  display:none;
}

/* The footer sits directly below the Book section on About Us, so its
top padding is part of the empty space below the button. Tighten it
on this page only, at desktop width (parent theme: 103px), to 56px. */
@media (min-width:1024px){
  body.page-id-178396 .footer-container-wrap{
    padding-top:56px;
  }
}

/* ========== 17. About Us: Book section heading colour ========== */
/* The heading under the "Book Your First Visit" button in the Book
section on About Us is white text (inherited from the parent theme's
.book-now, which expects a dark background) on a white background,
so it is invisible. Give it the theme's charcoal heading colour
#1F2A2E (var(--ph-ink)) so it reads clearly and matches the site's
other headings. Colour only — wording, size and position unchanged.
Scoped to About Us only; other pages are untouched. */
body.page-id-178396 .book-now h2{
  color:#1F2A2E !important;
}

/* ========== 12d. Team photos on About Us: same rounded corners as homepage ========== */
/* The homepage team photos get 12px rounded corners from section 12
   (.home .who-we-are img), but that rule is scoped to .home, so the same
   team photos on About Us (page-id-178396) render with square corners.
   Apply the same 12px radius here, scoped to this page only. */
body.page-id-178396 .who-we-are img{
border-radius:12px;
}

/* ========== 18. Footer: match the live site ========== */
/* The live footer is white with mid-grey text (#888, social icons #555).
   Section 12 set all footer links to white, which made the phone number,
   Email link, Blog / Disclaimer / Privacy links and the social icons
   invisible (white on white) on staging. Restore the parent theme's
   footer colours, which are what the live site shows. Colour only -
   no content, links, layout or spacing is changed here. This sits at
   the end of the file so it supersedes section 12. */
.footer{ color:#888; background:#fff; }
.footer a{ color:#888; }
.footer a:hover{ color:#555; }
.footer .soc-links-ul{ color:#555; }
.footer .soc-links-ul a{ color:#555; }
.footer .soc-links-ul a:hover{ color:#555; }


/* ========== 19. Footer: map in the same row, on the right ========== */
/* The footer markup (parent footer.php) is a flat list of siblings in
   .footer .container: logo, social icons, contact info, footer nav,
   map, copyright. CSS alone can lay those siblings out as one row,
   so no footer template override is needed. At desktop width
   (900px+, the threshold used elsewhere in this file for this
   browser's ~970-1024px viewport) the logo stays centred on its own
   row above, then one row holds: social icons + phone/address/email
   (the contact column), Blog / Disclaimer / Privacy Policy, and the
   map, smaller, on the right. The copyright stays centred below.
   Content, links, phone number, map and colours are unchanged. */
@media (min-width:900px){
.footer .container{
display:flex !important;
flex-wrap:wrap !important;
align-items:flex-start !important;
justify-content:space-between !important;
gap:0 28px !important;
}
.footer .logo{
flex:0 0 100% !important;
width:100% !important;
order:1 !important;
text-align:center !important;
margin:0 0 32px !important;
}
.footer .soc-links-ul{
flex:0 0 44px !important;
width:44px !important;
order:2 !important;
text-align:left !important;
margin:0 !important;
padding-top:6px !important;
}
.footer .soc-links-ul li{
display:block !important;
margin:0 0 20px !important;
}
.footer .footer-info{
flex:1 1 200px !important;
width:auto !important;
max-width:340px !important;
order:3 !important;
margin:0 !important;
text-align:left !important;
}
.footer .footer-nav{
flex:0 1 170px !important;
width:auto !important;
order:4 !important;
margin:0 !important;
margin-left:0 !important;
text-align:left !important;
}
.footer .map-section{
flex:0 1 320px !important;
width:320px !important;
max-width:34% !important;
min-width:260px !important;
order:5 !important;
margin:0 !important;
}
.footer .map-section a.map-link{
display:block !important;
}
.footer .map-section img{
width:100% !important;
height:auto !important;
display:block !important;
}
.footer .members-text{
flex:0 0 100% !important;
width:100% !important;
order:6 !important;
margin:0 !important;
}
.footer .members-text:empty{
display:none !important;
}
.footer .footer-copyright{
flex:0 0 100% !important;
width:100% !important;
order:7 !important;
position:static !important;
text-align:center !important;
padding-top:28px !important;
margin-top:8px !important;
}
}


/* ========== 20. Footer row: give the address room for one line ========== */
/* At ~1000px the address ("1675 Main St, Vancouver, BC") wrapped after
   "Vancouver,". Shrink the map slightly (320px -> 300px) and the links
   column (170px -> 150px), tighten the column gap, and let the contact
   column grow to 420px so the address fits on one line. */
@media (min-width:900px){
.footer .container{
gap:0 24px !important;
}
.footer .footer-info{
max-width:420px !important;
}
.footer .footer-nav{
flex:0 1 150px !important;
}
.footer .map-section{
flex:0 1 300px !important;
width:300px !important;
max-width:32% !important;
}
}

/* ========== 21. Footer logo: constrain the black-font PNG (2026-12-03) ========== */
/* The footer logo is now a 1999x1545 PNG (functions.php swaps it in for the
   footer only). The parent footer lays .footer .logo out as a flex item, and
   a flex item will not shrink below its content's intrinsic width, so the
   PNG's 1999px width blew the footer out. Constrain the image to its column
   (max 351px, the header logo's size) and let the flex item shrink. */
.footer .logo{ min-width:0; }
.footer .logo img{ width:100%; max-width:351px; height:auto; }


/* ========== 22. Chiropractic page: cupping photo rounded corners ========== */
/* Cupping photo (CNP_5438, wp-image-178489) in the Cupping section of the
   Chiropractic page (page-id-178415): same 12px rounded corners as the
   team photos (sections 12 and 12d). Scoped to this image only. */
body.page-id-178415 img.wp-image-178489 {
    border-radius: 12px;
}

/* ========== 23. Chiropractic page: alternating technique headers, photos beside text, rounded photos (2026-12-03) ========== */
/* Chiropractic Treatment Techniques (page-id-178415). All rules scoped to this page only. */

/* (a) Alternating technique headers: navy #0E1B26, white, navy, ... down the page.
   The technique headings are the h2 elements inside the info-block text column.
   Their text is wrapped in spans with an inline sage colour, so the colour is
   overridden here with !important: white text on navy, navy text on white.
   clear:both keeps each section starting below the previous section's floated photo. */
body.page-id-178415 .info-block .text-column ul.text-list > li > h2 {
	clear: both;
	padding: 14px 22px;
}
body.page-id-178415 .info-block .text-column ul.text-list > li > h2:nth-of-type(odd) {
	background: #0E1B26;
	color: #FFFFFF !important;
}
body.page-id-178415 .info-block .text-column ul.text-list > li > h2:nth-of-type(odd) span {
	color: #FFFFFF !important;
}
body.page-id-178415 .info-block .text-column ul.text-list > li > h2:nth-of-type(even) {
	background: #FFFFFF;
	color: #0E1B26 !important;
}
body.page-id-178415 .info-block .text-column ul.text-list > li > h2:nth-of-type(even) span {
	color: #0E1B26 !important;
}

/* (b) Photos beside the text: the cupping photo (CNP_5438, wp-image-178489) and the
   C-Section Scar photo (C-section-picture, wp-image-178367) were centred above their
   text. Float them left (desktop only) so the description text sits beside them,
   like the other technique photos on this page. clear:none cancels the
   aligncenter clearing so the float can sit beside the text. */
@media (min-width: 768px) {
	body.page-id-178415 img.wp-image-178489,
	body.page-id-178415 img.wp-image-178367 {
		float: left;
		clear: none;
		margin: 6px 24px 12px 0;
	}
}

/* (c) Rounded corners on every photo on this page: same 12px radius as the team
   photos (sections 12 and 12d) and the cupping photo (section 22), extended to
   all images in the page content. */
body.page-id-178415 main img {
	border-radius: 12px;
}

/* ========== 24. Homepage clean-up: Reviews + Blog Posts (2026-12-03) ========== */
/* (a) Reviews: tighten the section and the space inside the review cards.
   The plugin's own review-text clamp is untouched, so no review text is cut. */
@media (min-width:900px){
.home #next-content > section.reviews{
padding:56px 0 48px !important;
}
.reviews#reviews .wprevpro_t1_DIV_2{
padding:28px 28px 56px !important;
margin-bottom:24px !important;
background-size:80px 33px !important;
background-position:right 28px bottom 20px !important;
}
.reviews#reviews .wprev_preview_tcolor2_T1{
padding-top:12px !important;
}
.reviews#reviews .wprevpro_t1_IMG_4{
width:72px !important;
height:72px !important;
margin:0 16px 0 10px !important;
}
/* (b) Five stars on one line: smaller stars that fit the card width, and
   keep the star row from wrapping. */
.reviews .wprevpro_t1_P_3 .wprsp-star{
font-size:22px !important;
margin-right:5px !important;
}
.reviews .wprevpro_star_imgs_T1,
.reviews .wprevpro_t1_P_3 .wprevpro_star_imgs{
white-space:nowrap !important;
}
.reviews img.wprevpro_t1_star_img_file{
width:140px !important;
}
}
/* (c) Blog Posts (The Post Grid "Blog Posts", id 178361): all three posts in
   one row, cards the same height, matched to the 3rd post. The grid drops
   to 2 columns at this width, so force 3 columns from 900px up; stretch the
   cards to equal height; trim the category list and the excerpt to the 3rd
   post's two lines so the taller cards shrink to the 3rd post's height. */
@media (min-width:900px){
.home .rt-tpg-container .rt-row{
display:grid !important;
grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
gap:32px !important;
margin:0 !important;
}
.home .rt-tpg-container .rt-row > [class*="rt-col-"]{
width:auto !important;
max-width:none !important;
flex:none !important;
float:none !important;
padding:0 !important;
margin:0 !important;
}
.home .rt-tpg-container .rt-grid-item,
.home .rt-tpg-container .rt-holder{
height:100%;
}
.home .rt-tpg-container .rt-holder{
display:flex;
flex-direction:column;
}
.home .rt-tpg-container .rt-detail{
flex:1 1 auto;
display:flex;
flex-direction:column;
}
.home .rt-tpg-container .rt-detail [class*="categor"]{
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
.home .rt-tpg-container .rt-detail .rt-excerpt{
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
}
/* ========== 25. Blog Posts grid: revise 24(c) (2026-12-03) ========== */
/* The flex column on .rt-holder / .rt-detail in 24(c) stretched the detail
   panel over the whole card and left grey voids under the shorter images.
   Undo that: keep the 3-column grid and the equal-height card boxes from
   24(c), but let the detail sit naturally under the image, and give every
   image the same 16:9 area as the 3rd post's landscape image (object-fit
   cover crops the taller portrait image to match). The excerpt class is
   .tpg-excerpt (24(c) used the wrong name); the category list is
   .categories-links, matched by [class*="categor"]. */
@media (min-width:900px){
.home .rt-tpg-container .rt-holder{
display:block !important;
}
.home .rt-tpg-container .rt-detail{
display:block !important;
flex:none !important;
}
.home .rt-tpg-container .rt-img-holder{
aspect-ratio:16 / 9 !important;
overflow:hidden !important;
}
.home .rt-tpg-container .rt-img-holder img{
width:100% !important;
height:100% !important;
object-fit:cover !important;
display:block !important;
}
.home .rt-tpg-container .rt-detail .tpg-excerpt{
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
}

/* ========== 26. Blog Posts: fixed image height (2026-12-03) ========== */
/* 25's aspect-ratio did not take: the image holder is stretched taller than
the image (grey void under the photo) and the images still show at their
natural ratios. Give the holder a definite 200px height (16:9 at this card
width, matching the 3rd post's landscape image) and make the link and the
image fill it with object-fit cover, so all three images are the same size.
Restore the flex column on .rt-holder and let .rt-detail flex to fill the
card, so the three cards stay equal height. */
@media (min-width:900px){
.home .rt-tpg-container .rt-holder{
display:flex !important;
flex-direction:column !important;
}
.home .rt-tpg-container .rt-img-holder{
height:200px !important;
min-height:200px !important;
max-height:200px !important;
overflow:hidden !important;
flex:none !important;
}
.home .rt-tpg-container .rt-img-holder a{
display:block !important;
height:100% !important;
}
.home .rt-tpg-container .rt-img-holder img{
width:100% !important;
height:100% !important;
min-height:100% !important;
object-fit:cover !important;
display:block !important;
}
.home .rt-tpg-container .rt-detail{
display:block !important;
flex:1 1 auto !important;
}
}
/* ========== 27. Blog Posts: image height without the grid-container ancestor (2026-12-03) ========== */
/* 25 and 26 did not take: the .rt-tpg-container ancestor in those selectors
does not match the grid markup actually rendered on the home page, so the
image holder kept its natural height (grey voids, uneven images). Scope the
same 200px image area to the home page body instead, and through the
confirmed parent .rt-holder, so it matches regardless of the grid wrapper. */
@media (min-width:900px){
body.home .rt-holder{
display:flex !important;
flex-direction:column !important;
}
body.home .rt-img-holder,
.rt-holder .rt-img-holder{
height:200px !important;
min-height:200px !important;
max-height:200px !important;
overflow:hidden !important;
flex:none !important;
}
body.home .rt-img-holder a,
.rt-holder .rt-img-holder a{
display:block !important;
height:100% !important;
}
body.home .rt-img-holder img,
.rt-holder .rt-img-holder img{
width:100% !important;
height:100% !important;
min-height:100% !important;
object-fit:cover !important;
display:block !important;
}
body.home .rt-detail,
.rt-holder .rt-detail{
display:block !important;
flex:1 1 auto !important;
}
}
/* ========== 28. Blog Posts: ID-scoped image fix + diagnostic border (2026-12-03) ========== */
/* Diagnostic: if this red border appears around the grid, the new stylesheet
is loading and the container ID is right. The ID-scoped rules also beat any
per-grid inline styles the plugin outputs. Remove the border once confirmed. */
@media (min-width:900px){
#rt-tpg-container-178361 .rt-holder{
display:flex !important;
flex-direction:column !important;
}
#rt-tpg-container-178361 .rt-img-holder{
height:200px !important;
min-height:200px !important;
max-height:200px !important;
overflow:hidden !important;
flex:none !important;
}
#rt-tpg-container-178361 .rt-img-holder a{
display:block !important;
height:100% !important;
}
#rt-tpg-container-178361 .rt-img-holder img{
width:100% !important;
height:100% !important;
min-height:100% !important;
object-fit:cover !important;
display:block !important;
}
#rt-tpg-container-178361 .rt-detail{
display:block !important;
flex:1 1 auto !important;
}
}
/* ========== 29. Blog Posts: layout7 fix - uniform images, readable detail (2026-12-03) ========== */
/* The grid is "Grid Hover" layout7, not layout1: the markup has no
.rt-img-holder and no .rt-detail. The image is a direct child of
.rt-holder, and the title/meta/excerpt/Read More live in
.rt-holder > .overlay. Sections 25-28 targeted classes that do not
exist in this layout, so they never applied (and 28's red border
never showed). Target the real classes. */
@media (min-width:900px){
.home .rt-tpg-container .rt-holder{
display:flex !important;
flex-direction:column !important;
}
/* (a) Uniform image area, matched to the 3rd post's landscape image.
The image (link > img) is a direct child of .rt-holder. */
.home .rt-tpg-container .rt-holder > a{
display:block !important;
height:200px !important;
overflow:hidden !important;
flex:none !important;
}
.home .rt-tpg-container .rt-holder > a > img,
.home .rt-tpg-container .rt-holder > img,
.home .rt-tpg-container .rt-holder img{
width:100% !important;
height:200px !important;
min-height:200px !important;
max-height:200px !important;
object-fit:cover !important;
display:block !important;
}
/* (b) Detail panel: normal flow below the image (not an overlay on
the photo), readable dark text on a clean white panel, stretched to
fill the card so all three cards match. */
.home .rt-tpg-container .rt-holder .overlay{
position:static !important;
display:block !important;
flex:1 1 auto !important;
background:#fff !important;
color:#1F2A2E !important;
padding:20px 22px 22px !important;
border:0 !important;
opacity:1 !important;
visibility:visible !important;
transform:none !important;
}
/* Title, date/author, categories, excerpt, Read More: dark on white. */
.home .rt-tpg-container .rt-holder .overlay .entry-title,
.home .rt-tpg-container .rt-holder .overlay .entry-title a,
.home .rt-tpg-container .rt-holder .overlay .post-meta-user,
.home .rt-tpg-container .rt-holder .overlay .post-meta-user a,
.home .rt-tpg-container .rt-holder .overlay .categories-links,
.home .rt-tpg-container .rt-holder .overlay .categories-links a,
.home .rt-tpg-container .rt-holder .overlay .tpg-excerpt,
.home .rt-tpg-container .rt-holder .overlay .post-meta,
.home .rt-tpg-container .rt-holder .overlay .read-more a{
color:#1F2A2E !important;
}
/* Clamp the category list and the excerpt to two lines each, so the
taller cards shrink to the 3rd post's height. */
.home .rt-tpg-container .rt-holder .overlay .categories-links,
.home .rt-tpg-container .rt-holder .overlay .tpg-excerpt{
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
/* Safety net: cancel the diagnostic red border from section 28. */
#rt-tpg-container-178361{
border:0 !important;
}
}

/* ========== 30. Blog Posts: always show the detail + robust clamps (2026-12-03) ========== */
/* layout7 is a hover layout: the plugin keeps the date/author/categories/
excerpt/Read More hidden until the card is hovered (only the hovered card
showed its detail). Force the whole detail panel visible at all times, and
clamp the category list and the excerpt to two lines with !important (29's
clamp had none, so the plugin's display rule won). */
@media (min-width:900px){
.home .rt-tpg-container .rt-holder .overlay .post-meta-user,
.home .rt-tpg-container .rt-holder .overlay .post-meta{
display:block !important;
position:static !important;
max-height:none !important;
visibility:visible !important;
opacity:1 !important;
transform:none !important;
}
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .meta-data,
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .date-meta,
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .author,
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .comment-count,
.home .rt-tpg-container .rt-holder .overlay .post-meta-user a{
visibility:visible !important;
opacity:1 !important;
transform:none !important;
}
.home .rt-tpg-container .rt-holder .overlay .categories-links{
display:-webkit-box !important;
-webkit-line-clamp:2 !important;
-webkit-box-orient:vertical !important;
overflow:hidden !important;
max-height:52px !important;
visibility:visible !important;
opacity:1 !important;
}
.home .rt-tpg-container .rt-holder .overlay .tpg-excerpt{
display:-webkit-box !important;
-webkit-line-clamp:2 !important;
-webkit-box-orient:vertical !important;
overflow:hidden !important;
visibility:visible !important;
opacity:1 !important;
transform:none !important;
position:static !important;
}
}

/* ========== 31. Blog Posts: force the category list to two lines (2026-12-03) ========== */
/* The category list is a plain inline span, so max-height has no effect
until it is a block, and -webkit-line-clamp alone did not hold. Make it a
block, cap its height to two lines, and hide the rest. Also cap the whole
meta block as a backstop so a long category list cannot stretch the cards. */
@media (min-width:900px){
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .categories-links{
display:block !important;
max-height:56px !important;
overflow:hidden !important;
}
.home .rt-tpg-container .rt-holder .overlay .post-meta-user{
max-height:120px !important;
overflow:hidden !important;
}
}

/* ========== 32. Blog Posts: reveal the meta paragraph (2026-12-03) ========== */
/* The plugin also hides the <p> wrapping the date/author/categories inside
.post-meta-user; force that paragraph visible so the date and author show on
every card, not only on hover. */
@media (min-width:900px){
.home .rt-tpg-container .rt-holder .overlay .post-meta-user p{
display:block !important;
visibility:visible !important;
opacity:1 !important;
transform:none !important;
max-height:none !important;
}
}

/* ========== 33. Blog Posts: show the date + clean two-line category clamp (2026-12-03) ========== */
/* The date was still hidden (its span is display:none in the plugin), and
the 56px cap in 31 cut the category list mid-line. Restore the line-clamp
so the list ends cleanly after two lines, and force the date to render. */
@media (min-width:900px){
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .date-meta{
display:inline !important;
visibility:visible !important;
opacity:1 !important;
transform:none !important;
}
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .categories-links{
display:-webkit-box !important;
-webkit-line-clamp:2 !important;
-webkit-box-orient:vertical !important;
overflow:hidden !important;
max-height:none !important;
}
}

/* ========== 34. Blog Posts: dark date text + room for the date (2026-12-03) ========== */
/* The date is plain text (not a link), so the link-colour rule in 29 did not
reach it and the plugin's white date text stayed invisible on the white panel.
Colour the date (and the meta spans) dark directly, and give the meta block
enough height for the date + author + two lines of categories so the 120px
cap in 31 does not cut the second category line. */
@media (min-width:900px){
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .date-meta,
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .meta-data,
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .comment-count{
color:#1F2A2E !important;
}
.home .rt-tpg-container .rt-holder .overlay .post-meta-user{
max-height:150px !important;
}
}

/* ========== 35. Blog Posts: hide the tag list + room for the meta (2026-12-03) ========== */
/* The tag list (.post-tags-links, tag icon) repeats the category terms and runs
to many lines, so it was the text being cut mid-line by the meta-block cap.
Hide it (the categories above it carry the taxonomy) and give the meta block
room for the wrapped date and author plus the categories, so nothing is cut
mid-line. */
@media (min-width:900px){
.home .rt-tpg-container .rt-holder .overlay .post-meta-user .post-tags-links{
display:none !important;
}
.home .rt-tpg-container .rt-holder .overlay .post-meta-user{
max-height:200px !important;
}
}


/* ========== 36. Homepage "What Makes Us Different": consistent card type (2026-12-03) ========== */
/* The 8 feature cards are paragraphs whose bold lead is the card title. The
   title rule in section 8 only matched a bold lead that is a direct child of
   the paragraph (or inside a link), so some titles kept the section's large
   inherited size while others rendered at 18px, and the description text
   inherited that same large size. Match the bold lead at any depth so every
   title is 18px, and set the card paragraph to 15px so the description reads
   clearly smaller than its title. Text unchanged. */
.home .info-block .text-column ul.text-list > li.ph-feature-cards > p{
	font-size:15px;
	line-height:1.6;
}
.home .info-block .text-column ul.text-list > li.ph-feature-cards > p :is(strong, b){
	display:block;
	font-size:18px;
	line-height:1.35;
	margin-bottom:6px;
}

/* ========== 37. Homepage "Who We Help": align bullets with text and tighten cards (2026-12-03) ========== */
/* The green dot is a ::before on each card. It was an inline-block before the block-level
   <p> inside the card, so the dot sat on a line of its own above the text. Making the card
   a flex row puts the dot beside the first line of text. The grid also stretched every
   card to the tallest card in its row and the <p> carried a bottom margin, leaving a lot
   of empty space in the single-line cards. These rules are scoped to the first text-list
   item ("Who We Help") only, so the other info blocks are untouched. */
.home .info-block .text-column ul.text-list > li:first-child ul{
	align-items:start;
}
.home .info-block .text-column ul.text-list > li:first-child ul > li{
	display:flex;
	align-items:flex-start;
	gap:10px;
	min-height:0;
	height:auto;
	padding:12px 16px;
	line-height:1.35;
}
.home .info-block .text-column ul.text-list > li:first-child ul > li::before{
	flex:0 0 8px;
	margin:14px 0 0;
}
.home .info-block .text-column ul.text-list > li:first-child ul > li p{
	flex:1 1 auto;
	min-width:0;
	margin:0;
}
/* ========== 38. Homepage "Meet the team": tighten the space above it (2026-12-03) ========== */
/* The "Who we are" team section sits below the "Our Promise" info block. Both sections
   carry the 96px vertical padding from section 5, which left a large empty gap above
   the "Meet the team" heading. Cut the team section's top padding to 24px on desktop,
   so the team section sits clearly closer to the section above it. Bottom padding,
   mobile spacing and everything else on the page are untouched. */
@media (min-width:768px){
.home #next-content > section.who-we-are{
padding-top:24px;
}
}

/* ========== 39. Homepage "Who We Help": descenders clipped (2026-12-03) ========== */
/* Section 37 made each card a flex row and set line-height:1.35. The card text
   is 28px Inter (inherited from .info-block), whose descenders need about
   1.66em of line height; at 1.35 the descender of the first line (the "g" in
   "Adults/Working Professionals") was cut at the bottom of its line box.
   Loosen the line height so descenders render in full, and make sure nothing
   clips the card text. The flex layout (dot beside the text) is unchanged. */
.home .info-block .text-column ul.text-list > li:first-child ul > li{
	line-height:1.7;
	overflow:visible;
}
.home .info-block .text-column ul.text-list > li:first-child ul > li p{
	overflow:visible;
}
