/* ============================================================
   MODELS.COM - FASHION AWARDS VOTING BANNER (homepage) - BESPOKE STYLES ONLY
   Loaded site-wide and relied on here, never redefined:
     sb sheets  -> @font-face (SuisseIntl / PPEiko), :root tokens (--color-functional-*,
                   --spacing-*, --text-*), .mdc-container, .mdc-font-primary--* /
                   .mdc-font-accent--*, .sb-button
   This file owns only the yellow band, the cycling word and the status dot.
   Fonts are set in the markup with the .mdc-font-* helpers.
   Served with ?v=#mdcheadCSSv#: bump it in mdcheadV.cfm AND mdchead.php on every edit.
   ============================================================ */

.mdc-fashion-awards {
  /* the awards' special-occasion colour; the vote page reads the same custom property */
  --awards-accent: #ffe500;
  --fa-ink: var(--color-functional-gray-black, #111);
  background: var(--awards-accent);
  color: var(--fa-ink);
  margin: var(--spacing-300, 3rem) 0 var(--spacing-150, 1.5rem);
  padding: var(--spacing-150, 1.5rem) 0 var(--spacing-300, 3rem);
}

/* ---------- top line: awards name + status ---------- */
.mdc-fashion-awards__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: var(--spacing-050, .5rem) var(--spacing-150, 1.5rem);
  padding-bottom: var(--spacing-100, 1rem);
  border-bottom: 1px solid var(--fa-ink);
}
.mdc-fashion-awards__brand { margin: 0; font-size: var(--text-150, 1.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.mdc-fashion-awards__status { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-087-and-half, .875rem); line-height: 1.3; }
.mdc-fashion-awards__dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fa-ink); }
.mdc-fashion-awards__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, .5);
  animation: mdcFashionAwardsPulse 2s cubic-bezier(.2, 0, .2, 1) infinite;
}
@keyframes mdcFashionAwardsPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- body: headline + side column ---------- */
.mdc-fashion-awards__body {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--spacing-300, 3rem); align-items: end;
  padding-top: var(--spacing-250, 2.5rem);
}
/* the headline column is a size container so the type can scale with it (cqw below) */
.mdc-fashion-awards__headline { container-type: inline-size; min-width: 0; }
.mdc-fashion-awards__title { margin: 0; padding: 0; color: var(--fa-ink); }
.mdc-fashion-awards__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mdc-fashion-awards__line {
  display: block; line-height: 1.1; letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 2.6vw, 2.75rem);                 /* fallback without container units */
}
.mdc-fashion-awards__cycle {
  display: block; height: 1.16em; overflow: hidden; line-height: 1.16; letter-spacing: -0.02em;
  margin: 2px 0 6px -0.06em; padding-left: 0.06em;           /* room for the italic overhang on the left */
  font-size: clamp(2.25rem, 6.5vw, 6rem);                    /* fallback without container units */
}
.mdc-fashion-awards__roles { display: block; animation: mdcFashionAwardsCycle 19.2s cubic-bezier(.7, 0, .2, 1) infinite; }
.mdc-fashion-awards__roles > span { display: block; height: 1.16em; white-space: nowrap; }
/* 9 rows (8 roles + the first repeated): each step is 1/9 of the list height; hold, then slide.
   For N roles: N + 1 rows, step = 100 / (N + 1) %, keyframe k at k/N and held until (k + .76)/N, duration N * 2.4s. */
@keyframes mdcFashionAwardsCycle {
  0%, 9.5%     { transform: translateY(0); }
  12.5%, 22%   { transform: translateY(-11.1111%); }
  25%, 34.5%   { transform: translateY(-22.2222%); }
  37.5%, 47%   { transform: translateY(-33.3333%); }
  50%, 59.5%   { transform: translateY(-44.4444%); }
  62.5%, 72%   { transform: translateY(-55.5556%); }
  75%, 84.5%   { transform: translateY(-66.6667%); }
  87.5%, 97%   { transform: translateY(-77.7778%); }
  100%         { transform: translateY(-88.8889%); }
}

