/* =======================================================
   MASTER LAYOUT.CSS — Forex Factors - Ashbury Child Theme
   Clean and final layout structure for desktop view (960px grid)
   ======================================================= */

@media (min-width: 769px) {
  .site,
  .main-content-wrapper,
  .menu-strip,
  .page-template-page-nosidebar .main-content-wrapper,
  .page-template-page-nosidebar .page-content-container,
  .forex-table-wrapper,
  .footer-bottom-bar,
  .page-title-wrapper {
    max-width: 960px;
    width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .page-title-wrapper {
    background-color: #f6f6f6;
    margin: 40px auto 30px auto;
    padding-left: 60px;
    padding-right: 30px;
  }

  .main-content-wrapper {
    background-color: #f6f6f6;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 30px;
    padding-right: 30px;
  }

/* HOMEPAGE HERO — Safari-safe */
.homepage-hero {
  width: 100%;
  overflow: hidden;
}

.homepage-hero .hero-img {
  display: block;
  width: 100%;
  max-width: none;
  height: 420px;              /* desktop default */
  object-fit: cover;
  object-position: center;
}

/* Mobile */
@media (max-width: 767px) {
  .homepage-hero .hero-img {
    height: 260px;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .homepage-hero .hero-img {
    height: 380px;
  }
}


  .page-template-page-nosidebar .main-content-wrapper {
    padding: 20px;
  }

  .page-template-page-nosidebar .page-content-container {
    width: 100%;
  }

  .forex-table-wrapper {
    width: 800px;
    margin: 20px auto;
  }

  .footer-bottom-bar {
    background: #000000;
    color: #ffffff;
    padding: 15px 0;
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

/* Page title spacing */
.page-title {
  margin-top: 22.5px;
  margin-bottom: 12.5px;
}

/* Content layout */
.page-content-container {
  flex: 1;
  max-width: 695px;
  padding: 20px 30px;
  box-sizing: border-box;
}

.page-content-container p {
  margin-bottom: 30px;
  text-align: justify;
}

.page-content-container a {
  color: #2f4657;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: all 0.3s ease;
}

.page-content-container a:hover {
  color: #2f4657;
  text-decoration: underline;
  border-bottom: 1px dotted #2f4657;
}

/* Sidebar */
.sidebar {
  background-color: #f6f6f6;
  width: 300px;
  box-sizing: border-box;
  padding: 20px 15px;
  margin-top: 40px;
}

.sidebar .home-head {
  background-color: #2f4657;
  padding: 10px 15px;
  margin-bottom: 15px;
}

.sidebar .home-head span {
  font-size: 16px;
  color: #ffffff;
}

.sidebar .widget {
  background: none;
  border: none;
  padding: 0;
}

/* Bullet replacement */
.page-content-container ul {
  list-style: none;
  margin-left: 0;
  padding-left: 18px;
}

.page-content-container ul li {
  background: url('../images/arrow.png') no-repeat 0 6px;
  padding-left: 15px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* White block styling */
.white-block {
  background: #ffffff;
  padding: 20px 30px;
  box-sizing: border-box;
}

.page-layout .white-block {
  margin-left: -30px;
  margin-right: -30px;
  width: calc(100% + 60px);
}

/* No-sidebar template */
.page-template-page-nosidebar .page-title-strip {
  margin: 30px auto;
}

.page-template-page-nosidebar .account-content-block {
  background-color: transparent;
  width: 740px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-template-page-nosidebar .account-form-block {
  width: 100%;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 6px;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.page-template-page-nosidebar .account-content-block ul {
  list-style: none;
  margin: 0;
  padding-left: 18px;
}

.page-template-page-nosidebar .account-content-block ul li {
  background: url('../images/arrow.png') no-repeat 0 6px;
  padding-left: 15px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-template-page-nosidebar .menu-strip ul li {
  background: none;
  padding-left: 0;
}

/* Title-content gap */
.title-content-gap {
  height: 30px;
}

/* === GLOBAL DESKTOP FOOTER FIX === */
@media (min-width: 769px){

  /* 1) Contain floats so the footer isn't overlapped */
  .site-content::after,
  .content-area::after,
  .main-content-wrapper::after,
  #primary::after,
  #content::after{
    content:"";
    display:block;
    clear:both;
  }

  /* 2) Stop any wrapper from clipping the footer */
  .site-content,
  .content-area,
  .main-content-wrapper,
  #primary,
  #content{
    overflow: visible !important;
  }

  /* 3) Make sure the footer is on top and fully visible */
  .site-footer{
    position: relative !important;
    z-index: 99999 !important;
    clear: both !important;
  }
  /* If you have an inner bar like .copyright, lift it too */
  .site-footer .copyright,
  .site-footer .copyright-bar{
    position: relative;
    z-index: 1;
  }

  /* 4) Lower any accidental overlay on the content wrapper */
  .main-content-wrapper,
  .site-content,
  .content-area{
    position: relative;
    z-index: auto !important;  /* neutralise big z-indexes */
  }
}

/* === Bulletproof footer fix — all pages, desktop === */
@media (min-width:769px){

  /* 1) Contain floats without extra markup */
  /* flow-root creates a new block formatting context, so floats can't eat the footer */
  .entry-content,
  .content-area,
  .site-content{
    display: flow-root !important;
  }

  /* 2) Footer must start below content and sit above any stray overlay */
  .site-footer{
    position: relative !important;
    clear: both !important;
    z-index: 10 !important;
  }

  /* 3) Kill clipping on common wrappers (if any had overflow:hidden) */
  .site-content,
  .content-area,
  .main-content-wrapper,
  #primary,
  #content,
  #page{
    overflow: visible !important;
    z-index: auto !important;
  }
}

/* Frame that provides the 30px white margin around the plan */
.plan-frame{
  width: 440px;              /* 380 + 30 + 30 */
  background: #fff;
  padding: 30px;
  box-sizing: border-box;    /* so 440px includes the padding */
  margin: 0 0 24px 0;        /* left-aligned; add bottom gap */
}


/* exact white frame without mystery padding */
img.border30 {
  border:30px solid #fff;
  box-sizing:content-box;   /* keep 380px inner, border added outside */
}

/* belt-and-braces: kill WP's auto-centering if present */
img.aligncenter,
.wp-caption.aligncenter,
p[style*="text-align:center"] img {
  margin-left:0 !important;
  margin-right:0 !important;
}

/* -----------------------------------------------------------
   Border page: Core Principles (dl.principles) layout
   ----------------------------------------------------------- */
.page-content p{
  max-width: 65ch;
  line-height: 1.55;
  color: #2f4657;
}

.principles{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 0;
}

.principles > div{
  display: grid;
  grid-template-columns: 12ch 1fr;
  gap: 0.75rem 1.25rem;
  align-items: start;
}

.principles dt{
  font-weight: 700;
  color: #2f4657;
}

.principles dd{
  margin: 0;
  color: #2f4657;
  line-height: 1.55;
}

@media (min-width: 980px){
  .principles{
    grid-template-columns: 1fr 1fr;
  }
  .principles > div{
    grid-template-columns: 10ch 1fr;
  }
}
 .principles dd{ text-wrap: pretty; }



/* Control spacing under the main page title inside content */
.site-container .content h1:first-of-type,
.site-container .content-primary h1:first-of-type,
.site-container .entry-content h1:first-of-type{
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;   /* roughly 24px */
}


.site-container .content-primary,
.site-container .entry-content{
  max-width: 900px !important;
  margin: 0 auto !important;
}





 /* Tighten space under page title site-wide */
.entry-title{
  margin-bottom: 1.5rem;   /* about 24px instead of the 60–100px horror */
}


/* Control spacing under the main page title */
.entry-content > h1:first-child{
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;   /* roughly 24px */
}

/* ===============================
   PLAN + LEGEND  (CLEAN VERSION)
   =============================== */


/* Plan + notes share the left column; legend is the right column */
.plan-col{
  display: block;
}
}
.layout-fig {
  margin: 0;
}
.layout-fig img {
  display: block;
  width: 440px;
  height: auto;
}
.layout-fig figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 0.4em;
}

/* Legend column */
.legend-col h4 {
  margin: 0 0 0.5em 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05em;   /* ≈16 px visually */
  color: #2f4657;
  font-weight: 600;
}

/* Upright hybrid cross */
.hyb {
  font-style: normal;
  font-size: 1em;
}

/* ============================
   Silver-blue / Clay-tough legends
   ============================ */

/* Base ordered list */
.plant-numbered{
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: plantno;
  font-size: 12px;
  line-height: 1.4 !important;
}

/* Every list item: increment counter and leave space for the badge */
.plant-numbered > li{
  position: relative;
  counter-increment: plantno;
  padding-left: 1.6em;
  margin: 0.35em 0 !important;  /* was 0.2em – this is closer to the "nice" spacing */
}

.plant-numbered > li.tight{
  margin: 0.35em 0 !important;   /* override the theme's "tight" spacing */
  line-height: 1.4 !important;
}

/* Number badge */
.plant-numbered > li::before{
  content: counter(plantno);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: #2f4657;
  color: #fff;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  line-height: 1;
}

/* Category labels: more above, a little below */
.plant-numbered > li.category{
  counter-increment: none;
  padding-left: 0;
  margin: 0.8em 0 0.25em 0 !important;
  font-weight: 700;
}

.plant-numbered > li.category::before{
  content: none;
}

/* First category (Trees & shrubs) sits a bit tighter to the heading */
.plant-numbered > li.category:first-child{
  margin-top: 0 !important;
}

/* Optional small meta line (if used later) */
.plant-numbered .meta {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 1px;
}

/* Bulbs: last category line – no extra bottom margin */
.plant-numbered > li.category:last-child{
  margin-bottom: 0 !important;
}

/* Legend footnote / notes */
.legend-foot,
.legend-notes {
  margin-top: 0.6em;
  font-size: 12px;
  color: #333;
}
.legend-notes p {
  margin: 4px 0;
}


/* Responsive: stack image above legend */
@media (max-width: 768px) {
  .layout-fig {
    margin-bottom: 14px;
  }
}

/* Give botanical names a touch more contrast */
.plant-numbered em {
  font-style: italic;
  color: #22354a;   /* slightly darker than the main #2f4657 text */
}

/* Optional – soften the English names */
.plant-numbered .common {
  color: #5b6770;   /* subtly lighter grey */
}

/* Two-column text blocks inside sections */
.section-cols{
  column-count: 1;
  column-gap: 2rem;
}

/* Override the 65ch limit for these paragraphs so columns can breathe */
.section-cols p{
  max-width: none;
}

/* Desktop: split into two columns */
@media (min-width: 980px){
  .section-cols{
    column-count: 2;
  }
}


/* =========================================================
   SUMMER-PROOF BORDERS: SAMPLE LAYOUT SECTIONS
   Silver-blue + Clay-tough layout, plant lists, CTA
   ========================================================= */




/* “Sample border layouts” main heading and scheme titles */

.sample-layout-title {
  margin-top: 0;
  margin-bottom: 30px;
}

.scheme-title {
  margin: 1.4rem 0 0.6rem;
}

/* ===============================
   SAMPLE BORDER LAYOUTS – LAYOUT
   =============================== */

/* Two–column layout for both schemes */
.scheme.layout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* Left column: plan + notes + CTA */
.scheme.layout-row .plan-col {
  flex: 0 0 55%;
  max-width: 55%;
}

/* Right column: plant list */
.scheme.layout-row .legend-col {
  flex: 1 1 0;
  max-width: 45%;
}

/* Stack on small screens */
@media (max-width: 800px) {
  .scheme.layout-row {
    flex-direction: column;
  }
  .scheme.layout-row .plan-col,
  .scheme.layout-row .legend-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
}



/* ===============================
   SILVER-BLUE LIST (#sb-list)
   =============================== */

#sb-list {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 0.65rem;
  line-height: 1.45;
  margin: 0;
  padding: 0;
  counter-reset: sbplant;
}

#sb-list * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Category headings */
#sb-list .plant-category {
  font-weight: 600;
  margin: 1.2rem 0 0.5rem 0;
  font-size: 0.75rem;
}

/* Numbered rows */
#sb-list .plant-row {
  position: relative;
  padding-left: 2.6em;   /* space for circular number */
  margin: 0.35rem 0;
  counter-increment: sbplant;
}

