/* ============================================================
   YARMOUTHEQUALPROTECTION.COM — Visual Polish
   Soros-budget look: deep navy, cream, accent red, serif headlines
   ============================================================ */

:root {
  --yep-navy: #0a1628;
  --yep-navy-soft: #1a2942;
  --yep-cream: #faf6ee;
  --yep-cream-deep: #f0e9d8;
  --yep-red: #c1272d;
  --yep-red-deep: #8b1a1f;
  --yep-text: #1a1a1a;
  --yep-text-soft: #4a4a4a;
  --yep-rule: #d8d2c2;
  --yep-gold: #b8924f;

  --yep-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --yep-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ===== Reset background to cream ===== */
body.yep-site {
  background: var(--yep-cream) !important;
  color: var(--yep-text) !important;
  font-family: var(--yep-sans) !important;
  font-size: 18px;
  line-height: 1.65;
}

/* ===== Header: full-width dark band ===== */
body.yep-site .wp-site-blocks > header,
body.yep-site .wp-block-template-part:first-of-type {
  background: var(--yep-navy) !important;
  color: var(--yep-cream) !important;
  border-bottom: 4px solid var(--yep-red);
  padding: 18px 0 14px !important;
}

body.yep-site header a,
body.yep-site header .wp-block-site-title a {
  color: var(--yep-cream) !important;
  text-decoration: none !important;
  font-family: var(--yep-serif) !important;
  font-weight: 900 !important;
  font-size: 24px !important;
  letter-spacing: -0.02em;
}

body.yep-site header .wp-block-site-tagline {
  color: var(--yep-cream) !important;
  opacity: 0.75;
  font-size: 14px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== Navigation ===== */
body.yep-site .wp-block-navigation a {
  color: var(--yep-cream) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  padding: 6px 12px !important;
  transition: color 0.15s, background 0.15s;
}

body.yep-site .wp-block-navigation a:hover {
  color: var(--yep-red) !important;
  background: rgba(255,255,255,0.04);
}

/* ===== Post title (theme-rendered) ===== */
body.yep-site .wp-block-post-title,
body.yep-site h1.entry-title {
  font-family: var(--yep-serif) !important;
  font-size: 56px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: var(--yep-navy) !important;
  margin-bottom: 24px !important;
  margin-top: 0 !important;
  max-width: 900px;
}

body.yep-site .single-page .wp-block-post-title,
body.yep-site .page-title {
  border-bottom: 4px solid var(--yep-red);
  padding-bottom: 18px;
}

/* ===== Body headings ===== */
body.yep-site h2 {
  font-family: var(--yep-serif) !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  color: var(--yep-navy) !important;
  margin-top: 56px !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.01em;
}

body.yep-site h2::before {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--yep-red);
  margin-bottom: 14px;
}

body.yep-site h3 {
  font-family: var(--yep-serif) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--yep-navy) !important;
  margin-top: 40px !important;
  margin-bottom: 12px !important;
}

body.yep-site h4 {
  font-family: var(--yep-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yep-red-deep) !important;
  margin-top: 32px !important;
  margin-bottom: 6px !important;
}

