/* Masters 2028 — child theme of Hummingbird.
 *
 * Values here are taken from the "Shop the Story" wireframe rather than
 * approximated: palette, type, row heights, the translucent search field and
 * the yellow underline on the active nav item all match its stylesheet.
 *
 * Hummingbird is Bootstrap 5.3, whose design system is exposed as CSS custom
 * properties, so the palette is re-pointed at runtime with no SCSS build.
 */

@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;1,700&family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --m-blue: #0f416d;
  --m-deep: #064f71;
  --m-cyan: #46c1ee;
  --m-lblue: #87cfe4;
  --m-night: #06192a;
  --m-ivory: #fefff5;
  --m-paper: #f4f6ee;
  --m-red: #cf161a;
  --m-red-dark: #a91014;
  --m-yellow: #ebaa3b;

  --m-mute: rgba(15, 65, 109, 0.66);
  --m-line: rgba(15, 65, 109, 0.14);
  --m-line-strong: rgba(15, 65, 109, 0.26);

  /* Light rules and fills used on the blue rows */
  --m-on-blue-line: rgba(254, 255, 245, 0.3);
  --m-on-blue-fill: rgba(254, 255, 245, 0.12);
  --m-on-blue-rule: rgba(254, 255, 245, 0.18);

  --m-display: "Archivo Black", "Poppins", sans-serif;
  --m-condensed: "Barlow Condensed", "Poppins", sans-serif;
  --m-body: "Poppins", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Bootstrap tokens -------------------------------------------------- */

:root,
[data-bs-theme="light"] {
  --bs-primary: var(--m-blue);
  --bs-primary-rgb: 15, 65, 109;
  --bs-secondary: var(--m-cyan);
  --bs-danger: var(--m-red);
  --bs-warning: var(--m-yellow);

  --bs-body-bg: var(--m-paper);
  --bs-body-color: var(--m-blue);
  --bs-emphasis-color: var(--m-night);
  --bs-secondary-color: var(--m-mute);
  --bs-border-color: var(--m-line);

  --bs-link-color: var(--m-blue);
  --bs-link-color-rgb: 15, 65, 109;
  --bs-link-hover-color: var(--m-deep);

  --bs-body-font-family: var(--m-body);
  --bs-heading-color: var(--m-blue);
}

/* ---- Typography -------------------------------------------------------- */

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--m-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h4, h5, h6, .h4, .h5, .h6 {
  font-family: var(--m-condensed);
  font-weight: 600;
  letter-spacing: 0.01em;
}

body { background-color: var(--m-paper); }

.card,
.product-miniature .thumbnail-container,
.page-content {
  background-color: var(--m-ivory);
  border-color: var(--m-line);
}

/* ---- Buttons ----------------------------------------------------------- */

.btn-primary {
  --bs-btn-bg: var(--m-blue);
  --bs-btn-border-color: var(--m-blue);
  --bs-btn-hover-bg: var(--m-deep);
  --bs-btn-hover-border-color: var(--m-deep);
  --bs-btn-active-bg: var(--m-night);
  font-family: var(--m-condensed);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================================
   HEADER
   The wireframe uses a 1200px measure with a fluid gutter across all three
   rows, so the Bootstrap containers inside the header are pinned to match.
   ========================================================================= */

.topbar__inner,
.header-main__inner,
.header-nav__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(14px, 2.4vw, 32px);
}

/* ---- Row 1: event bar --------------------------------------------------- */

.topbar {
  background-color: var(--m-night);
  color: var(--m-ivory);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1.4rem;
  min-height: 30px;
}

.topbar__text {
  margin: 0;
  text-transform: uppercase;
}

.topbar__lang { margin-left: auto; }

.topbar__lang .form-select {
  width: auto;
  padding: 0 1.3rem 0 0.35rem;
  height: auto;
  background-color: transparent;
  border: 0;
  color: var(--m-ivory);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FEFFF5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-size: 10px 8px;
}

.topbar__lang .form-select:hover { opacity: 1; }
.topbar__lang .form-select:focus { box-shadow: none; opacity: 1; }
.topbar__lang .form-select option {
  background-color: var(--m-ivory);
  color: var(--m-blue);
  text-transform: none;
}

/* ---- Row 2: the blue bar ------------------------------------------------ */

