/* ============================================================
   WOODBRIEF — Ghost Theme Stylesheet
   ============================================================ */

/* ============================================================
   GHOST KOENIG EDITOR CARD STYLES (required by Ghost)
   ============================================================ */

/* Card width modifiers — required by Ghost theme checker */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw) !important;
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Image card */
.kg-image-card { margin: 1.5em auto; }
.kg-image-card img { display: block; margin: auto; }

/* Gallery card */
.kg-gallery-card { margin: 1.5em auto; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 0.5rem; }
.kg-gallery-row { display: flex; gap: 0.5rem; }
.kg-gallery-image { flex: 1; object-fit: cover; width: 100%; }

/* Bookmark card */
.kg-bookmark-card { margin: 1.5em auto; }
.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text-dark);
  background: var(--bg-off);
  transition: background 0.15s;
}
.kg-bookmark-container:hover { background: #f0f4f1; }
.kg-bookmark-content { padding: 1rem 1.25rem; flex: 1; }
.kg-bookmark-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.kg-bookmark-description { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.5rem; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-author { font-size: 0.75rem; color: var(--text-muted); }
.kg-bookmark-publisher { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.kg-bookmark-thumbnail { width: 120px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--green-pale);
  border-left: 4px solid var(--green-mid);
  margin: 1.5em 0;
}
.kg-callout-emoji { font-size: 1.25rem; flex-shrink: 0; }
.kg-callout-text { font-size: 0.95rem; line-height: 1.65; color: var(--text-mid); }

/* Toggle card */
.kg-toggle-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5em 0;
}
.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.kg-toggle-content { padding: 0 1.25rem 1rem; font-size: 0.9rem; color: var(--text-muted); }

/* Video card */
.kg-video-card { margin: 1.5em auto; }
.kg-video-card video { width: 100%; border-radius: var(--radius); }

/* Audio card */
.kg-audio-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-off);
  margin: 1.5em 0;
}
.kg-audio-player { flex: 1; }
.kg-audio-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }

