/* Page-builder block styles (prototype - see issue #253) */

.th-block {
  padding: 60px 0;
}

.th-block-tight-top {
  padding-top: 0;
  margin-top: -60px;
}

/* Homepage hero - Figma: RTE-TIA-2026-Update, "Home" frame, composition
   confirmed against the client's own After Effects layer reference.
   Not a generic/reusable design (unlike the other blocks) - the flat
   background, paper accents, moon+hand pairing and sponsor strip are
   all hardcoded to this one composition rather than driven by
   background_color/decorative_area, since this hero only ever appears
   once, on the homepage. */
.th-block-hero-home-main {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding: 140px 0 180px;
  background-color: var(--color-light-blue);
  /* Client-supplied paper texture (originally a 2.7MB, 2000x1200 JPEG) -
     downsized to 1600x960 (a subtle grain like this doesn't need full
     res) and re-encoded as WebP, matching every other background image
     on the site (no <picture>/AVIF fallback layering - webp support is
     near-universal and that's the existing convention here), bringing
     it down to ~250KB. */
  background-image: url('/build/images/decorative/homepage_hero_bg.webp');
  background-size: cover;
  background-position: center;
}

.th-block-hero-home-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.th-block-hero-home-eyebrow {
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-navy-blue);
  margin: 0 0 20px;
}

.th-block-hero-home h1 {
  font-family: var(--font-heading-bold);
  font-size: 100px;
  line-height: 1;
  color: var(--color-navy-blue);
  margin: 0 0 32px;
}

.th-block-hero-home-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.th-block-hero-home-submit {
  font-size: 18px;
  color: var(--color-navy-blue);
  margin: 0;
}

.th-block-hero-home-submit a {
  color: var(--color-navy-blue);
  text-decoration: underline;
}

/* Torn-paper accents, confined to roughly the bottom 40% of the hero
   (per design direction) rather than bleeding full-height like the
   page-header hero_cluster composition's paper does. These boxes are
   extremely wide/short (nearly full block width, ~200px tall) - a much
   more elongated aspect ratio than any torn-paper source photo actually
   has. object-fit:cover (used in earlier iterations, on an <img>)
   can't reconcile that: it preserves the source's aspect ratio, so
   matching the box's width forces the box's height to be reached only
   by cropping deep into the image vertically - past the torn edge
   entirely, into solid-color territory, rendering as a flat color
   block with no visible edge at all. Using a plain background-image
   here instead, with a two-value background-size (100% <height>),
   lets width and height scale INDEPENDENTLY - the whole source,
   headroom-to-edge-to-fill, always maps into the box, so the edge is
   always visible (at the cost of a little vertical
   stretch/squash on a subtle texture, which isn't noticeable). Uses
   paper-band_* (recolored from paper-comp_6, which has a torn edge at
   a consistent height across its FULL width) rather than paper-grass_*
   - that asset's edge tapers away to nothing near its right side
   (built for a corner accent, not a wide band). Blue is taller/
   narrower so it peeks out above pink on the left; pink is wider/
   shorter so it dominates. DOM order (see hero.antlers.html) puts pink
   before blue so blue paints on top where they overlap - otherwise the
   much-wider pink layer buries it entirely. */
.th-block-hero-home-paper {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: left bottom;
  pointer-events: none;
}

.th-block-hero-home-paper-pink {
  width: 44%;
  height: 310px;
  background-image: url('/build/images/decorative/paper-band_pink.webp');
  background-size: 100% 310px;
  animation: th-hero-float 4s linear infinite;
  animation-delay: -1.5s;
}

/* Widened from 20% (rather than shortened from 330px) so the source
   photo's grain reads less stretched, without losing the "taller and
   narrower than pink" silhouette the design calls for - narrower than
   pink's 44% still holds at 27%. */
.th-block-hero-home-paper-blue {
  width: 27%;
  height: 330px;
  background-image: url('/build/images/decorative/paper-band_blue.webp');
  background-size: 100% 330px;
  animation: th-hero-float 3.5s linear infinite;
}

/* Sized to bleed roughly 45% of its own footprint past the top and
   right edges, per design direction, rather than sitting fully inside
   the block like the rest of the decorative layer. */
.th-block-hero-home-star {
  position: absolute;
  top: -428px;
  right: -428px;
  z-index: 1;
  width: 950px;
  height: auto;
  pointer-events: none;
}

.th-block-hero-home-birds {
  position: absolute;
  top: 70px;
  left: 20px;
  z-index: 1;
  width: 320px;
  height: auto;
  pointer-events: none;
}

