/* Width, margins & padding */

body,
article,
main#main div {
  padding: 0;
  background-color: #fff !important;
}

article,
main#main div {
  margin: 0;
}

body {
}

/* Layout improvements */

.stk-column {
  flex: 1 !important;
}

.stk-row.stk-block-content {
  flex-direction: column;
}

div.stk-ea8f8b5,
div.sidebar {
  max-width: 100% !important;
}

.stk-78a0a17-column {
  flex-direction: column !important;
}

.single .wp-block-cover__background {
  background: none !important;
}

.wp-block-post-content > * {
  margin-left: 0 !important;
}

.single .wp-block-cover .wp-block-cover__inner-container,
[class*="ct-container"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.wp-block-group.single_group {
  padding: 0 !important;
}

article
  > .entry-content
  > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
  max-width: 100% !important;
}

body
  .is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.policy_overview,
.wp-block-post-excerpt__excerpt {
  width: 90% !important;
}

article > .entry-content > *:not(.alignfull):not(.alignleft):not(.alignright) {
  width: 100% !important;
}

article > .entry-content > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hide unnecessary elements */
.ct-header [data-column="middle"],
.ct-header [data-column="end"],
.stk-6a213b0,
.breadcrumb,
#footer,
.single_group.single_questions,
svg.rough-annotation,
.ct-comments-container,
.ct-back-to-top.ct-show {
  display: none !important;
}

/* Hero tweaks */
.single .wp-block-cover[style] {
  background-image: none !important;
  padding: 0 !important;
  min-height: fit-content !important;
}

header {
  min-height: auto !important;
}

.hero-section {
  background-image: none !important;
}

.page-title {
  font-size: 3.5em !important;
  margin-left: 0 !important;
}

/* Contents */

.contents {
  box-shadow: none !important;
  padding-left: 0 !important;
  margin-top: 2em !important;
}

/* Make light text black */
.wp-block-cover h1,
.wp-block-cover p {
  color: #000 !important;
}

/* Download button changes */
.single_downloads li a {
  padding: 0;
  background: none;
}

.single .wp-block-cover h1 {
  font-size: 3em;
}

/* Icon hide */
.stk--svg-wrapper .stk--inner-svg svg:last-child,
.stk--svg-wrapper
  .stk--inner-svg
  svg:last-child
  :is(g, path, rect, polygon, ellipse) {
  display: none;
}

/* Fix download link clash */
.single_downloads li a:after {
  display: none;
}

/* Image max widths */
img {
  max-width: 100% !important;
}

/* Expand links */
article a {
  font-weight: bolder;
  text-decoration: none;
}

article a[href^="http"]:after {
  content: " <" attr(href) "> ";
}

/* But not internal anchor links or image links */
article a[href^="#"]:after,
article a:has(img, figure):after {
  content: "";
}

/* Page breaks  */
article {
  page-break-inside: auto;
}

ul,
ol,
img {
  page-break-inside: avoid;
}

a {
  page-break-inside: avoid;
}

blockquote {
  page-break-inside: avoid;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  page-break-after: avoid;
  page-break-inside: avoid;
}

table,
pre {
  page-break-inside: avoid;
}

/* Blogs */

h1.page-title,
div.page-description,
ul.entry-meta,
ul.entry-meta a {
  color: #000 !important;
}

.hero-section[data-type="type-2"] > [class*="ct-container"] {
  text-align: left !important;
  color: #000 !important;
  padding: 0 !important;
}

[data-prefix="single_blog_post"] .hero-section[data-type="type-2"] {
  background: none !important;
  background-image: none !important;
}

.wp-block-pullquote,
.ct-quote-widget blockquote {
  font-size: 18px !important;
}

/* Printed from message */

article::after {
  content: "From the RadHR.org Policy Library.";
  font-weight: 700;
}
