/* BTCTreasuryInfo.com starter theme */
:root {
    --bg: #071019;
    --panel: #0c1924;
    --border: rgba(255, 255, 255, 0.11);
    --text: #f5f7f9;
    --muted: #a9b7c4;
    --gold: #f2a900;
    --gold-light: #ffd166;
    --radius: 18px;
    --width: 1240px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(242, 169, 0, 0.10), transparent 30%),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--gold-light);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 16, 25, 0.93);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--width), calc(100% - 40px));
    min-height: 78px;
    margin: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--text);
    text-decoration: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
}

.bitcoin-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: #111;
    font-size: 27px;
    font-weight: 900;
}

.main-nav {
    display: flex;
    gap: 5px;
}

.main-nav a {
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.main-nav .acquire-link {
    border: 1px solid rgba(242, 169, 0, 0.4);
    color: var(--gold-light);
}

.menu-button {
    display: none;
}

.hero,
.stats,
.content-section,
.sale-banner,
.page-hero,
.directory-section,
.profile-header,
.profile-grid,
.article {
    width: min(var(--width), calc(100% - 40px));
    margin-inline: auto;
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 70px;
    align-items: center;
    min-height: 650px;
    padding: 90px 0;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.acquire-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero h1 span {
    display: block;
    color: var(--gold);
}

.hero-description {
    max-width: 760px;
    color: var(--muted);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 49px;
    padding: 0 21px;
    align-items: center;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    background: var(--gold);
    color: #111;
}

.button.secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

.notice {
    padding-left: 14px;
    border-left: 3px solid var(--gold-light);
    color: var(--muted);
    font-size: 13px;
}

.price-card,
.panel,
.company-card,
.toolbar,
.article,
.contact-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.price-card {
    padding: 31px;
}

.price-card > span,
.price-card small {
    color: var(--muted);
}

.price-card > strong {
    display: block;
    color: var(--gold-light);
    font-size: 48px;
}

.price-card hr {
    margin: 26px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.price-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.price-stats b,
.price-stats small {
    display: block;
}

.price-stats b {
    font-size: 26px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 80px;
}

.stats article {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.stats span,
.stats small {
    display: block;
    color: var(--muted);
}

.stats strong {
    display: block;
    margin: 7px 0;
    font-size: 30px;
}

.content-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    margin-top: 30px;
}

.company-card {
    display: flex;
    min-height: 320px;
    padding: 24px;
    flex-direction: column;
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ticker {
    padding: 7px 11px;
    border-radius: 10px;
    background: rgba(242, 169, 0, 0.15);
    color: var(--gold-light);
    font-weight: 900;
}

.status {
    padding: 5px 9px;
    border: 1px solid rgba(255, 209, 102, 0.3);
    border-radius: 999px;
    color: var(--gold-light);
    font-size: 10px;
}

.company-card h3 {
    margin: 24px 0 5px;
    font-size: 24px;
}

.company-card p {
    color: var(--muted);
}

.company-card dl {
    margin: 15px 0;
}

.company-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.company-card dt {
    color: var(--muted);
}

.company-card dd {
    margin: 0;
    text-align: right;
}

.company-card > a {
    margin-top: auto;
    text-decoration: none;
    font-weight: 800;
}

.sale-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 90px;
    padding: 40px;
    border: 1px solid rgba(242, 169, 0, 0.4);
    border-radius: 24px;
    background: rgba(242, 169, 0, 0.08);
}

.sale-banner h2 {
    margin: 0;
    font-size: 38px;
}

.sale-banner p {
    color: var(--muted);
}

.page-hero {
    padding: 90px 0 55px;
}

.page-hero p:last-child {
    color: var(--muted);
    font-size: 18px;
}

.directory-section {
    padding-bottom: 90px;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr 230px 170px;
    gap: 15px;
    align-items: end;
    padding: 18px;
    margin-bottom: 20px;
}

.toolbar label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.toolbar input,
.toolbar select {
    width: 100%;
    min-height: 44px;
    margin-top: 7px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
}

.count strong {
    color: var(--gold-light);
    font-size: 28px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 13px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
}

th {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

td small {
    display: block;
    color: var(--muted);
}

.gold {
    color: var(--gold-light);
    font-weight: 900;
}

.empty {
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.profile-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: 65px 0 35px;
}

.profile-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.profile-ticker {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 12px;
    background: rgba(242, 169, 0, 0.15);
    color: var(--gold-light);
    font-weight: 900;
}

.profile-title h1 {
    margin: 0;
    font-size: 56px;
    line-height: 1;
}

.profile-header > aside {
    min-width: 230px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
}

.profile-header aside span,
.profile-header aside strong,
.profile-header aside small {
    display: block;
}

.profile-header aside span,
.profile-header aside small {
    color: var(--muted);
}

.profile-header aside strong {
    color: var(--gold-light);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 20px;
    padding-bottom: 90px;
}

.profile-main,
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    padding: 25px;
}

.panel h2 {
    margin-top: 0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric-grid > div {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
}

.metric-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.details {
    margin: 0;
}

.details div {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.details dt {
    color: var(--muted);
}

.details dd {
    margin: 0;
}

.sidebar .details div {
    grid-template-columns: 1fr;
    gap: 2px;
}

.sidebar p {
    color: var(--muted);
}

.article {
    max-width: 950px;
    margin-bottom: 90px;
    padding: 35px;
}

.article h2 {
    margin-top: 35px;
}

.article p,
.article li {
    color: var(--muted);
}

.error {
    padding: 15px;
    border: 1px solid #a55;
    border-radius: 10px;
    color: #faa;
}

.acquire-hero {
    width: min(var(--width), calc(100% - 40px));
    margin: auto;
    padding: 90px 0 45px;
    text-align: center;
}

.acquire-hero > div {
    color: var(--gold);
    font-size: 20px;
}

.acquire-hero p:last-child {
    max-width: 800px;
    margin: 25px auto 0;
    color: var(--muted);
    font-size: 18px;
}

.contact-card {
    margin-top: 30px;
    padding: 30px;
    text-align: center;
}

.contact-card span {
    color: var(--gold-light);
    text-transform: uppercase;
}

.contact-card h2 {
    margin: 8px 0;
    font-size: 34px;
}

.site-footer {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    background: #050c12;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 45px;
    width: min(var(--width), calc(100% - 40px));
    margin: auto;
}

.footer-grid h2 {
    font-size: 15px;
}

.footer-grid p {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 980px) {
    .menu-button {
        display: grid;
        width: 43px;
        height: 43px;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--panel);
        color: var(--text);
    }

    .main-nav {
        position: absolute;
        top: 78px;
        right: 20px;
        display: none;
        width: min(330px, calc(100% - 40px));
        padding: 12px;
        flex-direction: column;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 14px;
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hero,
    .stats,
    .content-section,
    .sale-banner,
    .page-hero,
    .directory-section,
    .profile-header,
    .profile-grid,
    .article,
    .acquire-hero {
        width: calc(100% - 26px);
    }

    .brand small {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero h1,
    .page-hero h1,
    .acquire-hero h1 {
        font-size: 41px;
    }

    .stats,
    .card-grid,
    .metric-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .sale-banner,
    .profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar {
        grid-template-columns: 1fr;
    }

    .profile-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-title h1 {
        font-size: 42px;
    }

    .details div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}


.price-time {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.directory-price-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--gold);
    background: rgba(242, 169, 0, 0.06);
    color: var(--muted);
    font-size: 12px;
}

.metric-grid small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}


/* Treasury classification and ownership enhancements */
.classification-badge,
.type-label {
    display: inline-block;
    width: fit-content;
    padding: 5px 9px;
    border: 1px solid rgba(242, 169, 0, 0.28);
    border-radius: 999px;
    color: var(--gold-light);
    background: rgba(242, 169, 0, 0.08);
    font-size: 11px;
    line-height: 1.35;
}

.company-card .classification-badge {
    margin: 4px 0 10px;
}

.toolbar-expanded {
    grid-template-columns: minmax(240px, 1.4fr) repeat(5, minmax(145px, 1fr)) 130px;
}

.directory-price-note,
.component-note,
.muted-copy {
    color: var(--muted);
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.qualification-grid > div {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
}

.qualification-grid span,
.component-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.component-grid strong {
    font-size: 17px;
}

@media (max-width: 1180px) {
    .toolbar-expanded {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .toolbar-expanded,
    .qualification-grid {
        grid-template-columns: 1fr;
    }
}


/* UPDATE_57_MARKET_METRICS_CSS */
.market-metrics-card {
  margin-top: 1.25rem;
}

.market-metrics-disclaimer,
.market-metrics-note {
  margin: 0.5rem 0 1rem;
  opacity: 0.9;
  line-height: 1.5;
}

.market-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.market-metric-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
}

.market-metric-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.market-metric-value {
  font-size: 1.15rem;
  font-weight: 700;
}

.market-metrics-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.market-metrics-links a {
  text-decoration: none;
}

/* UPDATE_58_MARKET_METRICS_POLISH_CSS */
.market-metrics-card-polished {
  position: relative;
  overflow: hidden;
}

.market-metrics-card-polished::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(255, 190, 92, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 42%);
}

.market-metrics-card-polished > * {
  position: relative;
  z-index: 1;
}

.market-metrics-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.market-metrics-heading-row h2 {
  margin-bottom: 0.2rem;
}

.market-metrics-kicker {
  margin: 0;
  opacity: 0.78;
  font-size: 0.92rem;
}

.market-metrics-date-pill {
  border: 1px solid rgba(255, 190, 92, 0.38);
  background: rgba(255, 190, 92, 0.10);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
  white-space: nowrap;
}

.polished-market-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.polished-market-metric-item {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.polished-market-metric-item .market-metric-value {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.05;
}

.market-metric-status-value {
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

.market-metric-subtitle {
  margin-top: 0.45rem;
  opacity: 0.72;
  font-size: 0.88rem;
}

.mnav-gauge-wrap {
  margin: 1.15rem 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.16);
}

.mnav-gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.96rem;
}

.mnav-gauge-header strong {
  font-size: 1.15rem;
}

.mnav-gauge-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(210, 82, 82, 0.35) 0%,
    rgba(255, 190, 92, 0.42) 50%,
    rgba(80, 180, 120, 0.35) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mnav-gauge-nav-line {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.58);
  transform: translateX(-50%);
}

.mnav-gauge-pointer {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  border: 3px solid rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.22);
}

.mnav-gauge-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.55rem;
  opacity: 0.78;
  font-size: 0.82rem;
}

.mnav-gauge-caption {
  margin: 0.75rem 0 0;
  opacity: 0.88;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .market-metrics-heading-row {
    flex-direction: column;
  }

  .market-metrics-date-pill {
    white-space: normal;
  }
}