.th-block-hero-home-moon {
  position: absolute;
  top: 6%;
  right: 8%;
  z-index: 1;
  width: 300px;
  height: auto;
  pointer-events: none;
}

.th-block-hero-home-hand {
  position: absolute;
  bottom: 0;
  right: 9%;
  z-index: 1;
  width: 220px;
  height: auto;
  pointer-events: none;
}

/* Idle motion for the paper accents only (not the star/moon/hand -
   those stay static). Deliberately choppy/stop-motion rather than a
   smooth glide: each stop sets its own animation-timing-function to
   steps(1, jump-end), which holds the CURRENT position for its whole
   segment then cuts straight to the next value with no interpolation,
   like a held, hand-drawn frame; percentages/offsets are uneven on
   purpose (not a clean sine wave) for the same reason. Still
   transform-only (cheap, compositor-only, no layout thrash) - the
   choppiness comes from the timing function, not from doing any more
   work per frame. */
/* 0% (and 100%) is the paper's normal/resting height - the "end
   point" of the range - and every other stop is a POSITIVE offset,
   sinking further down toward the bottom of the hero, closer to
   slipping out of view, before popping back up. */
@keyframes th-hero-float {
  0% {
    transform: translateY(0px);
    animation-timing-function: steps(1, jump-end);
  }
  18% {
    transform: translateY(18px);
    animation-timing-function: steps(1, jump-end);
  }
  36% {
    transform: translateY(46px);
    animation-timing-function: steps(1, jump-end);
  }
  55% {
    transform: translateY(60px);
    animation-timing-function: steps(1, jump-end);
  }
  74% {
    transform: translateY(30px);
    animation-timing-function: steps(1, jump-end);
  }
  100% {
    transform: translateY(0px);
  }
}

.th-block-hero-home-countdown {
  position: absolute;
  left: 0;
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  background-color: var(--color-yellow);
  border-radius: 0 50px 50px 0;
  padding: 14px 24px 14px 60px;
}

.th-block-hero-home-countdown-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 100%;
  background-color: #f2f2f2;
  border-radius: 50px 0 0 50px;
}

.th-block-hero-home-countdown-text {
  font-family: var(--font-heading-bold);
  font-size: 18px;
  color: var(--color-text);
  white-space: nowrap;
}

.th-block-hero-home-countdown-close {
  margin-left: 14px;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}

.th-block-hero-home-strip {
  background-color: var(--color-cobalt-blue);
  padding: 30px 0;
}

.th-block-hero-home-strip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.th-block-hero-home-tagline {
  color: var(--color-white);
  font-family: var(--font-heading-bold);
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.352px;
  max-width: 650px;
  margin: 0;
}

