/* =========================================================
   Entrepreneurship One Magazine -- homepage sections
   Hero, engagement band, column band, category blocks, footer.
   Design tokens come from header.css.
   ========================================================= */

:root {
  --eo-accent-bright: #ff4d54;   /* red that holds up on the dark footer */
  --eo-gap:           30px;
}

.eo-main { padding-top: 26px; }

.eo-main ul,
.eo-footer ul { list-style: none; margin: 0; padding: 0; }
.eo-main a,
.eo-footer a { text-decoration: none; }

/* ---------------------------------------------------------
   Shared pieces
   --------------------------------------------------------- */
.eo-block-title {
  border-bottom: 1px solid var(--eo-line);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.eo-block-title h2 {
  display: inline-block;
  margin: 0 0 -1px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--eo-accent);
  font-family: var(--eo-font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--eo-accent);
}

.eo-block-title h2 a { color: inherit; }
.eo-block-title h2 a:hover { color: var(--eo-ink-soft); }

/* article card */
.eo-post__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
}

.eo-post__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.eo-post:hover .eo-post__thumb img { transform: scale(1.04); }

.eo-post__title {
  font-family: var(--eo-font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 7px;
}

.eo-post__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-post__title a:hover { color: var(--eo-accent); }

.eo-post__meta {
  font-size: 12px;
  font-style: italic;
  color: var(--eo-muted);
}

.eo-post__excerpt {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5a5a5a;
}

/* lead story: image on top, headline under it */
.eo-post--lg .eo-post__thumb { aspect-ratio: 21 / 9; }
.eo-post--lg .eo-post__body { padding-top: 16px; }
.eo-post--lg .eo-post__title { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.16; }

/* medium card */
.eo-post--md { margin-bottom: 26px; }
.eo-post--md .eo-post__thumb { aspect-ratio: 16 / 10; }
.eo-post--md .eo-post__body { padding-top: 11px; }
.eo-post--md .eo-post__title { font-size: 17px; }

/* list row (title + date, thumb right) */
.eo-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--eo-line);
}

.eo-row:first-child { padding-top: 0; }
.eo-row:last-child { border-bottom: 0; padding-bottom: 0; }

.eo-row__body { flex: 1; min-width: 0; }

.eo-row__title {
  margin: 0 0 5px;
  font-family: var(--eo-font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.eo-row__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-row__title a:hover { color: var(--eo-accent); }

.eo-row__date {
  font-size: 11px;
  font-style: italic;
  color: var(--eo-muted);
}

.eo-row__thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  overflow: hidden;
  background: #f2f2f2;
}

.eo-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.eo-row:hover .eo-row__thumb img { transform: scale(1.06); }

/* wide row (image left, text right) */
.eo-wide {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--eo-line);
}

.eo-wide:first-child { padding-top: 0; }
.eo-wide:last-child { border-bottom: 0; }

.eo-wide__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 3 / 2;
}

.eo-wide__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.eo-wide:hover .eo-wide__thumb img { transform: scale(1.05); }

.eo-wide__title {
  margin: 0 0 6px;
  font-family: var(--eo-font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.26;
}

.eo-wide__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-wide__title a:hover { color: var(--eo-accent); }

.eo-wide__date { font-size: 11px; font-style: italic; color: var(--eo-muted); }

/* "More from X" button */
.eo-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 15px;
  background: var(--eo-ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: .3px;
  border-radius: 3px;
  transition: background .2s ease;
}

.eo-more:hover { background: var(--eo-accent); color: #fff; }
.eo-more i { font-size: 11px; opacity: .8; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
/* a quarter-width rail of stacked stories beside a three-up grid */
.eo-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr);
  gap: var(--eo-gap);
  align-items: stretch;
  padding-bottom: 40px;
}

.eo-hero__rail {
  display: grid;
  gap: 26px;
  /* match the grid's height and push the leftover into the gap between
     the cards, so both halves of the hero end on the same line */
  height: 100%;
  align-content: space-between;
  /* a rule keeps the rail reading as a side column, not a wider fourth one */
  padding-right: var(--eo-gap);
  border-right: 1px solid var(--eo-line);
}

/* taller images so the two rail cards stand roughly as tall as the two
   grid rows beside them; still narrower, so it reads as a side column */
.eo-hero__rail .eo-post__thumb { aspect-ratio: 2 / 1; }
.eo-hero__rail .eo-post__body { padding-top: 11px; }
.eo-hero__rail .eo-badge { font-size: 9px; padding: 3px 6px; letter-spacing: .4px; }

.eo-hero__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--eo-gap);
  align-items: start;
}

