/* ══════════ بُنيان — ترويسة موحَّدة، أخضر زمرّديّ (لون «افتح الآية») ══════════ */

header.grand{
  background: linear-gradient(180deg, #17685C 0%, #0F544C 100%);
  color: #FFFFFF;
  padding: calc(1.7rem + env(safe-area-inset-top)) 1.2rem 1.15rem;
  border-bottom: 3px solid #B08A32;
  box-shadow: 0 3px 14px rgba(15,84,76,.3);
  position: sticky;
  top: 0;
  z-index: 9;
  text-align: center;
}
header.grand .hd-top{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
header.grand .logo{
  font-family: "Amiri", serif;
  font-weight: 700;
  font-size: clamp(2.15rem, 7vw, 3.1rem);
  color: #FFFFFF;
  letter-spacing: .08em;
  line-height: 1.05;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
header.grand .sub{
  font-size: .84rem;
  font-weight: 700;
  color: #E3F2ED;
  letter-spacing: .14em;
  margin-top: .2rem;
}
header.grand .rule{
  width: 5.5rem;
  height: 2px;
  background: rgba(255,255,255,.5);
  margin: .7rem auto 0;
  position: relative;
}
header.grand .rule::before{
  content: "\25C6";
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  background: #135D53;
  color: #E9C25E;
  font-size: .6rem;
  padding: 0 .5rem;
}
header.grand .hd-nav{
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  margin-top: .9rem;
  flex-wrap: wrap;
}
header.grand .hd-nav a{
  font-size: .86rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 2px solid rgba(233,194,94,.7);
  padding: .2rem 0;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  transition: border-color .15s, opacity .15s;
}
header.grand .hd-nav a:hover{
  border-bottom-color: #E9C25E;
  opacity: .9;
}
header.grand .hd-nav .count{
  color: #E3F2ED;
  font-weight: 700;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
header.grand .tagline{
  display: block;
  font-size: .76rem;
  font-weight: 600;
  color: #CFE6DE;
  margin-top: .75rem;
  line-height: 1.8;
  max-width: 34rem;
  margin-inline: auto;
}
header.grand .tagline b{
  color: #FFFFFF;
  font-weight: 800;
}
@media (max-width: 480px){
  header.grand{ padding-top: calc(1.4rem + env(safe-area-inset-top)); }
  header.grand .logo{ font-size: 1.95rem; letter-spacing: .06em; }
  header.grand .hd-nav{ gap: .8rem; }
}
@media print{
  header.grand{ display: none !important; }
}
