/* Component styles for generated content. Works on GeneratePress or Kadence.
   Copy to wp-content/mu-plugins/ beside vancouver-site-helpers.php, or paste into Customizer > Additional CSS. */
:root {
  --yeg-ink: #1f2a33;
  --yeg-navy: #123c4a;
  --yeg-muted: #5b6876;
  --yeg-line: #d5e3e0;
  --yeg-soft: #e9f2f0;
  --yeg-paper: #fbfdfc;
  --yeg-accent: #123c4a;   /* pacific teal */
  --yeg-accent-2: #c8643b; /* cedar */
  --yeg-good: #2f6b4a;
  --yeg-warn: #a8500b;
  --yeg-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --yeg-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Site-wide brand (GeneratePress) ---------- */
body { background: var(--yeg-paper); color: var(--yeg-ink); font-family: var(--yeg-sans); font-size: 17px; line-height: 1.7; }
h1, h2, h3, h4, .site-title, .entry-title, .page-title { font-family: var(--yeg-serif); color: var(--yeg-navy); letter-spacing: -0.01em; line-height: 1.25; }
h1, .entry-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 650; margin-top: 1.8em; }
h3 { font-size: 1.2rem; font-weight: 650; }
a { color: var(--yeg-navy); text-decoration-color: var(--yeg-accent-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--yeg-accent-2); }
::selection { background: var(--yeg-accent-2); color: #fff; }

/* Header: logo left, navigation right, gold rule underneath */
.site-header { background: #fff; border-bottom: 3px solid var(--yeg-accent-2); }
.site-header .inside-header { padding-top: 18px; padding-bottom: 18px; }
.site-logo img, .custom-logo { max-height: 46px; width: auto; }
.main-navigation, .main-navigation ul ul { background: #fff; }
.main-navigation .main-nav ul li a { color: var(--yeg-navy); font-weight: 600; font-size: 15px; padding-left: 14px; padding-right: 14px; }
.main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li.current-menu-item > a, .main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--yeg-accent-2); background: transparent; }
.main-navigation .main-nav ul ul { border-top: 3px solid var(--yeg-accent-2); box-shadow: 0 8px 24px rgba(31,58,77,.12); }
.menu-toggle { color: var(--yeg-navy); font-weight: 600; }

/* Content column */
.separate-containers .inside-article, .one-container .site-content, .separate-containers .page-header, .separate-containers .comments-area, .widget-area .widget { background: #fff; border: 1px solid var(--yeg-line); border-radius: 12px; }
.separate-containers .inside-article { padding: clamp(20px, 4vw, 48px); }
.site-content { padding-top: 8px; }
.entry-content > p:first-of-type { font-size: 1.08em; }
.entry-content img { border-radius: 10px; }
.entry-meta, .entry-meta a, .cat-links a { color: var(--yeg-muted); font-size: .88rem; }
.cat-links a { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--yeg-accent-2); text-decoration: none; }
blockquote { border-left: 4px solid var(--yeg-accent-2); background: var(--yeg-soft); margin: 1.5em 0; padding: 1em 1.25em; font-style: normal; border-radius: 0 8px 8px 0; }

/* Archive / blog cards */
.blog .inside-article, .archive .inside-article { transition: box-shadow .2s ease, transform .2s ease; }
.blog .inside-article:hover, .archive .inside-article:hover { box-shadow: 0 10px 28px rgba(31,58,77,.10); transform: translateY(-2px); }
.blog .entry-title a, .archive .entry-title a { color: var(--yeg-navy); text-decoration: none; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--yeg-accent-2); }
.page-header .page-title { margin-bottom: .3em; }
.taxonomy-description { color: var(--yeg-muted); }

