:root {
  --ivory: #f5f0e6;
  --paper: #fffdf8;
  --paper-soft: #faf6ee;
  --terracotta: #9e4338;
  --terracotta-dark: #7f332c;
  --green: #1f3f31;
  --green-deep: #143329;
  --green-soft: #e8eee8;
  --gold: #b89a5b;
  --gold-soft: #ded1b7;
  --ink: #2c241d;
  --muted: #756b61;
  --border: #ded3c2;
  --container: 1380px;
  --shadow-soft: 0 16px 48px rgba(54, 39, 24, 0.08);
  --shadow-card: 0 12px 34px rgba(54, 39, 24, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 200;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--green);
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid rgba(88, 66, 43, 0.12);
  background: rgba(255, 253, 248, 0.93);
  backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  width: min(var(--container), calc(100% - 48px));
  min-height: 90px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 50px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  color: var(--green);
  font-size: 1.27rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-tagline {
  color: var(--gold);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.88rem;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-link,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--green-deep);
  background: transparent;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-link::after,
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  inset: auto 50% 0;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
  transform: translateX(50%);
  transition: width 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--terracotta-dark);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle:focus-visible::after,
.nav-link[aria-current="page"]::after {
  width: 28px;
}

.nav-dropdown {
  position: relative;
}

.nav-chevron {
  transition: transform 180ms ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 50%;
  width: 230px;
  margin: 0;
  padding: 9px;
  visibility: hidden;
  opacity: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transform: translate(50%, -7px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.nav-dropdown-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translate(50%, 0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1rem;
  font-weight: 600;
}

.nav-dropdown-menu a::after {
  content: "←";
  color: var(--gold);
  font-family: Arial, sans-serif;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--terracotta-dark);
  background: rgba(158, 67, 56, 0.06);
  outline: none;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.icon-button,
.menu-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible,
.menu-button:hover,
.menu-button:focus-visible {
  color: var(--terracotta-dark);
  background: rgba(31, 63, 49, 0.07);
  outline: none;
}

.menu-button {
  display: none;
}

.search-panel {
  display: grid;
  grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  background: var(--paper);
  transition: grid-template-rows 180ms ease, border-color 180ms ease;
}

.search-panel.open {
  grid-template-rows: 1fr;
  border-top-color: rgba(88, 66, 43, 0.1);
}

.search-inner-wrap {
  overflow: hidden;
}

.search-inner {
  width: min(820px, calc(100% - 40px));
  margin: auto;
  padding: 18px 0 20px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--green);
}

.search-field input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}

.search-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.95rem;
}

.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.08fr);
  overflow: hidden;
  border-bottom: 1px solid rgba(88, 66, 43, 0.12);
  background: var(--paper);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(58px, 6vw, 90px) clamp(42px, 7vw, 112px) 58px clamp(30px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97), rgba(255, 253, 248, 0.93)),
    var(--paper);
}

