/*
Theme Name: GlobalEcon Daily
Template: generatepress
Author: GlobalEcon Daily
Description: Child theme for GlobalEcon Daily. Editorial layout for country economic analysis, with a dynamic homepage that updates as posts are published.
Version: 1.0
Text Domain: globalecon
*/

:root {
  --ge-navy:      #042C53;
  --ge-navy-soft: #0C447C;
  --ge-pale:      #B5D4F4;
  --ge-mid:       #85B7EB;
  --ge-ink:       #16181C;
  --ge-body:      #454A52;
  --ge-quiet:     #767B84;
  --ge-rule:      #DEDCD5;
  --ge-paper:     #FFFFFF;
  --ge-tint:      #F6F5F1;
  --ge-measure:   43rem;
}

body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: var(--ge-body);
  background: var(--ge-paper);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, h4,
.ge-display {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--ge-ink);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.16;
}

a { color: var(--ge-navy); }

/* ---------- Hero ---------- */

.ge-hero {
  background: var(--ge-navy);
  padding: 4.5rem 0 4rem;
  margin-bottom: 3rem;
}

.ge-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ge-hero__country {
  font-size: 0.9375rem;
  color: var(--ge-mid);
  margin-bottom: 1rem;
}

.ge-hero__country a { color: var(--ge-mid); text-decoration: none; }
.ge-hero__country a:hover { color: #fff; text-decoration: underline; }

.ge-hero__title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 46rem;
  margin: 0 0 1.15rem;
}

.ge-hero__title a { color: #fff; text-decoration: none; }
.ge-hero__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.ge-hero__stand {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ge-pale);
  max-width: 36rem;
  margin: 0;
}

/* ---------- Lead excerpt ---------- */

.ge-lead {
  max-width: var(--ge-measure);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.ge-lead p {
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--ge-body);
  margin: 0 0 1.1rem;
}

.ge-lead__more {
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- Weekly report ---------- */

.ge-report {
  max-width: var(--ge-measure);
  margin: 0 auto 3.5rem;
  padding: 1.6rem 1.5rem 0;
  border-top: 2px solid var(--ge-navy);
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.4rem;
  align-items: center;
}

.ge-report__cover {
  background: var(--ge-navy);
  min-height: 7.5rem;
  padding: 0.85rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ge-report__mark { font-size: 0.5rem; letter-spacing: 0.09em; color: var(--ge-mid); }
.ge-report__name { font-family: "Source Serif 4", Georgia, serif; font-size: 0.8rem; line-height: 1.2; color: #fff; }
.ge-report__issue { font-size: 0.5625rem; color: var(--ge-pale); }

.ge-report__title { font-size: 1.3rem; margin: 0 0 0.4rem; }
.ge-report__blurb { font-size: 0.9375rem; color: var(--ge-body); margin: 0 0 0.9rem; }

.ge-btn {
  display: inline-block;
  background: var(--ge-navy);
  color: #fff;
  font-size: 0.9375rem;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  margin-right: 0.6rem;
}

.ge-btn:hover { background: var(--ge-navy-soft); color: #fff; }

/* ---------- Analysis grid ---------- */

.ge-section-head {
  max-width: 64rem;
  margin: 0 auto 1.4rem;
  padding: 0 1.5rem 0.6rem;
  font-size: 1.35rem;
}

.ge-section-head span {
  display: block;
  border-bottom: 2px solid var(--ge-navy);
  padding-bottom: 0.55rem;
}

.ge-grid {
  max-width: 64rem;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 1.6rem;
}

.ge-card__country {
  font-size: 0.875rem;
  color: var(--ge-navy);
  margin-bottom: 0.4rem;
}

.ge-card__country a { text-decoration: none; }
.ge-card__country a:hover { text-decoration: underline; }

.ge-card__title { font-size: 1.2rem; margin: 0 0 0.45rem; }
.ge-card__title a { color: var(--ge-ink); text-decoration: none; }
.ge-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ge-card__stand { font-size: 0.9375rem; color: var(--ge-body); margin: 0 0 0.45rem; }
.ge-card__meta  { font-size: 0.8125rem; color: var(--ge-quiet); }

/* ---------- Coverage ---------- */

.ge-coverage { background: var(--ge-tint); padding: 2.5rem 0; margin-bottom: 0; }
.ge-coverage h2 { font-size: 1.35rem; margin: 0 0 0.3rem; }
.ge-coverage__note { font-size: 0.9375rem; color: var(--ge-body); margin: 0 0 1.2rem; }

.ge-coverage__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ge-coverage__list a {
  display: block;
  background: var(--ge-paper);
  padding: 0.5rem 0.7rem;
  font-size: 0.875rem;
  color: var(--ge-ink);
  text-decoration: none;
  border: 1px solid var(--ge-rule);
}

.ge-coverage__list a:hover { border-color: var(--ge-navy); color: var(--ge-navy); }

/* ---------- Single posts ---------- */

.single .entry-content,
.single .entry-header { max-width: var(--ge-measure); margin-left: auto; margin-right: auto; }
.single .entry-content p { font-size: 1.125rem; line-height: 1.72; }
.single h1.entry-title { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }

/* ---------- Focus and motion ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ge-navy);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 40rem) {
  .ge-hero { padding: 2.75rem 0 2.5rem; }
  .ge-report { grid-template-columns: 1fr; }
  .ge-report__cover { max-width: 5.5rem; }
}
.home .site-content,.home .content-area,.home #primary,.home .site-main{display:block;width:100%;max-width:100%;float:none}

/* EcoQuestionBank advert at the top right, beside the lead text and the analysis cards */
.ge-with-ad{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:2rem;max-width:calc(61rem + 332px);margin:0 auto;padding:0 1.5rem;align-items:start}
.ge-with-ad__main{min-width:0}
.ge-with-ad__ad{margin-top:1.5rem}
@media (max-width:960px){.ge-with-ad{grid-template-columns:1fr}.ge-with-ad__ad{display:flex;justify-content:center;margin:0 0 2rem}}
