/* ============================================================
   SYSTEMS SOCIETY — Corporate / Government Style
   ============================================================ */

:root {
  --navy:        #1a3a6b;
  --navy-dark:   #0f2347;
  --navy-light:  #2d5fa0;
  --gold:        #c8a732;
  --gold-light:  #e8d06a;
  --red:         #b22222;
  --light-bg:    #f4f6fa;
  --border:      #c8d0dc;
  --text:        #1a1a2e;
  --text-muted:  #5a6272;
  --white:       #ffffff;
  --banner-bg:   #0b0c0c;
  --footer-bg:   #0f2347;
  --link:        #1a5276;
  --link-hover:  #0f2347;
  --active-nav:  #c8a732;
  --section-border: 4px solid #c8a732;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--light-bg);
}

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); }

img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Official Top Banner ---------- */
.official-banner {
  background: var(--banner-bg);
  color: #d0d0d0;
  font-size: 12px;
  padding: 6px 0;
  letter-spacing: 0.04em;
}
.official-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.official-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.official-banner .banner-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.official-banner .banner-right a {
  color: #aab4c2;
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s;
}
.official-banner .banner-right a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  background: #f8f9fb;
  color: var(--navy-dark);
  padding: 16px 0 10px;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
}
.header-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.header-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.header-org-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

/* ---------- Main Navigation ---------- */
.main-nav {
  background: var(--navy-light);
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.main-nav .container {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 24px;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}
.nav-list li a {
  display: block;
  padding: 14px 20px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-list li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--gold-light);
}
.nav-list li a.active {
  color: var(--white);
  background: rgba(0,0,0,0.18);
  border-bottom-color: var(--gold);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-sep { color: #aaa; margin: 0 2px; }
.breadcrumb-bar a {
  color: var(--link);
  text-decoration: none;
}
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .current { color: var(--text); font-weight: 600; }

/* ---------- Page Content Area ---------- */
.content-wrapper {
  padding: 40px 0 0;
}
.content-wrapper .container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.content-wrapper.full-width .container {
  grid-template-columns: 1fr;
}

/* ---------- Main Content ---------- */
.page-main {
  background: var(--white);
  padding: 40px 44px;
  border-top: var(--section-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.page-main h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
  line-height: 1.25;
}
.page-title-underline {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 24px;
}
.page-main h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.page-main h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}
.page-main p { margin-bottom: 16px; }
.page-main ul, .page-main ol {
  margin: 12px 0 16px 28px;
}
.page-main li { margin-bottom: 6px; }
.page-main blockquote {
  border-left: 4px solid var(--gold);
  background: var(--light-bg);
  padding: 14px 20px;
  margin: 20px 0;
  color: var(--text-muted);
  font-style: italic;
}
.page-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.page-main th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.page-main td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}
.page-main tr:nth-child(even) td { background: var(--light-bg); }
.page-main a { color: var(--link); }
.page-main a:hover { color: var(--link-hover); }
.page-main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
.page-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: center;
}
.page-meta .print-btn {
  margin-left: auto;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 2px;
  transition: all 0.2s;
}
.page-meta .print-btn:hover {
  background: var(--light-bg);
  color: var(--navy);
}