.eo-hero__rail .eo-post--md,
.eo-hero__grid .eo-post--md { margin-bottom: 0; }

/* the rail is narrow, the grid cards are not */
.eo-hero__rail .eo-post__title { font-size: 16px; line-height: 1.32; }
.eo-hero__grid .eo-post__title { font-size: clamp(17px, 1.3vw, 20px); }

/* sidebar */
/* The column fills the row so the inner block has somewhere to travel. */
.eo-sidebar { align-self: stretch; }

.eo-sidebar__inner {
  position: sticky;
  /* header.js keeps this in step with the real sticky bar, and pulls it
     negative when the sidebar is taller than the window, so its foot can
     still be reached by scrolling. */
  top: var(--eo-sticky-top, 74px);
}
.eo-widget { margin-bottom: 32px; }
.eo-widget:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   Engagement band
   --------------------------------------------------------- */
.eo-engage { padding: 10px 0 44px; }

.eo-engage__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--eo-line);
  background: #fcfcfc;
}

.eo-engage__box {
  padding: 22px;
  border-right: 1px solid var(--eo-line);
}

.eo-engage__box:last-child { border-right: 0; }

/* podcast */
.eo-podcast { display: flex; gap: 14px; align-items: flex-start; }
.eo-podcast__body { flex: 1; min-width: 0; }

.eo-podcast__title {
  margin: 0 0 6px;
  font-family: var(--eo-font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.eo-podcast__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-podcast__title a:hover { color: var(--eo-accent); }

.eo-podcast__art {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
}

.eo-podcast__player { width: 100%; margin-top: 16px; height: 34px; }

/* newsletter */
.eo-newsletter__text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #5a5a5a;
}

.eo-newsletter { display: flex; }

.eo-newsletter input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--eo-line-strong);
  border-right: 0;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: #fff;
}

.eo-newsletter input:focus { border-color: var(--eo-accent); }

.eo-newsletter button {
  border: 0;
  background: var(--eo-accent);
  color: #fff;
  padding: 0 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}

.eo-newsletter button:hover { background: var(--eo-accent-dark); }

/* social counters */
.eo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.eo-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 6px 13px;
  color: #fff;
  text-align: center;
  transition: transform .2s ease, filter .2s ease;
}

.eo-stat:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.eo-stat i { font-size: 17px; margin-bottom: 6px; }
.eo-stat__count { font-size: 17px; font-weight: 700; line-height: 1; }
.eo-stat__label { font-size: 11px; opacity: .9; }

