/* ==========================================================================
   ekitabs.com — Homepage Stylesheet (Merged Brand: القرطاس والمِداد والتحبير)
   Scoped to .ekhp-page. Zero :root / body --theme-* overrides.
   ========================================================================== */

.ekhp-page {
  --ekhp-teal: #1D6E62;
  --ekhp-teal-bg: #EBF4F2;
  --ekhp-teal-border: #B5D5CF;
  direction: rtl;
  text-align: start;
  font-family: var(--theme-font-family);
  color: var(--theme-text-color);
  overflow-x: clip;
}

[data-color-mode*="dark"] .ekhp-page {
  --ekhp-teal: #5CC4B3;
  --ekhp-teal-bg: rgba(92, 196, 179, 0.12);
  --ekhp-teal-border: rgba(92, 196, 179, 0.34);
}

@media (prefers-color-scheme: dark) {
  :root[data-color-mode*="os-default"] .ekhp-page {
    --ekhp-teal: #5CC4B3;
    --ekhp-teal-bg: rgba(92, 196, 179, 0.12);
    --ekhp-teal-border: rgba(92, 196, 179, 0.34);
  }
}

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

/* GreenShift alignfull section & Blocksy container alignment */
.ekhp-page .wp-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-inline: 0;
  margin: 0;
}

.ekhp-page .wp-content-wrap {
  width: var(--theme-container-width, 90%);
  max-width: var(--theme-normal-container-max-width, 1290px);
  margin-inline: auto;
}

body.home footer#footer.ct-footer.ekrd-footer-upgraded {
  margin-top: 0;
}

/* Band Rhythm */
.ekhp-band {
  padding-block: 44px;
  border-bottom: 1px solid var(--theme-border-color);
}

.ekhp-band--hero {
  background-color: var(--theme-palette-color-7);
  padding-block: 36px 40px;
}

.ekhp-band--pwa {
  background-color: var(--theme-palette-color-8);
  padding-block: 18px;
}

.ekhp-band--surface {
  background-color: var(--theme-palette-color-8);
}

.ekhp-band--tinted {
  background-color: var(--theme-palette-color-7);
}

/* Display Typography */
.ekhp-h1,
.ekhp-sec-head h2,
.ekhp-pick-title,
.ekhp-quote-text {
  font-family: var(--font-display, 'Amiri', 'Traditional Arabic', Georgia, serif);
  color: var(--theme-headings-color);
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.ekhp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.ekhp-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}

.ekhp-h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.28;
  font-weight: 700;
  margin: 0;
}

.ekhp-lead {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--theme-text-color);
  margin: 0;
  max-width: 62ch;
}

/* Search Form */
.ekhp-search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
}

.ekhp-search-label {
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--theme-headings-color);
  margin: 0;
}

.ekhp-search-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  background-color: var(--theme-palette-color-8);
  transition: border-color 0.15s ease;
}

.ekhp-search-row:focus-within {
  border-color: var(--theme-palette-color-1);
}

svg.ekhp-search-ico {
  flex: 0 0 auto;
  align-self: center;
  width: 18px;
  height: 18px;
  margin-inline-start: 14px;
  margin-inline-end: 6px;
  color: var(--theme-text-color);
  opacity: 0.72;
  pointer-events: none;
  display: block;
}

.ekhp-search-ico:not(svg) {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  color: var(--theme-text-color);
  opacity: 0.72;
  pointer-events: none;
}

.ekhp-search-ico:not(svg) svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ekhp-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 10px 4px 10px 12px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--theme-headings-color);
  font-family: var(--theme-font-family);
  font-size: 14.5px;
  line-height: 1.4;
  box-shadow: none !important;
  outline: none !important;
}

.ekhp-search-input::placeholder {
  color: var(--theme-text-color);
  opacity: 0.65;
}

.ekhp-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background-color: var(--theme-palette-color-1);
  color: var(--theme-palette-color-8);
  font-family: var(--theme-font-family);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ekhp-search-btn:hover,