/* Circular number badge */
#sb-list .plant-row::before {
  content: counter(sbplant);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: #2f4657;
  color: #ffffff;
  text-align: center;
  line-height: 1.5em;
  font-weight: 600;
  font-size: 0.8em;
}

/* Bulb block */
#sb-list .bulb-block {
  margin-top: 1.8rem;
}

/* Bulb block title */
#sb-list .bulb-block-title {
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  font-size: 0.75rem;
}

/* Bulb items – aligned with plants */
#sb-list .bulb-item {
  margin: 0.25rem 0;
  padding-left: 2.6em;
}

/* Bulb note */
#sb-list .bulb-note {
  font-size: 0.6rem;
  margin-bottom: 0.4rem;
  color: #333;
}

/* ===============================
   CLAY-WARM LIST (#cw-list)
   =============================== */

#cw-list {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 0.6rem;
  line-height: 1.45;
  margin: 0;
  padding: 0;
  counter-reset: cwplant;
}

#cw-list * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Category headings */
#cw-list .plant-category {
  font-weight: 600;
  margin: 1.2rem 0 0.5rem 0;
  font-size: 0.75rem;
}

/* Numbered rows */
#cw-list .plant-row {
  position: relative;
  padding-left: 2.6em;
  margin: 0.3rem 0;
  counter-increment: cwplant;
}

