/* The Builders Digest site system. Every page loads this file: the home page, /about, the articles,
   the long reads, /content, /apply, /partners, /start, /signin, the members pages, /admin.
   It holds what must look the same everywhere:
     - the site header (.site-top) and footer (.site-foot), markup in lib/site-chrome.js
     - buttons (.bd-btn), fields (.bd-field, .bd-label), cards (.bd-card), labels (.bd-kicker)
     - the reading layout (.read, .prose) used by every article and long piece
     - motion: sections that ease in (.reveal) and the floating card (.bd-float)
   Colors, fonts, the radius scale, elevation and the type scale are /bd-tokens.css values.
   Page files (home.css, members.css, a page's own <style>) only lay out what is particular to them.
   Base rules use :where() so a page's own styles always win over them. */
@import url('/bd-tokens.css');
:root {
  --s-paper: var(--paper, var(--bd-paper));
  --s-ink: var(--ink, var(--bd-ink));
  --s-muted: var(--muted, var(--bd-muted));
  --s-hair: var(--hair, var(--border, var(--bd-hair)));
  --s-accent: var(--red, var(--bd-accent));
  --s-on-accent: var(--bd-on-accent);
  --site-gutter: 16px;
  /* Motion */
  --bd-ease: cubic-bezier(.2, .7, .2, 1);
  --bd-fast: .15s;
  --bd-slow: .35s;
  /* Elevation, by its older names: 1 = a card at rest, 2 = lifted, 3 = floating over the page */
  --bd-lift-1: var(--bd-shadow);
  --bd-lift-2: var(--bd-shadow-hi);
  --bd-lift-3: 0 0 0 .5px color-mix(in srgb, var(--s-ink) 10%, transparent), 0 24px 60px -12px color-mix(in srgb, var(--s-ink) 35%, transparent);
}
@media (min-width: 768px) { :root { --site-gutter: 32px; } }
@media (min-width: 1024px) { :root { --site-gutter: 40px; } }

/* ── BASE (zero specificity) ── */
:where(html) { -webkit-text-size-adjust: 100%; }
:where(body) {
  margin: 0; background: var(--bd-paper); color: var(--bd-ink);
  font-family: var(--bd-font-text); font-size: var(--bd-fs-body); line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
:where(.site-top, .site-foot, .read, .site-page) *, :where(.site-top, .site-foot, .read, .site-page) *::before, :where(.site-top, .site-foot, .read, .site-page) *::after { box-sizing: border-box; }
.site-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-wrap, .read, .bd-btn, .bd-field, .bd-card { box-sizing: border-box; }
.site-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--site-gutter); }

/* ── HEADER: the wordmark, plain-word sections, Join, Member login. Sticky, frosted. ── */
.site-top {
  position: sticky; top: 0; z-index: 25;
  background: color-mix(in srgb, var(--bd-paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--bd-ink) 8%, transparent);
  font-family: var(--bd-font-text); color: var(--bd-ink);
}
.site-top a { color: inherit; text-decoration: none; }
.site-top-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding-top: 10px; }
.site-brand { margin: 0; font-family: var(--bd-font-display); font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: -.02em; }
.site-brand a { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.site-logo { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.site-login { font-size: 14px; font-weight: 600; color: var(--bd-ink-soft); padding: 10px 0; white-space: nowrap; }
.site-login:hover, .site-login[aria-current] { color: var(--bd-accent); }
/* On a phone the sections are one row under the wordmark that scrolls inside itself. */
.site-nav {
  grid-column: 1 / -1; grid-row: 2; min-width: 0;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 6px calc(var(--site-gutter) * -1) 0; padding: 0 var(--site-gutter) 10px;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: none; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--bd-ink-soft);
  padding: 8px 12px; border-radius: var(--bd-r-1); transition: background .15s, color .15s;
}
.site-nav a:first-child { margin-left: -12px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--bd-ink); background: color-mix(in srgb, var(--bd-ink) 6%, transparent); }
.site-nav .site-join { background: var(--bd-accent); color: var(--bd-on-accent); margin-left: auto; padding: 8px 16px; }
.site-nav .site-join:hover { background: var(--bd-accent); color: var(--bd-on-accent); filter: brightness(.92); }
.site-top-bare { min-height: 60px; padding-top: 0; }
@media (min-width: 1024px) {
  .site-top-row { grid-template-columns: auto minmax(0, 1fr) auto; padding-top: 0; min-height: 72px; }
  .site-brand { font-size: 28px; }
  .site-nav { grid-column: 2; grid-row: 1; justify-content: flex-end; margin: 0; padding: 0; gap: 4px; overflow: visible; }
  .site-nav a:first-child { margin-left: 0; }
  .site-nav .site-join { margin-left: 8px; }
  .site-login { padding-left: 12px; }
}

