/* The top of every members' page (TW #4444, Steve's pick A): "The 2027 Comeback Auction" in the homepage's
   own look (proposed.css: its night-to-blue sky, gold italics, COMEBACK in Anton), "The 2027" and "Auction" each on the road
   of a span of the homepage's bridge (TW #4692, TW #5488); for admins the Mode pill on the right (TW #4695). It runs the full width
   over the menu column and stays put; the menu starts under it (--cbm-h). The same in light and dark: it is the homepage's night sky either way. */
.member-page { --cbm-h: 64px; }
.cbm-band { position: sticky; top: var(--mm-top, 0px); z-index: 33; box-sizing: border-box; height: var(--cbm-h);
  display: flex; align-items: center; gap: 16px; margin-left: calc(-1 * var(--menu-w, 0px)); padding: 0 24px;
  background: linear-gradient(100deg, #050d24 0%, #0c2154 55%, #1450b4 100%); border-bottom: 3px solid #f6b62b; color: #fff; }
.member-page .cbm-band p { margin: 0; } /* over members.css, which loads after this file */
.cbm-title { display: inline-flex; align-items: flex-end; gap: .32em; white-space: nowrap; line-height: 1; } /* the decks sit on COMEBACK's line */
.cbm-the, .cbm-auction { display: block; flex: none; line-height: 0; } /* never squeezed: both bridges keep their one size */
/* TW #5488 (Steve picked D): both bridges one size, the drawing's own proportions; the words stand on the road. */
.cbm-bridge { display: block; width: 150px; height: auto; aspect-ratio: 66 / 17.8; overflow: visible; }
.cbm-bridge path { vector-effect: non-scaling-stroke; }
.cbm-bridge-words { font: italic 700 10.5px "Fraunces", Georgia, "Times New Roman", serif; fill: #ffd36b;
  stroke: #0a1a42; stroke-width: 1.6px; stroke-linejoin: round; vector-effect: non-scaling-stroke; } /* the stroke is the sky, breaking the posts around each letter */
/* TW #4527 (Steve: "make the bridge green", picked "the last option, dark green"): deep bottle green; the lettering and edge stay gold. */
.cbm-bridge-steel { fill: none; stroke: #2e8b57; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cbm-bridge-posts { fill: none; stroke: #2e8b57; stroke-width: .8; }
.cbm-bridge-ends { fill: #2e8b57; opacity: .7; }
.cbm-word { display: inline-flex; margin-bottom: -1px; font: 400 2.2rem/.92 "Anton", Impact, "Arial Narrow Bold", sans-serif; letter-spacing: .01em; }
.cbm-letter { display: inline-block; transform-origin: 92% 96%; color: #fff; }
.cbm-letter:nth-child(even) { color: #e9f3ff; }
.cbm-band .mode-pill { margin-left: auto; } /* TW #4695: where the Westfield Kiwanis line was */
.cbm-band .mm-toggle { display: none; }

/* COMEBACK's letters get up one after another as the page arrives: the homepage hero's cb-get-up. */
@media (prefers-reduced-motion: no-preference) {
  .cbm-letter { animation: cbm-get-up 1.25s calc(.15s + var(--i) * 95ms) both; }
}
@keyframes cbm-get-up {
  0% { transform: rotate(90deg) translateY(4%); }
  35% { transform: rotate(90deg) translateY(4%); animation-timing-function: cubic-bezier(.2, .9, .3, 1.4); }
  72% { transform: rotate(-9deg); }
  86% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

/* A phone: the Menu button, the title beside it, Westfield Kiwanis on a small line under the title. */
@media (max-width: 760px) {
  .member-page { --cbm-h: 74px; }
  .cbm-band { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; gap: 3px 12px; padding: 0 16px; }
  .cbm-band .mm-toggle { display: block; grid-row: 1 / 3; align-self: center; font: 700 .95rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    min-height: 44px; padding: 0 12px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
  .cbm-band .mm-toggle::before { content: "☰ "; }
  .cbm-band .mm-toggle:focus-visible { outline: 3px solid #ffd36b; outline-offset: 2px; }
  /* TW #5488 (Steve: "on the mobile, try putting the first brige on top of the word comeback", then "make the bridge on top
     smaller, left align it with comeback ... make the word auction a little bigger and make second bridge same height as
     comeback"): The 2027's small bridge stands over COMEBACK at its left edge; Auction's beside it, its steel (arch top to
     road) as tall as COMEBACK's letters, with bigger words. */
  .cbm-title { display: grid; grid-template-columns: auto auto; grid-template-areas: "the ." "word auction"; justify-content: start;
    align-items: end; gap: 2px .24em; }
  .cbm-the { grid-area: the; justify-self: start; }
  .cbm-word { grid-area: word; }
  .cbm-auction { grid-area: auction; }
  .cbm-the .cbm-bridge { width: 72px; margin-left: calc(72px * -3 / 66); } /* the steel, not the drawing's margin, on COMEBACK's edge */
  .cbm-auction .cbm-bridge { width: 86px; } /* its steel is 21px tall, as COMEBACK's letters are (measured in the test) */
  .cbm-auction .cbm-bridge-words { font-size: 12px; }
  .cbm-word { font-size: 1.55rem; }
  .member-page:has(.cbm-band .mode-pill) { --cbm-h: 88px; } /* a little taller for the Mode pill, in the title's second row */
  .cbm-band .mode-pill { grid-column: 2; grid-row: 2; justify-self: start; margin-left: 0; }
  .cbm-band:not(:has(.mm-toggle)) { grid-template-columns: 1fr; }
}
