/*
Theme Name: Physics Fundamentals Child
Theme URI: https://physicsfundamentalsinfo.com/
Description: Custom child theme for PhysicsFundamentalsInfo. Matches the static homepage design — midnight blue + brass gold palette, Spectral serif headlines, Manrope body text. Built for SEO and AI Overviews citations.
Author: PhysicsFundamentalsInfo
Author URI: https://physicsfundamentalsinfo.com/
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: physics-fundamentals-child
*/

/* ===== DESIGN TOKENS (must match homepage) ===== */
:root {
  --ink: #0A1628;
  --ink-2: #142139;
  --ink-3: #1F2E47;
  --cream: #FAF6EE;
  --paper: #F5F2EA;
  --gold: #C8932A;
  --gold-bright: #E8B43D;
  --gold-soft: #F4E8D0;
  --bronze: #8B6914;
  --wine: #7A1F2B;
  --mist: #C5D0DC;
  --mist-2: #8597AF;
  --rule: #D9CFB8;
  --shadow: 0 30px 60px rgba(10, 22, 40, 0.12);
  --shadow-deep: 0 40px 80px rgba(10, 22, 40, 0.25);
}

/* ===== RESET PARENT THEME ===== */
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}
a { color: inherit; text-decoration: none; transition: color 0.15s; }

/* Override GeneratePress container width */
.site .grid-container, .grid-container.grid-parent.site-content { max-width: 1200px; }
.entry-content { max-width: 880px; margin: 0 auto; }

/* ===== UTILITY CLASSES (reused on multiple pages) ===== */
.serif { font-family: 'Spectral', Georgia, serif; }
.sans { font-family: 'Manrope', -apple-system, sans-serif; }
.mono { font-family: 'JetBrains Mono', monospace; }
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER / NAVIGATION ===== */
.site-header.pf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.pf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.pf-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Spectral', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pf-logo:hover { color: var(--ink); }
.pf-logo-mark { width: 36px; height: 36px; flex-shrink: 0; }

/* Force logo text to ink (dark) in BOTH default and hover states.
   GeneratePress styles header links gold by default, which was turning
   the logo text orange until hover. These high-specificity rules win. */
.pf-header .pf-logo,
.pf-header a.pf-logo,
.site-header .pf-logo,
body .pf-header .pf-logo,
.pf-header .pf-logo:link,
.pf-header .pf-logo:visited,
.pf-header .pf-logo:hover,
.pf-header .pf-logo:focus,
.pf-header .pf-logo:active {
  color: var(--ink) !important;
}
.pf-nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pf-nav-links a {
  color: var(--ink-3);
  transition: color 0.15s;
}
.pf-nav-links a:hover { color: var(--gold); }
.pf-nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  transition: all 0.15s;
}
.pf-nav-cta:hover {
  background: var(--wine);
  color: var(--cream) !important;
}
.pf-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 1024px) {
  .pf-nav-links { display: none; }
  .pf-mobile-toggle { display: block; }
  .pf-nav-cta { display: none; }
  .pf-nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 24px;
    border-bottom: 1px solid var(--rule);
    gap: 20px;
  }
}

/* ===== BREADCRUMBS ===== */
.pf-breadcrumbs {
  background: var(--paper);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}
.pf-breadcrumbs a {
  color: var(--ink-3);
  transition: color 0.15s;
  border-bottom: none;
}
.pf-breadcrumbs a:hover { color: var(--gold); }
.pf-breadcrumbs .sep { color: var(--mist-2); margin: 0 8px; }
.pf-breadcrumbs .current { color: var(--gold); font-weight: 600; }

/* ===== ARTICLE HEADER (single post) ===== */
.pf-article-header {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 60px;
  text-align: center;
}
.pf-article-header .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(200, 147, 42, 0.4);
  border-radius: 999px;
  margin-bottom: 20px;
}
.pf-article-header h1 {
  font-size: clamp(34px, 5vw, 56px);
  color: var(--cream);
  max-width: 900px;
  margin: 0 auto 24px;
  line-height: 1.1;
}
.pf-article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--mist);
  flex-wrap: wrap;
}
.pf-article-meta .pf-meta-sep { color: var(--mist-2); }
.pf-article-author-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pf-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Spectral', serif;
  font-size: 14px;
  font-weight: 600;
}

