/* site.css (reworked for sticky 3-column header above viewbox) */
:root{
  --maroon: #7a0019;
  --midnight: #122040;
  --paper: #ffffff;
  --ink: #111111;
  --rule: rgba(0,0,0,0.10);

  --page-width: 5.5in;
  --page-padding: 16px;
  --page-margin-top: 10px;
  --page-margin-bottom: 44px;

  --header-gap: 14px;
  --header-side-width: 15%;
  --header-side-pad: 0px;
  --header-image-max: 80px;
  --header-gap-above-page: 10px;

  --small-text: 12px;
}

html, body{
  margin: 0;
  padding: 0;
}

body{
  font-family: system-ui, -apple-system, "Segoe UI", Calibri, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.15;
}

body.booklet{
  background: #f2f2f2;
}

.hero-bg{
  position: relative;
  min-height: 100vh;
  overflow-y: auto;
}

.hero-bg::before,
.hero-bg::after{
  content:"";
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-bg::before{
  background-image: url("../images/ww_lake_summer.jpg");
  animation: heroFade1 20s infinite;
}

.hero-bg::after{
  background-image: url("../images/ww_lake_winter.jpg");
  animation: heroFade2 20s infinite;
}

@keyframes heroFade1{
  0%   {opacity:1;}
  40%  {opacity:1;}
  50%  {opacity:0;}
  90%  {opacity:0;}
  100% {opacity:1;}
}

@keyframes heroFade2{
  0%   {opacity:0;}
  40%  {opacity:0;}
  50%  {opacity:1;}
  90%  {opacity:1;}
  100% {opacity:0;}
}

.skip-link{
  position:absolute;
  left:-999px;
}

.skip-link:focus{
  left:10px;
  top:10px;
  background:white;
  padding:6px 10px;
  border:1px solid #999;
  z-index: 50;
}

.page-header{
  position: sticky;
  top: 10px;
  z-index: 20;
  max-width: var(--page-width);
  margin: var(--page-margin-top) auto 0 auto;
  padding: var(--page-padding);
  background: rgba(255,255,255,0.94);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.header-top{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--header-gap);
}

.header-col{
  min-width: 0;
  display: flex;
  align-items: center;
}

.header-left{
  flex: 0 0 var(--header-side-width);
  justify-content: flex-start;
  padding-left: var(--header-side-pad);
}

.header-center{
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

.header-right{
  flex: 0 0 var(--header-side-width);
  justify-content: flex-end;
  padding-right: var(--header-side-pad);
}

.header-left img,
.header-right img{
  display: block;
  max-width: var(--header-image-max);
  width: auto;
  height: auto;
}

.hiring-eyebrow{
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--maroon);
  font-size: .9em;
  line-height: 1.0;
  margin-top: -6px;
}

.hiring-title{
  margin: 0.15em 0 0.35em 0;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--maroon);
  font-size: 1.1em;
  line-height: 1.15;
}

.hiring-location{
  color: var(--maroon);
  font-weight: 500;
}

.hiring-location a{
  color: var(--maroon);
  text-decoration: none;
}

.hiring-location a:hover{
  opacity: 0.85;
}

.hiring-location a:focus-visible{
  outline: 2px solid var(--midnight);
  outline-offset: 4px;
  border-radius: 4px;
}

.hiring-tagline{
  font-style: italic;
  font-size: .75em;
}

.page{
  max-width: var(--page-width);
  margin: var(--header-gap-above-page) auto var(--page-margin-bottom) auto;
  padding: var(--page-padding);
  background: rgba(255,255,255,0.94);
  text-align: left;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.page a{
  color: var(--midnight);
}

.page p{
  margin: 0 0 0.95em 0;
  line-height: 1.55;
}

.page ul{
  margin: 0.4em 0 1em 1.2em;
  padding: 0;
}

.page ul li{
  margin: 0.1em 0;
}

.page hr{
  margin: .8em 0 .8em 0;
  border: none;
  border-top: 1px solid var(--rule);
}

.small{ font-size: var(--small-text);
  margin-top: 2px;
}

.center{ text-align: center; }
.tight{ margin: 0; }
.subtle-rule{ margin: 0 0 0 0; }
.subtle-header{ margin: 4px 4px 4px 4px; width: 75%; text-align: center; color: gainsboro;}

main.page > center:first-of-type{
  display: block;
  margin-top: -2px;
  margin-bottom: 4px;
}

.apply-box{
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fafafa;
  border-left: 5px solid var(--maroon);
  padding: 14px 16px;
  margin-top: 14px;
}

.apply-box u{
  text-decoration: none;
  font-weight: 700;
  color: var(--maroon);
}

.apply-box a{
  font-weight: 700;
}

.apply-box ul{
  margin: 4px 0 0 18px;
  padding: 0;
}

/* Header menu aligned at bottom of center column */
.hiring-header{
  display: flex;
  flex-direction: column;
/*  justify-content: space-between; */
  min-height: 100%;
  height: 100%;
  width: 100%;
}

.header-menu-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.67rem;
  margin-top: 0.55rem;
  flex-wrap: nowrap;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.menu-group {
  position: relative;
}

.menu-anchor {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.35rem 0.2rem;
  font: inherit;
  font-weight: 500;
  font-size: 0.9em;
  color: var(--midnight);
  cursor: pointer;
  white-space: nowrap;
}

.menu-anchor:hover {
  color: var(--maroon);
}

.menu-anchor:focus-visible,
.menu-panel a:focus-visible {
  outline: 2px solid var(--midnight);
  outline-offset: 3px;
  border-radius: 4px;
}

.menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  z-index: 1000;
}

