/* Running-tip collections. One timing system for every reveal and hover. */
:root {
  --tip-ease: cubic-bezier(.22, 1, .36, 1);
  --tip-duration: .6s;
}

main.tip-wrap { max-width: 1080px; }

.tip-page { border-radius: 16px; }
.tip-page h1,
.tip-page h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.08;
}
.tip-page h1 { font-size: clamp(32px, 5vw, 52px); margin: 8px 0 12px; }
.tip-page h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; }
.tip-lead { font: 400 18px/1.6 'Barlow', sans-serif; max-width: 68ch; margin: 0 0 28px; }
.tip-kicker, .tip-num {
  font: 700 12px/1 'Barlow', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tip-byline, .tip-crumb {
  font: 600 13px/1.4 'Barlow', sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.tip-dek { display: block; font: 400 16px/1.5 'Barlow', sans-serif; margin-top: 8px; }
.tip-copy { max-width: 68ch; }
.tip-copy p { font: 400 18px/1.7 'Barlow', sans-serif; margin: 0 0 1.05em; }
.tip-hero { margin: 18px 0 8px; }
.tip-hero img, .tip-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.tip-card img { border-radius: 14px 14px 0 0; }

.tip-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tip-switch a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font: 700 12px/1 'Barlow', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.theme-hub .tip-switch a[aria-current="page"] { background: #17181A; color: #fff; border-color: #17181A; }
.theme-marathon .tip-switch a[aria-current="page"] { background: #A83625; color: #fff; border-color: #A83625; }
.theme-mizen .tip-switch a[aria-current="page"] { background: #245447; color: #fff; border-color: #245447; }
.theme-multi .tip-switch a[aria-current="page"] { color: #111A22; background: #F7F1E6; border-color: #F7F1E6; }

.tip-wrap .listen { margin-top: 36px; padding: 18px 20px; border: 1px solid rgba(23, 24, 26, .15); background: #F5F5F4; color: #17181A; border-radius: 12px; }
.tip-wrap .listen h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 28px; line-height: 1.1; margin: 0 0 8px; color: #17181A; }
.tip-wrap .listen p { color: #17181A; }
.tip-wrap .listen-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.tip-wrap .listen-links a { display: inline-block; border: 1px solid rgba(23, 24, 26, .3); padding: 8px 14px; font: 600 13px/1.2 'Barlow', sans-serif; text-decoration: none; color: #17181A; background: #fff; }

.tip-collection-grid, .tip-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.tip-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  padding: 0 0 16px;
  transition: transform var(--tip-duration) var(--tip-ease);
}
.tip-card strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  margin: 10px 16px 0;
}
.tip-card .tip-num, .tip-card .tip-kicker { margin: 12px 16px 0; }
.tip-card .tip-dek { margin: 8px 16px 0; }
.tip-card:hover { transform: translateY(-4px); }
.tip-card:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; box-shadow: 0 0 0 4px #FFD100; }

.tip-figure { margin: 28px 0; }
.tip-diagram svg { display: block; width: 100%; height: auto; }
.tip-steps { list-style: none; margin: 0; padding: 0; display: none; gap: 10px; }
.tip-step {
  font: 600 16px/1.35 'Barlow', sans-serif;
  display: flex;
  gap: 12px;
  align-items: center;
}

.tip-try { margin: 28px 0; max-width: 68ch; padding: 18px 20px; }
.tip-try b {
  display: block;
  font: 700 12px/1 'Barlow', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tip-try p { margin: 0; font: 400 18px/1.6 'Barlow', sans-serif; }
.tip-credit, .tip-sources p { font: 400 14px/1.55 'Barlow', sans-serif; max-width: 68ch; }
.tip-sources { margin-top: 22px; }
.tip-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid currentColor;
}
.tip-pager a { max-width: 46%; text-decoration: none; font: 600 14px/1.35 'Barlow', sans-serif; }
.tip-pager span { display: block; font-weight: 500; margin-top: 4px; }

.theme-hub { background: transparent; padding: 0; color: #17181A; }
.theme-hub .tip-lead { color: rgba(23, 24, 26, .72); }

.theme-marathon { background: #F5F4F0; color: #202226; padding: 28px 22px 36px; }
.theme-marathon .tip-kicker, .theme-marathon .tip-num, .theme-marathon .tip-try b,
.theme-marathon a, .tip-card.theme-marathon, .tip-card.theme-marathon .tip-kicker { color: #A83625; }
.theme-marathon .tip-lead, .theme-marathon .tip-dek, .theme-marathon .tip-byline,
.theme-marathon .tip-credit, .theme-marathon .tip-sources,
.tip-card.theme-marathon .tip-dek { color: #4E4A45; }
.theme-marathon .tip-card, .tip-card.theme-marathon { background: #fff; color: #202226; }
.theme-marathon .tip-try { border-left: 4px solid #C64531; background: #fff; }
.theme-marathon .tip-step::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C64531;
  flex: 0 0 auto;
}

.theme-multi { background: #111A22; color: #F7F1E6; padding: 28px 22px 36px; }
.theme-multi .tip-kicker, .theme-multi .tip-num, .theme-multi .tip-try b,
.theme-multi a, .tip-card.theme-multi, .tip-card.theme-multi .tip-kicker { color: #E8A56C; }
.theme-multi .tip-lead, .theme-multi .tip-dek, .theme-multi .tip-byline,
.theme-multi .tip-credit, .theme-multi .tip-sources,
.tip-card.theme-multi .tip-dek { color: #F6C7A8; }
.theme-multi .tip-card, .tip-card.theme-multi { background: #1A2630; color: #F7F1E6; }
.theme-multi .tip-card .tip-dek, .tip-card.theme-multi .tip-dek { color: #F6C7A8; }
.theme-multi .tip-try { background: #1A2630; border-left: 4px solid #DC773D; }
.theme-multi .tip-step::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid #DC773D;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.theme-mizen { background: #E6EEE6; color: #173B30; padding: 28px 22px 36px; }
.theme-mizen .tip-kicker, .theme-mizen .tip-num, .theme-mizen a,
.tip-card.theme-mizen, .tip-card.theme-mizen .tip-kicker { color: #245447; }
.theme-mizen .tip-lead, .theme-mizen .tip-dek, .theme-mizen .tip-byline,
.theme-mizen .tip-sources, .tip-card.theme-mizen .tip-dek { color: #3E5C50; }
.theme-mizen .tip-card, .tip-card.theme-mizen { background: #F7FBF7; color: #173B30; }
.theme-mizen .tip-try {
  background: #F3CF59;
  color: #173B30;
  border-radius: 20px 20px 20px 5px;
}
.theme-mizen .tip-try b, .theme-mizen .tip-try p { color: #173B30; }
.theme-mizen .tip-step {
  background: #F3CF59;
  color: #173B30;
  border-radius: 18px 18px 18px 4px;
  padding: 14px 16px;
  font-weight: 650;
}
.theme-mizen .tip-step::before { content: none; }

.tip-band { margin: 0 0 36px; }
.tip-band h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 14px;
  text-transform: none;
  letter-spacing: 0;
}

html.tip-motion .tip-reveal.is-pending {
  opacity: 0;
  transform: translateY(16px);
}
html.tip-motion .tip-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--tip-duration) var(--tip-ease) var(--tip-delay, 0s),
    transform var(--tip-duration) var(--tip-ease) var(--tip-delay, 0s);
}
html.tip-motion .tip-figure.is-pending .tip-step,
html.tip-motion .tip-figure.is-pending .tip-seq { opacity: 0; }
html.tip-motion .tip-figure.is-pending .tip-step { transform: translateY(10px); }
html.tip-motion .tip-figure.is-in .tip-step,
html.tip-motion .tip-figure.is-in .tip-seq {
  opacity: 1;
  transition: opacity var(--tip-duration) var(--tip-ease) var(--tip-delay, 0s),
    transform var(--tip-duration) var(--tip-ease) var(--tip-delay, 0s);
}
html.tip-motion .tip-figure.is-in .tip-step { transform: none; }

@media (max-width: 900px) {
  .tip-collection-grid { grid-template-columns: 1fr; }
  .tip-card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tip-card-grid { grid-template-columns: 1fr; }
  .theme-marathon, .theme-multi, .theme-mizen { padding: 22px 16px 28px; }
  .tip-copy p, .tip-try p { font-size: 17px; }
}
@media (max-width: 720px) {
  .tip-diagram { display: none; }
  .tip-steps { display: grid; }
}

@media (max-width: 780px) {
  .tip-card,
  html.tip-motion .tip-reveal.is-in,
  html.tip-motion .tip-figure.is-in .tip-step,
  html.tip-motion .tip-figure.is-in .tip-seq {
    transition: opacity var(--tip-duration) var(--tip-ease) var(--tip-delay, 0s),
      transform var(--tip-duration) var(--tip-ease) var(--tip-delay, 0s) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tip-card,
  .tip-card:hover,
  html.tip-motion .tip-reveal.is-pending,
  html.tip-motion .tip-reveal.is-in,
  html.tip-motion .tip-figure.is-pending .tip-step,
  html.tip-motion .tip-figure.is-pending .tip-seq,
  html.tip-motion .tip-figure.is-in .tip-step,
  html.tip-motion .tip-figure.is-in .tip-seq {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
}
