/* pvoc.co.za — Site Stylesheet
   Palette: #0B2545 (navy), #C75300 (dock-orange), #1A1A1A (body), #5A6472 (muted), #E5E7EB (border)
   No gradients. No drop shadows on text. Max 5 colours.
   Total budget: < 30KB compressed.
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1A1A1A;
  background: #FFFFFF;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #0B2545;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: #0B2545;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: #C75300; }

strong { font-weight: 700; }
em { font-style: italic; }

abbr[title] { text-decoration: underline dotted; cursor: help; }

/* ===== LAYOUT ===== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
header[role="banner"] {
  background: #0B2545;
  color: #FFFFFF;
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #C75300;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo svg { height: 36px; width: auto; }

/* ===== PRIMARY NAV ===== */
nav[aria-label="Primary"] ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  align-items: center;
}

nav[aria-label="Primary"] a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a[aria-current="page"] {
  background: rgba(199,83,0,0.25);
  color: #FFFFFF;
}

/* ===== BREADCRUMB ===== */
nav[aria-label="Breadcrumb"] {
  background: #F8F9FA;
  border-bottom: 1px solid #E5E7EB;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: #5A6472;
}

nav[aria-label="Breadcrumb"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

nav[aria-label="Breadcrumb"] li + li::before {
  content: "›";
  margin-right: 0.25rem;
  color: #5A6472;
}

nav[aria-label="Breadcrumb"] a {
  color: #5A6472;
  text-decoration: none;
}
nav[aria-label="Breadcrumb"] a:hover { color: #C75300; text-decoration: underline; }

/* ===== MAIN ===== */
main[role="main"] {
  padding: 2.5rem 0 3rem;
}

article > header { margin-bottom: 1.75rem; }

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1A1A1A;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.meta {
  font-size: 0.8125rem;
  color: #5A6472;
  margin-bottom: 0;
}

/* ===== KEY FACTS ASIDE ===== */
aside.key-facts {
  background: #F0F4FA;
  border-left: 4px solid #0B2545;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

aside.key-facts h2,
aside.key-facts h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5A6472;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

aside.key-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

aside.key-facts li {
  font-size: 0.9375rem;
  padding-left: 1.1rem;
  position: relative;
}

aside.key-facts li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #C75300;
  font-size: 0.75rem;
  top: 0.2rem;
}

/* ===== SECTIONS ===== */
section { margin-bottom: 2.5rem; }

/* ===== LISTS ===== */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

li { margin-bottom: 0.35rem; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

thead th {
  background: #0B2545;
  color: #FFFFFF;
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
}

tbody tr:nth-child(even) { background: #F8F9FA; }
tbody tr:hover { background: #F0F4FA; }

td, th {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #E5E7EB;
  vertical-align: top;
}

/* ===== CTA BLOCK ===== */
aside.cta-block {
  background: #0B2545;
  color: #FFFFFF;
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
  margin: 2rem 0;
}

aside.cta-block p {
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

aside.cta-block p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: #C75300;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.btn:hover { background: #a84500; color: #FFFFFF; }

.btn--secondary {
  background: transparent;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  margin-left: 0.75rem;
}
.btn--secondary:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }

/* ===== FAQ ===== */
section.faq { margin-bottom: 2.5rem; }

details {
  border-bottom: 1px solid #E5E7EB;
  padding: 0.75rem 0;
}

details:first-of-type { border-top: 1px solid #E5E7EB; }

summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
  color: #0B2545;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: #C75300;
}

details[open] summary::after { content: "−"; }

details > p, details > div {
  margin-top: 0.65rem;
  padding-left: 0.25rem;
  font-size: 0.9375rem;
}

/* ===== RELATED TOPICS NAV ===== */
nav[aria-label="Related topics"] {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid #E5E7EB;
}

nav[aria-label="Related topics"] h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5A6472;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

nav[aria-label="Related topics"] ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav[aria-label="Related topics"] a {
  display: inline-block;
  background: #F0F4FA;
  color: #0B2545;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
  border: 1px solid #E5E7EB;
}

nav[aria-label="Related topics"] a:hover {
  background: #0B2545;
  color: #FFFFFF;
  border-color: #0B2545;
}

/* ===== OBJECTION BLOCK ===== */
section[aria-label="Common questions and objections"] {
  background: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

/* ===== DISAMBIGUATION NOTICE ===== */
.disambiguation-notice {
  background: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: #5A6472;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
footer[role="contentinfo"] {
  background: #0B2545;
  color: #FFFFFF;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: #FFFFFF;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.5rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.footer-col a:hover { color: #FFFFFF; }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 1rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* ===== HERO (homepage) ===== */
.hero {
  background: #0B2545;
  color: #FFFFFF;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2.5rem;
}

.hero h1 { color: #FFFFFF; margin-top: 0; }

.hero .lede { color: rgba(255,255,255,0.9); font-size: 1.125rem; }

.hero .key-facts-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-fact {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.85rem 1rem;
}

.hero-fact .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-bottom: 0.25rem;
}

.hero-fact .value {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: #E5E7EB;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0B2545;
  border: 2px solid #FFFFFF;
  outline: 2px solid #0B2545;
}

.timeline-item.milestone::before { background: #C75300; outline-color: #C75300; }

.timeline-date {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #C75300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-label {
  font-weight: 600;
  color: #0B2545;
}

/* ===== PILLAR GRID (homepage) ===== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.pillar-card {
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, background 0.15s;
}

.pillar-card:hover {
  border-color: #0B2545;
  background: #F0F4FA;
  color: inherit;
}

.pillar-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: #0B2545;
}

.pillar-card p {
  font-size: 0.875rem;
  color: #5A6472;
  margin: 0;
}

/* ===== PRODUCT CATEGORY TABLE ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.product-card {
  background: #F0F4FA;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover { border-color: #C75300; background: #FFF5EE; color: inherit; }

.product-card .cat-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #0B2545;
  display: block;
  margin-bottom: 0.2rem;
}

.product-card .cat-examples {
  font-size: 0.8125rem;
  color: #5A6472;
}

/* ===== UTILITY ===== */
.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;
}

.text-muted { color: #5A6472; }
.text-accent { color: #C75300; }
.text-navy { color: #0B2545; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  nav[aria-label="Primary"] ul { gap: 0.1rem 0.25rem; }
  nav[aria-label="Primary"] a { font-size: 0.8125rem; padding: 0.25rem 0.35rem; }
  .hero { padding: 2rem 0 1.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  aside.cta-block { padding: 1.25rem; }
  .btn--secondary { margin-left: 0; margin-top: 0.5rem; }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== DPP BRAND TOKENS (sampled from digitalproductpassports.co.za) ===== */
/* dock-orange: #ef9900 | cyan: #00a9b3 | muted: #6c7277 | bone: #e6e4e1 | ink: #020405 */
/* IBM Plex Sans (body/display) + IBM Plex Mono (mono) — loaded via Google Fonts */

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

code, kbd, samp, pre,
.mono { font-family: "IBM Plex Mono", "Courier New", monospace; }

/* ===== REBUILT FOOTER — DPP BRAND LANGUAGE ===== */
.site-footer {
  background: #0B2545;
  color: #e6e4e1;
  padding: 3rem 0 0;
  margin-top: 3rem;
  font-size: 0.875rem;
  font-family: "IBM Plex Sans", sans-serif;
}

/* Override old footer[role="contentinfo"] */
footer[role="contentinfo"] {
  background: #0B2545;
  padding: 3rem 0 0;
}

.site-footer .disambiguation-notice {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: rgba(230,228,225,0.7);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

/* Brand / architect column */
.footer-brand { display: flex; flex-direction: column; gap: 1.5rem; }

/* Logo lockup */
.footer-logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.footer-shield { flex-shrink: 0; }

.footer-wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-site-name {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e6e4e1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-site-url {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #ef9900;
  letter-spacing: 0.03em;
}

/* Infrastructure Architect block */
.footer-architect { display: flex; flex-direction: column; gap: 0.35rem; }

.infra-label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #00a9b3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.infra-name {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e6e4e1;
  text-decoration: none;
  line-height: 1.3;
}
.infra-name:hover { color: #ef9900; }

.infra-tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  color: #6c7277;
  line-height: 1.5;
  margin: 0.25rem 0 0;
}

.infra-patents {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  color: #6c7277;
  line-height: 1.5;
  margin: 0;
}

.infra-address {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  color: #6c7277;
  line-height: 1.5;
  margin: 0;
}

/* Network block */
.footer-network { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-network ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-network li { font-size: 0.75rem; line-height: 1.4; }
.footer-network a { color: rgba(230,228,225,0.75); text-decoration: none; font-family: "IBM Plex Mono", monospace; font-size: 0.6875rem; }
.footer-network a:hover { color: #ef9900; }
.network-desc { color: #6c7277; font-family: "IBM Plex Mono", monospace; font-size: 0.6875rem; }
.forthcoming { color: #6c7277; font-style: italic; }

/* Footer columns (sectors, reference, operator) */
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col-heading {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #00a9b3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.footer-col li { font-size: 0.8125rem; }
.footer-col a { color: rgba(230,228,225,0.75); text-decoration: none; }
.footer-col a:hover { color: #e6e4e1; }

/* Legal line */
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  margin-bottom: 1rem;
  color: rgba(230,228,225,0.5);
  font-size: 0.75rem;
  line-height: 1.6;
}
.footer-legal p { margin: 0; }

/* Bottom rule */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  margin: 0 -1.25rem;
  padding: 0.75rem 1.25rem;
  color: rgba(230,228,225,0.35);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: center;
  line-height: 1.5;
}
.footer-bottom a { color: rgba(230,228,225,0.35); text-decoration: none; }
.footer-bottom a:hover { color: rgba(230,228,225,0.75); }
.footer-updated { margin-left: auto; }

/* ===== COOKIE NOTICE (POPIA) ===== */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0B2545;
  border-top: 2px solid #ef9900;
  color: #e6e4e1;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  z-index: 9000;
  line-height: 1.5;
}
/* Ensure the HTML `hidden` attribute wins over display:flex */
#cookie-notice[hidden] { display: none !important; }

#cookie-notice p {
  flex: 1;
  margin: 0;
  min-width: 200px;
}

#cookie-notice a { color: #ef9900; }
#cookie-notice a:hover { color: #e6e4e1; }

#cookie-notice-dismiss {
  background: #ef9900;
  color: #020405;
  border: none;
  padding: 0.45rem 1rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
#cookie-notice-dismiss:hover { background: #d48800; }

/* ===== RESPONSIVE — FOOTER ===== */
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  #cookie-notice { flex-direction: column; align-items: flex-start; }
}