/* ===== Body content ===== */
body.yep-site .wp-block-post-content,
body.yep-site .entry-content,
body.yep-site main {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

/* Tighten gap between content and footer */
body.yep-site .wp-block-post-content > *:last-child,
body.yep-site .entry-content > *:last-child {
  margin-bottom: 0 !important;
}

body.yep-site main + footer,
body.yep-site .wp-site-blocks > footer {
  margin-top: 0 !important;
}

body.yep-site p {
  font-size: 18px !important;
  line-height: 1.7 !important;
  margin-bottom: 22px !important;
  color: var(--yep-text);
}

body.yep-site p strong {
  color: var(--yep-navy);
  font-weight: 700;
}

body.yep-site a {
  color: var(--yep-red-deep);
  text-decoration: underline;
  text-decoration-color: rgba(193, 39, 45, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

body.yep-site a:hover {
  text-decoration-color: var(--yep-red);
}

/* ===== Lists ===== */
body.yep-site ul,
body.yep-site ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

body.yep-site li {
  margin-bottom: 12px;
  line-height: 1.65;
}

body.yep-site ul li::marker {
  color: var(--yep-red);
}

/* ===== Big stat callout ===== */
body.yep-site .yep-stat {
  background: var(--yep-navy);
  color: var(--yep-cream);
  padding: 36px 32px;
  margin: 36px -24px;
  border-left: 6px solid var(--yep-red);
  text-align: center;
}

body.yep-site .yep-stat .yep-stat-num {
  font-family: var(--yep-serif);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 10px;
}

body.yep-site .yep-stat .yep-stat-label {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  font-weight: 600;
}

body.yep-site .yep-stat .yep-stat-source {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 8px;
  font-style: italic;
}

/* ===== Pull quote ===== */
body.yep-site blockquote {
  border-left: 4px solid var(--yep-red);
  padding: 8px 24px;
  margin: 32px 0;
  background: var(--yep-cream-deep);
  font-family: var(--yep-serif);
  font-style: italic;
  font-size: 22px !important;
  line-height: 1.45 !important;
  color: var(--yep-navy);
}

body.yep-site blockquote p {
  font-size: 22px !important;
  line-height: 1.45 !important;
  margin-bottom: 8px !important;
}

/* ===== Hero block (used on home + landing pages) ===== */
body.yep-site .yep-hero {
  background: var(--yep-navy);
  background-image: linear-gradient(135deg, var(--yep-navy) 0%, var(--yep-navy-soft) 100%);
  color: var(--yep-cream);
  padding: 64px 32px 56px;
  margin: -40px -24px 48px;
  text-align: center;
  border-bottom: 4px solid var(--yep-red);
}

body.yep-site .yep-hero h1,
body.yep-site .yep-hero .yep-hero-title {
  font-family: var(--yep-serif);
  font-size: 64px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

body.yep-site .yep-hero .yep-hero-sub {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.92;
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--yep-cream);
}

body.yep-site .yep-hero .yep-hero-cta {
  display: inline-block;
  background: var(--yep-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 36px;
  text-decoration: none !important;
  border: 2px solid var(--yep-red);
  transition: background 0.15s, color 0.15s;
}

body.yep-site .yep-hero .yep-hero-cta:hover {
  background: transparent;
  color: var(--yep-red) !important;
}

body.yep-site .yep-hero .yep-hero-meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.75;
  margin-top: 24px;
}

/* ===== Card grid ===== */
body.yep-site .yep-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 36px 0;
}

body.yep-site .yep-card {
  background: #fff;
  border-top: 4px solid var(--yep-red);
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.08);
}

body.yep-site .yep-card h3 {
  font-size: 20px !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

body.yep-site .yep-card p {
  font-size: 16px !important;
  margin-bottom: 16px !important;
}

body.yep-site .yep-card a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--yep-red-deep);
  text-decoration: none;
}

body.yep-site .yep-card a::after {
  content: " →";
}

/* ===== Tables (for fiscal data) ===== */
body.yep-site table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}

body.yep-site table th,
body.yep-site table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--yep-rule);
}

body.yep-site table th {
  background: var(--yep-navy);
  color: var(--yep-cream);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.yep-site table tr:hover {
  background: var(--yep-cream-deep);
}

body.yep-site table strong {
  color: var(--yep-red-deep);
}

/* ===== Source attribution paragraph ===== */
body.yep-site p em {
  color: var(--yep-text-soft);
  font-size: 15px;
}

/* ===== Disclaimer (mu-plugin) ===== */
body.yep-site #ocpf-disclaimer {
  font-family: var(--yep-sans) !important;
  background: var(--yep-navy) !important;
  border-top: 3px solid var(--yep-red) !important;
  padding: 24px 16px !important;
}

/* ===== Footer — KILL TT5 default entirely, OCPF disclaimer is the only footer ===== */

/* Nuclear: highest specificity, hide TT5 footer template-part by every selector that matches it */
html body.yep-site footer.wp-block-template-part,
html body.yep-site footer.wp-block-template-part *,
html body.yep-site .wp-site-blocks > footer,
html body.yep-site .wp-site-blocks > footer *,
html body.yep-site footer .wp-block-site-title,
html body.yep-site footer .wp-block-site-tagline,
html body.yep-site footer .wp-block-navigation,
html body.yep-site footer .wp-block-group,
html body.yep-site footer .wp-block-columns,
html body.yep-site footer .wp-block-column {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* But OCPF disclaimer mu-plugin fires after wp_footer — must keep it visible */
body.yep-site #ocpf-disclaimer {
  display: block !important;
  background: var(--yep-navy) !important;
  color: #fff !important;
  border-top: 4px solid var(--yep-red) !important;
  padding: 28px 16px !important;
  margin: 0 !important;
  font-family: var(--yep-sans) !important;
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

body.yep-site #ocpf-disclaimer strong {
  color: #fff !important;
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

/* Remove any trailing white space between content and disclaimer */
body.yep-site .wp-site-blocks {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.yep-site main,
body.yep-site .wp-block-post-content {
  margin-bottom: 0 !important;
  padding-bottom: 32px !important;
}

/* ===== Responsive tightening ===== */
@media (max-width: 720px) {
  body.yep-site { font-size: 17px; }
  body.yep-site .wp-block-post-title,
  body.yep-site h1.entry-title { font-size: 38px !important; }
  body.yep-site .yep-hero h1,
  body.yep-site .yep-hero .yep-hero-title { font-size: 42px; }
  body.yep-site h2 { font-size: 28px !important; margin-top: 40px !important; }
  body.yep-site .yep-stat .yep-stat-num { font-size: 52px; }
  body.yep-site blockquote,
  body.yep-site blockquote p { font-size: 19px !important; }
}

/* ===== Hide elements we don't want ===== */
body.yep-site .wp-block-post-date,
body.yep-site .wp-block-post-author,
body.yep-site .wp-block-comments,
body.yep-site .post-navigation {
  display: none !important;
}

/* ===== Featured image (full-width, dark filter for unity) ===== */
body.yep-site .wp-block-post-featured-image {
  margin: -40px -24px 36px !important;
  max-width: none !important;
  width: calc(100% + 48px) !important;
  position: relative;
  background: var(--yep-navy);
}

body.yep-site .wp-block-post-featured-image img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  filter: brightness(0.55) saturate(0.85) contrast(1.05);
  transition: filter 0.3s;
}

body.yep-site .wp-block-post-featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.2) 0%, rgba(10,22,40,0.55) 100%);
  pointer-events: none;
}

