/* the Atlas Manifest card's faces (Cormorant SC and Inter come from the base layout) */
@layer legacy {
.sheet, .views, .view, .screen, .site { all: unset; display: block; }
body { margin: 0; }

/* ---- Frame ---- */
.bp { box-sizing: border-box; width: 100%; max-width: 1440px; margin: 0 auto; padding: 22px var(--pad) 88px;
  display: flex; flex-direction: column; gap: 28px; }
.bp [hidden] { display: none !important; }
.bp-body { display: flex; flex-direction: column; gap: 52px; }
.bp-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.78125rem; color: var(--text-dim); }
.bp-crumb a { color: var(--text-muted); transition: color .15s; }
.bp-crumb a:hover { color: var(--text); }
.bp-crumb span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-state { padding: 96px 0 120px; text-align: center; color: var(--text-muted); }
.bp-state h1 { margin: 0 0 12px; font-size: 1.75rem; font-weight: 700; color: var(--text); }
.bp-state p { margin: 0 auto 8px; max-width: 480px; font-size: 0.9375rem; line-height: 1.6; }
.bp-state a { color: var(--amber); }

/* ---- Header: who they are on the left; the ledger and the actions on the right ---- */
/* No line of its own: the Ships | Posts tabs right under it draw the one
   line between the header and the rest (2026-11-17, Kuma: the two lines
   and the gap between them were wasted space). */
.bp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start;
  padding-bottom: 4px; }
.bp-id { display: flex; align-items: flex-start; gap: 26px; min-width: 0; }
.bp-av { width: 128px; height: 128px; }
.bp-av > img[hidden] { display: none; }
.bp-av.has-image > .pf-initials { display: none !important; }
.bp-av > .pf-initials { font-size: 2.375rem; }
.bp-who { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.bp-name { display: block; font-size: 2.25rem; line-height: 1.12; overflow-wrap: anywhere; }
.bp-name .sc-ver { display: inline-block; width: 22px; height: 22px; margin-left: 10px; vertical-align: 0; }
.bp-headline { font-size: 0.9375rem; }
.bp-chips { gap: 10px 16px; margin-top: 4px; }
.bp-community { transition: border-color .15s, background .15s; }
.bp-community:hover { border-color: var(--border-strong); background: var(--card); }
.bp-community img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.bp-spec { font-size: 0.84375rem; }
/* Headline and Specializes in read as one pair on desktop (2026-11-17,
   Kuma: "bring these closer"). A community pill keeps a little more air. */
@media (min-width: 721px) {
  .bp-headline:not([hidden]) + .bp-chips { margin-top: -6px; }
  .bp-headline:not([hidden]) + .bp-chips:has(> .bp-community:not([hidden])) { margin-top: -2px; }
}
/* The bio (2026-11-17, Kuma picked it over the About panel): in the
   header under the headline, cut to two lines with an ellipsis when it
   runs longer, More opening the rest. Paragraphs run together while it's
   cut, so the two lines are full ones. Then the facts, one small line,
   shown only once More is open. */
.bp-bio[hidden], .bp-facts[hidden], .bp-bio-more[hidden] { display: none !important; }
.bp-bio { max-width: 640px; margin-top: 8px; overflow-wrap: anywhere; }
.bp-bio p { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.65; color: var(--text); }
.bp-bio p:last-child { margin-bottom: 0; }
.bp-bio.is-folded { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.bp-bio.is-folded p { display: inline; margin: 0; }
.bp-bio.is-folded p + p::before { content: " "; }
.bp-bio.is-folded br { display: none; }
.bp-bio-more { margin-top: -4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 0.8125rem/1.4 var(--font-ui); color: var(--amber); }
.bp-bio-more:hover, .bp-bio-more:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.bp-facts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text-dim); }
.bp-facts b { font-weight: 500; color: var(--text-muted); }

