/* The Hub's cards and its reader (behaviour: assets/hub.js) — on hub.html and on the home page's Hub section.
   Our dark grey (#262626) underneath (user, 2026-11-21: "The theme should be our dark grey color"), the cards a step
   lighter so each is one region (common region), laid out like the user's picture of Nucleus's posts: the picture
   inset in its card, then the date and read, the title, the opening words. */
.hub-card { display: flex; flex-direction: column; min-width: 0; padding: 8px; border-radius: 20px; background: #333333; color: #F5F3EE;
  text-decoration: none; transition: background .18s ease, transform .18s ease; }
.hub-card:hover { background: #3B3B3B; }
.hub-card:active { transform: scale(.99); }
.hub-card:focus-visible { outline: 3px solid #F37323; outline-offset: 3px; }
.hub-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #2B2B2B; }
.hub-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* no picture (and that's fine): the home page's Next Steps band in small, in the same shape — our orange at 96% over
   the band's photo, its contour lines over that, a white line and a big white name (index.html .band) */
.hub-pic.is-band { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 22px; isolation: isolate;
  background: #F6993A url('home/band-photo.jpg') center / cover no-repeat; text-align: center; }
.hub-pic.is-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #F6993A; opacity: .96; }
.hub-pic.is-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url('home/contours.svg') center / cover no-repeat; }
.hub-band-kicker { color: rgba(255, 255, 255, .9); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .05em; line-height: 1; }
.hub-band-name { max-width: 92%; margin-top: 10px; color: #fff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(24px, 2.1vw, 30px); font-weight: 700; line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.hub-card.is-big .hub-band-kicker { font-size: 16px; }
.hub-card.is-big .hub-band-name { font-size: clamp(28px, 2.8vw, 40px); }
.hub-txt { display: flex; flex-direction: column; gap: 8px; padding: 18px 8px 16px; }
.hub-meta { color: rgba(245, 243, 238, .6); font-size: 13px; font-weight: 500; letter-spacing: -.005em; }
.hub-title { color: #fff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: clamp(21px, 1.6vw, 24px); font-weight: 700;
  line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.hub-excerpt { display: -webkit-box; overflow: hidden; color: rgba(245, 243, 238, .78); font-size: 16px; line-height: 1.45;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
/* the home page's one card, a little larger */
.hub-card.is-big .hub-txt { padding: 22px 14px 20px; gap: 10px; }
/* who it's from: a round initial and the ministry's name, at the card's foot (Nucleus's author row) */
.hub-by { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 4px 8px 10px; color: #fff; font-size: 15px; font-weight: 600; }
.hub-av { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #F37323; color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; font-weight: 700; }
.hub-card.is-big .hub-title { font-size: clamp(24px, 2vw, 30px); }
.hub-card.is-big .hub-excerpt { font-size: 17px; }

/* ── the reader: one post over the page; a card on a computer, a sheet from the foot on a phone ── */
.hub-reader { width: min(760px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0;
  border-radius: 24px; background: #2E2E2E; color: #F5F3EE; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); overflow: hidden; }
.hub-reader::backdrop { background: rgba(10, 10, 10, .6); }
.hub-reader[open] { animation: hub-in .28s cubic-bezier(.22, 1, .36, 1); }
@keyframes hub-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.hub-read { position: relative; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.hub-x { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hub-x:hover { background: rgba(255, 255, 255, .24); }
.hub-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.hub-read-pic img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.hub-read-body { padding: 44px 48px 48px; }
.hub-read-from { margin: 0 56px 14px 0; color: #F6993A; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hub-reader h2 { margin: 0 56px 0 0; color: #fff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: clamp(30px, 3vw, 40px);
  font-weight: 700; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.hub-read-pic:not([hidden]) + .hub-read-body .hub-read-from, .hub-read-pic:not([hidden]) + .hub-read-body h2 { margin-right: 0; }
.hub-reader .hub-meta { margin: 12px 0 0; }
.hub-read-words { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hub-read-words p { margin: 0; font-size: 18px; line-height: 1.6; letter-spacing: -.01em; color: rgba(245, 243, 238, .9); }
.hub-read-words p + p { margin-top: 1em; }
.hub-read-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hub-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 28px;
  background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: -.015em; text-decoration: none; cursor: pointer; }
.hub-btn:hover { background: rgba(255, 255, 255, .18); }
.hub-btn.is-fill { background: #F37323; }
.hub-btn.is-fill:hover { background: #E2661C; }
.hub-btn:focus-visible, .hub-x:focus-visible { outline: 3px solid #F37323; outline-offset: 3px; }
@media (max-width: 600px) {
  .hub-reader { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .hub-reader[open] { animation-name: hub-up; animation-duration: .34s; }
  .hub-read { max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .hub-read-body { padding: 36px 24px 40px; }
  .hub-read-btns { flex-direction: column; }
  .hub-btn { width: 100%; min-height: 60px; }
}
@keyframes hub-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .hub-reader[open] { animation: none; } .hub-card { transition: none; } }
