/* SCB · blog (articles list + post). Uses the shared tokens from scb.css. */

.ablog { padding-top: 28px; padding-bottom: 56px; }
.ablog__head { text-align: center; max-width: 60ch; margin: 0 auto 22px; }
.ablog__title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 0 0 10px; color: var(--tinta); }
.ablog__sub { color: var(--gris); font-size: 16px; margin: 0; }

/* Search */
.ablog__search { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 18px; }
.ablog__search-in { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--blanco); border: 1px solid var(--arena-2); border-radius: 999px; padding: 0 16px; }
.ablog__search-in .ic { color: var(--gris); flex: none; }
.ablog__search-in input { border: 0; outline: 0; background: transparent; width: 100%; height: 46px; font: inherit; color: var(--tinta); }

/* Tag chips */
.ablog__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 26px; max-width: 900px; }
.ablog__tags .chip { display: inline-flex; align-items: center; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--arena-2); background: var(--blanco); color: var(--tinta); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all .18s var(--ease); }
.ablog__tags .chip:hover { border-color: var(--jade); color: var(--jade-d); }
.ablog__tags .chip.is-on { background: var(--noir); color: var(--arena); border-color: var(--noir); }

/* Grid */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .agrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .agrid { grid-template-columns: 1fr; } }

.acard { display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--arena-2); border-radius: var(--r-m); overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); height: 100%; text-decoration: none; color: inherit; }
.acard:hover, .acard:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); outline: none; }
.aph { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--arena-2); }
.aph .img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.acard:hover .aph .img { transform: scale(1.06); }
.aph--empty { display: flex; align-items: center; justify-content: center; color: var(--arena); }
.aph--empty .ic { width: 40px; height: 40px; }
.acat { position: absolute; top: 12px; left: 12px; background: rgba(26,23,20,.82); color: var(--arena); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }

.abody { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.adate { font-size: 12.5px; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
.attl { font-family: 'Fraunces', Georgia, serif; font-size: 20px; line-height: 1.22; margin: 0; color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aexc { font-size: 14px; line-height: 1.55; color: var(--gris); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.alink { margin-top: auto; align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--jade-d); padding-top: 6px; }

/* Search hint (the submit button was removed — Enter submits the form). */
.ablog__search-hint { text-align: center; color: var(--gris); font-size: 12.5px; margin: -8px auto 26px; }

/* Load more + empty */
.ablog__more { display: flex; justify-content: center; margin-top: 34px; }
.loadmore-btn.is-hidden { display: none; }
.loadmore-btn .spin { display: inline-flex; align-items: center; }
.ablog__empty { text-align: center; color: var(--gris); padding: 60px 20px; }
.ablog__empty .ic { width: 40px; height: 40px; color: var(--arena-2); margin-bottom: 12px; }

/* ── Post (detail) ─────────────────────────────────────── */
.apost { padding-top: 22px; padding-bottom: 60px; max-width: 760px; }
.apost__crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gris); margin-bottom: 20px; }
.apost__crumb a { color: var(--gris); text-decoration: none; }
.apost__crumb a:hover { color: var(--jade-d); }
.apost__cat { position: static; display: inline-block; margin-bottom: 14px; }
.apost__title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 12px; color: var(--tinta); }
.apost__sub { font-size: 19px; line-height: 1.5; color: var(--gris); margin: 0 0 16px; }
.apost__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--gris); margin-bottom: 26px; }
.apost__cover { border-radius: var(--r-m); overflow: hidden; margin-bottom: 30px; aspect-ratio: 16/9; background: var(--arena-2); }
.apost__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.apost__content { font-size: 17px; line-height: 1.75; color: var(--tinta); }
.apost__content h2 { font-family: 'Fraunces', Georgia, serif; font-size: 27px; line-height: 1.2; margin: 34px 0 12px; }
.apost__content h3 { font-family: 'Fraunces', Georgia, serif; font-size: 22px; margin: 28px 0 10px; }
.apost__content p { margin: 0 0 18px; }
.apost__content a { color: var(--jade-d); text-decoration: underline; }
.apost__content img { max-width: 100%; height: auto; border-radius: var(--r-m); margin: 20px 0; }
.apost__content ul, .apost__content ol { margin: 0 0 18px; padding-left: 22px; }
.apost__content li { margin-bottom: 8px; }
.apost__content blockquote { margin: 22px 0; padding: 6px 20px; border-left: 3px solid var(--dorado); color: var(--gris); font-style: italic; }
.apost__content table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; line-height: 1.5; }
.apost__content th, .apost__content td { padding: 9px 12px; border-bottom: 1px solid var(--arena-2); text-align: left; vertical-align: top; }
.apost__content thead th { border-bottom-color: var(--dorado); }
/* A wide table scrolls inside itself on a phone instead of stretching the whole page. */
@media (max-width: 700px) {
    .apost__content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .apost__content th, .apost__content td { min-width: 104px; }
}

.apost__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.apost__tags .chip { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--arena-2); background: var(--blanco); color: var(--tinta); font-size: 13px; font-weight: 600; text-decoration: none; }
.apost__tags .chip:hover { border-color: var(--jade); color: var(--jade-d); }
.apost__back { margin-top: 34px; }

/* Post · crumb leaf, byline, related guides, end-of-article call to action */
.apost__crumb { flex-wrap: nowrap; min-width: 0; }
.apost__crumb > a, .apost__crumb > span:not(.apost__crumb-here) { flex: none; }
.apost__crumb-here { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tinta); }
.apost__by { color: var(--gris); text-decoration: underline; text-decoration-color: var(--arena-2); text-underline-offset: 3px; }
.apost__by:hover { color: var(--jade-d); text-decoration-color: currentColor; }
.apost__h2 { font-family: 'Fraunces', Georgia, serif; font-size: 24px; line-height: 1.2; margin: 0 0 16px; color: var(--tinta); }
.apost__related { margin-top: 44px; }
.apost__related .agrid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.apost__related .aexc { display: none; }
.apost__related .attl { font-size: 17px; }
.apost__related .abody { padding: 14px 14px 16px; }
@media (max-width: 700px) { .apost__related .agrid { grid-template-columns: 1fr; } }
.apost__cta { margin-top: 44px; padding: 26px 26px 22px; border: 1px solid var(--arena-2); border-radius: var(--r-m); background: var(--blanco); }
.apost__cta p { margin: 0 0 16px; color: var(--gris); line-height: 1.6; }
.apost__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.apost__cta-actions .btn { padding: 12px 20px; }
.apost__cta .apost__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--gris); }
