/* Earthquake basics (/learn). Builds on the guide styles in styles.css. */
.sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.sharepage { display: inline-flex; align-items: center; gap: 8px; }
.sharepage svg { width: 16px; height: 16px; flex: none; }
.sharebar .hint { color: var(--muted); font-size: 13px; }

.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.qgrid .hubpart h2 { font-size: 20px; }

/* Data tables (magnitude steps, intensity scale). */
table.data { margin: 8px 0 16px; font-size: 15px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; font-size: 15px; color: #d5dae2; }
table.data thead th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.data td:first-child, table.data tbody th { font-weight: 700; color: var(--text); white-space: nowrap; }
table.data td:last-child { text-align: left; font-size: 15px; font-weight: 400; color: #d5dae2; }
table.data td.num { font-variant-numeric: tabular-nums; }

/* Relative-energy squares: each square's area is the energy, so the scale stays honest. */
.energy { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 16px 0 6px; }
.energy figure { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.energy span { display: block; background: var(--c); border-radius: 2px; margin: 0 auto 6px; }
.energy b { display: block; color: var(--text); font-size: 15px; }

@media print {
  .sharebar { display: none !important; }
}
