/* MASTR V7 — one frame, one sticky header, fail-open content and a low-GPU mobile mode. */
:root {
  --mastr-frame: 1500px;
  --mastr-bg: #041307;
  --mastr-panel: #071d0c;
  --mastr-panel-2: #0a2911;
  --mastr-green: #39ff14;
  --mastr-lime: #b7ff31;
  --mastr-text: #f2fff4;
  --mastr-muted: #9fb6a4;
  --mastr-line: rgba(57, 255, 20, 0.25);
}

html {
  scrollbar-gutter: stable;
  scroll-padding-top: 96px;
  background: var(--mastr-bg);
}

[id] {
  scroll-margin-top: 96px;
}

body {
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 7%, rgba(57, 255, 20, 0.13), transparent 32rem),
    linear-gradient(145deg, #071d0c, var(--mastr-bg) 58%, #08230e);
  color: var(--mastr-text);
}

.site-shell,
.token-page,
.projects-page,
.legal-page,
.shell {
  width: min(calc(100% - 32px), var(--mastr-frame)) !important;
  max-width: var(--mastr-frame) !important;
  margin-inline: auto !important;
  overflow: visible !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* Content must never depend on React hydration or IntersectionObserver. */
[data-reveal],
[data-reveal].is-visible,
.reveal-first,
.reveal-second,
.reveal-third,
.reveal-fourth {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Shared navigation used by every real page. */
.mastr-unified-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  inset-inline: auto;
  z-index: 1000;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  width: 100%;
  min-height: 80px;
  margin: 0;
  padding: 0 18px 0 20px;
  transform: none;
  border: 1px solid var(--mastr-line);
  border-top-color: rgba(57, 255, 20, 0.4);
  background: linear-gradient(110deg, rgba(5, 30, 11, 0.98), rgba(4, 19, 7, 0.98));
  box-shadow: inset 0 -1px rgba(57, 255, 20, 0.07);
}

.mastr-unified-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: 0;
  color: var(--mastr-text);
  font-family: Orbitron, Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.17em;
  white-space: nowrap;
}

.mastr-unified-brand img {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
  border-radius: 11px;
}

