/* MindMixer Resource Library: downloadables homepage + single downloadable.
   Colors come from the MindMixer palette in the Brand Guide (intranet). */
:root {
  --orange: #C34A1D;   /* MM Orange: primary, links, buttons, card titles */
  --amber:  #8C3B1A;   /* Amber: dark sections, hover states */
  --flare:  #E05300;   /* Flare: bright accent, use sparingly */
  --seafoam:#EAF2F2;   /* Seafoam: light tint */
  --navy:   #16243F;   /* family thread: headings */
  --gold:   #D9B86A;   /* accent only */
  --ink:    #1A1F24;
  --white:  #FFFFFF;
  --mist-0: #FAFBFC; --mist-1: #F2F4F6; --mist-2: #E5E7EA; --mist-3: #CDD1D6;
  --mist-4: #A8AEB5; --mist-5: #6A7079; --mist-6: #44494F;
  /* Azo Sans if the site loads it (Adobe Fonts kit); Montserrat otherwise, per the Brand Guide */
  --font-display: 'azo-sans-web', 'Azo Sans', 'Montserrat', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Lato', sans-serif;
  --radius-sm: 6px; --radius-btn: 8px; --radius-card: 12px;
  --shadow-lift: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.10);
}
:where(.mm-dlp, .mm-dlp *, .mm-dlp *::before, .mm-dlp *::after) { box-sizing: border-box; margin: 0; padding: 0; }