.header-main {
  background-color: var(--m-blue);
  color: var(--m-ivory);
}

.header-main__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  min-height: 74px;
  padding-block: 0.6rem;
}

.header-main__logo { flex: 0 0 auto; }
.header-main__logo img { height: 42px; width: auto; max-width: none; }
.header-main__h1 { line-height: 0; }

.header-main a,
.header-main button,
.header-main .material-icons { color: var(--m-ivory); }

/* Search: a translucent well on the blue, not a white box */
.header-main__search { flex: 1 1 220px; max-width: 34rem; }

.header-main .form-control,
.header-main input[type="text"],
.header-main input[type="search"] {
  min-height: 40px;
  background-color: var(--m-on-blue-fill);
  border: 1px solid var(--m-on-blue-line);
  border-radius: 4px;
  color: var(--m-ivory);
  font-size: 0.8rem;
}

.header-main .form-control::placeholder {
  color: var(--m-ivory);
  opacity: 0.75;
}

.header-main .form-control:focus {
  background-color: rgba(254, 255, 245, 0.18);
  border-color: var(--m-on-blue-line);
  color: var(--m-ivory);
  box-shadow: none;
}

.header-main .ps-searchbar .material-icons,
.header-main .search-widget .material-icons { color: var(--m-ivory); opacity: 0.75; }

/* Sign in / basket */
.header-main__actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-main__actions a,
.header-main__actions .header-block {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
}

.header-main .header-block__icon { font-size: 20px; }

.header-main .header-block__badge {
  background-color: var(--m-yellow);
  color: var(--m-night);
  border-radius: 20px;
  padding: 0 0.5rem;
  font-size: 0.7rem;
  line-height: 1.45;
  font-weight: 700;
}

/* ---- Row 3: navigation -------------------------------------------------- */

.header-nav {
  background-color: var(--m-blue);
  border-top: 1px solid var(--m-on-blue-rule);
  color: var(--m-ivory);
}

/* The measure now lives on the nav itself, since .header-nav is full width */
.header-nav .ps-mainmenu--desktop {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(14px, 2.4vw, 32px);
}