.ekhp-search-btn:focus-visible {
  background-color: var(--theme-palette-color-2);
  color: var(--theme-palette-color-8);
  outline: none;
}

/* Search Topic Pills */
.ekhp-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ekhp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-headings-color);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ekhp-pill:hover,
.ekhp-pill:focus-visible {
  border-color: var(--theme-palette-color-1);
  background-color: var(--theme-palette-color-6);
  color: var(--theme-palette-color-1);
}

/* Quick Dock */
.ekhp-quick-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.ekhp-dock-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-headings-color);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ekhp-dock-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ekhp-teal);
}

.ekhp-dock-link:hover,
.ekhp-dock-link:focus-visible {
  border-color: var(--theme-palette-color-1);
  background-color: var(--theme-palette-color-6);
  color: var(--theme-palette-color-1);
}

/* Spotlight Weekly Pick Card */
.ekhp-hero-spot {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ekhp-pick-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 148px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  height: 100%;
  padding: 20px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
}

.ekhp-pick-card .eka-save-btn {
  inset-block-start: 14px;
  inset-inline-end: 14px;
}

.ekhp-pick-cover-wrap {
  display: block;
  aspect-ratio: 3 / 4;
  background-color: var(--theme-palette-color-6);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  overflow: hidden;
}

.ekhp-pick-cover-wrap img,
.ekhp-pick-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.ekhp-pick-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

.ekhp-pick-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 3px 9px;
  margin-inline-end: 42px;
  background-color: var(--ekhp-teal-bg);
  border: 1px solid var(--ekhp-teal-border);
  border-radius: 0;
  color: var(--ekhp-teal);
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 700;
}

.ekhp-pick-title {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
  padding-inline-end: 42px;
}

.ekhp-pick-title a {
  color: inherit;
  text-decoration: none;
}

.ekhp-pick-title a:hover {
  color: var(--theme-palette-color-1);
}

.ekhp-pick-author,
.ekhp-pick-meta {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--theme-text-color);
  margin: 0;
}

.ekhp-pick-author a,
.ekhp-pick-meta a {
  color: inherit;
  text-decoration: none;
}

.ekhp-pick-author a:hover,
.ekhp-pick-meta a:hover {
  color: var(--theme-palette-color-1);
  text-decoration: underline;
}

.ekhp-pick-desc,
.ekhp-pick-excerpt {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--theme-text-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ekhp-pick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.ekhp-pick-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 16px;
  background-color: var(--theme-palette-color-1);
  border: 1px solid var(--theme-palette-color-1);
  border-radius: 0;
  color: var(--theme-palette-color-8);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ekhp-pick-cta:hover,
.ekhp-pick-cta:focus-visible {
  background-color: var(--theme-palette-color-2);
  border-color: var(--theme-palette-color-2);
  color: var(--theme-palette-color-8);
}

/* ==========================================================================
   2. PWA / Offline Library Strip
   ========================================================================== */
.ekhp-pwa-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ekhp-pwa-bar__guest,
.ekhp-pwa-bar__library {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.ekhp-pwa-bar__guest[hidden],
.ekhp-pwa-bar__library[hidden] {
  display: none !important;
}

.ekhp-pwa-bar__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ekhp-pwa-bar__copy,
.ekhp-pwa-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--theme-headings-color);
  min-width: 0;
}

.ekhp-pwa-bar__label {
  font-weight: 700;
  color: var(--ekhp-teal);
}

.ekhp-pwa-bar__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ekhp-teal);
  display: block;
}

.ekhp-pwa-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--theme-palette-color-1);
  text-decoration: none;
  white-space: nowrap;
}

.ekhp-pwa-link:hover,
.ekhp-pwa-link:focus-visible {
  color: var(--theme-palette-color-2);
  text-decoration: underline;
}

