/* responsive-internals.css */

/* Mobile defaults for internal pages */
@media (max-width: 768px) {

  /* Images behave */
  img {
    max-width: 100%;
    height: auto;
  }

  /* WP caption/figure wrappers */
  .wp-caption,
  figure,
  figure.wp-caption,
  .wp-block-image {
    max-width: 100% !important;
    width: auto !important;
  }

  .wp-caption img,
  figure img,
  .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* -------------------------------------------------------
     WHERE I WORK (page-id-5680): stack image then text
     ------------------------------------------------------- */

  body.page-id-5680 ul.regions-grid {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body.page-id-5680 ul.regions-grid > li.has-thumb {
    display: block !important;
    position: static !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
  }

  body.page-id-5680 ul.regions-grid > li.has-thumb > span.thumb {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;          /* IMPORTANT: no fixed height on mobile */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
  }

  body.page-id-5680 ul.regions-grid > li.has-thumb > span.thumb img {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
  }

/* Mobile thumbnails: consistent window shape */
body.page-id-5680 ul.regions-grid > li.has-thumb > span.thumb{
  aspect-ratio: 380 / 252;     /* same shape as your desktop thumbnails */
  height: auto !important;
}

body.page-id-5680 ul.regions-grid > li.has-thumb > span.thumb img{
  width: 100% !important;
  height: 100% !important;    /* KEY: fill the window */
  object-fit: cover !important;
}

  body.page-id-5680 ul.regions-grid > li.has-thumb > div.entry {
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.page-id-5680 ul.regions-grid > li.has-thumb > div.entry > h3 {
    margin: 0 0 8px 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
  }

  body.page-id-5680 ul.regions-grid > li.has-thumb > div.entry > p {
    margin: 0 !important;
    transform: none !important;
  }

/* Where I work: give text breathing room on mobile */
body.page-id-5680 ul.regions-grid > li.has-thumb > div.entry{
  padding: 0 16px !important;   /* left & right breathing space */
}

  /* Optional: Culm crop tweak, safely */
  body.page-id-5680 ul.regions-grid li.region-culm > span.thumb img {
    object-position: 50% 92% !important;
  }

}

}

/* ==========================================================
   Page 5592 — Summer-resilient borders
   Desktop: two columns (plan | legend)
   Mobile:  plan -> button -> plant list -> design notes
   ========================================================== */

/* ---------- DESKTOP (force two columns) ---------- */
@media (min-width: 769px){

  /* Make the row a flex row (catch both possible structures) */
  body.page-id-XXXX5592 #silverblue .layout-row,
  body.page-id-XXXX5592 #claywarm .layout-row,
  body.page-id-XXXX5592 #silverblue.layout-row,
  body.page-id-XXXX5592 #claywarm.layout-row{
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }

  /* Left: plan */
  body.page-id-XXXX5592 #silverblue .plan-col,
  body.page-id-XXXX5592 #claywarm .plan-col{
    flex: 0 0 62% !important;
    width: 62% !important;
    max-width: 62% !important;
  }

  /* Right: legend */
  body.page-id-XXXX5592 #silverblue .legend-col,
  body.page-id-XXXX5592 #claywarm .legend-col{
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 38% !important;
  }

  /* Plan image behaves */
  body.page-id-XXXX5592 #silverblue .plan-col img,
  body.page-id-XXXX5592 #claywarm .plan-col img{
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}


/* ---------- MOBILE (stack + correct order) ---------- */
@media (max-width: 768px){

  /* Make each scheme wrapper a vertical stack */
  body.page-id-XXXX5592 #silverblue,
  body.page-id-XXXX5592 #claywarm{
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  /* Let plan-col and legend-col participate in the scheme stack */
  body.page-id-XXXX5592 #silverblue .layout-row,
  body.page-id-XXXX5592 #claywarm .layout-row,
  body.page-id-XXXX5592 #silverblue.layout-row,
  body.page-id-XXXX5592 #claywarm.layout-row{
    display: contents !important;
  }

  /* 1) Plan first */
  body.page-id-XXXX5592 #silverblue .plan-col,
  body.page-id-XXXX5592 #claywarm .plan-col{
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Plan image full width */
  body.page-id-XXXX5592 #silverblue .plan-col img,
  body.page-id-XXXX5592 #claywarm .plan-col img{
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Make the PDF link sit under the image */
  body.page-id-XXXX5592 #silverblue .plan-col a,
  body.page-id-XXXX5592 #claywarm .plan-col a{
    display: inline-block !important;
    margin-top: 10px !important;
  }

  /* 2+3+4 happen inside legend-col:
     plant list -> notes
     (because you’ve now moved notes into legend-col after the list) */

  body.page-id-XXXX5592 #silverblue .legend-col,
  body.page-id-XXXX5592 #claywarm .legend-col{
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Comfortable side padding on mobile */
  body.page-id-XXXX5592 #silverblue .legend-col,
  body.page-id-XXXX5592 #claywarm .legend-col{
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
}

