/* ============================================================
   Coindaily - Exchanges page (SEO + data)
   Complements styles.css.
   ============================================================ */

.page-hero { padding: 18px 0 20px; border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-size: 26px; font-weight: 700; color: var(--tx-hi); letter-spacing: -0.025em; }
.page-hero h1 .accent { color: var(--amber); }
.page-hero .ph-sub { font-size: 13.5px; color: var(--tx-mid); margin-top: 8px; max-width: 820px; line-height: 1.6; }

.ex-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 20px 0 0; }
.ex-tabs button { padding: 8px 15px; border-radius: 8px; font-size: 13px; color: var(--tx-mid); font-weight: 500; border: 1px solid transparent; background: none; transition: .12s; }
.ex-tabs button:hover { color: var(--tx-hi); background: var(--panel-2); }
.ex-tabs button.active { color: var(--amber); border-color: rgba(201,154,75,.3); background: rgba(201,154,75,.06); }

/* stat strip */
.ex-stats { display: flex; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; margin: 16px 0; }
.ex-stat { display: flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-right: 1px solid var(--hairline); }
.ex-stat:last-child { border-right: 0; }
.ex-stat .l { font-family: var(--mono); font-size: 10px; color: var(--tx-dim); text-transform: uppercase; letter-spacing: .04em; }
.ex-stat .v { font-family: var(--mono); font-size: 13.5px; color: var(--tx-hi); font-weight: 600; }
@media (max-width: 560px) {
  .ex-stat { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--hairline); justify-content: space-between; }
  .ex-stat:last-child { border-bottom: 0; }
}

