/* Big O cheat sheet — Codenza */
:root {
  --bigo-bg: #ffffff;
  --bigo-bg-subtle: #fafafa;
  --bigo-text: #1a1a1a;
  --bigo-muted: #5c5c5c;
  --bigo-border: #e8e8e8;
  --bigo-link: #2563eb;
  --bigo-max: 720px;
  --bigo-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --bigo-heading: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bigo-bg-subtle);
  color: var(--bigo-text);
  font-family: var(--bigo-font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.bigo-wrap {
  max-width: var(--bigo-max);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.bigo-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bigo-border);
}

.bigo-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.bigo-nav a {
  color: var(--bigo-muted);
  text-decoration: none;
  font-size: 15px;
}

.bigo-nav a:hover,
.bigo-nav a.active {
  color: var(--bigo-text);
}


.bigo-header h1 {
  font-family: var(--bigo-heading);
  font-size: 28px;
  font-weight: 500;
  margin: 12px 0 8px;
  letter-spacing: 0.02em;
}

.bigo-intro {
  margin: 0;
  font-size: 13px;
  color: var(--bigo-muted);
}

.bigo-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.bigo-section h2 {
  font-family: var(--bigo-heading);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--bigo-text);
}

.bigo-section h2::before {
  content: "•••";
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--bigo-muted);
}

.bigo-section h3 {
  font-family: var(--bigo-font);
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 10px;
  color: var(--bigo-text);
}

.bigo-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--bigo-muted);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid var(--bigo-border);
  background: var(--bigo-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--bigo-border);
}

.table-wrap thead th {
  font-weight: 500;
  color: var(--bigo-text);
  background: var(--bigo-bg-subtle);
}

.table-wrap tr.subhead th {
  font-weight: 400;
  font-size: 12px;
  color: var(--bigo-muted);
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.table-wrap tbody tr:hover td {
  background: rgba(0,0,0,0.02);
}

.table-wrap td:first-child {
  font-weight: 400;
}

.table-wrap sup {
  font-size: 0.75em;
}

.table-narrow .table-wrap table {
  max-width: 400px;
}

.bigo-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bigo-border);
  font-size: 13px;
  color: var(--bigo-muted);
}

.bigo-footer a {
  color: var(--bigo-link);
  text-decoration: none;
}

.bigo-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .table-wrap th,
  .table-wrap td {
    padding: 8px 10px;
    font-size: 13px;
  }
}