/* ---------- Sidebar ---------- */
.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  background: var(--white);
  border-top: 3px solid var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  overflow: hidden;
}
.sidebar-widget-title {
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sidebar-widget-body {
  padding: 16px;
  font-size: 14px;
}
.sidebar-widget-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget-body li {
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.sidebar-widget-body li:last-child { border-bottom: none; }
.sidebar-widget-body li a {
  color: var(--link);
  text-decoration: none;
  font-size: 13px;
}
.sidebar-widget-body li a:hover { text-decoration: underline; }
.sidebar-contact-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sidebar-contact-info strong { color: var(--text); }

/* ---------- Hero / Callout Sections ---------- */
.hero-section {
  background:
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 40px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-section .hero-inner {
  padding-bottom: 36px;
}
.hero-cityscape {
  display: block;
  width: 100%;
  height: 180px;
  margin-top: 8px;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-section::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(200,167,50,0.08);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.hero-section h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.hero-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  border: 2px solid var(--gold);
}
.hero-cta:hover {
  background: var(--white);
  color: var(--navy-dark);
  border-color: var(--white);
}
.hero-cta-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  margin-left: 12px;
}
.hero-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ---------- Stat Cards ---------- */
.stats-section {
  background: var(--light-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--white);
  border-top: 3px solid var(--navy);
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.stat-card.gold { border-top-color: var(--gold); }
.stat-number {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---------- Features Grid ---------- */
.features-section { padding: 56px 0; }
.section-header {
  text-align: center;
  margin-bottom: 16px;
}
.section-tag {
  display: inline-block;
  margin-bottom: 6px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 4px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-top: 3px solid var(--border);
  padding: 28px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-top-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Case Study Section ---------- */
.case-study-section {
  background: var(--white);
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.case-study-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  border-radius: 4px;
  padding: 36px 40px;
  margin-top: 36px;
}
.case-study-client {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.case-study-flag {
  font-size: 40px;
  line-height: 1;
}
.case-study-client-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
}
.case-study-client-location {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}
.case-study-body p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.case-study-deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 28px;
}
.case-study-deliverable {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
}
.deliverable-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.case-study-deliverable strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 3px;
}
.case-study-deliverable span {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
@media (max-width: 700px) {
  .case-study-deliverables { grid-template-columns: 1fr; }
  .case-study-card { padding: 24px 20px; }
}

/* ---------- Portals Section ---------- */
.portals-section {
  background: var(--light-bg);
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
/* ---------- Featured Project Block ---------- */
.project-feature {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  border-radius: 6px;
  padding: 28px 32px;
  margin: 28px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.project-feature-flag {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}
.project-feature-title {
  font-size: 22px;
  color: var(--navy-dark);
  margin: 0 0 4px;
}
.project-feature-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-style: italic;
}
.project-feature h3 {
  font-size: 15px;
  color: var(--navy);
  margin: 20px 0 8px;
}
.project-feature-link {
  display: inline-block;
  margin-top: 20px;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}
.project-feature-link:hover { background: var(--navy-dark); color: #fff; }

.portal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.portal-card:hover {
  box-shadow: 0 6px 24px rgba(26,58,107,0.12);
}
.portal-card-icon {
  font-size: 36px;
  line-height: 1;
}
.portal-card-sector {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-light);
}
.portal-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0;
}
.portal-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.portal-card-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portal-card-features li {
  font-size: 13px;
  color: #4a5568;
  padding-left: 18px;
  position: relative;
}
.portal-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}
.portal-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 3px;
  align-self: flex-start;
  transition: background 0.2s;
}
.portal-card-cta:hover {
  background: var(--navy-dark);
}
@media (max-width: 900px) {
  .portals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .portals-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--navy-dark);
  color: var(--white);
  padding: 16px 0;
  text-align: center;
  border-top: 4px solid var(--gold);
}
.cta-band h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.cta-band p {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 14px;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 13px 30px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--navy-dark);
  border-color: var(--white);
}

/* ---------- Alert / Info Box ---------- */
.info-box {
  background: #eef4fb;
  border-left: 4px solid var(--navy-light);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
}
.info-box.warning {
  background: #fff8e8;
  border-left-color: var(--gold);
}
.info-box strong { display: block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  font-size: 13px;
}
.footer-col h4 {
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 13px;
}
.footer-col ul li a:hover {
  color: var(--white);
}
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-left: 20px;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ---------- Loading / Error states ---------- */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.error-state {
  text-align: center;
  padding: 60px 20px;
}
.error-state h2 { color: var(--navy); margin-bottom: 12px; }
.error-state p { color: var(--text-muted); }

/* ---------- Contact Form ---------- */
.cf-group { margin-bottom: 20px; }
.cf-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.cf-required { color: var(--red); margin-left: 2px; }
.cf-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.cf-input:focus { outline: none; border-color: var(--navy-light); box-shadow: 0 0 0 2px rgba(45,95,160,0.15); }
textarea.cf-input { resize: vertical; min-height: 120px; }
.cf-captcha-input { max-width: 140px; }
.cf-status { margin-bottom: 14px; font-size: 14px; min-height: 20px; }
.cf-error { color: var(--red); }
.cf-success { color: #1a7a3c; font-weight: 600; }
.cf-submit { cursor: pointer; }
.cf-submit:disabled { opacity: 0.6; cursor: default; }

/* ---------- Report an Issue Nav Item ---------- */
.nav-report-issue a {
  color: var(--gold-light) !important;
  border-left: 1px solid rgba(200,167,50,0.25);
  margin-left: 8px;
}
.nav-report-issue a:hover {
  color: var(--gold) !important;
  background: rgba(200,167,50,0.1) !important;
  border-bottom-color: var(--gold) !important;
}

/* ---------- Issue Modal ---------- */
.issue-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.issue-modal {
  background: var(--white);
  width: 100%;
  max-width: 540px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.issue-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
}
.issue-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0;
}
.issue-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.issue-modal-close:hover {
  color: var(--text);
  background: var(--light-bg);
}
.issue-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
}
.issue-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}
.issue-modal-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}
.issue-modal-cancel:hover {
  background: var(--light-bg);
  color: var(--text);
}