/* ===== ARTICLE LAYOUT (with TOC sidebar) ===== */
.pf-article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}
@media (max-width: 960px) {
  .pf-article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* TOC sidebar */
.pf-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.pf-toc-title {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--inkSoft);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.pf-toc ul { list-style: none; padding: 0; margin: 0; }
.pf-toc li { margin-bottom: 8px; }
.pf-toc a {
  font-size: 14px;
  color: var(--ink-3);
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: all 0.15s;
  border-bottom: none;
  line-height: 1.4;
}
.pf-toc a:hover, .pf-toc a.active {
  color: var(--gold);
  border-left-color: var(--gold);
}
@media (max-width: 960px) {
  .pf-toc {
    position: static;
    max-height: none;
    padding: 20px;
    background: var(--paper);
    border-left: 4px solid var(--gold);
  }
}

/* ===== AI CITATION BLOCK (in article body) ===== */
.pf-citation {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  padding: 32px 36px;
  margin: 0 0 48px;
}
.pf-citation .eyebrow { margin-bottom: 12px; }
.pf-citation p {
  font-family: 'Spectral', serif;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.pf-citation strong { font-weight: 600; color: var(--wine); }
@media (max-width: 640px) {
  .pf-citation { padding: 24px 22px; }
  .pf-citation p { font-size: 17px; }
}

/* ===== ARTICLE BODY (the actual content) ===== */
.pf-article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.pf-article-body h2 {
  font-size: 32px;
  margin-top: 64px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.pf-article-body h3 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
}
.pf-article-body h4 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.pf-article-body p { margin: 0 0 22px; }
.pf-article-body ul,
.pf-article-body ol { margin: 0 0 22px; padding-left: 24px; }
.pf-article-body li { margin-bottom: 10px; }
.pf-article-body strong { color: var(--wine); }
.pf-article-body a {
  color: var(--gold);
  border-bottom: 1px solid currentColor;
}
.pf-article-body a:hover { color: var(--wine); }
.pf-article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 8px 24px;
  margin: 32px 0;
  background: var(--paper);
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink-3);
}
.pf-article-body code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.9em;
  color: var(--wine);
}
.pf-article-body pre {
  background: var(--ink);
  color: var(--cream);
  padding: 20px 24px;
  border-radius: 2px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}
.pf-article-body img {
  max-width: 100%;
  height: auto;
  margin: 32px 0;
  border-radius: 2px;
}
.pf-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.pf-article-body table th {
  background: var(--ink);
  color: var(--cream);
  text-align: left;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pf-article-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

/* Formula block */
.pf-formula {
  background: var(--ink);
  color: var(--gold);
  padding: 24px 32px;
  border-radius: 2px;
  margin: 32px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
}
.pf-formula::before {
  content: 'FORMULA';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--mist-2);
  font-family: 'Manrope', sans-serif;
}

/* ===== EMBEDDED SIMULATION SLOT ===== */
.pf-sim-slot {
  background: var(--ink);
  border-radius: 4px;
  padding: 0;
  margin: 48px 0;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.pf-sim-slot-header {
  padding: 16px 24px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.pf-sim-slot-header .icon-dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  animation: pf-pulse 2s ease-in-out infinite;
}
@keyframes pf-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.pf-sim-slot-header .label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mist);
}
.pf-sim-slot-body {
  padding: 24px;
  color: var(--cream);
}
.pf-sim-placeholder {
  background: rgba(245, 242, 234, 0.05);
  border: 1px dashed rgba(245, 242, 234, 0.2);
  padding: 60px 24px;
  text-align: center;
  border-radius: 2px;
}
.pf-sim-placeholder p {
  color: var(--mist);
  margin: 0;
  font-style: italic;
}