.bp-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.bp-ledger { display: flex; }
.bp-ledger > * { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding: 0 24px; border-left: 1px solid var(--border); }
.bp-ledger > *:first-child { padding-left: 0; border-left: 0; }
.bp-ledger > *:last-child { padding-right: 0; }
.bp-ledger > *[hidden] { display: none; }
.bp-ledger b { font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bp-ledger i { font-style: normal; font-size: 0.65625rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
/* Your own profile: Followers and Following are buttons that open the
   Followers | Following popup (2026-11-17, Kuma). */
.bp-ledger > button { border-top: 0; border-right: 0; border-bottom: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.bp-ledger > button b, .bp-ledger > button i { transition: color .15s; }
.bp-ledger > button:hover b, .bp-ledger > button:focus-visible b { color: var(--amber-bright); }
.bp-ledger > button:hover i, .bp-ledger > button:focus-visible i { color: var(--amber); }
.bp-ledger > button:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 6px; }

/* ---- Followers | Following popup: the two lists under the profile's
   own tabs; Following has each builder's alerts switch and Unfollow
   (the same rows as /account/#following) ---- */
.bfw-modal [hidden] { display: none !important; }
/* near the top rather than centred, so switching tabs only moves the
   bottom edge; as tall as its list, up to 640px */
.bfw-modal { box-sizing: border-box; align-items: flex-start; padding: max(24px, 10vh) 0 24px; }
.bfw-card { display: flex; flex-direction: column; box-sizing: border-box; min-height: 240px; max-height: min(640px, 100%); padding: 0;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.bfw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex: none; padding: 20px 24px 0; border-bottom: 1px solid var(--border); }
.bfw-head .bp-tabs { gap: 28px; }
.bfw-head .modal-close { position: static; align-self: flex-start; margin: -6px -12px 0 0; }
.bfw-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bfw-row { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--border); transition: opacity .2s; }
.bfw-row:last-child { border-bottom: 0; }
.bfw-av { display: grid; place-items: center; flex: none; box-sizing: border-box; width: 40px; height: 40px; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1d2535, #0b0f18 70%); color: var(--text); font-size: 0.8125rem; font-weight: 600; letter-spacing: .04em; }
.bfw-av img { width: 100%; height: 100%; object-fit: cover; }
.bfw-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.bfw-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 0.90625rem; font-weight: 600; color: var(--text); }
.bfw-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.bfw-name:hover, a.bfw-name:focus-visible { color: var(--amber-bright); }
.bfw-ver { flex: none; width: 14px; height: 14px; color: var(--amber); }
.bfw-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78125rem; color: var(--text-dim); }
.bfw-meta a { color: var(--text-muted); }
.bfw-meta a:hover { color: var(--amber-bright); }
.bfw-bell, .bfw-btn { display: inline-grid; place-items: center; flex: none; box-sizing: border-box; height: 34px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-muted); font: 600 0.6875rem/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: border-color .15s, color .15s; }
.bfw-btn { min-width: 98px; padding: 0 12px; }
.bfw-bell { width: 34px; }
.bfw-bell svg { width: 15px; height: 15px; }
.bfw-bell[aria-pressed="true"] { border-color: rgba(212, 168, 95, .55); color: var(--amber); }
.bfw-bell[aria-pressed="true"] .bfw-slash { display: none; }
.bfw-bell:hover:not(:disabled), .bfw-btn:hover:not(:disabled) { border-color: var(--amber); color: var(--amber-bright); }
.bfw-bell:focus-visible, .bfw-btn:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 2px; }
.bfw-bell:disabled, .bfw-btn:disabled { cursor: default; }
.bfw-row.is-gone .bfw-av, .bfw-row.is-gone .bfw-info, .bfw-row.is-gone .bfw-bell { opacity: .45; }
.bfw-row.is-gone .bfw-btn { border-color: var(--amber); color: var(--amber-bright); }
.bfw-note { margin: 0; padding: 22px 24px; font-size: 0.84375rem; line-height: 1.6; color: var(--text-muted); }
.bfw-note a { color: var(--amber); }
.bfw-more { display: flex; justify-content: center; padding: 14px 24px 18px; }
@media (max-width: 720px) {
  .bfw-card { width: calc(100% - 24px); }
  .bfw-head { padding: 16px 16px 0; }
  .bfw-row { padding: 12px 16px; gap: 10px; }
  .bfw-note { padding: 18px 16px; }
  /* a followed builder: the name gets the row, the switch and Unfollow go under it */
  .bfw-fol { flex-wrap: wrap; row-gap: 10px; }
  .bfw-fol .bfw-info { flex-basis: calc(100% - 50px); }
  .bfw-fol .bfw-bell { margin-left: 50px; }
  .bfw-fol .bfw-btn { flex: 1; }
}