/* Buttons and forms */
button, .button, input[type="submit"], .wp-block-button__link { background: var(--yeg-navy); color: #fff; border-radius: 8px; font-weight: 600; padding: .7em 1.3em; border: 0; }
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover { background: var(--yeg-accent-2); color: #fff; }
input[type="text"], input[type="email"], input[type="search"], textarea { border: 1px solid var(--yeg-line); border-radius: 8px; background: #fff; }

/* Sidebar widgets */
.widget-area .widget { padding: 24px; }
.widget-title { font-family: var(--yeg-serif); color: var(--yeg-navy); font-size: 1.1rem; border-bottom: 2px solid var(--yeg-accent-2); padding-bottom: .4em; }

/* Footer */
.site-footer, .site-info { background: var(--yeg-navy); color: #e9eef2; }
.site-info a, .footer-widgets a { color: #e9f2f0; }
.site-info a:hover, .footer-widgets a:hover { color: var(--yeg-accent-2); }
.footer-widgets { background: #0d2e39; color: #e9eef2; }
.footer-widgets .widget-title { color: #fff; }

/* Home hero (used on the front page) */
.yeg-hero { background: var(--yeg-soft); border: 1px solid var(--yeg-line); border-radius: 14px; padding: clamp(20px, 4vw, 40px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-bottom: 2em; }
.yeg-hero h1 { margin-top: 0; }
.yeg-hero img { width: 100%; height: auto; border-radius: 10px; }
/* Front-page photo banner (injected by the mu-plugin, full width under the header) */
.yeg-banner { position: relative; width: 100%; overflow: hidden; background: var(--yeg-navy); }
.yeg-banner picture, .yeg-banner img { display: block; width: 100%; }
.yeg-banner img { height: clamp(340px, 46vw, 560px); object-fit: cover; object-position: 50% 55%; }
.yeg-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,58,77,.88) 0%, rgba(31,58,77,.55) 32%, rgba(31,58,77,0) 62%); pointer-events: none; }
.yeg-banner-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; max-width: 1200px; margin: 0 auto; padding: clamp(16px, 3vw, 40px); color: #fff; }
.yeg-banner-title { margin: 0 0 .25em; font-family: var(--yeg-serif); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.15; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.yeg-banner-sub { margin: 0 0 1em; max-width: 36em; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.45; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.yeg-banner-links { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.yeg-banner .yeg-btn { display: inline-block; padding: .6em 1.1em; border-radius: 8px; background: var(--yeg-accent-2); color: var(--yeg-navy); font-weight: 700; text-decoration: none; }
.yeg-banner .yeg-btn:hover, .yeg-banner .yeg-btn:focus { background: #fff; color: var(--yeg-navy); }
.yeg-banner .yeg-btn-alt { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.7); }
.yeg-banner-credit { position: absolute; z-index: 1; top: 8px; right: 12px; margin: 0; font-size: 12px; color: #fff; opacity: .85; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
@media (max-width: 640px) { .yeg-banner img { height: min(125vw, 560px); object-position: 50% 40%; } }
.yeg-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 1.5em 0; padding: 0; list-style: none; }
.yeg-sections li a { display: block; height: 100%; padding: 18px; border: 1px solid var(--yeg-line); border-top: 4px solid var(--yeg-accent-2); border-radius: 10px; background: #fff; text-decoration: none; color: var(--yeg-ink); }
.yeg-sections li a strong { display: block; font-family: var(--yeg-serif); color: var(--yeg-navy); font-size: 1.1rem; margin-bottom: .3em; }
.yeg-sections li a:hover { box-shadow: 0 8px 22px rgba(31,58,77,.12); }
@media (max-width: 768px) { .yeg-hero { grid-template-columns: 1fr; } body { font-size: 16px; } }

/* Badge */
.yeg-badge-preview { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 2px solid var(--yeg-accent-2); border-radius: 10px; background: var(--yeg-soft); }
.yeg-embed { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 110px; }

.yeg-updated, .yeg-credit, .yeg-disclaimer { color: var(--yeg-muted); font-size: 0.9em; }
.yeg-disclaimer { border-top: 1px solid var(--yeg-line); margin-top: 2.5em; padding-top: 1em; }

/* Comparison table: scrolls sideways on phones instead of squeezing */
.yeg-compare { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95em; display: block; overflow-x: auto; }
.yeg-compare th, .yeg-compare td { padding: 0.6em 0.8em; border-bottom: 1px solid var(--yeg-line); text-align: left; vertical-align: top; }
.yeg-compare th { background: var(--yeg-navy); color: #fff; white-space: nowrap; }
.yeg-compare tbody tr:hover { background: var(--yeg-soft); }

/* Cards: ranking entries and events */
.yeg-card, .yeg-story { border: 1px solid var(--yeg-line); border-radius: 10px; padding: 1.25em 1.5em; margin: 2em 0; background: #fff; scroll-margin-top: 80px; }
.yeg-card > h2, .yeg-story > h2 { margin-top: 0; font-size: 1.4em; }
.yeg-card-top { display: flex; gap: 1.25em; align-items: flex-start; flex-wrap: wrap; }
.yeg-card-top img { width: 120px; height: 120px; object-fit: contain; border: 1px solid var(--yeg-line); border-radius: 8px; background: #fff; }
.yeg-facts { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 220px; }
.yeg-facts li { padding: 0.25em 0; border-bottom: 1px dashed var(--yeg-line); }
.yeg-facts li:last-child { border-bottom: 0; }
.yeg-score { display: inline-block; min-width: 2.6em; text-align: center; font-weight: 700; color: #fff; background: var(--yeg-accent); border-radius: 6px; padding: 0.1em 0.4em; margin-right: 0.4em; }

/* Praise and complaints: side by side, always visible */
.yeg-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25em; margin: 1em 0; }
.yeg-proscons h3, .yeg-label { font-size: 1em; font-weight: 700; margin: 0 0 0.3em; }
.yeg-proscons ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 600px) { .yeg-proscons { grid-template-columns: 1fr; } }

/* The "who it's for" lines carry the page's value: make them stand out */
.yeg-for, .yeg-action, .yeg-skip { border-left: 4px solid var(--yeg-good); background: var(--yeg-soft); padding: 0.6em 0.9em; border-radius: 0 6px 6px 0; }
.yeg-read { border-left: 4px solid #c8643b; background: #e9f2f0; padding: 0.6em 0.9em; border-radius: 0 6px 6px 0; }
.yeg-action { border-left-color: var(--yeg-accent-2); }
.yeg-skip { border-left-color: var(--yeg-warn); }

/* Expandable sections (native details: no JavaScript, content stays indexable) */
.entry-content details { border-top: 1px solid var(--yeg-line); margin-top: 1em; padding-top: 0.6em; }
.entry-content details > summary { cursor: pointer; font-weight: 600; color: var(--yeg-accent); padding: 0.3em 0; }
.entry-content details > summary:hover { text-decoration: underline; }
.entry-content details[open] > summary { margin-bottom: 0.6em; }
.entry-content details h3 { font-size: 1.05em; margin: 1em 0 0.3em; }

.yeg-toc { columns: 2; column-gap: 2em; padding-left: 1.2em; }
@media (max-width: 600px) {
  .yeg-toc { columns: 1; }
  .yeg-card, .yeg-story { padding: 1em; }
  .yeg-card-top img { width: 84px; height: 84px; }
}

.home .entry-header { display: none; }
.home .inside-article { padding-top: clamp(16px,3vw,32px); }

.site-branding .main-title { display: none; }
@media (max-width: 1024px) { .main-navigation .main-nav ul li a { padding-left: 9px; padding-right: 9px; font-size: 14px; } }

.site-footer .site-info, body .site-info { background: var(--yeg-navy) !important; color: #e9eef2 !important; padding: 22px 0; }
.site-info .copyright-bar, .site-info .inside-site-info { color: #e9eef2 !important; font-size: 14px; }

.yeg-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 10px; }
.yeg-footer-links a { color: #e9f2f0 !important; text-decoration: none; font-size: 14px; }
.yeg-footer-links a:hover { color: var(--yeg-accent-2) !important; }
.site-info .copyright-bar span { display: block; text-align: center; opacity: .85; }

body h1, body h2, body h3, body .entry-title { font-family: var(--yeg-serif); color: var(--yeg-navy); }
body h2 { font-weight: 600; }
body h3 { font-weight: 600; }

/* Who will enjoy it / Skip it if, inside ranking cards */
.yeg-enjoy{margin:1rem 0;padding:.9rem 1.1rem;border-left:4px solid var(--yeg-gold,#c8643b);background:var(--yeg-cream,#e9f2f0);border-radius:0 8px 8px 0}
.yeg-enjoy p{margin:0 0 .5rem}
.yeg-enjoy p:last-child{margin-bottom:0}
.yeg-enjoy .yeg-label{font-weight:600;color:var(--yeg-navy,#123c4a);margin-top:.4rem}

/* Section cards with an illustration on top */
.yeg-sections li a { padding: 0 18px 18px; overflow: hidden; }
.yeg-sections li a img { display: block; width: calc(100% + 36px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 -18px 14px; }
.yeg-footer-trust { margin: 0.4em 0; font-size: 0.9em; }

/* ===== Visual audit fixes (2026-11-20) ===== */
/* Fonts: this file loads BEFORE GeneratePress main.css, so plain `body` lost to GP's system-font rule. */
html body { font-family: var(--yeg-sans); background: var(--yeg-paper); color: var(--yeg-ink); }

/* 1. Comparison table: name column readable, phones show rank/name/score/rating only (cards below carry the rest) */
.yeg-compare td:nth-child(2) { min-width: 11em; font-weight: 600; }
.yeg-compare td:nth-child(3) { font-weight: 700; color: var(--yeg-navy); }
.yeg-compare tbody tr:first-child { background: var(--yeg-soft); }
@media (max-width: 640px) {
  .yeg-compare { display: table; overflow: visible; font-size: .92em; }
  .yeg-compare th:nth-child(n+5), .yeg-compare td:nth-child(n+5) { display: none; }
  .yeg-compare th, .yeg-compare td { padding: .55em .5em; white-space: normal; }
  .yeg-compare td:nth-child(2) { min-width: 0; }
}

/* 2. Score: the headline number of every card */
.yeg-facts li:has(.yeg-score) { display: flex; align-items: center; gap: .6em; border-bottom: 0; padding-bottom: .6em; color: var(--yeg-muted); font-size: .9em; }
.yeg-facts .yeg-score { min-width: 0; width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--yeg-serif); font-size: 1.45rem; border-radius: 12px; margin: 0; padding: 0; background: var(--yeg-navy); box-shadow: inset 0 -4px 0 var(--yeg-accent-2); }

/* 3. Cards: clearer hierarchy, #1 marked, honest negatives in their own colour */
.yeg-card { padding: 1.5em 1.75em; box-shadow: 0 2px 10px rgba(31,58,77,.05); }
.yeg-card > h2 { padding-bottom: .4em; border-bottom: 1px solid var(--yeg-line); }
#entry-1 { border: 2px solid var(--yeg-accent-2); }
#entry-1 > h2::after { content: "Top score"; margin-left: .6em; vertical-align: middle; font: 700 .7rem/1 var(--yeg-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--yeg-navy); background: var(--yeg-accent-2); padding: .35em .6em; border-radius: 999px; }
.yeg-facts li { font-size: .95em; }
.yeg-card .yeg-for { background: #eef5f0; }
.yeg-card .yeg-enjoy { background: #fff; border: 1px solid var(--yeg-line); border-left: 4px solid var(--yeg-accent-2); }
/* "Skip it if" = the label after the first body paragraph, and its text */
.yeg-enjoy p:not(.yeg-label) ~ .yeg-label { color: var(--yeg-warn); margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed var(--yeg-line); }
.yeg-proscons > div { padding: .8em 1em; border-radius: 8px; background: #f3f8f4; }
.yeg-proscons > div + div { background: #fbf1ea; }
.yeg-proscons > div:first-child .yeg-label { color: var(--yeg-good); }
.yeg-proscons > div + div .yeg-label { color: var(--yeg-warn); }
.yeg-proscons > div:empty, .yeg-proscons > p:empty { display: none; }

/* 5. Archives: compact card grid instead of full-width posts with giant illustrations */
.archive .site-main, .blog .site-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.archive .site-main > :not(article), .blog .site-main > :not(article) { grid-column: 1 / -1; }
.archive .site-main > article, .blog .site-main > article { margin: 0; }
.archive .inside-article, .blog .inside-article { padding: 0 !important; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.archive .post-image, .blog .post-image { margin: 0 !important; order: -1; }
.archive .post-image img, .blog .post-image img { width: 100%; height: 170px; object-fit: cover; border-radius: 0; }
.archive .entry-header, .blog .entry-header, .archive .entry-summary, .blog .entry-summary, .archive footer.entry-meta, .blog footer.entry-meta { padding: 0 20px; }
.archive .entry-header, .blog .entry-header { padding-top: 16px; }
.archive .entry-title, .blog .entry-title { font-size: 1.2rem; }
.archive .entry-summary, .blog .entry-summary { font-size: .93rem; color: var(--yeg-muted); }
.archive footer.entry-meta, .blog footer.entry-meta { margin-top: auto; padding-bottom: 16px; }

/* 4. Business logos (pipeline/logos.py): most are wide wordmarks, so give them a wide box */
.yeg-card-top img.yeg-logo { width: 160px; height: 100px; object-fit: contain; padding: 8px; background: #fff; }
@media (max-width: 600px) { .yeg-card-top img.yeg-logo { width: 120px; height: 76px; } }

/* Site-wide trust bar on Most Liked posts (added by the mu-plugin, not the content) */
.yeg-trustbar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 0 0 1.4em; padding: .6em 1em; border-radius: 8px; background: var(--yeg-soft); border: 1px solid var(--yeg-line); font-size: .86rem; color: var(--yeg-muted); }
.yeg-trustbar span::before { content: "✓"; color: var(--yeg-good); font-weight: 700; margin-right: .4em; }
.yeg-trustbar a { margin-left: auto; font-weight: 600; }
@media (max-width: 600px) { .yeg-trustbar a { margin-left: 0; } }

/* Navigation: keep one row between 769px and 1100px instead of wrapping */
@media (min-width: 769px) and (max-width: 1100px) {
  .main-navigation .main-nav ul li a { padding-left: 7px; padding-right: 7px; font-size: 13.5px; }
  .site-logo img, .custom-logo { max-height: 38px; }
}

/* Header logo overflowed phones (page 447px wide at 375px, found 2026-11-20) */
@media (max-width: 768px) {
  .site-branding-container, .site-logo { min-width: 0; max-width: calc(100vw - 90px); }
  .site-logo img, .header-image.is-logo-image { max-width: 100%; height: auto; max-height: 40px; }
}

/* Home: compact intro + proof strip (replaces the big cream box) and the self-updating "This week" row */
.home .yeg-intro { margin: 0 0 1.5em; }
.home .yeg-intro h1 { margin: 0 0 .2em; }
.home .yeg-intro p { margin: 0 0 .8em; color: var(--yeg-muted); max-width: 42em; }
.yeg-proof { list-style: none; margin: 0; padding: .8em 1em; display: flex; flex-wrap: wrap; gap: 8px 22px; background: var(--yeg-navy); color: #fff; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.yeg-proof li::before { content: "✓"; color: var(--yeg-accent-2); margin-right: .45em; }
.yeg-proof li:last-child { margin-left: auto; }
.yeg-proof li:last-child::before { content: none; }
.yeg-proof a { color: var(--yeg-soft); }
.yeg-week { list-style: none; margin: 1em 0 2em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.yeg-week a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--yeg-line); border-radius: 10px; overflow: hidden; background: #fff; text-decoration: none; color: var(--yeg-ink); }
.yeg-week a:hover { box-shadow: 0 8px 22px rgba(31,58,77,.12); }
.yeg-week img { width: 100%; height: 150px; object-fit: cover; border-radius: 0; }
.yeg-week .yeg-kicker { padding: 12px 16px 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--yeg-accent-2); }
.yeg-week strong { padding: 4px 16px 16px; font-family: var(--yeg-serif); color: var(--yeg-navy); font-size: 1.05rem; line-height: 1.3; }
@media (max-width: 600px) { .yeg-proof li:last-child { margin-left: 0; } }