/* ── FOOTER ── */
.site-foot { padding: 34px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--bd-hair); font-family: var(--bd-font-text); color: var(--bd-ink); }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot p { margin: 0; }
.site-foot-grid { display: flex; flex-direction: column; gap: 14px; }
.site-foot-mark { font-family: var(--bd-font-display); font-weight: 900; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot-links a { font-size: 15px; color: var(--bd-ink-soft); padding: 6px 0; }
.site-foot-links a:hover { color: var(--bd-accent); }
.site-foot-legal { font-size: 13px; color: var(--bd-muted); }
.site-foot-legal a { color: var(--bd-accent); }
@media (min-width: 768px) {
  .site-foot-grid { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .site-foot-legal { flex-basis: 100%; }
}

/* ── BUTTONS: red, rounded on the scale, sentence case. .ghost is the outlined one. ── */
.bd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--bd-r-2);
  background: var(--bd-accent); color: var(--bd-on-accent);
  font-family: var(--bd-font-text); font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; text-decoration: none;
  cursor: pointer; transition: filter .15s, transform .15s, background-color .15s, color .15s;
}
.bd-btn:hover { filter: brightness(.92); }
.bd-btn:active { transform: scale(.97); }
.bd-btn:disabled, .bd-btn[disabled] { opacity: .45; cursor: not-allowed; }
.bd-btn.ghost { background: transparent; color: var(--bd-ink); box-shadow: inset 0 0 0 1.5px var(--bd-ink); }
.bd-btn.ghost:hover { filter: none; background: var(--bd-ink); color: var(--bd-paper); }
.bd-btn.dark { background: var(--bd-ink); color: #fff; }
.bd-btn.dark:hover { filter: brightness(1.25); }

/* ── FIELDS ── */
.bd-label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--bd-ink-soft); }
.bd-field {
  display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--bd-hair); border-radius: var(--bd-r-2); background: #fff; color: var(--bd-ink);
  font-family: var(--bd-font-text); font-size: 16px; line-height: 1.4; /* 16px stops iOS zooming on focus */
  outline: none; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
}
.bd-field::placeholder { color: var(--bd-muted); }
.bd-field:hover { border-color: var(--bd-muted); }
.bd-field:focus { border-color: var(--bd-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bd-ink) 10%, transparent); }

/* ── CARDS AND LABELS ── */
.bd-card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--bd-card); border-radius: var(--bd-r-3); box-shadow: var(--bd-shadow);
  transition: transform .35s var(--bd-ease), box-shadow .35s var(--bd-ease);
}
.bd-kicker { display: block; font-family: var(--bd-font-text); font-size: var(--bd-fs-label); font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--bd-accent); }
.bd-pic { position: relative; display: block; margin: 0; overflow: hidden; background: #d9d6ce; }
.bd-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--bd-ease); }
.bd-credit {
  position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 2px 6px; border-radius: 4px; background: rgba(20, 20, 19, .42);
  font-size: 11px; line-height: 1.3; color: rgba(255, 255, 255, .94);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (hover: hover) {
  a.bd-card:hover { transform: translateY(-3px); box-shadow: var(--bd-shadow-hi); }
  a.bd-card:hover .bd-pic img { transform: scale(1.03); }
}
a.bd-card:active { transform: scale(.985); transition-duration: .1s; }

/* ── READING: articles, the long reads, terms, privacy. A readable column, 18px body. ── */
.read { width: 100%; max-width: 760px; margin: 0 auto; padding: 36px var(--site-gutter) 72px; }
.read-head { margin-bottom: 28px; }
.read-head .bd-kicker { margin-bottom: 12px; }
.read-title { margin: 0; font-family: var(--bd-font-display); font-weight: 700; font-size: clamp(36px, 8.6vw, 58px); line-height: 1.1; letter-spacing: 0; text-wrap: balance; overflow-wrap: break-word; }
.read-sub { margin: 14px 0 0; font-size: 20px; line-height: 1.4; color: var(--bd-ink-soft); max-width: 36em; }
.read-meta { margin: 16px 0 0; font-size: var(--bd-fs-small); line-height: 1.5; color: var(--bd-muted); }
.read-meta b { color: var(--bd-ink); font-weight: 600; }
.read-hero { position: relative; margin: 0 0 36px; border-radius: var(--bd-r-3); overflow: hidden; background: #d9d6ce; box-shadow: var(--bd-shadow); }
.read-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.read-hero .bd-credit { right: 12px; bottom: 10px; }

.prose { font-size: 18px; line-height: 1.65; color: var(--bd-ink); overflow-wrap: break-word; }
.prose > * { margin: 0 0 1.05em; }
.prose h2 { margin: 1.9em 0 .55em; font-family: var(--bd-font-display); font-weight: 700; font-size: clamp(26px, 5.4vw, 32px); line-height: 1.15; letter-spacing: 0; }
.prose h3 { margin: 1.6em 0 .4em; font-family: var(--bd-font-text); font-weight: 700; font-size: 20px; line-height: 1.3; }
.prose h4 { margin: 1.4em 0 .4em; font-size: 18px; font-weight: 700; }
.prose a { color: var(--bd-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--bd-muted); }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-radius: var(--bd-r-2); background: var(--bd-card); box-shadow: var(--bd-shadow); font-family: var(--bd-font-display); font-weight: 700; font-size: 21px; line-height: 1.4; }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .6em; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--bd-slab); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--bd-r-2); background: var(--bd-slab); }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; height: 1px; background: var(--bd-hair); margin: 2em 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--bd-r-3); }
/* Tables sit in a rounded card that scrolls sideways on a phone instead of widening the page. */
.prose .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; border-radius: var(--bd-r-2); background: var(--bd-card); box-shadow: var(--bd-shadow); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bd-hair); }
.prose th { font-weight: 700; background: color-mix(in srgb, var(--bd-slab) 60%, transparent); }
.prose tr:last-child td { border-bottom: 0; }

