/* builtlit.com shared chrome, v3 (2026-10-25): built.lt's header, menu, buttons,
   footer and FAQ, taken from built.lt's static blog styles (tools/blog-restyle.mjs in
   the built.lt repo), so every builtlit page matches built.lt. Loaded after site.css. */
:root { --ink: #121212; --dim: #6b6b66; --line: rgba(0, 0, 0, .09); --soft: #f5f5f7; --blue: #0071e3; --blue-h: #0077ed; --blue-ink: #0058b9; --blue-soft: #eaf3fe;
  --gold: #c4a55a; --ease: cubic-bezier(.22, .8, .2, 1); --font: "Familjen Grotesk", "FG Fallback", "Helvetica Neue", Arial, sans-serif; }
/* header */
    .nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 22px;
      padding: calc(env(safe-area-inset-top, 0px) + 14px) max(20px, env(safe-area-inset-right, 0px)) 14px max(20px, env(safe-area-inset-left, 0px));
      background: rgba(245, 245, 247, .82); color: var(--ink); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
    .mark { font-weight: 600; font-size: 20px; letter-spacing: -.02em; text-decoration: none; color: inherit; white-space: nowrap; }
    .mark .gd { color: var(--gold); }
    .nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 15px; position: relative; isolation: isolate; }
    .nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; opacity: .82; transition: opacity .2s, color .2s; color: inherit; white-space: nowrap; }
    .nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current] { opacity: 1; outline: none; }
    .nav-glow { position: absolute; z-index: -1; left: 0; top: 0; width: 0; height: 0; border-radius: 999px; opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.22, 1.2, .36, 1), width .45s cubic-bezier(.22, 1.2, .36, 1), background-color .3s, opacity .2s; }
    /* the current link is lit by the tinted pill (site-ui.js), no dot */
    .nav-links a.nav-chip { margin-left: 6px; opacity: 1; color: var(--blue-ink); font-weight: 600; background: #eaf3fe; box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .18); }
    .nav-links a.nav-chip::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--blue); vertical-align: 1px; background: linear-gradient(135deg, #5b8cff, #9b7bff); box-shadow: 0 0 0 3px rgba(91, 140, 255, .18); }
    /* no dot; a light running round the chip's edge (same as globals.css) */
    @property --ring { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
    @keyframes pv-ring { to { --ring: 360deg; } }
    .nav-links a.nav-chip::before { content: none; display: none; }
    .nav-links a.nav-chip { font-weight: 700; color: #121214; background: #fff; box-shadow: none; isolation: isolate; }
    .nav-links a.nav-chip::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.6px; pointer-events: none; left: 0; bottom: 0; width: auto; height: auto; margin: 0; box-shadow: none;
      background: conic-gradient(from var(--ring), #f2a5c6 0deg, #f7c08f 72deg, #c3aef7 144deg, #95c9f0 216deg, #9fe0bb 288deg, #f2a5c6 360deg);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: pv-ring 3.6s linear infinite; }
    @keyframes nav-ping { 0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(0, 113, 227, 0); } }
    .nav > .pill { flex: none; }
    .burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; color: inherit; flex: none; }
    .burger i { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
    .burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
    .burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); } .burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
    .menu { position: fixed; z-index: 29; inset: 0; background: #fff; color: var(--ink); padding: calc(env(safe-area-inset-top, 0px) + 86px) 24px 32px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; }
    .menu nav { display: grid; }
    .menu nav a { font-size: 1.55rem; font-weight: 600; letter-spacing: -.03em; text-decoration: none; color: inherit; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .menu .pill.big { justify-content: center; }

    /* buttons */
    .pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px;
      background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer; transition: background .2s;
      font-family: var(--font); letter-spacing: 0; text-transform: none; white-space: nowrap; }
    .pill:hover { background: var(--blue-h); color: #fff; }
    .pill.big { min-height: 52px; padding: 0 26px; font-size: 17px; }
    .pill.soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
    .pill.soft:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
    .pill:not(.soft), .pill:not(.soft):hover { background: linear-gradient(110deg,#f7bdd6 0%,#fbd3ae 25%,#d8c7fb 52%,#b8dcf6 76%,#c3eed4 100%); background-size: 160% 100%; background-position: 0% 50%; color: #121214; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 24px -14px rgba(120, 90, 160, .6); transition: background-position .6s ease, transform .25s var(--ease); }
    .pill:not(.soft):hover { background-position: 100% 50%; transform: translateY(-1px); }

    /* footer (same rules as globals.css .foot / .fx*, 2026-10-24) */
    .foot { position: relative; background: var(--soft); color: var(--ink); border-top: 1px solid rgba(0, 0, 0, .06); padding: clamp(56px, 8vh, 90px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 15px; line-height: 1.45; }
    .foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #f9b4cf, #fbcf9e, #d9c4fa, #a9d2f2, #b8ebc9); }
    .fx-contact { max-width: 1240px; margin: 0 auto; padding: 0 max(20px, 5vw); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .fx-c { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 8px 20px -16px rgba(0, 0, 0, .3); transition: transform .25s var(--ease), box-shadow .2s; }
    .fx-c:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 14px 26px -16px rgba(0, 0, 0, .35); }
    .fx-logo { width: 24px; height: 24px; flex: none; }
    .fx-t { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; color: #fff; font-style: normal; }
    .fx-t.ml { background: var(--blue); } .fx-t.ph { background: #121214; }
    .fx-all { display: none; max-width: 1240px; margin: 30px auto 0; padding: 0 max(20px, 5vw); grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
    .foot.all .fx-all { display: grid; }
    .fx-g { display: grid; align-content: start; gap: 2px; min-width: 0; }
    .fx-h { margin: 0 0 8px; color: var(--ink); font-weight: 700; font-size: 14.5px; }
    .fx-g a { color: var(--dim); text-decoration: none; font-size: 14px; line-height: 1.35; padding: 4px 0; }
    .fx-g a:hover { color: var(--ink); }
    .foot-base { max-width: 1240px; margin: 34px auto 0; padding: 22px max(20px, 5vw) 0; border-top: 1px solid rgba(0, 0, 0, .08); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--dim); font-size: 14px; }
    .foot-base a, .foot-base button { color: var(--dim); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; min-height: 30px; display: inline-flex; align-items: center; }
    .foot-base a:hover, .foot-base button:hover { color: var(--ink); }
    .foot-base > span { margin-right: auto; }
    .foot-base .fx-toggle { color: var(--ink); font-weight: 600; gap: 6px; }
    .fx-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
    .fx-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
    .foot-base .fx-b { gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 14px -12px rgba(0, 0, 0, .35); font-size: 14px; font-weight: 500; }
    .foot-base .fx-b:hover { color: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .16), 0 10px 18px -12px rgba(0, 0, 0, .4); }
    .foot-base .fx-b svg { flex: none; color: var(--blue); }
    .faq-more-a { display: inline-flex; margin: -10px 0 18px; padding: 0; border: 0; background: none; color: var(--blue-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
    @media (max-width: 767px) { .foot-base { gap: 8px; } .foot-base .fx-b { flex: 1 1 auto; justify-content: center; } }
    @media (max-width: 960px) { .fx-all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 767px) {
      .foot-base { justify-content: center; text-align: center; gap: 6px 18px; padding-top: 18px; }
      .foot-base > span { order: 9; flex-basis: 100%; margin: 10px 0 0; font-size: 13px; }
      .foot-base .fx-toggle { order: -1; flex-basis: 100%; justify-content: center; min-height: 48px; margin-bottom: 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
      .fx-contact { gap: 8px; }
    }
    @media (max-width: 560px) { .fx-all { grid-template-columns: minmax(0, 1fr); gap: 20px; } .fx-c { flex: 1 1 calc(50% - 10px); justify-content: center; } }

    /* FAQ (same look and motion as built.lt, ui.js drives it) */
    .faq details { border-top: 1px solid var(--line); }
    .faq details:last-child { border-bottom: 1px solid var(--line); }
    .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; min-height: 44px; font-weight: 600; line-height: 1.35; }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; font-size: 20px; font-weight: 500; line-height: 1; transition: transform .3s var(--ease); }
    .faq details { background: transparent; }
    .faq details { position: relative; }
    .faq details::before { content: ""; position: absolute; z-index: -1; inset: -2px -26px -6px; border-radius: 20px; background: #fff; opacity: 0; transform: scale(.98); transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
    .faq details[open]::before { opacity: 1; transform: none; box-shadow: 0 10px 30px -22px rgba(30, 40, 90, .35); }
    .faq summary::after { transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-color .2s, color .2s; }
    .faq details[open] summary::after { transform: rotate(135deg); background: var(--blue); color: #fff; }
    .faq summary::after { content: ""; font-size: 0; background-color: var(--blue-soft); background-image: linear-gradient(var(--blue-ink), var(--blue-ink)), linear-gradient(var(--blue-ink), var(--blue-ink)); background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat; }
    .faq details[open] summary::after { background-color: var(--blue); background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat; }
    .faq details[open].shut::before { opacity: 0; transform: scale(.98); }
    html.faq-moving, html.faq-moving body { overflow-anchor: none; }
    .faq details[open].shut summary::after { transform: none; background-color: var(--blue-soft); color: var(--blue-ink); background-image: linear-gradient(var(--blue-ink), var(--blue-ink)), linear-gradient(var(--blue-ink), var(--blue-ink)); }
    .faq details p { margin: 0 0 18px; color: #2a2a28; }
    /* builtlit's gold dot over the i of "lit" in the wordmark */
    .mark .gi { position: relative; }
    .nav > .lang { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
    @media (max-width: 960px) { .nav-links { display: none; } .burger { display: block; margin-left: auto; } .nav > .lang { display: none; } }
    .nav > .lang a { padding: 8px 10px; min-height: 40px; display: inline-flex; align-items: center; color: inherit; text-decoration: none; opacity: .6; border-radius: 8px; }
    .nav > .lang a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
    /* phones: the open question's card stays inside the screen (same as built.lt) */
    @media (max-width: 767px) { .faq details::before { inset: -2px -12px -8px; border-radius: 16px; } }

    /* numbered cards in the five pastel colours in turn, the number in the gradient (built.lt, 2026-10-24) */
    :root .cards3 .card, :root .cards .card { background: #fdeef4; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03); }
    :root .cards3 .card:nth-child(5n+2), :root .cards .card:nth-child(5n+2) { background: #fff2e4; }
    :root .cards3 .card:nth-child(5n+3), :root .cards .card:nth-child(5n+3) { background: #f1ecfd; }
    :root .cards3 .card:nth-child(5n+4), :root .cards .card:nth-child(5n+4) { background: #e9f3fc; }
    :root .cards3 .card:nth-child(5n+5), :root .cards .card:nth-child(5n+5) { background: #eaf8ef; }
    :root .card .num { width: 30px; height: 30px; color: #121214; font-weight: 700; background: linear-gradient(110deg,#f7bdd6 0%,#fbd3ae 25%,#d8c7fb 52%,#b8dcf6 76%,#c3eed4 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
    /* no dots anywhere (built.lt, 2026-10-24) */
    :root .eyebrow::before { content: none; display: none; }

    /* the website checker and privacy pages also load grader.css: its older header rules (small links, border, 19px mark) lose to these */
    .nav[data-nav] { border-bottom: 0; line-height: 1.55; }
    .nav[data-nav] .mark { font-size: 20px; }
    .nav[data-nav] .nav-links a { font-size: inherit; padding: 8px 14px; }
    /* Spanish pages have no menu button, so the language switch stays on phones */
    @media (max-width: 960px) { .nav.es > .lang { display: flex; margin-left: auto; } }

    /* blog, built.lt's article and card look (2026-10-26): category, date and read time, the cover with its
       caption, "In short", contents, share buttons; cards with the cover on top */
    :root .post .eyebrow { margin: 0 0 14px; color: var(--dim); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; }
    :root .post .eyebrow a { color: inherit; text-decoration: none; }
    :root .post .eyebrow a:hover { color: var(--ink); }
    :root .post .byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--dim); font-size: 15px; margin: 0 0 30px; }
    :root .post .byline a { color: inherit; text-underline-offset: 3px; }
    :root .post .byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
    :root .post .post-hero { margin: 0 0 32px; }
    :root .post .post-hero img { width: 100%; height: auto; display: block; border-radius: 16px; background: var(--soft); }
    :root .post .post-hero figcaption { margin-top: 10px; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
    :root .post .tldr { margin: 0 0 32px; padding: 24px 26px; background: var(--soft); border-radius: 22px; font-size: 17px; line-height: 1.6; border: 0; quotes: none; }
    :root .post .tldr::before { content: "In short"; display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
    :root .post .tldr p { margin: 0; }
    :root .post .toc { margin: 0 0 32px; padding: 22px 26px; background: var(--soft); border-radius: 22px; }
    :root .post .toc p { margin: 0 0 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
    :root .post .toc ol { margin: 0; padding: 0 0 0 20px; background: none; border-radius: 0; display: block; font-size: inherit; }
    :root .post .toc li { margin: 0; padding: 4px 0; }
    :root .post .share { margin: 34px 0 0; padding: 20px 22px; border-radius: 24px; background: linear-gradient(120deg, rgba(247,189,214,.22), rgba(216,199,251,.22) 50%, rgba(184,220,246,.22)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
    :root .post .share-h { margin: 0 0 12px; color: var(--ink); font-weight: 600; font-size: 15px; }
    :root .post .share-row { display: flex; flex-wrap: wrap; gap: 8px; }
    :root .post .share .sh { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; margin: 0; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.08); transition: transform .2s var(--ease), box-shadow .2s; }
    :root .post .share .sh:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.14), 0 10px 20px -12px rgba(0,0,0,.35); }
    :root .post .share .sh svg { width: 20px; height: 20px; flex: none; }
    :root .post .share .sh-ml svg, :root .post .share .sh-cp svg { color: #5b6cff; }
    :root .post .share .sh-cp.done { background: #eaf8ef; box-shadow: 0 0 0 1px rgba(34,160,90,.3); }
    @media (max-width: 640px) { :root .post .byline { margin-bottom: 22px; } :root .post .post-hero { margin-bottom: 24px; } :root .post .tldr, :root .post .toc { padding: 20px; } }
    @media (max-width: 560px) { :root .post .share-row { display: grid; grid-template-columns: 1fr 1fr; } :root .post .share .sh { justify-content: center; white-space: nowrap; padding: 0 10px; font-size: 13.5px; gap: 6px; } }
    :root .post-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 22px; background: var(--soft); border-radius: 20px; color: inherit; text-decoration: none; transition: background .2s, transform .3s var(--ease); }
    :root .sec.alt .post-card { background: #fff; }
    :root .post-card:hover { background: var(--blue-soft); transform: translateY(-2px); }
    :root .post-card .thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #ededea; }
    :root .post-card .body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 8px 10px 0; }
    :root .post-card .tag { color: var(--dim); font-size: 14px; font-weight: 500; }
    :root .post-card .t { margin: 0; flex: none; color: var(--ink); font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
    :root .post-card .t a { color: inherit; text-decoration: none; }
    :root .post-card .t a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
    :root .post-card p:not(.t) { margin: 0; color: #2a2a28; font-size: 15.5px; line-height: 1.5; flex: 1; }
    :root .post-card .meta { color: var(--dim); font-size: 14px; }
    :root .post .in.narrow { max-width: calc(720px + 2 * max(20px, 5vw)); }   /* built.lt's article column: 720 px of text */
    :root .post header h1 { margin: 0 0 16px; }
    :root .post .post-body { padding-top: 0; }
    :root .related .post-card { background: #fff; }
