/* Component styles for generated content. Works on GeneratePress or Kadence.
   Copy to wp-content/mu-plugins/ beside edmonton-site-helpers.php, or paste into Customizer > Additional CSS. */
:root {
  --yeg-ink: #1f2a33;
  --yeg-navy: #1f3a4d;
  --yeg-muted: #5b6876;
  --yeg-line: #e6dfcc;
  --yeg-soft: #fcf4d9;
  --yeg-paper: #fffdf7;
  --yeg-accent: #1f3a4d;   /* navy */
  --yeg-accent-2: #c8963e; /* gold */
  --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: #fcf4d9; }
.site-info a:hover, .footer-widgets a:hover { color: var(--yeg-accent-2); }
.footer-widgets { background: #18303f; 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; }
.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-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: #fcf4d9 !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,#c8963e);background:var(--yeg-cream,#fcf4d9);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,#1f3a4d);margin-top:.4rem}
