/* BitClac v442: final homepage-only mobile readability fixes. */
@media (max-width: 768px) {
  html body[data-page="home"] .home-market-stats-v244 > span > small {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  html body[data-page="home"] .home-market-converter-v278 label > input {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
  }

  html body[data-page="home"] .fho-home-item {
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto;
    min-height: 72px !important;
    gap: 5px 8px !important;
  }

  html body[data-page="home"] .fho-home-item > strong {
    grid-column: 2;
    min-width: 0;
    overflow: visible !important;
  }

  html body[data-page="home"] .fho-home-item > strong > em {
    min-width: 0;
    max-width: 100%;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  html body[data-page="home"] .fho-home-item > .fho-heat {
    grid-column: 3;
    grid-row: 1;
  }

  html body[data-page="home"] .fho-home-item > .fho-home-item__metrics {
    grid-column: 2 / 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 10px;
  }

  html body[data-page="home"] .mobile-bottom-nav__item,
  html body[data-page="home"] button.mobile-bottom-nav__item {
    min-height: 66px !important;
    padding: 4px 1px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
  }

  html body[data-page="home"] .mobile-bottom-nav__item > span {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

/* The global mobile navigation switches at 760px. Keep the homepage mobile
   presentation coherent for the requested 768px tablet viewport only. */
@media (min-width: 761px) and (max-width: 768px) {
  :root {
    --mobile-bottom-nav-height: 72px;
  }

  html body[data-page="home"] {
    padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body[data-page="home"] .platform-header .navlinks,
  html body[data-page="home"] .platform-header .bitclac-main-nav,
  html body[data-page="home"] .platform-header .price-alert-launcher-wrap-v262 {
    display: none !important;
  }

  html body[data-page="home"] .platform-header .platform-nav,
  html body[data-page="home"] .site-header .platform-nav {
    min-height: 58px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    overflow: visible !important;
  }

  html body[data-page="home"] .site-header .brand,
  html body[data-page="home"] .site-header .brand-text,
  html body[data-page="home"] .platform-header .brand,
  html body[data-page="home"] .platform-header .brand-text {
    width: auto !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    justify-content: flex-start !important;
  }

  html body[data-page="home"] .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px;
    min-height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    border-top: 1px solid rgba(255, 255, 255, .11);
    background: rgba(22, 24, 29, .97);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px) saturate(1.1);
  }

  html body[data-page="home"] .mobile-bottom-nav__item {
    min-width: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0 !important;
    border-radius: 14px;
    color: #b9c0ca !important;
    background: transparent !important;
    text-decoration: none;
    font-weight: 760;
    -webkit-tap-highlight-color: transparent;
  }

  html body[data-page="home"] .mobile-bottom-nav__item svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  html body[data-page="home"] .mobile-menu-sheet[hidden] {
    display: none !important;
  }

  html body[data-page="home"] .mobile-menu-sheet {
    position: fixed;
    inset: 0;
    z-index: 360 !important;
  }

  html body[data-page="home"] .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0 !important;
    background: rgba(15, 17, 21, .92) !important;
  }

  html body[data-page="home"] .mobile-menu-panel {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #1f2228 !important;
  }

  html body[data-page="home"] .mobile-menu-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 14px !important;
    padding: 6px 0 12px !important;
    background: #1f2228 !important;
  }

  html body[data-page="home"] .mobile-menu-head strong {
    font-size: 22px !important;
  }

  html body[data-page="home"] .mobile-menu-head button {
    min-width: 44px;
    min-height: 44px !important;
  }

  html body[data-page="home"] .mobile-menu-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
  }

  html body[data-page="home"] .mobile-menu-links a,
  html body[data-page="home"] .mobile-menu-links .nav-masters-trigger {
    min-height: 64px !important;
    display: flex;
    align-items: center !important;
    padding: 13px 14px !important;
    border: 1px solid #343a44;
    border-radius: 12px;
    color: #f2f4f7;
    background: #262a31;
    font-size: 16px !important;
    font-weight: 850;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
    text-decoration: none;
  }

  html body[data-page="home"].mobile-menu-open {
    overflow: hidden !important;
  }
}
/* /BitClac v442 */


/* Final specificity and cache guard for the two summary captions. */
@media (max-width: 768px) {
  html body[data-page="home"] .home-top-summary-grid-v278 .home-coin-summary-v244 .home-market-stats-v244 > span > small {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
}
