/**
 * @file
 * Page-level compositions.
 *
 * components.css styles a card, a table, a button. This file arranges them
 * into the front page, the package and client listings, the player page and
 * the login and contact pages. Page hooks come from the body classes added in
 * imd_theme_preprocess_html().
 */

/* Section rhythm ------------------------------------------------------- */

/*
 * Views and node content arrive as a flat stream of headings and blocks, so
 * the vertical rhythm has to come from the theme rather than from markup.
 */
#content h2 {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}

#content h2:first-of-type {
  margin-top: var(--s-5);
  padding-top: 0;
  border-top: 0;
}

/* A short accent rule above every section heading. */
#content h2::before {
  content: '';
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-pill);
  background: var(--accent-grad);
}

/* Front page ----------------------------------------------------------- */

/*
 * The slideshow is the whole front page, so it gets the full measure and a
 * dark surround rather than sitting in the content column like a widget.
 */
.is-front #main {
  padding-top: var(--s-5);
}

/*
 * The slideshow is cropped to a cloud. The shape is an SVG mask rather than a
 * clip-path because it scales with the box on every browser, where path() is
 * fixed to pixels. preserveAspectRatio is off so the cloud stretches to
 * whatever aspect the slide is showing at - wide on desktop, taller on phones.
 *
 * The rounded corners and the drop shadow come off with it: a box-shadow on a
 * masked element is clipped by that same mask and reads as a torn edge rather
 * than a shadow. The dark fill stays, so the cloud is solid while the first
 * slide is still loading.
 */
.view-homepage-slider {
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 510' preserveAspectRatio='none'%3E%3Cg fill='%23fff'%3E%3Crect x='90' y='300' width='1020' height='170' rx='85'/%3E%3Cellipse cx='560' cy='250' rx='290' ry='175'/%3E%3Cellipse cx='300' cy='305' rx='225' ry='140'/%3E%3Cellipse cx='850' cy='290' rx='245' ry='155'/%3E%3Cellipse cx='1020' cy='315' rx='160' ry='125'/%3E%3Cellipse cx='145' cy='365' rx='120' ry='105'/%3E%3Cellipse cx='1058' cy='360' rx='127' ry='110'/%3E%3C/g%3E%3C/svg%3E");

  position: relative;
  overflow: hidden;
  background: var(--ink);
  -webkit-mask-image: var(--cloud);
  mask-image: var(--cloud);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.view-homepage-slider img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 21 / 9;
}

/* A soft floor on the image so any caption or control stays legible. */
.view-homepage-slider::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(7, 13, 24, 0.55), transparent);
  pointer-events: none;
}

@media (max-width: 47.99rem) {
  .view-homepage-slider img { aspect-ratio: 4 / 3; }
}

/* Listing cards -------------------------------------------------------- */

/*
 * Both listings use the html_list style, so each row is an <li>. The card
 * treatment lives in components.css; this adds the internals - image bleeding
 * to the card edge, then a padded body.
 */
.view-packages .item-list > ul > li,
.view-clients .item-list > ul > li,
.view-packages .view-content > ul > li,
.view-clients .view-content > ul > li {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.view-packages .views-field-field-package-image,
.view-clients .views-field-field-client-image {
  margin: 0;
}

.view-packages .views-field-field-package-image img,
.view-clients .views-field-field-client-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--dur) var(--ease);
}

.view-packages li:hover .views-field-field-package-image img {
  transform: scale(1.03);
}

/* Everything after the image is the padded body. */
.view-packages .views-field:not(.views-field-field-package-image),
.view-clients .views-field:not(.views-field-field-client-image) {
  padding-inline: var(--s-5);
}

.view-packages .views-field-title,
.view-clients .views-field-title {
  padding-top: var(--s-5);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.view-packages .views-field-title a,
.view-clients .views-field-title a {
  color: var(--ink);
  text-decoration: none;
}

.view-packages .views-field-title a:hover { color: var(--accent-ink); }

.view-packages .views-field-field-package-description,
.view-clients .views-field-body {
  padding-top: var(--s-2);
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.view-packages .views-field-field-package-includes {
  padding-top: var(--s-3);
  color: var(--ink-3);
  font-size: var(--t-xs);
}

/* Price closes the card, pushed to the bottom so cards align on a row. */
.view-packages .views-field-field-package-price {
  margin-top: auto;
  padding-block: var(--s-4) var(--s-5);
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

/* Client logos read better contained than cropped. */
.view-clients .views-field-field-client-image img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  padding: var(--s-5);
  background: var(--surface-2);
}

/* Empty states --------------------------------------------------------- */

.view-empty {
  display: grid;
  place-items: center;
  gap: var(--s-2);
  min-height: 14rem;
  padding: var(--s-7) var(--s-5);
  text-align: center;
  color: var(--ink-3);
  background:
    radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}

/* Login page ----------------------------------------------------------- */

/*
 * On its own page the login form is the only thing there, so it is centred
 * rather than left in the content column.
 */
.route--user-login #main,
.route--user-pass #main,
.route--user-register #main {
  display: grid;
  place-items: start center;
  min-height: 60vh;
}

.route--user-login #content,
.route--user-pass #content,
.route--user-register #content {
  width: min(100%, 30rem);
}

