/* =====================================================================
   Alrowad Blog — listing + article
   Same family as alrowad-projects (tokens, cards, CTA), own components.
   ===================================================================== */
.alb {
	--alb-forest: #1D3B1D;
	--alb-forest-2: #2A5230;
	--alb-deep: #0F2416;
	--alb-sage: #DCF5DA;
	--alb-sage-2: #EEF7EC;
	--alb-paper: #F6F8F4;
	--alb-gold: #D4B56A;
	--alb-gold-2: #E2C788;
	--alb-gold-ink: #9A7B33;
	--alb-ink: #1A1F1B;
	--alb-text: #2E3830;
	--alb-muted: #5F6B62;
	--alb-line: #E3E9E2;
	--alb-r: 20px;
	--alb-shadow: 0 1px 2px rgba(15, 36, 22, .04), 0 8px 24px rgba(15, 36, 22, .06);
	--alb-shadow-hover: 0 2px 4px rgba(15, 36, 22, .05), 0 22px 48px rgba(15, 36, 22, .14);
	--alb-ease: cubic-bezier(.2, .7, .2, 1);
	--alb-header: 72px;
	display: block;
	background: #fff;
	color: var(--alb-ink);
	font-family: "Almarai", system-ui, sans-serif;
	line-height: 1.7;
	overflow-x: clip;
}
@media (max-width: 1024px) { .alb { --alb-header: 48px; } }
.alb *, .alb *::before, .alb *::after { box-sizing: border-box; }
body .alb :is(h1, h2, h3, h4, h5, h6, a, button, input, p, li, summary) { font-family: inherit; letter-spacing: normal; }
.alb img { max-width: 100%; height: auto; display: block; }
.alb a { color: inherit; text-decoration: none; }
.alb :focus-visible { outline: 2px solid var(--alb-gold); outline-offset: 3px; border-radius: 6px; }
.alb .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.alb-i { flex: none; }
.alb-wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }

/* the site header floats over the hero */
.alb-page .elementor-location-header { position: relative; z-index: 60; }
.alb-page .alb-hero { margin-top: calc(var(--alb-header) * -1); }

/* ---------- Type ---------- */
.alb-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--alb-gold-ink); font-size: 14px; font-weight: 800; line-height: 1.4; }
.alb-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--alb-gold); }
.alb-eyebrow--light { color: var(--alb-gold-2); }
.alb .alb-h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.3; font-weight: 800; color: var(--alb-forest); }
.alb-head { margin-bottom: 32px; }
.alb-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }

/* ---------- Buttons / chips ---------- */
.alb .alb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--alb-ease), box-shadow .25s; white-space: nowrap; text-decoration: none; }
.alb .alb-btn:hover { transform: translateY(-2px); }
.alb .alb-btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.alb .alb-btn--gold { background: var(--alb-gold); color: var(--alb-deep); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.alb .alb-btn--gold:hover { background: var(--alb-gold-2); color: var(--alb-deep); }
.alb .alb-btn--glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; }
.alb .alb-btn--glass:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.alb .alb-btn--outline { background: transparent; border-color: var(--alb-forest); color: var(--alb-forest); }
.alb .alb-btn--outline:hover { background: var(--alb-forest); color: #fff; }
.alb .alb-btn--forest { background: var(--alb-forest); color: #fff; }
.alb .alb-btn--forest:hover { background: var(--alb-forest-2); color: #fff; }

.alb-chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.alb-chip--glass { background: rgba(15, 36, 22, .58); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); }
.alb-chip--gold { background: var(--alb-gold); color: var(--alb-deep); }
.alb-chip--sage { background: var(--alb-sage); color: var(--alb-forest); }
.alb a.alb-chip--gold { transition: background-color .2s; }
.alb a.alb-chip--gold:hover { background: var(--alb-gold-2); color: var(--alb-deep); }

/* ---------- Meta ---------- */
.alb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; color: var(--alb-muted); font-size: 14px; line-height: 1.5; }
.alb-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.alb-meta .alb-i { color: var(--alb-gold-ink); }

/* =====================================================================
   Hero
   ===================================================================== */
.alb-hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--alb-deep); color: #fff; isolation: isolate; }
.alb-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; animation: alb-kenburns 18s ease-out both; }
@keyframes alb-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.alb-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 20, 12, .94) 0%, rgba(8, 20, 12, .62) 42%, rgba(8, 20, 12, .32) 72%, rgba(8, 20, 12, .58) 100%); }
.alb-hero__inner { position: relative; }
.alb-hero--listing { min-height: 420px; padding: calc(var(--alb-header) + 64px) 0 104px; }
.alb-hero--listing .alb-hero__shade { background: linear-gradient(90deg, rgba(8, 20, 12, .35) 0%, rgba(8, 20, 12, .2) 40%, rgba(8, 20, 12, 0) 100%), linear-gradient(to top, rgba(8, 20, 12, .95) 0%, rgba(8, 20, 12, .66) 50%, rgba(8, 20, 12, .5) 100%); }
.alb-hero--post { min-height: min(74vh, 680px); padding: calc(var(--alb-header) + 80px) 0 64px; }

