/* =============================================================
   State of the Sector — IIR Portal
   ============================================================= */

:root {
  /* Greater Manchester State of The Sector */
  --primary:     #1a5f4a;
  --primary-mid: #24856b;
  --primary-light:#2d9474;
  --accent:      #3d8f76;
  --green:       #6bb869;
  --green-l:     #bad25f;
  --text:        #0f172a;
  --text-body:   #334155;
  --text-muted:  #64748b;
  --bg:          #f5f3f0;
  --border:      #e8e4df;
  --white:       #ffffff;
  --r:           14px;
  --shadow-lg:   0 20px 60px rgba(26,95,74,.1);
  --nav-h:       72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Source Sans 3', system-ui, sans-serif; font-weight: 700; line-height: 1.2; }

/* ── Main ─────────────────────────────────────────────────── */
.p-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 4rem 1.5rem;
}

/* ── Portal Card ──────────────────────────────────────────── */
.p-card {
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border); padding: 3rem;
  max-width: 500px; width: 100%;
  box-shadow: var(--shadow-lg); text-align: center;
}
.p-icon-wrap {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: white; margin: 0 auto 1.75rem;
}
.p-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
  background: rgba(0,106,180,.1);
  color: var(--primary); border: 1px solid rgba(0,106,180,.2);
}
.p-card h1 { font-size: 1.8rem; color: var(--text); margin-bottom: .75rem; }
.p-lead    { font-size: .95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; }
.p-divider {
  width: 40px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-mid), var(--accent));
  margin: 1.5rem auto;
}

/* Feature list */
.p-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: .75rem; margin: 1.75rem 0; }
.p-features li { display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; color: var(--text-body); }
.p-features li i { color: var(--primary-mid); margin-top: .15rem; flex-shrink: 0; }

/* Error state */
.p-error-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: #fef2f2; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #ef4444; margin: 0 auto 1.5rem;
}
code {
  background: var(--bg); border: 1px solid var(--border);
  padding: .15rem .45rem; border-radius: 5px; font-size: .85rem; font-family: monospace;
}

/* ── Footer ───────────────────────────────────────────────── */
.p-footer {
  border-top: 1px solid var(--border); padding: 1.25rem 2rem;
  text-align: center; font-size: .8rem; color: var(--text-muted);
  background: var(--white);
  display: flex; flex-direction: column; gap: .3rem; align-items: center;
}
.p-footer a { color: var(--primary-mid); font-weight: 500; }
.p-footer a:hover { text-decoration: underline; }
.p-footer-obs { display: inline-flex; margin-bottom: .35rem; }
.p-footer-obs img { height: 48px; width: auto; display: block; }

@media (max-width: 560px) {
  .p-main { padding: 2rem 1rem; }
  .p-card  { padding: 1.75rem 1.25rem; }
  .p-card h1 { font-size: 1.45rem; }
  .p-footer { padding: 1rem; }
}
