/* artiMedia Blog, by Akel Alkubeh. Uses the site's colour variables (--plum, --gold ...) with fallbacks. */
.amb-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.amb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 999px; border: 0; font-family: Inter, sans-serif; font-size: 14px; letter-spacing: .5px; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.amb-btn:hover { transform: translateY(-2px); }
.amb-btn:active { transform: translateY(0) scale(.98); }
.amb-btn:focus-visible, .amb-card:focus-visible, .amb-feat:focus-visible, .amb-topic:focus-visible, .amb-pg:focus-visible, .amb-sugg:focus-visible, .amb-share__btn:focus-visible, .amb-vote__btn:focus-visible, .amb-crumb a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus, #eedda4); }
.amb-btn--crimson { background: var(--crimson, #ee4266); color: #fff; }
.amb-btn--crimson:hover { background: var(--crimson-deep, #d8355a); color: #fff; }
.amb-btn--plum { background: var(--plum, #421864); color: #fff; }
.amb-btn--plum:hover { background: var(--plum-deep, #321445); color: #fff; }
.amb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.amb-h2 { margin: 0; font-family: Madani, Inter, sans-serif; font-size: 46px; line-height: 1.1; font-weight: 700; letter-spacing: -.015em; color: var(--plum, #421864); }
.amb-h2--sm { font-size: 38px; }
.amb-link { font-family: Inter, sans-serif; font-size: 15px; font-weight: 700; color: var(--mauve, #a15659); }
.amb-link:hover { color: var(--plum, #421864); }
.amb-count { font-size: 15px; color: rgba(18, 18, 18, .72); }
.amb-chip { align-self: flex-start; font-family: Inter, sans-serif; font-size: 13px; line-height: 16px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--amb-chip, #f5f1fa); color: #121212; }
.amb-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: rgba(18, 18, 18, .72); }

/* ---------- search + popular (hero) ---------- */
.amb-search { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.amb-search__box { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 10px 0 22px; border-radius: 999px; background: #fff; color: #121212; box-sizing: border-box; margin: 0; }
.amb-search__box:focus-within { box-shadow: 0 0 0 3px var(--focus, #eedda4); }
.amb-search__box svg { flex: 0 0 auto; color: var(--plum, #421864); }
.amb-search__box input[type=search] { flex: 1; min-width: 0; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important; padding: 0 !important; font-family: Inter, sans-serif; font-size: 16px; color: #121212; }
.amb-search__box .amb-btn { min-height: 44px; padding: 0 22px; }
.amb-sugg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.amb-sugg { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; text-decoration: none; transition: background-color .2s ease; }
.amb-sugg:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.amb-popular { border-radius: 28px; background: rgba(31, 28, 58, .72); padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; }
.amb-popular .amb-popular__h { margin: 0 0 6px; font-family: Madani, Inter, sans-serif; font-size: 20px; font-weight: 700; color: var(--gold, #e8c38f); }
.amb-pop-link { display: flex; gap: 14px; align-items: center; padding: 10px 0; text-decoration: none; color: #fff; }
.amb-pop-link + .amb-pop-link { border-top: 1px solid rgba(255, 255, 255, .12); }
.amb-pop-link__img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.amb-pop-link__meta { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); }
.amb-pop-link__title { display: block; font-family: Madani, Inter, sans-serif; font-size: 17px; line-height: 1.3; font-weight: 700; color: #fff; transition: color .2s ease; }
.amb-pop-link:hover .amb-pop-link__title { color: var(--gold, #e8c38f); }

/* ---------- editor's pick ---------- */
.amb-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); text-decoration: none; color: #121212; border-radius: 32px; overflow: hidden; background: #fff; }
.amb-feat:hover { color: #121212; }
.amb-feat__img { overflow: hidden; min-height: 340px; background: var(--plum, #421864); }
.amb-feat__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.amb-feat:hover .amb-feat__img img { transform: scale(1.03); }
.amb-feat__body { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.amb-feat .amb-feat__title { margin: 0; font-family: Madani, Inter, sans-serif; font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--plum, #421864); }
.amb-feat__text { margin: 0; font-size: 17px; line-height: 27px; }
.amb-feat__more { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--mauve, #a15659); }

/* ---------- topics ---------- */
.amb-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.amb-topic { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 18px; border-radius: 20px; text-decoration: none; box-sizing: border-box; background: #fff; color: var(--night, #2b274c); transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.amb-topic:hover { transform: translateY(-3px); color: var(--night, #2b274c); }
.amb-topic.is-current { background: var(--plum, #421864); color: #fff; }
.amb-topic__dot { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 999px; background: var(--amb-chip); }
.amb-topic__name { display: block; font-family: Madani, Inter, sans-serif; font-size: 17px; font-weight: 700; }
.amb-topic__count { display: block; font-size: 13px; opacity: .72; }

/* ---------- articles grid ---------- */
.amb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.amb-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: #121212; border-radius: 24px; }
.amb-card:hover { color: #121212; }
.amb-card__img { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--plum, #421864); }
.amb-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.amb-card:hover .amb-card__img img { transform: scale(1.04); }
.amb-card .amb-card__title { margin: 0; font-family: Madani, Inter, sans-serif; font-size: 21px; line-height: 28px; font-weight: 700; color: var(--plum, #421864); transition: color .2s ease; }
.amb-card:hover .amb-card__title { color: var(--mauve, #a15659); }
.amb-card__text { margin: 0; flex: 1; font-size: 16px; line-height: 25px; }
.amb-empty { font-size: 17px; }
.amb-promo { margin: 48px 0; border-radius: 28px; background: var(--night, #2b274c); color: #fff; padding: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: center; overflow: hidden; }
.amb-promo .amb-promo__h { margin: 0 0 10px; font-family: Madani, Inter, sans-serif; font-size: 30px; line-height: 1.15; font-weight: 700; color: #fff; }
.amb-promo__h span { color: var(--gold, #e8c38f); }
.amb-promo p { margin: 0; font-size: 17px; line-height: 27px; color: rgba(255, 255, 255, .88); }
.amb-promo__side { display: flex; align-items: center; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }
.amb-promo__img { width: 140px; height: auto; }
.amb-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.amb-pg { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; min-height: 48px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--night, #2b274c); font-size: 15px; text-decoration: none; transition: background-color .2s ease, color .2s ease; box-sizing: border-box; }
.amb-pg:hover { background: var(--gold, #e8c38f); color: var(--night, #2b274c); }
.amb-pg.is-current { background: var(--plum, #421864); color: #fff; }
.amb-pg.is-disabled { opacity: .45; }
.amb-pg--gap { background: transparent; }

/* ---------- single post ---------- */
.amb-readbar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 999; pointer-events: none; }
.amb-readbar__fill { height: 100%; background: linear-gradient(90deg, var(--plum, #421864), var(--mauve, #a15659), var(--gold, #e8c38f)); transform: scaleX(0); transform-origin: 0 50%; }
.amb-post-hero { background: radial-gradient(circle at 0% 100%, rgba(178, 48, 119, .55) 0%, rgba(178, 48, 119, 0) 42%), linear-gradient(125deg, var(--violet, #4e176a) 0%, var(--night, #2b274c) 72%); color: #fff; }
.amb-post-hero__in { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 28px 32px 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.amb-crumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .5); }
.amb-crumb a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.amb-crumb a:hover { color: var(--gold, #e8c38f); }
.amb-crumb [aria-current] { color: var(--gold, #e8c38f); }
.amb-post-cat { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--gold, #e8c38f); font-size: 14px; font-weight: 700; text-decoration: none; }
.amb-post-cat:hover { background: rgba(255, 255, 255, .2); color: var(--gold, #e8c38f); }
.amb-post-hero .amb-post-title { margin: 0; font-family: Madani, Inter, sans-serif; font-size: 54px; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.amb-post-title span { color: var(--gold, #e8c38f); }
.amb-post-lead { margin: 0; max-width: 60ch; font-size: 20px; line-height: 31px; color: rgba(255, 255, 255, .9); }
.amb-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.amb-post-author { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.amb-post-author:hover { color: #fff; }
.amb-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--gold, #e8c38f); color: var(--night, #2b274c); display: flex; align-items: center; justify-content: center; font-family: Madani, Inter, sans-serif; font-weight: 700; font-size: 15px; }
.amb-post-author__name { display: block; font-weight: 700; }
.amb-post-author__role { display: block; font-size: 13px; color: rgba(255, 255, 255, .78); }
.amb-post-figure { margin: 16px 0 -140px; border-radius: 32px; overflow: hidden; background: var(--plum, #421864); }
.amb-post-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.amb-post-body { background: #fff; color: #121212; padding: 64px 32px 100px; }
.amb-post-body.has-figure { padding-top: 204px; }
.amb-post-wrap { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 64px; justify-content: center; align-items: start; }
.amb-post-wrap.no-toc { grid-template-columns: minmax(0, 720px); }
.amb-toc-d { position: sticky; top: 30px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9cde6 transparent; padding: 4px; margin: -4px; }
.admin-bar .amb-toc-d { top: 62px; }
.amb-toc { border-radius: 22px; background: var(--surface-light, #f7f7f7); padding: 18px 10px; display: flex; flex-direction: column; gap: 2px; transition: background-color .45s ease, box-shadow .45s ease; }
.amb-toc.is-stuck { background: #fff; box-shadow: 0 18px 44px rgba(66, 24, 100, .14); }
.amb-toc__head { margin: 0 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.amb-toc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.amb-toc__title { margin: 0; font-size: 14px; font-weight: 700; color: var(--mauve, #a15659); }
.amb-toc__time { margin: 0; font-size: 13px; color: rgba(18, 18, 18, .72); font-variant-numeric: tabular-nums; }
.amb-toc__bar { height: 4px; border-radius: 999px; background: var(--outline-hover, #f5f1fa); overflow: hidden; }
.amb-toc__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--plum, #421864), var(--mauve, #a15659)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s ease; }
.amb-toc__link { position: relative; display: block; padding: 8px 12px 8px 16px; border-radius: 12px; font-size: 15px; line-height: 21px; color: #121212; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.amb-toc__link--h3 { padding-left: 28px; font-size: 14px; color: rgba(18, 18, 18, .78); }
.amb-toc__link:hover { background: var(--outline-hover, #f5f1fa); color: var(--plum, #421864); }
.amb-toc__link[aria-current="location"] { color: var(--plum, #421864); font-weight: 700; }
.amb-toc__link[aria-current="location"]::before { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 60%; border-radius: 4px; background: var(--gold, #e8c38f); transform: translateY(-50%); }
.amb-share { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.amb-share__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--night, #2b274c); }
.amb-share__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.amb-share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.amb-share__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--outline-hover, #f5f1fa); color: var(--plum, #421864); font-family: Inter, sans-serif; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.amb-share__btn:hover { transform: translateY(-2px); color: var(--plum, #421864); }
.amb-share__btn--li { background: var(--plum, #421864); color: #fff; }
.amb-share__btn--wa { background: var(--success, #4a775b); color: #fff; }
.amb-share__btn--li:hover, .amb-share__btn--wa:hover { color: #fff; }
.amb-share--inline { margin: 36px 0 0; }
.amb-share__btn--fb { background: var(--night, #2b274c); color: #fff; }
.amb-share__btn--fb:hover { color: #fff; }
/* inside the article the generic link colour must not win over the share buttons */
.amb-prose .amb-share__btn { color: var(--plum, #421864); text-decoration: none; }
.amb-prose .amb-share__btn--li, .amb-prose .amb-share__btn--fb, .amb-prose .amb-share__btn--wa,
.amb-prose .amb-share__btn--li:hover, .amb-prose .amb-share__btn--fb:hover, .amb-prose .amb-share__btn--wa:hover { color: #fff; }
.amb-prose .amb-share__title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--night, #2b274c); }
.amb-prose .amb-share--inline { gap: 12px; }

/* ---------- live search ---------- */
.amb-search__wrap { position: relative; }
.amb-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 10px); border-radius: 24px; background: #fff; color: #121212; padding: 8px; box-shadow: 0 24px 48px rgba(20, 10, 40, .35); display: flex; flex-direction: column; gap: 2px; animation: amb-pop .25s cubic-bezier(.2, .7, .2, 1) both; }
.amb-results[hidden] { display: none; }
.amb-result { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: #121212; }
.amb-result:hover, .amb-result.is-active { background: var(--outline-hover, #f5f1fa); color: #121212; }
.amb-result__img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--plum, #421864); }
.amb-result__meta { display: block; font-size: 12px; color: rgba(18, 18, 18, .66); }
.amb-result__title { display: block; font-family: Madani, Inter, sans-serif; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--plum, #421864); }
.amb-result__title mark { background: rgba(232, 195, 143, .55); color: inherit; border-radius: 3px; padding: 0 2px; }
.amb-results__all { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface-light, #f7f7f7); font-size: 14px; font-weight: 700; color: var(--mauve, #a15659); text-decoration: none; }
.amb-results__all:hover { color: var(--plum, #421864); }
.amb-results__empty, .amb-results__loading { margin: 0; padding: 14px; font-size: 15px; color: rgba(18, 18, 18, .72); }
.amb-ico { flex: 0 0 auto; display: block; fill: none; }
.amb-feat__more { display: inline-flex; align-items: center; gap: 8px; }
.amb-feat:hover .amb-feat__more .amb-ico { transform: translateX(4px); }
.amb-feat__more .amb-ico { transition: transform .3s ease; }
.amb-toc-m { display: none; margin-bottom: 28px; border-radius: 20px; background: var(--surface-light, #f7f7f7); padding: 0 18px; }
.amb-toc-m summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; list-style: none; font-family: Madani, Inter, sans-serif; font-size: 17px; font-weight: 700; color: var(--plum, #421864); }
.amb-toc-m summary::-webkit-details-marker { display: none; }
.amb-toc-m summary span { color: var(--mauve, #a15659); transition: transform .25s ease; }
.amb-toc-m[open] summary span { transform: rotate(180deg); }
.amb-toc-m__list { padding-bottom: 12px; }
.amb-takeaways { border-radius: 24px; background: var(--night, #2b274c); color: #fff; padding: 28px 32px; margin-bottom: 36px; }
.amb-takeaways__title { margin: 0 0 12px !important; font-family: Madani, Inter, sans-serif; font-size: 20px !important; font-weight: 700; color: var(--gold, #e8c38f); }
.amb-takeaways ul { margin: 0; padding-left: 20px; }
.amb-takeaways li { font-size: 17px !important; line-height: 27px !important; color: #fff; }

/* article typography */
.amb-prose { min-width: 0; font-family: Inter, sans-serif; color: #121212; }
.amb-prose h2 { font-family: Madani, Inter, sans-serif; font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--night, #2b274c); margin: 60px 0 16px; scroll-margin-top: 28px; }
.amb-prose h3 { font-family: Madani, Inter, sans-serif; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--plum, #421864); margin: 32px 0 10px; scroll-margin-top: 28px; }
.amb-prose h4 { font-family: Madani, Inter, sans-serif; font-size: 18px; font-weight: 700; color: var(--plum, #421864); margin: 24px 0 8px; }
.amb-prose > h2:first-child, .amb-prose > .amb-takeaways + h2 { margin-top: 0; }
.amb-prose p, .amb-prose li { font-size: 18px; line-height: 31px; }
.amb-prose p { margin: 0 0 20px; }
.amb-prose ul, .amb-prose ol { margin: 0 0 20px; padding-left: 24px; }
.amb-prose li { margin-bottom: 8px; }
/* in-text links: gold highlighter that sweeps up behind the words on hover; external links get an arrow */
.amb-prose :is(p, li, td, th, figcaption, dd) a:not([class]) { color: var(--plum, #421864); font-weight: 600; text-decoration: none; padding: 0 2px; margin: 0 -2px; border-radius: 4px; background-image: linear-gradient(var(--gold, #e8c38f), var(--gold, #e8c38f)); background-repeat: no-repeat; background-size: 100% 2px; background-position: 0 100%; transition: background-size .35s cubic-bezier(.2,.8,.2,1), color .2s ease; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.amb-prose :is(p, li, td, th, figcaption, dd) a:not([class]):hover { background-size: 100% 100%; color: var(--night, #2b274c); }
.amb-prose :is(p, li, td, th, figcaption, dd) a:not([class]):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus, #eedda4); }
.amb-prose :is(p, li, td, th, figcaption, dd) a[target="_blank"]:not([class])::after { content: "↗"; display: inline-block; margin-left: 3px; font-size: .8em; font-weight: 700; color: var(--crimson, #ee4266); transition: transform .25s ease; }
.amb-prose :is(p, li, td, th, figcaption, dd) a[target="_blank"]:not([class]):hover::after { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) { .amb-prose :is(p, li, td, th, figcaption, dd) a:not([class]) { transition: none; } }

.amb-prose img { max-width: 100%; height: auto; border-radius: 20px; }
.amb-prose figure { margin: 28px 0 32px; }
.amb-prose figcaption { margin-top: 10px; font-size: 15px; line-height: 23px; color: rgba(18, 18, 18, .72); }
.amb-prose blockquote { margin: 32px 0; padding: 28px 32px; border: 0; border-radius: 24px; background: var(--outline-hover, #f5f1fa); display: flex; flex-direction: column; gap: 12px; }
.amb-prose blockquote p { margin: 0; font-family: Madani, Inter, sans-serif; font-size: 24px; line-height: 1.35; font-weight: 700; color: var(--plum, #421864); }
.amb-prose blockquote cite, .amb-prose blockquote footer { font-size: 15px; font-style: normal; color: rgba(18, 18, 18, .72); }
.amb-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; background: var(--outline-hover, #f5f1fa); padding: 2px 6px; border-radius: 6px; color: var(--plum, #421864); }
.amb-prose pre { position: relative; margin: 28px 0; padding: 56px 20px 20px; border-radius: 20px; background: #1f1c3a; color: #f5f1fa; overflow-x: auto; font-size: 14px; line-height: 22px; }
.amb-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.amb-copy-code { position: absolute; top: 10px; right: 12px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--gold, #e8c38f); color: var(--night, #2b274c); font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; }
/* tables: card with a plum header, zebra rows and a highlight on hover; scrolls sideways on small screens */
.amb-table { position: relative; overflow-x: auto; margin: 28px 0 32px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px #ece8f2, 0 18px 40px rgba(66, 24, 100, .08); -webkit-overflow-scrolling: touch; }
.amb-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 24px; min-width: 520px; margin: 0; border: 0; }
.amb-table caption { caption-side: top; padding: 18px 22px 12px; text-align: left; font-family: Madani, Inter, sans-serif; font-size: 18px; font-weight: 700; color: var(--plum, #421864); background: #fff; }
.amb-table th, .amb-table td { padding: 14px 20px; text-align: left; border: 0; vertical-align: top; }
.amb-table thead th, .amb-table tr:first-child th { background: var(--plum, #421864); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.amb-table thead th:first-child, .amb-table tr:first-child th:first-child { border-top-left-radius: 22px; }
.amb-table thead th:last-child, .amb-table tr:first-child th:last-child { border-top-right-radius: 22px; }
.amb-table tbody tr:nth-child(even) td { background: var(--outline-hover, #f5f1fa); }
.amb-table tbody tr td { transition: background-color .2s ease; }
.amb-table tbody tr:hover td { background: #fbf3e6; }
.amb-table td:first-child { font-weight: 600; color: var(--night, #2b274c); }
.amb-table tbody tr:last-child td:first-child { border-bottom-left-radius: 22px; }
.amb-table tbody tr:last-child td:last-child { border-bottom-right-radius: 22px; }
.amb-table td :is(strong, b) { color: var(--plum, #421864); }
.amb-vote { margin-top: 40px; border-radius: 24px; background: var(--surface-light, #f7f7f7); padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.amb-vote__q { margin: 0 !important; font-size: 16px !important; font-weight: 700; }
.amb-vote__btns { display: flex; gap: 10px; }
.amb-vote__btn { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: #fff; color: var(--plum, #421864); font-family: Inter, sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s ease; }
.amb-vote__btn:hover { background: var(--gold, #e8c38f); color: var(--night, #2b274c); }
.amb-vote__thanks { margin: 0 !important; font-size: 16px !important; font-weight: 700; color: var(--success, #4a775b); }
.amb-author { margin-top: 32px; border-radius: 28px; background: var(--outline-hover, #f5f1fa); padding: 28px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.amb-author__avatar { flex: 0 0 96px; height: 96px; border-radius: 28px; background: var(--night, #2b274c); color: var(--gold, #e8c38f); display: flex; align-items: center; justify-content: center; font-family: Madani, Inter, sans-serif; font-size: 34px; font-weight: 700; }
.amb-author__body { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.amb-author__label { margin: 0 !important; font-size: 13px !important; line-height: 18px !important; font-weight: 700; color: var(--mauve, #a15659); text-transform: uppercase; letter-spacing: .4px; }
.amb-author .amb-author__name { margin: 0; font-family: Madani, Inter, sans-serif; font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--night, #2b274c); }
.amb-author__role { margin: 0 !important; font-size: 15px !important; line-height: 22px !important; color: rgba(18, 18, 18, .72); }
.amb-author__bio { margin: 4px 0 0 !important; font-size: 16px !important; line-height: 26px !important; }
.amb-related { background: var(--surface-light, #f7f7f7); padding: 100px 0; }
.amb-cta { background: var(--gold, #e8c38f); color: var(--night, #2b274c); padding: 96px 0; }
.amb-cta__in { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.amb-cta__text { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.amb-cta .amb-cta__h { margin: 0; font-family: Madani, Inter, sans-serif; font-size: 46px; line-height: 1.1; font-weight: 700; letter-spacing: -.015em; color: var(--night, #2b274c); text-wrap: balance; }
.amb-cta__h span { color: var(--plum, #421864); }
.amb-cta__text p { margin: 0; font-size: 18px; line-height: 28px; color: var(--night, #2b274c); }
.amb-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* entrance animation (as on the other pages) */
@keyframes amb-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.amb-rise { animation: amb-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.amb-d1 { animation-delay: .1s; } .amb-d2 { animation-delay: .25s; } .amb-d3 { animation-delay: .4s; }

/* card pop on load, active TOC tick, scroll reveals (as in the design) */
@keyframes amb-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.amb-grid .amb-card { animation: amb-pop .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes amb-tick-in { from { transform: translateY(-50%) scaleY(0); } to { transform: translateY(-50%) scaleY(1); } }
.amb-toc__link[aria-current="location"]::before { animation: amb-tick-in .35s cubic-bezier(.2, .8, .2, 1); }
@supports (animation-timeline: view()) {
	.amb-reveal, .amb-related .amb-grid .amb-card { animation: amb-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

/* ---------- tablet ---------- */
@media (max-width: 1040px) {
	.amb-post-wrap { grid-template-columns: minmax(0, 720px); }
	.amb-toc-d { display: none; }
	.amb-toc-m { display: block; }
	.amb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amb-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amb-feat, .amb-promo { grid-template-columns: minmax(0, 1fr); }
	.amb-promo__side { justify-content: flex-start; }
	.amb-h2 { font-size: 38px; }
	.amb-post-hero .amb-post-title { font-size: 44px; }
	.amb-cta .amb-cta__h { font-size: 38px; }
}
/* ---------- mobile ---------- */
@media (max-width: 767px) {
	.amb-container { padding: 0 16px; }
	.amb-grid { grid-template-columns: minmax(0, 1fr); }
	.amb-h2, .amb-cta .amb-cta__h { font-size: 30px; }
	.amb-h2--sm { font-size: 28px; }
	.amb-post-hero__in { padding: 20px 16px 0; }
	.amb-post-hero .amb-post-title { font-size: 34px; }
	.amb-post-lead { font-size: 18px; line-height: 28px; }
	.amb-post-figure { margin-bottom: -70px; border-radius: 22px; }
	.amb-post-body { padding: 48px 16px 64px; }
	.amb-post-body.has-figure { padding-top: 110px; }
	.amb-prose h2 { font-size: 26px; margin-top: 44px; }
	.amb-prose p, .amb-prose li { font-size: 17px; line-height: 29px; }
	.amb-feat__img { min-height: 220px; }
	.amb-feat__body, .amb-promo { padding: 24px; }
	.amb-feat .amb-feat__title { font-size: 24px; }
	.amb-search__box { padding-left: 16px; }
	.amb-search__box .amb-btn { padding: 0 16px; }
	.amb-related { padding: 64px 0; }
	.amb-cta { padding: 64px 0; }
	.amb-takeaways { padding: 22px; }
}
@media (max-width: 480px) {
	.amb-topics { grid-template-columns: minmax(0, 1fr); }
	.amb-search__box { flex-wrap: wrap; border-radius: 28px; padding: 10px 14px; }
	.amb-search__box .amb-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.amb-rise, .amb-reveal, .amb-grid .amb-card, .amb-toc__link[aria-current="location"]::before { animation: none; }
	.amb-card__img img, .amb-feat__img img, .amb-toc, .amb-toc__fill, .amb-topic, .amb-btn, .amb-share__btn { transition: none; }
}

.amb-prose .wp-block-table { margin: 0; }
.amb-prose .wp-block-table table, .amb-prose .wp-block-table td, .amb-prose .wp-block-table th { border: 0; }

