/* Loanistry shared header and footer, loaded on every page.
   The header restyles the site nav to the Homepage Concept's header; the footer is the concept's footer
   (class lo-foot) with every site link. index.html is the source; loanistry/build.mjs copies both into each page. */

@font-face { font-family: 'Hedvig Letters Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/hedvig-letters-serif-opsz-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: 'Hedvig Letters Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/hedvig-letters-serif-opsz-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --nav-h: 84px; }
@media (max-width: 809px) { :root { --nav-h: 68px; } }

/* ---------- concept header: the shared nav ---------- */
.nav-fixed { position: fixed; inset: 0 0 auto; z-index: 50; box-shadow: 0 1px 0 rgba(1,46,29,.06); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: auto; }
.nav-fixed .nav { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 6.67vw, 96px); }
.nav-fixed .nav-bar { min-height: 84px; background: transparent; box-shadow: none; gap: 24px; font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; color: #151514; }
.nav-fixed .nav-logo { height: auto; padding: 0; box-shadow: none; flex: none; }
.nav-fixed .nav-wordmark { width: auto; height: 30px; }
.nav-fixed .nav-menu { height: auto; padding: 0; gap: 24px; justify-content: space-between; }
.nav-fixed .nav-items { gap: clamp(14px, calc(12.3vw - 140px), 34px); margin: 0 auto; }
.nav-fixed .nav-item > a { opacity: 1; color: #151514; font-weight: 400; font-size: 16px; padding: 0; white-space: nowrap; transition: color .15s ease; }
.nav-fixed .nav-item > a:hover, .nav-fixed .nav-item:focus-within > a, .nav-fixed .nav-item.is-current > a { color: #01673E; }
.nav-fixed .nav-item > a .icon--chev { display: none; }
.nav-fixed .nav-drop { padding-top: 30px; }
.nav-fixed .nav-drop-inner { border-radius: 16px; padding: 8px; }
.nav-fixed .nav-drop-inner a { font-size: 15px; font-weight: 400; color: #151514; border-radius: 10px; }
.nav-fixed .nav-drop-inner a:hover { background: #FAF8EF; color: #01673E; }
.nav-fixed .nav-cta { flex: none; }
.nav-fixed .nav-cta .btn { height: 46px; padding: 0 22px; border-radius: 999px; background: #012E1D; color: #FFFFFF; font-size: 16px; font-weight: 400; letter-spacing: -0.01em; overflow: visible; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.nav-fixed .nav-cta .btn::after { display: none; }
.nav-fixed .nav-cta .btn:hover { background: #01673E; color: #FFFFFF; transform: translateY(-1px); }

/* Eight sections do not fit beside the logo and button below 1200px, so the menu folds into the site's own toggle. */
@media (max-width: 1199px) {
  .nav-fixed .nav-bar { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-fixed .nav-top { display: flex; align-items: center; justify-content: space-between; height: 84px; }
  .nav-fixed .nav-burger { display: flex; width: 46px; height: 46px; margin-right: -8px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: none; border-radius: 999px; }
  .nav-fixed .nav-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #151514; transition: transform .3s ease, opacity .2s; transform-origin: center; }
  .nav-fixed .nav-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-fixed .nav-burger.is-open span:nth-child(2) { opacity: 0; }
  .nav-fixed .nav-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-fixed .nav-menu { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 24px; border-top: 1px solid #E4E6DF; max-height: calc(100vh - 100px); overflow: auto; }
  .nav-fixed .nav-menu.is-open { display: flex; }
  .nav-fixed .nav-items { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav-fixed .nav-item > a { display: flex; justify-content: space-between; padding: 12px 0; font-size: 18px; font-family: var(--hf, 'Hedvig Letters Serif'), Georgia, serif; }
  .nav-fixed .nav-drop { position: static; padding: 0 0 8px; opacity: 1; visibility: visible; transform: none; }
  .nav-fixed .nav-drop-inner { box-shadow: none; padding: 0; min-width: 0; background: transparent; }
  .nav-fixed .nav-drop-inner a { white-space: normal; color: #5C605A; padding: 6px 0; }
  .nav-fixed .nav-cta { margin-top: 16px; }
  .nav-fixed .nav-cta .btn { width: 100%; }
}
.nav-fixed a:focus-visible, .nav-fixed button:focus-visible { outline: 2px solid #01C667; outline-offset: 3px; }
/* Phones keep the bar at the height the page headers were spaced for. */
@media (max-width: 809px) {
  .nav-fixed .nav-bar { min-height: 68px; }
  .nav-fixed .nav-top { height: 68px; }
  .nav-fixed .nav-wordmark { width: auto; height: 26px; }
}

/* ---------- concept footer ---------- */
.lo-foot { --hf: 'Hedvig Letters Serif', Georgia, serif; width: 100%; font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
.lo-foot * { box-sizing: border-box; }
.lo-foot button, .lo-foot input { font-family: inherit; }
.lo-foot button { cursor: pointer; }
.lo-foot p { margin: 0; text-wrap: pretty; }
.lo-foot img { display: block; max-width: 100%; }
.lo-foot a { color: rgba(255,255,255,.86); text-decoration: none; }
.lo-foot a:hover { color: #92FBA6; }
.lo-foot input:focus-visible, .lo-foot button:focus-visible, .lo-foot a:focus-visible { outline: 2px solid #01C667; outline-offset: 3px; }
.lo-pill { transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.lo-pill:hover { transform: translateY(-1px); }
.lo-mint:hover { background: #B8FDC5 !important; color: #012E1D; }
@media (prefers-reduced-motion: reduce) { .lo-pill { transition: none; } }
.lo-foot .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lo-news .news-status { margin-top: 10px; font-size: 14px; color: #92FBA6; }
.lo-news .news-status:empty { display: none; }
.lo-news .news-status.is-error { color: #FFC4B8; }
.lo-news.is-done .lo-news-pill { display: none; }
.lo-news.is-done .news-status { margin-top: 22px; min-height: 56px; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.lo-news.is-done .news-status::before { content: ""; flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392FBA6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.lo-news input::placeholder { color: rgba(255,255,255,.55); }
.lo-news input:focus { outline: none; }
.lo-news-pill:focus-within { box-shadow: inset 0 0 0 1px #92FBA6 !important; }
.lo-foot .lo-foot-cols a { line-height: 1.4; }