/* No more overlay — title sits cleanly BELOW featured image, no overlap with content */
body.yep-site .wp-block-post-featured-image + .wp-block-post-title,
body.yep-site .wp-block-post-featured-image ~ * .wp-block-post-title {
  margin-top: 32px !important;
  margin-bottom: 24px !important;
  color: var(--yep-navy) !important;
  text-shadow: none !important;
  z-index: auto;
  position: static;
  padding: 0 !important;
}

/* Featured image: clean banner, no dark overlay or filter */
body.yep-site .wp-block-post-featured-image {
  margin: -40px -24px 0 !important;
}

body.yep-site .wp-block-post-featured-image img {
  filter: none !important;
  max-height: 320px;
  object-fit: cover;
}

body.yep-site .wp-block-post-featured-image::after {
  display: none !important;
}

/* Lede block — sits under the featured image, restrained, no duplicate title */
body.yep-site .yep-lede {
  background: var(--yep-cream-deep);
  border-left: 6px solid var(--yep-red);
  padding: 28px 32px;
  margin: 8px 0 40px;
}

body.yep-site .yep-lede-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yep-red-deep);
  font-weight: 700;
  margin-bottom: 14px;
}

body.yep-site .yep-lede-sub {
  font-size: 21px !important;
  line-height: 1.45 !important;
  color: var(--yep-navy);
  font-family: var(--yep-serif);
  font-weight: 500;
  margin: 0 0 20px !important;
}

body.yep-site .yep-lede .yep-hero-cta {
  display: inline-block;
  background: var(--yep-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  text-decoration: none !important;
  border: 2px solid var(--yep-red);
  font-family: var(--yep-sans);
}

body.yep-site .yep-lede .yep-hero-cta:hover {
  background: var(--yep-navy);
  border-color: var(--yep-navy);
}

/* ===== Inline images ===== */
body.yep-site .wp-block-image {
  margin: 36px -24px;
  max-width: calc(100% + 48px) !important;
  width: calc(100% + 48px) !important;
}

body.yep-site .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

body.yep-site .wp-block-image figcaption {
  font-family: var(--yep-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yep-text-soft);
  padding: 12px 24px 0;
  text-align: left;
  border-left: 3px solid var(--yep-red);
  margin-left: 24px;
  font-style: normal;
}

/* Boxed image variant — for portrait/smaller imagery */
body.yep-site .wp-block-image.is-style-rounded img,
body.yep-site .wp-block-image.size-medium img {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Image-with-text-overlay (custom block via raw HTML) ===== */
body.yep-site .yep-image-callout {
  position: relative;
  margin: 36px -24px;
  background: var(--yep-navy);
  overflow: hidden;
}

body.yep-site .yep-image-callout img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: brightness(0.45);
  display: block;
}

body.yep-site .yep-image-callout .yep-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px;
  color: #fff;
}

body.yep-site .yep-image-callout .yep-overlay .yep-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yep-red);
  font-weight: 700;
  margin-bottom: 8px;
}

body.yep-site .yep-image-callout .yep-overlay .yep-headline {
  font-family: var(--yep-serif);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: #fff;
}

body.yep-site .yep-image-callout .yep-overlay .yep-attrib {
  font-size: 13px;
  font-style: italic;
  opacity: 0.85;
}

@media (max-width: 720px) {
  body.yep-site .wp-block-post-featured-image img { max-height: 240px; }
  body.yep-site .single .wp-block-post-featured-image + * .wp-block-post-title,
  body.yep-site .wp-block-post-featured-image + .wp-block-post-title { margin-top: -100px !important; }
  body.yep-site .yep-image-callout img { height: 240px; }
  body.yep-site .yep-image-callout .yep-overlay .yep-headline { font-size: 26px; }
}
