/* ==========================================================================
   Central America Asset Signals — Archive Stylesheet
   --------------------------------------------------------------------------
   All brand values (color, type, spacing) are isolated as CSS custom
   properties in :root below. This is deliberate: the Granadita Horizon
   live site's exact stylesheet was not accessible from this build
   environment, so these are placeholder institutional values. Swapping
   this section for the site's real tokens is a find-and-replace, not a
   rebuild — nothing below :root should need to change.
   ========================================================================== */

:root {
  /* --- Brand tokens (REPLACE with granaditahorizon.com's real values) --- */
  --gh-navy: #0b2a3d;
  --gh-navy-deep: #081e2c;
  --gh-sand: #f5f1e8;
  --gh-sand-deep: #ece4d2;
  --gh-accent: #b48a4a;   /* muted gold/brass accent, institutional not flashy */
  --gh-accent-deep: #96713a;
  --gh-ink: #1c2b33;
  --gh-ink-soft: #4a5a62;
  --gh-white: #ffffff;
  --gh-border: #d8d2c4;
  --gh-amber-flag: #a9631c;

  --gh-font-display: Georgia, 'Times New Roman', serif;
  --gh-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --gh-radius: 2px;
  --gh-max-width: 880px;
  --gh-max-width-wide: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--gh-sand);
  color: var(--gh-ink);
  font-family: var(--gh-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gh-navy); }
a:hover { color: var(--gh-accent-deep); }

img { max-width: 100%; display: block; }

/* --- Site header (mirrors existing GH nav pattern) --- */
.gh-header {
  background: var(--gh-navy);
  color: var(--gh-white);
}
.gh-header__inner {
  max-width: var(--gh-max-width-wide);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.gh-header__brand {
  font-family: var(--gh-font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--gh-white);
  text-decoration: none;
}
.gh-header__nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.gh-header__nav a {
  color: var(--gh-sand);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.gh-header__nav a:hover { color: var(--gh-white); }
.gh-lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--gh-radius);
  overflow: hidden;
}
.gh-lang-toggle a {
  padding: 4px 10px;
  font-size: 12px;
  text-decoration: none;
  color: var(--gh-sand);
}
.gh-lang-toggle a[aria-current="true"] {
  background: var(--gh-accent);
  color: var(--gh-navy-deep);
  font-weight: 600;
}

/* --- Archive hero / section intro --- */
.cas-hero {
  background: linear-gradient(180deg, var(--gh-navy) 0%, var(--gh-navy-deep) 100%);
  color: var(--gh-white);
  padding: 56px 24px 48px;
}
.cas-hero__inner { max-width: var(--gh-max-width-wide); margin: 0 auto; }
.cas-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--gh-accent);
  margin: 0 0 10px;
}
.cas-hero__title {
  font-family: var(--gh-font-display);
  font-size: 34px;
  margin: 0 0 14px;
  line-height: 1.25;
}
.cas-hero__desc {
  max-width: 680px;
  color: var(--gh-sand-deep);
  font-size: 16px;
  margin: 0;
}

/* --- Breadcrumb / meta strip --- */
.cas-meta-strip {
  max-width: var(--gh-max-width-wide);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--gh-ink-soft);
}
.cas-meta-strip a { color: var(--gh-ink-soft); }