.header-nav .ps-mainmenu__tree {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav .ps-mainmenu__tree::-webkit-scrollbar { display: none; }

.header-nav a,
.header-nav .ps-mainmenu__tree-link {
  color: var(--m-ivory);
  text-decoration: none;
  font-family: var(--m-condensed);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.1rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  opacity: 0.9;
}

.header-nav a:hover,
.header-nav .ps-mainmenu__tree-link:hover { opacity: 1; color: var(--m-ivory); }

.header-nav .ps-mainmenu__tree-item.current > .ps-mainmenu__tree-item-wrapper > .ps-mainmenu__tree-link,
.header-nav .ps-mainmenu__tree-link[aria-current="page"] {
  border-bottom-color: var(--m-yellow);
  opacity: 1;
}

/* The hover mega-menu is replaced by the persistent strip below; leaving both
   would put two different panels in the same place. */
.header-nav .submenu { display: none !important; }

/* ---- Row 4: persistent sub-navigation ----------------------------------- */

.header-nav .subnav {
  background-color: #fff;
  border-bottom: 1px solid var(--m-line);
}

.header-nav .subnav__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(14px, 2.4vw, 32px);
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 38px;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav .subnav__inner::-webkit-scrollbar { display: none; }

.header-nav .subnav__item {
  color: var(--m-mute);
  font-family: var(--m-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  padding: 0;
  border: 0;
}

.header-nav .subnav__item:hover,
.header-nav .subnav__item:focus { color: var(--m-blue); }

.header-nav .subnav__item--current { color: var(--m-red); font-weight: 700; }

/* ---- Focus: keyboard only ------------------------------------------------
   Hummingbird draws a 2px outline on :focus, which fires on mouse clicks too
   and reads as a box around the link. Restricting it to :focus-visible keeps
   it for keyboard users and removes it for clicks. */

.header-nav .ps-mainmenu__tree-link:focus,
.header-nav .ps-mainmenu__tree-dropdown-toggle:focus,
.header-nav .subnav__item:focus {
  outline: 0;
  box-shadow: none;
  background-color: transparent;
  border-radius: 0;
}

.header-nav .ps-mainmenu__tree-link:focus-visible,
.header-nav .ps-mainmenu__tree-dropdown-toggle:focus-visible {
  outline: 2px solid var(--m-ivory);
  outline-offset: -2px;
}

.header-nav .subnav__item:focus-visible {
  outline: 2px solid var(--m-blue);
  outline-offset: 2px;
}

/* Labels collapse on small screens, as in the wireframe */
@media (max-width: 575.98px) {
  .header-main__actions a span,
  .header-main__actions .header-block span:not(.header-block__badge) { display: none; }
  .topbar__text { font-size: 0.62rem; }
}

/* The fixed "Join the Story" link — the one highlight colour in the nav.
   Scoped under .header-nav to outrank `.header-nav a`, which sets ivory. */
.header-nav .ps-mainmenu__tree-link--join {
  color: var(--m-yellow);
  opacity: 1;
}

.header-nav .ps-mainmenu__tree-link--join:hover,
.header-nav .ps-mainmenu__tree-link--join:focus {
  color: var(--m-yellow);
  opacity: 0.8;
}

/* Small captions beside the first-level links: quieter and a touch smaller,
   keeping roughly the wireframe's ratio between label and caption. */
.header-nav .ps-mainmenu__caption {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* The dropdown toggle used to open the hover mega-menu, which the persistent
   strip replaced — so it is now a dead control. It also carried 20px of
   vertical padding against the link's 13.6px, making the row taller than the
   links and leaving a band of blue below the active yellow underline. */
/* !important is needed here: Hummingbird styles these through chains like
   `.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree>li .ps-mainmenu__tree-dropdown-toggle`,
   which scores (0,4,1) — higher than anything reasonable a child theme can
   write without piling on redundant classes. */
.header-nav .ps-mainmenu__tree-dropdown-toggle { display: none !important; }

/* Stretch the links to the full row height so the underline always sits on
   the bottom edge, whatever else ends up in the row. */
.header-nav .ps-mainmenu__tree-item,
.header-nav .ps-mainmenu__tree-item-wrapper {
  display: flex !important;
  align-items: stretch !important;
}

.header-nav .ps-mainmenu__tree-link {
  display: flex !important;
  align-items: center;
}

/* =========================================================================
   FRONT PAGE HERO — two panels, from the wireframe's .split / .half
   ========================================================================= */

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background-color: var(--m-night);
  color: var(--m-ivory);
}

.home-hero__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
}

/* Drop a file in assets/img/ and it appears; until then the gradient below
   carries the panel on its own. */
.home-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}

.home-hero__panel--join .home-hero__photo {
  background-image: url("../img/hero-join.jpg");
  background-position: 40% center;
}

.home-hero__panel--shop .home-hero__photo {
  background-image: url("../img/hero-shop.jpg");
  background-position: center 30%;
}

.home-hero__panel:hover .home-hero__photo { transform: scale(1.04); }

/* The wash that keeps the text legible over any photo */
.home-hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(6, 25, 42, 0.92) 0%,
    rgba(6, 25, 42, 0.35) 55%,
    rgba(6, 25, 42, 0.15) 100%
  );
}

.home-hero__panel--join::before {
  background: linear-gradient(
    0deg,
    rgba(207, 22, 26, 0.94) 0%,
    rgba(207, 22, 26, 0.45) 50%,
    rgba(15, 65, 109, 0.2) 100%
  );
}

.home-hero__text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.home-hero__eyebrow {
  font-family: var(--m-condensed);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--m-yellow);
}

