.footer-2.lets-start-2.footer3 {
  overflow: visible;
}

.navbar.w-nav a,
.navbar.w-nav .nav-link,
.footer-2.lets-start-2.footer3 a,
.footer-2.lets-start-2.footer3 .social-media,
.footer-2.lets-start-2.footer3 .footer-text a {
  color: #fff !important;
}

/* Ethics / Privacy / Terms are grey on live (#878686), not white — the blanket
   footer-anchor white above must not catch them. Visited pinned for Safari. */
.footer-2.lets-start-2.footer3 .link-2,
.footer-2.lets-start-2.footer3 .terms-link,
.footer-2.lets-start-2.footer3 .link-2:visited,
.footer-2.lets-start-2.footer3 .terms-link:visited {
  color: #878686 !important;
}

/* About image deck: layout comes from the Webflow CSS (including hiding
   .img-lt/.img-rt on mobile) — no layout overrides. One repair is needed:
   live's HTML is minified but our export file is prettified, and the
   whitespace between the inline-block .img-lt/.img-rt tiles (two exact-50%
   columns) renders as a space, overflows the column, and wraps the tiles
   into a stack. font-size:0 makes that whitespace zero-width. */
.img-middler {
  font-size: 0;
}

.footer-2.lets-start-2.footer3 .div-block-104 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  column-gap: 24px !important;
  align-items: center !important;
  width: 100% !important;
}

.footer-2.lets-start-2.footer3 .text-block-3 {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Desktop-only: the legal line sits in the one-row grid. Below 992px the Webflow
   breakpoint sizes (1.8vw / 3vw / 4vw) must win, or the line renders at ~3px. */
@media (min-width: 992px) {
  .footer-2.lets-start-2.footer3 .text-block-3 {
    white-space: nowrap !important;
    font-size: 0.9vw !important;
    line-height: 1.4vw !important;
  }
}

.footer-2.lets-start-2.footer3 .div-block-163 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  white-space: nowrap !important;
  justify-self: end !important;
  width: auto !important;
  flex-wrap: nowrap !important;
}

.footer-2.lets-start-2.footer3 .link-2,
.footer-2.lets-start-2.footer3 .terms-link {
  width: auto !important;
  display: inline !important;
  margin: 0;
  padding: 0;
  line-height: 1.5vw;
}

.mof-project-archive-heading {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 26px;
  color: #fff;
  line-height: 1;
}

.mof-project-archive-heading__our {
  font-family: ProximaNova, sans-serif;
  font-size: clamp(34px, 5.8vw, 50px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.mof-project-archive-heading__work {
  font-family: Ghojekan, sans-serif;
  font-size: clamp(42px, 6.5vw, 58px);
  font-weight: 400;
  transform: rotate(-5deg) translateY(1px);
  transform-origin: left bottom;
}

.mof-project-grid__items {
  display: grid !important;
  align-items: start !important;
  gap: 34px 14px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.mof-project-card {
  width: 100% !important;
}

.mof-project-card__image-link {
  display: block !important;
  background: #171717;
  overflow: hidden;
  aspect-ratio: var(--mof-card-ratio, 1 / 1);
}

.mof-project-card__image-link--static {
  cursor: default;
}

.mof-project-card__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.mof-project-card__meta {
  padding-top: 7px;
}

.mof-project-card__title {
  color: #fff;
  font-family: ProximaNova, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Per-page Webflow body classes (e.g. .body-5 on services = #000) must win;
   ministry-of-fish.webflow.css already provides the #0e0e0e default. */

/* Finsweet cookie consent: the export markup already ships the components with
   inline display:none and fs-cc.js reveals them via inline styles — do not hide
   them with !important here, or the banner can never appear (fs-cc never sets
   any [fs-cc-active] attribute; that mechanism was a misunderstanding). */

/* Remove third-party accessibility floating button from the exported chrome */
.pojo-a11y-toolbar-toggle,
.ea11y-widget,
.ea11y-widget-toggle,
[data-ea11y-widget] {
  display: none !important;
}

@media (max-width: 991px) {
  /* The About image deck keeps its three-column strip at every width on live —
     no stacked full-width images below 991px (that made half/mobile pages
     thousands of px taller than live). The base rules above apply throughout. */

  .footer-2.lets-start-2.footer3 .div-block-104 {
    grid-template-columns: 1fr !important;
    row-gap: 8px !important;
  }

  .mof-project-archive-heading {
    margin-bottom: 22px;
  }

  .mof-project-archive-heading__our {
    font-size: 56px;
  }

  .mof-project-archive-heading__work {
    font-size: 64px;
  }

  .mof-project-grid__items {
    gap: 28px 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mof-project-card__title {
    font-size: 8px;
  }

  .footer-2.lets-start-2.footer3 .div-block-163 {
    position: static !important;
    width: 100% !important;
  }

  .footer-2.lets-start-2.footer3 .link-2,
  .footer-2.lets-start-2.footer3 .terms-link {
    line-height: 14px;
  }
}

/* Author-origin link color beats UA :visited purple; any classed link still wins by specificity. */
a {
  color: inherit;
}

/* The theme ships its own mobile nav (wave-wipe overlay) — hide the Webflow export burger/menu. */
.w-nav-button,
.menu-button {
  display: none !important;
}

/* Visited links must never render UA purple — force white (dark theme).
   Excluded: button pills and light-background cards that use dark text. */
a:visited:not(.w-button):not(.team_card):not(.mof-link):not(.mof-link--cta) {
  color: #fff;
}

/* Safari can paint :visited links purple even when the class sets a color —
   pin every button state explicitly (normal mirrors the class, hover preserved). */
.button2:visited,
.button2-copy:visited,
.button-read-blog:visited,
.submit-button:visited {
  color: #fff;
}

.button2:visited:hover,
.button2-copy:visited:hover,
.button-read-blog:visited:hover {
  color: #000;
}

.fs-cc-banner_button:visited,
.fs-cc-prefs_button.fs-cc-button-alt:visited {
  color: #0e0e0e;
}

.fs-cc-banner_button.fs-cc-button-alt:visited,
.fs-cc-prefs_button:visited {
  color: #fff;
}

/* The fixed mobile navbar overlays the top of the legal pages and swallowed the
   page title (live shows only the second line of "Terms and Conditions";
   staging showed nothing). Push the title clear of the nav on small screens. */
@media (max-width: 991px) {
  h1.term {
    margin-top: 70px;
  }
}

/* Blog cards: top-align the title/excerpt block (live bottom-anchors it with
   justify-content:flex-end, so shorter titles start lower than their row
   neighbours and long excerpts slide down behind the READ button - deliberate
   improvement over live). */
.div-block-180 {
  justify-content: flex-start !important;
}

/* Blog text: long words and URLs wrap instead of pushing off the page
   (overflow-wrap inherits to all descendants). */
.blog-type-1,
.div-block-180 {
  overflow-wrap: break-word;
}

/* White-background blog content: the sitewide visited-white safeguard above
   makes visited links INVISIBLE here (reported: a techtarget link rendering
   white "on some computers" - the ones that had visited it). Higher
   specificity than the safeguard, declared after it, so it wins. */
.blog-type-1 a:visited:not(.w-button):not(.team_card):not(.mof-link):not(.mof-link--cta),
.div-block-179 a:visited:not(.w-button):not(.team_card):not(.mof-link):not(.mof-link--cta) {
  color: inherit;
}
