/* Default school template – GOV.UK-inspired header + hero + content.
   All templates live under public/templates; this mirrors the React default layout. */

.default-root {
  min-height: 100%;
}

.default-header-strip {
  border-bottom: 1px solid #e2e8f0;
  background: #e2e8f0;
}

.default-header-hero {
  position: relative;
  height: 112px;
  width: 100%;
  background-size: cover;
  background-position: center bottom;
  background-color: #e2e8f0;
}

.default-header-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 28%,
    rgba(255, 255, 255, 0.28) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}

.default-header-inner {
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  padding: 12px 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
}

/* New markup: hero wrapper carries the background image */
.default-header-hero .default-header-inner {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

/* Legacy DB templates: inner is a direct child of the strip (no hero wrapper) */
.default-header-strip > .default-header-inner {
  position: relative;
  min-height: 112px;
  max-width: none;
  background-image: var(--sc-school-header-image, none);
  background-size: cover;
  background-position: center bottom;
  background-color: #e2e8f0;
  isolation: isolate;
  padding-left: max(16px, calc((100% - 1100px) / 2 + 16px));
  padding-right: max(16px, calc((100% - 1100px) / 2 + 16px));
}

.default-header-strip > .default-header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 28%,
    rgba(255, 255, 255, 0.28) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.default-header-strip > .default-header-inner > * {
  position: relative;
  z-index: 1;
}

.default-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  flex: 1;
  min-width: 0;
}

.default-title-link {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
}

.default-title-link:hover {
  text-decoration: underline;
}

/* Hero carousel removed from default Schoolcentra profile template */
.default-hero-band {
  display: none !important;
}

.default-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 56px;
}

.default-content-inner {
  /* Wrapper for #main-content */
}