.eo-stat.is-fb { background: #3b5998; }
.eo-stat.is-x  { background: #111; }
.eo-stat.is-yt { background: #cd201f; }

/* ---------------------------------------------------------
   Showcase band: list column | two photos | card grid
   --------------------------------------------------------- */
.eo-showcase { padding-bottom: 46px; }

/* The tracks were swapped along with the columns, so the card grid
   keeps the wider share it needs for two cards abreast and the list
   keeps the narrower one. */
.eo-showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: var(--eo-gap);
  align-items: start;
}

/* No pictures and no counters: the band runs as two columns instead of
   holding an empty track open down its middle. */
.eo-showcase__grid--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* --- 2 x 2 cards --- */
.eo-showcase__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.eo-shcard {
  background: #fff;
  border: 1px solid var(--eo-line);
  transition: box-shadow .25s ease, transform .25s ease;
}

.eo-shcard:hover { box-shadow: var(--eo-shadow-lg); transform: translateY(-2px); }

.eo-shcard__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 4 / 3;
}

.eo-shcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.eo-shcard:hover .eo-shcard__thumb img { transform: scale(1.05); }

.eo-shcard__body { padding: 16px 18px 18px; }

.eo-shcard__title {
  margin: 0 0 8px;
  font-family: var(--eo-font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
}

.eo-shcard__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-shcard__title a:hover { color: var(--eo-accent); }

.eo-shcard__meta {
  font-size: 12px;
  color: var(--eo-muted);
  margin-bottom: 12px;
}

/* the homepage cards show no author/date line, so the title carries the gap */
.eo-shcard__title,
.eo-shrow__title { margin-bottom: 12px; }

.eo-readmore {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--eo-accent);
  transition: color .2s ease;
}

.eo-readmore:hover { color: var(--eo-accent-dark); }

/* --- two stacked photos --- */
.eo-photos { display: grid; gap: 22px; }

.eo-photo {
  display: block;
  overflow: hidden;
  background: #f2f2f2;
}

.eo-photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.eo-photo:hover img { transform: scale(1.04); }

/* the counters sit under the photos in the middle showcase column */
.eo-stats--showcase { margin-top: 22px; gap: 2px; }
.eo-stats--showcase .eo-stat { padding: 14px 4px 11px; }
.eo-stats--showcase .eo-stat i { font-size: 15px; margin-bottom: 5px; }
.eo-stats--showcase .eo-stat__count { font-size: 15px; }
.eo-stats--showcase .eo-stat__label { font-size: 10px; }

/* --- list column --- */
.eo-shrow {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--eo-line);
  margin-bottom: 18px;
  transition: box-shadow .25s ease;
}

.eo-shrow:last-child { margin-bottom: 0; }
.eo-shrow:hover { box-shadow: var(--eo-shadow-lg); }

.eo-shrow__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
}

.eo-shrow__thumb img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  display: block;
}

.eo-shrow__body { padding: 16px 18px; }

.eo-shrow__title {
  margin: 0 0 7px;
  font-family: var(--eo-font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
}

.eo-shrow__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-shrow__title a:hover { color: var(--eo-accent); }

/* ---------------------------------------------------------
   Three-column band
   --------------------------------------------------------- */
.eo-columns { padding-bottom: 44px; }

.eo-columns__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1.15fr);
  gap: var(--eo-gap);
  align-items: start;
}

.eo-col--boxed {
  border: 1px solid var(--eo-line);
  padding: 20px;
}

.eo-col--boxed .eo-more { margin-bottom: 2px; }

.eo-row--text { padding: 12px 0; }

/* the big grey "Latest" word behind the heading */
.eo-col__head { position: relative; }

.eo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  font-family: var(--eo-font);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .05);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* ---------------------------------------------------------
   Category blocks
   --------------------------------------------------------- */
.eo-blocks { padding-bottom: 50px; }

.eo-blocks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--eo-gap);
  align-items: start;
}

.eo-block {
  border: 1px solid var(--eo-line);
  padding: 20px;
}

.eo-block__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.eo-block__lead .eo-post--md { margin-bottom: 0; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.eo-footer {
  background: #0f0f0f;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.eo-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 44px;
}

.eo-footer__logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}

.eo-footer__copy {
  margin: 0 0 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
}

/* Contact details under the standfirst, above the social row. */
.eo-footer__contact {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.eo-footer__contact li { margin-bottom: 9px; }
.eo-footer__contact li:last-child { margin-bottom: 0; }

/* Nothing follows it in the column now that the social row has gone. */
.eo-footer__contact:last-child { margin-bottom: 0; }

.eo-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  word-break: break-word;
  transition: color .15s ease;
}