.th-block-hero-home-sponsors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.th-block-hero-home-sponsors img {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

@media only screen and (max-width: 1024px) {
  .th-block-hero-home h1 {
    font-size: 64px;
  }
}

@media only screen and (max-width: 767px) {
  .th-block-hero-home-main {
    min-height: 0;
    padding: 100px 0 80px;
  }

  .th-block-hero-home h1 {
    font-size: 48px;
  }

  .th-block-hero-home-paper,
  .th-block-hero-home-star,
  .th-block-hero-home-birds,
  .th-block-hero-home-moon,
  .th-block-hero-home-hand {
    display: none;
  }

  .th-block-hero-home-countdown {
    position: static;
    justify-content: center;
    margin: 24px auto 0;
    width: fit-content;
  }

  .th-block-hero-home-strip-row {
    justify-content: center;
    text-align: center;
  }

  .th-block-hero-home-sponsors {
    justify-content: center;
    gap: 24px;
    row-gap: 16px;
  }

  .th-block-hero-home-sponsors img {
    height: 40px;
  }

  .th-block-hero-home-tagline {
    font-size: 26px;
    max-width: none;
  }
}

.th-block-card-grid-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.th-block-card-grid-items-4col {
  grid-template-columns: repeat(4, 1fr);
}

.th-block-card {
  background-color: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
}

/* Card-grid carousel (flexslider): strip the library's default white
   card/border/shadow chrome around the slide track, and stretch every
   slide to the height of the tallest card. */
.th-block-card-carousel {
  background: none;
  border: none;
  box-shadow: none;
}
.th-block-card-carousel .slides {
  display: flex;
}
.th-block-card-carousel .slides > li {
  height: auto;
}
.th-block-card-carousel .th-block-card {
  height: 100%;
  box-sizing: border-box;
}

.th-block-card-image {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}

.th-block-card-image-placeholder {
  background-color: var(--color-gray-400);
}

.th-block-card-body {
  padding: 24px;
  text-align: center;
}

.th-block-card-body-left {
  text-align: left;
}

.th-block-card h3 {
  font-family: var(--font-heading-bold);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.22px;
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

.th-block-card p {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.176px;
  color: var(--color-text);
  margin: 8px 0 0;
  padding: 0;
}

.th-block-card-subtitle {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.22px;
  color: var(--color-text);
  margin: 8px 0 0;
}

.th-block-card-grid-items-link-list {
  grid-template-columns: repeat(2, 1fr);
}

.th-block-card-grid-items-link-list-3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Same flush-image + label row as the homepage's "Useful Info" cards
   (.th-useful-info-box/.th-useful-info-image in main.css) — the image
   spans the card's full height instead of sitting in a padded icon
   square. */
.th-block-card-link-list {
  display: flex;
  align-items: stretch;
  min-height: 120px;
  text-decoration: none;
}

.th-block-card-link-list-icon {
  flex: 0 0 127px;
  width: 127px;
  background-color: var(--color-gray-400);
  background-size: cover;
  background-position: center;
}

.th-block-card-link-list-label {
  font-family: var(--font-heading-bold);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.264px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  padding: 10px 21px;
}

.th-block-cta-banner {
  background-color: #f5f5f5;
}

.th-block-cta-banner-text {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.th-block-cta-banner-text p {
  margin: 0 0 20px;
}

.th-block-cta-banner-text .th-block-pill-btn {
  margin-top: 20px;
}

.th-block-content-media-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-bottom: 40px;
}

.th-block-content-media-reverse {
  flex-direction: row-reverse;
}

.th-block-content-media-text {
  flex: 1 1 400px;
}

.th-block-content-media-text h2 {
  font-family: var(--font-heading-bold);
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -0.572px;
  margin: 0 0 20px;
}

.th-block-content-media-text p {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.22px;
  margin: 0;
}

.th-block-content-media-cta {
  margin: 24px 0 0;
}

.th-block-content-media-media {
  flex: 1 1 500px;
  position: relative;
}

.th-block-content-media-image {
  height: 500px;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
}

.th-block-content-media-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--color-white);
  color: var(--color-text);
  border-radius: 50px;
  padding: 9px 18px 10px;
  font-family: var(--font-body-regular);
  font-size: 16px;
  letter-spacing: -0.176px;
  white-space: nowrap;
}

/* Entry Guide (Figma node 469:17678) - scoped by the sections' own
   anchor ids rather than a generic content_media rule, since that
   partial is shared with for-teachers.md's yellow "Interview with
   winning teacher" block, which keeps its default dark text/link
   colors. */
#create .th-block-content-media-text,
#create .th-block-content-media-text h2,
#snap .th-block-content-media-text,
#snap .th-block-content-media-text h2,
#upload .th-block-content-media-text,
#upload .th-block-content-media-text h2 {
  color: var(--color-navy-blue);
}
#upload .th-block-content-media-text a {
  color: var(--color-magenta);
  font-weight: bold;
}

/* 2026 block styles - Figma: RTE-TIA-2026-Update, node 451:7552 */

.th-block-pill-btn {
  font-family: var(--font-heading-bold);
  font-size: 20px;
  line-height: 1.2;
  border-radius: 40px;
  padding: 12px 32px;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
}

.th-block-pill-btn-white {
  background-color: var(--color-white);
  /* was --color-legacy-navy (#0c113f) - a drifted duplicate of the real
     brand navy right next to .th-block-pill-btn-outline/-navy below,
     which both correctly use --color-navy-blue. This mismatch is the
     root cause of a pill-text-color bug worked around twice this week
     (a higher-specificity override on /news and /inspiration) before
     being traced back here. */
  color: var(--color-navy-blue);
}

.th-block-pill-btn-outline {
  background-color: transparent;
  color: var(--color-navy-blue);
  border: 1px solid var(--color-navy-blue);
}

.th-block-pill-btn-active {
  background-color: var(--color-yellow);
  color: var(--color-navy-blue);
}

.th-block-pill-btn-black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.th-block-pill-btn-navy {
  background-color: var(--color-navy-blue);
  color: var(--color-white);
}

.th-block-pill-btn-light-blue {
  background-color: var(--color-light-blue);
  color: var(--color-navy-blue);
}