/* ===== WORKED PROBLEMS SECTION ===== */
.pf-problems {
  margin: 64px 0;
}
.pf-problems-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.pf-problems-header .ico {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pf-problems-header h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 32px;
}
.pf-problem {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: all 0.2s;
}
.pf-problem:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.pf-problem-num {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.pf-problem-question {
  font-family: 'Spectral', serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 500;
}
.pf-problem details {
  margin-top: 16px;
}
.pf-problem summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 2px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.15s;
}
.pf-problem summary::-webkit-details-marker { display: none; }
.pf-problem summary:hover { background: var(--wine); }
.pf-problem summary::after {
  content: '+';
  font-family: 'Spectral', serif;
  font-size: 18px;
  margin-left: 4px;
}
.pf-problem details[open] summary::after { content: '−'; }
.pf-problem details[open] summary { background: var(--wine); }
.pf-problem-solution {
  margin-top: 16px;
  padding: 20px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== FAQ SECTION ===== */
.pf-faq {
  margin: 64px 0;
  padding: 48px;
  background: var(--paper);
  border-radius: 4px;
}
.pf-faq h2 {
  margin-top: 0;
  border: none;
  padding-bottom: 0;
}
.pf-faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
.pf-faq-item:last-child { border-bottom: none; }
.pf-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 60px 24px 0;
  font-family: 'Spectral', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.15s;
}
.pf-faq-item summary::-webkit-details-marker { display: none; }
.pf-faq-item summary:hover { color: var(--wine); }
.pf-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Spectral', serif;
  font-size: 28px;
  color: var(--gold);
  font-weight: 300;
}
.pf-faq-item[open] summary::after { content: '−'; }
.pf-faq-item-answer {
  padding: 0 60px 24px 0;
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.7;
}
@media (max-width: 640px) {
  .pf-faq { padding: 32px 24px; }
  .pf-faq-item summary { font-size: 17px; padding-right: 40px; }
  .pf-faq-item-answer { padding-right: 0; font-size: 15px; }
}