.hero-watermark {
  position: absolute;
  z-index: -1;
  inset-block-start: 36px;
  inset-inline-end: -30px;
  width: 210px;
  height: 230px;
  opacity: 0.035;
  object-fit: contain;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gold);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 21px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--green);
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(2.7rem, 4.25vw, 4.55rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: #40372f;
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.12rem, 1.5vw, 1.38rem);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.primary-button {
  min-height: 60px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 12px;
  color: #fffaf1;
  background: linear-gradient(135deg, var(--terracotta), #bf5a34);
  box-shadow: 0 12px 28px rgba(158, 67, 56, 0.2);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(158, 67, 56, 0.25);
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.hero-quote {
  margin: 0;
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--gold-soft);
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.93rem;
  line-height: 1.7;
}

.hero-quote cite {
  display: block;
  color: #9b9084;
  font-style: normal;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(255, 253, 248, 0.7), transparent 28%),
    linear-gradient(0deg, rgba(31, 63, 49, 0.1), transparent 42%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.categories-strip {
  border-bottom: 1px solid rgba(88, 66, 43, 0.13);
  background: rgba(255, 253, 248, 0.72);
}

.categories-list {
  width: min(var(--container), calc(100% - 48px));
  min-height: 94px;
  margin: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.categories-list li {
  position: relative;
  display: grid;
}

.categories-list li + li::before {
  content: "";
  position: absolute;
  inset-block: 24px;
  inset-inline-start: 0;
  width: 1px;
  background: var(--border);
}

.category-link {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--green);
  text-decoration: none;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.24rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.category-link svg {
  color: var(--gold);
  flex: 0 0 auto;
}

.category-link:hover,
.category-link:focus-visible {
  color: var(--terracotta-dark);
  background: rgba(184, 154, 91, 0.07);
  outline: none;
}

.latest-section {
  padding: 35px 0 72px;
  background:
    linear-gradient(90deg, rgba(184, 154, 91, 0.035) 1px, transparent 1px),
    var(--ivory);
  background-size: 72px 72px;
}

.section-inner {
  width: min(var(--container), calc(100% - 48px));
  margin: auto;
}

.section-head {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2 {
  margin: 0;
  color: var(--green);
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.25;
}

.all-articles-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--terracotta);
  text-decoration: none;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1rem;
  font-weight: 700;
}

.all-articles-link:hover,
.all-articles-link:focus-visible {
  color: var(--terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
  outline: none;
}

.articles-grid {
  display: grid;
  grid-template-columns: 2.05fr repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 85, 55, 0.16);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(112, 85, 55, 0.02);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover,
.article-card:focus-within {
  border-color: rgba(184, 154, 91, 0.55);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.article-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.article-card-link:focus-visible {
  outline: 3px solid rgba(184, 154, 91, 0.55);
  outline-offset: -3px;
}

.article-image {
  width: 100%;
  aspect-ratio: 1.92 / 1;
  object-fit: cover;
  background: var(--green-soft);
}

.article-card-body {
  flex: 1;
  padding: 14px 17px 16px;
  display: flex;
  flex-direction: column;
}

.article-category {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.article-card h3 {
  margin: 0;
  color: var(--green-deep);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.18rem;
  line-height: 1.55;
}

.article-summary {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.95rem;
  line-height: 1.65;
}

.reading-time {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.83rem;
}

.featured-card {
  position: relative;
  min-height: 315px;
  border: 0;
  color: #fffaf1;
  background: var(--green);
}

.featured-card .article-card-link {
  position: relative;
  justify-content: end;
  isolation: isolate;
}

.featured-card .article-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

.featured-card .article-card-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 18, 14, 0.18), rgba(18, 20, 15, 0.88));
}

.featured-card .article-card-body {
  flex: 0 0 auto;
  padding: 22px 26px 24px;
}

.featured-card .article-category {
  width: fit-content;
  margin-bottom: 38px;
  padding: 6px 13px;
  border-radius: 7px;
  color: #fffaf1;
  background: rgba(184, 154, 91, 0.92);
  font-size: 0.82rem;
}

.featured-card h3 {
  max-width: 500px;
  color: #fffdf8;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.45;
}

.featured-card .article-summary,
.featured-card .reading-time {
  max-width: 500px;
  color: rgba(255, 253, 248, 0.89);
}

.no-results {
  display: none;
  margin: 18px 0 0;
  padding: 24px;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  color: var(--muted);
  background: var(--paper);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.06rem;
}

.no-results.visible {
  display: block;
}

.site-footer {
  color: rgba(255, 250, 241, 0.78);
  background: var(--green);
}

.footer-inner {
  width: min(var(--container), calc(100% - 48px));
  min-height: 108px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  display: grid;
  gap: 5px;
}

.footer-copy p {
  margin: 0;
  font-size: 0.75rem;
}

.footer-mark {
  color: #d7c58f;
  font-family: "Noto Naskh Arabic", serif;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social > span {
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.75rem;
}

.social-accounts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.social-account {
  min-height: 42px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 999px;
  color: #fffaf1;
  background: rgba(255, 250, 241, 0.07);
  text-decoration: none;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.83rem;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-account:hover,
.social-account:focus-visible {
  color: #fffdf8;
  border-color: rgba(215, 197, 143, 0.78);
  background: rgba(215, 197, 143, 0.14);
  outline: none;
}

.social-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

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

  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-card {
    grid-column: 1 / -1;
    min-height: 380px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 78px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    justify-self: start;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-button {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto;
    max-height: calc(100dvh - 78px);
    padding: 16px 24px 24px;
    display: grid;
    gap: 2px;
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
    background: var(--paper);
    box-shadow: 0 18px 35px rgba(54, 39, 24, 0.1);
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link,
  .nav-dropdown-toggle {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    text-align: start;
  }

  .nav-link::after,
  .nav-dropdown-toggle::after {
    display: none;
  }

  .nav-dropdown-menu,
  .nav-dropdown-menu.open {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0 14px;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    transform: none;
    transition: max-height 180ms ease, opacity 180ms ease, visibility 180ms;
  }

  .nav-dropdown-menu.open {
    max-height: 280px;
    padding-block: 5px 10px;
    visibility: visible;
    opacity: 1;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 56px 32px 48px;
  }

  .hero-visual {
    min-height: 390px;
    grid-row: 2;
  }

  .hero-visual::after {
    background: linear-gradient(0deg, rgba(31, 63, 49, 0.12), transparent 50%);
  }

  .categories-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-list li:nth-child(3)::before {
    display: none;
  }

  .categories-list li:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .categories-list,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, var(--container));
  }

  .brand-mark {
    width: 40px;
    height: 46px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tagline {
    display: none;
  }

  .icon-button,
  .menu-button {
    width: 40px;
    height: 40px;
  }

  .hero-content {
    padding: 44px 22px 38px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
    line-height: 1.35;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .hero-quote {
    align-self: flex-start;
  }

  .hero-visual {
    min-height: 300px;
  }

  .categories-list {
    grid-template-columns: 1fr;
  }

  .categories-list li + li::before {
    display: none;
  }

  .categories-list li:nth-child(n + 2) {
    border-top: 1px solid var(--border);
  }

  .category-link {
    min-height: 66px;
    justify-content: flex-start;
  }

  .latest-section {
    padding-top: 28px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 390px;
  }

  .featured-card .article-category {
    margin-bottom: 55px;
  }

  .article-image {
    aspect-ratio: 16 / 8.7;
  }

  .footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .footer-social {
    width: 100%;
  }

  .footer-social > span,
  .social-account span {
    display: none;
  }

  .social-account {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* WordPress integration and dynamic views. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: var(--paper);
  background: var(--green);
  transform: none;
}

.admin-bar .site-header {
  top: 32px;
}

.site-search-form {
  margin: 0;
}

.placeholder-card .article-card-link {
  cursor: default;
}

.article-image.wp-post-image {
  height: auto;
}

.featured-card .article-image.wp-post-image {
  height: 100%;
}

.listing-shell,
.content-page-shell,
.about-shell,
.reading-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 76px;
}

.listing-head,
.about-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.listing-head .eyebrow,
.about-head .eyebrow {
  margin-bottom: 10px;
}

.listing-head h1,
.about-head h1,
.content-page-head h1,
.error-page h1 {
  margin: 0;
  color: var(--green);
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.listing-head > p:last-child,
.about-head > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.15rem;
  line-height: 1.8;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.listing-grid .article-card h3 {
  font-size: 1.3rem;
}

.navigation.pagination {
  margin-top: 38px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--green);
  background: var(--paper);
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
  color: var(--paper);
  border-color: var(--green);
  background: var(--green);
  outline: none;
}

.empty-state {
  max-width: 760px;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.empty-state h2 {
  margin: 0;
  color: var(--green);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 2rem;
}

.empty-state p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.08rem;
  line-height: 1.8;
}

.error-page {
  margin: 60px auto;
  text-align: center;
}

.error-page .eyebrow {
  justify-content: center;
}

/* Article view based on the approved V1.4 reading template. */
:root {
  --reading-size: 1.27rem;
}

.single-post {
  background:
    linear-gradient(90deg, rgba(184, 154, 91, 0.055) 1px, transparent 1px),
    var(--ivory);
  background-size: 72px 72px;
}

.reading-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 4px;
  background: rgba(184, 154, 91, 0.22);
}

.admin-bar .reading-progress {
  inset-block-start: 32px;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--terracotta);
  transition: width 80ms linear;
}

.reading-shell {
  padding-top: 34px;
}

.breadcrumbs {
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--terracotta);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--gold);
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 32px;
}

.reading-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 85, 55, 0.13);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.reading-head {
  position: relative;
  padding: 46px 56px 38px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(158, 67, 56, 0.055), transparent 44%),
    var(--paper);
}

