/* ==========================================================================
   ribbon.css  -  PHRASE RIBBON AND NUMBER BANDS (CONTENT)
   Used by: the moving blue strip of example words (<section id="ribbon">)
   and the "at a glance" / "the need in numbers" bands with the big numbers.
   ========================================================================== */

/* MARQUEE: the blue strip of example words that slides sideways.
   ".marquee" is just the class name given to this strip in index.html (<section class="marquee">). */
.marquee { display: flex; align-items: stretch; background: #0266D6; color: #ffffff; overflow: hidden; }
/* The particle letters would only clutter such a thin strip. */
.marquee > .letter-bg { display: none; }
/* The small label at the left end of the strip (darker blue). */
.marquee-label { flex: 0 0 auto; display: flex; align-items: center; padding: 0 18px; background: #0254B0; font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #ffffff; white-space: nowrap; }
/* The window that shows the sliding words. Words fade out softly at both edges. */
.marquee-track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
/* The sliding row. It moves left for 90 seconds, then repeats (second copy is made in js/ribbon.js). */
.marquee-track > div { display: flex; width: max-content; animation: mq 90s linear infinite; }
/* It pauses while the mouse is over the strip or a part of it has keyboard focus. */
.marquee:hover .marquee-track > div, .marquee:focus-within .marquee-track > div { animation-play-state: paused; }
/* One group of words. */
.marquee p { display: flex; align-items: center; gap: 12px; padding: 9px 0 9px 24px; font-size: 15.5px; white-space: nowrap; }
/* The single word, in a square white outline. */
.marquee p b { font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, 0.7); color: #ffffff; }
/* One word + sentence pair. */
.marquee .pair { display: inline-flex; align-items: center; gap: 12px; }
/* The arrow between the word and the sentence. */
.marquee .arrow { color: #ffffff; opacity: 0.75; }
/* The sentence text is a bit bigger. */
.marquee p em { font-size: 1.15em; color: #ffffff; }
/* The small dot between two pairs. */
.marquee p i { width: 4px; height: 4px; margin-left: 12px; background: rgba(255, 255, 255, 0.55); border-radius: 50%; }

/* LABEL: the long label shows on laptops and tablets, the short one only on phones. */
.label-short { display: none; }
/* "@media (max-width: 560px)" means: only use these rules when the screen is 560 px wide or less (phones). */
@media (max-width: 560px) {
  .label-long { display: none; }
  .label-short { display: inline; }
  .marquee-label { padding: 0 12px; font-size: 10px; letter-spacing: .06em; }
}

/* The title area of a band. */
.band-head { max-width: 1320px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 0; }
/* STATS: the grid of big numbers. 1 column on phones, 2 on tablets, 4 on big screens. */
.stats { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: 1fr; }
/* Tablet: 2 columns. */
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
/* Desktop: 4 columns. */
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }
/* STAT: one number box. */
.stat { padding: 28px 24px 32px 0; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--border-dark); }
/* The small label above the number. */
.stat small { font: 11.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-small); }
/* The big number (counts up with js/stats.js). */
.stat b { font-weight: 200; font-size: clamp(2.8rem, 4.4vw, 4.2rem); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
/* The small unit after the number (for example %). */
.stat b span { font-size: .5em; color: var(--text-body); }
/* The text under the number. */
.stat p { font-size: 15px; color: var(--text-body); }
/* The source link at the bottom of the box. */
.stat .src { margin-top: auto; font: 11px/1.5 var(--font-mono); color: var(--text-small); }
/* Source links are underlined. */
.stat .src a { text-decoration: underline; text-underline-offset: 2px; }
/* A small note under the numbers. */
.band-note { max-width: 1320px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 30px; font-size: 14px; color: var(--text-body); }
