/* ═══════════════════════════════════════════════════════════════
   PALO ALTO NETWORKS — A4 PORTRAIT EXECUTIVE INFOGRAPHIC
   Optimised for elderly executives: large text, high contrast,
   generous whitespace, clean single-column portrait layout
   ═══════════════════════════════════════════════════════════════ */

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

html { font-size: 18px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #F0F4F8;
  color: #1A1A2E;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Page Container — A4 portrait proportions ── */
.page {
  width: 900px;
  margin: 32px auto;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  overflow: hidden;
  padding: 0 0 40px 0;
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.hdr {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 40px 28px;
  background: linear-gradient(135deg, #FA4616 0%, #c73200 100%);
  color: white;
}

.hdr-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hdr-brand {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: white;
}

.hdr-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.hdr-title-wrap {
  flex: 1;
  text-align: center;
}

.hdr-title {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.2;
  color: white;
  letter-spacing: -0.01em;
}

.hdr-title .accent {
  color: #FFD0C0;
}

.hdr-tagline {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

.hdr-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.badge-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bl-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: white;
  font-weight: 600;
}

.bl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bl-dot.blue   { background: #1E88E5; }
.bl-dot.orange { background: #FFD0C0; }

/* ══════════════════════════════════════════════
   SECTION WRAPPER
══════════════════════════════════════════════ */
.sec {
  padding: 28px 40px 20px;
  border-bottom: 1px solid #EEF2F7;
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.blue-label   { background: #DBEEFF; color: #1565C0; border-left: 4px solid #1E88E5; }
.orange-label { background: #FFF0EB; color: #BF360C; border-left: 4px solid #FA4616; }

.sec-desc {
  font-size: 0.95rem;
  color: #4A5568;
  margin-bottom: 18px;
  line-height: 1.5;
}

.flow-note {
  font-size: 0.88rem;
  color: #1E88E5;
  font-weight: 700;
  margin-top: 14px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════
   SECTION 1 — WORKFORCE SPLIT
══════════════════════════════════════════════ */
.split-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.worker-card {
  background: #F7FAFF;
  border: 2px solid #DBEEFF;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.worker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30,136,229,0.12);
}

.wc-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.wc-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 6px;
}

.wc-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1E88E5;
  background: #DBEEFF;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* ══════════════════════════════════════════════
   SECTION 2 — SASE ROW
══════════════════════════════════════════════ */
.sase-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sase-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #F7FAFF;
  border: 1.5px solid #BBDEFB;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1A1A2E;
  text-align: center;
  min-width: 90px;
  transition: background 0.2s;
  cursor: default;
}

.sase-pill span {
  font-size: 0.68rem;
  font-weight: 500;
  color: #4A5568;
  margin-top: 3px;
}

.sase-pill:hover { background: #DBEEFF; }

.highlight-pill {
  background: #FA4616;
  border-color: #FA4616;
  color: white;
}

.highlight-pill span { color: rgba(255,255,255,0.85); }
.highlight-pill:hover { background: #e03d10; }

.sase-arrow {
  font-size: 1.2rem;
  color: #90CAF9;
  font-weight: 700;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   SECTION 3 — PLATFORM ROW
══════════════════════════════════════════════ */
.platform-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #EEF2F7;
}

.platform-card {
  padding: 28px 28px 24px;
  border-right: 1px solid #EEF2F7;
}

.platform-card:last-child { border-right: none; }

.pc-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.pc-icon { font-size: 1.8rem; flex-shrink: 0; }

.pc-title {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #1A1A2E;
  line-height: 1.2;
}

.pc-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.blue-badge   { background: #DBEEFF; color: #1565C0; }
.orange-badge { background: #FFF0EB; color: #BF360C; }

.pc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-list li {
  font-size: 0.88rem;
  color: #2D3748;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.dot-blue   { color: #1E88E5; font-size: 0.6rem; margin-top: 4px; flex-shrink: 0; }
.dot-orange { color: #FA4616; font-size: 0.6rem; margin-top: 4px; flex-shrink: 0; }

.cloud-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cp {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.cp.aws   { background: #FFF3E0; color: #E65100; }
.cp.azure { background: #E3F2FD; color: #1565C0; }
.cp.gcp   { background: #E8F5E9; color: #2E7D32; }
.cp.oci   { background: #FCE4EC; color: #880E4F; }

/* Hub card */
.hub-card {
  background: linear-gradient(160deg, #FFF8F6 0%, #FFF0EB 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.hub-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hub-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #FA4616;
  letter-spacing: 0.04em;
}

.hub-sub {
  font-size: 0.78rem;
  color: #6B7280;
  font-weight: 500;
}

.hub-stats-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hs {
  text-align: center;
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #FFD0C0;
}

.hs-val {
  font-size: 1rem;
  font-weight: 900;
  color: #FA4616;
  display: block;
}

.hs-lbl {
  font-size: 0.65rem;
  color: #6B7280;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.zt-strip {
  background: #1A1A2E;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
}

/* ══════════════════════════════════════════════
   SECTION 4 — CITY OFFICES
══════════════════════════════════════════════ */
.sec-offices { padding: 28px 40px 24px; border-bottom: 1px solid #EEF2F7; }

.offices-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.map-wrap {
  background: #F7FAFF;
  border: 1.5px solid #DBEEFF;
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.au-map {
  width: 100%;
  height: auto;
  display: block;
}

.city-node { cursor: pointer; }

@keyframes cityPulse {
  0%   { r: 14; opacity: 0.8; }
  50%  { r: 22; opacity: 0.2; }
  100% { r: 14; opacity: 0.8; }
}

.city-pulse { animation: cityPulse 2.5s ease-in-out infinite; }

.office-products {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.op-stack {}

.op-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6B7280;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.op-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: default;
  transition: transform 0.15s;
}

.pill:hover { transform: scale(1.04); }

.orange-pill { background: #FFF0EB; color: #BF360C; border: 1.5px solid #FFCCBC; }
.blue-pill   { background: #E3F2FD; color: #1565C0; border: 1.5px solid #BBDEFB; }
.cyan-pill   { background: #E0F7FA; color: #006064; border: 1.5px solid #B2EBF2; }

/* ══════════════════════════════════════════════
   SECTION 5 — BOTTOM GRID
══════════════════════════════════════════════ */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid #EEF2F7;
}

.b-card {
  padding: 24px 28px;
  border-right: 1px solid #EEF2F7;
  border-bottom: 1px solid #EEF2F7;
}

.b-card:nth-child(2n) { border-right: none; }

.bc-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bc-ico { font-size: 1.4rem; }

.bc-ttl {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1A1A2E;
}

/* Threat card */
.threat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.ti {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #2D3748;
  font-weight: 500;
}

.ti-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.ti-badge.red    { background: #FFEBEE; color: #C62828; }
.ti-badge.orange { background: #FFF3E0; color: #E65100; }
.ti-badge.yellow { background: #FFFDE7; color: #F57F17; }
.ti-badge.blue   { background: #E3F2FD; color: #1565C0; }

.big-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.bs-num {
  font-size: 2rem;
  font-weight: 900;
  color: #FA4616;
  line-height: 1;
}

.bs-lbl {
  font-size: 0.82rem;
  color: #6B7280;
  font-weight: 600;
}

/* Compliance card */
.comp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.comp {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  background: #F0F4F8;
  color: #2D3748;
  border: 1.5px solid #E2E8F0;
}

/* Identity card */
.id-list { display: flex; flex-direction: column; gap: 12px; }

.id-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.id-ico { font-size: 1.4rem; flex-shrink: 0; }

.id-nm {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1A1A2E;
}

.id-ds {
  font-size: 0.78rem;
  color: #6B7280;
  font-weight: 500;
  margin-top: 1px;
}

/* Ops card */
.ops-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
}

.ops-m {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.ops-m svg { display: block; }

.ops-val {
  font-size: 1rem;
  font-weight: 900;
  color: #1A1A2E;
  text-align: center;
}

.ops-lbl {
  font-size: 0.72rem;
  color: #6B7280;
  font-weight: 600;
  text-align: center;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.ftr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: #F7FAFF;
  border-top: 2px solid #DBEEFF;
  gap: 16px;
  flex-wrap: wrap;
}

.ftr-l, .ftr-r {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ftr-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #90A4AE;
  text-transform: uppercase;
}

.ftr-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4A5568;
}

.ftr-conf {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FA4616;
}

.ftr-c {
  font-size: 0.78rem;
  color: #6B7280;
  font-weight: 500;
  text-align: center;
  flex: 1;
}

/* ══════════════════════════════════════════════
   CITY TOOLTIP
══════════════════════════════════════════════ */
#city-tooltip {
  position: fixed;
  background: #FFFFFF;
  border: 1.5px solid #BBDEFB;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #1A1A2E;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s;
  max-width: 240px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — screens narrower than 900px
══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .page { width: 100%; margin: 0; border-radius: 0; }
  .hdr { flex-wrap: wrap; padding: 24px 20px; }
  .hdr-title { font-size: 1.4rem; }
  .platform-row { grid-template-columns: 1fr; }
  .platform-card { border-right: none; border-bottom: 1px solid #EEF2F7; }
  .offices-row { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .b-card { border-right: none; }
  .sase-row { gap: 4px; }
  .sase-pill { min-width: 70px; font-size: 0.72rem; padding: 8px 8px; }
  .split-grid { grid-template-columns: 1fr; }
  .sec { padding: 20px 20px 16px; }
  .sec-offices { padding: 20px 20px 16px; }
  .ftr { padding: 16px 20px; flex-direction: column; text-align: center; }
}

@media print {
  body { background: white; }
  .page { box-shadow: none; margin: 0; border-radius: 0; width: 100%; }
}