/* Roshan Pakistan Trust — global styles */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --brand: #1F6B3E;
  --brand-deep: #134524;
  --brand-soft: #E6EFE7;
  --amber: #D8A41B;
  --amber-soft: #FAEFC9;
  --green: #2E7D52;
  /* --green-soft removed (Phase 2.7) — use --brand-soft instead */
  /* --gold is intentionally calibrated for dark backgrounds only
     (brand-green, brand-deep, hero overlays). Contrast on white or
     cream backgrounds fails WCAG AA. If you need a gold accent on
     a light background, darken to ~#8A6A29 or use --amber. */
  --gold: #E8B547;
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #1E2A2E;
  --ink-2: #5A6A70;
  --line: #DDE2E5;
  --line-2: #EEEAE1;

  /* Status pill colour pairs. AA-audited for use on var(--bg) and var(--surface).
     The "Ongoing" foreground was darkened from #A46807 → #965F06 to clear WCAG AA
     at body text size (4.64:1). */
  --status-ongoing-fg: #965F06;
  --status-ongoing-bg: var(--amber-soft);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;

  /* Type scale */
  --fs-xs:   12px;   /* meta, captions, labels */
  --fs-sm:   14px;   /* small body, secondary text */
  --fs-base: 16px;   /* body */
  --fs-md:   18px;   /* lead paragraph, large body */
  --fs-lg:   22px;   /* card titles, small headings */
  --fs-xl:   28px;   /* section headings (h2) */
  --fs-2xl:  36px;   /* page headings (h1) */
  --fs-3xl:  44px;   /* hero displays */
  --fs-4xl:  60px;   /* mega display */

  /* Spacing scale (4px base) */
  --sp-px: 2px;   /* Pixel-precise — use rarely, for fine-tuning only (e.g. logo halo, hairline insets) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Radius scale */
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     16px;
  --radius-pill:   999px;
  --radius-circle: 50%;

  /* Shadow scale */
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow:       0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.12);
  /* Focus rings use `outline: <width> solid var(--amber)` (see :focus-visible block below) — no box-shadow-based focus token.
     The amber-coloured outline + outline-offset is the project's single focus-ring convention. */
}

* { box-sizing: border-box; }

.rpt-page {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'ss01', 'cv11';
  line-height: 1.5;
}

.rpt-page h1, .rpt-page h2, .rpt-page h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-amber { background: var(--amber); color: white; }
.btn-amber:hover { background: #B87208; }
.btn-brand { background: var(--brand); color: white; }
.btn-brand:hover { background: var(--brand-deep); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }

/* Pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--brand-soft);
  color: #1F5A3A;
}
.pill-dot::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: var(--radius-circle); background: var(--green);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-8); }
@media (max-width: 720px) { .container { padding: 0 var(--sp-5); } }

/* Placeholder image (striped) */
.img-placeholder {
  background-image:
    repeating-linear-gradient(135deg, rgba(31,107,62,0.06) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #EFEAE0, #DDD6C7);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: var(--fs-xs);
  color: #7A6E57;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Unsplash hero helper */
.photo {
  background-size: cover;
  background-position: center;
}

/* Divider */
.hr-thin { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Sticky nav */
.rpt-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  background: rgba(247, 245, 240, 0.85);
  border-bottom: 1px solid var(--line);
}

/* Focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Wireframe styles */
.wf {
  background: #FAFAF8;
  color: #2A2A28;
  font-family: var(--sans);
  font-size: 13px;
}
.wf .wf-box { border: 1.5px solid #2A2A28; background: white; }
.wf .wf-box--dim { border: 1.25px dashed #9A9A95; background: #F2F1EC; color: #6B6B66; }
.wf .wf-bar { background: #2A2A28; color: white; }
.wf .wf-caption { font-family: ui-monospace, 'SF Mono', monospace; font-size: 10.5px; color: #6B6B66; letter-spacing: 0.04em; text-transform: uppercase; }
.wf .wf-pill { display: inline-block; padding: 3px 8px; border: 1.25px solid #2A2A28; border-radius: 999px; font-size: 11px; font-weight: 600; }
.wf .wf-accent { background: var(--amber); color: white; border-color: var(--amber); }
.wf .wf-brand { background: var(--brand); color: white; border-color: var(--brand); }
.wf .wf-ph {
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.06) 0 6px, transparent 6px 14px);
  border: 1.25px solid #9A9A95;
  color: #6B6B66;
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, monospace; font-size: 11px;
}

/* Counters */
.counter-num {
  font-family: var(--serif);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Visually hidden, accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link — invisible until keyboard focus, then unmissable */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-4);
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  z-index: 9999;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--amber);
  outline-offset: 0;
}

/* Preview-only utility — for non-interactive nav/CTA elements in the mobile preview frame and the disabled-blog preview link.
   Resets native button styling so the element renders identically to the anchor it replaces, while avoiding React's
   "javascript:void(0)" deprecation warning. */
.preview-only {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: default;
  color: inherit;
  text-decoration: none;
}

/* Asymmetric-grid collapse helper (Phase 3.2) — collapse to single column on tablet */
@media (max-width: 720px) {
  .grid-asymmetric {
    grid-template-columns: 1fr !important;
    gap: var(--sp-6) !important;
  }
}