.route--user-login #user-login-form,
.route--user-pass #content form,
.route--user-register #content form {
  max-width: none;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.route--user-login #user-login-form input[type='text'],
.route--user-login #user-login-form input[type='password'] {
  max-width: none;
}

.route--user-login #user-login-form input[type='submit'] { width: 100%; }

/* Contact page --------------------------------------------------------- */

/*
 * One centred column: title, then the detail cards, then the form.
 *
 * This was a two-column grid declared on #content > .section. That element
 * has exactly two children - the empty #main-content anchor and
 * .region--content, which imd_theme_preprocess_region() wraps every block in.
 * So the anchor took the 1.4fr column and the entire page was squeezed into
 * the 1fr one on the right. The two page-title rules beside it never matched
 * either: the title block is inside .region--content, not a child of
 * .section.
 */
.section--contact .region--content {
  max-width: 54rem;
  margin-inline: auto;
}

/* Title and intro centred. Card copy stays left - centred body text is harder
   to read - and the form keeps the 42rem card width it has everywhere else. */
.section--contact #block-imd-theme-page-title,
.section--contact .feature {
  text-align: center;
}

.section--contact .feature__card {
  text-align: left;
}

.section--contact .contact-form {
  margin-inline: auto;
}

/* Player page ---------------------------------------------------------- */

/*
 * The playlist and the athan table sit side by side. Both are already cards;
 * this stops the playlist growing unbounded on a long package.
 */
.section--user .view-users-view .view-content {
  max-height: 32rem;
  overflow-y: auto;
  padding-right: var(--s-2);
}

.section--user .view-users-view .views-row {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.section--user .view-users-view .views-row:last-child { border-bottom: 0; }

.section--user .views-field-title {
  font-weight: 600;
  font-size: var(--t-sm);
}

/* Footer --------------------------------------------------------------- */

/* The footer stacks: columns first, then a full-width bottom bar. */
#footer .section {
  display: block;
}

#footer h2 {
  margin-bottom: var(--s-3);
  font-size: var(--t-base);
  color: var(--on-dark);
}



#footer li { margin: 0; }

#footer a {
  font-size: var(--t-sm);
  text-decoration: none;
  opacity: 0.85;
}

#footer a:hover { opacity: 1; text-decoration: underline; }

.copyright {
  font-size: var(--t-xs);
  color: var(--on-dark-2);
}

/* Print ---------------------------------------------------------------- */

@media print {
  #header,
  #footer,
  #under-slider,
  .tabs,
  .view-filters { display: none; }

  #main { padding: 0; }

  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.85em; }
}

/* Under-slider band ---------------------------------------------------- */

/*
 * Four blocks share this band: About, the login card, Follow Us and the store
 * badges. Left to auto-fit they stacked badly - About took half a row with the
 * other half empty, and the login card was pushed to a row of its own. The
 * block ids are stable, having come across from Drupal 7, so the placement is
 * explicit.
 */
/*
 * About IMD runs the full width of the band rather than sitting in a column,
 * so the login card drops beneath it.
 */
#under-slider #block-imd-block-1 { grid-column: 1 / -1; }

#under-slider #block-imd-block-1 p {
  max-width: none;
  color: var(--ink-2);
}

/*
 * "Contact Us Now" carries the Drupal 7 .blue-button class and was rendering
 * as a bare underlined link directly above the login card.
 */
.blue-button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  background: var(--accent-grad);
  color: var(--on-dark) !important;
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.blue-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

/* App store badges ----------------------------------------------------- */

.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}