/* Exact MASTR wordmark from the supplied brand artwork. */
.mastr-unified-brand > span {
  display: block;
  flex: none;
  width: 150px;
  height: 28px;
  overflow: hidden;
  background: url('/brand/mastr-wordmark.png?v=7-final') left center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.site-shell h1,
.site-shell h2,
.token-page h1,
.token-page h2,
.projects-page h1,
.projects-page h2,
.legal-page h1,
.legal-page h2,
.shell h1,
.shell h2 {
  font-family: Orbitron, Rajdhani, Arial, sans-serif !important;
  font-weight: 900 !important;
}

.site-shell h3,
.token-page h3,
.projects-page h3,
.legal-page h3,
.shell h3 {
  font-family: Orbitron, Rajdhani, Arial, sans-serif !important;
  font-weight: 700 !important;
}

/* Static blockchain field: depth without animated, blurred or fixed GPU layers. */
.hero,
.token-hero,
.projects-hero,
.shell > .hero {
  background-image:
    linear-gradient(110deg, rgba(5, 31, 11, 0.91), rgba(3, 17, 7, 0.78)),
    url('/brand/mastr-network-field.webp?v=7-final') !important;
  background-position: center, left center !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

.intelligence-section,
.services-section,
.token-status-section,
.registry-page-section {
  background-image:
    linear-gradient(115deg, rgba(7, 35, 13, 0.97), rgba(4, 19, 7, 0.88)),
    url('/brand/mastr-network-field.webp?v=7-final') !important;
  background-position: center, right center !important;
  background-size: cover, min(920px, 78vw) auto !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

.mastr-unified-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.45vw, 24px);
  min-width: 0;
  color: #b6cbb9;
  font-family: Orbitron, Rajdhani, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.mastr-unified-nav a {
  position: relative;
  padding: 28px 0 25px;
}

.mastr-unified-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 1px;
  background: var(--mastr-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.mastr-unified-nav a:hover,
.mastr-unified-nav a:focus-visible,
.mastr-unified-nav a[aria-current="page"] {
  color: var(--mastr-green);
}

.mastr-unified-nav a:hover::after,
.mastr-unified-nav a:focus-visible::after,
.mastr-unified-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.mastr-unified-nav .mastr-x-link {
  color: var(--mastr-lime);
}

.mastr-unified-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(57, 255, 20, 0.55);
  background: rgba(57, 255, 20, 0.06);
  color: var(--mastr-text);
  font-family: Orbitron, Arial, sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mastr-unified-cta:hover,
.mastr-unified-cta:focus-visible {
  background: var(--mastr-green);
  color: #031007;
}

.mastr-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(57, 255, 20, 0.48);
  background: #061b0b;
  color: var(--mastr-green);
  cursor: pointer;
}

.mastr-menu-toggle span {
  display: block;
  width: 19px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transform-origin: center;
}

.mastr-menu-toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.mastr-menu-toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mastr-unified-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(420px, 1fr);
  gap: 48px;
  width: 100%;
  padding: 48px 34px 24px;
  border: 1px solid var(--mastr-line);
  border-top-color: rgba(57, 255, 20, 0.42);
  background: linear-gradient(125deg, #061d0b, #041307 64%, #08240e);
}

.mastr-unified-footer-brand p {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--mastr-muted);
  font-size: 15px;
}

.mastr-unified-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.mastr-unified-footer-links div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.mastr-unified-footer-links span {
  margin-bottom: 5px;
  color: var(--mastr-green);
  font-family: Orbitron, Arial, sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mastr-unified-footer-links a {
  color: #acc2b0;
  font-size: 13px;
  font-weight: 700;
}

.mastr-unified-footer-links a:hover,
.mastr-unified-footer-links a:focus-visible {
  color: var(--mastr-lime);
}

.mastr-unified-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(57, 255, 20, 0.17);
  color: #78917d;
  font-size: 11px;
}

.mastr-unified-footer-bottom p {
  max-width: 720px;
  margin: 0;
  text-align: right;
}

/* Standardise top-level spacing and typography across the separate templates. */
.token-page > .token-hero,
.projects-page > .projects-hero,
.legal-document,
.shell > .hero {
  border-top: 0 !important;
}

.button,
.mastr-unified-cta,
.store-button,
.registry-link,
.project-action {
  border-radius: 0 !important;
}

/* Keep the deliberate card interactions on hover-capable devices. These are
   short, user-triggered transitions—not continuously running animations. */
@media (hover: hover) and (pointer: fine) {
  .product-card,
  .official-app-card,
  .utility-map article,
  .verified-grid article,
  .registry-grid-page article,
  .coming-soon {
    transition:
      transform 220ms ease,
      border-color 220ms ease,
      background-color 220ms ease,
      box-shadow 220ms ease !important;
  }

  .product-card:hover,
  .product-card:focus-within,
  .official-app-card:hover,
  .official-app-card:focus-within,
  .utility-map article:hover,
  .utility-map article:focus-within,
  .verified-grid article:hover,
  .verified-grid article:focus-within,
  .registry-grid-page article:hover,
  .registry-grid-page article:focus-within,
  .coming-soon:hover,
  .coming-soon:focus-within {
    z-index: 2;
    border-color: rgba(183, 255, 49, 0.78) !important;
    background-color: rgba(18, 78, 28, 0.96) !important;
    transform: translateY(-7px) perspective(900px) rotateX(1deg) !important;
    box-shadow:
      0 28px 72px rgba(57, 255, 20, 0.17),
      inset 0 1px rgba(214, 255, 116, 0.2) !important;
  }
}

@media (max-width: 1180px) {
  .mastr-unified-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 72px;
  }

  .mastr-unified-brand img {
    width: 40px;
    height: 40px;
  }

  .mastr-menu-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .mastr-unified-cta {
    display: none;
  }

  .mastr-unified-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -1px;
    left: -1px;
    z-index: 120;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-height: calc(100vh - 82px);
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(57, 255, 20, 0.42);
    background: #041307;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    white-space: normal;
  }

  .mastr-unified-nav.is-open {
    display: grid;
  }

  .mastr-unified-nav a {
    min-width: 0;
    padding: 17px 18px;
    border-right: 1px solid rgba(57, 255, 20, 0.17);
    border-bottom: 1px solid rgba(57, 255, 20, 0.17);
  }

  .mastr-unified-nav a::after {
    display: none;
  }
}

