/* Layout - Common Layout Structure Only */

/* =========================================================
   LAYOUT.CSS

   Purpose: Define pure layout structure for header/main/footer

   Rules:
   - NO component styles (buttons, cards, badges)
   - NO colors (use tokens only)
   - NO animations
   - NO page-specific styles (home-*, portal-*, etc.)

   ========================================================= */

/* Main Layout Structure */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Layout - Basic structure only (detailed styles in components.css) */

/* Main Content Layout */
#app-content {
  flex: 1;
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--header-height);
}

/* Footer Layout */
#site-footer {
  background-color: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

/* Container - Horizontal Centering & Max Width */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Section Vertical Spacing */
section {
  padding-block: var(--space-16);
}

section + section {
  margin-top: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  section {
    padding-block: var(--space-12);
  }
}

@media (max-width: 480px) {
  section {
    padding-block: var(--space-8);
  }
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}