.store-link {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.store-link:hover { transform: translateY(-2px); }
.store-link:focus-visible { outline-offset: 4px; }

/*
 * The two badges are drawn to different proportions by Google and Apple, so
 * they are matched on height rather than width or they look mismatched.
 */
.store-link img {
  width: auto;
  height: 2.75rem;
}

/* Front page heading --------------------------------------------------- */

/*
 * The view title sat above the slideshow at display size with nothing to
 * anchor it. It pairs with the slideshow as one unit instead.
 */
.is-front #content h1,
.is-front .block-page-title-block h1 {
  margin-bottom: var(--s-5);
  font-size: var(--t-2xl);
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0;
}

/* Tighten the run-out to the footer. */
.is-front #main { padding-bottom: var(--s-5); }
#under-slider { margin-top: var(--s-6); }

/*
 * The login card sits in the under-slider band directly below About IMD. It is
 * the only block there that is not full width, so it centres itself rather
 * than aligning to the band's left edge.
 *
 * Padding is not set here: layout.css already carries it on
 * #under-slider .imd-login-block, which outranks this selector.
 */
.imd-login-block {
  margin-block: var(--s-6);
  margin-inline: auto;
}

/*
 * Grid items stretch to their row by default, which left a tall void inside
 * the login card under "Reset your password". Each block sizes to its own
 * content instead.
 */
#under-slider .region--under-slider > div { align-self: start; }

/* The badges sit level with the "Follow Us" heading beside them. */
#under-slider #block-imd-block-4 { display: flex; align-items: center; }

#under-slider { padding-block: var(--s-7); }

/* Homepage hero -------------------------------------------------------- */

.hero {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: var(--s-6) var(--s-7);
}

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--s-8);
    padding-block: var(--s-8) var(--s-9);
  }
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 var(--s-4);
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__title {
  margin: 0 0 var(--s-4);
  padding: 0;
  border: 0;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* The accent word carries the brand colour, as in the reference. */
.hero__title span { color: var(--accent); }

/*
 * The section rule above every h2 is set with an id selector, so matching it
 * needs the same weight to switch off here.
 */
#content .hero__title::before,
.hero__title::before {
  content: none;
}

#content .hero__title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.hero__lead {
  margin-bottom: var(--s-5);
  max-width: 52ch;
  color: var(--ink-2);
  font-size: var(--t-lg);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.hero__facts li { margin: 0; }
.hero__facts strong { color: var(--ink); font-weight: 600; }

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}

@media (min-width: 64rem) {
  .hero__media img { aspect-ratio: 5 / 4; }
}

/* Homepage sections ---------------------------------------------------- */

/* Stats strip: a dark band carrying the brand colour on the figures. */
.strip {
  margin-block: var(--band-tight);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 179, 232, 0.22), transparent 55%),
    var(--header-grad);
  box-shadow: var(--sh-md);
}

.strip__items {
  display: grid;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  text-align: center;
}

.strip__items li { margin: 0; }

.strip__n {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-bright);
}

.strip__l {
  display: block;
  margin-top: var(--s-1);
  font-size: var(--t-sm);
  color: var(--on-dark-2);
}

/* Section headings ----------------------------------------------------- */

.feature__eyebrow {
  display: inline-block;
  margin: 0 0 var(--s-3);
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: var(--t-xs);
  font-weight: 600;
}

#content .feature__title,
#content .steps h2 {
  margin: 0 0 var(--s-6);
  padding: 0;
  border: 0;
  font-size: var(--t-3xl);
}

#content .feature__title::before { content: none; }

.feature,
.steps { margin-block: var(--band); }

/* Full-bleed tinted band ------------------------------------------------ */

/*
 * imdmusic.com alternates plain sections with tinted ones that run edge to
 * edge while their copy stays on the 1240px measure.
 *
 * Nothing in this theme is edge to edge on its own - #main is capped at
 * --maxw, so a section inside it cannot reach the viewport by setting a
 * background. The tint is painted by a pseudo-element that breaks out
 * horizontally instead, which needs no change to any template.
 *
 * Padding, not margin: the tint has to extend past the copy, and adjacent
 * margins would collapse and pull the next section into it.
 */
.band--tint {
  position: relative;
  isolation: isolate;
  margin-block: 0;
  padding-block: var(--band);
}

.band--tint::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline: calc(50% - 50vw);
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

/* Feature cards -------------------------------------------------------- */

.feature__grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.feature__card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.feature__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

/* A brand-coloured keyline marks each card. */
.feature__card h3 {
  margin-bottom: var(--s-3);
  padding-top: var(--s-3);
  border-top: 3px solid var(--accent);
  font-size: var(--t-lg);
  display: inline-block;
}

/* Contact details sit in a card, and browsers italicise <address>. */
.feature__card address {
  margin: 0;
  color: var(--ink-2);
  font-style: normal;
  line-height: 1.6;
}

.feature__card p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-sm);
}

/* Steps ---------------------------------------------------------------- */

.steps__list {
  display: grid;
  gap: var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  counter-reset: step;
}