/* ===== AUTHOR BIO CARD ===== */
.pf-author-bio {
  margin: 64px 0;
  padding: 32px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 4px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.pf-author-bio .pf-author-avatar {
  width: 72px;
  height: 72px;
  font-size: 32px;
  flex-shrink: 0;
}
.pf-author-bio-content h4 {
  color: var(--cream);
  font-family: 'Spectral', serif;
  font-size: 22px;
  margin: 0 0 4px;
}
.pf-author-bio-content .role {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.pf-author-bio-content p {
  color: var(--mist);
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.6;
}
.pf-author-bio-content a {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
}
@media (max-width: 640px) {
  .pf-author-bio { flex-direction: column; text-align: center; }
}

/* ===== RELATED ARTICLES ===== */
.pf-related {
  background: var(--paper);
  padding: 80px 0;
  margin-top: 80px;
}
.pf-related-header {
  text-align: center;
  margin-bottom: 40px;
}
.pf-related-header .eyebrow {
  display: block;
  margin-bottom: 8px;
}
.pf-related-header h2 {
  font-size: 36px;
  margin: 0;
  border: none;
  padding: 0;
}
.pf-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.pf-related-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.pf-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.pf-related-card a { border: none; color: var(--ink); }
.pf-related-card-cover {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.pf-related-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.pf-related-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pf-related-cat {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.pf-related-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  line-height: 1.3;
}
.pf-related-card .excerpt {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 14px;
  line-height: 1.5;
  flex: 1;
}
.pf-related-card .read {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

/* ===== ARCHIVE / CATEGORY / BLOG LIST PAGES ===== */
.pf-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 40px 0;
}

/* ===== FOOTER ===== */
.pf-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.pf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
@media (max-width: 900px) {
  .pf-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .pf-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.pf-footer-brand .pf-logo,
.pf-footer .pf-footer-brand .pf-logo,
body .pf-footer-brand a.pf-logo,
.pf-footer-brand .pf-logo:hover,
.pf-footer-brand .pf-logo:link,
.pf-footer-brand .pf-logo:visited {
  color: var(--cream) !important;
  margin-bottom: 16px;
}
.pf-footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  color: var(--mist);
}
.pf-footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 20px;
  border: none;
  padding: 0;
}
.pf-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pf-footer-col a {
  color: var(--mist);
  font-size: 14px;
  transition: color 0.15s;
  border: none;
}
.pf-footer-col a:hover { color: var(--gold); }
.pf-footer-bottom {
  padding: 32px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(197, 208, 220, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--mist-2);
  letter-spacing: 0.04em;
}
.pf-footer-social {
  display: flex;
  gap: 12px;
}
.pf-footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(197, 208, 220, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  color: var(--mist);
}
.pf-footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== HIDE GENERATEPRESS DEFAULTS WE DON'T WANT ===== */
.site-header.pf-replace-default,
.site-footer.pf-replace-default {
  display: none !important;
}

/* ===== AGGRESSIVE GENERATEPRESS OVERRIDES =====
   GeneratePress wraps everything in narrow containers and adds sidebars.
   We force full-width and remove the sidebar layout entirely. */

/* Reset any GP container width — let OUR .container handle widths */
body .site.grid-container,
body .grid-container.grid-parent,
body .grid-container,
body .inside-article,
body .site-content,
body #page,
body .site-main {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Force header to span full viewport, not GP's narrow container */
body .site-header.pf-header {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(250, 246, 238, 0.92) !important;
}
body .site-header.pf-header .pf-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  background: transparent;
}

/* Force footer to span full viewport */
body .pf-footer {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

/* Kill any GP sidebar layout — no sidebar columns */
body .content-area,
body .site-content > .container,
body .site-content > .grid-container {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}
body #right-sidebar,
body #left-sidebar,
body .widget-area {
  display: none !important;
}

/* ===== CRITICAL: BREAK GENERATEPRESS FLEXBOX TWO-COLUMN LAYOUT =====
   GP uses flexbox for content+sidebar. flex-basis beats width:100%,
   so we must override the flex properties AND force the parent to stack. */
body .site-content,
body #content,
body .site-content.grid-container {
  display: block !important;
  flex-direction: column !important;
}
body .content-area,
body #primary.content-area {
  flex: 1 1 100% !important;
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
body #right-sidebar,
body #left-sidebar,
body .widget-area.grid-parent {
  display: none !important;
  width: 0 !important;
  flex: 0 0 0 !important;
}
body .site-main,
body #main.site-main {
  width: 100% !important;
  max-width: 100% !important;
}

/* Remove default GP article padding/margins */
body article.post,
body article.page,
body .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Article header must span FULL width */
body .pf-article-header {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 80px 24px 60px;
  background: var(--ink) !important;
}

/* The article layout grid should sit inside the cream background, full width */
body .pf-article-layout {
  background: var(--cream);
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 60px 24px !important;
}

/* The archive grid section needs full-width cream background */
body .pf-archive-grid {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 24px 80px !important;
}

/* Container helper used in sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ============================================================
   DEFINITIVE SINGLE-POST LAYOUT FIX
   Forces article header centered + full width, kills GP's
   phantom sidebar column and negative-margin grid bleed.
   ============================================================ */

/* Neutralize GeneratePress float-grid negative margins on our wrappers */
body .pf-article-header,
body .pf-article-layout,
body .pf-related,
body article.pf-article-layout {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* Article header: full-bleed navy band, content centered */
body .pf-article-header {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 80px 24px 60px !important;
  text-align: center !important;
  background: var(--ink) !important;
}
body .pf-article-header .container-narrow {
  max-width: 880px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  float: none !important;
  text-align: center !important;
}
body .pf-article-header h1 {
  margin-left: auto !important;
  margin-right: auto !important;
}
body .pf-article-meta {
  justify-content: center !important;
}

/* Article layout grid: properly centered, never bleeds off-screen */
body article.pf-article-layout,
body .pf-article-layout {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  gap: 60px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 60px 24px !important;
  box-sizing: border-box !important;
}

/* TOC sidebar: ensure it never bleeds off the left edge */
body .pf-toc {
  margin-left: 0 !important;
  padding-left: 0 !important;
  min-width: 0 !important;
}

/* Stack to single column on narrow screens */
@media (max-width: 960px) {
  body article.pf-article-layout,
  body .pf-article-layout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

/* Related-articles section: full-bleed band, centered grid */
body .pf-related {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
