.article-page {
    padding-block: 2rem 4rem;
}

.article-column {
    max-width: var(--reading-width);
    margin-inline: auto;
}

.article-header {
    margin: 1.5rem 0 2.5rem;
}

.article-title {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.article-meta {
    color: var(--gray);
    font-size: 0.95rem;
}

.article-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.article-edit-link {
    font-weight: 600;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content h2 {
    margin: 3rem 0 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content a:hover {
    text-decoration-thickness: 2px;
}

/* Used for examples set apart from the argument: a before and after, a line
   to copy. */
.article-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    background: var(--light);
}

.article-content blockquote p {
    margin: 0 0 12px;
}

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

.article-content table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}

.article-content th,
.article-content td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--gray-light);
}

.article-content thead th {
    border-bottom-width: 2px;
    font-weight: 600;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* A table is the one block that cannot reflow to the reading column on a
   phone: it scrolls sideways inside its own box instead of stretching the
   article. */
.article-content .table-scroll {
    overflow-x: auto;
    margin: 32px 0;
}

.article-content .table-scroll table {
    margin: 0;
    min-width: 520px;
}

/* One quiet line: WhatsApp is how our readers pass an article on. */
.share-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 2rem 0;
    color: var(--gray);
    font-size: 15px;
}

.share-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    background: #fff;
    color: var(--dark);
    font: inherit;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

.share-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.share-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.author-card {
    display: flex;
    align-items: center;
    margin: 3rem 0 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--light);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 24px;
}

.author-initial {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 32px;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: var(--gray);
}

.author-info p:first-child {
    color: var(--dark);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.9rem;
    }

    .article-content {
        font-size: 1.0625rem;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 16px;
    }

}

.partner-section {
  margin: 3rem 0 0;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--light);
  text-align: center;
}

.related-articles {
  padding: 4rem 0;
  background: var(--light);
}

.related-articles h2 {
  margin: 0 0 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
}

#recomendations {
  margin-bottom: 28px;
}

#recomendations h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

#recomendations p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

.partner-grid {
  display: grid;
  gap: 24px;
}

.partner-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.partner-card img {
  object-fit: cover;
  margin-right: 20px;
  border-radius: 8px;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}

.card-header a {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.location {
  font-size: 13px;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
}

.location i {
  margin-right: 4px;
}

.tagline {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 400;
}

.feature-list {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 16px;
  padding-left: 18px;
  list-style-type: none;
}

.feature-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.bullet {
  position: absolute;
  left: 0;
  color: var(--primary);
}
.article-footer {
    padding: 40px 0;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 15px;
    text-align: center;
}
