/* Cyber Risk Explained
   Visual system: Deep Blue + Risk Amber
   Purpose: cyber governance, exposure, assessment, and enterprise risk
*/

:root{
  --bg:#F4F7FA;
  --surface:#FFFFFF;
  --surface-alt:#F8FBFD;

  --text:#1D2730;
  --muted:#61707C;

  --blue-1:#173B63;
  --blue-2:#2A527A;
  --border:#D8E1E8;

  --accent:#1F5FA6;
  --accent-soft:rgba(31,95,166,0.12);
  --accent-2:#C77B18;
  --accent-2-soft:rgba(199,123,24,0.14);

  --radius:14px;
  --shadow:0 10px 25px rgba(29,39,48,0.06);

  --wrap:1500px;
  --content:860px;
  --pad-x:clamp(12px,1.8vw,22px);
}

*,*::before,*::after{box-sizing:border-box;}
html,body{height:100%;}
html{scroll-behavior:smooth;overflow-x:clip;}
body{
  margin:0;
  overflow-x:clip;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(circle at top right, rgba(31,95,166,0.06), transparent 32%),
    linear-gradient(180deg, #F8FBFD 0%, var(--bg) 100%);
  line-height:1.65;
}

img,svg,video,canvas{max-width:100%;height:auto;display:block;}
iframe{max-width:100%;}

a{
  color:var(--accent);
  text-decoration:none;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}
a:hover{text-decoration:underline;}
p,li,td,th,h1,h2,h3{overflow-wrap:anywhere;word-break:normal;}

.wrap{
  width:100%;
  max-width:min(var(--wrap), 100%);
  margin:0 auto;
  padding-left:var(--pad-x);
  padding-right:var(--pad-x);
}

.content-wrap{
  width:100%;
  max-width:min(var(--content), 100%);
  margin:0 auto;
  padding-left:var(--pad-x);
  padding-right:var(--pad-x);
}

.site-header{
  background:rgba(255,255,255,0.92);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  backdrop-filter:blur(8px);
  z-index:30;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}
.brand > a{flex:0 0 auto;}
.brand img{
  width:42px;
  height:42px;
  flex:0 0 auto;
}
.brand-text{
  display:grid;
  gap:2px;
  min-width:0;
}
.brand-text > a{
  font-size:1.08rem;
  font-weight:700;
  letter-spacing:.2px;
  color:var(--blue-1);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-text .tag{
  font-size:.92rem;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

nav{flex:0 1 auto;min-width:0;}
nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  list-style:none;
  margin:0;
  padding:0;
}
nav li{min-width:0;}
nav a{
  display:inline-flex;
  align-items:center;
  color:var(--blue-2);
  font-weight:600;
  font-size:.95rem;
  padding:8px 10px;
  border-radius:10px;
}
nav a:hover,
nav a.active{
  background:var(--accent-soft);
  color:var(--blue-1);
  text-decoration:none;
}

.hero{
  padding:30px 0 10px;
}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);
  gap:18px;
  align-items:stretch;
}
.hero-card,.card,.topic-card,.article-card,.article-shell{
  width:100%;
  min-width:0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-card,
.card,
.topic-card,
.article-card,
.article-shell{padding:22px;}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  color:var(--blue-2);
  font-weight:700;
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.kicker::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:999px;
  background:var(--accent-2);
}

.hero h1,.page-hero h1,h1,h2,h3{
  margin:0 0 10px;
  line-height:1.24;
  color:var(--blue-1);
}
.hero h1,.page-hero h1,h1{font-size:clamp(2rem,3vw,2.7rem);letter-spacing:-.02em;}
h2{font-size:1.45rem;margin-top:26px;}
h3{font-size:1.08rem;color:var(--blue-2);margin-top:18px;}

p{margin:0 0 14px;}
.lead{
  font-size:1.08rem;
  color:#2B3741;
}
.byline,.note{
  color:var(--muted);
  font-size:.95rem;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 16px;
  border-radius:12px;
  border:1px solid var(--border);
  color:var(--blue-1);
  font-weight:700;
  text-decoration:none;
  background:#F9FBFC;
}
.btn:hover{text-decoration:none;}
.btn.primary{
  background:linear-gradient(180deg, #2469B5, #1D5898);
  border-color:#1D5898;
  color:#FFFFFF;
}

.section{padding:18px 0 10px;}
.section h2:first-child{margin-top:0;}
.grid-3,.grid-2,.article-list,.footer-grid{
  display:grid;
  gap:14px;
}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.article-list{grid-template-columns:repeat(2,minmax(0,1fr));}
.footer-grid{grid-template-columns:2fr 1fr 1fr;}
.grid-3 > *, .grid-2 > *, .article-list > *, .footer-grid > *{min-width:0;}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #F3D6AE;
  background:#FFF8EF;
  color:#975C13;
  font-weight:700;
  font-size:.82rem;
  margin-bottom:8px;
}

.page-hero{padding:26px 0 6px;}

.article-shell ul,
.article-shell ol{padding-left:18px;margin:0 0 14px;}
.article-shell li{margin:7px 0;}
.callout{
  border-left:4px solid var(--accent-2);
  padding:14px 16px;
  background:#FBF8F2;
  border-radius:0 12px 12px 0;
  margin:18px 0;
}
.ad-slot{
  margin:22px 0 24px;
  border:1px dashed #A8BCC7;
  background:linear-gradient(180deg, rgba(31,95,166,0.06), rgba(31,95,166,0.02));
  border-radius:12px;
  min-height:116px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:16px;
}
.ad-label{
  font-size:.9rem;
  font-weight:700;
  color:var(--blue-2);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.faq{margin-top:24px;padding-top:16px;border-top:1px solid var(--border);}
.faq-item{margin-bottom:14px;}

.site-footer{
  margin-top:24px;
  border-top:2px solid var(--accent);
  padding:26px 0 0;
  color:var(--muted);
  background:transparent;
}
.footer-grid h3{margin-top:0;font-size:1rem;}
.footer-grid ul{list-style:none;margin:0;padding:0;}
.footer-grid li{margin:7px 0;}
.footer-bottom{
  border-top:1px solid var(--border);
  padding:16px 0 28px;
  margin-top:12px;
  color:var(--muted);
  font-size:.95rem;
}

.article-shell table,
table{
  width:100%;
  max-width:100%;
  border-collapse:collapse;
  margin:14px 0 8px;
  font-size:.97rem;
  display:block;
  overflow-x:auto;
}
th,td{
  text-align:left;
  vertical-align:top;
  padding:10px 12px;
  border-top:1px solid var(--border);
}
th{
  color:var(--blue-2);
  font-weight:700;
  background:#F8FBFC;
}

@media (max-width:1100px){
  .hero-grid{grid-template-columns:minmax(0,1fr);}
}

@media (max-width:980px){
  .header-inner{padding:16px 0;}
  nav ul{gap:8px;}
  nav a{padding:7px 10px;}
}

@media (max-width:820px){
  .header-inner{align-items:flex-start;flex-direction:column;}
  .brand{width:100%;}
  nav{width:100%;}
  nav ul{justify-content:flex-start;}
  .grid-3,.grid-2,.article-list,.footer-grid{grid-template-columns:minmax(0,1fr);}
  .brand-text > a,
  .brand-text .tag{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
  .hero-card,.card,.topic-card,.article-card,.article-shell{padding:20px;}
}

@media (max-width:560px){
  .hero,.page-hero,.section{padding-top:16px;}
  .hero-card,.card,.topic-card,.article-card,.article-shell{padding:18px;}
  .wrap,.content-wrap{padding-left:14px;padding-right:14px;}
}