.bp-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.bp-acts .b-case { box-sizing: border-box; height: 42px; padding: 0 16px; gap: 9px; white-space: nowrap; }
.bp-acts .b-icon { box-sizing: border-box; width: 42px; height: 42px; }
.bp-acts .b svg { width: 16px; height: 16px; flex: none; }
.bp-acts .b .chev { width: 10px; height: 10px; margin-left: 2px; opacity: .7; transition: transform .2s; }
.bp-drop { position: relative; }
.bp-drop.is-open > .b .chev { transform: rotate(180deg); }
.bp-drop.is-open > .b-quiet { border-color: var(--border-strong); background: var(--card); }

/* Follow: solid gold + until you follow, then the gold edge with a tick
   and a menu. Wide enough that Follow and Following don't jump. */
.bp-follow > .b { min-width: 132px; justify-content: center; }
.bp-act-label { display: none; }
.bp-follow > .b:disabled { opacity: .6; cursor: progress; }
.bp-follow .bp-follow-tick, .bp-follow .chev { display: none; }
.bp-follow.is-following .bp-follow-plus { display: none; }
.bp-follow.is-following .bp-follow-tick, .bp-follow.is-following .chev { display: block; }
.bp-follow-menu { min-width: 270px; }
.bp-follow-menu .bp-follow-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; font-size: 0.875rem; color: var(--text); cursor: pointer; }
.bp-follow-note { margin: 0 0 6px; padding: 8px 12px 12px; border-bottom: 1px solid var(--border); font-size: 0.78125rem; line-height: 1.5; color: var(--text-muted); white-space: normal; }
.bp-follow-note b { font-weight: 600; color: var(--text); }
.bp-follow-note:not([hidden]) ~ #bprofFollowAlerts { color: var(--amber-bright); }
.bp-follow-unf { margin-top: 4px; padding: 10px 12px; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; font-size: 0.875rem; color: var(--text-muted); text-align: left; cursor: pointer; }
.bp-follow-unf:hover, .bp-follow-unf:focus-visible { color: #f3a4a4; background: var(--card-hover); outline: none; }

/* menus: grey; a hovered row gets a gold bar on its left */
.bp-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; display: none; flex-direction: column; box-sizing: border-box;
  min-width: 250px; padding: 6px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 14px 34px rgba(0,0,0,.55); text-align: left;
  width: min-content; /* a popover (ui/menu.js), sized in the window now, not in its narrow .bp-drop: min-content keeps the width it had there */ }
.bp-menu-r { left: auto; right: 0; }
.bp-menu:popover-open { display: flex; } /* a popover (ui/menu.js); closed, components/site.css hides it */
.bp-menu a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 0.875rem; color: var(--text); white-space: nowrap; }
.bp-menu a:hover, .bp-menu a:focus-visible { background: var(--card-hover); outline: none; }
.bp-menu a:hover::before, .bp-menu a:focus-visible::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--amber); }
.bp-menu .h { margin-left: auto; max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-size: 0.75rem; color: var(--text-dim); }
.bp-menu-note { margin-top: 4px; padding: 9px 12px 6px; border-top: 1px solid var(--border); font-size: 0.71875rem; line-height: 1.5; color: var(--text-dim); white-space: normal; }
.bp-share-menu { width: 300px; padding: 16px; gap: 12px; }
/* the QR sits on the panel itself, not in main.css's white tile */
.ship-share-qr#bprofShareQr, .ship-share-qr#bprofCardShareQr { display: flex; justify-content: center; width: auto; height: auto; margin: 0 auto 4px; background: transparent; padding: 0; border: 0; }

