/* "New chapter" key-tag announcement, hosted site only. */
.lsh {
  --lsh-navy: #002e4d;
  --lsh-paper: #fbf8f1;
  --lsh-brass: #b39a5f;
  --lsh-brass-dark: #8a7442;
  inset: 0;
  position: fixed;
  z-index: 10050;
}
.lsh__backdrop {
  animation: lsh-fade .5s ease both;
  background: rgba(0, 25, 42, .55);
  backdrop-filter: blur(2px);
  inset: 0;
  position: absolute;
}
.lsh.is-leaving .lsh__backdrop { animation: lsh-fade .45s ease reverse both; }

/* Pivot sits at the top edge of the viewport, where the cord is "pinned". */
.lsh__drop {
  animation: lsh-drop .9s cubic-bezier(.2, .9, .25, 1.15) both;
  left: 50%;
  position: absolute;
  top: 0;
  width: min(440px, calc(100vw - 32px));
  transform: translateX(-50%);
}
.lsh.is-leaving .lsh__drop { animation: lsh-lift .5s cubic-bezier(.5, 0, .75, 0) both; }
.lsh__swing {
  animation: lsh-swing 3.2s cubic-bezier(.36, .07, .19, .97) .55s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
}
.lsh__cord {
  background: linear-gradient(90deg, #6f5d36, var(--lsh-brass) 50%, #6f5d36);
  height: clamp(24px, 7vh, 72px);
  width: 2px;
}
.lsh__ring { display: block; margin-top: -2px; overflow: visible; position: relative; z-index: 2; }
.lsh__key { transform-origin: 30px 22px; animation: lsh-key 3.6s ease-in-out 1s both; }

.lsh__tag {
  background: var(--lsh-paper);
  border-radius: 18px 18px 22px 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
  color: var(--lsh-navy);
  font-family: Gotham, Helvetica, Arial, sans-serif;
  margin-top: -45px;
  max-height: calc(100vh - clamp(24px, 7vh, 72px) - 40px);
  overflow: auto;
  padding: 58px 36px 30px;
  position: relative;
  text-align: center;
  width: 100%;
}
/* Inset stitched border and the eyelet the ring passes through. */
.lsh__tag::before {
  border: 1px solid rgba(0, 46, 77, .28);
  border-radius: 12px 12px 16px 16px;
  content: "";
  inset: 9px;
  pointer-events: none;
  position: absolute;
}
.lsh__tag::after {
  background: radial-gradient(circle, rgba(0, 25, 42, .55) 0 5px, var(--lsh-brass) 5.5px 8px, var(--lsh-brass-dark) 8.5px 9px, transparent 9.5px);
  content: "";
  height: 20px;
  left: 50%;
  position: absolute;
  top: 9px;
  transform: translateX(-50%);
  width: 20px;
}

.lsh__close {
  align-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--lsh-navy);
  cursor: pointer;
  display: flex;
  font-size: 26px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
}
.lsh__close:hover, .lsh__close:focus-visible { background: rgba(0, 46, 77, .08); outline: none; }

.lsh__brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .14em;
  margin: 6px 0 2px;
}
.lsh__sub {
  font-size: 8.5px;
  letter-spacing: .32em;
  margin: 0 0 22px;
  opacity: .8;
  text-transform: uppercase;
}
.lsh__eyebrow {
  color: var(--lsh-brass-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.lsh__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 auto 18px;
  max-width: 18em;
}
.lsh__rule {
  align-items: center;
  color: var(--lsh-brass);
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 18px;
  max-width: 180px;
}
.lsh__rule::before, .lsh__rule::after { background: currentColor; content: ""; flex: 1; height: 1px; opacity: .7; }
.lsh__body p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 12px;
}
.lsh__sign {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: italic;
  margin: 18px 0 22px;
}
.lsh__cta {
  background: var(--lsh-navy);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: 700 12px/1 Gotham, Helvetica, Arial, sans-serif;
  letter-spacing: .14em;
  padding: 15px 26px;
  text-transform: uppercase;
}
.lsh__cta:hover, .lsh__cta:focus-visible { background: #0b4670; outline: 2px solid var(--lsh-brass); outline-offset: 3px; }

/* Small tag left behind after closing, to reopen the note. */
.lsh-reopen {
  align-items: center;
  animation: lsh-peek .6s cubic-bezier(.2, .9, .25, 1.2) both;
  background: #002e4d;
  border: 0;
  border-radius: 999px 6px 6px 999px;
  top: 104px;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 700 11px/1 Gotham, Helvetica, Arial, sans-serif;
  gap: 9px;
  letter-spacing: .12em;
  padding: 11px 16px 11px 12px;
  position: fixed;
  right: 0;
  text-transform: uppercase;
  z-index: 10040;
}
.lsh-reopen::before {
  background: radial-gradient(circle, #002e4d 0 3px, #b39a5f 3.5px 5.5px, transparent 6px);
  content: "";
  height: 12px;
  width: 12px;
}
.lsh-reopen:hover, .lsh-reopen:focus-visible { padding-right: 22px; outline: none; }

html.lsh-open, html.lsh-open body { overflow: hidden; }

@keyframes lsh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lsh-drop { from { transform: translate(-50%, -110%); } to { transform: translate(-50%, 0); } }
@keyframes lsh-lift { from { transform: translate(-50%, 0); } to { transform: translate(-50%, -115%); } }
@keyframes lsh-swing {
  0% { transform: rotate(0); }
  12% { transform: rotate(3.2deg); }
  30% { transform: rotate(-2.2deg); }
  48% { transform: rotate(1.3deg); }
  66% { transform: rotate(-.7deg); }
  84% { transform: rotate(.3deg); }
  100% { transform: rotate(0); }
}
@keyframes lsh-key {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-9deg); }
  45% { transform: rotate(6deg); }
  70% { transform: rotate(-3deg); }
}
@keyframes lsh-peek { from { transform: translateX(100%); } to { transform: translateX(0); } }

@media (max-width: 480px) {
  .lsh__tag { padding: 54px 22px 24px; }
  .lsh-reopen { top: 72px; }
  .lsh__title { font-size: 19px; }
  .lsh__body p { font-size: 14px; }
}
@media (max-height: 820px) {
  .lsh__cord { height: 16px; }
  .lsh__tag { padding-top: 50px; padding-bottom: 22px; }
  .lsh__sub { margin-bottom: 14px; }
  .lsh__title { margin-bottom: 12px; }
  .lsh__rule { margin-bottom: 12px; }
  .lsh__body p { font-size: 13.5px; line-height: 1.55; margin-bottom: 8px; }
  .lsh__sign { margin: 12px 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lsh__drop, .lsh.is-leaving .lsh__drop { animation: lsh-fade .3s ease both; }
  .lsh.is-leaving .lsh__drop { animation-direction: reverse; }
  .lsh__swing, .lsh__key, .lsh-reopen { animation: none; }
}