.ekhp-band--pwa:has(.ekhp-pwa-bar[data-state="library"]) {
  background-color: var(--ekhp-teal-bg);
  border-bottom-color: var(--ekhp-teal-border);
}

html.ekbs-standalone [data-ekbs-home-install],
html.ekbs-standalone [data-ekbs-home-preview] {
  display: none !important;
}

@media (display-mode: standalone) {
  [data-ekbs-home-install],
  [data-ekbs-home-preview] {
    display: none !important;
  }
}

.ekhp-pwa-bar__title {
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--theme-headings-color);
  margin: 0;
}

.ekhp-pwa-bar__sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--theme-text-color);
  margin: 0;
}

.ekhp-pwa-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ekhp-pwa-bar__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.ekhp-saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 4px 8px 4px 12px;
  background-color: var(--theme-palette-color-7);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-headings-color);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ekhp-saved-chip img {
  width: 24px;
  height: 32px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 0;
}

.ekhp-saved-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ekhp-saved-chip:hover,
.ekhp-saved-chip:focus-visible {
  border-color: var(--theme-palette-color-1);
  color: var(--theme-palette-color-1);
}

.ekhp-pwa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 16px;
  background-color: var(--theme-palette-color-1);
  border: 1px solid var(--theme-palette-color-1);
  border-radius: 0;
  color: var(--theme-palette-color-8);
  font-family: var(--theme-font-family);
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ekhp-pwa-btn:hover,
.ekhp-pwa-btn:focus-visible {
  background-color: var(--theme-palette-color-2);
  border-color: var(--theme-palette-color-2);
  color: var(--theme-palette-color-8);
}

.ekhp-pwa-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 14px;
  background-color: transparent;
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-headings-color);
  font-family: var(--theme-font-family);
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ekhp-pwa-btn-ghost:hover,
.ekhp-pwa-btn-ghost:focus-visible {
  border-color: var(--theme-palette-color-1);
  background-color: var(--theme-palette-color-7);
  color: var(--theme-palette-color-1);
}

/* ==========================================================================
   3. Section Header & Filter Tabs
   ========================================================================== */
.ekhp-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--theme-border-color);
}

.ekhp-sec-head h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}

.ekhp-sec-head__lead,
.ekhp-sec-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--theme-text-color);
  margin: 4px 0 0;
}

.ekhp-sec-head__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ekhp-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ekhp-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 14px;
  background-color: var(--theme-palette-color-7);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-headings-color);
  font-family: var(--theme-font-family);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ekhp-tab:hover,
.ekhp-tab:focus-visible {
  border-color: var(--theme-palette-color-1);
  color: var(--theme-palette-color-1);
}

.ekhp-tab.is-active {
  background-color: var(--theme-palette-color-1);
  border-color: var(--theme-palette-color-1);
  color: var(--theme-palette-color-8);
}

.ekhp-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--theme-palette-color-1);
  text-decoration: none;
  white-space: nowrap;
}

.ekhp-more-link:hover,
.ekhp-more-link:focus-visible {
  color: var(--theme-palette-color-2);
  text-decoration: underline;
}

/* ==========================================================================
   4. Books Grid
   ========================================================================== */
.ekhp-books-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.ekhp-book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.ekhp-book-card[hidden] {
  display: none !important;
}

.ekhp-book-card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-palette-color-1);
}

.ekhp-book-cover-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background-color: var(--theme-palette-color-6);
  border-bottom: 1px solid var(--theme-border-color);
  overflow: hidden;
  text-decoration: none;
}

.ekhp-book-cover-wrap img,
.ekhp-book-cover-wrap .ekhs-book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.25s ease;
}

.ekhp-book-card:hover .ekhp-book-cover-wrap img {
  transform: scale(1.02);
}

.ekhp-book-body {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}

.ekhp-book-cat {
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ekhp-teal);
}

.ekhp-book-cat a {
  color: inherit;
  text-decoration: none;
}

.ekhp-book-cat a:hover {
  text-decoration: underline;
}