.th-block-pill-btn-lg {
  font-size: 22px;
  padding: 14px 26px;
}

.th-block-page-header {
  color: var(--color-navy-blue);
}

/* .th-inner-banner .th-banner-content ul li a (main.css, pre-2026 legacy
   jump-link styling) out-specifies .th-block-pill-btn-white/-light-blue
   here, since anchor_links render as the same ul > li > a shape inside
   this block's own .th-inner-banner .th-banner-content wrapper - was
   bleeding var(--color-legacy-link-blue) text (and a white-only
   background) into every page_header jump-link pill regardless of which
   pill variant was requested. */
.th-block-page-header.th-inner-banner .th-banner-content ul li a.th-block-pill-btn-white {
  background-color: var(--color-white);
  color: var(--color-navy-blue);
}
.th-block-page-header.th-inner-banner .th-banner-content ul li a.th-block-pill-btn-light-blue {
  background-color: var(--color-light-blue);
  color: var(--color-navy-blue);
}
.th-block-page-header.th-inner-banner .th-banner-content ul li a.th-block-pill-btn-white:hover,
.th-block-page-header.th-inner-banner .th-banner-content ul li a.th-block-pill-btn-light-blue:hover {
  background-color: var(--color-navy-blue);
  color: var(--color-white);
}
.th-block-page-header.th-inner-banner .th-banner-content ul li a.th-block-pill-btn-active {
  background-color: var(--color-yellow);
  color: var(--color-navy-blue);
}

.th-block-page-header h1 {
  font-family: var(--font-heading-bold);
  font-size: 100px;
  line-height: 1;
  color: var(--color-navy-blue);
}

.th-block-back-btn {
  display: inline-flex;
  margin-bottom: 16px;
}

.th-block-jump-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 40px 0 0;
}

.th-block-jump-links-label {
  font-family: var(--font-heading-bold);
  font-size: 22px;
  color: var(--color-navy-blue);
}

.th-block-page-header ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.th-block-card-grid-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.th-block-card-grid-heading h2 {
  font-family: var(--font-heading-bold);
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -0.572px;
  margin: 0;
}

.th-block-card-grid-heading-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.th-block-card-grid-body {
  max-width: 700px;
  margin: 20px 0 0;
}

.th-block-card-grid-body p {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

.th-block-content-links-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  flex-wrap: wrap;
}

.th-block-content-links-eyebrow {
  font-family: var(--font-heading-bold);
  font-size: 24px;
  margin: 0 0 12px;
}

.th-block-content-links-text h2 {
  font-family: var(--font-heading-bold);
  font-size: 100px;
  line-height: 1;
  margin: 0 0 24px;
}

.th-block-content-links-text {
  max-width: 600px;
}

.th-block-content-links-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.th-block-content-links-list .th-block-pill-btn {
  width: 344px;
  max-width: 100%;
}

.th-block-content-links-note {
  font-size: 18px;
  margin-top: 12px;
}

.th-block-text-light,
.th-block-text-light h1,
.th-block-text-light h2,
.th-block-text-light h3,
.th-block-text-light h4,
.th-block-text-light p,
.th-block-text-light .th-block-jump-links-label,
.th-block-text-light a:not(.th-block-pill-btn) {
  color: var(--color-white);
}

/* A card's text color is independent of the section's text_color — a
   card has its own white/colored background (see card_background_color),
   so its contrast needs are its own (e.g. "How to Enter"'s yellow cards
   need dark text even though that section's heading is light; "Need
   inspiration"'s cobalt-blue cards need light text). Controlled by the
   card grid's own card_text_color field, defaulting to dark. */
.th-block-card,
.th-block-card h3,
.th-block-card p {
  color: var(--color-text);
}

.th-block-card-text-light,
.th-block-card-text-light h3,
.th-block-card-text-light p,
.th-block-card-text-light .th-block-card-link-list-label {
  color: var(--color-white);
}

.th-block-milestones h2 {
  font-family: var(--font-heading-bold);
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -0.572px;
  margin: 0 0 20px;
}

.th-block-milestones-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.th-block-milestones-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-heading-bold);
  font-size: 40px;
}

.th-block-milestones-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.th-block-milestones-date {
  color: var(--color-white);
}

.th-block-milestones-label {
  color: var(--color-yellow);
}

.th-block-judges-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.th-block-judges-feed-card {
  background-color: var(--color-light-blue);
  border-radius: 15px;
  padding: 14px;
}

.th-block-judges-feed-card-image {
  aspect-ratio: 1 / 1;
  background-color: var(--color-white);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 14px;
}