.reading-head::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 6px;
  background: linear-gradient(var(--terracotta) 0 58%, var(--gold) 58% 76%, var(--green) 76%);
}

.lesson-label {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(158, 67, 56, 0.14);
  border-radius: 999px;
  color: var(--terracotta-dark);
  background: rgba(158, 67, 56, 0.08);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}

.lesson-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
}

.reading-head h1 {
  max-width: 780px;
  margin: 0;
  color: var(--green);
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.55;
  letter-spacing: -0.055em;
}

.article-byline {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-byline-avatar-link,
.article-author-image-link {
  flex: 0 0 auto;
  border-radius: 50%;
}

.article-byline-avatar,
.article-author-avatar,
.author-profile-avatar {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-soft);
}

.article-byline-avatar {
  width: 52px;
  height: 52px;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold-soft);
}

.article-byline-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 0.76rem;
}

.article-byline-copy > span,
.article-byline-copy small {
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
}

.article-byline-copy a {
  width: fit-content;
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 700;
}

.article-byline-copy a:hover,
.article-byline-copy a:focus-visible,
.article-author-card h2 a:hover,
.article-author-card h2 a:focus-visible {
  color: var(--terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-byline-copy small {
  font-size: 0.78rem;
}

.article-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.reading-cover {
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.reading-cover img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.reading-body,
.content-page-body,
.about-content {
  font-family: "Noto Naskh Arabic", serif;
  line-height: 2.05;
}

.reading-body {
  max-width: 790px;
  margin: auto;
  padding: 44px 54px 64px;
  font-size: var(--reading-size);
}

.reading-body > *:first-child,
.content-page-body > *:first-child,
.about-content > *:first-child {
  margin-top: 0;
}

.reading-body p {
  margin: 0 0 1.35em;
}

.reading-body a,
.content-page-body a,
.about-content a {
  color: var(--terracotta-dark);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.reading-body h2 {
  margin: 2.6em 0 1em;
  scroll-margin-top: 124px;
  color: var(--green);
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 1.28rem;
  line-height: 1.8;
  letter-spacing: -0.035em;
}

.reading-body h3 {
  position: relative;
  margin: 2.5em 0 1em;
  padding-inline-start: 22px;
  scroll-margin-top: 124px;
  color: var(--green);
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 1.12rem;
  line-height: 1.85;
}

.reading-body h3::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 6px;
  border-radius: 8px;
  background: var(--terracotta);
}

.reading-body ul,
.reading-body ol {
  margin: 0 0 1.6em;
  padding-inline-start: 1.35em;
}

.reading-body li {
  margin-bottom: 0.55em;
}

.reading-body blockquote,
.method-box {
  margin: 1.8em 0;
  padding: 22px 26px;
  border-inline-start: 4px solid var(--terracotta);
  background: var(--green-soft);
}

.reading-body blockquote p:last-child {
  margin-bottom: 0;
}

.source-note {
  margin: 1.9em 0;
  padding: 22px 24px;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  background: var(--paper-soft);
}

.central-question {
  margin: 2.2em 0;
  padding: 26px 30px 25px;
  color: #fffaf1;
  border-radius: 8px;
  background: var(--green);
  box-shadow: 0 18px 35px rgba(31, 63, 49, 0.14);
}

.reading-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.reading-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.reading-body th,
.reading-body td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: start;
}

.meta-comments-link {
  color: var(--muted);
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 4px;
}

.meta-comments-link:hover,
.meta-comments-link:focus-visible {
  color: var(--terracotta-dark);
}

.article-engagement {
  margin: 0 54px 48px;
  padding: 28px;
  display: grid;
  gap: 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper-soft);
}

.article-share,
.article-like {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.article-like {
  padding-top: 23px;
  border-top: 1px solid var(--border);
}

.engagement-kicker,
.comments-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
}

.article-engagement h2 {
  margin: 0;
  color: var(--green);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.34rem;
  line-height: 1.5;
}

.share-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.share-button,
.like-button {
  min-height: 42px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(31, 63, 49, 0.18);
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--paper);
  text-decoration: none;
  cursor: pointer;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.share-button:hover,
.share-button:focus-visible,
.like-button:hover,
.like-button:focus-visible {
  border-color: var(--gold);
  color: var(--terracotta-dark);
  outline: 2px solid rgba(184, 154, 91, 0.2);
  outline-offset: 2px;
}

.like-button {
  min-width: 138px;
  border-color: rgba(158, 67, 56, 0.26);
  color: var(--terracotta-dark);
  background: rgba(158, 67, 56, 0.07);
}

.like-button.liked,
.like-button[aria-pressed="true"] {
  color: #fffaf1;
  border-color: var(--terracotta);
  background: var(--terracotta);
}

.like-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.like-button strong {
  min-width: 2ch;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 0.74rem;
}

.article-action-status {
  min-height: 1.5em;
  margin: -12px 0 0;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.86rem;
}

.copy-helper {
  position: fixed;
  inset: auto auto 0 -9999px;
  opacity: 0;
}

.comments-area {
  margin: 0 54px 50px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
}

.comments-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.comments-heading h2,
.comment-reply-title {
  margin: 0;
  color: var(--green);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.45rem;
  line-height: 1.5;
}

.comments-heading > p,
.comment-moderation-note,
.logged-in-as,
.comment-notes,
.comments-closed {
  margin: 0;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  line-height: 1.75;
}

.comments-heading > p {
  max-width: 360px;
  font-size: 0.9rem;
}

.comment-list,
.comment-list .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list {
  padding-block: 6px 24px;
}

.comment-list .children {
  margin-inline-start: 28px;
  border-inline-start: 2px solid var(--green-soft);
}

.comment-body {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta {
  margin-bottom: 10px;
}

.comment-author .fn {
  color: var(--green);
  font-style: normal;
  font-weight: 700;
}

.comment-author .says {
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.82rem;
}

.comment-metadata {
  margin-top: 4px;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.78rem;
}

.comment-metadata a,
.comment-reply-link,
.logged-in-as a {
  color: var(--terracotta-dark);
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 4px;
}

.comment-content {
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.02rem;
  line-height: 1.9;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-awaiting-moderation {
  display: block;
  margin-top: 7px;
  color: var(--terracotta-dark);
  font-family: "Noto Naskh Arabic", serif;
}

.comment-respond {
  margin-top: 28px;
}

.comment-reply-title small {
  margin-inline-start: 8px;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 0.72rem;
}

.comment-moderation-note {
  margin-top: 8px;
  font-size: 0.9rem;
}

.comment-form {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comment-form > p {
  margin: 0;
}

.comment-form-comment,
.comment-form-cookies-consent,
.comment-moderation-note,
.logged-in-as,
.form-submit {
  grid-column: 1 / -1;
}

.comment-form-field label {
  margin-bottom: 7px;
  display: block;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.comment-form-field input,
.comment-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper-soft);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1rem;
}

.comment-form-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.8;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(184, 154, 91, 0.2);
  outline-offset: 2px;
}

.comment-form-field small {
  margin-top: 5px;
  display: block;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.8rem;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.88rem;
  line-height: 1.65;
}

.comment-form-cookies-consent input {
  margin-top: 6px;
}

.comment-submit {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: #fffaf1;
  background: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.comment-submit:hover,
.comment-submit:focus-visible {
  border-color: var(--terracotta);
  background: var(--terracotta-dark);
  outline: 2px solid rgba(158, 67, 56, 0.2);
  outline-offset: 2px;
}

.comment-honeypot {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comments-area .nav-links {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.article-author-card {
  margin: 0 54px 48px;
  padding: 28px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  background: var(--paper-soft);
}

.article-author-avatar {
  width: 112px;
  height: 112px;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold-soft);
}

.author-avatar-fallback {
  width: var(--avatar-size, 96px);
  height: var(--avatar-size, 96px);
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: var(--green-soft);
}

.author-avatar-fallback img {
  width: 48%;
  height: 58%;
  object-fit: contain;
}

.article-author-content {
  min-width: 0;
}

.author-kicker {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.article-author-card h2 {
  margin: 0;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.55rem;
  line-height: 1.45;
}

.article-author-card h2 a {
  color: var(--green);
  text-decoration: none;
}

.author-role,
.author-bio {
  font-family: "Noto Naskh Arabic", serif;
}

.author-role {
  margin: 3px 0 10px;
  color: var(--terracotta-dark);
  font-size: 0.95rem;
}

.author-bio {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.author-course-links {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.author-course-links a {
  min-height: 38px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(31, 63, 49, 0.18);
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--paper);
  text-decoration: none;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.author-course-links a:hover,
.author-course-links a:focus-visible {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
  outline: none;
}

.reading-footer {
  padding: 30px 54px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  background: var(--paper-soft);
}

.reading-footer p {
  margin: 0;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1rem;
}

.next-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-sidebar {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 16px;
}

.admin-bar .article-sidebar {
  top: 150px;
}

.sidebar-card {
  padding: 22px;
  border: 1px solid rgba(112, 85, 55, 0.14);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.84);
}

.sidebar-card[hidden] {
  display: none;
}

.sidebar-title {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}

.toc {
  max-height: min(48vh, 410px);
  margin: 0;
  padding: 0 0 0 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--terracotta) var(--green-soft);
  scrollbar-width: auto;
  list-style: none;
}

.toc::-webkit-scrollbar {
  width: 10px;
}

.toc::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--green-soft);
}

.toc::-webkit-scrollbar-thumb {
  border: 2px solid var(--green-soft);
  border-radius: 999px;
  background: var(--terracotta);
}

.toc li + li {
  margin-top: 7px;
}

.toc a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  border-inline-start: 2px solid var(--border);
  text-decoration: none;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.96rem;
  line-height: 1.55;
}

.toc-subitem a {
  padding-inline-start: 20px;
  font-size: 0.88rem;
}

.toc a:hover,
.toc a:focus-visible,
.toc a.active {
  color: var(--terracotta-dark);
  border-inline-start-color: var(--terracotta);
  background: rgba(158, 67, 56, 0.045);
  outline: none;
}

.toc-help {
  margin: 13px 0 0;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.78rem;
  line-height: 1.6;
}

.reading-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reading-tools > span {
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.93rem;
}

.font-controls {
  display: flex;
  gap: 7px;
}

.font-control {
  min-width: 37px;
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--green);
  background: var(--paper);
  cursor: pointer;
  font-family: "Noto Naskh Arabic", serif;
  font-weight: 700;
}

.font-control:hover,
.font-control:focus-visible {
  border-color: var(--gold);
  outline: 2px solid var(--gold-soft);
}

/* Editable pages. */
.author-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 76px;
}