.mdc-fashion-awards__dek { margin: 0; font-size: var(--text-100, 1rem); line-height: 1.5; }
.mdc-fashion-awards__actions { display: flex; flex-wrap: wrap; gap: var(--spacing-075, .75rem); margin-top: var(--spacing-150, 1.5rem); }
.mdc-fashion-awards__meta { margin: var(--spacing-100, 1rem) 0 0; font-size: var(--text-075, .75rem); line-height: 1.4; }

/* Buttons are the site's .sb-button. Only real differences live here:
   - the site's a:link / a:visited rules outrank one class, so colour and underline are restated with the link pattern;
   - a 48px touch target; the icon gap;
   - on yellow the secondary's light-grey border disappears, so it is ink here. */
.mdc-fashion-awards a.mdc-fashion-awards__btn:link,
.mdc-fashion-awards a.mdc-fashion-awards__btn:visited { color: #fff; text-decoration: none; }
.mdc-fashion-awards a.mdc-fashion-awards__btn--secondary:link,
.mdc-fashion-awards a.mdc-fashion-awards__btn--secondary:visited { color: var(--fa-ink); }
.mdc-fashion-awards__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; box-sizing: border-box; border-color: var(--fa-ink); }
.mdc-fashion-awards__btn--secondary { background: transparent; border: 1px solid var(--fa-ink); }
.mdc-fashion-awards a.mdc-fashion-awards__btn:hover { background: var(--color-functional-gray-900, #262626); color: #fff; }
.mdc-fashion-awards a.mdc-fashion-awards__btn--secondary:hover { background: var(--fa-ink); color: #fff; }
.mdc-fashion-awards a.mdc-fashion-awards__btn:focus-visible { outline: 2px solid var(--fa-ink); outline-offset: 3px; }

/* ---------- tablet and phone: one column, headline first ---------- */
@media (max-width: 1023px) {
  .mdc-fashion-awards__body { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-150, 1.5rem); align-items: start; padding-top: var(--spacing-150, 1.5rem); }
  .mdc-fashion-awards__cycle { font-size: clamp(2.25rem, 11vw, 6rem); }       /* fallback without container units */
  .mdc-fashion-awards__line { font-size: clamp(1.25rem, 4.5vw, 2.25rem); }
}
/* Container units (all current browsers): the type follows the real width of the headline column at every size.
   Must stay AFTER the vw fallbacks above so it wins where supported. */
@supports (width: 1cqw) {
  .mdc-fashion-awards__line { font-size: clamp(1.25rem, calc(100cqw / 22), 2.75rem); }
  /* 7.95 = width of the longest role ("Creative Director") in PP Eiko Italic, per 1px of font-size, plus a
     little air (measured: 7.81). Longest word always fits its column; capped at 128px. Re-measure if the list changes. */
  .mdc-fashion-awards__cycle { font-size: clamp(2.25rem, calc(100cqw / 7.95), 8rem); }
}
@media (max-width: 768px) {
  .mdc-fashion-awards { margin: var(--spacing-200, 2rem) 0 var(--spacing-100, 1rem); padding: var(--spacing-100, 1rem) 0 var(--spacing-200, 2rem); }
  .mdc-fashion-awards__brand { margin: 0; font-size: var(--text-125, 1.25rem); }
  .mdc-fashion-awards__status { font-size: var(--text-075, .75rem); }
  .mdc-fashion-awards__dek { font-size: var(--text-087-and-half, .875rem); }
  .mdc-fashion-awards__actions { flex-direction: column; }
  .mdc-fashion-awards__btn { width: 100%; }
}

/* ---------- reduced motion: no cycling (shows the first role), no pulse ---------- */
@media (prefers-reduced-motion: reduce) {
  .mdc-fashion-awards__roles,
  .mdc-fashion-awards__dot::after { animation: none; }
}
