/*
 * Shell Component Styles — Default CMS Theme
 *
 * Base styles for the shell components (header, nav, footer, layout).
 * Consumes the Material 3 tokens from material3-tokens.css.
 * MFEs should consume tokens directly, not these shell styles.
 */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font: var(--md-sys-typescale-body-large-font);
  color: var(--md-sys-color-on-background);
  background-color: var(--md-sys-color-background);
}

/* Shell layout */
.cms-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cms-shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
  background-color: var(--md-sys-color-surface);
  box-shadow: var(--md-sys-elevation-level1);
  z-index: 10;
}

.cms-shell__header-title {
  font: var(--md-sys-typescale-title-large-font);
  color: var(--md-sys-color-on-surface);
}

.cms-shell__nav {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.cms-shell__nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--md-sys-shape-corner-small);
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.cms-shell__nav-link:hover {
  background-color: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface);
}

.cms-shell__nav-link--active {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.cms-shell__main {
  flex: 1;
  padding: 1.5rem;
}

.cms-shell__footer {
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* Utility */
.cms-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