/* ════════ RESOURCE LIBRARY HOMEPAGE (.mm-dl) ════════ */


    
    /* Resets scoped to this page's sections so the site's
       global WordPress header/footer are left untouched. */
    :where(.mm-dl, .mm-dl *, .mm-dl *::before, .mm-dl *::after) { box-sizing: border-box; margin: 0; padding: 0; }

    html, body { overflow-x: hidden; }

    /* ── Full-width sections ───────────────────
       The site's classic theme constrains content even
       with align:"full", so each section breaks out on its own.
       Applied once, directly on each <section>. ───────────────── */
    .mm-dl {
      width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
      font-family: var(--font-body);
      color: var(--ink);
      -webkit-font-smoothing: antialiased;
    }
    :where(.mm-dl) a { color: inherit; }

    .mm-dl .dl-container {
      max-width: 1280px; /* 1200px content + 40px side margins */
      margin: 0 auto;
      padding: 0 40px;
    }

    /* ── Headings ───────────────────────────── */
    .mm-dl .hero-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 46px;
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--navy);
      margin: 16px 0 24px;
    }
    .mm-dl .section-title,
    .mm-dl .newsletter-title {
      font-family: var(--font-display);
      font-weight: 500;
      font-size: 32px;
      line-height: 1.18;
      letter-spacing: -0.015em;
      color: var(--navy);
    }
    .mm-dl .newsletter-title { color: var(--white); }

    /* ── Eyebrow / kicker (span, never a heading) ── */
    .mm-dl .eyebrow {
      display: block;
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 11px;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--orange);
    }
    .mm-dl .eyebrow.on-dark { color: var(--seafoam); }

    /* ── Inline links in body copy ─────────── */
    .mm-dl .inline-link {
      font-family: var(--font-body);
      font-weight: 400;
      color: var(--orange);
      text-decoration: underline;
      text-underline-offset: 0.15em;
      transition: color 0.15s ease;
    }
    .mm-dl .inline-link:hover { color: var(--amber); }

    /* ── Buttons ────────────────────────────── */
    .mm-dl .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 15px 30px;
      border-radius: var(--radius-btn);
      border: 1.5px solid transparent;
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 16px;
      letter-spacing: normal;
      line-height: 1.2;
      text-decoration: none;
      white-space: nowrap;
      cursor: pointer;
      transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .mm-dl .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
    .mm-dl .btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
    .mm-dl .btn-primary:hover { background: var(--amber); border-color: var(--amber); }
    .mm-dl .btn-outline-orange { background: transparent; color: var(--orange); border-color: var(--orange); }
    .mm-dl .btn-outline-orange:hover { background: var(--seafoam); }
    .mm-dl .btn-white { background: var(--white); color: var(--orange); border-color: var(--white); }
    .mm-dl .btn-white:hover { background: var(--seafoam); border-color: var(--seafoam); }

    /* Standalone text-link CTA */
    .mm-dl .link-arrow {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 14px;
      color: var(--orange);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }
    .mm-dl .link-arrow svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.15s ease; }
    .mm-dl .link-arrow:hover { text-decoration: underline; }
    .mm-dl .link-arrow:hover svg { transform: translateX(4px); }

    /* Keyboard focus */
    .mm-dl a:focus-visible,
    .mm-dl button:focus-visible,
    .mm-dl input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
    .mm-dl.newsletter-section a:focus-visible,
    .mm-dl.newsletter-section button:focus-visible,
    .mm-dl.newsletter-section input:focus-visible { outline-color: var(--white); }

    /* ══════════════════════════════════════════
       HERO
    ══════════════════════════════════════════ */
    .mm-dl.dl-hero {
      padding: 96px 0;
      background: var(--amber);
    }
    .mm-dl.dl-hero .hero-title { color: var(--white); }
    .mm-dl.dl-hero .hero-desc { color: var(--white); }
    .mm-dl.dl-hero .platform-label { color: var(--white); }
    /* Jump chips on Amber: outline-white treatment */
    .mm-dl.dl-hero .platform-badge {
      background: transparent;
      border-color: rgba(255,255,255,0.55);
      color: var(--white);
    }
    .mm-dl.dl-hero .platform-badge:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }
    .mm-dl.dl-hero a:focus-visible { outline-color: var(--white); }
    .mm-dl .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 72px;
      align-items: center;
    }
    .mm-dl .hero-desc {
      font-family: var(--font-body);
      font-weight: 400;
      font-size: 18px;
      line-height: 1.7;
      color: var(--mist-6);
      margin-bottom: 32px;
    }
    .mm-dl .platform-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .mm-dl .platform-label {
      flex-basis: 100%;
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 11px;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--mist-6);
    }
    .mm-dl .platform-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: var(--white);
      border: 1px solid var(--mist-2);
      border-radius: 999px;
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 12px;
      color: var(--ink);
      text-decoration: none;
      transition: border-color 0.15s, color 0.15s;
    }
    .mm-dl .platform-badge:hover { border-color: var(--orange); color: var(--orange); }
    .mm-dl .hero-right { display: flex; justify-content: flex-end; }
    .mm-dl .hero-featured-card {
      display: flex;
      flex-direction: column;
      gap: 16px;
      width: 100%;
    }

    /* ══════════════════════════════════════════
       BROWSE SECTION
    ══════════════════════════════════════════ */
    .mm-dl.dl-browse {
      padding: 96px 0;
      background: var(--white);
    }
    /* Card bodies stay white on every background. The row-style list panel
       (not a card) uses Mist 1 so it keeps an edge on the white section. */
    .mm-dl.dl-browse .dl-row-list { background: var(--mist-1); }
    /* Cards on a white section: thin border around the text portion only
       (sides + bottom, following the card's rounded corners) */
    .mm-dl.dl-browse .dl-card-body {
      border: 1px solid var(--mist-2);
      border-top: none;
      border-radius: 0 0 var(--radius-card) var(--radius-card);
    }
    .mm-dl.dl-browse .dl-row { border-bottom-color: var(--mist-3); }
    /* Orange on Mist 1 is under 4.5:1, so row titles here rest on Amber and turn Orange on hover */
    .mm-dl.dl-browse .dl-row-title { color: var(--amber); }
    .mm-dl.dl-browse .dl-row:hover .dl-row-title { color: var(--orange); }
    .mm-dl .section-header { margin-bottom: 32px; }
    .mm-dl .section-title { margin: 0 0 8px; }
    .mm-dl .section-desc {
      font-family: var(--font-body);
      font-size: 16px;
      color: var(--mist-6);
      line-height: 1.6;
    }

    /* Filter bar — sticks under the site header while browsing */
    .mm-dl .browse-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
      margin-bottom: 64px;
    }
    .mm-dl .topic-filters { display: flex; flex-wrap: wrap; gap: 8px; }
    .mm-dl .topic-pill-btn {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 12px;
      letter-spacing: 0.03em;
      color: var(--mist-6);
      background: var(--white);
      border: 1.5px solid var(--mist-2);
      border-radius: 999px;
      padding: 8px 16px;
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s, color 0.15s;
    }
    .mm-dl .topic-pill-btn:hover { border-color: var(--orange); color: var(--orange); }
    .mm-dl .topic-pill-btn.active { background: var(--amber); border-color: var(--amber); color: var(--white); }
    .mm-dl .dl-search {
      position: relative;
      flex-shrink: 0;
      width: 280px;
      max-width: 100%;
    }
    .mm-dl .dl-search input {
      width: 100%;
      padding: 11px 16px 11px 40px;
      border-radius: var(--radius-btn);
      border: 1.5px solid var(--mist-3);
      background: var(--white);
      font-family: var(--font-body);
      font-size: 15px;
      color: var(--ink);
      outline: none;
      transition: border-color 0.15s;
    }
    .mm-dl .dl-search input:focus { border-color: var(--orange); }
    .mm-dl .dl-search input::placeholder { color: var(--mist-5); }
    .mm-dl .dl-search svg {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      width: 16px;
      height: 16px;
      color: var(--mist-5);
      pointer-events: none;
    }
    .mm-dl .browse-empty {
      display: none;
      text-align: center;
      padding: 64px 24px;
      color: var(--mist-6);
      font-family: var(--font-body);
      font-size: 16px;
    }
    .mm-dl .browse-empty.show { display: block; }

    /* ── Resource-type groups ─────────────── */
    .mm-dl .dl-groups { display: flex; flex-direction: column; gap: 96px; }
    .mm-dl .dl-group { scroll-margin-top: 120px; }
    .mm-dl .dl-group.is-hidden { display: none; }
    .mm-dl .dl-group-head {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
    }
    .mm-dl .dl-group-icon {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      background: var(--seafoam);
      color: var(--orange);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .mm-dl .dl-group-icon svg { width: 20px; height: 20px; }
    /* H3 short label (card/feature-title role) */
    .mm-dl .dl-group-title {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 15px;
      line-height: 1.3;
      color: var(--amber);
    }

    /* ══════════════════════════════════════════
       CARD GRID + RESOURCE CARD — flat at rest, lift on hover
    ══════════════════════════════════════════ */
    .mm-dl .card-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .mm-dl .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .mm-dl .dl-card {
      background: var(--white);
      border: none;
      border-radius: var(--radius-card);
      overflow: hidden;
      box-shadow: none;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .mm-dl .dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
    .mm-dl .dl-card.is-hidden { display: none; }
    .mm-dl .dl-card-img {
      position: relative;
      aspect-ratio: 720 / 420;
      overflow: hidden;
      background: var(--mist-2);
    }
    .mm-dl .dl-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .mm-dl .dl-card-body {
      padding: 28px 24px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .mm-dl .dl-card-title {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 15px;
      line-height: 1.4;
      color: var(--orange);
      margin-bottom: 8px;
      transition: color 0.15s;
    }
    .mm-dl .dl-card:hover .dl-card-title { color: var(--amber); }
    .mm-dl .dl-card-excerpt {
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.6;
      color: var(--mist-6);
      flex: 1;
      margin-bottom: 16px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .mm-dl .dl-card-spacer { flex: 1; min-height: 8px; }
    .mm-dl .dl-card .link-arrow { align-self: flex-start; }
    .mm-dl .dl-card:hover .link-arrow { text-decoration: underline; }
    .mm-dl .dl-card:hover .link-arrow svg { transform: translateX(4px); }

    /* Report cards in the 4-up grid run a bit tighter */
    .mm-dl .card-grid-4 .dl-card-excerpt { -webkit-line-clamp: 4; }

    /* ══════════════════════════════════════════
       CGTV — condensed rows (series, numbered)
    ══════════════════════════════════════════ */
    .mm-dl .dl-row-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 48px;
      background: var(--white);
      border-radius: var(--radius-card);
      padding: 8px 24px;
    }
    .mm-dl .dl-row {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px 0;
      border-bottom: 1px solid var(--mist-2);
      text-decoration: none;
      color: inherit;
    }
    /* last row in each column drops its rule */
    .mm-dl .dl-row:nth-last-child(-n+2) { border-bottom: none; }
    .mm-dl .dl-row.is-hidden { display: none; }
    .mm-dl .dl-row-thumb {
      position: relative;
      width: 128px;
      aspect-ratio: 16 / 9;
      border-radius: var(--radius-sm);
      overflow: hidden;
      flex-shrink: 0;
      background: var(--mist-2);
    }
    .mm-dl .dl-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .mm-dl .dl-row-body { flex: 1; min-width: 0; }
    .mm-dl .dl-row-meta {
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 11px;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--mist-6);
      margin-bottom: 8px;
    }
    .mm-dl .dl-meta-ep-short { display: none; }
    .mm-dl .dl-row-title {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 15px;
      line-height: 1.35;
      color: var(--orange);
      transition: color 0.15s;
    }
    .mm-dl .dl-row:hover .dl-row-title { color: var(--amber); }
    .mm-dl .dl-row-arrow {
      flex-shrink: 0;
      display: inline-flex;
      color: var(--mist-5);
      transition: color 0.15s, transform 0.15s;
    }
    .mm-dl .dl-row-arrow svg { width: 16px; height: 16px; }
    .mm-dl .dl-row:hover .dl-row-arrow { color: var(--orange); transform: translateX(4px); }

    /* ══════════════════════════════════════════
       VIEW MORE (uses .btn .btn-outline-orange)
    ══════════════════════════════════════════ */
    .mm-dl .view-more-row { text-align: center; margin-top: 32px; }
    .mm-dl .series-more-row { margin-top: 24px; }
    .mm-dl .series-more-row[hidden] { display: none; }
    .mm-dl button.link-arrow { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; white-space: normal; }
    .mm-dl button.link-arrow:hover svg { transform: translateX(4px); }
    .mm-dl .btn-view-more svg { transition: transform 0.15s ease; }
    .mm-dl .btn-view-more:hover svg { transform: translateY(2px); }

    /* ══════════════════════════════════════════
       NEWSLETTER
    ══════════════════════════════════════════ */
    .mm-dl.newsletter-section {
      background: var(--amber);
      padding: 96px 0;
    }
    .mm-dl .newsletter-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 72px;
      align-items: center;
    }
    .mm-dl .newsletter-title { margin: 16px 0; }
    .mm-dl .newsletter-desc {
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.65;
      color: var(--white);
    }
    .mm-dl .newsletter-form { display: flex; flex-direction: column; gap: 16px; }
    .mm-dl .newsletter-input {
      padding: 14px 18px;
      border-radius: var(--radius-btn);
      border: 1.5px solid rgba(255,255,255,0.55);
      background: rgba(255,255,255,0.07);
      color: var(--white);
      font-family: var(--font-body);
      font-size: 16px;
      outline: none;
      transition: border-color 0.15s, background 0.15s;
    }
    .mm-dl .newsletter-input::placeholder { color: rgba(255,255,255,0.75); }
    .mm-dl .newsletter-input:focus { border-color: var(--white); background: rgba(255,255,255,0.10); }
    .mm-dl .newsletter-privacy {
      font-family: var(--font-body);
      font-size: 15px;
      color: var(--white);
      line-height: 1.5;
    }
    /* Orange fails contrast on Amber, so this inline link uses White */
    .mm-dl .newsletter-privacy .inline-link { color: var(--white); }
    .mm-dl .newsletter-privacy .inline-link:hover { color: var(--seafoam); }

    /* Big groups (18+): topic chips + "Load 12 more", built by the script */
    .mm-dl .dl-subfilters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
    .mm-dl .dl-subfilters[hidden], .mm-dl .load-more-row[hidden] { display: none; }
    .mm-dl .dl-subfilter {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 12px;
      letter-spacing: 0.03em;
      color: var(--mist-6);
      background: var(--white);
      border: 1.5px solid var(--mist-2);
      border-radius: 999px;
      padding: 8px 16px;
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s, color 0.15s;
    }
    .mm-dl .dl-subfilter:hover { border-color: var(--orange); color: var(--orange); }
    .mm-dl .dl-subfilter.active { background: var(--seafoam); border-color: var(--orange); color: var(--amber); }
    .mm-dl .load-more-row { text-align: center; margin-top: 32px; }
    .mm-dl .load-more-row .btn svg { transition: transform 0.15s ease; }
    .mm-dl .load-more-row .btn:hover svg { transform: translateY(2px); }
    .mm-dl .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
    }

    /* Filter/search show animation */
    .mm-dl .dl-card, .mm-dl .dl-row { animation: dlIn 0.22s ease; }
    @keyframes dlIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    /* ══════════════════════════════════════════
       SCROLL MOTION (enabled by the script block;
       content stays visible if JS doesn't run)
    ══════════════════════════════════════════ */
    .js-reveal .mm-dl [data-reveal] {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .js-reveal .mm-dl [data-reveal].is-revealed { opacity: 1; transform: none; }

    /* Image reveal: photos scale 1.05 → 1 as their section fades up */
    .js-reveal .mm-dl [data-reveal] .dl-card-img img,
    .js-reveal .mm-dl [data-reveal] .dl-row-thumb img {
      transform: scale(1.05);
      transition: transform 0.8s ease;
    }
    .js-reveal .mm-dl [data-reveal].is-revealed .dl-card-img img,
    .js-reveal .mm-dl [data-reveal].is-revealed .dl-row-thumb img { transform: scale(1); }

    /* Card grid reveal: cards fade up one after another */
    .js-reveal .mm-dl .card-grid:not(.is-revealed) > .dl-card { opacity: 0; }
    .js-reveal .mm-dl .card-grid.is-revealed > .dl-card { animation: dlReveal 0.5s ease backwards; }
    .js-reveal .mm-dl .card-grid.is-revealed > .dl-card:nth-child(2) { animation-delay: 0.1s; }
    .js-reveal .mm-dl .card-grid.is-revealed > .dl-card:nth-child(3) { animation-delay: 0.2s; }
    .js-reveal .mm-dl .card-grid.is-revealed > .dl-card:nth-child(4) { animation-delay: 0.3s; }
    .js-reveal .mm-dl .card-grid.is-revealed > .dl-card:nth-child(5) { animation-delay: 0.4s; }
    .js-reveal .mm-dl .card-grid.is-revealed > .dl-card:nth-child(6) { animation-delay: 0.5s; }
    @keyframes dlReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

    /* ══════════════════════════════════════════
       RESPONSIVE — 960px and 768px only
    ══════════════════════════════════════════ */
    @media (max-width: 960px) {
      .mm-dl .hero-grid { grid-template-columns: 1fr; gap: 48px; }
      .mm-dl .hero-right { justify-content: flex-start; }
      .mm-dl .card-grid,
      .mm-dl .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
      .mm-dl .dl-row-list { grid-template-columns: 1fr; }
      .mm-dl .dl-row:nth-last-child(2) { border-bottom: 1px solid var(--mist-3); }
      .mm-dl .newsletter-inner { grid-template-columns: 1fr; gap: 48px; }
    }
    @media (max-width: 768px) {
      .mm-dl .dl-container { padding: 0 20px; }
      .mm-dl .hero-title { font-size: 32px; }
      .mm-dl .section-title,
      .mm-dl .newsletter-title { font-size: 25px; }
      .mm-dl.dl-hero,
      .mm-dl.dl-browse,
      .mm-dl.newsletter-section { padding: 64px 0; }
      .mm-dl .card-grid,
      .mm-dl .card-grid-4 { grid-template-columns: 1fr; }
      .mm-dl .browse-controls { flex-direction: column; align-items: stretch; margin-bottom: 48px; }
      .mm-dl .dl-search { width: 100%; }
      .mm-dl .dl-groups { gap: 64px; }
      .mm-dl .dl-row-list { padding: 8px 16px; }
      .mm-dl .dl-row-thumb { width: 96px; }
      .mm-dl .dl-meta-season, .mm-dl .dl-meta-ep { display: none; }
      .mm-dl .dl-meta-ep-short { display: inline; }
      /* Mobile shows 3 cards per capped group until "View All" */
      .mm-dl.dl-browse:not(.is-filtering) .mobile-capped { display: none; }
    }


    /* Hero title: "Downloadable" on line one, "Resource Library" together on line two */
    .mm-dl .hero-title-line { display: block; }
    .mm-dl .hero-title-line + .hero-title-line { white-space: nowrap; }
    /* ══════════════════════════════════════════
       EXPLORE BY TOPIC (white): tabs + lead card + resource rows
       Same card + row styles as Browse Resources.
    ══════════════════════════════════════════ */
    .mm-dl.dl-topics { padding: 96px 0; background: var(--white); border-bottom: 1px solid var(--mist-2); }
    /* Cards on a white section: thin border around the text portion only (same as Browse Resources) */
    .mm-dl.dl-topics .dl-card-body { border: 1px solid var(--mist-2); border-top: none; border-radius: 0 0 var(--radius-card) var(--radius-card); }
    .mm-dl.dl-topics .section-header { margin-bottom: 32px; }
    .mm-dl .dl-tabs { display: none; border-bottom: 1px solid var(--mist-3); margin-bottom: 48px; }
    .mm-dl.dl-topics.js-tabs .dl-tabs { display: flex; }
    .mm-dl .dl-tab {
      display: inline-flex; align-items: center; gap: 8px; padding: 16px 24px; margin-bottom: -1px; background: none; border: 0;
      border-bottom: 3px solid transparent; font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--mist-6);
      cursor: pointer; white-space: nowrap; transition: color 0.15s, border-color 0.15s;
    }
    .mm-dl .dl-tab svg { width: 20px; height: 20px; flex-shrink: 0; }
    .mm-dl .dl-tab:hover { color: var(--orange); }
    .mm-dl .dl-tab.is-active { color: var(--amber); border-bottom-color: var(--orange); }
    .mm-dl .dl-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
    .mm-dl .dl-panel:not(:first-child) { margin-top: 64px; }
    .mm-dl.dl-topics.js-tabs .dl-panel:not(:first-child) { margin-top: 0; }
    .mm-dl .dl-panel[hidden] { display: none; }
    .mm-dl .dl-topic-rows { display: flex; flex-direction: column; }
    .mm-dl.dl-topics .dl-row { padding: 16px 0; border-bottom: 1px solid var(--mist-3); }
    .mm-dl.dl-topics .dl-row:first-child { padding-top: 0; }
    .mm-dl.dl-topics .dl-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--mist-3); }
    .mm-dl.dl-topics .dl-row-title { margin: 0; text-wrap: balance; }
    .mm-dl .dl-panel-all { margin-top: 24px; }
    @media (max-width: 960px) {
      .mm-dl .dl-tabs { overflow-x: auto; scrollbar-width: thin; }
      .mm-dl .dl-tab { padding: 16px; }
      .mm-dl .dl-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
      /* tablet: the lead card lays out sideways so the image doesn't fill the whole width */
      .mm-dl .dl-panel > .dl-card { flex-direction: row; }
      .mm-dl .dl-panel > .dl-card .dl-card-img { flex: 0 0 50%; aspect-ratio: auto; min-height: 260px; }
      .mm-dl .dl-panel > .dl-card .dl-card-body { justify-content: center; }
      .mm-dl.dl-topics .dl-panel > .dl-card .dl-card-body { border: 1px solid var(--mist-2); border-left: none; border-radius: 0 var(--radius-card) var(--radius-card) 0; }
    }
    @media (max-width: 768px) {
      .mm-dl.dl-topics { padding: 64px 0; }
      .mm-dl .dl-tabs { margin-bottom: 32px; }
      .mm-dl .dl-panel > .dl-card { flex-direction: column; }
      .mm-dl .dl-panel > .dl-card .dl-card-img { flex: none; aspect-ratio: 720 / 420; min-height: 0; }
      .mm-dl.dl-topics .dl-panel > .dl-card .dl-card-body { border: 1px solid var(--mist-2); border-top: none; border-radius: 0 0 var(--radius-card) var(--radius-card); }
      .mm-dl.dl-topics .dl-row-thumb { width: 96px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .mm-dl .dl-row:hover .dl-row-arrow { transform: none; }
    }

    /* ── Reduced motion: every animation off ── */
    @media (prefers-reduced-motion: reduce) {
      .mm-dl *, .mm-dl *::before, .mm-dl *::after {
        animation: none !important;
        transition: none !important;
      }
      .js-reveal .mm-dl [data-reveal],
      .js-reveal .mm-dl .card-grid > .dl-card { opacity: 1 !important; transform: none !important; }
      .js-reveal .mm-dl [data-reveal] .dl-card-img img,
      .js-reveal .mm-dl [data-reveal] .dl-row-thumb img { transform: none !important; }
      .mm-dl .dl-card:hover { transform: none; }
      .mm-dl .link-arrow:hover svg,
      .mm-dl .dl-card:hover .link-arrow svg,
      .mm-dl .dl-row:hover .dl-row-arrow,
      .mm-dl .btn-view-more:hover svg,
      .mm-dl .load-more-row .btn:hover svg { transform: none; }
    }
    

/* ════════ SINGLE DOWNLOADABLE (.mm-dlp) ════════ */


/* Full-width section (the classic theme constrains content, so the section breaks out itself) */
.mm-dlp {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  font-family: var(--font-body); color: var(--ink); -webkit-font-smoothing: antialiased;
  background: var(--white);
  padding: 48px 0 48px;
}
:where(.mm-dlp) a { color: inherit; }
.mm-dlp .mm-dlp-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.mm-dlp [hidden] { display: none !important; }
.mm-dlp :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ── Breadcrumb ── */
.mm-dlp .mm-dlp-crumbs { font: 400 14px/1.4 var(--font-body); margin-bottom: 32px; }
.mm-dlp .mm-dlp-crumbs ol { list-style: none; display: flex; align-items: center; gap: 8px; }
.mm-dlp .mm-dlp-crumbs li { min-width: 0; }
.mm-dlp .mm-dlp-crumbs li + li::before { content: "/"; color: var(--mist-5); margin-right: 8px; }
.mm-dlp .mm-dlp-crumbs li:not([aria-current]) { flex-shrink: 0; display: flex; }
.mm-dlp .mm-dlp-crumbs li[aria-current] { display: flex; color: var(--mist-6); }
.mm-dlp .mm-dlp-crumbs li[aria-current] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mm-dlp .mm-dlp-crumbs a { color: var(--orange); text-decoration: underline; text-underline-offset: 0.15em; }
.mm-dlp .mm-dlp-crumbs a:hover { color: var(--amber); }

/* ── Two columns: text left, form right ── */
.mm-dlp .mm-dlp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: start; }

