/* mast (header) + nav-button (burger) */

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mast .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.mast .site-name {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--graphite);
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
}
.mast .site-name .mark { font-weight: 700; }
.mast .site-name .sub {
  font-family: var(--ff-body);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-top: 2px;
}

.mast .menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
  align-items: center;
}
.mast .menu li { margin: 0; }
.mast .menu a {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--graphite);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.mast .menu a:hover, .mast .menu a[aria-current="page"] {
  border-bottom-color: var(--terracotta);
  color: var(--terracotta-deep);
}

.mast .cta-line { display: none; }

.nav-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  cursor: pointer;
  gap: 5px;
  padding: 0;
}
.nav-button span {
  display: block;
  width: 20px; height: 1px;
  background: var(--graphite);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 60;
  padding: 100px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
}
.drawer[data-open="true"] { transform: translateY(0); }
.drawer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer a {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--graphite);
  text-decoration: none;
}
.drawer .small {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--mist);
  margin-top: 24px;
}
.drawer .small a {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--terracotta-deep);
}

@media (min-width: 880px) {
  .mast .menu { display: flex; }
  .nav-button { display: none; }
  .drawer { display: none !important; }
  .mast .cta-line {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 0.85rem;
    color: var(--graphite);
    margin-left: 24px;
    padding-left: 24px;
    border-left: 1px solid var(--line);
    text-decoration: none;
  }
  .mast .cta-line .num { color: var(--terracotta-deep); }
}

/* breadcrumbs */
.crumbs {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  color: var(--mist);
  padding: 20px 0 0;
}
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--terracotta-deep); }
.crumbs .sep { margin: 0 6px; opacity: 0.5; }
