/* Optional, reusable layouts. Add these classes only where needed. */

/* Content below follows the complete content/sidebar grid. */
.layout-content-below {
  box-sizing: border-box;
  padding: 10px 20px;
}

/* Section spacing also applies to the inner wrappers of zebra Views rows. */
.layout-space-compact {
  --layout-section-space: 1rem;
}
.layout-space-normal {
  --layout-section-space: 2rem;
}
.layout-space-spacious {
  --layout-section-space: 4rem;
}
.layout-section {
  padding-block: var(--layout-section-space, 2rem);
}
.layout-section__inner {
  box-sizing: border-box;
  max-width: var(--abc-content-width, 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Use with pure-g and responsive pure-u-* columns. */
.layout-split {
  align-items: center;
  row-gap: 1.5rem;
}
.layout-split > [class*="pure-u"] {
  box-sizing: border-box;
  min-width: 0;
  padding-inline: 1rem;
}
.layout-split img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Equal-height cards; the action area stays at the bottom. */
.layout-cards {
  align-items: stretch;
  row-gap: 1rem;
}
.layout-cards > [class*="pure-u"] {
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  padding-inline: .5rem;
}
.layout-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem;
  color: var(--layout-card-text, #222);
  border: 1px solid var(--layout-border, #d5d5d5);
  background: var(--layout-card-background, #fff);
  overflow-wrap: anywhere;
}
.layout-card--featured {
  border-color: var(--layout-accent, #333);
  box-shadow: inset 0 3px var(--layout-accent, #333);
}
.layout-card__actions {
  margin-top: auto;
  padding-top: 1rem;
}
.layout-card > :first-child {
  margin-top: 0;
}
.layout-card > :last-child {
  margin-bottom: 0;
}
.rnd .layout-card {
  border-radius: .5rem;
}

/* Feature rows: an icon beside a heading and short description. */
.layout-features {
  row-gap: 1.5rem;
}
.layout-features > [class*="pure-u"] {
  box-sizing: border-box;
  min-width: 0;
  padding-inline: 1rem;
}
.layout-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.layout-feature__icon {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.layout-feature__body {
  min-width: 0;
  overflow-wrap: anywhere;
}
.layout-feature__body > :first-child {
  margin-top: 0;
}

/* Explicit foreground/background pairs keep buttons independent of presets. */
.layout-button,
a.layout-button:link,
a.layout-button:visited {
  display: inline-block;
  box-sizing: border-box;
  padding: .65em 1.2em;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  color: var(--layout-button-text, #fff);
  border: 2px solid var(--layout-accent, #333);
  background: var(--layout-accent, #333);
  font: inherit;
  line-height: 1.4;
  cursor: pointer;
}
.layout-button.layout-button--outline,
a.layout-button.layout-button--outline:link,
a.layout-button.layout-button--outline:visited {
  color: var(--layout-accent, #333);
  background: var(--layout-button-surface, #fff);
}
.layout-button:hover,
.layout-button:focus-visible {
  text-decoration: underline;
}
.layout-button:focus-visible {
  outline: 3px solid var(--layout-focus, #005fcc);
  outline-offset: 3px;
}
.rnd .layout-button {
  border-radius: .35rem;
}

/* Native video supplies playback controls, keyboard access and poster support. */
.layout-video {
  aspect-ratio: var(--layout-video-ratio, 16 / 9);
  overflow: hidden;
  background: #111;
}
.layout-video > video,
.layout-video > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.rnd .layout-video {
  border-radius: .5rem;
}

/*** MEDIA SCREENS (35.5, 48 & 64em) ***/

@media screen and (min-width: 48em) {
  .layout-split--reverse {
    flex-direction: row-reverse;
  }
}
@media screen and (max-width: 47.999em) {
  .layout-space-spacious {
    --layout-section-space: 2rem;
  }
}