/* FAQ, at the end of some articles */
.read-faq { margin-top: 44px; padding: 26px 24px 8px; border-radius: var(--bd-r-3); background: var(--bd-card); box-shadow: var(--bd-shadow); }
.read-faq h2 { margin: 0 0 16px; font-family: var(--bd-font-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: 0; }
.read-faq-item { padding: 14px 0 16px; border-top: 1px solid var(--bd-hair); }
.read-faq-item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.read-faq-item p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--bd-ink-soft); }

/* The long reads (The Parts Catalog, Our Software Stack): pull lines, the tool lists, the author
   note, the Next link, the newsletter box and the follow row. */
.prose .intro { font-size: 21px; line-height: 1.5; color: var(--bd-ink-soft); }
.prose .pull { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--bd-accent); font-family: var(--bd-font-display); font-weight: 700; font-size: clamp(22px, 4.6vw, 27px); line-height: 1.3; color: var(--bd-ink); }
.prose .stat { display: block; margin: 1.2em 0; font-size: var(--bd-fs-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bd-accent); }
.prose .cat-blurb { margin-top: -.2em; font-size: 17px; color: var(--bd-muted); }
.prose .tool-list { list-style: none; padding: 4px 20px; border-radius: var(--bd-r-3); background: var(--bd-card); box-shadow: var(--bd-shadow); }
.prose .tool-list li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--bd-hair); font-size: 17px; line-height: 1.5; }
.prose .tool-list li:last-child { border-bottom: 0; }
.prose .tool-list a { font-weight: 700; color: var(--bd-ink); text-decoration: none; }
.prose .tool-list a:hover { color: var(--bd-accent); }
.read-bio { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--bd-hair); font-size: var(--bd-fs-small); line-height: 1.6; color: var(--bd-muted); }
.read-bio strong { color: var(--bd-ink); font-weight: 600; }
.read-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding: 20px 22px; border-radius: var(--bd-r-3); background: var(--bd-card); box-shadow: var(--bd-shadow); }
.read-join { margin-top: 40px; padding: 26px 22px 24px; border-radius: var(--bd-r-3); background: var(--bd-card); box-shadow: var(--bd-shadow); }
.read-join-title { margin: 8px 0 0; font-family: var(--bd-font-display); font-weight: 700; font-size: clamp(30px, 7vw, 40px); line-height: 1.1; letter-spacing: 0; }
.read-join-sub { margin: 8px 0 18px; font-size: 17px; color: var(--bd-ink-soft); }
.read-join-row { display: flex; gap: 8px; }
.read-join-row .bd-field { flex: 1; }
.read-join-row .bd-btn { flex: none; }
.read-join-row .form-divider { display: none; }
.read-join .form-error { display: none; margin: 9px 0 0; font-size: 14px; font-weight: 600; color: var(--bd-accent); }
.read-join .form-success { display: none; align-items: center; gap: 8px; padding: 12px 0 0; font-size: 17px; font-weight: 600; color: var(--bd-ink); }
.read-follow { margin-top: 36px; }
.read-follow .bd-kicker { margin-bottom: 12px; color: var(--bd-muted); }
.read-follow-row { display: flex; flex-wrap: wrap; gap: 8px; }
.read-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--bd-r-2); background: var(--bd-card); box-shadow: var(--bd-shadow); color: var(--bd-ink-soft); font-size: 15px; font-weight: 600; text-decoration: none; transition: color .15s, box-shadow .2s; }
.read-chip:hover { color: var(--bd-accent); box-shadow: var(--bd-shadow-hi); }
.read-chip svg { width: 16px; height: 16px; flex: none; }