/* File card */
.kg-file-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-off);
  margin: 1.5em 0;
  color: var(--text-dark);
  transition: background 0.15s;
}
.kg-file-card:hover { background: #f0f4f1; }
.kg-file-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.kg-file-title { font-weight: 600; font-size: 0.9rem; }
.kg-file-caption { font-size: 0.75rem; color: var(--text-muted); }
.kg-file-card-metadata { flex: 1; }

/* Product card */
.kg-product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5em 0;
}
.kg-product-card-image { margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; }
.kg-product-card-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.kg-product-card-description { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.kg-product-card-button { display: inline-block; }

/* Header card */
.kg-header-card {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--green-dark);
  color: #fff;
  border-radius: var(--radius);
  margin: 1.5em 0;
}
.kg-header-card h2 { color: #fff; }
.kg-header-card-button { margin-top: 1.25rem; }

/* Button card */
.kg-button-card { text-align: center; margin: 1.5em 0; }
.kg-btn { display: inline-block; padding: 0.65rem 1.5rem; background: var(--green-dark); color: #fff; border-radius: var(--radius); font-weight: 500; font-size: 0.9rem; }
.kg-btn:hover { background: var(--green-mid); color: #fff; }

/* Divider card */
.kg-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Code card */
.kg-code-card {
  background: #1a1a2e;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}
.kg-code-card pre { margin: 0; }
.kg-code-card code { color: #e2e8f0; font-size: 0.85rem; line-height: 1.7; font-family: 'Courier New', monospace; }

/* Embed card */
.kg-embed-card { margin: 1.5em auto; }
.kg-embed-card iframe { width: 100%; border-radius: var(--radius); }

/* NFT card (stub) */
.kg-nft-card { margin: 1.5em auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* Caption text under cards */
.kg-image-card figcaption,
.kg-gallery-card figcaption,
.kg-video-card figcaption,
.kg-embed-card figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Responsive kg-width fixes */
@media (max-width: 768px) {
  .kg-width-wide,
  .kg-width-full {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none;
  }
  .kg-bookmark-thumbnail { display: none; }
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Ghost custom font variables (required by Ghost theme checker) */
  --gh-font-heading: 'Playfair Display', Georgia, serif;
  --gh-font-body:    'Inter', system-ui, sans-serif;

  --green-dark:   #1B3D2F;
  --green-mid:    #2D6A4F;
  --green-light:  #4A9473;
  --green-pale:   #EAF2ED;
  --gold:         #B8922E;
  --gold-light:   #F5EDD6;
  --navy:         #0F2040;
  --text-dark:    #1A1A1A;
  --text-mid:     #444444;
  --text-muted:   #777777;
  --border:       #D8E3DC;
  --bg-white:     #FFFFFF;
  --bg-off:       #F7F9F7;
  --bg-dark:      #111E17;
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'Inter', system-ui, sans-serif;
  --max-width:    1180px;
  --radius:       4px;
}

html { font-size: 16px; scroll-behavior: smooth; background: var(--bg-white) !important; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-white) !important;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-mid); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--serif); line-height: 1.25; color: var(--text-dark); }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h1,.section--dark h2,.section--dark h3 { color: #fff; }
.section--off  { background: var(--bg-off); }
.section--green { background: var(--green-pale); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); color: #fff; }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #9a7a24; border-color: #9a7a24; color: #fff; }

/* ── Tags / Badges ── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  background: var(--green-pale);
  color: var(--green-dark);
}
.tag--retrofit { background: #E8F4EA; color: #1B5E20; }
.tag--policy   { background: #E3EBF6; color: #1A3A5C; }
.tag--esg      { background: #F0EAF8; color: #4A2070; }
.tag--grants   { background: #FFF5E0; color: #7A5000; }
.tag--mees     { background: #FCE8E8; color: #7A1A1A; }
.tag--netzero  { background: #E8F6F0; color: #1B5E3B; }
.tag--landlord { background: #E8EEF8; color: #1A2E5C; }
.tag--organisation { background: #F3EAF8; color: #3D1A5C; }
.tag--org      { background: #F3EAF8; color: #3D1A5C; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  letter-spacing: 0.04em;
}
.status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-active   { background: #E4F5EC; color: #1B5E35; }
.status-active::before { background: #2ECC71; }
.status-upcoming { background: #FFF3CD; color: #856404; }
.status-upcoming::before { background: #FFC107; }
.status-amended  { background: #FDE8E8; color: #842029; }
.status-amended::before { background: #DC3545; }
.status-consulted { background: #E8EFF8; color: #1A3A6B; }
.status-consulted::before { background: #3B82F6; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}
.nav__brand-leaf {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__brand-leaf svg { width: 26px; height: 26px; fill: none; stroke: var(--green-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__links { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--green-dark); background: var(--green-pale); }
.nav__link--cta { background: var(--green-dark); color: #fff !important; padding: 0.4rem 0.9rem; }
.nav__link--cta:hover { background: var(--green-mid); color: #fff !important; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; }
.nav__mobile {
  display: none;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { width: 100%; padding: 0.6rem 0.75rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.75); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer__brand .nav__brand-leaf svg { stroke: #fff; }
.footer__tagline { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 1.25rem; }
.footer__newsletter-form { display: flex; gap: 0; max-width: 320px; }
.footer__newsletter-input { flex: 1; padding: 0.6rem 0.9rem; font-family: var(--sans); font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.2); border-right: none; border-radius: var(--radius) 0 0 var(--radius); background: rgba(255,255,255,0.07); color: #fff; outline: none; }
.footer__newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.footer__newsletter-input:focus { border-color: var(--green-light); }
.footer__newsletter-btn { padding: 0.6rem 1rem; background: var(--green-mid); color: #fff; border: 1px solid var(--green-mid); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.8rem; font-weight: 500; cursor: pointer; font-family: var(--sans); }
.footer__newsletter-btn:hover { background: var(--green-light); }
.footer__col h5 { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer__col ul li { margin-bottom: 0.5rem; }
.footer__col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer__col ul li a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer__bottom a { color: rgba(255,255,255,0.45); }
.footer__bottom a:hover { color: rgba(255,255,255,0.7); }
.footer__legal { display: flex; gap: 1.5rem; }

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header { background: var(--green-dark); color: #fff; padding: 4rem 0 3rem; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%); pointer-events: none; }
.page-header__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.75rem; display: block; }
.page-header h1 { color: #fff; margin-bottom: 0.75rem; }
.page-header p { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 600px; line-height: 1.65; margin: 0; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 2.5rem; }
.section-header__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 0.5rem; display: block; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); max-width: 560px; }
.section-header--center { text-align: center; }
.section-header--center p { margin: 0 auto; }
.view-all { font-size: 0.8rem; font-weight: 500; color: var(--green-mid); display: inline-flex; align-items: center; gap: 0.3rem; }
.view-all:hover { color: var(--green-dark); }
.view-all::after { content: '→'; }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--green-dark); color: #fff; padding: 6rem 0 5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 45%; height: 100%; background: linear-gradient(135deg, transparent 0%, rgba(45,106,79,0.25) 100%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -80px; right: -80px; width: 400px; height: 400px; border: 60px solid rgba(255,255,255,0.03); border-radius: 50%; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; border: 1px solid rgba(255,255,255,0.15); padding: 0.3rem 0.8rem; border-radius: 2px; }
.hero__eyebrow span { color: var(--green-light); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 700px; margin-bottom: 1.25rem; line-height: 1.15; }
.hero__subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 560px; line-height: 1.7; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.12); flex-wrap: wrap; }
.hero__stat-value { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 0.3rem; }
.hero__stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 0.03em; }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.article-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); transform: translateY(-2px); }
.article-card__img { height: 180px; background: var(--green-pale); position: relative; overflow: hidden; }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; }
.article-card__img-inner { width: 100%; height: 100%; background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%); display: flex; align-items: center; justify-content: center; }
.article-card__img-pattern { position: absolute; inset: 0; opacity: 0.08; background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%); background-size: 14px 14px; }
.article-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.article-card__title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.5rem; color: var(--text-dark); }
.article-card__title a:hover { color: var(--green-mid); }
.article-card__excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: auto; }
.article-card__read { font-weight: 500; color: var(--green-mid); font-size: 0.78rem; }
.article-card__read:hover { color: var(--green-dark); }
.article-card--featured { grid-column: span 2; flex-direction: row; }
.article-card--featured .article-card__img { height: auto; min-height: 220px; width: 320px; flex-shrink: 0; }
.article-card--featured .article-card__title { font-size: 1.3rem; }

/* ============================================================
   TEASER PANELS
   ============================================================ */
.teaser-panel { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.teaser-panel__header { background: var(--green-dark); padding: 1.5rem; color: #fff; }
.teaser-panel__header h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.25rem; }
.teaser-panel__header p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin: 0; }
.teaser-panel__list { padding: 0.75rem 0; }
.teaser-panel__item { padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 0.75rem; }
.teaser-panel__item:last-child { border-bottom: none; }
.teaser-panel__item-dot { width: 6px; height: 6px; background: var(--green-light); border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0; }
.teaser-panel__item-title { font-size: 0.875rem; font-weight: 500; color: var(--text-dark); line-height: 1.4; margin-bottom: 0.2rem; }
.teaser-panel__item-title a:hover { color: var(--green-mid); }
.teaser-panel__item-meta { font-size: 0.72rem; color: var(--text-muted); }
.teaser-panel__footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-off); }

/* ============================================================
   TOOL CARDS
   ============================================================ */
.tool-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; position: relative; overflow: hidden; transition: box-shadow 0.2s; }
.tool-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.tool-card__icon { width: 44px; height: 44px; background: var(--green-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.3rem; }
.tool-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.tool-card__corner { position: absolute; bottom: -20px; right: -20px; width: 80px; height: 80px; background: var(--green-pale); border-radius: 50%; opacity: 0.5; }

/* ============================================================
   POLICY TRACKER CARDS
   ============================================================ */
.tracker-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: box-shadow 0.2s; }
.tracker-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.tracker-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.tracker-card__title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--text-dark); }
.tracker-card__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.tracker-card__footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.tracker-card__updated { font-size: 0.72rem; color: var(--text-muted); }
.tracker-card__link { font-size: 0.78rem; font-weight: 500; color: var(--green-mid); }
.tracker-card__link:hover { color: var(--green-dark); }