/* ---------- Print ---------- */
@media print {
  .official-banner, .site-header, .main-nav, .breadcrumb-bar,
  .page-sidebar, .site-footer, .header-admin-link, .page-meta .print-btn,
  .issue-modal-overlay { display: none; }
  .page-main { box-shadow: none; padding: 0; border: none; }
  .content-wrapper .container { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content-wrapper .container {
    grid-template-columns: 1fr;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-section h1 { font-size: 30px; }
}
@media (max-width: 600px) {
  .main-nav .nav-list { flex-direction: column; }
  .main-nav .nav-list li a { padding: 10px 16px; border-bottom: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 24px; }
  .hero-section p { font-size: 15px; }
  .page-main { padding: 24px 20px; }
  .header-org-name { font-size: 17px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- Nav Status Dot ---------- */
.nav-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
.nav-status-dot--unknown { background: #9ca3af; }
.nav-status-dot--green   { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
.nav-status-dot--yellow  { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.25); }
.nav-status-dot--red     { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.25); }

.status-page.page-main { padding-bottom: 32px; }

/* ============================================================
   STATUS PAGE
   ============================================================ */
.status-page h1 { font-size: 26px; color: var(--navy-dark); margin-bottom: 6px; }

.status-check-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-overall-banner {
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-banner-up       { background: #d4edda; color: #155724; border: 1px solid #b8dac2; }
.status-banner-down     { background: #fde8e8; color: #7b1111; border: 1px solid #f0bcbc; }
.status-banner-checking { background: #eef2f8; color: #2d5fa0; border: 1px solid #c5d3e8; }

/* Portal cards */
.status-portals { display: flex; flex-direction: column; gap: 20px; }

.status-portal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.status-portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.status-portal-name   { font-size: 16px; font-weight: 700; color: var(--navy-dark); }
.status-portal-sector { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Status indicator pill */
.status-ind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.status-ind-up       { background: #d4edda; color: #155724; }
.status-ind-up       .status-dot { background: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,.25); }
.status-ind-down     { background: #fde8e8; color: #7b1111; }
.status-ind-down     .status-dot { background: #dc3545; }
.status-ind-checking { background: #eef2f8; color: #2d5fa0; }
.status-ind-checking .status-dot { background: #7a9ccc; }

/* 90-day history strip */
.status-strip-wrap { margin-bottom: 10px; }

.status-strip {
  display: flex;
  gap: 2px;
  height: 28px;
  align-items: stretch;
}
.status-day {
  flex: 1;
  border-radius: 2px;
  cursor: default;
  transition: opacity .15s;
  min-width: 4px;
}
.status-day:hover { opacity: .75; }
.status-day-up     { background: #28a745; }
.status-day-down   { background: #dc3545; }
.status-day-nodata { background: #dde3ec; }

.status-strip-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Meta line */
.status-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Incidents list */
.status-incidents {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.status-incidents-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.status-incident {
  display: flex;
  gap: 14px;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f2f6;
}
.status-incident:last-child { border-bottom: none; }
.incident-date   { color: var(--navy); font-weight: 600; min-width: 60px; }
.incident-detail { color: #7b1111; }

.status-history-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   ISSUES PAGE
   ============================================================ */
.issues-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.issues-header-row h1 { margin: 0; }

.issues-refresh-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--navy);
  transition: background .15s;
}
.issues-refresh-btn:hover { background: var(--light-bg); }

.issues-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.issues-search {
  flex: 1;
  min-width: 180px;
  padding: .45rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
}
.issues-filter-select {
  padding: .45rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
  background: #fff;
  cursor: pointer;
}

/* Table */
.iss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.iss-table thead th {
  text-align: left;
  padding: 8px 12px;
  background: var(--light-bg);
  border-bottom: 2px solid var(--border);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  white-space: nowrap;
}
.iss-row {
  cursor: pointer;
  border-bottom: 1px solid #f0f2f6;
  transition: background .1s;
}
.iss-row:hover { background: #f8f9fb; }
.iss-row--open { background: #f0f4ff; }
.iss-row td { padding: 9px 12px; vertical-align: middle; }
.iss-date     { color: var(--text-muted); white-space: nowrap; font-size: .82rem; }
.iss-title    { font-weight: 600; color: var(--navy-dark); }
.iss-reporter { color: var(--text-muted); font-size: .82rem; }

/* Status & priority badges */
.iss-badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}
.iss-status-open    { background: #dbeafe; color: #1d4ed8; }
.iss-status-ongoing { background: #fef3c7; color: #92400e; }
.iss-status-closed  { background: #d1fae5; color: #065f46; }
.iss-status-backlog { background: #f3f4f6; color: #4b5563; }

.iss-prio-top    { background: #fee2e2; color: #991b1b; }
.iss-prio-high   { background: #ffedd5; color: #9a3412; }
.iss-prio-normal { background: #eff6ff; color: #1e40af; }
.iss-prio-low    { background: #f3f4f6; color: #4b5563; }

/* Expanded detail row */
.iss-detail-row td { padding: 0; border-bottom: 1px solid var(--border); }
.iss-detail-body {
  padding: 14px 16px 16px;
  background: #fafbff;
  border-top: 1px solid #e0e7ff;
}
.iss-detail-desc {
  margin: 0 0 12px;
  white-space: pre-wrap;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.6;
}
.iss-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .8rem;
  color: var(--text-muted);
}

.iss-count   { margin-top: 10px; font-size: .8rem; color: var(--text-muted); }
.issues-loading, .issues-empty, .issues-error { padding: 24px 0; color: var(--text-muted); font-size: .9rem; }
.issues-error { color: #991b1b; }