.alb-crumbs { margin-bottom: 18px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.alb-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.alb-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.alb-crumbs li + li::before { content: "/"; margin: 0 8px; color: rgba(255, 255, 255, .4); }
.alb-crumbs a { display: inline-block; padding: 4px 0; transition: color .2s; }
.alb-crumbs a:hover { color: var(--alb-gold-2); }
.alb-crumbs [aria-current] { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }

.alb .alb-hero__title { margin: 0; max-width: 20ch; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.15; font-weight: 800; color: #fff; text-wrap: balance; }
.alb .alb-hero__title--post { margin-top: 16px; max-width: 22ch; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.22; }
.alb-hero__lead { max-width: 56ch; margin: 16px 0 0; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .86); }
.alb-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .86); font-size: 15px; }
.alb-hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.alb-hero__meta .alb-i { color: var(--alb-gold); }

/* =====================================================================
   Listing
   ===================================================================== */
.alb-toolbar { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: -40px 0 0; padding: 12px; background: #fff; border: 1px solid var(--alb-line); border-radius: 24px; box-shadow: var(--alb-shadow-hover); }
.alb-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.alb .alb-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--alb-line); background: #fff; color: var(--alb-ink); font-size: 15px; font-weight: 700; line-height: 1.3; transition: border-color .2s, color .2s, background-color .2s, box-shadow .2s; white-space: nowrap; }
.alb .alb-pill:hover { border-color: var(--alb-forest); color: var(--alb-forest); }
.alb .alb-pill.is-active { background: var(--alb-forest); border-color: var(--alb-forest); color: #fff; box-shadow: 0 8px 18px rgba(29, 59, 29, .22); }
.alb-pill__n { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--alb-paper); color: var(--alb-muted); font-size: 12px; text-align: center; }
.alb-pill.is-active .alb-pill__n { background: rgba(255, 255, 255, .16); color: #fff; }

.alb-search { position: relative; display: flex; align-items: center; flex: 0 1 360px; }
.alb-search > .alb-i { position: absolute; inset-inline-start: 16px; color: var(--alb-muted); pointer-events: none; }
.alb .alb-search input[type="search"] { width: 100%; height: 48px; margin: 0; padding: 0 48px 0 56px; border: 1px solid var(--alb-line); border-radius: 999px; background: var(--alb-paper); color: var(--alb-ink); font-size: 15px; line-height: 48px; box-shadow: none; transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none; }
.alb .alb-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.alb .alb-search input[type="search"]::placeholder { color: #7A857C; opacity: 1; }
.alb .alb-search input[type="search"]:focus { outline: 0; border-color: var(--alb-forest); background: #fff; box-shadow: 0 0 0 4px rgba(29, 59, 29, .1); }
.alb .alb-search__go { position: absolute; inset-inline-end: 4px; display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--alb-forest); color: #fff; cursor: pointer; transition: background-color .2s; }
.alb .alb-search__go:hover, .alb .alb-search__go:focus { background: var(--alb-forest-2); color: #fff; }
/* larger hit area for the 40px round button */
.alb .alb-search__go::after { content: ""; position: absolute; inset: -4px; }

.alb-featured { margin-top: 48px; }
.alb-section { padding: 72px 0; }
.alb-section--list { padding-top: 64px; }
.alb-section--tint { background: var(--alb-paper); }
.alb-results__n { margin: 8px 0 0; color: var(--alb-muted); font-size: 15px; font-weight: 700; }

/* ---------- Cards ---------- */
.alb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.alb-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--alb-line); border-radius: var(--alb-r); overflow: hidden; box-shadow: var(--alb-shadow); transition: transform .45s var(--alb-ease), box-shadow .45s var(--alb-ease); isolation: isolate; }
.alb-card:hover { transform: translateY(-6px); box-shadow: var(--alb-shadow-hover); }
.alb-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--alb-paper); }
.alb-card__img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1s var(--alb-ease); }
.alb-card__img--empty { display: grid; place-items: center; color: #9AB59C; background: var(--alb-sage-2); }
.alb-card:hover .alb-card__img { transform: scale(1.06); }
.alb-card__media .alb-chip { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; }
.alb-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 24px 22px; }
.alb .alb-card__title { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 800; color: var(--alb-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alb-card__title a { transition: color .2s; }
.alb-card:hover .alb-card__title a { color: var(--alb-forest); }
.alb-card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.alb-card__link:focus-visible { outline: none; }
.alb-card:has(.alb-card__link:focus-visible) { outline: 3px solid var(--alb-gold); outline-offset: 3px; }
.alb-card__excerpt { margin: 0; color: var(--alb-muted); font-size: 15px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alb-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--alb-line); color: var(--alb-forest); font-size: 15px; font-weight: 800; }
.alb-card__more .alb-i { transition: transform .35s var(--alb-ease); }
.alb-card:hover .alb-card__more .alb-i { transform: translateX(-5px); }
.alb-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* wide card: spans two columns, image beside text */
.alb-card--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.alb-card--wide .alb-card__media, .alb-card--feature .alb-card__media { aspect-ratio: auto; min-height: 100%; }
.alb-card--wide .alb-card__img, .alb-card--feature .alb-card__img { position: absolute; inset: 0; }
.alb-card--wide .alb-card__body { padding: 28px 30px; justify-content: center; }
.alb-card--wide .alb-card__title { font-size: 23px; }
.alb-card--wide .alb-card__excerpt { -webkit-line-clamp: 3; }
.alb-card--wide .alb-card__more { margin-top: 6px; }

/* feature card: latest post */
.alb-card--feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 460px; border-radius: 26px; }
.alb-card--feature .alb-card__body { justify-content: center; gap: 16px; padding: 48px 52px; }
.alb .alb-card--feature .alb-card__title { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.35; -webkit-line-clamp: 3; }
.alb-card--feature .alb-card__excerpt { font-size: 17px; -webkit-line-clamp: 3; }
.alb-card--feature .alb-card__more { align-self: flex-start; margin-top: 10px; padding: 13px 24px; border: 0; border-radius: 999px; background: var(--alb-forest); color: #fff; transition: background-color .25s; }
.alb-card--feature:hover .alb-card__more { background: var(--alb-forest-2); }

@media (max-width: 1100px) {
	.alb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.alb-card--wide { grid-column: auto; display: flex; }
	.alb-card--wide .alb-card__media { aspect-ratio: 16 / 10; min-height: 0; }
	.alb-card--wide .alb-card__img { position: static; }
	.alb-card--wide .alb-card__body { padding: 20px 24px 22px; justify-content: flex-start; }
	.alb-card--wide .alb-card__title { font-size: 20px; }
	.alb-card--wide .alb-card__excerpt { -webkit-line-clamp: 2; }
	.alb-card--wide .alb-card__more { margin-top: auto; }
	.alb-grid > .alb-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.alb-grid > .alb-card:last-child:nth-child(odd) .alb-card__media { aspect-ratio: auto; min-height: 100%; }
	.alb-grid > .alb-card:last-child:nth-child(odd) .alb-card__img { position: absolute; }
	.alb-card--feature .alb-card__body { padding: 36px; }
}
@media (max-width: 900px) {
	.alb-card--feature { grid-template-columns: 1fr; min-height: 0; }
	.alb-card--feature .alb-card__media { aspect-ratio: 16 / 10; min-height: 0; }
	.alb-card--feature .alb-card__img { position: static; }
	.alb-card--feature .alb-card__body { padding: 26px 24px 28px; gap: 12px; }
}
@media (max-width: 640px) {
	.alb-grid { grid-template-columns: 1fr; gap: 18px; }
	.alb-grid > .alb-card:last-child:nth-child(odd) { display: flex; }
	.alb-grid > .alb-card:last-child:nth-child(odd) .alb-card__media { aspect-ratio: 16 / 10; min-height: 0; }
	.alb-grid > .alb-card:last-child:nth-child(odd) .alb-card__img { position: static; }
	.alb .alb-card__title { font-size: 19px; }
	.alb-card--feature .alb-card__excerpt { font-size: 16px; }
	.alb-card--feature .alb-card__more { align-self: stretch; justify-content: center; }
}

/* ---------- Pagination ---------- */
.alb-pager { margin-top: 48px; }
.alb-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.alb-pager .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--alb-line); background: #fff; color: var(--alb-ink); font-size: 16px; font-weight: 700; transition: .2s; }
.alb-pager a.page-numbers:hover { border-color: var(--alb-forest); color: var(--alb-forest); background: var(--alb-sage-2); }
.alb-pager .page-numbers.current { background: var(--alb-forest); border-color: var(--alb-forest); color: #fff; box-shadow: 0 8px 18px rgba(29, 59, 29, .22); }
.alb-pager .page-numbers.dots { border: 0; background: none; min-width: 24px; }

/* ---------- Empty ---------- */
.alb-empty { display: grid; justify-items: center; gap: 8px; padding: 64px 24px; text-align: center; background: var(--alb-paper); border: 1px dashed #CFDACE; border-radius: var(--alb-r); color: var(--alb-muted); }
.alb-empty__ico { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border-radius: 22px; background: var(--alb-sage); color: var(--alb-forest); }
.alb .alb-empty h3 { margin: 0; color: var(--alb-ink); font-size: 22px; font-weight: 800; }
.alb-empty p { max-width: 46ch; margin: 0 0 14px; }

/* =====================================================================
   Article
   ===================================================================== */
.alb-progress { position: fixed; top: 0; inset-inline: 0; z-index: 100001; height: 4px; pointer-events: none; }
.admin-bar .alb-progress { top: 32px; }
.alb-progress span { display: block; height: 100%; background: linear-gradient(to left, var(--alb-gold), var(--alb-gold-2)); transform: scaleX(0); transform-origin: right center; box-shadow: 0 0 10px rgba(212, 181, 106, .5); }

.alb-layout { display: grid; grid-template-columns: minmax(0, 760px) 340px; justify-content: center; gap: 72px; padding: 72px 0 64px; align-items: start; }
.alb-aside { position: sticky; top: calc(var(--alb-header) + 32px); display: grid; gap: 18px; }
.admin-bar .alb-aside { top: calc(var(--alb-header) + 64px); }

/* prose */
.alb-prose { font-size: 19px; line-height: 2; color: var(--alb-text); overflow-wrap: anywhere; }
.alb-prose > :first-child { margin-top: 0; }
.alb-prose p { margin: 0 0 1.2em; }
.alb-prose > p:first-child { font-size: 21px; line-height: 1.95; color: var(--alb-ink); }
.alb .alb-prose h2 { position: relative; margin: 1.9em 0 .6em; padding-inline-start: 18px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.45; font-weight: 800; color: var(--alb-forest); scroll-margin-top: calc(var(--alb-header) + 32px); }
.alb-prose h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; bottom: .32em; width: 4px; border-radius: 4px; background: var(--alb-gold); }
.alb .alb-prose h3 { margin: 1.6em 0 .5em; font-size: clamp(20px, 2vw, 23px); line-height: 1.5; font-weight: 800; color: var(--alb-ink); scroll-margin-top: calc(var(--alb-header) + 32px); }
.alb .alb-prose h4 { margin: 1.4em 0 .4em; font-size: 19px; font-weight: 800; color: var(--alb-ink); }
.alb-prose a { color: var(--alb-forest); font-weight: 700; text-decoration: underline; text-decoration-color: var(--alb-gold); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.alb-prose a:hover { color: var(--alb-forest-2); text-decoration-color: var(--alb-forest-2); }
.alb-prose strong, .alb-prose b { color: var(--alb-ink); font-weight: 800; }
.alb-prose ul, .alb-prose ol { margin: 0 0 1.3em; padding-inline-start: 1.6em; }
.alb-prose li { margin: 0 0 .5em; padding-inline-start: .3em; }
.alb-prose ul > li { list-style: none; position: relative; }
.alb-prose ul > li::before { content: ""; position: absolute; inset-inline-start: -1.1em; top: .82em; width: 8px; height: 8px; border-radius: 50%; background: var(--alb-gold); box-shadow: 0 0 0 3px rgba(212, 181, 106, .22); }
.alb-prose ol > li::marker { color: var(--alb-gold-ink); font-weight: 800; }
.alb-prose blockquote { position: relative; margin: 1.8em 0; padding: 28px 32px 28px 28px; padding-inline-start: 72px; border: 0; border-radius: 20px; background: var(--alb-sage-2); color: var(--alb-forest); font-size: 21px; line-height: 1.9; font-weight: 700; }
.alb-prose blockquote::before { content: "”"; position: absolute; inset-inline-start: 22px; top: 10px; font-size: 72px; line-height: 1; color: var(--alb-gold); font-family: Georgia, serif; }
.alb-prose blockquote p:last-child { margin-bottom: 0; }
.alb-prose blockquote cite { display: block; margin-top: 10px; color: var(--alb-muted); font-size: 15px; font-style: normal; font-weight: 400; }
.alb-prose figure { margin: 2em 0; max-width: 100%; }
.alb-prose img { border-radius: 18px; height: auto; }
.alb-prose figure img, .alb-prose .wp-block-image img { width: 100%; object-fit: cover; }
.alb-prose figcaption, .alb-prose .wp-caption-text, .alb-prose .wp-element-caption { margin-top: 12px; color: var(--alb-muted); font-size: 14px; line-height: 1.7; text-align: center; }
.alb-prose .alignwide, .alb-prose .alignfull { margin-inline: 0; }
.alb-prose .wp-block-gallery { gap: 12px; }
.alb-prose hr { margin: 2.4em auto; width: 120px; height: 2px; border: 0; background: var(--alb-line); }
.alb-prose table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: 16px; line-height: 1.7; }
.alb-prose th, .alb-prose td { padding: 12px 14px; border-bottom: 1px solid var(--alb-line); text-align: start; }
.alb-prose th { background: var(--alb-paper); color: var(--alb-forest); font-weight: 800; }
.alb-prose .wp-block-table { overflow-x: auto; }
.alb-prose iframe, .alb-prose video { max-width: 100%; border-radius: 18px; }
.alb-prose code { padding: 2px 6px; border-radius: 6px; background: var(--alb-paper); font-size: .9em; }
.alb-pages { display: flex; gap: 8px; align-items: center; margin: 24px 0; }

/* article footer */
.alb-article__foot { display: grid; gap: 22px; margin-top: 40px; }
.alb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.alb-tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--alb-paper); color: var(--alb-forest); font-size: 14px; font-weight: 700; transition: background-color .2s; }
.alb-tags a:hover { background: var(--alb-sage); }