/* Title + date */
.mm-dlp .mm-dlp-title {
  font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--navy); margin: 0 0 16px; text-wrap: balance;
}
.mm-dlp .mm-dlp-date { display: block; font: 400 14px/1.4 var(--font-body); letter-spacing: 0.01em; color: var(--mist-6); }
.mm-dlp .mm-dlp-date::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--gold); margin: 32px 0 32px; }

/* Description (the_content): anything an editor can write renders cleanly */
.mm-dlp .mm-dlp-desc { font: 400 18px/1.7 var(--font-body); color: var(--mist-6); max-width: 620px; }
.mm-dlp .mm-dlp-desc > * { margin-bottom: 24px; }
.mm-dlp .mm-dlp-desc > :last-child { margin-bottom: 0; }
.mm-dlp .mm-dlp-desc p { text-wrap: pretty; }
.mm-dlp .mm-dlp-desc a { color: var(--orange); text-decoration: underline; text-underline-offset: 0.15em; transition: color 0.15s ease; }
.mm-dlp .mm-dlp-desc a:hover { color: var(--amber); }
.mm-dlp .mm-dlp-desc :is(strong, b) { font-weight: 700; color: inherit; }
.mm-dlp .mm-dlp-desc :is(ul, ol) { padding-left: 24px; }
.mm-dlp .mm-dlp-desc li { margin-bottom: 8px; padding-left: 4px; text-wrap: pretty; }
.mm-dlp .mm-dlp-desc ul li::marker { color: var(--orange); }
.mm-dlp .mm-dlp-desc ol li::marker { color: var(--orange); font-weight: 700; }
.mm-dlp .mm-dlp-desc :is(h2, h3, h4, h5, h6) { font-family: var(--font-heading); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--navy); letter-spacing: normal; text-wrap: balance; margin-top: 32px; }
.mm-dlp .mm-dlp-desc > :first-child { margin-top: 0; }
.mm-dlp .mm-dlp-desc img { max-width: 100%; height: auto; border-radius: var(--radius-card); display: block; }
.mm-dlp .mm-dlp-desc hr { border: 0; border-top: 1px solid var(--mist-3); }
/* The existing "Complete the form below to download..." line closes the description.
   The form card has its own heading, so a closing heading is hidden. */