/* ============================================================
   GRANT CARDS
   ============================================================ */
.grant-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: box-shadow 0.2s; }
.grant-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.grant-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.grant-card__title { font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.grant-card__amount { font-size: 0.78rem; font-weight: 600; background: var(--gold-light); color: var(--gold); padding: 0.25rem 0.6rem; border-radius: 2px; white-space: nowrap; }
.grant-card__row { display: flex; gap: 2rem; flex-wrap: wrap; }
.grant-card__field label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; color: var(--text-muted); margin-bottom: 0.2rem; }
.grant-card__field span { font-size: 0.82rem; font-weight: 500; color: var(--text-dark); }
.grant-card__eligibility { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }
.grant-card__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: auto; }
.grant-card__deadline { font-size: 0.75rem; color: var(--text-muted); }
.grant-card__deadline strong { color: var(--text-dark); }

/* ============================================================
   FILTERS / SEARCH
   ============================================================ */
.filter-bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-bar__search { flex: 1; min-width: 220px; position: relative; }
.filter-bar__search input { width: 100%; padding: 0.6rem 0.9rem 0.6rem 2.3rem; font-family: var(--sans); font-size: 0.875rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); outline: none; color: var(--text-dark); }
.filter-bar__search input:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }
.filter-bar__search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.filter-bar__select { padding: 0.6rem 0.9rem; font-family: var(--sans); font-size: 0.875rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); outline: none; cursor: pointer; color: var(--text-dark); }
.filter-bar__select:focus { border-color: var(--green-mid); }
.filter-btn { padding: 0.55rem 1rem; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); cursor: pointer; color: var(--text-mid); font-family: var(--sans); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.filter-btn:hover, .filter-btn.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* ============================================================
   GITHUB CALLOUT BANNER
   ============================================================ */