.home-hero__title {
  margin: 0;
  font-family: var(--m-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  color: var(--m-ivory);
}

.home-hero__title em { font-style: normal; color: var(--m-yellow); }

.home-hero__body {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
  max-width: 44ch;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border: 2px solid transparent;
  font-family: var(--m-condensed);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  transition: transform 0.15s, background 0.15s;
}

.home-hero__btn:hover { transform: translateY(-1px); }

.home-hero__btn--yellow { background-color: var(--m-yellow); color: var(--m-night); }
.home-hero__btn--yellow:hover { background-color: var(--m-yellow); color: var(--m-night); }

.home-hero__btn--red { background-color: var(--m-red); color: #fff; }
.home-hero__btn--red:hover { background-color: var(--m-red-dark); color: #fff; }

.home-hero__btn--ghost { border-color: currentColor; color: var(--m-ivory); }
.home-hero__btn--ghost:hover { color: var(--m-ivory); }

.home-hero__note {
  font-size: 0.72rem;
  opacity: 0.85;
  border-left: 2px solid var(--m-yellow);
  padding-left: 0.6rem;
}

/* Stacked on narrow screens, as the wireframe does at 900px */
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; min-height: 0; }
  .home-hero__panel { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__photo,
  .home-hero__btn { transition: none; }
  .home-hero__panel:hover .home-hero__photo { transform: none; }
}

/* =========================================================================
   REASSURANCE STRIP — blockreassurance, styled to the wireframe's .reas
   ========================================================================= */

.reassurance {
  background-color: #fff;
  border-bottom: 1px solid var(--m-line);
}

.reassurance__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(14px, 2.4vw, 32px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.reassurance__item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  /* The wireframe writes `padding:.8rem .6rem`, but its selector is the loose
     `.reas div`, which also matches the text block nested inside each item —
     so the padding lands twice and the row ends up 99px tall. Applying it once
     here gives 98px and the same inset from the dividers. */
  padding: 1.6rem 1.2rem;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--m-blue);
  text-decoration: none;
  border-right: 1px solid var(--m-line);
}

.reassurance__item:last-child { border-right: 0; }

.reassurance__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  /* The pack icons are flat SVGs loaded as <img>, so they cannot inherit
     currentColor. This tints them towards the brand red; replacing them with
     custom uploads in the back office gives exact control. */
  filter: invert(17%) sepia(88%) saturate(4954%) hue-rotate(354deg) brightness(88%) contrast(94%);
}

.reassurance__title {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
}

.reassurance__desc { color: var(--m-mute); }

@media (max-width: 900px) {
  .reassurance__inner { grid-template-columns: 1fr 1fr; }
  .reassurance__item:nth-child(2) { border-right: 0; }
}

@media (max-width: 575.98px) {
  .reassurance__inner { grid-template-columns: 1fr; }
  .reassurance__item {
    border-right: 0;
    border-bottom: 1px solid var(--m-line);
  }
  .reassurance__item:last-child { border-bottom: 0; }
}

/* =========================================================================
   HOME CUSTOM TEXT — ps_customtext, styled as the wireframe's section head
   (.bh: a red kicker, a display headline, a muted lede). The back-office
   editor produces plain tags, so they are mapped: H3 → kicker, H1 → headline,
   P → lede. H2 takes the headline style too, since the stock content uses it.
   ========================================================================= */

/* Bottom is the wireframe's .bh margin rather than a full section's padding:
   the featured products below continue this block, as they share one .wrap
   in the wireframe. */
.ps-customtext {
  padding-block: clamp(2rem, 4vw, 3.4rem) 1.3rem;
}

.ps-customtext .container {
  max-width: 1200px;
  padding-inline: clamp(14px, 2.4vw, 32px);
}

.ps-customtext h3,
.masters-shelves__kicker {
  /* The wireframe's kicker is an inline span sitting in a taller line box;
     3px restores the same distance to the headline. Padding, not margin, so it
     does not collapse into the headline's top margin. */
  margin: 0;
  padding-bottom: 3px;
  font-family: var(--m-body);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--m-red);
}

.ps-customtext h1,
.ps-customtext h2,
.masters-shelves__headline {
  margin: 0.25rem 0 0;
  font-family: var(--m-display);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--m-blue);
}

/* Italic in the editor becomes the red highlight, as in "Choose what moves you." */
.ps-customtext h1 em,
.ps-customtext h2 em,
.masters-shelves__headline em {
  font-style: normal;
  color: var(--m-red);
}

.ps-customtext p,
.masters-shelves__intro {
  margin: 0;
  max-width: 56ch;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--m-mute);
}

/* The wireframe only ever has one paragraph; space any further ones */
.ps-customtext p + p { margin-top: 0.7rem; }

.ps-customtext p strong { font-weight: 700; color: var(--m-blue); }

/* =========================================================================
   HOME FEATURED PRODUCTS — ps_featuredproducts, laid out as the grid under
   the custom text block's heading, on the same 1200px measure
   ========================================================================= */

/* The custom text block's headline now introduces the products */
.ps-featuredproducts .section-title { display: none; }

