* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent, #1a4f8a); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Masthead */
.site-header { border-bottom: 3px solid var(--accent, #1a4f8a); padding: 16px 0 12px; }
.site-header.has-banner { padding-top: 0; }
.stand-banner { display: block; width: 100%; max-width: 1600px; height: auto; margin: 0 auto 16px; }
.header-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.masthead { max-width: 60%; }
.brand { font-size: 30px; font-weight: 700; color: #1a1a1a; line-height: 1.1; }
.brand:hover { text-decoration: none; color: var(--accent, #1a4f8a); }
.masthead-tag { margin: 4px 0 0; font-size: 14px; color: #555; font-family: -apple-system, 'Segoe UI', sans-serif; }
.site-nav { font-family: -apple-system, 'Segoe UI', sans-serif; display: flex; flex-wrap: wrap; row-gap: 6px; }
.site-nav a { margin-left: 16px; font-size: 14px; font-weight: 600; }

/* Heritage theme: street-sign masthead */
.theme-heritage .brand {
  display: inline-block; padding: 4px 14px;
  background: #fff; border: 3px solid #1a1a1a; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.theme-heritage .site-header { border-bottom: 3px double var(--accent, #7f1010); }
.theme-heritage .section-head { border-bottom: 2px solid var(--accent, #7f1010); }

/* Lead story */
.lead-story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center; padding: 26px 0 18px; border-bottom: 2px solid #1a1a1a; }
.lead-thumb img { width: 100%; height: auto; display: block; }
.lead-text h2 { font-size: 28px; line-height: 1.2; margin: 4px 0 10px; }
.lead-text h2 a { color: #1a1a1a; }
.lead-text h2 a:hover { color: var(--accent, #1a4f8a); text-decoration: none; }
.lead-desc { color: #333; font-size: 17px; margin: 0 0 10px; }

/* Sections and cards */
.section-head { font-size: 18px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid #1a1a1a; padding-bottom: 6px; margin: 30px 0 4px; font-family: -apple-system, 'Segoe UI', sans-serif; }
.section-head a { color: #1a1a1a; }
.cards { list-style: none; margin: 0; padding: 0; }
.card { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e2e2e2; }
.card-thumb { flex: 0 0 148px; }
.card-thumb img { width: 148px; height: 99px; object-fit: cover; display: block; }
.card-text { min-width: 0; }
.card h3 { margin: 2px 0 6px; font-size: 20px; line-height: 1.3; }
.card h3 a { color: #1a1a1a; }
.card h3 a:hover { color: var(--accent, #1a4f8a); text-decoration: none; }
.card-cat { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent, #1a4f8a); font-family: -apple-system, 'Segoe UI', sans-serif; }
.card-desc { margin: 0 0 6px; color: #444; font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 15px; }
.card-date { margin: 0; font-size: 13px; color: #777; font-family: -apple-system, 'Segoe UI', sans-serif; }

/* Pages and articles */
.page-head { font-size: 30px; margin: 26px 0 4px; }
.page-sub { color: #555; margin-top: 0; font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 15px; }
.article-head { font-size: 32px; line-height: 1.2; margin: 28px 0 10px; }
.byline { margin: 0; font-size: 14px; color: #555; font-family: -apple-system, 'Segoe UI', sans-serif; }
.byline .author { font-weight: 700; color: #333; }
.byline-divider { border: none; border-top: 1px solid #1a1a1a; margin: 12px 0 20px; }
article h2 { font-size: 22px; margin: 28px 0 8px; }
article h3 { font-size: 18px; margin: 22px 0 6px; }
article p { margin: 0 0 16px; font-size: 19px; line-height: 1.65; }
article ul { margin: 0 0 14px; padding-left: 22px; }
article li { margin-bottom: 6px; font-size: 19px; line-height: 1.6; }
.hero { margin: 0 0 18px; }
.hero img { width: 100%; height: auto; display: block; }
.hero figcaption { font-size: 13px; color: #777; margin-top: 6px; font-family: -apple-system, 'Segoe UI', sans-serif; }
.hero .credit { font-size: 12px; line-height: 1.4; font-weight: 400; color: #777; }
.hero .credit a { color: inherit; font-weight: inherit; }

/* Collapsed sources */
details.sources { margin: 26px 0 10px; border-top: 1px solid #e2e2e2; padding-top: 10px; }
details.sources summary { cursor: pointer; font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent, #1a4f8a); }
details.sources ul { margin: 10px 0 0; padding-left: 22px; font-size: 14px; }
details.sources li { margin-bottom: 4px; word-break: break-word; }

/* Related */
.related { margin-top: 34px; }

/* Footer */
.site-footer { margin-top: 48px; border-top: 3px solid var(--accent, #1a4f8a); padding: 20px 0 36px; }
.footer-brand { font-weight: 700; font-size: 18px; margin: 0 0 2px; }
.footer-tag { margin: 0 0 10px; color: #555; font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 14px; }
.footer-links { margin: 0; font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 14px; }

/* GA consent */
#ga-consent-ui { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; }
#ga-consent-ui .ga-box { background: #fff; border: 1px solid #bbb; box-shadow: 0 4px 18px rgba(0,0,0,0.18); max-width: 480px; padding: 14px 16px; font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 14px; }
#ga-consent-ui p { margin: 0 0 8px; }
#ga-consent-ui .ga-btns { display: flex; gap: 10px; margin: 10px 0 0; }
#ga-consent-ui .ga-btns button { flex: 1; min-height: 44px; border: 1px solid #1a1a1a; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 10px; }
#ga-consent-ui .ga-btns button:hover { background: #f2f2f2; }
#ga-settings { position: fixed; left: 16px; bottom: 16px; z-index: 59; min-height: 44px; border: 1px solid #1a1a1a; background: #fff; font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 13px; padding: 8px 12px; cursor: pointer; }

@media (max-width: 640px) {
  .article-head { font-size: 26px; }
  .lead-story { grid-template-columns: 1fr; gap: 12px; }
  .masthead { max-width: 100%; }
  .site-nav a { margin-left: 0; margin-right: 12px; font-size: 13px; }
  .card-thumb { flex: 0 0 104px; }
  .card-thumb img { width: 104px; height: 70px; }
  .card h3 { font-size: 17px; }
}

/* Author box */
.author-box { margin-top: 34px; border-top: 1px solid #1a1a1a; padding-top: 12px; }
.author-box-name { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent, #1a4f8a); font-family: -apple-system, 'Segoe UI', sans-serif; }
.author-box-bio { margin: 0; font-size: 14px; color: #444; font-family: -apple-system, 'Segoe UI', sans-serif; }

/* Brand mark in masthead */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: block; width: 34px; height: 34px; }

/* Reader ratings widget + leaderboard + data tables */
.data-table{width:100%;border-collapse:collapse;margin:0 0 1.5rem;font-size:.95rem}
.data-table th{text-align:left;border-bottom:2px solid var(--accent);padding:.4rem .5rem}
.data-table td{border-bottom:1px solid #e5e1da;padding:.4rem .5rem;vertical-align:top}
.ratings-widget{border:1px solid #e5e1da;border-radius:8px;padding:1rem 1.25rem;margin:1.5rem 0}
.ratings-sub{font-size:.9rem;color:#555;margin-top:-.25rem}
.ratings-list{list-style:none;margin:0;padding:0}
.rp-row{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;padding:.45rem 0;border-bottom:1px solid #f0ece4}
.rp-row:last-child{border-bottom:0}
.rp-name{flex:0 0 9.5rem;font-weight:600}
.rp-buttons{display:grid;grid-template-columns:repeat(5,1.9rem);gap:.3rem}
.rp-buttons button{width:1.9rem;height:1.9rem;border:1px solid #cfc9bd;background:#fff;border-radius:4px;cursor:pointer;font-size:.85rem}
.rp-buttons button:hover{border-color:var(--accent);color:var(--accent)}
.rp-buttons button:disabled{opacity:.5;cursor:default}
.rp-buttons button.rp-voted{background:var(--accent);border-color:var(--accent);color:#fff}
.rp-score{font-size:.85rem;color:#555;min-height:1.2em}
.rp-result{margin:.75rem 0 0;font-size:.9rem;color:#333}
.rp-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.ratings-table{width:100%;border-collapse:collapse;font-size:.95rem}
.ratings-table th{text-align:left;border-bottom:2px solid var(--accent);padding:.4rem .5rem}
.ratings-table td{border-bottom:1px solid #e5e1da;padding:.4rem .5rem}
.site-nav a{white-space:nowrap}

/* Share bar (article template) */
.share-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:.75rem 0 1.1rem;font-size:.85rem}
.share-label{font-weight:600;color:#555;margin-right:2px}
.share-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 .8rem;border:1px solid #ddd;border-radius:6px;background:#fff;color:var(--accent);text-decoration:none;font:inherit;font-size:.85rem;cursor:pointer;box-sizing:border-box}
a.share-btn{color:var(--accent)}
.share-btn:hover{border-color:var(--accent)}
.share-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.share-note{font-size:.8rem;color:#2e7d32}

/* Existing share actions, rendered as labelled icons. */
.share-bar .share-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;box-sizing:border-box;width:44px;min-width:44px;height:44px;padding:0;border:0;border-radius:8px;background:#334155;color:#fff;line-height:1;vertical-align:middle;text-decoration:none;cursor:pointer}
.share-bar .share-btn[hidden]{display:none}
.share-bar .share-btn svg{display:block;width:23px;height:23px;fill:currentColor;flex:none}
.share-bar .share-whatsapp{background:#128c4a}.share-bar .share-x{background:#111}.share-bar .share-facebook{background:#1877f2}.share-bar .share-reddit{background:#d93900}.share-bar .share-email{background:#334155}.share-bar .share-native{background:#5357a6}.share-bar .share-copy{background:#52616b}
.share-bar .share-btn:hover{color:#fff;filter:brightness(.88)}.share-bar .share-btn:focus-visible{outline:3px solid var(--accent,#111);outline-offset:3px;box-shadow:0 0 0 2px #fff}
.share-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Comments (GraphComment) */
.card-comments{font-size:.78rem;color:#777}
.comments{margin:2rem 0 1rem;border-top:1px solid #e5e5e5;padding-top:1rem}
.comments-note{font-size:.85rem;color:#555;margin:.2rem 0 1rem}
#graphcomment{min-height:180px}

/* Share bar: one row on narrow phones, label kept for screen readers. */
@media (max-width:520px){.share-bar{flex-wrap:wrap;gap:4px}.share-bar .share-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.share-bar .share-btn{flex:1 1 0;min-width:36px;width:auto;max-width:44px}.share-bar .share-btn svg{width:21px;height:21px}.share-bar .share-note{flex:0 0 100%;order:99;white-space:normal;margin-top:2px;position:static}.share-bar .share-note:empty{display:none}}
