/* ============================================================
   sansstandards.co.za — Global Stylesheet
   Stack: Static HTML5 · No frameworks · No JS dependencies
   Palette: Navy #0b2545 · Dock-orange #ef9900 · Cyan #00a9b3
   Network: LinkDaddy® regulatory infrastructure
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=IBM+Plex+Sans:wght@400;600;700&display=swap');

:root {
  --navy:        #0b2545;
  --navy-mid:    #123460;
  --orange:      #ef9900;
  --orange-dark: #c47d00;
  --cyan:        #00a9b3;
  --white:       #ffffff;
  --off-white:   #f7f7f5;
  --grey-light:  #e8e8e4;
  --grey-mid:    #9a9a94;
  --grey-dark:   #4a4a44;
  --text:        #1a1a18;
  --link:        #0b2545;
  --link-hover:  #ef9900;
  --font-sans:   'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:   'IBM Plex Mono', 'Courier New', monospace;
  --max-w:       1100px;
  --radius:      4px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); }
ul, ol { padding-left: 1.4em; }

/* ---- Typography ---- */
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; color: var(--navy); font-weight: 700; margin-bottom: 0.6em; }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--navy); font-weight: 700; margin: 1.8em 0 0.5em; }
h3 { font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.4; color: var(--navy-mid); font-weight: 600; margin: 1.4em 0 0.4em; }
h4 { font-size: 1rem; font-weight: 600; color: var(--navy-mid); margin: 1.2em 0 0.3em; }
p  { margin-bottom: 1em; }
strong { font-weight: 700; }
em { font-style: italic; }
blockquote {
  border-left: 4px solid var(--orange);
  padding: 0.8em 1.2em;
  margin: 1.2em 0;
  background: var(--off-white);
  color: var(--grey-dark);
  font-style: italic;
}

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.2rem; }

/* ---- Site Header ---- */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.site-logo .shield {
  width: 36px;
  height: 36px;
  background: var(--orange);
  clip-path: polygon(50% 0%, 100% 18%, 100% 60%, 50% 100%, 0% 60%, 0% 18%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.site-logo .wordmark { line-height: 1.2; }
.site-logo .wordmark span { display: block; font-size: 0.65rem; font-weight: 400; opacity: 0.75; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---- Main Nav ---- */
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.site-nav .nav-cta {
  background: var(--orange);
  color: var(--white);
  margin-left: 0.5rem;
  padding: 0.4rem 0.9rem;
}
.site-nav .nav-cta:hover { background: var(--orange-dark); color: var(--white); }

/* ---- Mobile nav toggle ---- */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 4px 0; transition: 0.2s; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-light);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--grey-mid);
}
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.2rem; }
.breadcrumb a { color: var(--grey-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---- Hero / Page Header ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5em; }
.page-hero .lede {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 680px;
  margin-bottom: 1.2rem;
}
.page-hero .meta {
  font-size: 0.8rem;
  opacity: 0.65;
  letter-spacing: 0.03em;
}

/* ---- Key Facts Aside ---- */
.key-facts {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.key-facts h3 { margin-top: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); }
.key-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; }
.key-facts dt { font-weight: 600; color: var(--navy); white-space: nowrap; }
.key-facts dd { color: var(--grey-dark); }

/* ---- Main Content Layout ---- */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: start;
}
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: 80px; }

/* ---- Sidebar ---- */
.sidebar-box {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
}
.sidebar-box h3 { margin-top: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); border-bottom: 2px solid var(--orange); padding-bottom: 0.4rem; margin-bottom: 0.8rem; }
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box ul li { padding: 0.25rem 0; border-bottom: 1px solid var(--grey-light); }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box a { text-decoration: none; color: var(--navy-mid); font-size: 0.85rem; }
.sidebar-box a:hover { color: var(--orange); text-decoration: underline; }

/* ---- CTA Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.2rem 0; }

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1.2rem 0; }
thead { background: var(--navy); color: var(--white); }
thead th { padding: 0.65rem 0.9rem; text-align: left; font-weight: 600; }
tbody tr:nth-child(even) { background: var(--off-white); }
tbody td { padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--grey-light); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }

/* ---- Pillar Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card:hover { border-color: var(--orange); box-shadow: 0 2px 12px rgba(239,153,0,0.12); color: var(--text); }
.card-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.card-desc { font-size: 0.82rem; color: var(--grey-dark); line-height: 1.5; }
.card-arrow { font-size: 0.8rem; color: var(--orange); font-weight: 700; margin-top: auto; }

/* ---- FAQ Section ---- */
.faq-section { margin: 2rem 0; }
.faq-item { border-bottom: 1px solid var(--grey-light); padding: 1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--navy); margin-bottom: 0.4em; font-size: 0.95rem; }
.faq-a { color: var(--grey-dark); font-size: 0.9rem; }