/* More to read: photo cards, the same as the home page's Latest. */
.more { padding: 8px 0 72px; }
.more-head { margin: 0 0 18px; font-family: var(--bd-font-display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: 0; }
.more-grid { display: grid; gap: 14px; }
.more-card .bd-pic { aspect-ratio: 3 / 2; }
.more-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.more-body .bd-kicker { font-size: 12px; }
.more-title { margin: 0; font-family: var(--bd-font-display); font-weight: 700; font-size: 21px; line-height: 1.18; letter-spacing: 0; transition: color .15s; }
.more-desc { margin: 0; font-size: 15px; line-height: 1.45; color: var(--bd-ink-soft); }
.more-by { font-size: 14px; color: var(--bd-muted); }
@media (hover: hover) { a.more-card:hover .more-title { color: var(--bd-accent); } }
@media (min-width: 640px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) {
  .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .read { padding-top: 56px; }
  .prose { font-size: 19px; }
}

/* Sections ease in the first time they come into view. Without the script nothing is hidden. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s var(--bd-ease); }
html.js .reveal.seen { opacity: 1; transform: none; }

/* The floating card. Hidden without the script, and until the script says it is time (.in). */
.bd-float { display: none; }
html.js .bd-float {
  position: fixed; z-index: 20; left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 18px;
  border: 1px solid var(--s-hair); border-radius: var(--bd-r-3);
  background: var(--s-paper); color: var(--s-ink);
  box-shadow: var(--bd-lift-3);
  transform: translateX(-50%);
  transition: opacity .4s, transform .5s var(--bd-ease), visibility 0s;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  html.js .bd-float { background: color-mix(in srgb, var(--s-paper) 86%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
}
html.js .bd-float:not(.in) { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 28px); transition: opacity .4s, transform .5s var(--bd-ease), visibility 0s .5s; }
.bd-float-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.bd-float-text b { font-size: 16px; font-weight: 700; line-height: 1.15; letter-spacing: -.005em; }
.bd-float-text small { font-size: 13px; line-height: 1.25; color: var(--s-muted); }
.bd-float-go {
  flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px;
  border-radius: var(--bd-r-2); background: var(--s-accent); color: var(--s-on-accent);
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform var(--bd-fast) var(--bd-ease), filter .2s;
}
.bd-float-go::after { content: '\2192\FE0E'; font-weight: 400; font-size: 16px; letter-spacing: 0; }
.bd-float-go.icon { width: 46px; padding: 0; justify-content: center; }
.bd-float-go:hover { filter: brightness(.92); }
.bd-float-go:active { transform: scale(.96); }
.bd-float-x {
  flex: none; display: grid; place-items: center; width: 34px; height: 46px; margin: 0; padding: 0; border: 0; border-radius: var(--bd-r-1);
  background: none; color: var(--s-muted); font: 400 22px/1 inherit; cursor: pointer;
}
.bd-float-x:hover { color: var(--s-ink); }
@media (min-width: 900px) { html.js .bd-float { bottom: 24px; } }

/* ── THE PROMPTS. Hidden until /home.js opens one, one at a time. On the home page and every reading
   page (the articles, /articles, /newsletter, the long reads, /about, /partners); home.js puts the
   markup in on the pages that do not carry it.
   Join: a modal over the page, a dimmed and blurred backdrop with a rounded card in the middle (not
   edge to edge on a phone). Without the script the nav's Join link still opens it through :target.
   Work with us: a small floating card in the bottom right corner at every width, never full width,
   clear of the iOS safe area. ── */
/* Their own base, so they look the same on a page that does not reset like home.css does. */
:where(.modal, .slip) *, :where(.modal, .slip) *::before, :where(.modal, .slip) *::after { box-sizing: border-box; margin: 0; padding: 0; }
:where(.modal, .slip) a { color: inherit; text-decoration: none; }
:where(.modal, .slip) img { display: block; max-width: 100%; }
.modal, .slip { font-family: var(--bd-font-text); color: var(--bd-ink); line-height: 1.45; -webkit-font-smoothing: antialiased; }
.modal {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .3s ease;
}
.modal[hidden] { display: none; }
html:not(.js) .modal:target { display: grid; opacity: 1; }
.modal.in { opacity: 1; }
.modal-backdrop {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--bd-ink) 46%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1);
}
.modal-card {
  position: relative; width: 100%; max-width: 520px; overflow: hidden;
  background: var(--bd-card); border-radius: var(--bd-r-3);
  box-shadow: 0 0 0 .5px color-mix(in srgb, var(--bd-ink) 10%, transparent), 0 30px 80px -20px rgba(19, 19, 18, .5);
  transform: translateY(18px) scale(.98); transition: transform .45s var(--bd-ease);
}
.modal.in .modal-card, html:not(.js) .modal:target .modal-card { transform: none; }
.modal-card:focus { outline: none; }
.modal-pic { aspect-ratio: 2 / 1; }
.modal-pic img { object-position: 50% 30%; }
.modal-x {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--bd-card) 88%, transparent); color: var(--bd-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 400 26px/1 var(--bd-font-text); cursor: pointer; box-shadow: 0 2px 8px rgba(19, 19, 18, .18);
}
.modal-x:hover { background: var(--bd-card); color: var(--bd-accent); }
.modal-body { padding: 22px 22px 24px; }
.modal-body .slip-kicker { display: block; margin-bottom: 8px; }
.modal-title { font-family: var(--bd-font-display); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: 0; }
.modal-body .slip-line { margin: 8px 0 18px; font-size: 17px; }
html.modal-open { overflow: hidden; }

