/* v12 — 100 Database Cost Reference
   Static, evidence-first presentation. No calculator or inferred estate TCO. */

.cost-jump {
  margin-top: 18px;
}

.cost-analysis {
  position: relative;
  overflow: hidden;
}

.cost-analysis::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103,213,255,.42), rgba(113,228,182,.26), transparent);
}

.cost-scope {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 16px;
}

.cost-scope article {
  min-height: 88px;
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(13,29,48,.86), rgba(8,20,34,.72));
}

.cost-scope span {
  display: block;
  color: var(--faint);
  font: 720 10px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cost-scope strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.cost-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin: 0 0 18px;
  padding: 15px 17px;
  border: 1px solid rgba(255,212,121,.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,212,121,.075), rgba(103,213,255,.035));
}

.cost-warning b {
  color: var(--amber);
  font: 800 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
}

.cost-warning p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.cost-table-shell {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(7,18,31,.58);
  box-shadow: 0 20px 55px rgba(0,0,0,.16);
}

.cost-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}

.cost-table th,
.cost-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.cost-table th {
  padding: 13px 15px;
  color: var(--muted);
  background: rgba(16,39,61,.82);
  font: 760 10px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cost-table td {
  padding: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cost-table tr:last-child td { border-bottom: 0; }

.cost-platform {
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.cost-category {
  display: inline-flex;
  margin-top: 7px;
  padding: 3px 8px;
  border: 1px solid rgba(103,213,255,.20);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(103,213,255,.05);
  font: 720 9px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
}

.cost-rate {
  color: var(--text);
  font-weight: 760;
}

.cost-rate + .cost-rate { margin-top: 4px; }

.cost-ref {
  color: var(--green);
  font-weight: 800;
}

.cost-unknown {
  color: var(--amber);
  font-weight: 780;
}

.cost-note {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.45;
}

.cost-bottom-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: start;
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(103,213,255,.07), rgba(113,228,182,.025));
}

.cost-bottom-line strong {
  color: var(--text);
  white-space: nowrap;
}

.cost-bottom-line p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.cost-sources {
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10,24,40,.48);
}

.cost-sources summary {
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.cost-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 13px;
}

.cost-source-links a {
  color: var(--cyan);
  font-size: 12px;
  text-decoration: none;
  text-underline-offset: 3px;
}

.cost-source-links a:hover { text-decoration: underline; }

:root[data-theme="light"] .cost-scope article,
:root[data-theme="light"] .cost-table-shell,
:root[data-theme="light"] .cost-sources {
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 42px rgba(31,72,98,.07);
}

:root[data-theme="light"] .cost-table th {
  background: rgba(229,240,247,.94);
}

:root[data-theme="light"] .cost-warning {
  background: linear-gradient(135deg, rgba(154,92,0,.06), rgba(0,126,174,.035));
}

@media (max-width: 860px) {
  .cost-scope { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cost-bottom-line { grid-template-columns: 1fr; }
  .cost-bottom-line strong { white-space: normal; }
}

@media (max-width: 540px) {
  .cost-scope { grid-template-columns: 1fr; }
  .cost-warning { grid-template-columns: 1fr; }
}
