:root {
  --text-body: 16px;
  --leading-body: 30px;
  --text-h1: 32px;
  --leading-h1: 48px;
  --text-card-title: 17px;
  --leading-card-title: 28px;
  --leadtitle-font-weight: 800;
  --servicetitle-font-size: 18px;
  --servicetitle-font-weight: 800;
}

/* Ghalamro is a reading-first publication. Keep long-form copy calmer than UI chrome. */
.prose-news {
  font-size: 16px;
  line-height: 30px;
}

.prose-news :where(p, li, span, a, strong) {
  font-size: inherit;
  line-height: inherit;
}

.typo-page-title {
  font-weight: 800;
}

.service-post-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

/* Per-reader preferences are scoped to article copy and never resize the surrounding UI. */
.ghalamro-reading-content {
  --reader-font-size: 16px;
  --reader-line-height: 1.875;
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
}

.ghalamro-reading-content :where(p, li, span, a, strong) {
  font-size: inherit;
  line-height: inherit;
}

.ghalamro-reading-content :where(h2, h3, h4) {
  line-height: 1.6;
}

/* Keep the reader toolbar usable even before the next Tailwind rebuild sees its template classes. */
[data-reading-controls] {
  margin-block: 1.25rem;
  border-block: 1px solid #e5e5e5;
  padding-block: 0.75rem;
}

[data-reading-controls] > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

[data-reading-controls] [role="group"] {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

[data-reading-controls] button {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid #d4d4d4;
  border-radius: 0.375rem;
  background: #fff;
  padding-inline: 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  color: #171717;
  cursor: pointer;
}

[data-reading-controls] button:hover:not(:disabled) {
  background: #fafafa;
}

[data-reading-controls] button:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

[data-reading-controls] button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

[data-reading-status] {
  margin-inline-start: auto;
  color: #737373;
  font-size: 0.75rem;
}

@media (max-width: 47.999rem) {
  .typo-page-title {
    font-size: 26px;
    line-height: 40px;
  }

  [data-reading-status] {
    width: 100%;
    margin-inline-start: 0;
  }
}

@media print {
  [data-reading-controls] {
    display: none !important;
  }
}
