:root {
  --site-width: 1320px;
  --site-inset: 28px;
  --site-gutter: max(var(--site-inset), calc((100% - var(--site-width)) / 2));
  --site-background: #f4f6f1;
  --site-border: #dce2d7;
  --site-font: Inter, "Segoe UI", Arial, sans-serif;
}

.site-header, .site-footer { box-sizing: border-box; padding-inline: var(--site-gutter); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--site-border);
  font: 15px/1.4 var(--site-font);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #263c2b;
  text-decoration: none;
}
.site-brand strong { color: #24483c; font-size: 25px; font-weight: 750; letter-spacing: -1.3px; line-height: 1; }
.site-brand b { font-weight: 600; }
.site-brand img { display: block; width: 40px; height: 40px; flex: none; border-radius: 0; }

.site-nav, .site-menu nav { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-menu a, .site-account-entry, .site-menu summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #455840;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-menu a:hover, .site-menu summary:hover { background: #f4f6f1; }
.site-header [aria-current] { background: #ecf2e5; color: #345237; }
.site-account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-account-entry {
  border: 1px solid var(--site-border);
  background: #fff;
  color: #263c2b;
  font: inherit;
  cursor: pointer;
}
.site-account-entry:hover { background: #f4f6f1; }
.site-menu { display: none; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 13px;
  border-top: 1px solid var(--site-border);
  background: var(--site-background);
  color: #42523e;
  font: 14px/1.5 var(--site-font);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-footer nav a { color: inherit; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  :root { --site-inset: 16px; }
  .site-header { min-height: 60px; gap: 6px; font-size: 14px; }
  .site-brand { gap: 6px; }
  .site-brand strong { font-size: 20px; letter-spacing: -1px; }
  .site-brand img { width: 30px; height: 30px; }
  .site-account-entry, .site-menu summary { padding-inline: 7px; }
  .site-nav { display: none; }
  .site-menu { display: block; }
  .site-menu summary { cursor: pointer; }
  .site-menu nav {
    position: absolute;
    top: 100%;
    right: var(--site-inset);
    z-index: 1;
    display: grid;
    min-width: 165px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px #263c2b20;
  }
}
@media print {
  .site-header, .site-footer { display: none !important; }
}
@media (min-width: 961px) {
  html { scrollbar-gutter: stable both-edges; }
}
@media (max-width: 360px) {
  :root { --site-inset: 12px; }
  .site-header { gap: 4px; font-size: 13px; }
  .site-brand strong { font-size: 18px; }
  .site-account-entry, .site-menu summary { padding-inline: 5px; }
}