.steps__list li {
  margin: 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.steps__n {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--s-3);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.steps__list h3 {
  margin-bottom: var(--s-2);
  font-size: var(--t-lg);
}

.steps__list p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.steps__cta { margin-top: var(--s-6); }

/* Site footer ---------------------------------------------------------- */

.sitefooter {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--header-line);
}

@media (min-width: 48rem) {
  .sitefooter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  /* Brand column carries the description, so it takes the extra width. */
  .sitefooter { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; }
}

.sitefooter__brand p {
  margin: var(--s-3) 0 0;
  max-width: 34ch;
  color: var(--on-dark-2);
  font-size: var(--t-sm);
}

.sitefooter__logo {
  height: 2.25rem;
  width: auto;
}

.sitefooter h2 {
  margin: 0 0 var(--s-3);
  color: var(--on-dark);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sitefooter ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitefooter li { margin: 0 0 var(--s-2); }

.sitefooter a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: var(--t-sm);
  transition: color var(--dur) var(--ease);
}

.sitefooter a:hover { color: var(--accent-bright); }

.sitefooter address {
  margin: 0 0 var(--s-2);
  color: var(--on-dark-2);
  font-size: var(--t-sm);
  font-style: normal;
  line-height: 1.6;
}

.sitefooter .store-links { margin-top: var(--s-4); gap: var(--s-3); }
.sitefooter .store-link img { height: 2.25rem; }

/* The badges are dark artwork on a dark band, so they need a lift. */
.sitefooter .store-link {
  padding: var(--s-1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sitefooter .store-link:hover { background: rgba(255, 255, 255, 0.12); }

#footer :focus-visible { outline-color: var(--focus-on-dark); }

/* These need id weight to beat the generic #footer rules above. */
#footer .sitefooter ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .sitefooter li {
  display: block;
  margin: 0 0 var(--s-2);
}

#footer .sitefooter .store-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

#footer .sitefooter .store-link img {
  height: 2rem;
  width: auto;
  display: block;
}

/* Bottom bar. */
#footer .copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  padding-top: var(--s-4);
  font-size: var(--t-xs);
  color: var(--on-dark-2);
}

/* Social links --------------------------------------------------------- */

/*
 * The Drupal 7 stylesheet drew these as background sprites; replacing it left
 * them as bare text. The icons are still in the theme, so they are restored
 * as icon links. The link text stays in the document as the accessible name
 * and is pushed out of view rather than hidden, so screen readers keep it.
 */
.social-links-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.social-links-wrapper a {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-pill);
  background-color: var(--surface);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.5rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  text-indent: 120%;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.social-links-wrapper a:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.social-bottom-twitter { background-image: url('../images/social-bottom-twitter.png'); }
.social-bottom-facebook { background-image: url('../images/social-bottom-facebook.png'); }
.social-bottom-youtube { background-image: url('../images/social-bottom-youtube.png'); }



/* Cloud-cropped banner ------------------------------------------------- */

/*
 * The slide images are masked into the brand's cloud silhouette.
 *
 * The images are targeted through their field wrapper rather than through the
 * slideshow's own containers, so the crop holds whichever slide is showing
 * and does not depend on views_slideshow's markup.
 *
 * The mask is authored as SVG rather than reusing the Drupal 7
 * slider-cloud.png, whose alpha masked inverted: it hid the cloud and kept the
 * corners. A box-shadow would also draw a rectangle around a shape that is no
 * longer rectangular, so depth comes from drop-shadow(), which follows the
 * alpha channel.
 */
.views-field-field-slide-image img {
  width: 100%;
  aspect-ratio: 960 / 600;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask: url('../images/cloud-mask.svg') center / 100% 100% no-repeat;
  mask: url('../images/cloud-mask.svg') center / 100% 100% no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  filter: drop-shadow(0 24px 44px rgba(15, 23, 42, 0.28));
}

/* The hero image keeps its rounded frame; only the banner is cloud-cropped. */
.hero__media img {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  aspect-ratio: 5 / 4;
  -webkit-mask: none;
  mask: none;
  filter: none;
}

/* Local tasks ---------------------------------------------------------- */

/*
 * Core renders these as a plain <ul> inside the local-tasks block, with no
 * .tabs class to hook, so they were showing as a bulleted list.
 */
#block-imd-theme-primary-local-tasks > ul,
#block-imd-theme-secondary-local-tasks > ul,
[id$='local-tasks'] > ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

[id$='local-tasks'] > ul > li { margin: 0; }

[id$='local-tasks'] > ul > li > a {
  display: inline-block;
  padding: var(--s-3) var(--s-4);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

[id$='local-tasks'] > ul > li > a:hover { color: var(--accent-ink); }

[id$='local-tasks'] > ul > li > a.is-active {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}
