/* Platform Proof — shared styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --gold: #d4af37;
  --gold-bright: #ffd700;
  --green: #3fb950;
  --red: #f85149;
}
html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}
.container { max-width: 880px; margin: 0 auto; padding: 48px 24px; }
.brand-mark {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
p, li { font-size: 16px; color: var(--text); margin-bottom: 12px; }
.subtitle { color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}
.bullet-list { list-style: none; padding: 0; }
.bullet-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 14px;
}
.bullet-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.video-embed iframe, .video-embed .placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-embed .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.video-embed .placeholder .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #0d1117;
  border: none;
  font-weight: 700;
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}
.btn-block { width: 100%; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.form input {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form input:focus {
  outline: none;
  border-color: var(--gold);
}
.form .error {
  color: var(--red);
  font-size: 14px;
  min-height: 18px;
}
.note-card {
  display: block;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  margin-bottom: 14px;
}
.note-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.note-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.note-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.note-info { font-size: 13px; color: var(--muted); }
footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #6e7681;
  text-align: center;
}
.social-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.social-row a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.15s;
}
.social-row a:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.locked-banner {
  padding: 16px 20px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--gold);
  text-align: center;
}
@media (max-width: 600px) {
  .container { padding: 32px 16px; }
  h1 { font-size: 28px; }
}

/* ============================================================
   Sidebar layout (gated pages: /notes, /notes/<slug>)
   ============================================================ */
body.has-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0a0e15;
  border-right: 1px solid var(--border);
  padding: 32px 20px 32px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.sidebar-brand-sub {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
}
.sidebar-section {
  margin-bottom: 28px;
}
.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding: 0 12px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav a {
  display: block;
  padding: 9px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.12s ease;
}
.sidebar-nav a:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}
.sidebar .btn {
  font-size: 14px;
  padding: 12px 16px;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: #6e7681;
}
body.has-sidebar .container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px;
}
body.has-sidebar footer {
  display: none; /* sidebar replaces the footer's role */
}
@media (max-width: 768px) {
  body.has-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px;
  }
  .sidebar-brand-sub { margin-bottom: 16px; }
  .sidebar-section { margin-bottom: 16px; }
  body.has-sidebar .container { padding: 32px 16px; }
}