.slip {
  position: fixed;
  z-index: 30;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  width: 228px;
  max-width: calc(100vw - 24px);
  background: var(--bd-card);
  border-radius: var(--bd-r-2, 14px);
  box-shadow: 0 0 0 .5px rgba(19, 19, 18, .12), 0 14px 36px -10px rgba(19, 19, 18, .35);
  padding: 4px 6px 12px 14px;
  transform: translateY(calc(100% + 40px));
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1);
}
.slip.in { transform: none; }
.slip-head { display: flex; justify-content: space-between; align-items: center; }
.slip-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bd-accent); }
.slip .slip-kicker { font-size: 11px; }
.slip-x { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 400; line-height: 1; color: var(--bd-muted); cursor: pointer; }
.slip-x:hover { color: var(--bd-ink); }
.slip-title { font-family: var(--bd-font-display); font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: 0; margin: -2px 8px 10px 0; }
.slip .bd-btn { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.slip-line { font-size: 16px; line-height: 1.45; color: var(--bd-ink-soft); margin: 6px 0 16px; }
.join-form { display: flex; gap: 8px; }
.join-form .bd-field { flex: 1; }
.join-form .bd-btn { flex: none; }
.join-error { display: none; font-size: 14px; color: var(--bd-accent); margin-top: 9px; }
.join-error.visible { display: block; }
.join-success { display: none; font-size: 17px; font-weight: 600; color: var(--bd-ink); padding: 12px 0 4px; }
.join-success.visible { display: block; }
.modal-alt { margin: 14px 0 0; font-size: 15px; color: var(--bd-ink-soft); }
@media (min-width: 768px) {
  .slip { right: 24px; bottom: 24px; width: 260px; }
  .modal-body { padding: 26px 30px 30px; }
  .modal-title { font-size: 40px; }
}
@media (min-width: 1024px) { .slip { right: 32px; bottom: 32px; } }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .bd-float, html.js .bd-float:not(.in) { transition: none; }
  html.js .bd-float:not(.in) { transform: translateX(-50%); }
  .bd-float-go, .bd-card, .bd-pic img, .bd-btn { transition: none; }
  .slip, .modal, .modal-card { transition: none; }
}

/* Sign out: a one-button POST form that reads as a plain link (lib/client-page.js SIGN_OUT_FORM). */
.out-form { display: inline; margin: 0; }
.out-form button:not([class]) { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
