﻿html:has(.squinky-app-shell),
body:has(.squinky-app-shell) {
  height: 100%;
  overflow: hidden;
}

.squinky-app-shell {
  --squinky-sidebar-width: 4.5rem;
  --squinky-topbar-height: 4.5rem;
  display: grid;
  grid-template-columns: var(--squinky-sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--squinky-topbar-height) minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  color: #25322e;
  background:
    radial-gradient(circle at 22% 18%, rgba(47, 111, 93, 0.14), rgba(47, 111, 93, 0) 24rem),
    linear-gradient(135deg, #edf4f0, #f7f8f6 54%, #eef2f7);
}

.squinky-app-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: var(--squinky-topbar-height);
}

.squinky-app-navigation {
  grid-column: 1;
  grid-row: 2;
  --site-topbar-height: var(--squinky-topbar-height);
  --menu-width: min(82vw, 20rem);
  min-height: 0;
}

.squinky-app-frame {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.squinky-dock-ribbon {
  min-width: 0;
  border-bottom: 1px solid #d4ddd8;
  background: #ffffff;
}

.squinky-dock-main {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #eef3f0;
}

.squinky-dock-host,
.squinky-dock-host .aetheon-dock-host {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: #eef3f0;
}

.squinky-dock-status-bar {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
  border-top: 1px solid #d4ddd8;
}

.barracks-document__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dce5e0;
}

.barracks-document__hero h1 {
  margin: 0.25rem 0 0;
  color: #25322e;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 300;
  line-height: 1.05;
}

.barracks-document__hero p {
  margin: 0.6rem 0 0;
  color: #5f6e69;
  line-height: 1.5;
}

.barracks-document__hero .site-button {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 52rem) {
  html:has(.squinky-app-shell),
  body:has(.squinky-app-shell) {
    overflow: auto;
  }

  .squinky-app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(34rem, 1fr) auto;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .squinky-app-topbar {
    grid-column: 1;
    grid-row: 1;
  }

  .squinky-app-navigation {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    min-height: auto;
    padding: 0.65rem 1rem;
    border-right: 0;
    border-bottom: 1px solid #d4ddd8;
  }

  .squinky-app-frame {
    grid-column: 1;
    grid-row: 3;
    min-height: 34rem;
    overflow: visible;
  }

  .squinky-dock-main {
    overflow: visible;
  }

  .squinky-dock-status-bar {
    grid-column: 1;
    grid-row: 4;
  }

  .barracks-document__hero {
    grid-template-columns: 1fr;
  }

  .barracks-document__hero .site-button {
    justify-self: start;
  }
}