.ps-featuredproducts .container {
  max-width: 1200px;
  padding-inline: clamp(14px, 2.4vw, 32px);
}

/* Hummingbird spaces every home module with a 2.5rem grid gap
   (.page-content--home). Cancel it only where the products directly follow
   the custom text, so the 1.3rem above is the whole distance. If the modules
   are reordered, the gap comes back and the text keeps normal spacing. */
.ps-customtext + .ps-featuredproducts { margin-top: -2.5rem; }

/* =========================================================================
   KEY FIGURES — the mastersfacts module, styled as the wireframe's .rule
   strip. Content is edited in the back office; this is only the look.
   ========================================================================= */

.masters-facts .container {
  max-width: 1200px;
  padding-inline: clamp(14px, 2.4vw, 32px);
}

/* The wireframe puts the strip 1.4rem under the product grid; take back
   Hummingbird's 2.5rem module gap when it directly follows the products. */
.ps-featuredproducts + .masters-facts { margin-top: -1.1rem; }

/* Columns follow the number of items, so hiding one leaves no empty cell */
.masters-facts__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border: 2px solid var(--m-blue);
  background-color: #fff;
}

.masters-facts__item {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--m-line-strong);
}

.masters-facts__item:last-child { border-right: 0; }

.masters-facts__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m-red);
}

.masters-facts__figure {
  display: block;
  font-family: var(--m-condensed);
  font-style: italic;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--m-blue);
}

.masters-facts__figure--red { color: var(--m-red); }

.masters-facts__text {
  margin: 0.25rem 0 0;
  font-size: 0.74rem;
  font-weight: 300;
  line-height: 1.35;
  color: var(--m-mute);
}

@media (max-width: 620px) {
  .masters-facts__list { grid-auto-flow: row; }
  .masters-facts__item {
    border-right: 0;
    border-bottom: 1px solid var(--m-line-strong);
  }
  .masters-facts__item:last-child { border-bottom: 0; }
}

/* =========================================================================
   SHELVES — the mastersshelves module, styled as the wireframe's "Everything
   for your Games week" section: a paper band with the same section head as
   the custom text block (shared rules above) and three photo cards.
   ========================================================================= */

.masters-shelves {
  padding-block: clamp(2rem, 4vw, 3.4rem);
  background-color: var(--m-paper);
}

/* In the wireframe the key figures close their section, whose bottom padding
   is clamp(2rem, 4vw, 3.4rem). Hummingbird's 2.5rem module gap stands in for
   it, so only the difference is added. */
.masters-facts + .masters-shelves { margin-top: calc(clamp(2rem, 4vw, 3.4rem) - 2.5rem); }

.masters-shelves .container {
  max-width: 1200px;
  padding-inline: clamp(14px, 2.4vw, 32px);
}

.masters-shelves__head { margin-bottom: 1.3rem; }

.masters-shelves__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.masters-shelves__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  overflow: hidden;
  background-color: var(--m-blue);
  color: #fff;
  text-decoration: none;
}

/* Bootstrap's a:hover outranks the class above */
.masters-shelves__card:hover,
.masters-shelves__card:focus { color: #fff; text-decoration: none; }

.masters-shelves__card:focus-visible {
  outline: 3px solid var(--m-yellow);
  outline-offset: 2px;
}

.masters-shelves__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s;
}

.masters-shelves__card:hover .masters-shelves__photo { transform: scale(1.06); }

/* The wash that keeps the text legible over any photo */
.masters-shelves__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(6, 25, 42, 0.92) 0%, rgba(6, 25, 42, 0.2) 65%);
}

.masters-shelves__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.3rem;
}

.masters-shelves__card-kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-yellow);
}

.masters-shelves__card-title {
  margin: 0.3rem 0 0.4rem;
  font-family: var(--m-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.masters-shelves__card-text {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.9;
}

/* The wireframe's small ghost button; the whole card is the link */
.masters-shelves__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 2px solid currentColor;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.15s;
}

.masters-shelves__card:hover .masters-shelves__button { transform: translateY(-1px); }

@media (max-width: 900px) {
  .masters-shelves__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .masters-shelves__photo,
  .masters-shelves__button { transition: none; }
  .masters-shelves__card:hover .masters-shelves__photo,
  .masters-shelves__card:hover .masters-shelves__button { transform: none; }
}
