/* Signoff Evals: domain sites (domain sites v1.0) — hub cards and the domain leaderboard. */

/* ---------- topbar on a domain site */
.dom-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--dc, var(--accent)) 45%, var(--line));
  background: color-mix(in srgb, var(--dc, var(--accent)) 10%, transparent); color: var(--text); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.dom-pill .ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--bg); background: var(--dc, var(--accent)); }
.dom-pill .ico svg { width: 15px; height: 15px; }
.dom-all { color: var(--text-3); font-size: 13.5px; white-space: nowrap; }
.dom-all:hover { color: var(--text); text-decoration: none; }
@media (max-width: 900px) { .dom-pill .nm { display: none; } .dom-pill { padding: 4px; } }
@media (max-width: 720px) { .dom-all .long { display: none; } }

/* ---------- hub */
.hub-load { padding: 40px 0; }
.hub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 30px; margin: 6px 0 28px; }
.hub-eyebrow { color: var(--accent); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.hub-head h1 { margin: 6px 0 0; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.04; letter-spacing: -.03em; }
.hub-head p { margin: 10px 0 0; color: var(--text-2); max-width: 60ch; }
.hub-totals { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; }
.hub-totals b { color: var(--text); font-family: var(--display); font-size: 20px; font-weight: 700; margin-right: 6px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; color: var(--text); overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--dc) 13%, transparent), transparent 55%), var(--surface);
  border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; animation: hubIn .55s cubic-bezier(.2,.8,.2,1) both; }
.hub-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--dc), transparent 75%); }
.hub-card:hover { text-decoration: none; transform: translateY(-4px); border-color: color-mix(in srgb, var(--dc) 55%, var(--line)); box-shadow: 0 26px 60px -30px color-mix(in srgb, var(--dc) 60%, transparent); }
@keyframes hubIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hub-top { display: flex; align-items: center; gap: 12px; }
.hub-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--dc); background: color-mix(in srgb, var(--dc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--dc) 35%, transparent); }
.hub-kicker { color: var(--text-3); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hub-card h2 { margin: 2px 0 0; font-size: 25px; letter-spacing: -.02em; }
.hub-card > p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.hub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.hub-stats b { display: block; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.1; }
.hub-stats span { color: var(--text-3); font-size: 12px; }
.hub-leads { display: grid; gap: 8px; }
.hub-leads.empty { padding: 6px 0; }
.hub-lead { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.hub-lead-k { color: var(--text-3); font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; }
.hub-lead-v { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hub-lead-v b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-lead-n { font-family: var(--display); font-weight: 700; font-size: 16px; }
@media (max-width: 560px) { .hub-lead { grid-template-columns: minmax(0, 1fr) auto; } .hub-lead-k { grid-column: 1 / -1; } .hub-stats b { font-size: 18px; } }
.hub-h { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.hub-h i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.hub-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.hub-host { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-go { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--bg); background: var(--dc); white-space: nowrap; }
.hub-go span { transition: transform .2s ease; }
.hub-card:hover .hub-go span { transform: translateX(4px); }

/* ---------- domain leaderboard */
.db-intro { margin-bottom: 22px; }
.db-how { margin-bottom: 18px; }
.db-how-head h2 { margin: 0; font-size: 18px; }
.db-how-head p { margin: 6px 0 14px; color: var(--text-2); font-size: 14.5px; }
.db-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .db-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .db-metrics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; }
  .db-metric { flex: 0 0 72%; scroll-snap-align: start; } }
.db-metric { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit;
  transition: border-color .18s, background .18s, transform .18s; }
.db-metric:hover { border-color: var(--text-3); transform: translateY(-2px); }
.db-metric[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); box-shadow: var(--glow); }
.db-mk { display: flex; flex-direction: column; gap: 2px; font-family: var(--display); font-weight: 700; font-size: 15.5px; }
.db-mk i { font-style: normal; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--text-3); }
.db-metric[aria-selected="true"] .db-mk i { color: var(--accent); }
.db-mw { color: var(--text-2); font-size: 12.5px; line-height: 1.4; }

.db-high { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 860px) { .db-high { grid-template-columns: 1fr; } }
.db-hl { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: border-color .18s, transform .18s; }
.db-hl:hover { text-decoration: none; border-color: var(--text-3); transform: translateY(-2px); }
.db-hl-k { color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.db-hl-v { font-family: var(--display); font-size: 32px; line-height: 1; letter-spacing: -.02em; color: var(--accent); }
.db-hl-p { display: flex; align-items: center; gap: 9px; }
.db-hl-p > span { display: flex; flex-direction: column; min-width: 0; }
.db-hl-p b { font-size: 14px; }

.db-board { padding: 0; overflow: hidden; }
.db-board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.db-board-head h3 { margin: 0; font-size: 16px; }
.db-rows { list-style: none; margin: 0; padding: 6px 0; }
.db-row { position: relative; will-change: transform; }
.db-row.enter { animation: dbIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dbIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.db-link { display: grid; grid-template-columns: 34px minmax(170px, 260px) minmax(0, 1fr) 130px; align-items: center; gap: 16px; padding: 12px 20px; color: var(--text); }
.db-link:hover { text-decoration: none; background: var(--hover); }
.db-rank { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }
.db-row.top1 .db-rank { color: #1A1300; background: var(--gold); border-color: var(--gold); }
.db-row.top2 .db-rank { color: #12161C; background: var(--silver); border-color: var(--silver); }
.db-row.top3 .db-rank { color: #1E1006; background: var(--bronze); border-color: var(--bronze); }
.db-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.db-names { display: flex; flex-direction: column; min-width: 0; }
.db-names b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-bar { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.db-track { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.db-fill { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .7s cubic-bezier(.2,.8,.2,1), background .3s; box-shadow: 0 0 14px -2px currentColor; }
.db-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-3); font-size: 11.5px; }
.db-num { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.db-val { font-family: var(--display); font-size: 19px; font-weight: 700; white-space: nowrap; }
.db-gap { color: var(--text-3); font-size: 11.5px; white-space: nowrap; min-height: 1em; }
.db-row.top1 .db-gap { color: var(--accent); }
.db-row.na .db-val { color: var(--text-3); font-size: 14px; font-weight: 500; }
@media (max-width: 760px) {
  .db-link { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "rank who num" "bar bar bar"; gap: 10px 12px; padding: 13px 16px; }
  .db-rank { grid-area: rank; } .db-who { grid-area: who; } .db-num { grid-area: num; } .db-bar { grid-area: bar; }
}

.db-prices { margin-top: 16px; padding: 0; }
.db-prices summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 20px; list-style: none; }
.db-prices summary::-webkit-details-marker { display: none; }
.db-prices summary::before { content: "+"; font-family: var(--mono); color: var(--text-3); }
.db-prices[open] summary::before { content: "−"; }
.db-prices p { margin: 0 20px 12px; }
.db-prices .table-scroll { padding: 0 20px 16px; }

/* pairing dashboard: the cost KPI stands out */
.ix-kpi.ix-cost b { color: var(--cyan); }

/* ---------- small screens: keep the top bar on one line */
@media (max-width: 720px) {
  .topbar .wrap { gap: 10px; }
  .topbar .brand { font-size: 0; gap: 0; }
  .topbar .brand > span:not(.logo) { display: none; }
  .topbar .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
  .topbar .nav::-webkit-scrollbar { display: none; }
  .topbar .nav a { white-space: nowrap; }
  .dom-all { flex: none; }
  .db-high { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 18px; padding: 0 16px 6px; }
  .db-hl { flex: 0 0 78%; scroll-snap-align: start; }
}