.ekhp-book-card .ekhs-book-title,
.ekhp-book-title {
  font-family: var(--font-display, 'Amiri', 'Traditional Arabic', Georgia, serif);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--theme-headings-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ekhp-book-card .ekhs-book-title a,
.ekhp-book-title a {
  color: inherit;
  text-decoration: none;
}

.ekhp-book-card .ekhs-book-title a:hover,
.ekhp-book-title a:hover {
  color: var(--theme-palette-color-1);
}

.ekhp-book-author {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--theme-text-color);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--theme-border-color);
}

.ekhp-book-author a {
  color: inherit;
  text-decoration: none;
}

.ekhp-book-author a:hover {
  color: var(--theme-headings-color);
}

/* ==========================================================================
   5. Interactive Tools Grid
   ========================================================================== */
.ekhp-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ekhp-tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-text-color);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ekhp-tool-card:hover,
.ekhp-tool-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--theme-palette-color-1);
}

.ekhp-tool-ico,
.ekhp-tool-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ekhp-teal-bg);
  border: 1px solid var(--ekhp-teal-border);
  border-radius: 0;
  color: var(--ekhp-teal);
  flex-shrink: 0;
}

.ekhp-tool-ico svg,
.ekhp-tool-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.ekhp-tool-card h3,
.ekhp-tool-title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--theme-headings-color);
  margin: 0;
}

.ekhp-tool-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--theme-text-color);
  margin: 0;
}

/* ==========================================================================
   6. Reading Paths Grid
   ========================================================================== */
.ekhp-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ekhp-path-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-inline-start: 3px solid var(--ekhp-teal);
  border-radius: 0;
  color: var(--theme-text-color);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ekhp-path-card:hover,
.ekhp-path-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--theme-palette-color-1);
  border-inline-start-color: var(--theme-palette-color-1);
}

.ekhp-path-kicker {
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ekhp-teal);
}

.ekhp-path-card h3 {
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--theme-headings-color);
  margin: 0;
}

.ekhp-path-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--theme-text-color);
  margin: 0;
}

.ekhp-path-meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--theme-border-color);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--theme-headings-color);
}

/* ==========================================================================
   7. Taxonomy Index Grid
   ========================================================================== */
.ekhp-tax-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ekhp-tax-item,
.ekhp-tax-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-headings-color);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ekhp-tax-item:hover,
.ekhp-tax-item:focus-visible,
.ekhp-tax-card:hover,
.ekhp-tax-card:focus-visible {
  border-color: var(--theme-palette-color-1);
  background-color: var(--theme-palette-color-6);
  color: var(--theme-palette-color-1);
}

.ekhp-tax-name {
  min-width: 0;
}

.ekhp-tax-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-text-color);
  white-space: nowrap;
  flex-shrink: 0;
}

.ekhp-tax-extra {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

/* ==========================================================================
   8. Split Band: Archival Quote + Writers
   ========================================================================== */
.ekhp-split-band {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 22px;
  align-items: stretch;
}

.ekhp-quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 28px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  outline: 1px solid var(--theme-border-color);
  outline-offset: -8px;
  border-radius: 0;
}

.ekhp-quote-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ekhp-teal);
}

.ekhp-quote-kicker__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.ekhp-quote-text {
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.65;
  font-weight: 700;
  margin: 0;
}

.ekhp-quote-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--theme-border-color);
}

.ekhp-quote-meta,
.ekhp-quote-card cite {
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ekhp-teal);
}

.ekhp-quote-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  background-color: transparent;
  border: 1px solid var(--theme-palette-color-1);
  border-radius: 0;
  color: var(--theme-palette-color-1);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ekhp-quote-cta:hover,
.ekhp-quote-cta:focus-visible {
  background-color: var(--theme-palette-color-1);
  border-color: var(--theme-palette-color-1);
  color: var(--theme-palette-color-8);
}

.ekhp-writers-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 24px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
}

