/* The site nav: menu button, logo and slogan in the top bar, and the drawer the button opens.
   Made by cms/build.py (site_nav) on every page. Sizes match the bar the site had before:
   65px tall, 40px side padding and an 80px logo; on phones 20px padding, a 50px logo and the slogan at 2.5vw. */

header.jt-nav {
  box-sizing: border-box;
  width: 100%;
  height: 65px;
  padding: 0 40px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  z-index: 10;
}
header.jt-nav--sticky { position: sticky; top: 0; }

.jt-nav__btn {
  width: 44px; height: 44px; margin-left: -12px; padding: 0;
  border: 0; border-radius: 22px; background: none; color: #000;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.jt-nav__btn:focus-visible, .jt-drawer a:focus-visible { outline: 2px solid #A30B1F; outline-offset: 2px; }
.jt-nav__logo { display: flex; justify-self: center; }
.jt-nav__logo img { width: 80px; height: auto; display: block; }
.jt-nav__slogan {
  justify-self: end; white-space: nowrap;
  font-family: var(--font-sans, Helveticaneue, Arial, sans-serif); font-weight: 300; font-size: 14px; line-height: 20px; color: var(--color-ink, #333);
}

@media screen and (max-width: 479px) {
  header.jt-nav { padding: 0 20px; }
  .jt-nav__logo img { width: 50px; }
  .jt-nav__slogan { font-size: 2.5vw; color: #000; }
}

/* ---- the drawer ---- */
html.jt-nav-open { overflow: hidden; }
.jt-drawer { position: fixed; inset: 0; z-index: 1000; }
.jt-drawer[hidden] { display: none; }
.jt-drawer__scrim { position: absolute; inset: 0; background: rgba(20, 20, 19, .45); opacity: 0; transition: opacity .25s ease; }
.jt-drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(316px, 85vw); box-sizing: border-box;
  background: var(--color-cream, #faf6ef); color: var(--color-ink, #333);
  font-family: var(--font-sans, Helveticaneue, Arial, sans-serif);
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: 8px 0 32px rgba(0, 0, 0, .18);
  transform: translateX(-100%); transition: transform .28s ease;
}
.jt-drawer.is-open .jt-drawer__scrim { opacity: 1; }
.jt-drawer.is-open .jt-drawer__panel { transform: none; }

.jt-drawer__top {
  height: 65px; padding: 0 24px 0 20px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e6dfd2;
}
.jt-drawer__logo { display: flex; }
.jt-drawer__logo img { width: 50px; height: auto; display: block; }

.jt-drawer__links { list-style: none; margin: 0; padding: 12px 24px 0; }
.jt-drawer__links li { border-bottom: 1px solid #e6dfd2; }
.jt-drawer__row {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-serif, Charter, Georgia, serif); font-size: 28px; line-height: 1.2;
  color: var(--color-ink, #333); text-decoration: none;
}
a.jt-drawer__row:hover, a.jt-drawer__row[aria-current="page"] { color: #A30B1F; }
.jt-drawer__row--soon { color: #6b655c; }
.jt-pill {
  padding: 6px 12px; border: 1px solid #333; border-radius: 50px; white-space: nowrap;
  font-family: var(--font-sans, Helveticaneue, Arial, sans-serif); font-weight: 700; font-size: 13px; line-height: 1; color: #333;
}

.jt-drawer__cta {
  margin: 28px 24px 0; height: 52px; flex: none; border-radius: 50px;
  background: #A30B1F; color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px;
}
.jt-drawer__cta:hover { background: #8a0919; color: #fff; }

.jt-drawer__foot { margin-top: auto; padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.jt-drawer__foot a { min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--color-ink, #333); text-decoration: none; }
.jt-drawer__slogan { font-family: var(--font-serif, Charter, Georgia, serif); font-style: italic; font-size: 15px; color: #6b655c; }

@media (prefers-reduced-motion: reduce) {
  .jt-drawer__scrim, .jt-drawer__panel { transition: none; }
}
