:root{
  --brand-blue:#004878;
  --brand-blue-dark:#003a63;
  --brand-blue-soft:#e8f1f8;
  --orange:#ffa333;
  --orange-soft:#fff0dc;
  --ink:#102236;
  --muted:#607184;
  --line:#d7e1ea;
  --surface:#ffffff;
  --page:#f4f7fa;
  --success:#2f7a5f;
  --danger:#9a5714;
  --radius:8px;
  --shadow:0 12px 28px rgba(0,72,120,.12);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--ink);
  background:var(--page);
  line-height:1.6;
  overflow-x:hidden;
}
body.rtl{
  font-family:Tahoma, Arial, Helvetica, sans-serif;
}
.skip-link{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  background:#fff;
  color:#000;
  padding:10px;
  z-index:1000;
}
.skip-link:focus{
  left:10px;
  top:10px;
  width:auto;
  height:auto;
  overflow:visible;
  clip:auto;
}
.hero{
  background:var(--brand-blue);
  color:#fff;
  position:relative;
  overflow:hidden;
  border-bottom:6px solid #fff;
}
.hero:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:26px;
  background:
    linear-gradient(60deg,transparent 24px,#fff 25px,#fff 30px,transparent 31px) 0 0/68px 26px repeat-x,
    linear-gradient(120deg,transparent 24px,var(--orange) 25px,var(--orange) 30px,transparent 31px) 34px 0/68px 26px repeat-x;
  opacity:.95;
}
.topbar{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding:12px 18px 14px;
  background:#fff;
  position:relative;
  z-index:2;
}
.brand{
  display:block;
  color:inherit;
  text-decoration:none;
  line-height:0;
}
.brand-logo{
  display:block;
  width:min(74vw,260px);
  height:auto;
}
.top-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
}
.handbook-switcher{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:6px;
  width:100%;
  padding:6px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,74,116,.08);
}
.handbook-link{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  border:1px solid transparent;
  color:var(--brand-blue);
  text-decoration:none;
  font-size:13px;
  font-weight:900;
  text-align:center;
  padding:8px 12px;
  line-height:1.2;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}