.eo-footer__contact a:hover { color: #fff; }

.eo-footer__contact i {
  color: var(--eo-accent);
  font-size: 13px;
  width: 15px;
  text-align: center;
  flex: none;
}

.eo-footer__head {
  margin: 0 0 18px;
  font-family: var(--eo-font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--eo-accent-bright);
}

.eo-footer__links a,
.eo-footer__cats a {
  color: rgba(255, 255, 255, .72);
  transition: color .2s ease;
}

.eo-footer__links a:hover,
.eo-footer__cats a:hover { color: #fff; }

.eo-footer__links li {
  padding: 7px 0;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.eo-footer__cats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.eo-footer__cats li:last-child { border-bottom: 0; }

/* footer picks */
.eo-frow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.eo-frow:first-child { padding-top: 0; }
.eo-frow:last-child { border-bottom: 0; }

.eo-frow__body { flex: 1; min-width: 0; }

.eo-frow__title {
  margin: 0 0 5px;
  font-family: var(--eo-font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.eo-frow__title a { color: #fff; transition: color .2s ease; }
.eo-frow__title a:hover { color: var(--eo-accent-bright); }

.eo-frow__date { font-size: 11px; font-style: italic; color: rgba(255, 255, 255, .45); }

.eo-frow__thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 60px;
  overflow: hidden;
  border-radius: 2px;
}

.eo-frow__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* bottom bar */
.eo-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #0a0a0a;
  font-size: 12px;
}

.eo-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  /* The back-to-top button is fixed to the bottom right, which is exactly
     where these links sit once you have scrolled this far. Reserve its
     width so the last one is not sitting underneath it. */
  padding-right: calc(var(--eo-gutter) + 58px);
}

.eo-footer__bar p { margin: 0; color: rgba(255, 255, 255, .5); }
.eo-footer__bar ul { display: flex; gap: 18px; }
.eo-footer__bar a { color: rgba(255, 255, 255, .6); transition: color .2s ease; }
.eo-footer__bar a:hover { color: #fff; }

/* ---------------------------------------------------------
   Back to top
   --------------------------------------------------------- */
.eo-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 3px;
  background: var(--eo-accent);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
  z-index: 95;
}

.eo-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.eo-top:hover { background: var(--eo-accent-dark); }

/* ---------------------------------------------------------
   Breakpoints
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   Spotlight grid: one lead story | six cards
   --------------------------------------------------------- */
.eo-spotlight { padding-bottom: 54px; }

/* Four equal columns: the lead takes one, the cards the other three, so
   every tile in the band is the same width as its neighbours. */
.eo-spotlight__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--eo-gap);
  align-items: start;
}

.eo-spotlight__cards {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--eo-gap);
}

/* --- the lead --- */
.eo-splead {
  background: #fff;
  border: 1px solid var(--eo-line);
}

/* Same frame as .eo-shcard__thumb, so the lead picture is the size of
   the six beside it rather than a tall portrait of its own. */
.eo-splead__thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.eo-splead__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.eo-splead:hover .eo-splead__thumb img { transform: scale(1.04); }

.eo-splead__body {
  padding: 16px 18px 18px;
}

.eo-splead__title {
  margin: 0;
  font-family: var(--eo-font-serif);
  font-size: 17px;
  line-height: 1.3;
}

.eo-splead__title a { color: inherit; }
.eo-splead__title a:hover { color: var(--eo-accent); }

.eo-splead__meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--eo-muted);
}

.eo-splead__excerpt {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--eo-muted);
}

.eo-splead .eo-readmore { margin-top: 16px; }

@media (max-width: 1200px) {
  .eo-hero__split { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); }
  .eo-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .eo-spotlight__grid { grid-template-columns: 1fr; }
  .eo-spotlight__cards { grid-column: auto; }
  .eo-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eo-showcase__col--photos { grid-column: 1 / -1; }
  .eo-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eo-columns__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .eo-col--latest { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 900px) {
  .eo-engage__grid { grid-template-columns: 1fr; }
  .eo-engage__box { border-right: 0; border-bottom: 1px solid var(--eo-line); }
  .eo-engage__box:last-child { border-bottom: 0; }
  .eo-blocks__grid { grid-template-columns: 1fr; }
  .eo-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) {
  /* stack the halves: the rail becomes its own row of cards */
  .eo-hero__split { grid-template-columns: 1fr; }
  .eo-hero__rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    height: auto;
    align-content: start;
    padding-right: 0;
    padding-bottom: var(--eo-gap);
    border-right: 0;
    border-bottom: 1px solid var(--eo-line);
  }
  .eo-hero__rail .eo-post__thumb { aspect-ratio: 16 / 10; }
  .eo-hero__rail .eo-post__title { font-size: 16px; }
}