/* ---- Section heads ---- */
.bp-sec { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bp-sec-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; min-height: 44px; }
.bp-sec-title { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--text); }
.bp-sec-note { margin-left: 12px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--text-dim); }
.bp-sec-sub { margin: -8px 0 0; max-width: 680px; font-size: 0.84375rem; line-height: 1.6; color: var(--text-muted); }
.bp-sort select { background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; outline: none; }

/* ---- Ships | Posts: text tabs on a hairline, gold under the open one ---- */
#bprofShipsSection { gap: 26px; }
.bp-tabhead { align-items: flex-end; flex-wrap: nowrap; min-height: 0; border-bottom: 1px solid var(--border); }
.bp-tabs { display: flex; gap: 30px; min-width: 0; }
.bp-tab { position: relative; padding: 0 0 15px; border: 0; background: none; font: inherit; font-size: 1rem; font-weight: 600;
  line-height: 1.2; color: var(--text-dim); cursor: pointer; transition: color .15s; }
.bp-tab:hover { color: var(--text-muted); }
.bp-tab[aria-selected="true"] { color: var(--text); }
.bp-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-line);
  transform: scaleX(0); transition: transform .2s ease; }
.bp-tab[aria-selected="true"]::after { transform: scaleX(1); }
.bp-tab:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 4px; }
.bp-tabhead .bp-sort { flex: none; margin-bottom: 8px; }
.bp-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
/* Posts open: the rest of the profile steps aside */
.bp-body.is-posts > .bp-sec:not(#bprofShipsSection) { display: none !important; }
.bp-body.is-posts #bprofShipSortWrap { visibility: hidden; }   /* keeps its room, so the tabs don't jump */

/* ---- Posts: the feed at Discover's width; beside it, a column with
   four of their ships and the photos from their posts (2026-11-17,
   Kuma picked it to fill the empty right half). The column stays in view
   as the feed scrolls (its top is set in startPosts: when it's taller
   than the window, it scrolls along until its bottom shows). It steps
   aside on narrow screens. ---- */
.bp-posts { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); gap: 56px; align-items: start; }
.bp-posts-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Create post sits over the feed's top right; the side column steps down
   with it so Ships still lines up with the first post */
.bp-posts-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 36px; margin-bottom: -2px; }
.bp-posts-from { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.bp-posts-bar[hidden] { display: none; }
.bp-create { gap: 8px; }
.bp-create svg { width: 14px; height: 14px; flex: none; }
.bp-posts:has(.bp-posts-bar:not([hidden])) .bp-side { padding-top: 50px; }
.bp-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.bp-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.bp-side-head h3 { margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.bp-side-all { padding: 0; border: 0; background: none; cursor: pointer; font: 600 0.8125rem/1.4 var(--font-ui); color: var(--amber); }
.bp-side-all:hover, .bp-side-all:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.bp-side-ships { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.bp-side-ship { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--text); }
.bp-side-pic { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: border-color .15s; }
.bp-side-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bp-side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.84375rem; font-weight: 600; transition: color .15s; }
.bp-side-ship:hover .bp-side-pic, .bp-side-ship:focus-visible .bp-side-pic { border-color: var(--border-strong); }
.bp-side-ship:hover .bp-side-name, .bp-side-ship:focus-visible .bp-side-name { color: var(--amber); }
.bp-side-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bp-side-photo { display: block; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; background: var(--card); cursor: zoom-in; }
.bp-side-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.bp-side-photo:hover img, .bp-side-photo:focus-visible img { opacity: .82; }
.bp-side-photo:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 2px; }
.bp-locked { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px dashed var(--border-strong); background: var(--card);
  font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }
.bp-locked svg { flex: none; width: 18px; height: 18px; color: var(--amber); }
.bp-locked p { flex: 1; min-width: 0; margin: 0; }
.bp-locked p b { color: var(--text); font-weight: 600; }
.bp-locked .b { flex: none; }

/* ---- Signature build: the hero, three more angles, the words in a column of their own ---- */
.bp-sig { --angles: 3; position: relative; display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr) 300px;
  grid-template-areas: "photo angles text"; gap: 8px; padding: 8px; border: 1px solid var(--amber); background: var(--card);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.35); }
