/* STRIDE footer - full width and centred */
.site-footer .widget-area,
.site-footer .widget,
.site-footer .wp-block-group,
.footer-widgets,
.footer-widgets .widget-area,
.footer-widgets .widget {
	width: 100%;
	max-width: none;
	float: none;
}

.site-footer .widget-area,
.site-footer .widget,
.footer-widgets {
	text-align: center;
}

.site-footer .wp-block-group,
.site-footer p,
.footer-widgets p {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

/* STRIDE - smaller blog listing featured images */
.blog .post-thumbnail,
.archive .post-thumbnail {
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
}

.blog .post-thumbnail img,
.archive .post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}


/* STRIDE Check – print layout (test page only) */
@media print {
  body.page-id-626 .site-header,
  body.page-id-626 .site-footer,
  body.page-id-626 .entry-header,
  body.page-id-626 .entry-title,
  body.page-id-626 .post-edit-link,
  body.page-id-626 .edit-link,
  body.page-id-626 #wpadminbar {
    display: none !important;
  }

  body.page-id-626 .site-content,
  body.page-id-626 .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  body.page-id-626 {
    background: white !important;
    color: #17263c !important;
  }

  @page {
    size: A4 portrait;
    margin: 18mm;
  }
}

/* Hide Forminator editing link when printing STRIDE Check */
@media print {
  body.page-id-626 .forminator-edit-module,
  body.page-id-626 a[href*="forminator-form-wizard"],
  body.page-id-626 a[href*="page=forminator"] {
    display: none !important;
  }
}


/* STRIDE Check – polished printable summary */
@media print {

  /* Consistent typography throughout the summary */
  body.page-id-626 .stride-summary,
  body.page-id-626 .stride-summary p,
  body.page-id-626 .stride-summary h1,
  body.page-id-626 .stride-summary h2,
  body.page-id-626 .stride-summary h3 {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #17263c !important;
  }

  body.page-id-626 .stride-summary {
    font-size: 10pt !important;
    line-height: 1.45 !important;
  }

  /* Main document title */
  body.page-id-626 .stride-summary h1 {
    font-size: 22pt !important;
    font-weight: 700 !important;
    margin: 5mm 0 2mm !important;
    line-height: 1.15 !important;
  }

  /* Five consistent stage headings */
  body.page-id-626 .stride-summary h2 {
    font-size: 14pt !important;
    font-weight: 700 !important;
    margin: 5mm 0 1mm !important;
    line-height: 1.2 !important;
    break-after: avoid-page;
    page-break-after: avoid;
  }

  body.page-id-626 .stride-summary h3 {
    font-size: 12pt !important;
    margin: 4mm 0 2mm !important;
    break-after: avoid-page;
  }

  /* Clearer paragraph spacing */
  body.page-id-626 .stride-summary p {
    font-size: 10pt !important;
    line-height: 1.4 !important;
    margin: 0 0 2.5mm !important;
    orphans: 2;
    widows: 2;
  }

  /* Section dividers */
  body.page-id-626 .stride-summary hr {
    border: 0 !important;
    border-top: 1px solid #d7e2e7 !important;
    margin: 4mm 0 2mm !important;
  }

  /* Keep headings with following content */
  body.page-id-626 .stride-summary h2 + p,
  body.page-id-626 .stride-summary h3 + p {
    break-before: avoid-page;
    page-break-before: avoid;
  }

  /* Keep individual reflections together where possible */
  body.page-id-626 .stride-summary p:has(strong) {
    break-after: avoid-page;
    page-break-after: avoid;
  }

}


/* STRIDE Check – hide unanswered reflections */
body.page-id-626 .stride-summary
.stride-reflection:not(:has(.stride-answer:not(:empty))) {
  display: none !important;
}

/* Keep completed reflection labels and answers together */
@media print {
  body.page-id-626 .stride-summary .stride-reflection {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 3mm;
  }

  body.page-id-626 .stride-summary .stride-reflection p {
    margin-bottom: 1.5mm !important;
  }
}


/* STRIDE Check – improve printed page flow */
@media print {

  /* Keep each stage heading with its introduction */
  body.page-id-626 .stride-summary h2 {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  /* Keep each reflection together without forcing
     an entire stage onto one page */
  body.page-id-626 .stride-summary .stride-reflection {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  /* Prevent unnecessary space around section dividers */
  body.page-id-626 .stride-summary hr {
    margin-top: 3mm !important;
    margin-bottom: 2mm !important;
  }

  /* Slightly tighten spacing for printed reflections */
  body.page-id-626 .stride-summary .stride-reflection {
    margin-bottom: 2mm !important;
  }

}


/* STRIDE Check – keep final reflection summary together */
@media print {
  body.page-id-626 .stride-summary .stride-at-a-glance {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }
}
