:root {
  --ctf-bg: #0b0f14;
  --ctf-panel: #121926;
  --ctf-text: #e6edf3;
  --ctf-muted: #a9b4bf;
  --ctf-accent: #78dce8;
  --ctf-border: rgba(230, 237, 243, 0.12);
  --ctf-code: #0f1724;
  --ctf-warn: #ffcc66;
}

/* ctfeed pages are full-bleed; base CSS constrains <main> site-wide. */
main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.ctfeed {
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(120,220,232,0.08), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,204,102,0.06), transparent 55%),
    var(--ctf-bg);
  color: var(--ctf-text);
  line-height: 1.45;
  min-height: 100vh;
}

/* links inside ctfeed only */
.ctfeed a { color: var(--ctf-accent); text-decoration: none; }
.ctfeed a:hover { text-decoration: underline; }

.ctfeed-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.ctfeed-header {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--ctf-border);
  margin-bottom: 28px;
}

.ctfeed-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ctfeed-brand .ctfeed-site {
  font-size: 14px;
  color: var(--ctf-muted);
  letter-spacing: 0.02em;
}

.ctfeed-title {
  font-size: 36px;
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
}

.ctfeed-subtitle {
  font-size: 18px;
  color: var(--ctf-muted);
  max-width: 90ch;
  margin: 0 0 10px;
}

.ctfeed-nav {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ctf-muted);
}

.ctfeed-nav a { color: var(--ctf-muted); }
.ctfeed-nav a.active { color: var(--ctf-text); font-weight: 600; }

.ctfeed-pillrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ctfeed-pill {
  font-size: 13px;
  color: var(--ctf-muted);
  border: 1px solid var(--ctf-border);
  background: rgba(18,25,38,0.6);
  padding: 7px 10px;
  border-radius: 999px;
}

.ctfeed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 24px;
}

@media (min-width: 840px) {
  .ctfeed-grid { grid-template-columns: 1fr 1fr; }
}

.ctfeed-card {
  background: rgba(18,25,38,0.75);
  border: 1px solid var(--ctf-border);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.ctfeed-card h2 {
  font-size: 18px;
  margin: 2px 0 10px;
  letter-spacing: -0.01em;
}

.ctfeed-card p { margin: 0 0 10px; color: var(--ctf-muted); }

.ctfeed-section { margin-top: 26px; }

.ctfeed-section h2 {
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.ctfeed ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--ctf-muted);
}

.ctfeed li { margin: 6px 0; }

.ctfeed code,
.ctfeed pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ctfeed pre {
  background: var(--ctf-code);
  border: 1px solid var(--ctf-border);
  border-radius: 14px;
  padding: 14px 14px;
  overflow-x: auto;
  margin: 12px 0 0;
  color: var(--ctf-text);
}

.ctfeed-note {
  border-left: 3px solid var(--ctf-warn);
  background: rgba(255,204,102,0.06);
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ctf-muted);
  border: 1px solid rgba(255,204,102,0.18);
  margin-top: 10px;
}

.ctfeed-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.ctfeed-button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--ctf-border);
  background: rgba(120,220,232,0.10);
  color: var(--ctf-text);
  font-weight: 600;
}

.ctfeed-button:hover { text-decoration: none; background: rgba(120,220,232,0.16); }

.ctfeed-muteli { color: var(--ctf-muted); }

.ctfeed-price {
  font-size: 28px;
  margin: 2px 0 6px;
  letter-spacing: -0.02em;
}

.ctfeed-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--ctf-muted);
  border: 1px solid var(--ctf-border);
  background: rgba(15,23,36,0.55);
  padding: 5px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.ctfeed-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--ctf-border);
  color: var(--ctf-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}