.handbook-link:last-child:nth-child(odd){grid-column:1/-1}
.handbook-link.active{
  background:var(--brand-blue);
  border-color:var(--brand-blue);
  color:#fff;
}
.handbook-link:not(.active):hover,
.handbook-link:not(.active):focus{
  background:var(--brand-blue-soft);
  border-color:var(--brand-blue);
  outline:none;
}
.lang-tabs{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:4px;
  width:100%;
  padding:4px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--page);
}
.lang-tab{
  min-height:42px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--brand-blue);
  cursor:pointer;
  font-size:14px;
  font-weight:900;
}
.lang-tab.active{
  background:var(--orange);
  color:var(--brand-blue-dark);
}
.handbook-menu-band{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.handbook-menu-inner{
  width:min(1180px,100%);
  margin:0 auto;
  padding:28px 18px 34px;
}
.handbook-menu-heading{
  margin-bottom:16px;
}
.handbook-menu-heading .eyebrow{
  margin:0 0 6px;
  color:var(--orange-dark);
}
.handbook-menu-heading h2{
  margin:0;
  color:var(--brand-blue-dark);
  font-size:clamp(26px,4vw,38px);
  letter-spacing:0;
}
.handbook-menu{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.handbook-menu-item{
  display:flex;
  min-width:0;
  min-height:88px;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--brand-blue-dark);
  background:var(--page);
  text-decoration:none;
}
.handbook-menu-item strong{
  font-size:16px;
}
.handbook-menu-item span{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.handbook-menu-item:hover,
.handbook-menu-item:focus{
  border-color:var(--orange);
  background:#fff;
}
.handbook-menu-item.active{
  border-color:var(--brand-blue);
  background:var(--brand-blue);
  color:#fff;
}
.handbook-menu-item.active span{color:#fff}
.ghost-btn,.secondary-btn,.primary-btn{
  border:0;
  border-radius:999px;
  padding:12px 18px;
  text-decoration:none;
  cursor:pointer;
  font-weight:800;
  font-size:14px;
}
.ghost-btn{
  width:100%;
  background:var(--brand-blue);
  color:#fff;
}
.ghost-btn:hover,.ghost-btn:focus{background:var(--brand-blue-dark)}
.hero-content{
  position:relative;
  z-index:1;
  padding:38px 20px 78px;
}
.eyebrow,.section-kicker{
  margin:0 0 10px;
  color:var(--orange);
  text-transform:uppercase;
  letter-spacing:2px;
  font-size:12px;
  font-weight:900;
}
.hero h1{
  max-width:9ch;
  margin:0 0 18px;
  font-size:clamp(40px,13vw,72px);
  line-height:.96;
  letter-spacing:0;
}
body.rtl .hero-content,
body.rtl .section-header,
body.rtl .section-body,
body.rtl .panel,
body.rtl .footer{
  text-align:right;
}
body.rtl .hero h1{
  max-width:10ch;
}
body.rtl .eyebrow{
  letter-spacing:.6px;
}
.hero-text{
  max-width:38rem;
  margin:0;
  color:#edf7ff;
  font-size:clamp(17px,4.8vw,22px);
  overflow-wrap:break-word;
}
.hero-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:22px 0;
}
.meta-pill{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  padding:8px 12px;
  color:#fff;
  font-size:13px;
  font-weight:800;
}
.hero-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.primary-btn{
  width:100%;
  text-align:center;
  background:var(--orange);
  color:var(--brand-blue-dark);
}
.secondary-btn{
  background:#fff;
  color:var(--brand-blue);
}
.layout{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  width:100%;
  max-width:1440px;
  margin:-32px auto 0;
  padding:0 14px 44px;
  position:relative;
  z-index:3;
}
.panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.sticky-panel{position:relative}
.label{
  display:block;
  margin:12px 0 7px;
  color:var(--brand-blue);
  font-size:13px;
  font-weight:900;
}
input,select{
  width:100%;
  min-height:46px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px 13px;
  background:#fff;
  color:var(--ink);
  font-size:16px;
}
input:focus,select:focus{
  outline:3px solid rgba(255,163,51,.3);
  border-color:var(--orange);
}
.toc-title{
  margin:18px 0 10px;
  color:var(--brand-blue);
  font-size:18px;
  font-weight:900;
}
.toc{
  display:grid;
  gap:5px;
  max-height:260px;
  overflow:auto;
  padding-right:4px;
}
.toc a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  border-left:4px solid transparent;
  padding:6px 0 6px 10px;
}
.toc a:hover,.toc a:focus{
  color:var(--brand-blue);
  border-left-color:var(--orange);
}
.content{min-width:0}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:18px;
}
.stat-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}
.stat-number{
  color:var(--brand-blue);
  font-size:30px;
  font-weight:900;
  line-height:1;
}
.stat-label{
  margin-top:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.6px;
}
.section-grid{display:grid;gap:16px}
.section-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.section-card.critical{border-top:5px solid var(--danger)}
.section-card.positive{border-top:5px solid var(--success)}
.section-header{
  padding:17px;
  border-bottom:1px solid var(--line);
  background:#fff;
}
.section-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:9px;
}
.category-pill,.tone-pill{
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:900;
}
.category-pill{background:var(--brand-blue-soft);color:var(--brand-blue)}
.tone-pill{background:#f1f4f7;color:#4f5f70}
.section-card.critical .tone-pill{background:#fff2e4;color:var(--danger)}
.section-card.positive .tone-pill{background:#e8f5ef;color:var(--success)}
.section-title{
  margin:0;
  color:var(--brand-blue);
  font-size:clamp(23px,7vw,32px);
  line-height:1.15;
  letter-spacing:0;
}
.section-body{
  padding:17px;
  font-size:16px;
}
.section-body p{margin:0 0 13px}
.content-subheading{
  margin:20px 0 8px;
  color:var(--brand-blue-dark);
  font-size:18px;
  line-height:1.25;
}
.section-body .content-subheading:first-child{margin-top:0}
.section-body ul{
  margin:8px 0 17px;
  padding-left:22px;
}
.section-body li{margin:6px 0}
.callout{
  margin:15px 0;
  padding:13px 14px;
  border-left:5px solid var(--orange);
  border-radius:var(--radius);
  background:var(--orange-soft);
}
.critical .callout{border-left-color:var(--danger);background:#fff5eb}
.positive .callout{border-left-color:var(--success);background:#edf8f3}
mark{
  background:#ffe2aa;
  border-radius:4px;
  padding:0 2px;
}
.back-to-top{
  position:fixed;
  right:14px;
  bottom:14px;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:var(--brand-blue);
  color:#fff;
  box-shadow:var(--shadow);
  cursor:pointer;
  display:none;
  font-size:22px;
  font-weight:900;
  line-height:1;
}
.back-to-top.show{display:block}
.footer{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:22px 18px;
  background:var(--brand-blue);
  color:#fff;
  border-top:6px solid var(--orange);
}
.footer div:last-child{color:#ffd89c}
body.rtl .toc{
  padding-right:0;
  padding-left:4px;
}
body.rtl .toc a{
  border-left:0;
  border-right:4px solid transparent;
  padding:6px 10px 6px 0;
}
body.rtl .toc a:hover,
body.rtl .toc a:focus{
  border-left-color:transparent;
  border-right-color:var(--orange);
}
body.rtl .section-body ul{
  padding-left:0;
  padding-right:22px;
}
body.rtl .callout{
  border-left:0;
  border-right:5px solid var(--orange);
}
body.rtl .critical .callout{border-right-color:var(--danger)}
body.rtl .positive .callout{border-right-color:var(--success)}
.social-page{background:var(--page);padding:20px}
.social-page .social-header{max-width:1180px;margin:0 auto 22px}
.template-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  max-width:1180px;
  margin:0 auto;
}
.social-card{
  aspect-ratio:1/1;
  background:var(--brand-blue);
  color:#fff;
  border-radius:var(--radius);
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.social-card:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:24px;
  background:
    linear-gradient(60deg,transparent 24px,#fff 25px,#fff 30px,transparent 31px) 0 0/64px 24px repeat-x,
    linear-gradient(120deg,transparent 24px,var(--orange) 25px,var(--orange) 30px,transparent 31px) 32px 0/64px 24px repeat-x;
}
.social-card h2{font-size:30px;line-height:1.05;margin:0 0 10px}
.social-card p{color:#e7f0ff}
.social-card ul{padding-left:18px;margin:10px 0 22px}
.social-card li{margin:6px 0}
.social-card .tag{
  display:inline-block;
  background:var(--orange);
  color:var(--brand-blue-dark);
  border-radius:999px;
  padding:7px 11px;
  font-weight:900;
  font-size:12px;
}
.download-list{
  max-width:1180px;
  margin:24px auto;
  background:#fff;
  border-radius:var(--radius);
  padding:20px;
  border:1px solid var(--line);
}
.download-list a{
  display:inline-block;
  margin:6px 10px 6px 0;
  color:var(--brand-blue);
  font-weight:800;
}
@media(min-width:640px){
  .topbar{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    padding:14px clamp(22px,5vw,72px);
  }
  .brand-logo{width:240px}
  .top-actions{width:auto}
  .top-actions{
    flex-direction:row;
    align-items:center;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .handbook-switcher{
    width:auto;
    grid-template-columns:repeat(5,auto);
    gap:4px;
  }
  .handbook-link{
    min-width:82px;
    padding:8px 12px;
  }
  .handbook-link:last-child:nth-child(odd){grid-column:auto}
  .lang-tabs{width:210px}
  .ghost-btn{width:auto}
  .hero-content{padding:56px clamp(28px,7vw,96px) 92px}
  .primary-btn{width:auto}
  .layout{padding-left:clamp(18px,4vw,42px);padding-right:clamp(18px,4vw,42px)}
  .footer{
    flex-direction:row;
    justify-content:space-between;
    padding-left:clamp(18px,4vw,42px);
    padding-right:clamp(18px,4vw,42px);
  }
  .template-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
  .handbook-menu-inner{padding-left:clamp(22px,5vw,72px);padding-right:clamp(22px,5vw,72px)}
  .handbook-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:980px){
  .hero h1{font-size:clamp(64px,8vw,104px)}
  .layout{
    grid-template-columns:minmax(250px,315px) 1fr;
    gap:24px;
    margin-top:-42px;
  }
  .sticky-panel{
    position:sticky;
    top:18px;
  }
  .toc{max-height:52vh}
  .stats-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
  }
  .section-header{padding:20px 22px}
  .section-body{padding:22px}
  .handbook-menu{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:360px){
  .layout{padding-left:10px;padding-right:10px}
  .hero-content{padding-left:16px;padding-right:16px}
  .stats-grid{grid-template-columns:1fr}
  .meta-pill{font-size:12px}
}
@media(max-width:640px){
  .hero-text{max-width:17rem}
}
@media print{
  body{background:#fff}
  .topbar,.handbook-menu-band,.sidebar,.hero-buttons,.back-to-top,.footer{display:none!important}
  .hero{min-height:auto;color:#000;background:#fff;border:0}
  .hero:after{display:none}
  .hero-content{padding:20px}
  .hero h1{font-size:38px;color:#000}
  .hero-text,.eyebrow,.meta-pill{color:#000}
  .layout{display:block;margin:0;padding:0 20px}
  .section-card{box-shadow:none;break-inside:avoid;border:1px solid #ccc;margin:0 0 16px}
  .section-header{background:#fff}
  .stats-grid{display:none}
  .section-title{font-size:22px}
  a{color:#000;text-decoration:none}
}