/* Page 5592 — schemes: desktop 2-col, mobile stacked */
body.page-id-XXXX5592 section.layout-row{
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

body.page-id-XXXX5592 section.layout-row > .plan-col{
  flex: 0 0 62%;
  max-width: 62%;
}

body.page-id-XXXX5592 section.layout-row > .legend-col{
  flex: 1 1 auto;
  max-width: 38%;
}

body.page-id-XXXX5592 .plan-col img{
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile stack: plan -> button (inside plan-col) -> legend (list+notes) */
@media (max-width: 768px){
  body.page-id-XXXX5592 section.layout-row{
    flex-direction: column;
    gap: 18px;
  }

  body.page-id-XXXX5592 section.layout-row > .plan-col,
  body.page-id-XXXX5592 section.layout-row > .legend-col{
    max-width: 100%;
  }

  body.page-id-XXXX5592 section.layout-row > .legend-col{
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

/* Page 5592 — Desktop layout:
   Left: plan + button + notes
   Right: plant list
*/
@media (min-width: 769px){

  /* The section itself is the two-column row */
  body.page-id-XXXX5592 section.layout-row{
    display: flex !important;
    flex-wrap: wrap !important;          /* allows a second row */
    align-items: flex-start !important;
    gap: 24px !important;
  }

  /* Left column = plan block */
  body.page-id-XXXX5592 section.layout-row > .plan-col{
    flex: 0 0 62% !important;
    max-width: 62% !important;
  }

  /* Make legend-col "disappear" so its children can be flex items of the section */
  body.page-id-XXXX5592 section.layout-row > .legend-col{
    display: contents !important;
  }

  /* Right column = plant list title + list */
  body.page-id-XXXX5592 section.layout-row .plant-list-title,
  body.page-id-XXXX5592 section.layout-row #sb-list,
  body.page-id-XXXX5592 section.layout-row #cw-list{
    flex: 0 0 38% !important;
    max-width: 38% !important;
  }

  /* Put notes under the plan (left column width) */
  body.page-id-XXXX5592 section.layout-row .design-notes{
    flex: 0 0 62% !important;
    max-width: 62% !important;
    margin-top: 0 !important; /* keep it snug under the plan block */
  }
}

/* Page 5592 — Desktop column fit + notes width matches plan */
@media (min-width: 769px){

  /* Use sane fixed widths that fit inside typical 960px layouts with padding */
  body.page-id-XXXX5592 section.layout-row.scheme--compact{
    display: flex !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }

  /* Left: plan (and notes) */
  body.page-id-XXXX5592 section.layout-row.scheme--compact > .plan-col{
    flex: 0 0 620px !important;     /* adjust if needed */
    max-width: 620px !important;
  }

  /* Right: plant list */
  body.page-id-XXXX5592 section.layout-row.scheme--compact > .legend-col{
    flex: 0 0 300px !important;     /* adjust if needed */
    max-width: 300px !important;
    margin-left: auto !important;   /* pushes it right */
  }

  /* Make the plan-top box define the “plan width” */
  body.page-id-XXXX5592 section.layout-row.scheme--compact .plan-top{
    max-width: 620px !important;
  }

  /* Force notes to match plan width (not run narrower) */
  body.page-id-XXXX5592 section.layout-row.scheme--compact .design-notes{
    max-width: 620px !important;
  }

  /* Plan image behaves */
  body.page-id-XXXX5592 section.layout-row.scheme--compact .plan-col img{
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Page 5592 — Mobile order fix only */
@media (max-width: 768px){

  body.page-id-5592 section.layout-row.scheme--compact{
    display: flex;
    flex-direction: column;
  }

  /* Make plan-col reorderable internally */
  body.page-id-5592 section.layout-row.scheme--compact > .plan-col{
    display: flex;
    flex-direction: column;
  }

  /* Order inside the section */
  body.page-id-5592 section.layout-row.scheme--compact > .plan-col > .plan-top{
    order: 1;
  }

  body.page-id-5592 section.layout-row.scheme--compact > .legend-col{
    order: 2;
  }

  body.page-id-5592 section.layout-row.scheme--compact > .plan-col > .design-notes{
    order: 3;
  }

}

/* Page 5592 — Mobile order: plan -> button -> plant list -> notes */
@media (max-width: 768px){

  body.page-id-5592 section.layout-row.scheme--compact{
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  /* Put the legend (plant list) between plan-top and notes */
  body.page-id-5592 section.layout-row.scheme--compact > .plan-col{
    display: flex !important;
    flex-direction: column !important;
  }

  body.page-id-5592 section.layout-row.scheme--compact > .plan-col > .plan-top{
    order: 1 !important;
  }

  body.page-id-5592 section.layout-row.scheme--compact > .legend-col{
    order: 2 !important;
  }

  body.page-id-5592 section.layout-row.scheme--compact > .plan-col > .design-notes{
    order: 3 !important;
  }
}

/* ==========================================================
   Page 5592 — FINAL LAYOUT
   Desktop: plan left + list right; notes under plan
   Mobile:  plan -> button -> list -> notes
   ========================================================== */

body.page-id-5592 section.layout-row.scheme--compact{
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px !important;
}

/* DESKTOP */
@media (min-width: 769px){

  /* IMPORTANT: allow wrapping so notes can drop to row 2 */
  body.page-id-5592 section.layout-row.scheme--compact{
    flex-direction: row !important;
    flex-wrap: wrap !important;     /* KEY */
  }

  /* Force the two-column widths to fit 960 exactly: 620 + 20 + 320 = 960 */
  body.page-id-5592 section.layout-row.scheme--compact > .plan-col{
    flex: 0 0 620px !important;
    width: 620px !important;
    max-width: 620px !important;
    order: 1 !important;
  }

  body.page-id-5592 section.layout-row.scheme--compact > .legend-col{
    flex: 0 0 320px !important;
    width: 320px !important;
    max-width: 320px !important;
    order: 2 !important;
  }

  /* Notes sit under the plan, same width as plan */
  body.page-id-5592 section.layout-row.scheme--compact > .design-notes{
    flex: 0 0 620px !important;
    width: 620px !important;
    max-width: 620px !important;
    order: 3 !important;
    margin-top: 0 !important;
  }

  /* Stop the plan shrinking to “content width” */
  body.page-id-5592 section.layout-row.scheme--compact > .plan-col .layout-fig,
  body.page-id-5592 section.layout-row.scheme--compact > .plan-col .plan-box{
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-id-5592 section.layout-row.scheme--compact > .plan-col img{
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* MOBILE */
@media (max-width: 768px){

  body.page-id-5592 section.layout-row.scheme--compact{
    flex-direction: column !important;
    gap: 18px !important;
  }

  body.page-id-5592 section.layout-row.scheme--compact > .plan-col{ order: 1 !important; }
  body.page-id-5592 section.layout-row.scheme--compact > .legend-col{ order: 2 !important; }
  body.page-id-5592 section.layout-row.scheme--compact > .design-notes{ order: 3 !important; }

  body.page-id-5592 section.layout-row.scheme--compact > .plan-col,
  body.page-id-5592 section.layout-row.scheme--compact > .legend-col,
  body.page-id-5592 section.layout-row.scheme--compact > .design-notes{
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px){

  /* Seasonal Insights Archive: give clear breathing space under masthead */
  .seasonal-insight.si-archive{
    margin-top: 0 !important;
    padding-top: 60px !important;
  }

  .seasonal-insight.si-archive .si-header{
    margin-top: 0 !important;
  }

  .seasonal-insight.si-archive .si-title{
    margin-top: 0 !important;
  }
}

@media (max-width: 768px){
  .seasonal-insight.si-archive header.si-header h1.si-title{
    font-size: 26px !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 768px){

  /* Seasonal Insights SINGLE editions: same breathing space under masthead */
  .seasonal-insight:not(.si-archive){
    margin-top: 0 !important;
    padding-top: 60px !important;
  }

  .seasonal-insight:not(.si-archive) .si-header{
    margin-top: 0 !important;
  }

  .seasonal-insight:not(.si-archive) .si-title{
    margin-top: 0 !important;
  }

}

@media (max-width: 768px){
  .seasonal-insight:not(.si-archive) header.si-header h1.si-title{
    font-size: 26px !important;
    line-height: 1.08 !important;
  }
}