/* Shared page layout — hero band + main content shell */

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.bearing-page {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background: #fff;
  color: var(--ink);
}

.page-shell {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
  min-width: 0;
}

.page-hero-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 50%, #f1f5f9 100%);
}

.page-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image:
    linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.page-hero-band__inner {
  position: relative;
  min-width: 0;
}

.page-main {
  min-width: 0;
  padding-block: 64px 80px;
  background: #fff;
}

.page-hero-band .breadcrumb {
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
}

.page-hero-band .breadcrumb span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-hero-band .breadcrumb span:not(:last-child)::after {
  margin-left: 8px;
}

.bearing-page .btn {
  max-width: 100%;
  text-align: center;
}

@media (min-width: 1024px) {
  .page-shell {
    padding-inline: 40px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-inline: 16px;
  }

  .page-main {
    padding-block: 40px 56px;
  }

  .page-hero-band .breadcrumb {
    min-height: auto;
    padding: 12px 0 4px;
    gap: 6px 10px;
    font-size: 10px;
    letter-spacing: .06em;
  }
}