.bp-sig.is-solo { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "photo text"; }
.bp-sig.is-solo .bp-sig-angles { display: none; }
.bp-sig-photo { grid-area: photo; position: relative; display: block; min-width: 0; overflow: hidden; background: var(--surface); }
.bp-sig-photo::before { content: ""; display: block; padding-top: 56.25%; }
.bp-sig-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.bp-sig-photo:hover img { transform: scale(1.02); }
/* the hero alone sets the strip's height; the angles fit inside it */
.bp-sig-angles { grid-area: angles; display: grid; grid-template-rows: repeat(var(--angles), minmax(0, 1fr)); gap: 8px; min-width: 0; contain: size; }
.bp-sig-angle { position: relative; display: block; min-height: 0; padding: 0; border: 0; overflow: hidden; background: var(--surface); cursor: pointer; }
.bp-sig-angle.is-skel { cursor: default; }
.bp-sig-angle img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.bp-sig-angle:hover img, .bp-sig-angle:focus-visible img { opacity: 1; }
.bp-sig-angle:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.bp-sig-more { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; font-size: 0.71875rem; font-weight: 600; color: var(--text); background: rgba(5,7,11,.72); }
.bp-sig-text { grid-area: text; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 12px 4px 12px; }
.bp-sig-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.bp-sig-eyebrow .coin { width: 12px; height: 12px; flex: none; }
.bp-sig-name { margin: 2px 0 0; font-size: 1.375rem; font-weight: 700; line-height: 1.2; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-sig-desc { margin: 0; font-size: 0.84375rem; line-height: 1.55; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.bp-sig .pf-meta { font-size: 0.78125rem; }
.bp-sig .sc-obols .coin { width: 10px; height: 10px; }
.bp-sig-act { display: flex; margin-top: auto; padding-top: 6px; }
.bp-sig-act .b-plate { flex: 1; justify-content: center; white-space: nowrap; }
/* On desktop the strip is as tall as one ship card in the grid below
   (2026-11-17, Kuma). The script measures a card into --tile-h and adds
   .is-tile-h. The hero keeps its 16:9 ("maintain aspect ratio"), so its
   width comes from the height (the strip's 8px padding and 1px border
   come off first); the angles stay 16:9 in their column; the words take
   the rest of the width, and the button keeps its own width there. */
@media (min-width: 1101px) {
  .bp-sig.is-tile-h { --in-h: calc(var(--tile-h) - 18px); box-sizing: border-box; height: var(--tile-h); grid-template-rows: minmax(0, 1fr);
    grid-template-columns: calc(var(--in-h) * 16 / 9) calc((var(--in-h) - (var(--angles) - 1) * 8px) / var(--angles) * 16 / 9) minmax(0, 1fr); }
  .bp-sig.is-tile-h.is-solo { grid-template-columns: calc(var(--in-h) * 16 / 9) minmax(0, 1fr); }
  .bp-sig.is-tile-h .bp-sig-photo::before { display: none; }
  .bp-sig.is-tile-h .bp-sig-text { gap: 8px; padding: 10px 14px 4px 18px; overflow: hidden; }
  .bp-sig.is-tile-h .bp-sig-name { -webkit-line-clamp: 1; }
  .bp-sig.is-tile-h .bp-sig-desc { -webkit-line-clamp: 3; max-width: 640px; }
  .bp-sig.is-tile-h .bp-sig-act .b-plate { flex: none; padding-left: 28px; padding-right: 28px; }
  /* With Second best (the script adds .has-second when the grid below
     has four or more columns): the row takes the grid's own columns, the
     strip spans all but the last, the card sits in the last, so both
     line up with the cards below. */
  #bprofFeaturedSection.has-second:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
  #bprofFeaturedSection.has-second .bp-sig { grid-column: 1 / -2; }
  #bprofFeaturedSection.has-second .bp-second:not([hidden]) { display: flex; }
}
.bp-second { display: none; min-width: 0; }
.bp-second > .wc { flex: 1; min-width: 0; }
.bp-tag.is-gold { color: var(--bg); background: var(--amber); border-color: var(--amber); }

/* ---- Ships ---- */
.bp-pills { gap: 8px; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.bp-tags { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; gap: 6px; }
.bp-tag { padding: 4px 8px; font-size: 0.625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
  background: rgba(8,11,18,.72); border: 1px solid rgba(255,255,255,.14); }
.bp-nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--surface), var(--bg)); }
.bp-nophoto svg { width: 58%; opacity: .55; }
.bp-collab-line { font-size: 0.6875rem; font-weight: 600; letter-spacing: .06em; color: var(--text-muted); }
.bp-pending { font-style: normal; color: var(--text-dim); }
.bp-list-note { margin: 0; font-size: 0.84375rem; color: var(--text-muted); }
.bp-list-note a { color: var(--amber); }
.bp-more { padding-top: 8px; }