/* table */
.ex-table { width: 100%; border-collapse: collapse; }
.ex-table thead th { text-align: right; font-size: 10px; color: var(--tx-dim); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.ex-table th.l, .ex-table td.l { text-align: left; }
.ex-table th.c, .ex-table td.c { text-align: center; }
.ex-table td { padding: 13px 14px; border-bottom: 1px solid var(--hairline-2); text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--tx); }
.ex-table tbody tr:last-child td { border-bottom: none; }
.ex-table tbody tr:hover { background: rgba(255,255,255,.018); }
.ex-table .rk { color: var(--tx-dim); width: 30px; }
.ex-cell { display: flex; align-items: center; gap: 11px; }
.ex-badge { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.ex-badge img { width: 100%; height: 100%; object-fit: cover; }
.ex-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.ex-meta .nm { font-family: var(--sans); font-weight: 600; color: var(--tx-hi); font-size: 13px; }
.ex-meta .sub { font-family: var(--sans); font-size: 10.5px; color: var(--tx-dim); white-space: nowrap; }

/* table scroll + sort + trade button + note */
.ex-scroll { overflow-x: auto; }
.ex-scroll .ex-table { min-width: 880px; }
.ex-table thead th.cd-sortable { cursor: pointer; user-select: none; }
.ex-table thead th.cd-sortable:hover { color: var(--tx-hi); }
.ex-table th .cd-sind { margin-left: 5px; font-size: 8px; opacity: .35; }
.ex-table th.cd-asc .cd-sind, .ex-table th.cd-desc .cd-sind { opacity: 1; color: var(--amber); }
.ex-trade { display: inline-flex; align-items: center; gap: 5px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--amber); border: 1px solid rgba(201,154,75,.32); border-radius: 7px; padding: 5px 11px; transition: .12s; white-space: nowrap; }
.ex-trade:hover { background: var(--amber); color: #100B02; border-color: var(--amber); }
.ex-trade svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
.ex-note { padding: 12px 16px 2px; font-size: 11px; color: var(--tx-dim); line-height: 1.55; }
.ex-note a { color: var(--amber); }
@media (max-width: 980px) { .ex-table .col-mid { display: none; } .ex-scroll .ex-table { min-width: 660px; } }
.tick { color: var(--up); font-weight: 700; } .cross { color: var(--tx-faint); }
.pill-method { display: inline-block; font-family: var(--mono); font-size: 9.5px; color: var(--tx-mid); border: 1px solid var(--hairline); border-radius: 4px; padding: 1px 5px; margin: 1px; }
/* regulation pills (Regulation column): AUSTRAC = green (DCE registered), AFSL = amber (ASIC licensed - the higher bar) */
.reg-pill { display: inline-block; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .03em; border-radius: 4px; padding: 1px 5px; margin: 1px 2px 1px 0; white-space: nowrap; color: #6FB58A; border: 1px solid rgba(79,158,124,.35); background: rgba(79,158,124,.08); }
.reg-pill.reg-afsl { color: var(--amber); border-color: rgba(201,154,75,.42); background: rgba(201,154,75,.10); }
.liq-ind { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.liq-ind .bar { width: 52px; height: 5px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.liq-ind .bar i { display: block; height: 100%; }
.liq-ind .lab { font-size: 11px; font-family: var(--sans); }
.score-pill { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.ex-trade { font-size: 11px; color: var(--amber); }

/* fees bar */
.fee-list { padding: 8px 0; }
.fee-row { display: grid; grid-template-columns: 130px 1fr 64px; align-items: center; gap: 12px; padding: 8px 18px; }
.fee-row .fn { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--tx-hi); font-weight: 500; }
.fee-row .fbar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.fee-row .fbar i { display: block; height: 100%; }
.fee-row .fv { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--tx); }

/* treemap */
.tm-wrap { position: relative; width: 100%; height: 360px; }
.tm-tile { position: absolute; border: 1px solid rgba(8,8,9,.6); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px; overflow: hidden; transition: filter .1s; }
.tm-tile:hover { filter: brightness(1.16); }
.tm-tile .ts { font-weight: 700; color: #fff; line-height: 1.05; }
.tm-tile .tc { font-family: var(--mono); color: rgba(255,255,255,.85); margin-top: 3px; }

/* regulatory cards */
.reg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.reg-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 18px; }
.reg-card .rh { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--tx-hi); margin-bottom: 10px; }
.reg-card .rh .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(201,154,75,.1); color: var(--amber); font-size: 13px; }
.reg-card p { font-size: 12.5px; line-height: 1.6; color: var(--tx-mid); }

/* prose / SEO content */
.prose { max-width: 860px; }
.prose p { font-size: 14px; line-height: 1.75; color: var(--tx); margin-bottom: 14px; }
.prose p strong { color: var(--tx-hi); }
.prose ul { margin: 0 0 16px; padding-left: 4px; list-style: none; }
.prose ul li { font-size: 14px; line-height: 1.65; color: var(--tx); padding-left: 22px; position: relative; margin-bottom: 8px; }
.prose ul li::before { content: "→"; position: absolute; left: 0; color: var(--amber); }
.prose h3 { font-size: 16px; color: var(--tx-hi); font-weight: 600; margin: 22px 0 10px; }
.prose a.inl { color: var(--amber); }

.sec-title { font-size: 20px; font-weight: 700; color: var(--tx-hi); letter-spacing: -0.02em; margin: 34px 0 16px; }
.sec-sub { font-size: 13px; color: var(--tx-dim); margin: -10px 0 18px; }

/* FAQ */
.faq details { border: 1px solid var(--hairline); border-radius: var(--r); margin-bottom: 10px; background: var(--panel); overflow: hidden; }
.faq summary { padding: 15px 18px; font-size: 14px; font-weight: 600; color: var(--tx-hi); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tx-mid); font-family: var(--mono); font-size: 17px; }
.faq details[open] summary::after { content: "−"; } .faq details[open] summary { color: var(--amber); }
.faq .faq-body { padding: 0 18px 16px; font-size: 13.5px; line-height: 1.7; color: var(--tx-mid); }
.faq .faq-body a { color: var(--amber); }

@media (max-width: 1000px) { .ex-stats { grid-template-columns: repeat(2, 1fr); } .reg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ex-stats, .reg-grid { grid-template-columns: 1fr; } }

/* deep-dive page links in the tables */
a.ex-link { color: var(--tx-hi); text-decoration: none; font-weight: 600; }
a.ex-link:hover { color: var(--amber); text-decoration: underline; }

/* ============ YMYL / E-E-A-T + hierarchy additions ============ */

/* authority byline */
.ex-byline { display: flex; align-items: center; gap: 11px; margin-top: 18px; font-size: 12.5px; color: var(--tx-mid); }
.ex-byline .ava { width: 30px; height: 30px; border-radius: 50%; background: rgba(201,154,75,.14); color: var(--amber); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; flex: none; }
.ex-byline .who { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; min-width: 0; }
.ex-byline .who b { color: var(--tx-hi); font-size: 12.5px; }
.ex-byline .who .sub { font-size: 11.5px; color: var(--tx-dim); }
.ex-byline .who .sub a { color: var(--amber); text-decoration: none; }
.ex-byline .who .sub a:hover { color: var(--amber-hi); text-decoration: underline; }

