/*
 * Styles for WDD-driven post pages (src/pages/[slug].astro).
 *
 * The .m4hbc-* rules below are lifted verbatim from the inline cs-inline-css
 * block of the legacy Cornerstone post export (fourth-annual-theme), so an
 * API-driven post renders identically to the hand-migrated ones. Cornerstone
 * generates these class names per template, they are not in cornerstone.css.
 *
 * The .entry-content rules at the bottom are new: legacy posts wrap their body
 * in Cornerstone .x-section/.x-column divs, but WDD returns plain TinyMCE HTML
 * (p, h2, ul, img, blockquote), so that markup needs its own typography.
 */

.m4hbc-0.x-grid {
  grid-gap: 0px 0px;
  justify-content: stretch;
  align-content: stretch;
  justify-items: stretch;
  align-items: stretch;
  z-index: auto;
  width: 100%;
  max-width: 100%;
  border: 0;
  font-size: 1em;
  grid-template-columns: minmax(18px, 1fr) minmax(0px, 1200px) minmax(
      18px,
      1fr
    );
  grid-template-rows: clamp(65px, 20vmin, 100px) auto clamp(
      65px,
      20vmin,
      100px
    ) auto auto;
}
.m4hbc-1 {
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 55%,
    rgba(0, 0, 0, 0) calc(100% - 18px)
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 55%,
    rgba(0, 0, 0, 0) calc(100% - 18px)
  );
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.m4hbc-2.x-cell {
  grid-column-start: 1;
  grid-column-end: -1;
  grid-row-start: 1;
  grid-row-end: -2;
  justify-self: stretch;
  background-color: #197492;
}
.m4hbc-3.x-cell {
  align-self: stretch;
  border: 0;
}
.m4hbc-4.x-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  z-index: auto;
  font-size: 1em;
}
.m4hbc-5.x-cell {
  grid-column-start: 2;
  grid-column-end: -2;
  justify-self: center;
}
.m4hbc-6.x-cell {
  grid-row-start: 2;
  grid-row-end: span 1;
  text-align: center;
}
.m4hbc-7.x-cell {
  grid-row-start: span 2;
  grid-row-end: -1;
  align-self: center;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  max-height: 460px;
  border-top-width: 3px;
  border-right-width: 3px;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 18px;
  background-color: #001224;
  box-shadow: 0em 0.65em 3em -1.25em rgba(0, 18, 36, 0.33);
}
.m4hbc-8.x-row {
  z-index: auto;
  border: 0;
  padding-top: 1px;
  padding-right: 1px;
  padding-bottom: 1px;
  padding-left: 1px;
}
.m4hbc-8 > .x-row-inner {
  flex-direction: row;
}
.m4hbc-9.x-row {
  margin-top: 0px;
  margin-bottom: 35px;
}
.m4hbc-9 > .x-row-inner {
  margin-top: calc(((0.167em / 2) + 1px) * -1);
  margin-right: calc(((0em / 2) + 1px) * -1);
  margin-bottom: calc(((0.167em / 2) + 1px) * -1);
  margin-left: calc(((0em / 2) + 1px) * -1);
}
.m4hbc-9 > .x-row-inner > * {
  margin-top: calc(0.167em / 2);
  margin-bottom: calc(0.167em / 2);
}
.m4hbc-a.x-row {
  margin-right: 0;
  margin-left: 0;
}
.m4hbc-b.x-row {
  font-size: 18px;
}
.m4hbc-c > .x-row-inner {
  justify-content: center;
}
.m4hbc-d > .x-row-inner {
  align-items: stretch;
  align-content: stretch;
}
.m4hbc-e.x-row {
  margin-top: 35px;
  margin-bottom: 0px;
}
.m4hbc-e > .x-row-inner {
  margin-top: calc(((6px / 2) + 1px) * -1);
  margin-right: calc(((35px / 2) + 1px) * -1);
  margin-bottom: calc(((6px / 2) + 1px) * -1);
  margin-left: calc(((35px / 2) + 1px) * -1);
}
.m4hbc-e > .x-row-inner > * {
  margin-top: calc(6px / 2);
  margin-bottom: calc(6px / 2);
  margin-right: calc(35px / 2);
  margin-left: calc(35px / 2);
}
.m4hbc-f.x-row {
  font-size: 1em;
}
.m4hbc-g.x-row {
  margin-right: auto;
  margin-left: auto;
}
.m4hbc-g > .x-row-inner {
  margin-top: calc(((9px / 2) + 1px) * -1);
  margin-bottom: calc(((9px / 2) + 1px) * -1);
}
.m4hbc-g > .x-row-inner > * {
  margin-top: calc(9px / 2);
  margin-bottom: calc(9px / 2);
}
.m4hbc-h > .x-row-inner {
  align-items: baseline;
  align-content: baseline;
  margin-right: calc(((12px / 2) + 1px) * -1);
  margin-left: calc(((12px / 2) + 1px) * -1);
}
.m4hbc-h > .x-row-inner > * {
  margin-right: calc(12px / 2);
  margin-left: calc(12px / 2);
}
.m4hbc-i > .x-row-inner {
  justify-content: flex-start;
  margin-right: calc(((9px / 2) + 1px) * -1);
  margin-left: calc(((9px / 2) + 1px) * -1);
}
.m4hbc-i > .x-row-inner > * {
  margin-right: calc(9px / 2);
  margin-left: calc(9px / 2);
}
.m4hbc-j {
  --gap: 0em;
}
.m4hbc-j > .x-row-inner > *:nth-child(1n - 0) {
  flex-basis: calc(auto - clamp(0px, var(--gap), 9999px));
}
.m4hbc-k {
  --gap: 35px;
}
.m4hbc-k > .x-row-inner > *:nth-child(1n - 0) {
  flex-basis: calc(auto - clamp(0px, var(--gap), 9999px));
}
.m4hbc-l {
  --gap: 12px;
}
.m4hbc-l > .x-row-inner > *:nth-child(1n - 0) {
  flex-basis: calc(auto - clamp(0px, var(--gap), 9999px));
}
.m4hbc-m {
  --gap: 9px;
}
.m4hbc-m > .x-row-inner > *:nth-child(1n - 0) {
  flex-basis: calc(auto - clamp(0px, var(--gap), 9999px));
}
.m4hbc-n.x-col {
  display: flex;
  align-items: center;
}
.m4hbc-o.x-col {
  flex-direction: row;
  justify-content: flex-start;
}
.m4hbc-p.x-col {
  z-index: 1;
  border: 0;
  font-size: 1em;
}
.m4hbc-q.x-col {
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
}
.m4hbc-r.x-text {
  border: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  letter-spacing: 0em;
  text-transform: none;
}
.m4hbc-r.x-text > :first-child {
  margin-top: 0;
}
.m4hbc-r.x-text > :last-child {
  margin-bottom: 0;
}
.m4hbc-s.x-text {
  padding-top: 0em;
  padding-right: 0.512em;
  padding-bottom: 0em;
  padding-left: 0.512em;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(227, 240, 252, 0.77);
}
.m4hbc-t.x-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #425466;
}
.m4hbc-u.x-text {
  max-width: 18em;
  font-size: 64px;
}
.m4hbc-u.x-text .x-text-content-text-primary {
  line-height: 1.05;
  color: #ffffff;
}
.m4hbc-v.x-text {
  border: 0;
}
.m4hbc-v.x-text .x-text-content-text-primary {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0em;
  text-transform: none;
}
.m4hbc-x.x-text {
  font-size: 18px;
}
.m4hbc-x.x-text .x-text-content-text-primary {
  line-height: 1.4;
  color: rgba(227, 240, 252, 0.77);
}
.m4hbc-y.x-text .x-text-content {
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: baseline;
}
.m4hbc-y.x-text:hover .x-text-content-text-primary,
.m4hbc-y.x-text[class*="active"] .x-text-content-text-primary,
[data-x-effect-provider*="colors"]:hover
  .m4hbc-y.x-text
  .x-text-content-text-primary {
  color: #ffffff;
}
.m4hbc-y.x-text .x-graphic {
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 9px;
}
.m4hbc-y.x-text .x-graphic-icon {
  font-size: 1em;
  width: auto;
  border: 0;
  color: rgba(227, 240, 252, 0.77);
}
.m4hbc-y.x-text:hover .x-graphic-icon,
.m4hbc-y.x-text[class*="active"] .x-graphic-icon,
[data-x-effect-provider*="colors"]:hover .m4hbc-y.x-text .x-graphic-icon {
  color: #ffffff;
}
.m4hbc-z.x-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  height: 100%;
}
.m4hbc-10.x-div {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  border: 0;
  font-size: 1em;
}
.m4hbc-11.x-div {
  width: 100%;
}
.m4hbc-13.x-div {
  max-width: 720px;
  margin-top: 0px;
  margin-right: auto;
  margin-bottom: 0px;
  margin-left: auto;
}
.m4hbc-14.x-image {
  display: block;
  font-size: 1em;
  width: 100%;
  max-width: 100%;
  border: 0;
}
.m4hbc-14.x-image img {
  width: 100%;
  object-fit: cover;
}
.m4hbc-14.x-image,
.m4hbc-14.x-image img {
  height: 100%;
  max-height: 100%;
}
.m4hbc-15.x-section {
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  border: 0;
  padding-top: 100px;
  padding-right: 0px;
  padding-bottom: 100px;
  padding-left: 0px;
  background-color: #ffffff;
  z-index: auto;
}
.m4hbc-16 {
  width: 100%;
  max-width: none;
  margin-top: 54px;
  margin-right: 0px;
  margin-bottom: 54px;
  margin-left: 0px;
  border-top-width: 1em;
  border-right-width: 0;
  border-bottom-width: 0;
  border-left-width: 0;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: rgba(10, 37, 64, 0.11);
  border-right-color: rgba(10, 37, 64, 0.11);
  border-bottom-color: rgba(10, 37, 64, 0.11);
  border-left-color: rgba(10, 37, 64, 0.11);
  font-size: 2px;
}
.m4hbc-17.x-anchor {
  border: 0;
  font-size: 1em;
}
.m4hbc-17.x-anchor .x-anchor-content {
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.m4hbc-17.x-anchor .x-graphic-icon {
  font-size: 1em;
  width: auto;
  border: 0;
  color: #0a2540;
}
.m4hbc-17.x-anchor:hover .x-graphic-icon,
.m4hbc-17.x-anchor[class*="active"] .x-graphic-icon,
[data-x-effect-provider*="colors"]:hover
  .m4hbc-17.x-anchor
  .x-graphic-icon {
  color: #0073e6;
}
@media screen and (min-width: 480px) and (max-width: 766.98px) {
  .m4hbc-u.x-text {
    font-size: 54px;
  }
}
@media screen and (max-width: 479.98px) {
  .m4hbc-u.x-text {
    font-size: 36px;
  }
}
/* --- Post body: plain TinyMCE HTML from the WDD API --- */

.entry-content.wdd-content {
  font-size: 1.15rem;
  line-height: 1.7;
}

.entry-content.wdd-content > *:first-child {
  margin-top: 0;
}

.entry-content.wdd-content > *:last-child {
  margin-bottom: 0;
}

.entry-content.wdd-content p {
  margin: 0 0 1.5em;
}

.entry-content.wdd-content h2,
.entry-content.wdd-content h3,
.entry-content.wdd-content h4 {
  margin: 1.8em 0 0.6em;
  line-height: 1.15;
}

.entry-content.wdd-content h2 {
  font-size: 2.4em;
}

.entry-content.wdd-content h3 {
  font-size: 1.9em;
}

.entry-content.wdd-content h4 {
  font-size: 1.5em;
}

.entry-content.wdd-content ul,
.entry-content.wdd-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.entry-content.wdd-content li {
  margin-bottom: 0.5em;
}

.entry-content.wdd-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.entry-content.wdd-content figure {
  margin: 0 0 1.5em;
}

.entry-content.wdd-content figcaption {
  color: #555;
  font-size: 0.85em;
  text-align: center;
  margin-top: 0.5em;
}

.entry-content.wdd-content blockquote {
  margin: 0 0 1.5em;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 4px solid #197492;
  font-style: italic;
}

.entry-content.wdd-content pre {
  overflow-x: auto;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Menlo, Consolas, monaco, monospace;
  font-size: 0.85em;
}

.entry-content.wdd-content code {
  font-family: Menlo, Consolas, monaco, monospace;
  font-size: 0.9em;
}

.entry-content.wdd-content table {
  width: 100%;
  margin: 0 0 1.5em;
  border-collapse: collapse;
}

.entry-content.wdd-content th,
.entry-content.wdd-content td {
  padding: 0.5em 0.75em;
  border: 1px solid rgba(10, 37, 64, 0.15);
  text-align: left;
}

.entry-content.wdd-content iframe {
  max-width: 100%;
}

/* Tag list under the post body. */
.wdd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(10, 37, 64, 0.11);
}

.wdd-tags span {
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background-color: rgba(25, 116, 146, 0.1);
  color: #197492;
  font-size: 0.9rem;
}
