/* Layout: container, sections, page banner, breadcrumb. */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main {
  display: block;
  min-height: 50vh;
  padding-bottom: 2.25rem; /* the original's white strip above the footer */
  background: var(--color-bg);
}

.section {
  padding-block: var(--space-7);
}

.section--soft {
  background: var(--color-bg-soft);
}

.prose {
  max-width: 72ch;
}

/* Page text runs the full content width, as on the original site. */
.page-body,
.category-intro,
.product-body {
  max-width: none;
}

/* Inner-page title band */
.page-banner {
  position: relative;
  min-height: 5.375rem; /* 86px, as the original */
  padding-block: var(--space-5);
  background: var(--color-primary-dark);
  color: var(--color-on-brand);
}

/* Soft curved shadow under the header (theme shadow-4.png). */
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3.25rem;
  background: url("../img/theme/shadow-4.png") 50% 0 no-repeat;
  pointer-events: none;
}

.page-banner :focus-visible {
  outline-color: var(--color-focus-on-brand);
}

.page-banner > .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
}

.page-banner__title {
  margin: 0;
  color: var(--color-on-brand);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: var(--leading-tight);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: rgb(255 255 255 / 0.9);
}

.breadcrumb li + li::before {
  content: "›";
  margin-inline: var(--space-2);
}

.breadcrumb a {
  color: var(--color-on-brand);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-on-brand);
}

@media (min-width: 960px) {
  :root {
    --gutter: 2rem;
  }

  .section {
    padding-block: var(--space-8);
  }

  .page-banner {
    padding-block: var(--space-7) var(--space-6);
  }
}
