/* Shared Bitcoin phone layout. */

@media (max-width: 1100px) {
  .ci-cdash-snap__list dt {
    white-space: normal;
    line-height: 1.45;
  }
}

@media (max-width: 1024px) {
  .ci-cdash-nav-row {
    min-width: 0;
  }

  .ci-cdash-tabs {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    gap: 20px;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .ci-cdash-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
  }

  .ci-cdash-yearly-table-container,
  .ci-cdash-monthly-year-table,
  .ci-cdash-recovery-table-wrap,
  .ci-cdash-markets__table-wrap {
    min-width: 0;
    max-width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1100px) {
  .ci-cdash {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .ci-cdash__inner {
    width: calc(100% - 32px);
  }

  /* Grid/flex children must shrink to their track instead of their contents. */
  .ci-cdash :where(section, article, header, nav, div, dl) {
    min-width: 0;
  }

  .ci-cdash :where(h1, h2, h3, p, dt, dd, strong) {
    overflow-wrap: break-word;
  }

  .ci-cdash-mast,
  .ci-cdash-perf__grid.ci-cdash-perf__grid--convert {
    grid-template-columns: minmax(0, 1fr);
  }

  .ci-cdash-chart__head,
  .ci-cdash-chart__foot,
  .ci-cdash-tech__head,
  .ci-cdash-markets__head,
  .ci-cdash-markets__controls,
  .ci-cdash-tokenomics__head,
  .ci-cdash-recovery-intro {
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
  }

  .ci-cdash-chart__controls,
  .ci-cdash-tech__tf-wrap {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .ci-cdash-chart__head > div {
    width: 100%;
    max-width: 100%;
  }

  /* These templates set desktop alignment and margins inline. */
  .ci-cdash .ci-cdash-chart__right-col {
    margin: 0 !important;
    align-items: flex-start !important;
  }

  .ci-cdash .ci-cdash-chart__controls,
  .ci-cdash-chart__controls > div,
  .ci-cdash-tf {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .ci-cdash-news-load-more {
    min-width: 0 !important;
    max-width: 100%;
    white-space: normal;
  }

  .ci-cdash-chart__in-chart-legend {
    right: 16px;
    flex-wrap: wrap;
  }

  .ci-cdash-market__toolbar {
    justify-content: flex-start;
    gap: 16px 12px;
  }

  .ci-cdash-market__toolbar-group {
    max-width: 100%;
  }

  .ci-cdash-market__toggles,
  .ci-cdash-tech__tf,
  .ci-cdash-markets__tabs {
    flex-wrap: wrap;
  }

  .ci-cdash-market__dropdown-btn {
    height: auto;
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .ci-cdash-market__dropdown-menu {
    max-width: calc(100vw - 64px);
  }

  .ci-cdash :where(button, select) {
    min-height: 44px;
  }

  .ci-cdash :where(input:not([type="checkbox"]):not([type="radio"]), select) {
    font-size: 16px;
    max-width: 100%;
  }

  .ci-cdash .ci-cdash-chart__canvas {
    height: 340px;
  }

  .ci-cdash-chart.is-fs .ci-cdash-chart__canvas {
    height: auto;
    min-height: 220px;
  }

  .ci-cdash-chart.is-fs {
    padding: 16px;
    overflow-y: auto;
  }

  .ci-cdash-recovery-meta {
    white-space: normal;
  }

  .ci-cdash-snap__list > div {
    padding: 12px;
  }

  .ci-cdash-snap__name {
    overflow-wrap: anywhere;
    font-size: 24px;
  }

  .ci-cdash-snap__icon,
  .ci-cdash-snap__rank-wrap {
    flex-shrink: 0;
  }

  .ci-cdash-context {
    padding: 18px 16px 0;
  }

  .ci-tether-mkt__peg-grid,
  .ci-tether-mkt__chain-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ci-tether-mkt__donut {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  /* Reserve cards also exist in the older markup without an icon/body wrapper. */
  .ci-tether-mkt__reserve-metric:not(:has(.ci-tether-mkt__reserve-metric-body)) {
    display: block;
  }

  .ci-cdash-happen__time {
    white-space: normal;
  }

  .ci-cdash-about-process__num {
    white-space: normal !important;
  }

  .ci-cdash-milestone-card {
    box-sizing: border-box;
    max-width: calc(100vw - 48px);
  }

  .ci-cdash :where(a, button, input, select):focus-visible {
    outline: 2px solid var(--ci-cd-red);
    outline-offset: 3px;
  }
}

@media (max-width: 420px) {
  .ci-cdash-tabs {
    gap: 16px;
  }

  .ci-cdash-tabs a {
    font-size: 13px;
  }

  .ci-cdash-snap__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ci-cdash-explore__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ci-cdash-explore__stats > a {
    grid-column: 1 / -1;
  }
}

/* Bitcoin mobile presentation, loaded only for Sui and Avalanche. */

.ci-mobile-method-icon { display: none; }
.ci-mobile-intro-toggle,
.ci-mobile-topics-toggle,
.ci-mobile-chart-actions,
.ci-mobile-history-helper,
.ci-mobile-milestone-details {
  display: none;
}
.ci-mobile-step-copy,
.ci-mobile-topics-panel {
  display: contents;
}
.ci-mobile-hero-more .ci-cdash-hero__lead:first-child { margin-top: 10px; }

@media (max-width: 1100px) {
  .ci-cdash .ci-cdash-markets__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    align-items: end;
    gap: 10px;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #f8f8f8;
  }
  .ci-cdash-markets__filter-group label,
  .ci-cdash-markets__currency-group label {
    font-size: 9px;
    letter-spacing: .02em;
    margin-bottom: 6px;
  }
  .ci-cdash .ci-cdash-markets__tabs {
    display: flex;
    box-sizing: border-box;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    height: 44px;
    padding: 3px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
  }
  .ci-cdash .ci-cdash-markets__tab {
    flex: 1 0 auto;
    min-width: 0;
    min-height: 0;
    padding: 4px 5px;
    border: 0;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
  }
  .ci-cdash .ci-cdash-markets__currency-group { align-items: stretch; }
  .ci-cdash .ci-cdash-markets__currency-select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 5px 22px 5px 8px;
    font-size: 13px;
  }
  .ci-cdash-markets__currency-note { display: none; }

  .ci-cdash-tech__method-panel-inner { padding: 16px 0; }
  .ci-cdash-tech__method-p { font-size: 13px; line-height: 1.55; margin-bottom: 14px; }
  .ci-cdash .ci-cdash-tech__method-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 16px;
  }
  .ci-cdash-tech__method-step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }
  .ci-cdash-tech__method-num {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: 32px;
    margin: 0;
    align-self: start;
  }
  .ci-cdash-tech__method-step:hover .ci-cdash-tech__method-num { transform: none; }
  .ci-cdash-tech__method-step > p { grid-column: 2; }
  .ci-cdash-tech__method-h { font-size: 9px; margin: 0; letter-spacing: .06em; }
  .ci-cdash-tech__method-h br { display: none; }
  .ci-cdash-tech__method-h strong { margin-top: 3px; font-size: 13px; line-height: 1.35; }
  .ci-cdash-tech__method-step p:last-child { font-size: 13px; line-height: 1.5; }
  .ci-cdash .ci-cdash-tech__method-grid2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 16px;
    padding-bottom: 0;
    border-bottom: 0;
  }
  /* Supply notes have desktop column overrides; stack every variant on phones. */
  .ci-cdash .ci-cdash-tech__method-grid2:is(.ci-cdash-tokenomics__method-grid2, .ci-cdash-tokenomics__method-grid2--two) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .ci-cdash-tech__method-grid2 > div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }
  .ci-mobile-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #faedf1;
    color: var(--ci-cd-red);
  }
  .ci-cdash-tech__method-grid2 > div > p { grid-column: 2; }
  .ci-cdash-tech__method-h2 { font-size: 9px; margin: 0; letter-spacing: .06em; }
  .ci-cdash-tech__method-grid2 p:last-child { font-size: 13px; line-height: 1.5; }

  .ci-mobile-intro-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    margin-top: 6px;
    border: 0;
    background: transparent;
    font: 600 13px var(--ci-cd-sans);
    color: var(--ci-cd-red);
    cursor: pointer;
  }
  .ci-mobile-intro-toggle::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .ci-mobile-intro-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }

  .ci-cdash-market__active-tags,
  .ci-cdash-market__toolbar-group:has(.ci-cdash-market__dropdown),
  .ci-cdash-market__toolbar-group--fs,
  .ci-cdash-explore__nav,
  .ci-cdash-custom-news-essential-nav { display: none !important; }

  .ci-cdash-market__toolbar { gap: 10px 12px; }
  .ci-cdash-market__toolbar-label { font-size: 9px; }
  .ci-cdash-market__toggles { gap: 3px; }
  .ci-cdash-market__toggles button {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11px;
    line-height: 1.2;
  }
  .ci-mobile-chart-actions {
    display: flex;
    justify-content: flex-end;
    margin: 6px 0;
  }
  .ci-mobile-chart-actions .ci-cdash-fs { width: 36px; min-height: 36px; }
  .ci-cdash .ci-cdash-chart--market .ci-cdash-chart__canvas { height: 540px; }
  .ci-cdash-chart--market .ci-cdash-chart__canvas { position: relative; }
  .ci-cdash-chart--market .ci-cdash-chart__in-chart-legend {
    font-size: 10px;
    gap: 8px;
    top: 8px;
  }
  .ci-mobile-indicator-tabs {
    position: absolute;
    left: 8px;
    right: 64px;
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: 7px;
    background: #f3f3f5;
    z-index: 2;
  }
  .ci-mobile-indicator-tabs button {
    flex: 1;
    min-height: 32px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #555;
    font: 600 11px var(--ci-cd-sans);
    cursor: pointer;
  }
  .ci-mobile-indicator-tabs button.is-active { background: var(--ci-cd-red); color: #fff; }
  .ci-cdash-chart--market .ci-cdash-chart__foot { gap: 6px; }
  .ci-cdash-chart--market .ci-cdash-chart__hint { display: none; }
  .ci-cdash-chart--market .ci-cdash-chart__meta { font-size: 10px; line-height: 1.5; }

  .ci-cdash-explore__head { margin-bottom: 6px; gap: 0; }
  .ci-cdash-explore__track { padding-top: 4px; }

  .ci-cdash-about-cashout__flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ci-cdash-about-cashout__step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .ci-cdash-about-cashout__step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 72px;
    bottom: -10px;
    width: 1px;
    background: #d19aad;
  }
  .ci-cdash-about-cashout__num {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    text-align: center;
    font-size: 11px;
  }
  .ci-cdash-about-cashout__icon {
    width: 44px;
    height: 44px;
    margin: 24px 0 0;
  }
  .ci-mobile-step-copy {
    display: block;
    padding: 14px;
    border: 1px solid #f0e9eb;
    border-radius: 10px;
    background: #fcf8f9;
  }
  .ci-cdash-about-cashout__step h3 { margin: 0 0 6px; font-size: 18px; }
  .ci-cdash-about-cashout__step p { margin: 0; font-size: 13px; line-height: 1.6; }
  .ci-cdash-about-cashout__step:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
  }
  .ci-cdash-about-cashout__step:hover h3 { color: var(--ci-cd-text); }
  .ci-cdash-about-cashout__step:hover p { color: #555; }
  .ci-cdash-about-cashout__step:hover .ci-cdash-about-cashout__num { color: var(--ci-cd-red); }
  .ci-cdash-about-process__step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
  }
  .ci-cdash-about-process__icon { width: 44px; height: 44px; }
  .ci-cdash-about-process__body h3 { font-size: 18px; }
  .ci-cdash-about-process__body p { font-size: 13px; line-height: 1.6; }

  .ci-cdash-about-glance-grid {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .ci-mobile-glance-banner {
    padding: 18px !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    border-radius: 10px;
  }
  .ci-mobile-glance-banner > div { max-width: 100%; flex-shrink: 1 !important; }
  .ci-mobile-glance-banner > div:last-child { text-align: left !important; white-space: normal !important; }
  .ci-cdash-about-glance-cols { gap: 10px; margin-top: 10px; }
  .ci-cdash-about-glance-cols .ci-cdash-glance-col {
    flex: 1 1 100% !important;
    padding: 16px !important;
    border: 1px solid var(--ci-cd-border) !important;
    border-radius: 10px;
    background: #fff;
  }
  .ci-mobile-glance-heading { margin-bottom: 0 !important; padding-bottom: 10px !important; gap: 12px !important; }
  .ci-mobile-glance-row {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 12px;
    padding: 10px 0 !important;
    margin: 0 !important;
  }
  .ci-mobile-glance-row > span { font-size: 9px !important; margin: 0 !important; line-height: 1.5; }
  .ci-mobile-glance-row > strong { font-size: 15px !important; line-height: 1.4; }

  .ci-cdash-custom-news-essential-viewport {
    overflow-x: auto !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .ci-cdash-custom-news-essential { transform: none !important; gap: 14px; }
  .ci-cdash-custom-news-essential__page { display: contents !important; }
  .ci-cdash-custom-news-essential .ci-cdash-news__item {
    flex: 0 0 84%;
    min-width: 0;
    max-width: 360px;
    scroll-snap-align: start;
  }
  .ci-mobile-news-filter-row { position: relative; gap: 8px !important; align-items: center !important; }
  .ci-mobile-news-filter-row .ci-cdash-news__all { font-size: 10px; white-space: nowrap; margin-left: auto; }
  .ci-cdash-news-pills { position: relative; flex: 0 1 auto !important; gap: 8px !important; }
  .ci-cdash .ci-cdash-news-pill,
  .ci-mobile-topics-toggle {
    padding: 7px 14px;
    min-height: 34px;
    font: 600 12px var(--ci-cd-sans);
    border-radius: 20px;
  }
  .ci-mobile-topics-toggle {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--ci-cd-red);
    color: var(--ci-cd-red);
    max-width: 150px;
  }
  .ci-mobile-topics-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(280px, calc(100vw - 48px));
    padding: 10px;
    border: 1px solid var(--ci-cd-border);
    border-radius: 10px;
    box-shadow: var(--ci-cd-shadow);
    background: #fff;
    z-index: 20;
  }
  .ci-mobile-topics-panel.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ci-cdash .ci-mobile-topics-panel .ci-cdash-news-pill { padding: 6px 8px; font-size: 11px; }
  .ci-cdash-custom-news-hero-body { display: flex; flex-direction: column; }
  .ci-cdash-custom-news-hero-body > .ci-cdash__eyebrow { order: 1; }
  .ci-cdash-custom-news-hero-body > h3 { order: 2; margin-bottom: 12px !important; }
  .ci-cdash-custom-news-hero-body > .ci-mobile-news-meta { order: 3; margin: 0 0 12px !important; font-size: 11px !important; }
  .ci-cdash-custom-news-hero-body > .ci-mobile-news-excerpt { order: 4; margin-bottom: 0 !important; }
  .ci-cdash-news-row__cat { order: 1; }
  .ci-cdash-news-row__title { order: 2; }
  .ci-cdash-news-row__meta { order: 3; margin: 0 0 8px !important; }
  .ci-cdash-news-row__excerpt { order: 4; }

  .ci-cdash.ci-cdash--view-price-history .ci-cdash-chart__canvas { height: 380px; }
  .ci-cdash--view-price-history .ci-cdash-chart__head { gap: 12px; }
  .ci-cdash--view-price-history .ci-cdash-chart__legend { display: none; }
  .ci-cdash--view-price-history .ci-cdash-chart__controls > div { width: 100%; gap: 8px !important; flex-wrap: nowrap; }
  .ci-cdash--view-price-history .ci-cdash-chart__controls > div > div:first-child { flex: 1; }
  .ci-cdash--view-price-history .ci-cdash-chart__controls label { display: none !important; }
  .ci-cdash--view-price-history .ci-cdash-tf { display: flex; flex-wrap: nowrap; }
  .ci-cdash--view-price-history .ci-cdash-tf button { flex: 1; min-width: 0; min-height: 36px; padding: 7px 8px; font-size: 11px; }
  .ci-cdash--view-price-history .ci-cdash-ccy select { min-width: 68px !important; width: 76px; min-height: 36px; font-size: 16px; }
  .ci-cdash--view-price-history .ci-cdash-fs { min-height: 36px; width: 32px; flex-shrink: 0; }
  .ci-mobile-history-ready .ci-cdash-chart__hint,
  .ci-mobile-history-ready .ci-hist-marker-label,
  .ci-mobile-history-ready .ci-hist-marker-line,
  .ci-mobile-history-ready .ci-hist-marker-guide,
  .ci-mobile-axis-hidden { display: none !important; }
  .ci-mobile-history-helper { display: block; margin: 10px 0; text-align: center; font-size: 12px; color: #777; }
  .ci-mobile-milestone-details:not([hidden]) {
    display: block;
    position: relative;
    margin: 6px 0 12px;
    scroll-margin-top: 140px;
    padding: 18px 40px 18px 16px;
    border: 1px solid var(--ci-cd-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--ci-cd-shadow-soft);
  }
  .ci-mobile-milestone-details .ci-cdash-milestone-card__close { top: 6px; right: 6px; width: 32px; min-height: 32px; }
  .ci-mobile-milestone-details .ci-cdash-milestone-card__title { font-size: 18px; }
  .ci-mobile-milestone-details .ci-cdash-milestone-card__desc { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
  .ci-mobile-history-ready .ci-hist-marker-hit:focus { outline: none; }
  .ci-mobile-history-ready .ci-hist-marker-hit:focus-visible { stroke: #8b1538; stroke-width: 1.5px; }
  .ci-cdash .ci-cdash-records-strip { border: 0; gap: 12px; }
  .ci-cdash .ci-cdash-records-strip > :is(.ci-cdash-record-box, .ci-cdash-records-strip__item) {
    border: 1px solid var(--ci-cd-border) !important;
    border-radius: 8px;
    background: #fff;
  }
}


.ci-mobile-history-helper[hidden]{display:none!important;}

/* Shared Bitcoin tablet layout. */

@media (min-width: 768px) and (max-width: 1100px) {
  .ci-cdash__inner { width: calc(100% - 48px); }
  .ci-cdash { padding-top: 28px; padding-bottom: 48px; }
  .ci-cdash .ci-cdash-chart__canvas { height: 420px; }
  .ci-cdash .ci-cdash-chart--market .ci-cdash-chart__canvas { height: 580px; }
  .ci-cdash .ci-cdash-tech__method-steps,
  .ci-cdash .ci-cdash-tech__method-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ci-cdash .ci-cdash-tech__method-grid2:is(.ci-cdash-tokenomics__method-grid2, .ci-cdash-tokenomics__method-grid2--two):not(.ci-cdash-tokenomics__method-grid2--3) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ci-cdash .ci-cdash-tech__method-grid2.ci-cdash-tokenomics__method-grid2--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .ci-cdash-tech__method-step, .ci-cdash-tech__method-grid2 > div { padding: 18px; }
  .ci-cdash-tech__method-step p:last-child, .ci-cdash-tech__method-grid2 p:last-child { font-size: 14px; }
  .ci-cdash-about-glance-cols { flex-wrap: wrap; gap: 16px; }
  .ci-cdash-about-glance-cols .ci-cdash-glance-col { flex: 1 1 calc(50% - 16px) !important; padding: 20px !important; }
  .ci-mobile-glance-row > span { font-size: 11px !important; }
  .ci-mobile-glance-row > strong { font-size: 17px !important; }
  .ci-cdash-about-process__step { padding: 20px; }
  .ci-cdash-about-process__body p, .ci-cdash-about-cashout__step p { font-size: 14px; }
  .ci-cdash-custom-news-essential .ci-cdash-news__item { flex-basis: calc(50% - 7px); max-width: none; }
  .ci-cdash .ci-cdash-markets__controls { grid-template-columns: minmax(0, 1fr) 120px; padding: 16px; gap: 16px; }
  .ci-cdash .ci-cdash-markets__tab { font-size: 13px; padding: 6px 12px; }
}

/* Tablet snapshot and swipeable supply/history cards. */

@media (min-width: 768px) and (max-width: 1100px) {
  .ci-cdash .ci-cdash-mast { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: start; }
  .ci-cdash .ci-cdash-mast > * { min-width: 0; }
  .ci-cdash .ci-cdash-snap { min-width: 0; padding: 20px; }
  .ci-cdash .ci-cdash-snap__value { font-size: clamp(30px,3.8vw,40px); line-height: 1.15; }
  .ci-cdash .ci-cdash-snap__list { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .ci-cdash .ci-cdash-snap__list dt { white-space: normal; line-height: 1.4; }
  .ci-cdash .ci-cdash-snap__list dd { font-size: 14px; }
  .ci-cdash .ci-cdash-snap__drawdown { grid-column: 1 / -1; text-align: center; }
  .ci-cdash .ci-cdash-hero__title { font-size: clamp(28px,3.5vw,36px); }
}
@media (max-width: 1100px) {
  .ci-cdash .ci-usds-methodology-grid,
  .ci-cdash .ci-cdash-tokenomics__method-steps,
  .ci-cdash .ci-cdash-tokenomics .ci-cdash-tech__method-steps { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 280px; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
  .ci-cdash .ci-cdash-tokenomics__method-steps > *,
  .ci-cdash .ci-cdash-tokenomics .ci-cdash-tech__method-steps > * { min-width: 0; scroll-snap-align: start; }
  .ci-cdash .ci-cdash-records-strip { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px; padding-bottom: 12px; scroll-snap-type: x proximity; }
  .ci-cdash .ci-cdash-records-strip > .ci-cdash-record-box,
  .ci-cdash .ci-cdash-records-strip > .ci-cdash-records-strip__item { flex: 0 0 190px; width: 190px; min-width: 190px; min-height: 150px; border: 1px solid #e5e7eb; border-radius: 6px; padding: 18px 12px; scroll-snap-align: start; }
}
@media (max-width: 1100px), (hover: none), (pointer: coarse) {
  .ci-cdash .ci-cdash-about-cashout__step:hover,
  .ci-cdash .ci-cdash-about-cashout__col:hover { background: #fff !important; border-color: #e5e7eb !important; transform: none; }
  .ci-cdash .ci-cdash-about-cashout__step:hover h3,
  .ci-cdash .ci-cdash-about-cashout__step:hover p,
  .ci-cdash .ci-cdash-about-cashout__step:hover strong,
  .ci-cdash .ci-cdash-about-cashout__col:hover h3,
  .ci-cdash .ci-cdash-about-cashout__col:hover p,
  .ci-cdash .ci-cdash-about-cashout__col:hover strong { color: #374151 !important; }
  .ci-cdash .ci-cdash-about-cashout__step:hover > span,
  .ci-cdash .ci-cdash-about-cashout__step:hover .ci-cdash-about-cashout__label,
  .ci-cdash .ci-cdash-about-cashout__step:hover .ci-cdash-about-cashout__num,
  .ci-cdash .ci-cdash-about-cashout__col:hover .ci-cdash-about-cashout__num { color: #8b1538 !important; }
}

@media (max-width: 1100px), (hover: none), (pointer: coarse) {
  .ci-cdash .ci-cdash-about-cashout__step:hover .ci-cdash-about-cashout__icon,
  .ci-cdash .ci-cdash-about-cashout__col:hover .ci-cdash-about-cashout__col-icon { background: #fff1f5; color: #8b1538; }
  .ci-cdash .ci-cdash-about-cashout__col:hover .ci-cdash-about-cashout__item span,
  .ci-cdash .ci-cdash-about-cashout__col:hover .ci-cdash-about-cashout__check { color: #8b1538 !important; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .ci-cdash .ci-cdash-snap__list > div { padding: 12px; }
  .ci-cdash .ci-cdash-snap__drawdown dd { font-size: 20px; }
}


/* Keep supply methodology descriptions fully visible on narrow screens. */
@media (max-width: 767px) {
 .ci-cdash .ci-cdash-tokenomics .ci-cdash-tech__method-steps { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0,1fr); overflow: visible; }
 .ci-cdash .ci-cdash-tokenomics .ci-cdash-tech__method-step { min-width: 0; width: auto; }
 .ci-cdash .ci-cdash-tokenomics .ci-cdash-tech__method-step > p { min-width: 0; overflow-wrap: anywhere; }
}
