/* App shell: top bar, navigation, deadline chip, footer, phone tab bar. */

.atlas-topbar { background: var(--paper); border-bottom: 1px solid var(--silt); position: sticky; top: 0; z-index: 1100; }
body.admin-bar .atlas-topbar { top: 32px; }
.atlas-topbar-inner { max-width: 1320px; margin: 0 auto; padding: 10px 24px; min-height: 60px; display: flex; align-items: center; gap: 28px; }
.atlas-brand { flex: none; }
.atlas-brand img { display: block; max-height: 40px; width: auto; }
.atlas-wordmark { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--peat); text-decoration: none; }
.atlas-wordmark:hover { color: var(--dyke); }

.atlas-nav { flex: 1; min-width: 0; }
.atlas-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.atlas-nav-list a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--peat); font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
.atlas-nav-list a:hover { background: var(--sky); }
.atlas-nav-list .current-menu-item a, .atlas-nav-list .current_page_item a { font-weight: 700; box-shadow: inset 0 -3px 0 var(--rape); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

.atlas-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--dyke-deep); color: #fff; font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
a.atlas-chip:hover { background: var(--dyke); color: #fff; }
.atlas-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--rape); }
.atlas-chip-closed { background: transparent; color: var(--muted); border: 1px solid var(--silt-deep); }
.atlas-chip-closed i { background: var(--silt-deep); }

.atlas-main { min-height: 60vh; }
.atlas-wrap { max-width: 1320px; margin: 0 auto; padding: 40px 24px 64px; }
.atlas-wrap-narrow { max-width: 808px; }
.atlas-pagehead { background: var(--dyke-deep); color: #fff; border-bottom: 6px solid var(--rape); }
.atlas-pagehead .atlas-wrap { padding-top: 48px; padding-bottom: 40px; }
.atlas-pagehead h1 { margin: 0; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; }

.atlas-footer { background: var(--peat); color: #cfcabf; }
.atlas-footer-inner { max-width: 1320px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; font-size: 0.875rem; line-height: 1.55; }
.atlas-footer strong { color: #fff; font-size: 1rem; }
.atlas-footer p { margin: 6px 0 0; max-width: 56ch; }
.atlas-footer a { color: #fff; }
.atlas-footer-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }

.atlas-byline { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding-top: 24px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.16); width: 100%; color: #cfcabf; font-size: 0.875rem; text-decoration: none; }
.atlas-byline img { display: block; width: 120px; height: auto; }
.atlas-byline:hover span { color: #fff; }

.atlas-tabbar { display: none; }

@media (max-width: 782px) {
  body.admin-bar .atlas-topbar { top: 46px; }
}
@media (max-width: 767px) {
  .atlas-topbar-inner { padding: 8px 16px; min-height: 52px; gap: 12px; justify-content: space-between; }
  .atlas-nav { display: none; }
  .atlas-chip { padding: 6px 12px; font-size: 0.8125rem; }
  .atlas-wrap { padding: 28px 16px 48px; }
  .atlas-footer-inner { grid-template-columns: 1fr; gap: 20px; padding: 32px 16px calc(32px + 64px); }
  .atlas-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: var(--paper); border-top: 1px solid var(--silt); padding-bottom: env(safe-area-inset-bottom); }
  .atlas-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; color: var(--muted); font-size: 0.6875rem; font-weight: 600; text-decoration: none; }
  .atlas-tab svg { width: 22px; height: 22px; }
  .atlas-tab.active { color: var(--dyke); box-shadow: inset 0 3px 0 var(--rape); }
}