@media (max-width: 820px) {
  html {
    scrollbar-gutter: auto;
    scroll-padding-top: 84px;
    background: var(--mastr-bg);
  }

  [id] {
    scroll-margin-top: 84px;
  }

  body {
    max-width: 100%;
    overflow-x: clip;
    background: linear-gradient(145deg, #071a0a, #041307 62%, #08220d) !important;
    background-attachment: scroll !important;
  }

  .site-shell,
  .token-page,
  .projects-page,
  .legal-page,
  .shell {
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal].is-visible,
  .reveal-first,
  .reveal-second,
  .reveal-third,
  .reveal-fourth {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .site-shell::before,
  .site-shell::after,
  .section::before,
  .apps-section::before,
  .services-section::before,
  .research-section::before,
  .hero::after,
  .hero-orbit,
  .scan-beam,
  .chain-rail,
  .shield-stage::before,
  .agent-stage::before,
  .logo-stage::before,
  .main-account-band::before,
  .impact-highlights::before,
  .impact-network,
  .token-launch-section::before,
  .token-launch-signal,
  .token-backdrop,
  .token-core::before,
  .token-core-ring,
  .projects-aurora,
  .registry-card-glow,
  .exposure-visual::before,
  .about-logo-wrap::before,
  .about-logo-wrap::after,
  .support-grid {
    display: none !important;
  }

  .mastr-unified-header {
    min-height: 72px;
    padding: 0 12px 0 14px;
    border-color: rgba(57, 255, 20, 0.5);
    background: #05170a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  }

  .mastr-unified-brand {
    gap: 10px;
    min-height: 48px;
    max-width: 100%;
    overflow: visible;
    font-size: 19px;
    letter-spacing: 0.14em;
  }

  .mastr-unified-brand > span {
    width: 138px;
    height: 26px;
  }

  .mastr-unified-brand img {
    width: 40px;
    height: 40px;
  }

  .mastr-menu-toggle {
    width: 48px;
    height: 48px;
  }

  .mastr-menu-toggle span {
    width: 22px;
    height: 2px;
  }

  .mastr-unified-nav {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 73px);
    max-height: calc(100dvh - 73px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #041307;
    font-size: clamp(16px, 4.5vw, 18px);
    line-height: 1.25;
    letter-spacing: 0.035em;
  }

  .mastr-unified-nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 15px 18px;
    border-right: 0;
  }

  .mastr-unified-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 38px 20px 22px;
  }

  .mastr-unified-footer-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .mastr-unified-footer-bottom {
    grid-column: auto;
    flex-direction: column;
  }

  .mastr-unified-footer-bottom p {
    text-align: left;
  }

  .hero::before {
    animation: none !important;
    transform: none !important;
    background: linear-gradient(145deg, rgba(7, 22, 10, 0.76), rgba(4, 19, 7, 0.82) 62%, rgba(9, 38, 14, 0.78)) !important;
  }

  .hero-grid {
    display: none !important;
  }

  .hero,
  .shell > .hero,
  .token-hero,
  .projects-hero {
    position: relative;
    isolation: isolate;
    border-color: rgba(57, 255, 20, 0.42) !important;
    background:
      radial-gradient(circle at 84% 14%, rgba(183, 255, 49, 0.22), transparent 18rem),
      radial-gradient(circle at 10% 70%, rgba(57, 255, 20, 0.16), transparent 22rem),
      linear-gradient(145deg, rgba(11, 53, 20, 0.88), rgba(6, 28, 11, 0.9) 58%, rgba(13, 62, 24, 0.88)),
      url('/brand/mastr-network-field.webp?v=7-final') center / cover no-repeat !important;
    box-shadow:
      inset 0 1px rgba(183, 255, 49, 0.18),
      inset 0 -36px 70px rgba(0, 0, 0, 0.18) !important;
  }

  .shell > .hero::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    z-index: -1;
    top: 32px;
    right: -48px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(183, 255, 49, 0.22);
    border-radius: 28%;
    background: url('/brand/mastr-logo.png') center / 72% no-repeat !important;
    opacity: 0.11;
    filter: none !important;
    transform: rotate(-8deg) !important;
  }

  .hero h1 span,
  .token-hero h1 span,
  .projects-hero h1 em,
  .shell > .hero h1 span {
    color: transparent !important;
    background: linear-gradient(94deg, #d7ff3a 0%, #55ff18 46%, #20ff8a 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
  }

  .hero-visual,
  .token-visual,
  .projects-visual {
    min-width: 0 !important;
    min-height: 350px !important;
    margin-top: 8px;
    border: 1px solid rgba(183, 255, 49, 0.32);
    border-radius: 26px;
    background:
      radial-gradient(circle at 50% 46%, rgba(57, 255, 20, 0.24), transparent 55%),
      linear-gradient(145deg, #082a10, #031106) !important;
    box-shadow:
      0 22px 45px rgba(0, 0, 0, 0.3),
      inset 0 1px rgba(183, 255, 49, 0.18),
      inset 0 -24px 55px rgba(0, 0, 0, 0.28) !important;
  }

  .shield-ring {
    display: block !important;
    animation: none !important;
    border-color: rgba(183, 255, 49, 0.27) !important;
  }

  .site-header,
  .site-header.is-scrolled,
  .visual-hud {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .shield-stage img,
  .agent-stage img,
  .logo-stage img,
  .token-core-logo,
  .main-account-banner,
  .main-account-agent {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
    filter: none !important;
  }

  .hero,
  .section-heading,
  .apps-heading,
  .services-heading,
  .impact-detail,
  .main-account-band,
  .mobile-service-bridge,
  .exposure-section,
  .principles-main,
  .about-section,
  .support-section,
  .token-hero,
  .projects-hero,
  .hero-inner,
  .explorer-head {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .capability-grid,
  .product-grid,
  .official-app-grid,
  .pricing-grid,
  .security-program-grid,
  .case-grid,
  .token-launch-grid,
  .proof-strip,
  .principle-grid,
  .monitoring-offer,
  .commercial-terms,
  .footer-links,
  .knowledge-grid,
  .signal-row,
  .project-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero > *,
  .token-hero > *,
  .projects-hero > *,
  .section-heading > *,
  .apps-heading > *,
  .services-heading > *,
  .about-section > *,
  .support-section > *,
  .knowledge-entry,
  .registry-card,
  footer > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hero,
  .section,
  .apps-section,
  .services-section,
  .research-section,
  .principles-section,
  .about-section,
  .support-section,
  .token-hero,
  .projects-hero,
  .legal-document,
  .explorer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  .hero {
    padding-inline: 16px !important;
  }

  .section,
  .apps-section,
  .services-section,
  .research-section,
  .about-section,
  .support-section,
  .token-hero,
  .projects-hero,
  .legal-document,
  .explorer {
    padding-inline: clamp(16px, 5vw, 24px) !important;
  }

  .hero h1,
  .token-hero h1,
  .projects-hero h1,
  .shell > .hero h1,
  .legal-document h1 {
    max-width: 100% !important;
    overflow-wrap: break-word;
    font-size: clamp(38px, 11.5vw, 64px) !important;
    line-height: 0.98 !important;
  }

  .section-heading h2,
  .apps-heading h2,
  .services-heading h2,
  .research-intro h2,
  .support-section h2,
  .about-copy h2,
  .explorer h2 {
    max-width: 100% !important;
    overflow-wrap: anywhere;
    font-size: clamp(31px, 9.5vw, 44px) !important;
    line-height: 1.04 !important;
  }

  .shield-stage,
  .agent-stage,
  .logo-stage,
  .token-core {
    width: min(100%, 360px) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    perspective: none !important;
    transform: none !important;
    transform-style: flat !important;
  }

  .capability-card,
  .product-card,
  .official-app-card,
  .pricing-card,
  .security-program-grid article,
  .case-grid article,
  .method-row,
  .bounty-card,
  .registry-card {
    perspective: none !important;
    transform: none !important;
    transform-style: flat !important;
    border-color: rgba(57, 255, 20, 0.34) !important;
    background: linear-gradient(145deg, #104319, #061d0b 72%) !important;
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.28),
      inset 0 1px rgba(183, 255, 49, 0.16),
      inset 5px 0 rgba(57, 255, 20, 0.08) !important;
  }

  .capability-card::after,
  .product-card::after,
  .official-app-card::after,
  .pricing-card::after,
  .security-program-grid article::after,
  .case-grid article::after {
    display: none !important;
  }

  .visual-hud {
    max-width: 46% !important;
    min-width: 0 !important;
    padding: 8px 9px !important;
    background: #061b0bf2 !important;
  }

  .impact-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .impact-tabs button {
    min-width: 0;
    min-height: 112px !important;
    padding: 16px !important;
  }

  .hero-actions,
  .token-launch-actions,
  .support-actions,
  .support-wallet,
  .support-wallet code {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-actions .button,
  .token-launch-actions .button,
  .support-actions .button {
    width: 100% !important;
  }

  .button-primary,
  .hero-actions .button-primary,
  .token-hero-actions .button-primary,
  .wallet-copy {
    border-color: #70ff29 !important;
    background: linear-gradient(105deg, #d0ff36, #55ff18 52%, #25ff79) !important;
    color: #031006 !important;
    box-shadow: 0 12px 28px rgba(57, 255, 20, 0.2) !important;
  }

  .hero-actions .button-quiet[href="/knowledge/"],
  .hero-actions .button-quiet[href="/knowledge"] {
    border-color: rgba(183, 255, 49, 0.7) !important;
    background: linear-gradient(105deg, rgba(57, 255, 20, 0.18), rgba(8, 43, 16, 0.92)) !important;
    color: #eaffd9 !important;
    box-shadow: inset 0 1px rgba(183, 255, 49, 0.18) !important;
  }

  .intelligence-section,
  .apps-section,
  .research-section,
  .about-section,
  .explorer {
    background:
      radial-gradient(circle at 86% 8%, rgba(57, 255, 20, 0.12), transparent 18rem),
      linear-gradient(145deg, #092d12, #061b0b 68%) !important;
  }

  .ecosystem-section,
  .services-section,
  .principles-section,
  .support-section {
    background:
      radial-gradient(circle at 12% 85%, rgba(183, 255, 49, 0.11), transparent 19rem),
      linear-gradient(145deg, #0c3716, #071f0d 70%) !important;
  }

  .impact-highlights,
  .x-signal-strip,
  .mobile-service-bridge,
  .main-account-band,
  .support-wallet,
  .hero-panel,
  .signal-row {
    border-color: rgba(57, 255, 20, 0.42) !important;
    background: linear-gradient(135deg, #104519, #061d0b 72%) !important;
    box-shadow:
      0 16px 38px rgba(0, 0, 0, 0.28),
      inset 0 1px rgba(183, 255, 49, 0.16) !important;
  }

  .knowledge-entry {
    border-color: rgba(57, 255, 20, 0.32) !important;
    background:
      linear-gradient(145deg, rgba(20, 77, 30, 0.96), rgba(5, 28, 10, 0.98)) !important;
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.25),
      inset 4px 0 rgba(85, 255, 24, 0.16),
      inset 0 1px rgba(183, 255, 49, 0.12) !important;
  }

  .knowledge-entry:nth-child(4n+2),
  .knowledge-entry:nth-child(4n+3) {
    background: linear-gradient(145deg, #0d3c18, #061d0b 75%) !important;
  }

  .filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px !important;
  }

  .filter {
    min-width: 0;
    min-height: 48px;
    border-color: rgba(57, 255, 20, 0.38) !important;
    background: #0a3012 !important;
    color: #cbe7cf !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .filter.is-active {
    background: linear-gradient(105deg, #c9ff36, #55ff18) !important;
    color: #031006 !important;
  }

  .search-wrap input {
    min-height: 56px !important;
    border-color: rgba(183, 255, 49, 0.65) !important;
    background: #041708 !important;
    box-shadow: inset 0 0 22px rgba(57, 255, 20, 0.06) !important;
    font-size: 16px !important;
  }

  /* Mobile readability: preserve the hierarchy, but never leave useful copy at 10–14px. */
  main p {
    font-size: 18px !important;
    line-height: 1.62 !important;
  }

  main li {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  main small {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .hero-lead,
  .section-heading p,
  .apps-heading p,
  .services-heading > p,
  .research-intro > p,
  .support-section p,
  .about-lead,
  .capability-card p,
  .product-card p,
  .official-app-card > p,
  .pricing-card > p,
  .security-program-grid p,
  .method-row p,
  .case-grid p,
  .exposure-copy > p,
  .principles-main p,
  .principle-grid p,
  .about-columns p,
  .token-hero-copy > p,
  .token-section-heading p,
  .utility-map p,
  .badge-copy > p,
  .insurance-intro > p,
  .legal-document section p,
  .registry-page-note p,
  .registry-grid-page article > p,
  .registry-cta p,
  .knowledge-entry > p,
  .analysis,
  .hero-panel p,
  .main-account-copy > p,
  .mobile-service-bridge p,
  .impact-detail p {
    font-size: 18px !important;
    line-height: 1.65 !important;
  }

  .pricing-card li,
  .monitoring-offer p,
  .monitoring-output span,
  .bounty-steps span,
  .exposure-copy li,
  .application-card li,
  .badge-rules span,
  .insurance-model p,
  .faq-list details > p,
  .session-list span,
  .analysis li {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .button,
  .buy-button,
  .store-button,
  .registry-card-links a,
  .security-program-grid a,
  .about-links a,
  .legal-contact a,
  .project-action,
  .wallet-copy {
    min-height: 48px;
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .section-index,
  .token-kicker,
  .projects-kicker,
  .index-label,
  .impact-intro > span,
  .impact-detail > div:first-child > span,
  .app-platform,
  .app-availability,
  .product-status,
  .product-meta,
  .entry-category,
  .source-note,
  .result-line,
  .terms,
  .support-wallet small,
  .mastr-unified-footer-links span {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .impact-tabs span,
  .impact-tags small,
  .app-facts span,
  .store-button span,
  .main-account-proof span,
  .project-status,
  .status-chip {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  /* Secondary information stays compact, but remains readable and touch-safe. */
  .hero-principles,
  .visual-hud span,
  .x-signal-strip span,
  .pricing-tier,
  .token-section-heading > span,
  .legacy-whitepaper summary span,
  .registry-page-note span,
  .registry-badge-state,
  .registry-cta > div > span,
  .legal-document > span,
  .contract-panel div span {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .visual-hud strong,
  .contract-panel div strong {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .programme-conversation {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .beta-badge,
  .beta-features span,
  .price-line span,
  .monitoring-offer > div:first-child > span,
  .monitoring-price span,
  .gate-statuses span,
  .support-wallet > span,
  .projects-hero > span,
  .projects-counter span,
  .registry-contract span,
  .framework-alert strong,
  .faq-list summary span {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .capability-card a,
  .x-signal-strip > a,
  .contract-panel a,
  .status-ledger a,
  .impact-detail > div:first-child > a,
  .beta-secondary-links a,
  .support-wallet a,
  .legacy-whitepaper a,
  .registry-card-head a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .principles-main blockquote {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    font-size: clamp(29px, 9vw, 38px) !important;
    line-height: 1.08 !important;
  }

  .registry-card-head a {
    min-width: 44px !important;
    justify-content: center !important;
  }

  summary,
  .store-button strong,
  .registry-card h3,
  .project-card h3 {
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

  summary {
    min-height: 48px;
    padding-block: 10px;
  }

  .mastr-unified-footer-brand p,
  .mastr-unified-footer-links a {
    font-size: 16px;
    line-height: 1.55;
  }

  .mastr-unified-footer-bottom,
  .mastr-unified-footer-bottom p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .hero-x-main {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
  }

  .hero-x-main em {
    display: none !important;
  }

  .x-signal-strip,
  .support-wallet > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .main-account-proof {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .support-wallet > div > * {
    max-width: 100% !important;
  }

  .mastr-unified-footer-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  p,
  h1,
  h2,
  h3,
  a,
  span {
    overflow-wrap: break-word;
  }

  code,
  .registry-contract code,
  .contract-panel code,
  .support-wallet code {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: break-all;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 420px) {
  .impact-tabs,
  .filters {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mastr-unified-brand {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
