/*
Theme Name: CDEWS Governance
Theme URI: https://example.com/cdews
Author: Dr. Bernd Schichold (CDEWS IP) / Implementation scaffold
Author URI: https://example.com
Description: Minimal, governance-grade WordPress theme for the CDEWS platform (public pages + logged-in dashboard shell).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary (CDEWS methodology & framework is licensed for authorized use)
License URI: https://example.com/license
Text Domain: cdews
Tags: custom-logo, one-column, accessibility-ready, wide-blocks
*/

:root {
  --cdews-ink: #0E2A47;
  --cdews-gray: #5F6B76;
  --cdews-border: #E5E7EB;
  --cdews-bg: #ffffff;
  --cdews-muted: #F7F8FA;
  --cdews-maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--cdews-ink);
  background: var(--cdews-bg);
  line-height: 1.55;
}
a { color: var(--cdews-ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--cdews-maxw); margin: 0 auto; padding: 0 20px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--cdews-border);
  backdrop-filter: blur(6px);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap: 16px; padding: 14px 0; }
.brand a { font-weight: 700; letter-spacing: .2px; text-decoration: none; }
.nav { display:flex; gap: 16px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; color: var(--cdews-ink); }
.nav a:hover { text-decoration: underline; }
.hero { padding: 56px 0 36px; background: linear-gradient(180deg, var(--cdews-muted), #fff); border-bottom: 1px solid var(--cdews-border); }
.hero h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.hero p { margin: 0 0 18px; color: var(--cdews-gray); max-width: 72ch; }
.cta-row { display:flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display:inline-block; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--cdews-ink); text-decoration:none; font-weight: 700;
}
.btn.primary { background: var(--cdews-ink); color: white; }
.btn.secondary { background: white; color: var(--cdews-ink); }
.grid { display:grid; gap: 18px; grid-template-columns: repeat(12, 1fr); }
.card {
  border: 1px solid var(--cdews-border);
  border-radius: 14px;
  padding: 18px;
  background: white;
}
.card h3 { margin-top: 0; }
.kpi { font-size: 36px; font-weight: 800; }
.muted { color: var(--cdews-gray); }
.section { padding: 34px 0; }
.section h2 { margin: 0 0 12px; }
.footer {
  margin-top: 44px; padding: 24px 0;
  border-top: 1px solid var(--cdews-border);
  color: var(--cdews-gray);
  background: #fff;
}
.footer small { display:block; line-height: 1.45; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { border-bottom:1px solid var(--cdews-border); padding: 10px 8px; text-align:left; vertical-align: top; }
.badge { display:inline-block; padding: 3px 10px; border:1px solid var(--cdews-border); border-radius: 999px; font-weight: 700; font-size: 12px; }

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