.mast {
  background-color: #edece3;
  border-block-end: 3px solid #192e2a;
}

.mast + nav {
  border-block-start: 0;
}

.mast > a:lang(en) {
  font-size: clamp(36px, 6vw, 72px);
}


.shell > .top {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

html body .top .header-membership {
  font-size: 17px !important;
  line-height: 1.75;
  letter-spacing: normal;
}

.top .header-membership span {
  font-family: 'JOS Faseyha', 'JOS Faruma', serif;
}

footer {
  background-color: #e9ebe3;
  padding-inline: clamp(12px, 3vw, 28px);
}

.top #searchBtn,
.top .search-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  color: inherit;
}

.top #searchBtn svg,
.top .search-control svg {
  flex: none;
}

.wrap > .top,
.shell > .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-block: 12px;
}

.top > .tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}

header.mast {
  /* Give both editions the same title and subtitle rows. */
  display: grid;
  grid-template-rows: clamp(44px, 7.2vw, 87px) 29px;
  align-items: center;
  padding-block: 25px;
  text-align: center;
}

header.mast > a:lang(en) {
  font-family: Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -2px;
}


header.mast > a {
  color: #192e2a;
  text-decoration: none;
}

header.mast > p {
  margin: 0;
  font: 11px/1.6 Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

html[lang="dv"] header.mast > p {
  font-family: 'JOS Faruma', serif;
  font-size: 15px;
  letter-spacing: normal;
}

.article-feature > h1 {
  margin-block-start: 18px;
}

.article-ad {
  display: grid;
  place-content: center;
  gap: 8px;
  min-block-size: 124px;
  margin-block: 32px;
  padding: 16px;
  text-align: center;
  background-color: #edece3;
  border: 1px dashed #839088;
  color: #192e2a;
  font: 14px/1.5 Arial, sans-serif;
}

html[lang="dv"] .article-ad {
  font-family: 'JOS Faseyha', 'JOS Faruma', serif;
  font-size: 17px;
}

footer {
  flex-wrap: wrap;
}

.footer-social {
  flex-basis: 100%;
}

footer .footer-social .follow-heading {
  font: 700 14px/1.6 Arial, sans-serif;
}

html[lang="dv"] footer .footer-social .follow-heading {
  font-family: 'JOS Faseyha', 'JOS Faruma', serif;
  font-size: 17px;
}

.footer-social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.social-icon {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border: 1px solid #aab4a7;
  border-radius: 50%;
  color: #294739;
  fill: currentColor;
}

.social-name {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.mast-dot {
  display: inline-block;
  color: #b3262d;
}

html[lang="dv"] header.mast > p {
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.2 !important;
}

.share-status:not(:empty) {
  flex-basis: 100%;
}

header.mast > a:lang(dv) {
  font-family: 'JOS Waheed', 'JOS Faruma', serif !important;
  font-size: clamp(36px, 6vw, 76px);
  -webkit-text-stroke: 0.2px currentColor;
  line-height: 1.2 !important;
  letter-spacing: normal;
}

@media (max-width: 480px) {
  header.mast {
    /* Reserve room for a wrapped subtitle in either edition. */
    grid-template-rows: 44px 44px;
  }
}

footer > .footer-copyright {
  flex-basis: 100%;
  inline-size: 100%;
  text-align: center;
}

/* Keep page and post titles one step above editorial subheadings. */
:root {
  --content-title-size: clamp(30px, 3.2vw, 44px);
  --content-subheading-size: clamp(20px, 2.25vw, 27px);
}

#main h1,
.reading > article > h1 {
  font-size: var(--content-title-size);
}

#main :is(.article h2, .article h3, .section-head h2, .band h2),
.reading :is(h2, h3),
#dialogTitle {
  font-size: var(--content-subheading-size);
}

header.mast > a::before {
  content: "";
  display: inline-block;
  inline-size: clamp(42px, 7vw, 84px);
  aspect-ratio: 1;
  margin-inline-end: 0.2em;
  vertical-align: middle;
  background: url("./journal-of-saud-logo.png") center / contain no-repeat;
}

@media (max-width: 480px) {
  html[lang] header.mast > a:is(:lang(en), :lang(dv)) {
    font-size: clamp(23px, 7.3vw, 35px);
  }
}

.editorial-seal {
  display: grid;
  place-items: center;
  background: #ded9c9;
}

.editorial-seal img {
  display: block;
  inline-size: min(90%, 185px);
  block-size: auto;
  max-block-size: 90%;
  object-fit: contain;
}