/* best-for picks */
.bestfor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bestfor { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 15px 16px 13px; text-decoration: none; color: inherit; transition: .14s; }
.bestfor:hover { border-color: rgba(201,154,75,.45); background: var(--panel-2); transform: translateY(-2px); }
.bf-cat { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 11px; }
.bf-ex { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.bf-ex img { width: 24px; height: 24px; border-radius: 50%; }
.bf-ex b { font-size: 14px; color: var(--tx-hi); font-weight: 600; flex: 1; min-width: 0; }
.bf-score { font-family: var(--mono); font-size: 11px; font-weight: 600; color: #5f9277; border: 1px solid rgba(95,146,119,.4); border-radius: var(--r); padding: 2px 6px; }
.bestfor p { font-size: 11.5px; line-height: 1.55; color: var(--tx-mid); margin: 0 0 11px; }
.bf-go { margin-top: auto; font-size: 11px; color: var(--amber); font-weight: 500; opacity: .6; transition: opacity .14s; }
.bestfor:hover .bf-go { opacity: 1; }

/* methodology box */
.method { background: linear-gradient(150deg, var(--panel-2) 0%, var(--panel) 55%); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px 24px; margin: 34px 0 8px; scroll-margin-top: 90px; }
.method-head h2 { font-size: 18px; font-weight: 700; color: var(--tx-hi); letter-spacing: -0.02em; margin: 0 0 7px; }
.method-head p { font-size: 13px; color: var(--tx-mid); line-height: 1.6; max-width: 760px; margin: 0 0 18px; }
.method-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.method-item { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r); padding: 13px 14px; }
.method-item .w { display: inline-block; font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--amber); margin-bottom: 6px; }
.method-item b { display: block; font-size: 12.5px; color: var(--tx-hi); margin-bottom: 5px; }
.method-item p { font-size: 11px; line-height: 1.5; color: var(--tx-dim); margin: 0; }
.method-foot { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.method-foot .ind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #5f9277; white-space: nowrap; flex: none; }
.method-foot p { font-size: 12px; line-height: 1.6; color: var(--tx-mid); margin: 0; }
.method-foot p b { color: var(--tx); }
.method-foot a { color: var(--amber); text-decoration: none; }

/* sources */
.ex-sources ol { margin: 0 0 6px; padding-left: 20px; }
.ex-sources li { font-size: 12.5px; color: var(--tx-mid); line-height: 1.7; margin-bottom: 5px; }
.ex-sources a { color: var(--amber); text-decoration: none; }
.ex-sources a:hover { color: var(--amber-hi); }

@media (max-width: 1000px) { .bestfor-grid { grid-template-columns: repeat(2, 1fr); } .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bestfor-grid { grid-template-columns: 1fr; } .method-grid { grid-template-columns: 1fr; } .method-foot { flex-direction: column; gap: 8px; } }

/* AUSTRAC verified trust badge in the hero */
.ph-titlerow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.austrac-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #5f9277; background: rgba(79,158,124,.1); border: 1px solid rgba(79,158,124,.35); border-radius: 20px; padding: 5px 12px 5px 10px; white-space: nowrap; cursor: default; }
.austrac-badge svg { color: #5f9277; flex: none; }

/* ============================================================
   Loading skeleton (body.exch-loading) - shimmer every data
   value until the real CoinGecko volume resolves. Never flash a
   modelled/hardcoded number: only a shimmer, real data, or "-".
   ============================================================ */
@keyframes exch-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
/* stat strip values (when present) shimmer while loading */
body.exch-loading .ex-stat .v,
body.exch-loading #es-austrac, body.exch-loading #es-cheap,
body.exch-loading #es-tight, body.exch-loading #es-vol {
  color: transparent !important; border-radius: 5px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: exch-shimmer 1.3s ease-in-out infinite;
}
/* skeleton cells injected into the table while loading (no numbers rendered) */
.exch-sk { display: block; height: 13px; border-radius: 4px; max-width: 140px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: exch-shimmer 1.3s ease-in-out infinite; }
.exch-sk.sk-sm { max-width: 60px; }
.exch-sk.sk-ic { width: 28px; height: 28px; border-radius: 7px; }
.exch-sk-row td { padding: 13px 14px; border-bottom: 1px solid var(--hairline-2); }
.exch-sk-row:last-child td { border-bottom: none; }
.exch-sk-cell { display: flex; align-items: center; gap: 11px; }
/* fee bars shimmer (no percentages rendered) */
.exch-sk-fee { display: grid; grid-template-columns: 130px 1fr 64px; align-items: center; gap: 12px; padding: 8px 18px; }
.exch-sk-fee .fbar { height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: exch-shimmer 1.3s ease-in-out infinite; }
/* treemap shimmer overlay - inner opacity 0, ::after shimmers the whole panel */
body.exch-loading .tm-wrap { position: relative; }
body.exch-loading .tm-wrap > * { opacity: 0; }
body.exch-loading .tm-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; z-index: 4;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: exch-shimmer 1.3s ease-in-out infinite;
}