/* Circular numbered badges */
#cw-list .plant-row::before {
  content: counter(cwplant);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: #2f4657;
  color: #ffffff;
  text-align: center;
  line-height: 1.5em;
  font-weight: 600;
  font-size: 0.8em;
}
}

#claywarm {
  margin-left: -35px;
}

/*.layout-row .plan-col > p:first-of-type {
  margin: 10px 0 12px 0; /* nice compact spacing */
}
 */
/* First paragraph under the plan image in each layout – the download button 
.layout-row .plan-col > p:first-of-type {
  margin: 10px 0 12px 0;  same compact spacing as Clay-tough 
}
 Remove any extra gap from Silver-blue section itself 
section#silverblue.layout-row {
  margin-bottom: 0;
  padding-bottom: 0;
}*/

/* Wrapper controls the gap before the Clay-tough heading */
.clay-heading-wrap {
  margin-top: 40px;   /* tweak 35–45px to taste */
}

/* Heading itself has no extra top margin */
.clay-heading {
  margin: 0 0 10px 0;
}

/* ========================= */
/* Final CTA – border-cta    */
/* ========================= */

/* Grey box */
.border-cta.final-cta {
  background: #f6f6f6;
  padding: 1.8rem 2.4rem 2.2rem;
  border-radius: 8px;
  margin: 3rem auto 0;      /* ~40px gap above, centred */
  max-width: 960px;         /* same as main content width */
}