.github-callout { background: var(--green-pale); border: 1px solid var(--border); border-left: 4px solid var(--green-mid); border-radius: var(--radius); padding: 1.1rem 1.4rem; display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2.5rem; }
.github-callout__icon { width: 36px; height: 36px; background: var(--green-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.github-callout__icon svg { width: 18px; height: 18px; fill: #fff; }
.github-callout__text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; }
.github-callout__text strong { color: var(--text-dark); }
.github-callout__text a { color: var(--green-mid); font-weight: 500; text-decoration: underline; }

/* ============================================================
   FOCUS BANNER
   ============================================================ */
.focus-banner { background: var(--green-pale); border: 1px solid var(--border); border-left: 4px solid var(--green-dark); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }
.focus-banner strong { color: var(--text-dark); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.sidebar-widget h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--sans); font-weight: 600; color: var(--text-muted); margin-bottom: 1rem; }
.sidebar-widget ul li { padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.83rem; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--text-dark); }
.sidebar-widget ul li a:hover { color: var(--green-mid); }
.sticky-sidebar { position: sticky; top: 84px; }

/* ============================================================
   ARTICLE READING LAYOUT
   ============================================================ */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.article-body p { font-size: 1rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { font-size: 1rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 0.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote { border-left: 4px solid var(--green-mid); padding: 0.75rem 1.25rem; background: var(--green-pale); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; font-size: 1.05rem; color: var(--text-mid); margin: 1.5rem 0; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body figure { margin: 1.5rem 0; }
.article-body figcaption { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.article-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro { font-size: 1.2rem; line-height: 1.8; color: var(--text-mid); font-family: var(--serif); font-style: italic; }
.expertise-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.expertise-item:last-child { border-bottom: none; }
.expertise-icon { width: 36px; height: 36px; background: var(--green-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.expertise-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.expertise-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text-mid); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.65rem 0.9rem; font-family: var(--sans); font-size: 0.875rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); color: var(--text-dark); outline: none; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }

/* ============================================================
   SECTION LAYOUTS (Landlords / Orgs)
   ============================================================ */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.article-list-item { display: flex; flex-direction: row; margin-bottom: 1.25rem; }
.article-list-item .article-card__img { width: 200px; flex-shrink: 0; height: auto; min-height: 160px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 2rem 0; }
.pagination a { font-size: 0.875rem; font-weight: 500; color: var(--green-mid); }
.pagination a:hover { color: var(--green-dark); }
.pagination .page-number { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.error-page h1 { font-size: 5rem; color: var(--green-pale); margin-bottom: 0.5rem; }
.error-page h2 { margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article-card--featured { grid-column: span 1; flex-direction: column; }
  .article-card--featured .article-card__img { width: 100%; }
  .article-layout, .content-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; }
  .hero__stats { gap: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__newsletter-form { max-width: 100%; }
  .article-card--featured { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar__search { min-width: 0; }
  .grant-card__row { flex-direction: column; gap: 0.75rem; }
  .hero__actions { flex-direction: column; width: fit-content; }
  .article-list-item { flex-direction: column !important; }
  .article-list-item .article-card__img { width: 100% !important; height: 160px; }
}