.mm-dlp .mm-dlp-desc > :is(h2, h3, h4, h5, h6):last-child { display: none; }
.mm-dlp .mm-dlp-desc > :nth-last-child(2):not(:is(h2, h3, h4, h5, h6)):has(+ :is(h2, h3, h4, h5, h6):last-child) { margin-bottom: 0; }

/* ── Form card ── */
.mm-dlp .mm-dlp-card { background: var(--white); border: 1px solid var(--mist-2); border-radius: var(--radius-card); padding: 32px; }
.mm-dlp .mm-dlp-card-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.mm-dlp .mm-dlp-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--orange); }
.mm-dlp .mm-dlp-cover { width: 100%; aspect-ratio: 720 / 420; border-radius: var(--radius-btn); overflow: hidden; background: var(--mist-2); }
.mm-dlp .mm-dlp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The form. These selectors match what HubSpot generates (.hs-form, .hs-form-field, .hs-input, .hs-button, .hs-error-msgs),
   so the live embed and this mockup look the same. */
.mm-dlp .hs-form { display: flex; flex-direction: column; gap: 16px; }
.mm-dlp .hs-form fieldset { border: 0; max-width: none !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mm-dlp .hs-form fieldset.form-columns-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mm-dlp .hs-form fieldset .hs-form-field { width: 100% !important; float: none !important; }
.mm-dlp .hs-form fieldset .input { margin: 0 !important; }
.mm-dlp .hs-form-field > label { display: block; font: 700 14px/1.4 var(--font-body); color: var(--ink); margin-bottom: 8px; }
.mm-dlp .hs-form-field > label .hs-form-required { color: var(--ink); margin-left: 2px; }
.mm-dlp .hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important; height: 48px; padding: 8px 16px; border-radius: var(--radius-btn); border: 1.5px solid var(--mist-5);
  background: var(--white); font: 400 16px/1.4 var(--font-body); color: var(--ink); transition: border-color 0.15s; box-shadow: none;
}
.mm-dlp .hs-input::placeholder { color: var(--mist-5); }
.mm-dlp .hs-input:focus { border-color: var(--orange); outline: 2px solid var(--orange); outline-offset: 0; }
.mm-dlp .hs-input.invalid.error { border: 2px solid var(--navy); padding: 7.5px 15.5px; }
.mm-dlp .hs-error-msgs { list-style: none; margin-top: 8px; }
.mm-dlp .hs-error-msgs label { display: flex; align-items: flex-start; gap: 8px; font: 700 13px/1.4 var(--font-body); color: var(--navy); }
.mm-dlp .hs-error-msgs label::before {
  content: "!"; flex: 0 0 16px; height: 16px; border-radius: 50%; background: var(--navy); color: var(--white);
  font: 700 11px/16px var(--font-body); text-align: center; margin-top: 1px;
}
.mm-dlp .hs-submit { margin-top: 8px; }
.mm-dlp .hs-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 30px; border-radius: var(--radius-btn);
  border: 1.5px solid var(--orange); background: var(--orange); color: var(--white); font: 700 16px/1.2 var(--font-body); letter-spacing: normal;
  cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.mm-dlp .hs-button:hover { background: var(--amber); border-color: var(--amber); }