/* collections: the ship card's frame with a count on the photo */
.bp-coll .wc-body { gap: 6px; padding: 12px 14px 14px; }
.bp-coll-desc { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Atlas Manifest: last on the page; the card, its share beside it ---- */
.bp-atlas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 28px; min-width: 0; }
.bp-atlas-box { flex: 0 1 680px; min-width: 0; }
.bp-atlas .atlas-embed { text-align: left; }
/* the card is a fixed 680x420 design: scaled as a whole to the column (--s, set by the script) */
.bp-atlas .card-fit { position: relative; width: calc(680px * var(--s, 1)); height: calc(420px * var(--s, 1)); aspect-ratio: auto; margin: 0; overflow: visible; }
.bp-atlas .card-fit.is-scaled { overflow: hidden; }
.bp-atlas .card-fit.is-custom { width: auto; height: auto; overflow: visible; }
.bp-atlas .card-fit .card-frame { width: 680px !important; height: 420px !important; max-width: none !important; margin: 0 !important;
  transform: scale(var(--s, 1)); transform-origin: top left; }
.bp-atlas .bcard-custom { max-width: 680px; margin: 0; }
.bp-atlas .bcard-custom__img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.bp-cardshare { flex: 0 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.bp-cardshare .b-case { box-sizing: border-box; height: 40px; padding: 0 14px; gap: 9px; }
.bp-cardshare .b svg { width: 15px; height: 15px; }
.bp-cardshare-panel { box-sizing: border-box; width: 100%; max-width: 300px; padding: 14px; background: var(--surface); border: 1px solid var(--border-strong); }

/* ---- Narrower screens ---- */
@media (max-width: 1180px) {
  .bp-head { grid-template-columns: minmax(0, 1fr); }
  .bp-head-r { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
  .bp-ledger > * { align-items: flex-start; }
  .bp-acts { justify-content: flex-start; }
}
@media (max-width: 1100px) {
  .bp-sig { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); grid-template-areas: "photo angles" "text text"; }
  .bp-sig.is-solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "text"; }
  .bp-sig-text { padding: 12px 8px 6px; }
  .bp-sig-act .b-plate { flex: none; }
  .bp-posts { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}
/* too narrow for the side column: the feed alone */
@media (max-width: 880px) {
  .bp-posts { grid-template-columns: minmax(0, 700px); }
  .bp-side { display: none; }
}
@media (max-width: 720px) {
  .bp { padding-top: 16px; gap: 22px; }
  .bp-body { gap: 40px; }
  /* Header on a phone (2026-11-17, Kuma: laid out like a profile in a
     social app): the photo on the left with the name and the numbers
     beside it; the eyebrow, headline and chips full width under them;
     then the actions as wide buttons: Follow and Message share the first
     row with Share as a square, and Tip, Socials and Discord take a
     second row when the builder has them. The wrappers step aside
     (display: contents) so every piece is a cell of one grid. */
  .bp-head { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "av name" "av ledger" "eyebrow eyebrow" "headline headline" "chips chips" "bio bio" "facts facts" "more more" "acts acts";
    gap: 0 18px; align-items: center; padding-bottom: 4px; }
  .bp-id, .bp-who, .bp-head-r { display: contents; }
  .bp-av { grid-area: av; width: 84px; height: 84px; padding: 2px; }
  .bp-av > .pf-initials { font-size: 1.625rem; }
  .bp-name { grid-area: name; align-self: end; font-size: 1.375rem; line-height: 1.15; }
  .bp-name .sc-ver { width: 16px; height: 16px; margin-left: 6px; vertical-align: -1px; }
  .bp-ledger { grid-area: ledger; align-self: start; margin-top: 10px; }
  /* up to three numbers beside the photo: no rules between them here,
     just space, so they fit the column */
  .bp-ledger { justify-content: space-between; gap: 12px; max-width: 250px; }
  .bp-ledger > * { align-items: flex-start; padding: 0; border-left: 0; }
  .bp-ledger b { font-size: 1.125rem; }
  .bp-ledger i { font-size: 0.625rem; letter-spacing: .04em; }
  #bprofEyebrow { grid-area: eyebrow; margin-top: 18px; }
  .bp-headline { grid-area: headline; margin-top: 6px; font-size: 0.875rem; }
  .bp-chips { grid-area: chips; margin-top: 8px; }
  .bp-bio { grid-area: bio; margin-top: 12px; }
  .bp-bio p { font-size: 0.875rem; }
  .bp-bio-more { grid-area: more; justify-self: start; margin-top: 2px; }
  .bp-facts { grid-area: facts; margin-top: 8px; font-size: 0.78125rem; }
  .bp-acts { grid-area: acts; margin-top: 18px; flex-wrap: wrap; gap: 8px; }
  .bp-acts > * { order: 9; }
  .bp-acts .bp-follow { order: 1; flex: 1 1 0; min-width: 110px; justify-content: center; }
  .bp-follow > .b { width: 100%; min-width: 0; }
  .bp-acts #bprofMessage { order: 2; flex: 1 1 0; min-width: 110px; width: auto; gap: 9px; padding: 0 14px;
    font-size: 0.875rem; letter-spacing: normal; text-transform: none; }
  #bprofMessage .bp-act-label { display: inline; }
  .bp-acts #bprofEdit { order: 1; flex: 1 1 0; min-width: 110px; justify-content: center; }
  .bp-acts #bprofShareWrap { order: 3; flex: none; }
  .bp-acts .bp-drop-tip { order: 4; flex: 1 1 0; min-width: 110px; }
  .bp-acts .bp-drop-soc { order: 5; flex: 1 1 0; min-width: 110px; }
  .bp-acts #bprofDiscord { order: 6; flex: none; }
  .bp-drop-tip > .b, .bp-drop-soc > .b { width: 100%; justify-content: center; }
  .bp-sec-title { font-size: 1.3125rem; }
  #bprofShipsSection { gap: 22px; }
  .bp-tabs { gap: 28px; }
  .bp-tab { padding-bottom: 13px; }
  .bp-tabhead .bp-sort { margin-bottom: 8px; }
  /* posts run edge to edge, as on Discover */
  .bp-posts .dp, .bp-posts .dc, .bp-posts .dv-empty, .bp-posts .dv-skel, .bp-locked {
    margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); border-left: 0; border-right: 0; }
  .bp-locked { flex-wrap: wrap; }
  #bprofAtlasNote { display: block; margin: 6px 0 0; font-size: 0.78125rem; }
  .bp-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
  .bp-pills::-webkit-scrollbar { display: none; }
  .bp-pills .sc-pill { flex: none; }
  .bp-sig { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "angles" "text"; gap: 6px; padding: 6px; }
  .bp-sig.is-solo { grid-template-areas: "photo" "text"; }
  .bp-sig-angles { contain: none; grid-template-rows: none; grid-template-columns: repeat(var(--angles), minmax(0, 1fr)); gap: 6px; }
  .bp-sig-angle { aspect-ratio: 16 / 9; }
  .bp-sig-name { font-size: 1.25rem; }
  .bp-sig-act .b-plate { flex: 1; }
  .bp-grid { gap: 14px; }
}
/* the smallest phones: a smaller photo, so three numbers still fit */
@media (max-width: 360px) {
  .bp-head { grid-template-columns: 70px minmax(0, 1fr); column-gap: 14px; }
  .bp-av { width: 70px; height: 70px; }
  .bp-ledger i { font-size: 0.5625rem; letter-spacing: 0; }
  .bp-ledger b { font-size: 1.0625rem; }
}

}