@media (max-width: 760px) {
  :root { --eo-gap: 24px; }
  .eo-hero__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eo-showcase__grid { grid-template-columns: 1fr; }
  .eo-showcase__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .eo-spotlight__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .eo-columns__grid { grid-template-columns: 1fr; }
  .eo-block__body { grid-template-columns: 1fr; }
  .eo-wide { grid-template-columns: 110px 1fr; gap: 14px; }
  .eo-wide__title { font-size: 16px; }
  .eo-footer__bar-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .eo-hero__rail,
  .eo-hero__grid { grid-template-columns: 1fr; }
  .eo-showcase__cards { grid-template-columns: 1fr; }
  .eo-spotlight__cards { grid-template-columns: 1fr; }
  .eo-photos { grid-template-columns: 1fr; }
  .eo-shrow { grid-template-columns: 110px minmax(0, 1fr); }
  .eo-footer__grid { grid-template-columns: 1fr; }
  .eo-stats { grid-template-columns: 1fr; }
  .eo-stat { flex-direction: row; justify-content: center; gap: 10px; padding: 12px; }
  .eo-stat i { margin-bottom: 0; }
}

/* ---------------------------------------------------------
   Videos
   --------------------------------------------------------- */
.eo-videoband { padding-bottom: 46px; }

.eo-videos {
  display: grid;
  /* auto-fit, not auto-fill: on a wide homepage auto-fill would lay out six
     tracks and leave half of them empty when only three videos are on. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--eo-gap);
  padding-bottom: 8px;
}

.eo-video {
  background: #fff;
  border: 1px solid var(--eo-line);
  transition: box-shadow .25s ease, transform .25s ease;
}

.eo-video:hover { box-shadow: var(--eo-shadow-lg); transform: translateY(-2px); }

.eo-video__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0d0d0d;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}

.eo-video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .25s ease;
}

.eo-video:hover .eo-video__play img { transform: scale(1.04); opacity: .85; }

.eo-video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--eo-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  padding-left: 3px;
  transition: transform .25s ease, background .2s ease;
}

.eo-video__play:hover .eo-video__icon { transform: translate(-50%, -50%) scale(1.08); background: var(--eo-accent-dark); }
.eo-video__play:focus-visible { outline: 3px solid var(--eo-accent); outline-offset: 2px; }

.eo-video__time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* the iframe that replaces the thumbnail */
.eo-video__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #000;
}

.eo-video__body { padding: 14px 16px 16px; }

.eo-video__title {
  margin: 0;
  font-family: var(--eo-font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--eo-ink-soft);
}

.eo-video__text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5a5a5a;
}

@media (max-width: 520px) {
  .eo-videos { grid-template-columns: 1fr; }
}

/* Only one hero slot was filled, so it takes the whole row instead of
   leaving the other half of the band standing open. */
.eo-hero__split--single { grid-template-columns: minmax(0, 1fr); }

.eo-hero__split--single .eo-hero__rail {
  padding-right: 0;
  border-right: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-content: start;
}

/* ---------------------------------------------------------
   Covers band
   --------------------------------------------------------- */

/* Full bleed: the pictures run to both edges of the window, so this row
   sits outside the container every other band uses. */
/* The band runs edge to edge, so it carries its own breathing room: the
   section under it is a container and brings no top margin of its own. */
.eo-covers {
  background: #000;
  margin-bottom: 46px;
}

.eo-covers__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eo-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #000;
}

.eo-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

a.eo-cover:hover img { transform: scale(1.04); }

/* A wash under the name, so it holds on a pale cover as well as a dark one.
   Only drawn where there is a name to hold. */
.eo-cover--labelled::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
  z-index: 1;
}

/* The name and the line under it travel together in the corner of the tile. */
.eo-cover__words {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.eo-cover__label {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

/* Outlined rather than filled: it has to sit over a photograph nobody
   chose for its contrast. */
.eo-cover__cta {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease;
}

a.eo-cover:hover .eo-cover__cta {
  background: var(--eo-accent);
  border-color: var(--eo-accent);
}

@media (max-width: 900px) {
  .eo-covers__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .eo-covers__row { grid-template-columns: 1fr; }
  .eo-cover { aspect-ratio: 4 / 3; }
}