.menu-group.open .menu-panel {
  display: grid;
  gap: 0.3rem;
}

.menu-panel a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--midnight);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  white-space: nowrap;
}

.menu-panel a:hover {
  background: rgba(0,0,0,0.05);
  color: var(--maroon);
}

.site-menu a{
  color: var(--midnight);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  white-space: nowrap;
}

.check-dates-btn{
  display: inline-block;
  padding: 2px 4px 4px;
  border: 1px solid var(--midnight);
  border-radius: 4px;
  background: var(--midnight);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85em;
  line-height: .9;
  white-space: nowrap;
}

.site-menu a:hover{
  color: var(--maroon);
}

.site-menu a:focus-visible,
.check-dates-btn:focus-visible{
  outline: 2px solid var(--maroon);
  outline-offset: 4px;
  border-radius: 4px;
}

.check-dates-btn:hover{
  opacity: 1;
  border: 1px solid var(--maroon);
  background: var(--maroon);
}


.header-line{
  line-height: 1.07;
  margin-top: 0;
  font-size: .72em;
}

.header-line.primary{
  font-weight: 550;
  font-size: .72em;
  margin-top: 0;
}

.header-line.secondary{
  font-size: .72em;
  color: maroon;
  margin-top: .85em;
}

.header-line.location{
  font-style: italic;
  font-size: .72em;
}

.header-line.small{
  font-size: .72em;
}

@media (hover: hover) and (pointer: fine) {
  .menu-group:hover .menu-panel {
    display: grid;
    gap: 0.3rem;
  }
}

@media (max-width: 700px){
  .page-header{
    position: static;
  }

  .header-menu-row{
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.35rem;
  }

  /* hide the side image columns */
  .header-left,
  .header-right{
    display: none;
  }

  /* keep remaining header compact */
  .header-top{
    flex-direction: row;
    justify-content: center;
    gap: 0;
    text-align: center;
  }

  .header-center{
    flex: 1 1 auto;
  }

  .site-menu{
    /*  text-width buttons, shrink-to-fit */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    /* full screen buttons, easy tap */
    /*   display: grid; */
    /*   gap: 0.45rem; */
    /*   width: 100%; */
  }

  .menu-group{
    position: static;
    overflow: hidden;
    /* enable below for NO accordion card outline on dropdown menus */
      text-align: center;
      border: none;
      background: transparent;
    /* enable above for NO accordion card outline on dropdown menus */
      /* either-or-above-below */
    /* enable below for accordion card outline on dropdown menus */
    /*   border: 1px solid rgba(0,0,0,0.08); */
    /*   border-radius: 12px; */
    /*   background: rgba(255,255,255,0.92); */
    /* enable above for accordion card outline on dropdown menus */
  }

  .menu-anchor{
    /*  text-width buttons, shrink-to-fit */
    width: auto;
    text-align: center;
    padding: 0.6rem 0.9rem;
    font-weight: 600;
    /*  full screen buttons, easy tap */
    /*    width: 100%; */
    /*    text-align: left; */
    /*    padding: 0.7rem 0.85rem; */
    /*    font-weight: 600; */
  }

  .menu-panel{
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0.9rem 0.9rem 0.9rem;
    background: transparent;
  }

  .menu-group.open .menu-panel{
    display: grid;
    gap: 0.3rem;
  }

  .check-dates-btn{
    width: 100%;
    text-align: center;
    margin-top: 0.1rem;
  }

  .hiring-location{
    line-height: 1.05;
  }

  .header-line{
    margin-top: 0.15rem;
    line-height: 1.05;
  }

  .header-line.secondary{
    margin-top: 0.45rem;
  }
}

@media (max-width: 480px){
  :root{
    --page-margin-top: 8px;
    --page-padding: 22px;
    --header-gap-above-page: 8px;
  }
}