/* --- Index: issue grid --- */
.cas-index {
  max-width: var(--gh-max-width-wide);
  margin: 0 auto;
  padding: 36px 24px 72px;
}
.cas-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.cas-card {
  background: var(--gh-white);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cas-card__issue {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gh-accent-deep);
  font-weight: 600;
}
.cas-card__title {
  font-family: var(--gh-font-display);
  font-size: 19px;
  margin: 0;
  color: var(--gh-ink);
}
.cas-card__title a { color: inherit; text-decoration: none; }
.cas-card__title a:hover { color: var(--gh-navy); }
.cas-card__date { font-size: 13px; color: var(--gh-ink-soft); }
.cas-card__summary { font-size: 14px; color: var(--gh-ink-soft); margin: 0; flex-grow: 1; }
.cas-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* --- Category tags --- */
.cas-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gh-sand-deep);
  color: var(--gh-ink-soft);
  border: 1px solid var(--gh-border);
}
.cas-tag--infrastructure { background: #e4ecf1; color: #1f4b63; border-color: #c7d9e3; }
.cas-tag--tourism        { background: #eef1df; color: #4c5c22; border-color: #dbe2c2; }
.cas-tag--capital        { background: #f2e7d8; color: #7a5420; border-color: #e3d0b2; }
.cas-tag--atlantida      { background: #f1e3e6; color: #7a2f3b; border-color: #e5c9ce; }
.cas-tag--investment     { background: #e9e4f1; color: #4b3b7a; border-color: #d6cce5; }

/* --- Issue page --- */
.cas-issue {
  max-width: var(--gh-max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.cas-issue__header { margin-bottom: 32px; border-bottom: 1px solid var(--gh-border); padding-bottom: 24px; }
.cas-issue__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gh-accent-deep); margin: 0 0 6px; }

/* --- Prominent issue number: the archive's permanent-identity marker.
   Deliberately larger and bolder than any other kicker on the page —
   this is the one element every issue must be instantly identifiable by. --- */
.cas-issue-number {
  display: inline-block;
  font-family: var(--gh-font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--gh-navy);
  background: linear-gradient(180deg, transparent 62%, var(--gh-accent) 62%);
  padding: 0 2px 2px;
  margin: 0 0 14px;
}
.cas-issue__theme {
  font-size: 17px;
  color: var(--gh-ink-soft);
  margin: 4px 0 16px;
  max-width: 640px;
}

/* --- Issue number badge --- */
.cas-issue-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gh-navy);
  color: var(--gh-white);
  border-radius: var(--gh-radius);
  padding: 6px 8px 6px 6px;
}
.cas-issue-badge__num {
  background: var(--gh-accent);
  color: var(--gh-navy-deep);
  font-family: var(--gh-font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: var(--gh-radius);
  min-width: 1.6em;
  text-align: center;
}
.cas-issue-badge__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gh-sand-deep);
}
.cas-issue-badge--sm { padding: 4px 7px 4px 5px; margin-bottom: 2px; }
.cas-issue-badge--sm .cas-issue-badge__num { font-size: 12px; padding: 3px 7px; }
.cas-issue-badge--sm .cas-issue-badge__label { font-size: 10px; }
.cas-issue__title { font-family: var(--gh-font-display); font-size: 30px; line-height: 1.3; margin: 0 0 12px; }
.cas-issue__subline { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--gh-ink-soft); }
.cas-issue__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cas-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--gh-radius);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid var(--gh-navy);
}
.cas-btn--primary { background: var(--gh-navy); color: var(--gh-white); }
.cas-btn--primary:hover { background: var(--gh-navy-deep); color: var(--gh-white); }
.cas-btn--ghost { background: transparent; color: var(--gh-navy); }
.cas-btn--ghost:hover { background: var(--gh-sand-deep); }

.cas-section { margin: 32px 0; }
.cas-section__title {
  font-family: var(--gh-font-display);
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--gh-navy);
  border-left: 3px solid var(--gh-accent);
  padding-left: 12px;
}
.cas-section__body p { margin: 0 0 14px; }
.cas-section__body--empty { color: var(--gh-ink-soft); font-style: italic; }

/* --- GH Perspective: the signature analytical callout, set apart from
   the neutral "Watch" sections above it --- */
.cas-perspective {
  margin: 36px 0;
  background: var(--gh-navy);
  color: var(--gh-sand);
  border-radius: var(--gh-radius);
  padding: 28px 30px;
  position: relative;
}
.cas-perspective::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--gh-accent);
}
.cas-perspective__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--gh-accent);
  margin: 0 0 12px;
  font-weight: 600;
}
.cas-perspective__body p {
  font-family: var(--gh-font-display);
  font-size: 19px;
  line-height: 1.55;
  color: var(--gh-white);
  margin: 0 0 12px;
}
.cas-perspective__body p:last-child { margin-bottom: 0; }
.cas-perspective__body .cas-section__body--empty { color: var(--gh-sand-deep); font-family: var(--gh-font-body); font-size: 14px; }

.cas-cta {
  background: var(--gh-sand-deep);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 26px;
  text-align: center;
  margin: 40px 0;
}
.cas-cta p { margin: 0 0 14px; font-size: 15px; }

.cas-related { margin-top: 40px; }
.cas-related__list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cas-related__item {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 14px 16px;
  background: var(--gh-white);
  text-decoration: none;
  color: var(--gh-ink);
  font-size: 14px;
}
.cas-related__item:hover { border-color: var(--gh-accent); }

/* --- Footer --- */
.gh-footer {
  background: var(--gh-navy-deep);
  color: var(--gh-sand-deep);
  padding: 32px 24px;
  font-size: 13px;
}
.gh-footer__inner { max-width: var(--gh-max-width-wide); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gh-footer a { color: var(--gh-sand-deep); }

/* --- Sample/placeholder watermark banner --- */
.cas-sample-banner {
  background: #fff3cd;
  color: #664d03;
  border-bottom: 1px solid #ffe69c;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
}

/* --- Print (PDF) --- */
@media print {
  .gh-header, .gh-footer, .cas-issue__actions, .cas-sample-banner, .cas-cta { display: none !important; }
  body { background: var(--gh-white); }
  .cas-issue { padding: 0; max-width: 100%; }
}

@media (max-width: 640px) {
  .cas-hero__title { font-size: 26px; }
  .cas-issue__title { font-size: 24px; }
}