.ekhp-writers-card .ekhp-sec-head {
  margin-bottom: 0;
}

.ekhp-writers-card .ekhp-sec-head h2 {
  font-size: clamp(19px, 1.8vw, 23px);
}

.ekhp-writers-card h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--theme-headings-color);
  margin: 0;
}

.ekhp-writer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ekhp-writer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background-color: var(--theme-palette-color-7);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-headings-color);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ekhp-writer-pill:hover,
.ekhp-writer-pill:focus-visible {
  border-color: var(--theme-palette-color-1);
  background-color: var(--theme-palette-color-6);
  color: var(--theme-palette-color-1);
}

/* ==========================================================================
   9. Magazine & Guides Band
   ========================================================================== */
.ekhp-mag-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ekhp-mag-lead {
  display: flex;
  flex-direction: column;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  overflow: hidden;
  color: var(--theme-text-color);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.ekhp-mag-lead:hover,
.ekhp-mag-lead:focus-visible {
  border-color: var(--theme-palette-color-1);
}

.ekhp-mag-lead img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--theme-border-color);
  border-radius: 0;
}

.ekhp-mag-lead__body,
.ekhp-mag-lead-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ekhp-mag-cat {
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ekhp-teal);
}

.ekhp-mag-lead h3 {
  font-family: var(--font-display, 'Amiri', 'Traditional Arabic', Georgia, serif);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--theme-headings-color);
  margin: 0;
}

.ekhp-mag-title a,
.ekhp-mag-lead h3 a,
.ekhp-mag-item h3 a {
  color: inherit;
  text-decoration: none;
}

.ekhp-mag-title a:hover,
.ekhp-mag-lead h3 a:hover,
.ekhp-mag-item h3 a:hover {
  color: var(--theme-palette-color-1);
}

.ekhp-mag-lead p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--theme-text-color);
  margin: 0;
}

.ekhp-mag-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ekhp-mag-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 16px 18px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-text-color);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.ekhp-mag-item:hover,
.ekhp-mag-item:focus-visible {
  border-color: var(--theme-palette-color-1);
}

.ekhp-mag-item img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
}

.ekhp-mag-item h3,
.ekhp-mag-item h4 {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--theme-headings-color);
  margin: 0;
}

.ekhp-guide-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--theme-border-color);
}

.ekhp-guide-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background-color: var(--theme-palette-color-8);
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
  color: var(--theme-headings-color);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ekhp-guide-cat:hover,
.ekhp-guide-cat:focus-visible {
  border-color: var(--theme-palette-color-1);
  background-color: var(--theme-palette-color-6);
  color: var(--theme-palette-color-1);
}

.ekhp-guide-cat--all {
  color: var(--theme-palette-color-1);
  border-color: var(--theme-palette-color-1);
}

/* ==========================================================================
   Responsive Breakpoints (Blocksy 999.98px & 689.98px)
   ========================================================================== */
@media (max-width: 999.98px) {
  .ekhp-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ekhp-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ekhp-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ekhp-paths-grid {
    grid-template-columns: 1fr;
  }

  .ekhp-tax-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ekhp-split-band {
    grid-template-columns: 1fr;
  }

  .ekhp-mag-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 689.98px) {
  .ekhp-band {
    padding-block: 28px;
  }

  .ekhp-band--hero {
    padding-block: 24px 28px;
  }

  .ekhp-search-btn {
    padding: 0 14px;
    font-size: 13.5px;
  }

  .ekhp-quick-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ekhp-pick-card {
    grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .ekhp-pick-card .eka-save-btn {
    inset-block-start: 10px;
    inset-inline-end: 10px;
  }

  .ekhp-pwa-bar__guest,
  .ekhp-pwa-bar__library {
    flex-direction: column;
    align-items: stretch;
  }

  .ekhp-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ekhp-tools-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ekhp-tax-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ekhp-quote-card,
  .ekhp-writers-card {
    padding: 20px;
  }
}
