/* Newsletter tab: a small vertical tab glued to the right edge that slides
   out a panel with the footer's MailerLite sign-up. Markup comes from newsletter-tab.js. */
/* Own font names, so pages that don't load the site's fonts.css still match. */
@font-face {
  font-family: "EL Italianno";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Italianno-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EL Italianno";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Italianno-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EL Playfair";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-600-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EL Playfair";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-600-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.nl-tab {
  --nl-forest: #2E836C;
  --nl-forest-deep: #276F5C;
  --nl-ink: #263D34;
  --nl-soft: #F1F6F3;
  --nl-border: #DFE8E2;
  --nl-width: min(360px, calc(100vw - 48px));
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  transform: translate(var(--nl-width), -50%);
  transition: transform .45s cubic-bezier(.22, .8, .24, 1);
  font-family: "EL Montserrat", Montserrat, Helvetica, Arial, sans-serif;
  color: var(--nl-ink);
}
.nl-tab.is-open { transform: translate(0, -50%); }

.nl-tab__handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 18px 11px 16px;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: var(--nl-forest);
  color: #fff;
  box-shadow: -4px 6px 18px rgba(38, 61, 52, .18);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .2s ease, padding .2s ease;
}
.nl-tab__handle:hover { background: var(--nl-forest-deep); padding-right: 14px; }
.nl-tab__handle:focus-visible { outline: 2px solid var(--nl-ink); outline-offset: 3px; }
.nl-tab__handle svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nl-tab__handle span { writing-mode: vertical-rl; transform: rotate(180deg); }

.nl-tab__panel {
  position: relative;
  box-sizing: border-box;
  width: var(--nl-width);
  padding: 30px 26px 22px;
  background: #fff;
  border: 1px solid var(--nl-border);
  border-right: 0;
  border-top: 3px solid var(--nl-forest);
  border-radius: 0 0 0 12px;
  box-shadow: -10px 14px 40px rgba(38, 61, 52, .16);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  transition: visibility 0s linear .45s;
}
.nl-tab.is-open .nl-tab__panel { visibility: visible; transition-delay: 0s; }

.nl-tab__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--nl-ink);
  cursor: pointer;
}
.nl-tab__close:hover { background: var(--nl-soft); }
.nl-tab__close:focus-visible { outline: 2px solid var(--nl-forest); outline-offset: 1px; }
.nl-tab__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.nl-tab__sign {
  margin: 0;
  font-family: "EL Italianno", Italianno, cursive;
  font-size: 34px;
  line-height: 1;
  color: var(--nl-forest);
}
.nl-tab__title {
  margin: 2px 0 10px;
  padding: 0;
  font-family: "EL Playfair", "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  color: #111;
}
.nl-tab__lead {
  margin: 0 0 16px;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}
/* The cloned footer form (.el-footer__* classes), re-themed for a light panel. */
.nl-tab__slot {
  --el-footer-ink: var(--nl-ink);
  --el-footer-muted: #5b6b64;
  --el-footer-line: var(--nl-border);
  --el-footer-accent: var(--nl-forest);
  font-size: 14px;
  line-height: 1.6;
}
.nl-tab__slot *, .nl-tab__slot *::before, .nl-tab__slot *::after { box-sizing: border-box; }
.nl-tab__slot .el-footer__form input[type="text"],
.nl-tab__slot .el-footer__form input[type="email"] {
  margin: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--nl-ink);
}
.nl-tab__slot .el-footer__form input:focus-visible { border-color: var(--nl-forest); }
.nl-tab__slot .el-footer__consent { font-size: 11.5px; }
.nl-tab__slot .el-footer__cta { justify-self: stretch; margin-top: 2px; padding: 12px 20px; border-radius: 6px; text-align: center; }
.nl-tab__slot .el-footer__form-status { color: #b42318; }
.nl-tab__slot .el-footer__form-success { padding: 14px; border-radius: 8px; background: var(--nl-soft); }
.nl-tab__note {
  margin: 12px 0 0;
  padding: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #5b6b64;
}
.nl-tab__note a { color: var(--nl-forest); }

@media (max-width: 600px) {
  .nl-tab { top: auto; bottom: 96px; transform: translate(var(--nl-width), 0); }
  .nl-tab.is-open { transform: translate(0, 0); }
  .nl-tab__handle { padding: 14px 9px 12px; font-size: 11px; }
  .nl-tab__panel { max-height: calc(100vh - 190px); padding: 26px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-tab, .nl-tab__panel { transition: none; }
}
@media print { .nl-tab { display: none; } }