/* Heading + paragraph */
.border-cta.final-cta h3 {
  margin: 0 0 0.8rem 0;
}

.border-cta.final-cta > p {
  margin: 0 0 1.1rem 0;
  line-height: 1.6;
}

/* CTA line container */
.border-cta.final-cta .cta-inline {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

@media (min-width: 960px) {
  .border-cta.final-cta .cta-inline {
    flex-wrap: nowrap;
    min-width: 0; /* allow children to shrink */
  }

  .border-cta.final-cta .cta-label,
  .border-cta.final-cta .cta-dot {
    white-space: nowrap;
    font-size: 1.05rem;
  }

  /* Allow the email link to wrap if it needs to */
  .border-cta.final-cta .cta-link {
    font-size: 1.05rem;
    white-space: normal;        /* key change */
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Mobile / tablet – allow wrapping */
@media (max-width: 959px) {
  .border-cta.final-cta .cta-inline {
    flex-wrap: wrap;
    text-align: center;
  }
}

.border-cta.final-cta .cta-inline > * {
  min-width: 0;
}

/* Labels, links, dot */
.border-cta.final-cta .cta-label {
  font-weight: 600;
}

.border-cta.final-cta .cta-link {
  font-weight: 600;
  color: #b87b57;          /* terracotta */
  text-decoration: underline;
}

.border-cta.final-cta .cta-dot {
  font-size: 1.3rem;
  line-height: 1;
  margin: 0 0.4rem;
}

#claywarm {
  margin-left: 0px;
}

/* Heading above the CTA frame */
.cta-heading {
  margin-top: 0;
  margin-bottom: 30px;      /* 30px gap between heading and frame */
}

/* CTA wrapper – no extra vertical gap from here */
.page-cta {
  margin-top: 0;
}

/* Grey frame, centred in the content column */
.page-cta-inner {
  max-width: 960px;         /* same as your main content width */
  margin: 0 auto;           /* centre horizontally */
  background: #f6f6f6;
  padding: 1.8rem 2.4rem 2.2rem;
  border-radius: 8px;
  text-align: center;
}

/* Paragraphs inside the frame */
.page-cta-inner p {
  margin: 0;
  line-height: 1.6;
}

/* Space between the two paragraphs (text and CTA line) */
.page-cta-inner p + p {
  margin-top: 0.9rem;
}

/* Call / Email line */

/* Call / Email line */

.page-cta-contact {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 1.06rem;    /* slightly larger than body */
  font-weight: 600;      /* bolder than body */
}

/* Desktop: keep the whole thing on one line */
@media (min-width: 900px) {
  .page-cta-contact {
    white-space: nowrap;
  }
}

/* Smaller screens: allow wrapping again */
@media (max-width: 899px) {
  .page-cta-contact {
    white-space: normal;
  }
}

/* Link styling inside the CTA line */
.page-cta-contact a {
  color: #b87b57;        /* terracotta */
  text-decoration: underline;
  font-weight: 600;
}


/* Heading above the CTA frame */
.cta-heading {
  margin-top: 0;
  margin-bottom: 20px;   /* was 30px – reduces external gap */
}

/* Grey frame */
.page-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  background: #f6f6f6;
  padding: 1.2rem 2.4rem 2.2rem; /* was 1.8rem top – trims the internal gap */
  border-radius: 8px;
}

/* Base: mobile-safe CTA contact */
.page-cta-contact {
  text-align: center;
  font-size: 1.06rem;
  font-weight: 600;
  margin-top: 0.9rem;
  white-space: normal; /* allow wrapping by default */
}

/* Desktop only: force single line */
@media (min-width: 900px) {
  .page-cta-contact {
    white-space: nowrap;
  }

  .page-cta-contact span,
  .page-cta-contact a {
    display: inline;
    white-space: nowrap;
  }
}

/* Mobile only: stack phone and email */
@media (max-width: 768px) {
  .page-cta-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .page-cta-contact .cta-sep {
    display: none;
  }

  .page-cta-contact a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}


/* Hide any <br> tags WordPress might inject */
.page-cta-contact br {
  display: none !important;
}

/* Link styling */
.page-cta-contact a {
  color: #b87b57;
  text-decoration: underline;
  font-weight: 600;
}

/* Highlighted inline link for key internal routing */
a.planting-link,
a.planting-link:visited {
  color: #b87b57;
  text-decoration: underline;
  font-size: 12.5px;     /* base is 12px, so +0.5px */
  font-weight:600;
}

a.planting-link:hover {
  color: #a26545;      /* slightly darker terracotta on hover */
}

/* Links in the 'Also in this series' block */
p.related a,
p.related a:visited {
  color: #b87b57;
  text-decoration: none;   /* match your normal footer behaviour */
}

p.related a:hover,
p.related a:focus {
  color: #a26545;
}


.page-tagline {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 600;             /* lighter than 600, more graceful */
  font-style: italic;
  color: #3d7a4f;               /* keep logo green */
  margin-top: 0.25rem;          /* snug under the title band */
  margin-bottom: 0.8rem;        /* small gap before “Which do I need?” */
}



.page-tagline {
  color: #3d7a4f !important;  /* logo green */
}


.page-tagline {
  /* existing rules ... */
  text-indent: 1.2em;   /* nudge start of line slightly right */
}

/* FORCE CTA line to stay on one line */
.border-cta .cta-inline {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2.2rem;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

/* Ensure individual pieces behave properly */
.border-cta .cta-inline span,
.border-cta .cta-inline a {
  display: inline !important;      /* override any stray block rules */
  white-space: nowrap !important;  /* prevent break inside the link */
}

/* One-line CTA row: Call • Email */
.border-cta .cta-line {
  margin-top: 1.1rem;
  text-align: center;
  white-space: nowrap;        /* keep on one line on desktop */
  font-size: 1.05rem;
}

/* Make sure the bits are inline and don't force line-breaks */
.border-cta .cta-line .cta-label,
.border-cta .cta-line .cta-link,
.border-cta .cta-line .cta-dot {
  display: inline;
}

/* CTA line: force everything onto one horizontal line */
.border-cta .cta-line {
  margin-top: 1.1rem;
  text-align: center;
  white-space: nowrap;          /* keep whole row on one line (desktop) */
  font-size: 1.05rem;
}

/* Inside the CTA row, absolutely nothing is allowed to be block-level */
.border-cta .cta-line .cta-label,
.border-cta .cta-line .cta-link,
.border-cta .cta-line .cta-dot {
  display: inline-block !important;
  margin: 0 0.35rem;
  white-space: nowrap !important;
}

/* Force terracotta link colours in the 'Also in this series' block */
p.related a,
p.related a:visited {
  color: #b87b57;
  text-decoration: underline;
  font-weight: 600;
}

p.related a:hover,
p.related a:focus {
  color: #a26545;
  text-decoration: underline;
}

/* Match Consultation link look in the 'Related' line */
p.related {
  font-size: 13px;
}

p.related a,
p.related a:visited {
  color: #b87b57;
  text-decoration: underline;
  font-weight: 600;
}

p.related a:hover,
p.related a:focus {
  color: #a26545;
  text-decoration: underline;
}

/* Contact page: make inline links match site-wide terracotta style */
.page-id-4090 .entry-content a,
.page-id-4090 .entry-content a:visited {
  color: #b87b57;
  text-decoration: underline;
  font-weight: 600;
}

.page-id-4090 .entry-content a:hover,
.page-id-4090 .entry-content a:focus {
  color: #a26545;
  text-decoration: underline;
}


/* Global inline link style */
a,
a:visited {
  color: #b87b57;
  text-decoration: underline;
  font-weight: 400;   /* matches Consultation look */
}

a:hover,
a:focus {
  color: #a26545;
  text-decoration: underline;
}

body { 
  outline: none; 
}

/* Silver-blue / Clay-tough layout 
section#silverblue.layout-row,
section#claywarm.layout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 0;
}

section#silverblue .plan-col,
section#claywarm .plan-col {
  flex: 0 0 55%;
  max-width: 55%;
}

section#silverblue .legend-col,
section#claywarm .legend-col {
  flex: 1 1 0;
  max-width: 45%;
  position: relative;
  top: -35px;
}

section#claywarm .legend-col {
  left: -35px;
}/

/* Tighten the space between Silver-blue and Clay-tough heading 
section#silverblue.layout-row {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
} */

/* Kill extra margin at the bottom of the right-hand column and its last child 
section#silverblue.layout-row .legend-col,
section#silverblue.layout-row .legend-col > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

 Set the real gap before the Clay-tough heading 
section#silverblue.layout-row + h3.clay-heading {
  margin-top: 2.5rem !important;
}*/

h3.clay-heading {
  margin-top: 40px !important;
  margin-bottom: 10px !important;
}

/* Desktop: pull Clay-tough heading upwards */
@media (min-width: 901px) {
  .clay-heading-wrap {
    margin-top: -60px;
  }
  .clay-heading {
    margin: 0 0 10px 0;
  }
}

/* Mobile / tablet: let it flow normally */
@media (max-width: 900px) {
  .clay-heading-wrap {
    margin-top: 30px;
  }
  .clay-heading {
    margin: 0 0 10px 0;
  }
}

/* Silver-blue "Design notes & care" – final styling 
#silverblue .plan-col .design-notes {
  max-width: 48rem;
}

#silverblue .plan-col .design-notes h4 {
  margin: 0 0 0.8rem 0;
}

#silverblue .plan-col .design-notes p {
  margin: 0 0 1.2rem 0;
  line-height: 1.75;
  font-size: 0.96em;
}

 Final override: keep CTA line horizontal */
.border-cta .cta-line {
  text-align: center;
  white-space: nowrap;
}

.border-cta .cta-line * {
  display: inline !important;
  white-space: nowrap !important;
  margin: 0 0.3rem;
}

/* ================================
   Sample border layouts – desktop
   ================================ */

/* Two-column layout: plan + plant list */
.layout-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
}

/* Left and right columns */
.layout-row .plan-col,
.layout-row .legend-col {
  flex: 1 1 0;
  min-width: 0;          /* prevents weird flex shrink behaviour */
  box-sizing: border-box;
}

/* Make sure plan images scale nicely inside their column */
.layout-fig,
.plan-box {
  max-width: 100%;
}

.layout-fig img,
.plan-box img {
  display: block;
  width: 100%;           /* fill the column */
  height: auto;
}

/* ================================
   Sample border layouts – mobile
   ================================ */

@media (max-width: 768px) {

  .layout-row {
    display: flex;
    flex-direction: column; /* stack plan + list */
    gap: 24px;              /* vertical gap between them */
  }

  .layout-row .plan-col,
  .layout-row .legend-col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 0 12px;        /* optional: side padding for comfort */
    box-sizing: border-box;
  }

  /* Make sure plant-list headings don't sit on top of previous text */
  #silverblue h4,
  #claywarm h4 {
    margin-top: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    padding-top: 0 !important;
  }

  /* Force both lists to align with body text on mobile */
  #sb-list,
  #cw-list {
    margin-left: 0 !important;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
  }

  .clay-heading-wrap {
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    padding: 0 12px !important;
  }

}

