/* ============================================================================
   EVALIA — Layout
   Topbar (logo + eyebrow + nav), shell, footer.
   ============================================================================ */

body {
  background: linear-gradient(180deg, #F7FAFD 0%, #F2F6FB 100%);
  background-attachment: fixed;
}

/* ---------- TOPBAR ---------- */
header.topbar {
  height: var(--topbar-h);
  padding: 0 var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-bright);
  border-bottom: 1px solid var(--line);
}

.topbar .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.topbar .brand:hover { opacity: .8; }
.topbar .brand .logo {
  height: 28px;
  width: auto;
  display: block;
}

.brand-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
  flex-shrink: 0;
}

.brand-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface);
  white-space: nowrap;
}

.topbar .crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-surface-muted);
  padding-left: var(--s-3);
  border-left: 1px solid var(--line);
  max-width: 30%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .nav {
  margin-left: auto;
  display: flex;
  gap: var(--s-2);
  align-items: center;
}

@media (max-width: 640px) {
  header.topbar { padding: 0 var(--s-4); gap: var(--s-3); }
  .brand-sep, .brand-eyebrow { display: none; }
  .topbar .crumb { display: none; }
  .topbar .nav .btn span { display: none; }
}

/* ---------- WRAP / CONTAINER ---------- */
.wrap {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-7) var(--s-6) var(--s-9);
}
@media (max-width: 640px) {
  .wrap { padding: var(--s-5) var(--s-4) var(--s-8); }
}

/* ---------- FOOTER ---------- */
footer.site {
  background: var(--surface-bright);
  border-top: 1px solid var(--line);
  padding: var(--s-7) var(--s-6) var(--s-5);
  margin-top: var(--s-9);
}
footer.site .ft-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 780px) {
  footer.site .ft-inner { grid-template-columns: 1fr; gap: var(--s-6); }
}
footer.site .ft-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--s-3);
}
footer.site .ft-brand .logo-ft {
  height: 24px;
  width: auto;
  display: block;
}
footer.site .ft-tagline {
  font-size: var(--fs-13);
  color: var(--on-surface-muted);
  max-width: 42ch;
  line-height: 1.6;
}
footer.site h5 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 0 var(--s-3);
}
footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
footer.site a {
  color: var(--on-surface-muted);
  text-decoration: none;
  font-size: var(--fs-13);
  font-weight: 500;
  transition: color var(--t-fast);
}
footer.site a:hover { color: var(--primary); }

footer.site .ft-bottom {
  max-width: var(--container);
  margin: var(--s-6) auto 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 12px;
  color: var(--on-surface-faint);
}
footer.site .ft-bottom .by a {
  color: var(--on-surface-muted);
  font-weight: 500;
}
footer.site .ft-bottom .by a:hover { color: var(--primary); }
