/* Arabic guide pages (topic.html): a readable article column on the homepage's palette.
   Loaded after home.css and home-showcase.css. */

.pharmafly-topic .topic {
  max-width: 46rem;
  margin-inline: auto;
  padding: 2rem var(--gutter) 4rem;
}

.topic-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: #62716a;
}

[dir="ltr"] .topic-crumbs li + li::before { content: "›"; }

.topic-crumbs li + li::before {
  content: "‹";
  margin-inline-end: 0.5rem;
  color: #9aaba3;
}

.topic-crumbs a {
  color: var(--green);
  text-decoration: none;
}

.topic-crumbs a:hover {
  text-decoration: underline;
}

.topic-head {
  padding-block-end: 1.75rem;
  margin-block-end: 0.5rem;
  border-block-end: 1px solid var(--rule);
}

.topic-head h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.5;
  text-wrap: balance;
}

.topic-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: #3f4d47;
}

.topic-meta {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #62716a;
}

.topic-section {
  margin-block-start: 2.5rem;
}

.topic-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
}

.topic-section h3 {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.7;
}

.topic-section p {
  margin: 0 0 1rem;
}

.topic-section ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.topic-section ul:not(.topic-cards) li {
  position: relative;
  padding-inline-start: 1.6rem;
  margin-block-end: 0.6rem;
}

.topic-section ul:not(.topic-cards) li::before {
  content: "+";
  position: absolute;
  inset-inline-start: 0;
  font-weight: 800;
  color: var(--red);
}

.topic-cards {
  display: grid;
  gap: 0.75rem;
}

.topic-cards a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  color: #52675e;
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.15s;
}

.topic-cards a:hover {
  border-color: var(--green);
}

.topic-cards strong {
  display: block;
  margin-block-end: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.topic-cta {
  margin-block-start: 3rem;
  padding: 1.75rem 2rem;
  border-radius: 10px;
  background: var(--mint);
}

.topic-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.topic-cta p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #3f4d47;
}

.topic-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topic-cta .btn {
  text-decoration: none;
  font-size: 0.85rem;
}

.topic-header-cta {
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  text-decoration: none;
}

.pharmafly-topic .footer-bottom {
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 40rem) {
  .topic-cta {
    padding: 1.4rem 1.25rem;
  }

  .topic-cta__actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-cards a {
    transition: none;
  }
}
