header.site-header {
  box-sizing: border-box;
  display: block;
  height: auto;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 54px);
  border-bottom: 1px solid #dce4d9;
  color: #233e35;
  font-family: 'DM Sans', system-ui, sans-serif;
}
/* The daily almanac uses Collingwood local time on every tool. */
.site-header__sun {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 3px 18px;
  padding: 7px 0;
  border-bottom: 1px solid #dce4d9;
  font-size: 13px;
  line-height: 1.45;
}
.site-header__sun-place { color: #4b6357; }
#site-sun-date { white-space: nowrap; }
#site-sun-date:not(:empty)::before { content: '· '; }
.site-header__sun-times { display: inline-flex; gap: 12px; align-items: baseline; }
.site-header__sun-times > span { white-space: nowrap; }
.site-header__sun-times strong { font-weight: 700; font-variant-numeric: tabular-nums; }
#site-sun-source { font-size: 12px; color: #4b6357; margin: 0; }
#site-sun-source:empty { display: none; }
#site-sun-source a { color: inherit; text-underline-offset: 2px; }
#site-sun-source button {
  color: inherit; background: transparent; border: 0; padding: 0; font: inherit;
  text-decoration: underline; cursor: pointer;
}

.site-header__nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-header__nav a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  color: inherit;
  line-height: 1.25;
  text-decoration: none;
}
.site-header__brand {
  gap: 10px;
  margin-right: auto;
  font-size: 20px;
  letter-spacing: -.8px;
}
.site-header__brand svg {
  width: 31px;
  height: 31px;
  padding: 4px;
  border-radius: 8px;
  color: #fff;
  background: #285447;
}
.site-header__link {
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.site-header__link:hover { background: #edf2e9; }
.site-header__link[aria-current] { background: #e5ede2; font-weight: 700; }
.site-header__changelog { margin-left: 12px; }
.site-header__nav a:focus-visible { outline: 2px solid #90401c; outline-offset: 2px; }

@media (max-width: 680px) {
  .site-header__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 3px;
    padding-block: 6px;
  }
  .site-header__brand { grid-row: 1; grid-column: 1 / 3; justify-self: start; }
  .site-header__link { grid-row: 2; padding-inline: 5px; }
  .site-header__changelog { grid-row: 1; grid-column: 3 / 4; justify-self: end; margin: 0; }
}
@media print { header.site-header { display: none; } }