.mm-dlp .hs-button svg { width: 16px; height: 16px; flex-shrink: 0; }
.mm-dlp .mm-dlp-privacy { font: 400 14px/1.5 var(--font-body); color: var(--mist-6); margin-top: 16px; }
.mm-dlp .mm-dlp-privacy a { color: var(--orange); text-decoration: underline; text-underline-offset: 0.15em; }
.mm-dlp .mm-dlp-privacy a:hover { color: var(--amber); }

/* After submitting (HubSpot's inline thank-you message uses .submitted-message) */
.mm-dlp .submitted-message { font: 400 16px/1.6 var(--font-body); color: var(--mist-6); }
.mm-dlp .submitted-message strong { display: block; font: 700 18px/1.3 var(--font-heading); color: var(--navy); margin-bottom: 8px; }
.mm-dlp .submitted-message .hs-button { width: auto; margin-top: 24px; text-decoration: none; }


/* ── More to explore: a quiet row of links at the bottom of the page ── */
.mm-dlp.mm-dlp-more { padding: 48px 0 96px; border-top: 1px solid var(--mist-2); }
.mm-dlp .mm-dlp-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.mm-dlp .mm-dlp-more-col { display: flex; flex-direction: column; align-items: flex-start; }
.mm-dlp .mm-dlp-more-col h3 { font-family: var(--font-heading); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--orange); margin-bottom: 24px; }
.mm-dlp .mm-dlp-more-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; flex: 1; width: 100%; }
.mm-dlp .mm-dlp-mini { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; }
.mm-dlp .mm-dlp-mini-thumb { position: relative; flex: 0 0 64px; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--mist-2); }
.mm-dlp .mm-dlp-mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-dlp .mm-dlp-mini-body { min-width: 0; }
.mm-dlp .mm-dlp-mini-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--orange); margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; transition: color 0.15s;
}
.mm-dlp .mm-dlp-mini:hover .mm-dlp-mini-title { color: var(--amber); }
.mm-dlp .mm-dlp-mini-meta { font: 400 13px/1.4 var(--font-body); color: var(--mist-5); }
.mm-dlp.mm-dlp-more .link-arrow { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--orange); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mm-dlp.mm-dlp-more .link-arrow svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.15s ease; }
.mm-dlp.mm-dlp-more .link-arrow:hover { text-decoration: underline; }
.mm-dlp.mm-dlp-more .link-arrow:hover svg { transform: translateX(4px); }
.mm-dlp .mm-dlp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Motion (content stays visible if the script doesn't run) */
.js-reveal .mm-dlp [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .mm-dlp [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ── Responsive: 960px and 768px only ── */
@media (max-width: 960px) {
  .mm-dlp .mm-dlp-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mm-dlp .mm-dlp-desc { max-width: none; }
  .mm-dlp .mm-dlp-more-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 768px) {
  .mm-dlp { padding: 32px 0 32px; }
  .mm-dlp.mm-dlp-more { padding: 32px 0 64px; }
  .mm-dlp .mm-dlp-container { padding: 0 20px; }
  .mm-dlp .mm-dlp-crumbs { margin-bottom: 24px; }
  .mm-dlp .mm-dlp-title { font-size: 32px; }
  .mm-dlp .mm-dlp-card { padding: 24px; }
  .mm-dlp .hs-form fieldset.form-columns-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .mm-dlp *, .mm-dlp *::before, .mm-dlp *::after { animation: none !important; transition: none !important; }
  .mm-dlp.mm-dlp-more .link-arrow:hover svg { transform: none; }
  .js-reveal .mm-dlp [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ════════ ADDED FOR WORDPRESS ════════ */
/* Placeholder when a resource has no featured image */
.mm-dl .dl-img-empty, .mm-dlp .dl-img-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 100%;
  background: var(--seafoam); color: var(--orange);
}
.mm-dl .dl-card-img .dl-img-empty { position: absolute; inset: 0; }
.mm-dl .dl-img-empty svg { width: 40px; height: 40px; }
.mm-dl .dl-row-thumb .dl-img-empty svg, .mm-dlp .dl-img-empty svg { width: 24px; height: 24px; }
/* "View All" for groups that only overflow on phones */
@media (min-width: 769px) { .mm-dl .view-more-row.view-more-mobile { display: none; } }
/* Visible only to logged-in editors when a setting is missing */
.mm-rl-editor-note {
  display: block; padding: 16px; border: 1.5px dashed currentColor; border-radius: var(--radius-btn);
  font: 400 14px/1.5 var(--font-body);
}


/* ════════ IMPLEMENTATION FIXES (1.1.1) ════════ */
/* Every preview image is a rectangle (720 × 420), never a square */
.mm-dlp .mm-dlp-mini-thumb { flex: 0 0 104px; width: 104px; height: auto; aspect-ratio: 720 / 420; }
@media (max-width: 960px) {
  .mm-dl .dl-panel > .dl-card .dl-card-img { aspect-ratio: 720 / 420; min-height: 0; align-self: center; }
}
/* Pages end flush with the site footer. The theme adds a 4rem gap above .mm-footer, which shows the page background as a band. */
body:has(.mm-dl, .mm-dlp, .mm-bh-full, .mm-blog, .mm-wb, .mm-wbp) .mm-footer { margin-top: 0 !important; }
body:has(.mm-dl, .mm-dlp, .mm-bh-full, .mm-blog, .mm-wb, .mm-wbp) :is(#mm-main, .mm-main) { padding-bottom: 0 !important; margin-bottom: 0 !important; }


/* ════════ 1.1.4 ════════ */
/* Browse All Resources: search only (no type buttons); a single group needs no heading */
.mm-dl .browse-controls { justify-content: flex-start; }
.mm-dl .dl-group-head[hidden] { display: none !important; }
/* Downloadable forms: one layout whatever the HubSpot form's column setting.
   Short fields two per row; question boxes, checkboxes, text blocks and the button take a full row. */
.mm-dlp #mm-dlp-form .hs-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mm-dlp #mm-dlp-form .hs-form fieldset { display: contents; }
.mm-dlp #mm-dlp-form .hs-form .hs-form-field:not(.hs-recaptcha) { width: 100% !important; float: none !important; margin: 0 !important; min-width: 0; }
.mm-dlp #mm-dlp-form .hs-form :is(.hs-form-field:has(textarea), .hs-fieldtype-textarea, .hs-form-field:has(.inputs-list), .hs-richtext, .legal-consent-container, .hs_error_rollup, .hs-submit, .hs-dependent-field) { grid-column: 1 / -1; }
.mm-dlp #mm-dlp-form .hs-form textarea { width: 100% !important; min-height: 112px; resize: vertical; }
@media (max-width: 480px) {
  .mm-dlp #mm-dlp-form .hs-form { grid-template-columns: minmax(0, 1fr); }
}

/* ════════ 1.1.4 SHARED: forms ════════ */
/* reCAPTCHA: the badge is hidden (it keeps working) and Google's required notice sits under the privacy line instead */
:is(.mm-dl, .mm-dlp, .mm-bh-full, .mm-blog, .mm-wb, .mm-wbp) .hs-recaptcha {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
  margin: 0 !important; padding: 0 !important; clip-path: inset(50%); white-space: nowrap;
}
body:has(.mm-dl, .mm-dlp, .mm-bh-full, .mm-blog, .mm-wb, .mm-wbp) .grecaptcha-badge { visibility: hidden !important; }
.mm-recaptcha-note { display: block; margin-top: 6px; font-size: 12px !important; line-height: 1.5; font-weight: 400; letter-spacing: normal; text-transform: none; }
.mm-recaptcha-note a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.mm-recaptcha-note a:hover { opacity: 0.85; }
/* Form buttons: same case on every form (HubSpot / the theme may set all caps) */
:is(.mm-dl, .mm-dlp, .mm-bh-full, .mm-blog, .mm-wb, .mm-wbp) .hs-form :is(.hs-button, input[type="submit"]) { text-transform: none !important; letter-spacing: normal !important; }
