/* Static Disruptarian blog base styles.
   Replaces the removed Divi/WordPress export stylesheet dependency. */
:root {
  color-scheme: dark;
  --bg: #050509;
  --panel: #101116;
  --panel-2: #17181f;
  --ink: #f4f0e8;
  --muted: #b8b4aa;
  --line: #2d2e36;
  --red: #ef3338;
  --gold: #c9a54c;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: radial-gradient(circle at 20% -10%, #242128 0, #07070b 34rem, var(--bg) 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  padding-bottom: 116px;
}
body, button, input, select, textarea { font: inherit; }
a { color: #c7d2ff; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #fff; }
img, iframe, video { max-width: 100%; height: auto; }

.container, .et_pb_row, #main-content .container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
#page-container, #main-content { min-height: 100vh; }
#main-content .container { padding-block: 32px 48px; }
#left-area {
  width: min(780px, 100%);
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .65em;
  letter-spacing: 0;
}
h1 { font-size: clamp(2rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em 1.4em; padding: 0; }
li + li { margin-top: .35em; }
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--red);
  background: rgba(255,255,255,.05);
}

article, .post, .entry-content, .et_pb_post {
  color: var(--ink);
}
.entry-title, .main_title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
}
.post-meta, .post-meta a, .published {
  color: var(--muted);
  font-size: .95rem;
}
.entry-content {
  background: rgba(16,17,22,.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1rem, 3vw, 2rem);
}
.entry-content > * + h2,
.entry-content > * + h3 { margin-top: 1.6em; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--line);
  padding: .65rem .8rem;
}

.wp-caption, .aligncenter {
  display: block;
  max-width: 100%;
  margin-inline: auto;
}
.alignleft { float: left; margin: .25rem 1rem 1rem 0; }
.alignright { float: right; margin: .25rem 0 1rem 1rem; }
.wp-caption-text { color: var(--muted); font-size: .9rem; }

.et_pb_button, .button, input[type=submit], button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .65rem 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

#sidebar, .widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}
.widget + .widget { margin-top: 1rem; }

.nav-single, .post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 760px) {
  body { padding-bottom: 84px; }
  .container, .et_pb_row, #main-content .container {
    width: min(100% - 20px, 1120px);
  }
  #main-content .container { padding-block: 20px 34px; }
  .entry-content { border-radius: 8px; padding: 1rem; }
  .alignleft, .alignright {
    float: none;
    display: block;
    margin: .5rem auto 1rem;
  }
}

/* Codex audit fix: contain long links and embeds so static article pages do not overflow on desktop or mobile. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
#page-container,
#main-content,
#content-area,
#left-area,
.static-feed-article,
.entry-content,
article.post {
  min-width: 0;
  max-width: 100%;
}
.entry-content,
.static-feed-article,
.static-feed-note,
.disruptarian-post-card-copy {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.entry-content a,
.static-feed-note a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.entry-content iframe,
.static-feed-article iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}
.entry-content pre,
.entry-content code,
.static-feed-article pre,
.static-feed-article code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-x: auto;
}

