/* WebsitesGH Data House - additive styles only.
   Inherits the theme r26 palette + type via CSS custom properties; falls back to flat values.
   Locked rules: flat colors, 1px borders, no gradients, no shadows, no border-radius on images.
   The r26 base classes (.card, .r26-listing-topbar, .r26-gcard, .r26-dir-*, .btn) are the
   theme's; this file only styles the genuinely new data components. */

/* Snapshot stat cards */
.wgh-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 4px 0 0; }
.wgh-stat { border: 1px solid var(--line, #EDEAE0); padding: 14px; background: var(--bg, #fff); }
.wgh-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--ink, #14201A); line-height: 1.1; font-family: var(--font-d, "Hanken Grotesk", sans-serif); }
.wgh-stat-lbl { font-size: 0.8rem; color: var(--ink-2, #586860); margin-top: 4px; }

/* Quick answer */
.wgh-quick { font-size: 1.02rem; color: var(--ink, #14201A); margin: 0; line-height: 1.5; }

/* Data tables */
.wgh-table { width: 100%; border-collapse: collapse; }
.wgh-table th, .wgh-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--line, #EDEAE0); vertical-align: top; }
.wgh-table th[scope="row"] { width: 38%; font-weight: 600; color: var(--ink, #14201A); background: var(--line-2, #F5F2E8); }

/* SVG visuals */
.wgh-viz { width: 100%; height: auto; display: block; margin: 4px 0; }
.wgh-axis { font-size: 11px; fill: var(--ink-2, #586860); }

/* Map block (static; live Leaflet uses the theme #wgh-map machinery once coords are gathered) */
.wgh-map-block { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line, #EDEAE0); padding: 16px; }
.wgh-map-pin { width: 10px; height: 10px; background: var(--gold, #E2A013); display: inline-block; }
.wgh-map-region { font-weight: 600; color: var(--ink, #14201A); }

/* Sources line: the trust + citation signal */
.wgh-sources { font-size: 0.82rem; color: var(--ink-2, #586860); border-top: 1px solid var(--line, #EDEAE0); padding-top: 12px; margin-top: 16px; }
.wgh-sources a { color: var(--green, #0E8C5A); }

/* Prose */
/* Prose card + answer-first FAQ */
.wgh-prose { font-family: var(--font-prose, Georgia, serif); }
.wgh-prose p { line-height: 1.7; margin: 0 0 16px; color: var(--ink, #20211C); }
.wgh-prose p:last-child { margin-bottom: 0; }
.wgh-prose h3 { font-family: var(--font-d, "Hanken Grotesk", sans-serif); font-size: 1.13rem; font-weight: 700; line-height: 1.3; color: var(--ink, #20211C); margin: 26px 0 10px; padding-top: 22px; border-top: 1px solid var(--line, #EDEAE0); }

/* The one new bit on the r26 card: a headline figure in place of the rating */
.r26-gcard-figure { color: var(--green, #0E8C5A); font-weight: 700; font-family: var(--font-d, "Hanken Grotesk", sans-serif); margin: 2px 0; }

/* Cornerstone hub intro (pillar lede + national figures as stat tiles) */
.wgh-hub-intro { max-width: 1240px; margin: 0 auto; padding: 28px 16px 8px; }
.wgh-hub-lede { color: var(--ink, #20211C); line-height: 1.65; font-size: 1.06rem; margin: 0 0 22px; max-width: 880px; }
.wgh-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 14px; margin: 0 0 20px; }
.wgh-stat { display: flex; flex-direction: column; gap: 5px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line, #EDEAE0); border-radius: 14px; }
.wgh-stat-lead { background: linear-gradient(135deg, #0E3D2E 0%, #16624A 100%); border-color: transparent; }
.wgh-stat-num { font-family: var(--font-d, "Hanken Grotesk", sans-serif); font-weight: 800; font-size: 1.72rem; line-height: 1.05; color: var(--green, #0E8C5A); }
.wgh-stat-lead .wgh-stat-num { color: #fff; }
.wgh-stat-lbl { color: var(--ink-2, #586860); font-size: 0.84rem; line-height: 1.35; }
.wgh-stat-lead .wgh-stat-lbl { color: rgba(255, 255, 255, 0.82); }
.wgh-hub-src { color: var(--ink-2, #586860); font-size: 0.92rem; line-height: 1.55; max-width: 880px; margin: 0; }
.wgh-hub-src a { color: var(--green, #0E8C5A); font-weight: 500; }

/* Cards without a photo: branded monogram panel instead of an empty box */
.r26-gcard .r26-gcard-media.wgh-noimg { background: linear-gradient(135deg, #0E3D2E 0%, #145C44 55%, #1C7A59 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wgh-noimg-mark { font-family: var(--font-d, "Hanken Grotesk", sans-serif); font-size: 3.4rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, 0.16); }

/* Verticals directory grid ([datahouse_verticals]) for the homepage / Directory page */
.wgh-verticals { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 8px 0; }
.wgh-vert-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; border: 1px solid var(--line, #EDEAE0); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.wgh-vert-card:hover { border-color: var(--green, #0E8C5A); box-shadow: 0 8px 24px rgba(14, 140, 90, 0.10); transform: translateY(-2px); }
.wgh-vert-name { font-family: var(--font-d, "Hanken Grotesk", sans-serif); font-weight: 800; font-size: 1.25rem; color: var(--ink, #20211C); }
.wgh-vert-tag { color: var(--ink-2, #586860); font-size: 0.92rem; line-height: 1.45; }
.wgh-vert-meta { margin-top: 6px; color: var(--green, #0E8C5A); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* Related entities + further reading (entity pages) */
.wgh-related { margin-top: 18px; }
.wgh-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.wgh-related-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line, #EDEAE0); border-radius: 10px; text-decoration: none; transition: border-color .15s ease; }
.wgh-related-item:hover { border-color: var(--green, #0E8C5A); }
.wgh-related-name { font-weight: 600; color: var(--ink, #20211C); }
.wgh-related-fig { font-size: 0.85rem; color: var(--green, #0E8C5A); font-weight: 600; }
.wgh-related-all { display: inline-block; margin-top: 12px; color: var(--green, #0E8C5A); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.wgh-reading { margin: 0; padding-left: 18px; }
.wgh-reading li { margin: 7px 0; }
.wgh-reading a { color: var(--green, #0E8C5A); }
