/* Shared chrome: the site frame that aligns header, page content and footer to one
   width, and the header and footer components themselves. Selectors here carry the
   .site- prefix, which marks the parts of a page that every page shares.

   Values follow the live public site's inner-page masthead and footer, which is what
   these user-service pages are aligned with: the header has no background or border of
   its own, so the page's gradient runs through it, and the navigation and actions sit
   on a row beneath the brand with the actions at the right. */

.site-frame {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.5rem var(--frame-inline-padding) 0;
}

.site-header {
  margin: 0 0 22px;
}

.site-brand {
  margin: 0 12px 12px;
  font-family: Arial, sans-serif;
  color: var(--ink);
}

.site-brand-title {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 2.05rem;
  line-height: 0.95;
  color: inherit;
  text-decoration: none;
}

.site-brand-strap {
  display: block;
  margin-top: 2px;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 0.72rem;
  line-height: 1.1;
  color: var(--strap-ink);
}

.site-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  min-width: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  margin: 0 12px 22px;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.site-nav-link {
  color: var(--chrome-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav-link:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.site-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  margin: 0 12px 18px 0;
}

.site-action {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-action-login {
  padding: 4px 12px;
  border: 1px solid var(--cta-bg);
  background: var(--cta-ink);
  color: var(--cta-bg);
  font-size: 0.82rem;
}

.site-action-login:hover {
  background: #ffffff;
  border-color: #551612;
  color: #551512;
}

.site-action-search {
  padding: 4px 13px;
  border: 1px solid var(--cta-bg);
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-size: 0.88rem;
}

.site-action-search:hover {
  background: #7f2a24;
  border-color: #7f2a24;
  color: #ffffff;
}

.site-action-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-footer {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  width: 100%;
  margin: 38px auto 10px;
  padding: 18px 12px 8px;
  border-top: 1px solid var(--footer-line);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--chrome-quiet);
  text-align: center;
}

.site-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.site-footer-separator {
  color: var(--footer-separator);
}

/* Formatting overrides for narrow displays, e.g. mobile: branding and the actions on
   the first row, the navigation beneath on the same left edge as the branding. */
@media (max-width: 40rem) {
  .site-frame {
    padding: 0.875rem 0.75rem 0;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: start;
    padding-top: 10px;
    min-width: 0;
  }

  .site-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin-bottom: 4px;
  }

  .site-brand-title {
    font-size: 1.7rem;
  }

  .site-brand-strap {
    font-size: calc(0.68rem - 2pt);
    font-weight: 600;
  }

  .site-header-row {
    display: contents;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 4px;
  }

  .site-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0 12px 0 0;
  }

  .site-action {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .site-action-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .site-footer {
    gap: 5px 8px;
    margin-top: 28px;
    padding: 15px 10px 6px;
    font-size: 0.76rem;
  }
}
