/* Load after atelier-v26.css and module-shell.css. */
.compact-ready .site-header { background: #08131c; }
.compact-ready .compact-shell.atelier-shell {
  --av-layout-gutter: clamp(20px, 4vw, 76px);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(var(--av-layout-gutter), calc((100% - 1608px) / 2));
}

/* The ornamental layer spans the full shell, including its inner gutters.
   Keep the existing 24px bleed for the small parallax translation. */
.compact-ready .compact-shell.atelier-shell::before {
  inset: -24px 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* A short section still needs enough document height for scrollIntoView to
   align the tabs below the sticky header. Subtabs live INSIDE this panel;
   their natural height is included, so it must not be subtracted again. */
.compact-ready .compact-shell.atelier-shell > .compact-panel {
  min-width: 0;
  min-height: calc(100vh - var(--av-header, 80px) - var(--av-tabs, 66px));
  min-height: calc(100svh - var(--av-header, 80px) - var(--av-tabs, 66px));
}

.compact-ready footer.atelier-footer {
  --av-layout-gutter: clamp(20px, 4vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: stretch;
  width: 100%;
  max-width: none;
  gap: 24px;
  padding: 28px max(var(--av-layout-gutter), calc((100% - 1608px) / 2));
}

.compact-ready footer.atelier-footer > .footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 28px;
  min-width: 0;
}

.compact-ready footer.atelier-footer > .footer-brand > .wordmark {
  flex-shrink: 0;
  font-size: clamp(26px, 2vw, 32px);
}

.compact-ready footer.atelier-footer > .footer-brand > p {
  margin: 0;
  font-size: 12px;
}

/* Reset the original footer nav's 26rem cap and the v26 two-column layout. */
.compact-ready footer.atelier-footer > nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  gap: 0 clamp(14px, 2vw, 36px);
}

.compact-ready footer.atelier-footer > nav > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 60px;
  padding: 16px 0;
  gap: 10px;
  font-size: clamp(13px, 1.25vw, 18px);
  white-space: normal;
  overflow-wrap: anywhere;
}

.compact-ready footer.atelier-footer > nav > a > span {
  flex-shrink: 0;
}

.compact-ready footer.atelier-footer > .footer-bottom {
  grid-column: 1 / -1;
  min-width: 0;
  flex-wrap: wrap;
  padding-top: 16px;
}

@media (max-width: 600px) {
  .compact-ready .compact-shell.atelier-shell,
  .compact-ready footer.atelier-footer {
    --av-layout-gutter: 16px;
  }

  .compact-ready .compact-shell.atelier-shell > .compact-tabs {
    margin-inline: -16px;
    padding-inline: 8px;
  }

  .compact-ready footer.atelier-footer {
    gap: 20px;
    padding-block: 24px;
  }

  .compact-ready footer.atelier-footer > .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .compact-ready footer.atelier-footer > nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .compact-ready footer.atelier-footer > nav > a {
    min-height: 64px;
    font-size: 14px;
  }
}