.alb-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; border-block: 1px solid var(--alb-line); }
.alb-share__label { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--alb-ink); font-size: 16px; font-weight: 800; }
.alb-share__label .alb-i { color: var(--alb-gold-ink); }
.alb-share__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.alb .alb-share__btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--alb-line); border-radius: 50%; background: #fff; color: var(--alb-forest); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--alb-ease); }
.alb .alb-share__btn:hover, .alb .alb-share__btn:focus { background: var(--alb-forest); border-color: var(--alb-forest); color: #fff; transform: translateY(-2px); }
.alb .alb-share__btn--whatsapp:hover { background: #128C4B; border-color: #128C4B; }
.alb .alb-share__btn--x:hover { background: #111; border-color: #111; }
.alb .alb-share__btn--facebook:hover { background: #1660D8; border-color: #1660D8; }
.alb .alb-share__btn[hidden] { display: none; }
.alb .alb-share__btn.is-done { background: var(--alb-sage); border-color: var(--alb-sage); color: var(--alb-forest); }
.alb-share__ok { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 8px; background: var(--alb-ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; pointer-events: none; }
.alb-share__ok::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--alb-ink); }
.alb-share__ok[hidden] { display: none; }

.alb-author { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--alb-r); background: var(--alb-paper); border: 1px solid var(--alb-line); }
.alb-author__logo { flex: none; display: grid; place-items: center; width: 136px; height: 92px; border-radius: 20px; background: var(--alb-deep); color: var(--alb-gold); padding: 14px; }
.alb-author__logo img { width: 100%; height: auto; }
.alb-author p { margin: 0; }
.alb-author__kicker { color: var(--alb-gold-ink); font-size: 13px; font-weight: 800; }
.alb-author__name { color: var(--alb-forest); font-size: 20px; font-weight: 800; line-height: 1.5; }
.alb-author__bio { margin-top: 4px !important; color: var(--alb-muted); font-size: 15px; line-height: 1.8; }

/* TOC */
.alb-toc { border: 1px solid var(--alb-line); border-radius: var(--alb-r); background: #fff; box-shadow: var(--alb-shadow); overflow: hidden; }
.alb-toc summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 20px; color: var(--alb-forest); font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.alb-toc summary::-webkit-details-marker { display: none; }
.alb-toc summary span { flex: 1; }
.alb-toc summary .alb-i:last-child { transition: transform .3s var(--alb-ease); color: var(--alb-muted); }
.alb-toc[open] summary .alb-i:last-child { transform: rotate(180deg); }
.alb-toc ol { margin: 0; padding: 4px 12px 14px; list-style: none; counter-reset: toc; border-top: 1px solid var(--alb-line); max-height: 52vh; overflow-y: auto; }
.alb-toc li { margin: 0; }
.alb-toc a { position: relative; display: block; padding: 9px 12px; padding-inline-start: 22px; border-radius: 10px; color: var(--alb-muted); font-size: 15px; line-height: 1.6; transition: color .2s, background-color .2s; }
.alb-toc a::before { content: ""; position: absolute; inset-inline-start: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #C3CEC4; transition: background-color .2s, transform .2s; }
.alb-toc__h3 a { padding-inline-start: 38px; font-size: 14px; }
.alb-toc__h3 a::before { inset-inline-start: 24px; }
.alb-toc a:hover { color: var(--alb-forest); background: var(--alb-paper); }
.alb-toc a.is-active { color: var(--alb-forest); font-weight: 800; background: var(--alb-sage-2); }
.alb-toc a.is-active::before { background: var(--alb-gold); transform: scale(1.5); }
@media (min-width: 1001px) {
	.alb-toc summary { cursor: default; pointer-events: none; }
	.alb-toc summary .alb-i:last-child { display: none; }
}

/* consult card */
.alb-ask { position: relative; padding: 32px 28px; border-radius: 24px; background: var(--alb-deep); color: rgba(255, 255, 255, .82); overflow: hidden; isolation: isolate; }
.alb-ask::before { content: ""; position: absolute; z-index: -1; inset: auto -80px -120px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 181, 106, .3), transparent 70%); }
.alb-ask::after { content: ""; position: absolute; z-index: -1; inset: -60px auto auto -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(212, 181, 106, .16); }
.alb-ask__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: rgba(212, 181, 106, .14); color: var(--alb-gold); }
.alb .alb-ask__title { margin: 0 0 8px; color: #fff; font-size: 24px; font-weight: 800; line-height: 1.4; }
.alb-ask p { margin: 0 0 22px; font-size: 15px; line-height: 1.85; }
.alb .alb-ask .alb-btn { width: 100%; }
.alb-ask .alb-btn + .alb-btn { margin-top: 10px; }

/* prev / next */
.alb-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 8px 0 72px; }
.alb-adjacent__link { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px; border: 1px solid var(--alb-line); border-radius: var(--alb-r); background: #fff; transition: border-color .25s, box-shadow .35s var(--alb-ease), transform .35s var(--alb-ease); }
.alb-adjacent__link:hover { border-color: transparent; box-shadow: var(--alb-shadow-hover); transform: translateY(-3px); }
.alb-adjacent__link--next { flex-direction: row-reverse; text-align: left; }
.alb-adjacent__thumb { flex: none; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--alb-paper); }
.alb-adjacent__thumb img { width: 100%; height: 100% !important; object-fit: cover; }
.alb-adjacent__text { display: grid; gap: 4px; min-width: 0; }
.alb-adjacent__link--next .alb-adjacent__text { justify-items: end; }
.alb-adjacent__dir { display: inline-flex; align-items: center; gap: 6px; color: var(--alb-gold-ink); font-size: 14px; font-weight: 800; }
.alb-adjacent__text strong { color: var(--alb-ink); font-size: 17px; line-height: 1.5; font-weight: 800; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alb-adjacent__link:hover strong { color: var(--alb-forest); }

.alb-grid--plain .alb-card--wide { grid-column: auto; }
.alb-projects .arp { color: inherit; }
.alb-comments__inner { max-width: 760px; }

@media (max-width: 1000px) {
	.alb-layout { display: flex; flex-direction: column; gap: 0; padding: 40px 0 48px; }
	.alb-article { order: 1; }
	.alb-aside { display: contents; }
	.alb-toc { order: 0; align-self: stretch; margin-bottom: 32px; }
	.alb-ask { order: 2; align-self: stretch; margin-top: 32px; }
}
@media (max-width: 767px) {
	.alb-hero--listing { min-height: 380px; padding: calc(var(--alb-header) + 56px) 0 92px; }
	.alb-hero--post { min-height: 560px; padding-bottom: 44px; }
	.alb-hero__meta { gap: 8px 18px; font-size: 14px; margin-top: 20px; }
	.alb-crumbs [aria-current] { max-width: 22ch; }
	.alb-toolbar { margin-top: -36px; padding: 12px; border-radius: 20px; }
	.alb-pills { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 24px); margin: -2px -12px; padding: 2px 12px; scrollbar-width: none; }
	.alb-pills::-webkit-scrollbar { display: none; }
	.alb .alb-pill { flex: none; }
	.alb-search { flex: 1 1 100%; }
	.alb-featured { margin-top: 32px; }
	.alb-section { padding: 56px 0; }
	.alb-section--list { padding-top: 48px; }
	.alb-head { margin-bottom: 24px; }
	.alb-prose { font-size: 18px; }
	.alb-prose > p:first-child { font-size: 19px; }
	.alb-prose blockquote { padding: 22px 20px; padding-inline-start: 56px; font-size: 19px; }
	.alb-prose blockquote::before { inset-inline-start: 14px; font-size: 60px; }
	.alb-share { flex-direction: column; align-items: flex-start; }
	.alb-author { flex-direction: column; align-items: flex-start; gap: 16px; }
	.alb-author__logo { width: 120px; height: 76px; border-radius: 18px; padding: 12px; }
	.alb-adjacent { grid-template-columns: 1fr; gap: 12px; padding-bottom: 56px; }
	.alb-adjacent__thumb { width: 68px; height: 68px; }
	.alb-adjacent__link--next { flex-direction: row; text-align: start; }
	.alb-adjacent__link--next .alb-adjacent__text { justify-items: start; }
	.alb-adjacent__text strong { font-size: 16px; }
}

/* ---------- Closing CTA ---------- */
.alb-cta { position: relative; padding: 76px 0; background: var(--alb-deep); color: rgba(255, 255, 255, .82); overflow: hidden; isolation: isolate; }
.alb-cta::before { content: ""; position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 181, 106, .2), transparent 65%); }
.alb-cta::after { content: ""; position: absolute; z-index: -1; left: -120px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(212, 181, 106, .14); box-shadow: 0 0 0 60px rgba(255, 255, 255, .015), 0 0 0 120px rgba(255, 255, 255, .012); }
.alb-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.alb-cta__text { display: flex; align-items: flex-start; gap: 22px; max-width: 680px; }
.alb-cta__ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(212, 181, 106, .14); color: var(--alb-gold); }
.alb .alb-cta__title { margin: 0 0 8px; color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.3; }
.alb-cta p { margin: 0; font-size: 17px; line-height: 1.85; }
.alb-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767px) {
	.alb-cta { padding: 56px 0; }
	.alb-cta__text { flex-direction: column; gap: 16px; }
	.alb-cta__ico { width: 54px; height: 54px; border-radius: 16px; }
	.alb-cta__actions { width: 100%; }
	.alb-cta__actions .alb-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.alb *, .alb *::before, .alb *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.alb-card:hover, .alb .alb-btn:hover, .alb-adjacent__link:hover, .alb .alb-share__btn:hover { transform: none; }
}
@media print {
	.alb-progress, .alb-aside, .alb-share, .alb-cta, .alb-adjacent, .alb-projects, .alb-section--tint { display: none !important; }
	.alb-hero { min-height: 0; color: #000; background: none; }
	.alb-hero__img, .alb-hero__shade { display: none; }
	.alb .alb-hero__title { color: #000; }
}
