/* ------------------------------------------------------------
   LAYOUT.CSS — Clean Architecture Rebuild (2025-12-11)
   Global layout + hero header + footer (workspace shell)
------------------------------------------------------------- */

/* ------------------------------------------------------------
   0. ROOT LAYOUT
------------------------------------------------------------- */

.app-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--xxi-bg-base);
}

#app-root {
  flex: 1;
  width: 100%;
}

/* Generic page spacing */
.app-main {
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   1. HERO HEADER
------------------------------------------------------------- */

.xxi-header-shell {
  width: 100%;
  padding: 1.8rem 0 2rem;
  background: var(--xxi-copper-gradient); /* defined in tokens.css */
  color: #F7F4EF;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.xxi-header-hero {
  width: 100%;
  max-width: 1280px;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* ------------------------------------------------------------
   HERO TYPOGRAPHY (matching home-page hero)
------------------------------------------------------------- */

.xxi-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.xxi-header-h1 {
  margin: 0;
  font-family: var(--xxi-font-sans);
  font-size: 1.75rem;  /* ~28px */
  font-weight: 500;
  line-height: 1.25;
  color: #F7F4EF;
}

.xxi-header-h2 {
  margin: 0;
  font-family: var(--xxi-font-sans);
  font-size: 1.0625rem; /* ~17px */
  font-weight: 400;
  color: rgba(247, 244, 239, 0.85);
}

/* ------------------------------------------------------------
   RIGHT-SIDE ICON BAR
------------------------------------------------------------- */

.xxi-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Icon button — invisible frame, no pill */
.xxi-icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The masked icon itself */
.xxi-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  background-color: #F7F4EF; /* off-white over copper */
}

/* Hover — very subtle lift */
.xxi-icon-btn:hover .xxi-icon {
  opacity: 0.8;
}

/* ------------------------------------------------------------
   2. SEAMLESS FOOTER
------------------------------------------------------------- */

.xxi-footer-seamless {
  width: 100%;
  padding: 1.25rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--xxi-font-sans);
  font-size: 0.875rem;
  color: var(--xxi-text-soft);
  background: var(--xxi-bg-base);
  margin-top: auto;
}

.xxi-footer-seamless a {
  color: var(--xxi-text-soft);
  text-decoration: none;
  cursor: pointer;
}

.xxi-footer-seamless a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   3. GENERIC PAGE SHELL
   (kept minimal — no interference with header/footer)
------------------------------------------------------------- */

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* ------------------------------------------------------------
   END OF FILE
------------------------------------------------------------- */