.design-notes {
  padding: 30px;
  box-sizing: border-box;
}

.design-notes p {
  max-width: 60ch;
}


.homepage-hero .hero-img { display:block; width:100%; height:auto; 
}

.regions-grid,
.regions-grid > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.regions-grid {
  display: grid;
  gap: 2rem;
}

/* Each landscape item */
.regions-grid .has-thumb {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Postcard thumbnail */
.regions-grid .thumb {
  flex: 0 0 clamp(180px, 22vw, 240px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
}

/* Image fills postcard */
.regions-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text block */
.regions-grid .entry {
  flex: 1;
}

/* Mobile: stack image above text */
@media (max-width: 700px) {
  .regions-grid .has-thumb {
    flex-direction: column;
  }

  .regions-grid .thumb {
    width: 100%;
    aspect-ratio: 16 / 9; /* optional, nicer on phones */
  }
}

.regions-grid .thumb {
  background: rgba(0,0,0,0.04);
}

/* Default postcards */
.regions-grid .thumb {
  aspect-ratio: 4 / 3;
}

/* Single-image override */
.regions-grid .ratio-3x4 .thumb {
  aspect-ratio: 3 / 4;
}

.regions-grid .entry p {
  line-height: 1.6;
  max-width: 42ch;
}

@media (max-width: 768px) {
  .page-cta-contact a{
    display:block;
  }

  .page-cta-contact{
    line-height: 1.6;
  }
}

/* Two-column layout for image + text lists */
.has-thumb {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.has-thumb .thumb {
  flex: 0 0 320px; /* adjust width to taste */
}

.has-thumb .thumb img {
  max-width: 100%;
  height: auto;
  display: block;
}

.has-thumb .entry {
  flex: 1;
}

@media (max-width: 700px) {
  .has-thumb {
    flex-direction: column;
    gap: 0.75rem; /* much smaller vertical gap */
  }

  .has-thumb .thumb {
    flex: none;
  }

  .has-thumb .entry {
    margin-top: 0;
  }
}

.site-footer .footer-seasonal__links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 768px) {
  .site-footer .footer-seasonal__links a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* Horizontal scroll container for wide plans */
.plan-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Make the image fit the phone height, not explode */
@media (max-width: 700px) {
  .plan-scroll img {
    height: 70vh;      /* adjust: 60–80vh to taste */
    width: auto;
    max-width: none;   /* critical: don't force it to shrink to container width */
    display: block;
  }
}

/* 28 Feb 2026 — Sample border layouts: trim excess gap under notes */
#silverblue .design-notes{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#silverblue .design-notes p:last-child{
  margin-bottom: 0 !important;
}

#silverblue.layout-row{
  margin-bottom: 0; /* or 20px */
}

h3.scheme-title{
  margin-top: 6px;  /* try 12px first */
}

/* 28 Feb 2026 — Sample border layouts: mobile stacking */
@media (max-width: 768px){

  .border-example{
    display: block;              /* kill grid on mobile */
    margin-bottom: 32px;
  }

  .border-left,
  .border-right{
    display: block;
    width: 100%;
  }

  /* comfortable side padding */
  .border-example .border-left,
  .border-example .border-right{
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  /* keep the plant list close to the notes, not miles away */
  .border-right{
    margin-top: 18px;
  }

  /* tighten notes a touch on mobile */
  .design-notes{
    padding: 0;                  /* you don’t need that 30px block padding on mobile */
  }

  .design-notes h4{
    margin-top: 18px;
  }
}

/* =========================================================
   Page 10415 – borders5592v2
   Desktop: 2-column grid where plant list can be longer,
            and notes start under the plan/button (left only)
   Mobile:  stack in reading order (plan, button, plant list, notes)
   ========================================================= */

/* --- Desktop / default --- */
body.page-id-10415 .borders5592v2 section.layout-row.scheme--compact{
  display: grid !important;
  grid-template-columns: minmax(0, 62%) minmax(0, 38%) !important;
  column-gap: 40px !important;
  row-gap: 12px !important;
  align-items: start !important;
}

/* The wrapper is just for grouping; its children become grid items */
body.page-id-10415 .borders5592v2 .scheme-cols{
  display: contents !important;
}

/* Left column: plan + button */
body.page-id-10415 .borders5592v2 .plan-col{
  grid-column: 1 !important;
  grid-row: 1 !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Right column: plant list spans both rows */
body.page-id-10415 .borders5592v2 .legend-col{
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Left bottom: notes start immediately under the button */
body.page-id-10415 .borders5592v2 .design-notes{
  grid-column: 1 !important;
  grid-row: 2 !important;
  clear: none !important;
  margin: 0 0 18px 0 !important;
}

/* Images behave */
body.page-id-10415 .borders5592v2 .plan-box img{
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

/* Tidy the gaps */
body.page-id-10415 .borders5592v2 .hero-actions{
  margin: 8px 0 8px 0 !important;
  padding: 0 !important;
}
body.page-id-10415 .borders5592v2 h3.scheme-title{
  margin: 18px 0 8px 0 !important;
}
body.page-id-10415 .borders5592v2 p.scheme-look{
  margin: 0 0 12px 0 !important;
}

/* --- Mobile: stack in reading order --- */
@media (max-width: 860px){

  body.page-id-10415 .borders5592v2 section.layout-row.scheme--compact{
    display: block !important;
  }

  body.page-id-10415 .borders5592v2 .scheme-cols{
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  body.page-id-10415 .borders5592v2 .plan-col,
  body.page-id-10415 .borders5592v2 .legend-col,
  body.page-id-10415 .borders5592v2 .design-notes{
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.page-id-10415 .borders5592v2 .plan-col{ order: 1 !important; }
  body.page-id-10415 .borders5592v2 .legend-col{ order: 2 !important; }
  body.page-id-10415 .borders5592v2 .design-notes{ order: 3 !important; margin-top: 8px !important; }
}

/* Torridge Culm – crop lower so land dominates */
.regions-grid > li.region-culm .thumb img{
  object-position: 50% 80%;
}

/* Torridge Culm: desktop needs wider crop to reduce sky (mobile is already 16:9) */
@media (min-width: 701px){
  .regions-grid > li.region-culm .thumb{
    aspect-ratio: 16 / 9;
  }

  .regions-grid > li.region-culm .thumb img{
    object-position: 50% 85%;
  }
}

/* Regions grid: force thumb to behave like a cropped postcard (prevents giant-tall images) */
.regions-grid > li.has-thumb .thumb{
  flex: 0 0 clamp(180px, 22vw, 240px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  height: auto;       /* key: don't let it inherit a forced height */
  align-self: flex-start;
}

/* Force the image to fill the postcard window (override generic height:auto rules) */
.regions-grid > li.has-thumb .thumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Torridge Culm: show more land (desktop only) */
@media (min-width: 701px){
  .regions-grid > li.region-culm .thumb img{
    object-position: 50% 99%;
  }
}

/* Torridge Culm: bias crop downward (show more land) */
.regions-grid > li.region-culm .thumb img{
  object-position: 50% 99%;
}

/* Torridge Culm: force vertical cropping on desktop so we can lose sky */
@media (min-width: 701px){
  .regions-grid > li.region-culm .thumb{
    aspect-ratio: 16 / 9;     /* wider than 3:2, so crop is top/bottom */
    overflow: hidden;
  }

  .regions-grid > li.region-culm .thumb img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: 50% 80%; /* move crop down to show more land */
  }
}

/* Regions grid postcards: force consistent 4:3 crop and stop generic .has-thumb rules interfering */
.regions-grid > li.has-thumb .thumb{
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.regions-grid > li.has-thumb .thumb img{
  width: 100% !important;
  height: 100% !important;   /* overrides height:auto */
  object-fit: cover;
  display: block;
}

/* Regions grid thumbnails: square corners */
.regions-grid .thumb{
  border-radius: 0;
}

figure {
  margin: 26px 0;
}

figure figcaption {
  margin-top: 6px;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

figure figcaption {
  max-width: 90%;
}