.th-block-judges-feed-card-image-placeholder {
  background-color: var(--color-white);
}

.th-block-judges-feed-card h4 {
  font-family: var(--font-heading-bold);
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
}

.th-block-judges-feed-card p {
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-text);
  margin: 4px 0 0;
}

@media only screen and (max-width: 1024px) {
  .th-block-judges-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 640px) {
  .th-block-judges-feed-grid {
    grid-template-columns: 1fr;
  }
}

.th-block-news-feed-featured {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Gap from the heading row down to whichever section renders first
   (the featured post, or straight to the grid when featured_count is 0,
   as on the homepage's "Latest Updates") - matches
   .th-block-card-grid-items' own margin-top so both blocks read
   consistently. Scoped to "comes right after the heading" specifically
   (rather than a blanket margin-top on both) so a featured post's own
   margin-bottom above isn't doubled up with the grid's. */
.th-block-card-grid-heading + .th-block-news-feed-featured,
.th-block-card-grid-heading + .th-block-news-feed-grid {
  margin-top: 40px;
}

.th-block-news-feed-featured-text {
  flex: 1 1 400px;
}

.th-block-news-feed-featured-text h3 {
  font-family: var(--font-heading-bold);
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -0.572px;
  margin: 0 0 20px;
}

.th-block-news-feed-featured-text h3 a {
  color: inherit;
  text-decoration: none;
}

.th-block-news-feed-featured-text .th-block-news-feed-excerpt p {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.22px;
  color: var(--color-text);
  margin: 0;
}

.th-block-news-feed-more {
  margin: 24px 0 0;
}

.th-block-news-feed-featured-image {
  flex: 1 1 500px;
  position: relative;
}

.th-block-news-feed-featured-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.th-block-news-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 26px;
}

.th-block-news-feed-card {
  background-color: var(--color-gray-300);
  border-radius: 20px;
  padding: 20px;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.th-block-news-feed-card-image {
  position: relative;
}

.th-block-news-feed-card-image img {
  width: 100%;
  height: 279px;
  object-fit: cover;
  border-radius: 15px;
  display: block;
  background-color: var(--color-white);
}

.th-block-news-feed-card-body {
  padding: 10px 0;
}

.th-block-news-feed-card-body h4 {
  font-family: var(--font-body-bold);
  font-size: 28px;
  letter-spacing: -0.308px;
  margin: 0 0 15px;
}

.th-block-news-feed-card-body p {
  font-size: 18px;
  letter-spacing: -0.198px;
  margin: 0;
}

/* The grid card (unlike the featured post above it) has its own light
   grey background regardless of the block's own text_color, so its text
   always needs to stay dark - same reasoning as .th-block-card's own
   dark-text lock further up. */
.th-block-news-feed-card-body h4,
.th-block-news-feed-card-body p {
  color: var(--color-text);
}

.th-block-news-feed-tag {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background-color: var(--color-white);
  color: var(--color-navy-blue);
  border-radius: 50px;
  padding: 9px 18px 10px;
  font-family: var(--font-body-regular);
  font-size: 16px;
  letter-spacing: -0.176px;
  white-space: nowrap;
}

.th-block-news-feed-featured-image .th-block-news-feed-tag {
  top: 14px;
  left: 14px;
  right: auto;
  bottom: auto;
  background-color: var(--color-white);
  color: var(--color-text);
}

@media only screen and (max-width: 1024px) {
  .th-block-card-grid-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .th-block-news-feed-featured-text h3,
  .th-block-card-grid-heading h2,
  .th-block-content-media-text h2 {
    font-size: 40px;
    letter-spacing: -0.44px;
  }

  .th-block-milestones-list li {
    font-size: 30px;
  }
}

@media only screen and (max-width: 767px) {
  .th-block-page-header h1,
  .th-block-content-links-text h2 {
    font-size: 48px;
  }

  .th-block-content-links-row {
    align-items: flex-start;
  }
}

@media only screen and (max-width: 640px) {
  .th-block-card-grid-items {
    grid-template-columns: 1fr;
  }

  .th-block-news-feed-featured-text h3,
  .th-block-card-grid-heading h2,
  .th-block-content-media-text h2 {
    font-size: 32px;
    letter-spacing: -0.352px;
  }

  .th-block-milestones-list li {
    font-size: 24px;
    gap: 10px 16px;
  }

  .th-block-content-media-image {
    height: 240px;
  }

  .th-block-news-feed-featured-image img {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-block-hero-home-paper-blue,
  .th-block-hero-home-paper-pink {
    animation: none;
  }
}

/* --- Inspiration page (/inspiration) --- */
/* page_header and news_feed are shared blocks (also used by for-teachers,
   faqs, the-rules, 2026-competition, and - for news_feed - home), so
   everything below is scoped under the body class layout.antlers.html
   adds for this one page (segment_1 == "inspiration") rather than
   changed on the shared block classes themselves. */

/* Same specificity fight as the old /news page: main.css's long-standing
   .th-inner-banner .th-banner-content ul li a rules (2 classes + 3
   elements) out-specificity .th-block-pill-btn-white's single class, so
   the header tab pills render the old legacy link blue instead of navy.
   Re-stating the ancestor classes (now with .th-page-inspiration in
   front) outranks it instead of reaching for !important. */
.th-page-inspiration .th-inner-banner .th-banner-content ul li a {
  color: var(--color-navy-blue);
}
.th-page-inspiration .th-inner-banner .th-banner-content ul li a:hover {
  background-color: var(--color-navy-blue);
  color: var(--color-white);
}

/* Grid cards: Figma has the whole card colored by its own tag, not just
   the small pill news_feed uses elsewhere (home's "Latest Updates").
   Un-tagged/unrecognized slugs simply keep the block's own default
   var(--color-gray-300) background. */
.th-page-inspiration .th-block-news-feed-card-interviews {
  background-color: var(--color-yellow);
}
.th-page-inspiration .th-block-news-feed-card-guides {
  background-color: var(--color-navy-blue);
}
.th-page-inspiration .th-block-news-feed-card-visual-culture {
  background-color: var(--color-magenta);
}
.th-page-inspiration .th-block-news-feed-card-inspiration {
  background-color: var(--color-cobalt-blue);
}
.th-page-inspiration .th-block-news-feed-card-competition,
.th-page-inspiration .th-block-news-feed-card-make-do {
  background-color: var(--color-yellow);
}
.th-page-inspiration .th-block-news-feed-card-techniques {
  background-color: var(--color-light-blue);
}

/* Card title/excerpt text needs to flip to white on the three dark/mid
   tag colors above - blocks.css locks the grid card's text to var(--color-text)
   unconditionally (see the .th-block-news-feed-card-body h4/p rule
   earlier), since every other page's cards keep the plain grey bg. */
.th-page-inspiration .th-block-news-feed-card-guides .th-block-news-feed-card-body h4,
.th-page-inspiration .th-block-news-feed-card-guides .th-block-news-feed-card-body p,
.th-page-inspiration .th-block-news-feed-card-visual-culture .th-block-news-feed-card-body h4,
.th-page-inspiration .th-block-news-feed-card-visual-culture .th-block-news-feed-card-body p,
.th-page-inspiration .th-block-news-feed-card-inspiration .th-block-news-feed-card-body h4,
.th-page-inspiration .th-block-news-feed-card-inspiration .th-block-news-feed-card-body p {
  color: var(--color-white);
}

/* Past Winners Year block - Figma: RTE-TIA-2026-Update, node 469:17924 */

.th-block-previous-winners-year {
  color: var(--color-text);
}

.th-pw-header {
  margin-bottom: 40px;
}

.th-pw-header h2 {
  font-family: var(--font-heading-bold);
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.572px;
  color: var(--color-navy-blue);
  margin: 0 0 16px;
}

.th-pw-description {
  font-size: 17px;
  color: var(--color-text);
}

.th-pw-category {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 40px;
  margin-bottom: 32px;
  scroll-margin-top: 100px;
}

.th-pw-category h3 {
  font-family: var(--font-heading-bold);
  font-size: 32px;
  color: var(--color-navy-blue);
  text-align: center;
  margin: 0 0 32px;
}

.th-pw-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.th-pw-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.th-pw-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  background-color: var(--color-gray-400);
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}

.th-pw-card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--color-yellow);
  color: var(--color-navy-blue);
  font-family: var(--font-heading-bold);
  font-size: 14px;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.th-pw-card-title {
  font-family: var(--font-heading-bold);
  font-size: 18px;
  margin: 0 0 4px;
}

.th-pw-card-meta {
  font-size: 15px;
  color: var(--color-text);
  margin: 0;
}

@media only screen and (max-width: 767px) {
  .th-pw-header h2 {
    font-size: 32px;
  }

  .th-pw-podium {
    grid-template-columns: 1fr;
  }

  .th-pw-category {
    padding: 24px;
  }
}