.author-profile-card {
  padding: clamp(30px, 5vw, 58px);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(112, 85, 55, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(158, 67, 56, 0.05), transparent 42%),
    var(--paper);
  box-shadow: var(--shadow-soft);
}

.author-profile-avatar {
  width: 180px;
  height: 180px;
  border: 5px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold-soft), var(--shadow-card);
}

.author-profile-copy .eyebrow {
  margin-bottom: 5px;
}

.author-profile-copy h1 {
  margin: 0;
  color: var(--green);
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.35;
}

.author-profile-role {
  margin: 4px 0 14px;
  color: var(--terracotta-dark);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.author-profile-bio {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.15rem;
  line-height: 1.9;
}

.author-courses {
  margin-top: 23px;
}

.author-courses h2 {
  margin: 0;
  color: var(--green);
  font-size: 0.82rem;
}

.author-courses .author-course-links {
  margin-top: 10px;
}

.author-articles {
  margin-top: 44px;
}

.author-articles .section-head {
  margin-bottom: 20px;
}

.content-page-card,
.about-card {
  overflow: hidden;
  border: 1px solid rgba(112, 85, 55, 0.14);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.content-page-head {
  padding: 42px 52px 30px;
  border-bottom: 1px solid var(--border);
}

.content-page-body,
.about-content {
  max-width: 820px;
  padding: 42px 52px 54px;
  color: var(--ink);
  font-size: 1.2rem;
}

.content-page-body {
  margin: auto;
}

.content-page-body h2,
.about-content h2 {
  color: var(--green);
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 1.4rem;
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.8fr);
}

.about-values {
  padding: 38px;
  display: grid;
  gap: 14px;
  background: var(--green);
}

.about-values section {
  padding: 20px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 10px;
}

.about-values strong,
.about-values span {
  display: block;
}

.about-values strong {
  margin-bottom: 7px;
  color: #fffaf1;
}

.about-values span {
  color: rgba(255, 250, 241, 0.72);
  font-family: "Noto Naskh Arabic", serif;
  line-height: 1.7;
}

.alignwide {
  width: min(100%, 980px);
  max-width: 980px;
}

.alignfull {
  width: 100%;
  max-width: none;
}

@media (max-width: 1020px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reading-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-row: 1;
    grid-template-columns: 1fr 1fr;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .reading-progress {
    inset-block-start: 46px;
  }
}

@media (max-width: 680px) {
  .listing-shell,
  .content-page-shell,
  .about-shell,
  .reading-shell,
  .author-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 28px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .empty-state {
    padding: 28px 22px;
  }

  .breadcrumbs {
    font-size: 0.7rem;
  }

  .reading-head {
    padding: 30px 25px 27px;
  }

  .reading-head h1 {
    font-size: 1.77rem;
    line-height: 1.6;
  }

  .reading-body,
  .content-page-body,
  .about-content {
    padding: 30px 24px 46px;
  }

  .reading-body {
    line-height: 1.98;
  }

  .article-engagement,
  .comments-area {
    margin: 0 20px 36px;
    padding: 24px;
  }

  .article-share,
  .article-like,
  .comments-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .share-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  .share-button span {
    display: none;
  }

  .like-button {
    width: 100%;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .comment-form-author,
  .comment-form-email {
    grid-column: 1 / -1;
  }

  .comment-list .children {
    margin-inline-start: 14px;
  }

  .toc {
    max-height: 250px;
  }

  .article-byline-copy small {
    max-width: 220px;
  }

  .article-author-card {
    margin: 0 20px 36px;
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-author-avatar {
    width: 78px;
    height: 78px;
  }

  .author-course-links {
    flex-direction: column;
    align-items: stretch;
  }

  .author-course-links a {
    justify-content: center;
    text-align: center;
  }

  .author-profile-card {
    padding: 30px 24px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .author-profile-copy .eyebrow {
    justify-content: center;
  }

  .author-profile-copy h1 {
    font-size: 2.35rem;
  }

  .author-profile-bio {
    font-size: 1.06rem;
  }

  .reading-footer {
    padding: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .article-sidebar,
  .about-values {
    grid-template-columns: 1fr;
  }

  .content-page-head {
    padding: 30px 24px 24px;
  }
}