/* ---- Spoke Article ---- */
.spoke-article { padding: 2rem 0; }
.spoke-article section { margin-bottom: 2rem; }
.spoke-article h2 { border-bottom: 2px solid var(--grey-light); padding-bottom: 0.4rem; }

/* ---- Related Nav ---- */
.related-nav {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-top: 2rem;
}
.related-nav h3 { margin-top: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 0.8rem; }
.related-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related-nav a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--navy-mid);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.related-nav a:hover { border-color: var(--orange); color: var(--orange); }

/* ---- Sister-site CTA ---- */
.sister-cta {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-top: 2rem;
}
.sister-cta h3 { margin-top: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 0.8rem; }
.sister-cta ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.sister-cta li { font-size: 0.9rem; line-height: 1.5; color: var(--text); }
.sister-cta a { color: var(--navy-mid); font-weight: 600; text-decoration: none; }
.sister-cta a:hover { color: var(--orange); text-decoration: underline; }

/* ---- Cookie Banner ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
#cookie-banner p { margin: 0; opacity: 0.9; }
#cookie-banner a { color: var(--orange); }
#cookie-accept {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}
#cookie-accept:hover { background: var(--orange-dark); }

/* ============================================================
   SITE FOOTER — LinkDaddy® Network Signature
   Exact match of pvoc.co.za footer: navy #0b2545, cyan #00a9b3,
   dock-orange #ef9900, IBM Plex Mono/Sans
   ============================================================ */
.site-footer {
  background: #0b2545;
  color: rgb(230,228,225);
  padding: 3rem 0 0;
  margin-top: 4rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

/* container--wide: wider than default container */
.container--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Disambiguation notice — matches pvoc.co.za .site-footer .disambiguation-notice */
.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;
}
.site-footer .disambiguation-notice a {
  color: #ef9900;
  text-decoration: underline;
}
.site-footer .disambiguation-notice a:hover { color: rgb(230,228,225); }

/* Footer main grid: 2fr 1fr 1fr 1fr — brand wide, 3 link columns */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

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

/* Logo lockup — shield + wordmark side by side */
.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: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(230,228,225);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  display: block;
}
.footer-site-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ef9900;
  letter-spacing: 0.03em;
  display: block;
}

/* Infrastructure Architect block */
.footer-architect { display: flex; flex-direction: column; gap: 0.25rem; }
.infra-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #00a9b3;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.infra-name {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgb(230,228,225);
  text-decoration: none;
  margin-bottom: 0.35rem;
}
.infra-name:hover { color: #ef9900; }
.infra-tagline,
.infra-patents,
.infra-address {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgb(108,114,119);
  line-height: 1.5;
  margin: 0 0 0.25rem;
}

/* NETWORK section */
.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: var(--font-mono); font-size: 0.6875rem; }
.footer-network a:hover { color: #ef9900; }
.network-desc { color: rgb(108,114,119); font-family: var(--font-mono); font-size: 0.6875rem; }

/* Footer column headings — cyan, monospace, uppercase, underline rule */
.footer-col-heading {
  display: block;
  font-family: var(--font-mono);
  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;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(230,228,225,0.75); text-decoration: none; font-size: 0.8125rem; }
.footer-col a:hover { color: rgb(230,228,225); }

/* Legal sentence above bottom bar */
.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; }
.footer-legal a { color: rgba(230,228,225,0.5); text-decoration: underline; }
.footer-legal a:hover { color: rgba(230,228,225,0.85); }

/* Bottom bar — dark overlay, monospace, muted */
.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: var(--font-mono);
  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; }

/* Responsive */
@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; }
}

/* ---- Utility ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.noindex-banner {
  background: #fffbe6;
  border-bottom: 2px solid #f0c040;
  text-align: center;
  padding: 0.4rem;
  font-size: 0.78rem;
  color: #7a6000;
  display: none; /* shown only in dev */
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 640px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: 0.2rem; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
