/* The site ribbon: one header, identical on every page (stamped in by scripts/ribbon.mjs).
   Self-contained so it looks the same on styles.css pages, the directory pages and Keel. */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/hanken-grotesk-var-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-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; }

.vr { position: relative; z-index: 60; box-sizing: border-box; height: 88px; padding: 0 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #F6F3EC; border-bottom: 1px solid #DDD6C8; font-family: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, sans-serif; color: #1B2320; }
.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }
.vr a { text-decoration: none; }
.vr__brand, .vr__brand:hover { font-family: 'IBM Plex Mono', Menlo, monospace; font-size: 15px; letter-spacing: 5px; text-transform: uppercase; font-weight: 500; color: #1B2320; white-space: nowrap; }
.vr__right { display: flex; align-items: center; gap: 36px; }
.vr__links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.vr__links a, .vr__links a:hover { font-size: 15px; font-weight: 400; color: #1B2320; line-height: 1.2; white-space: nowrap; }
.vr__links a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.vr__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.vr__links .vr__keel { color: #5B6B66; }
.vr__cta, .vr__cta:hover { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; background: #2E5A4E; color: #F6F3EC; font-size: 15px; font-weight: 600; border-radius: 2px; white-space: nowrap; }
.vr__cta:hover { background: #24493F; }
.vr__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid #DDD6C8; border-radius: 2px; cursor: pointer; padding: 0; }
.vr__bars, .vr__bars::before, .vr__bars::after { display: block; position: relative; width: 18px; height: 1.5px; background: #1B2320; transition: transform .2s, background .2s; }
.vr__bars::before, .vr__bars::after { content: ""; position: absolute; left: 0; }
.vr__bars::before { top: -6px; }
.vr__bars::after { top: 6px; }
.vr.is-open .vr__bars { background: transparent; }
.vr.is-open .vr__bars::before { transform: translateY(6px) rotate(45deg); }
.vr.is-open .vr__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1400px) { .vr { padding: 0 48px; } .vr__right { gap: 24px; } .vr__links { gap: 22px; } }
@media (max-width: 1180px) {
  .vr { height: 72px; padding: 0 20px; }
  .vr__brand, .vr__brand:hover { font-size: 12px; letter-spacing: 3px; }
  .vr__right { gap: 10px; }
  .vr__toggle { display: inline-flex; }
  .vr__nav { position: absolute; left: 0; right: 0; top: 100%; }
  .vr__links { display: none; flex-direction: column; align-items: stretch; gap: 0; background: #F6F3EC; border-bottom: 1px solid #DDD6C8; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .vr.is-open .vr__links { display: flex; }
  .vr__links li + li { border-top: 1px solid #DDD6C8; }
  .vr__links a { display: block; padding: 16px 20px; font-size: 17px; }
  .vr__cta, .vr__cta:hover { height: 40px; padding: 0 14px; font-size: 14px; }
}
@media (max-width: 380px) { .vr__brand, .vr__brand:hover { font-size: 10px; letter-spacing: 2px; } .vr__cta, .vr__cta:hover { padding: 0 10px; font-size: 13px; } }
.vr__links .vr__zh { font-size: 14px; padding: 4px 8px; border: 1px solid #DDD6C8; border-radius: 2px; }
@media (max-width: 1180px) { .vr__links .vr__zh { border: 0; padding: 16px 20px; font-size: 17px; } }

/* ---- Site footer (stamped by scripts/ribbon.mjs) ---- */
.vf { background: #16211D; color: #C9D3CD; padding: 40px clamp(16px, 5vw, 64px) 32px; font-family: "Hanken Grotesk", system-ui, sans-serif; }
.vf__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.vf__brand { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #F6F3EC; text-decoration: none; }
.vf__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.vf__links a { color: #C9D3CD; text-decoration: none; font-size: 15px; }
.vf__links a:hover, .vf__small a:hover { color: #F6F3EC; text-decoration: underline; text-underline-offset: 3px; }
.vf__small { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(246,243,236,.12); font-size: 13px; color: #9FAEA6; }
.vf__small a { color: #9FAEA6; text-decoration: none; }
@media (max-width: 640px) { .vf__row { flex-direction: column; align-items: flex-start; } .vf__links { gap: 10px 22px; } }
.vf { box-sizing: border-box; padding-left: 120px; padding-right: 120px; }
@media (max-width: 1400px) { .vf { padding-left: 48px; padding-right: 48px; } }
@media (max-width: 1180px) { .vf { padding-left: 20px; padding-right: 20px; } }
.vr__alt, .vr__alt:hover { font-size: 15px; color: #2E5A4E; white-space: nowrap; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.vr__links .vr__menu-only { display: none; }
@media (max-width: 1180px) { .vr__alt { display: none; } .vr__links .vr__menu-only { display: block; } }
/* E1 email capture (used on styles.css and directory pages alike) */
.ec { display: grid; gap: 8px; max-width: 560px; }
.ec__h { margin: 0; font-weight: 700; font-size: 17px; color: #1B2320; }
.ec__sub { margin: 0; font-size: 15px; line-height: 1.5; color: #4B5751; }
.ec__row { display: flex; gap: 8px; flex-wrap: wrap; }
.ec__row input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C9C2B2; border-radius: 2px; background: #fff; color: #1B2320; }
.ec__row .btn { flex: none; }
.ec__msg { margin: 0; min-height: 0; font-size: 14px; }
.ec__msg.is-error { color: #944B33; }
.ec__msg.is-ok { color: #2E5A4E; }
.ec__consent { margin: 0; font-size: 13px; line-height: 1.45; color: #4B5751; }
.ec-alt { margin: 10px 0 0; font-size: 15px; }
.ec-alt a { color: #2E5A4E; }
/* Newsletter slide-in (capture.js) */
.nlp { position: fixed; right: 24px; bottom: 24px; z-index: 900; box-sizing: border-box; width: min(400px, calc(100vw - 32px)); padding: 22px 22px 18px; background: #F6F3EC; border: 1px solid #DDD6C8; border-radius: 8px; box-shadow: 0 18px 48px rgba(20, 30, 26, .18); font-family: 'Hanken Grotesk', Helvetica, sans-serif; color: #1B2320; transform: translateY(16px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.nlp.is-in { transform: none; opacity: 1; }
.nlp *, .nlp *::before, .nlp *::after { box-sizing: border-box; }
.nlp__x { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1; color: #4B5751; cursor: pointer; }
.nlp__k { margin: 0 0 4px; font-family: 'IBM Plex Mono', Menlo, monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #944B33; }
.nlp__t { margin: 0 32px 12px 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.nlp .ec { max-width: none; }
.nlp .btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: #2E5A4E; color: #F6F3EC; font: inherit; font-weight: 600; cursor: pointer; }
.nlp .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 600px) { .nlp { right: 0; left: 0; bottom: 0; width: 100%; border-radius: 12px 12px 0 0; padding: 18px 16px 16px; } .nlp__t { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .nlp { transition: none; } }
