/*
 * Posts: the article page (templates/single.html), the lists of posts (patterns/content-archive.php),
 * the Resources page and rushd-site's post blocks (coaches, languages, cards, related articles). Loaded on the site and in the editor.
 */

/* ── Navy head: an article's title ── */
/* It continues the header's #0A1626 bar, so the two read as one band. */
.rushd-article__head {
	background: radial-gradient(70% 90% at 15% 0%, rgba(201,154,63,.14) 0%, rgba(201,154,63,0) 55%), linear-gradient(180deg, #0A1626 0%, #0E2138 100%);
	color: #EBE6DA;
	padding-top: 56px;
	padding-bottom: 64px;
}
.rushd-article__head > * { margin-block: 0; }
.rushd-article__head > * + * { margin-block-start: 18px; }
.rushd-article__title { color: #FCFAF4; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; }
.rushd-article__format a { color: inherit; }
.rushd-article__byline { gap: 6px 18px; font-size: 14px; color: rgba(235,230,218,.75); }
.rushd-article__byline > * { margin: 0; }
.rushd-article__byline a { color: #D8B463; }
.rushd-article__byline a:hover { color: #E7C063; }

/* ── A list's head (a format, a topic, the Resources page): a large title on cream, centred ── */
.rushd-archive__head { background: #FCFAF4; color: #0E2138; text-align: center; padding-top: 72px; padding-bottom: 48px; }
.rushd-archive__head > * { margin-block: 0; margin-inline: auto; }
.rushd-archive__head > * + * { margin-block-start: 20px; }
.rushd-archive__title { color: #0E2138; font-size: clamp(48px, 7.4vw, 96px); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.rushd-archive__head .rushd-archive__description { max-width: 640px; font-size: 17px; line-height: 1.6; color: #4A5468; }
.rushd-archive__description p { margin: 0; }
.rushd-archive__description a { color: #86652A; text-decoration: underline; text-underline-offset: 3px; }
.rushd-archive__head > .rushd-list-topics { margin-block-start: 32px; }

/* ── Article body ── */
.rushd-article__body { padding-top: 48px; padding-bottom: 72px; background: #FFFFFF; }
.rushd-article__body > * { margin-block: 0; }
.rushd-article__image { margin-bottom: 40px !important; }
.rushd-article__image img { border-radius: 15px; }
.rushd-article__content { font-size: 17px; line-height: 1.75; color: #2B3447; overflow-wrap: break-word; }
.rushd-article__content > * { margin-block: 0; }
.rushd-article__content > * + * { margin-block-start: 1.1em; }
.rushd-article__content h2 { margin-block-start: 1.8em; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; color: #0E2138; }
.rushd-article__content h3 { margin-block-start: 1.5em; font-family: var(--wp--preset--font-family--jakarta); font-size: 19px; font-weight: 700; line-height: 1.35; color: #0E2138; }
.rushd-article__content h2 + *, .rushd-article__content h3 + * { margin-block-start: .6em; }
.rushd-article__content a { color: #B0883E; text-decoration: underline; text-underline-offset: 3px; }
.rushd-article__content a:hover { color: #0E2138; }
.rushd-article__content strong { color: #0E2138; }
.rushd-article__content ul, .rushd-article__content ol { padding-inline-start: 24px; }
.rushd-article__content li + li { margin-top: 6px; }
.rushd-article__content li::marker { color: #B0883E; }
.rushd-article__content blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-inline-start: 3px solid #C99A3F; font-family: var(--wp--preset--font-family--cormorant); font-size: 24px; font-style: italic; line-height: 1.4; color: #0E2138; }
.rushd-article__content figure img { border-radius: 12px; }
.rushd-article__content figcaption { font-size: 13px; color: #737E92; }
.rushd-article__content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rushd-article__content th, .rushd-article__content td { padding: 10px 12px; border-bottom: 1px solid #E5E7EB; text-align: start; }
.rushd-article__content th { color: #0E2138; background: #F7F8FA; }
.rushd-article__topics { margin-top: 40px !important; padding-top: 20px; border-top: 1px solid #E5E7EB; font-size: 14px; color: #637381; }
.rushd-article__topics a { color: #0E2138; font-weight: 600; }

/* Arabic and Urdu: rushd-site sets lang and dir on a post's title, body and card words. */
:is(.rushd-article__title, .rushd-article__content, .rushd-post-card__title, .rushd-post-card__excerpt):is([lang="ar"], [lang="ur"]),
:is(.rushd-article__content, .rushd-post-card__title):is([lang="ar"], [lang="ur"]) :is(h1, h2, h3, h4, blockquote, a) { font-family: var(--wp--preset--font-family--arabic); font-style: normal; letter-spacing: 0; }
:is(.rushd-article__title, .rushd-post-card__title):is([lang="ar"], [lang="ur"]) { line-height: 1.35; }
.rushd-article__content:is([lang="ar"], [lang="ur"]) { line-height: 1.9; }
.rushd-article__content:is([lang="ar"], [lang="ur"]) :is(h2, h3) { line-height: 1.4; }
.editor-styles-wrapper:is([lang="ar"], [lang="ur"]), .editor-styles-wrapper:is([lang="ar"], [lang="ur"]) :is(h1, h2, h3, h4, p, li, blockquote, a) { font-family: var(--wp--preset--font-family--arabic); font-style: normal; letter-spacing: 0; }

/* ── Post coaches (rushd-site) ── */
.rushd-content-coaches { padding: 64px var(--wp--style--root--padding-right, 32px) 64px var(--wp--style--root--padding-left, 32px); background: #F7F8FA; }
.rushd-content-coaches > * { max-width: 1176px; margin-inline: auto; }
.rushd-content-coaches__title { margin-top: 0; margin-bottom: 24px; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: #0E2138; }
.rushd-content-coaches__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rushd-coach-card { display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; border: 1px solid #EDEEF1; border-radius: 15px; padding: 24px; }
.rushd-coach-card > * { margin: 0; }
.rushd-coach-card__name { font-family: var(--wp--preset--font-family--cormorant); font-size: 26px; font-weight: 600; line-height: 1.1; color: #0E2138; }
.rushd-coach-card__name a { color: inherit; }
.rushd-coach-card__meta { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #B0883E; }
.rushd-coach-card__headline { font-size: 14.5px; line-height: 1.55; color: #4A5468; }
.rushd-coach-card__cta { margin-top: auto !important; padding-top: 8px; font-size: 14px; font-weight: 700; color: #16304E; }
.rushd-coach-card__cta:hover { color: #B0883E; }
.rushd-content-coaches--placeholder { padding: 24px; border: 1px dashed #D1D5DB; border-radius: 12px; color: #637381; font-size: 14px; }

/* ── Post languages (rushd-site) ── */
.rushd-translations { font-size: 14px; }
.rushd-translations a { margin-inline-start: 4px; }
.rushd-translations a:is([lang="ar"], [lang="ur"]) { font-family: var(--wp--preset--font-family--arabic); }
.rushd-translations a { font-weight: 600; }

/* ── Call to action under an article ── */
.rushd-article__cta .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #0E2138; border: 1px solid #D1D5DB; }
.rushd-article__cta .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: #0E2138; }

/* ── Lists of posts (rushd-site's includes/content-cards.php) ── */
.rushd-archive { background: #FCFAF4; }
.rushd-archive .rushd-archive__list { padding-top: 8px; padding-bottom: 104px; background: #FCFAF4; }
.rushd-content-coaches + .rushd-archive__list { padding-top: 0; }

/* Chips: a list's topics, a card's topics, the Resources page's lists. */
.rushd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rushd-list-topics, .rushd-hub__nav .rushd-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rushd-list-topics .rushd-chips { display: contents; }
.rushd-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border: 1px solid #DDD6C6; border-radius: 999px; background: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; text-decoration: none; color: #0E2138; transition: background-color .2s, border-color .2s, color .2s; }
.rushd-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C99A3F; flex: none; }
.rushd-chip:hover, .rushd-chip:focus-visible { border-color: #0E2138; color: #0E2138; }
.rushd-chip.is-current { background: #0E2138; border-color: #0E2138; color: #FCFAF4; }
.rushd-chip.is-current::before { background: #E7C063; }
.rushd-chip--all::before { content: "←"; width: auto; height: auto; border-radius: 0; background: none; color: #86652A; }
.rushd-chip__count { font-weight: 500; letter-spacing: 0; color: #737E92; }
.rushd-post-card__topics .rushd-chip { padding: 4px 10px; background: transparent; font-size: 10.5px; }

/* A card: image (or cover), meta, title, excerpt, topics. The whole card links to the post. */
.rushd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 56px 28px; }
.rushd-post-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.rushd-post-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #0E2138; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.rushd-post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rushd-post-card:hover .rushd-post-card__media { transform: translateY(-4px); box-shadow: 0 26px 48px -30px rgba(10,22,38,.6); }
.rushd-post-card:hover .rushd-post-card__media img, .rushd-post-card:hover .rushd-cover { transform: scale(1.045); }
.rushd-post-card__body { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.rushd-post-card__body > * { margin: 0; }
.rushd-post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #86652A; }
.rushd-post-card__format::after { content: "·"; margin-inline-start: 10px; color: #A7AFBC; }
.rushd-post-card__time { font-weight: 600; color: #637381; }
.rushd-post-card__title { font-family: var(--wp--preset--font-family--cormorant); font-size: 27px; font-weight: 600; line-height: 1.12; color: #0E2138; }
.rushd-post-card__link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .35s ease, color .2s; }
.rushd-post-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rushd-post-card:hover .rushd-post-card__link { background-size: 100% 1px; }
.rushd-post-card__link:focus-visible { outline: none; }
.rushd-post-card:has(.rushd-post-card__link:focus-visible) { outline: 2px solid #C99A3F; outline-offset: 8px; border-radius: 16px; }
.rushd-post-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 15px; line-height: 1.6; color: #4A5468; }
.rushd-post-card__coach { position: relative; z-index: 2; font-size: 13.5px; color: #637381; }
.rushd-post-card__coach a { color: #16304E; font-weight: 600; }
.rushd-post-card__coach a:hover { color: #86652A; }
.rushd-post-card__topics { position: relative; z-index: 2; margin-top: 4px !important; }

/* The cover a post shows until it has a featured image: its topic, over that topic's colour. */
.rushd-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; overflow: hidden; color: #FCFAF4; background: linear-gradient(135deg, #0E2138 0%, #16304E 100%); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rushd-cover::before { content: ""; position: absolute; top: -45%; right: -28%; width: 95%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 26px, rgba(231,192,99,.22) 26px 27px); }
.rushd-cover::after { content: ""; position: absolute; top: -20%; right: -10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(231,192,99,.28) 0%, rgba(231,192,99,0) 65%); }
.rushd-cover > * { position: relative; z-index: 1; }
.rushd-cover__brand { font-family: var(--wp--preset--font-family--cormorant); font-size: 12px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: #E7C063; }
.rushd-cover__word { max-width: 80%; font-family: var(--wp--preset--font-family--cormorant); font-size: clamp(30px, 3vw, 42px); font-style: italic; font-weight: 500; line-height: 1; }
.rushd-cover--2 { background: linear-gradient(135deg, #0A2730 0%, #134A58 100%); }
.rushd-cover--3 { background: linear-gradient(135deg, #10291F 0%, #22513F 100%); }
.rushd-cover--4 { background: linear-gradient(135deg, #24152B 0%, #4A2C50 100%); }
.rushd-cover--5 { background: linear-gradient(135deg, #121838 0%, #2A346D 100%); }

/* The spotlight: a list's latest post, large, under a rule. */
.rushd-spotlight { margin-bottom: 88px; padding-top: 28px; border-top: 1px solid #0E2138; }
.rushd-spotlight__label { margin: 0 0 28px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #0E2138; }
.rushd-post-card--spotlight { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; }
.rushd-post-card--spotlight .rushd-post-card__body { gap: 14px; padding-top: 0; }
.rushd-post-card--spotlight .rushd-post-card__title { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06; }
.rushd-post-card--spotlight .rushd-post-card__excerpt { -webkit-line-clamp: 5; font-size: 17px; }
.rushd-post-card--spotlight .rushd-cover { padding: 32px 36px; }
.rushd-post-card--spotlight .rushd-cover__word { font-size: clamp(44px, 6vw, 84px); }
.rushd-post-card__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 8px !important; padding: 13px 24px; border-radius: 999px; background: #0E2138; font-size: 14px; font-weight: 700; color: #FCFAF4; transition: background-color .2s, color .2s; }
.rushd-post-card__cta span { transition: transform .25s; }
.rushd-post-card--spotlight:hover .rushd-post-card__cta { background: #C99A3F; color: #0A1626; }
.rushd-post-card--spotlight:hover .rushd-post-card__cta span { transform: translateX(4px); }
@media (max-width: 860px) {
	.rushd-post-card--spotlight { grid-template-columns: minmax(0, 1fr); }
	.rushd-spotlight { margin-bottom: 64px; }
}

/* A list under its spotlight. */
.rushd-list .rushd-list__heading { margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid rgba(14,33,56,.18); text-align: center; font-size: clamp(34px, 3.8vw, 52px); font-weight: 500; line-height: 1.05; color: #0E2138; }
.rushd-list > .rushd-cards:first-child { padding-top: 40px; border-top: 1px solid #0E2138; }
.rushd-list__empty { font-size: 16px; color: #4A5468; text-align: center; }
.rushd-list__empty a { color: #86652A; text-decoration: underline; }
.rushd-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 72px; }
.rushd-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 16px; border: 1px solid #DDD6C6; border-radius: 999px; background: #FFFFFF; font-size: 14px; font-weight: 600; text-decoration: none; color: #0E2138; transition: border-color .2s, background-color .2s, color .2s; }
.rushd-pagination a.page-numbers:hover { border-color: #0E2138; }
.rushd-pagination .page-numbers.current { background: #0E2138; border-color: #0E2138; color: #FCFAF4; }
.rushd-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* ── Resources page (rushd-site's Resources hub) ── */
.rushd-hub { background: #FCFAF4; padding: 0 var(--wp--style--root--padding-right, 32px) 104px var(--wp--style--root--padding-left, 32px); }
.rushd-hub__inner { max-width: 1176px; margin-inline: auto; }
.rushd-hub__nav { margin: 0 0 56px; }
.rushd-hub__section + .rushd-hub__section { margin-top: 96px; }
.rushd-hub__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid rgba(14,33,56,.18); }
.rushd-hub .rushd-hub__title { margin: 0; font-size: clamp(32px, 3.4vw, 46px); font-weight: 500; line-height: 1.05; color: #0E2138; }
.rushd-hub__all { font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; color: #0E2138; border-bottom: 1px solid #C99A3F; padding-bottom: 2px; transition: color .2s; }
.rushd-hub__all:hover { color: #86652A; }
.rushd-hub__empty { margin: 0; padding-top: 24px; font-size: 16px; text-align: center; color: #4A5468; }
.rushd-hub__empty a { color: #86652A; text-decoration: underline; }

/* ── Related articles (under a post) ── */
.rushd-related { padding: 88px var(--wp--style--root--padding-right, 32px) 96px var(--wp--style--root--padding-left, 32px); background: #F4F1E9; }
.rushd-related__inner { max-width: 1176px; margin-inline: auto; }
.rushd-related__title { margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid rgba(14,33,56,.18); text-align: center; font-size: clamp(34px, 3.8vw, 52px); font-weight: 500; line-height: 1.05; color: #0E2138; }

@media (prefers-reduced-motion: reduce) {
	.rushd-post-card__media, .rushd-post-card__media img, .rushd-cover, .rushd-post-card__link, .rushd-post-card__cta span { transition: none; }
	.rushd-post-card:hover .rushd-post-card__media, .rushd-post-card:hover .rushd-post-card__media img, .rushd-post-card:hover .rushd-cover { transform: none; }
}
