/*
 * Site styles for franciskdogbatse.com
 *
 * Loaded after the theme stylesheet (main.css) and Bootstrap, and overrides them.
 * Colours, type sizes, spacing and shadows are defined once as custom
 * properties in section 1 and used throughout.
 *
 *  1. Design tokens
 *  2. Base and typography
 *  3. Layout
 *  4. Theme overrides
 *  5. Site header and navigation
 *  6. Buttons
 *  7. Home page
 *  8. Post cards
 *  9. Blog post
 * 10. Topics, tags and filters
 * 11. Pagination
 * 12. Forms and newsletter
 * 13. Speaking
 * 14. Events
 * 15. Search
 * 16. Messages
 * 17. Footer
 * 18. Error pages
 * 19. Impact
 * 20. Videos
 * 21. About
 */


/* 1. Design tokens */

:root {
    --color-bg: #f6f7f2;
    --color-surface: #ffffff;
    --color-tint: #ebeee3;
    --color-line: #e2e5da;
    --color-ink: #232225;
    --color-text: #47464a;
    --color-muted: #66705f;
    --color-sage: #647263;
    --color-sage-dark: #4e5a4e;
    --color-gold: #91820b;
    --color-gold-dark: #776a07;
    --color-gold-light: #e2d27a;
    --color-error: #b3261e;

    --font-body: "Heebo", sans-serif;
    --font-heading: "Playfair Display", serif;

    --fs-xs: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
    --fs-sm: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
    --fs-base: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    --fs-lg: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
    --fs-article: clamp(1.125rem, 1.03rem + 0.45vw, 1.3125rem);
    --fs-h4: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
    --fs-h3: clamp(1.5rem, 1.32rem + 0.8vw, 1.875rem);
    --fs-h2: clamp(1.875rem, 1.55rem + 1.45vw, 2.75rem);
    --fs-h1: clamp(2.375rem, 1.85rem + 2.4vw, 3.75rem);
    --fs-display: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
    --fs-pill: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);

    --lh-body: 1.75;
    --lh-heading: 1.2;

    --space-section: clamp(4rem, 3rem + 4vw, 7rem);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(35, 34, 37, 0.04), 0 6px 20px rgba(35, 34, 37, 0.06);
    --shadow-md: 0 2px 6px rgba(35, 34, 37, 0.06), 0 18px 40px rgba(35, 34, 37, 0.1);
    --transition: 0.25s ease;
}


/* 2. Base and typography */

html {
    font-size: 100%;
}

html,
body {
    height: auto;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button,
input,
optgroup,
select,
textarea {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-optical-sizing: auto;
    font-weight: 600;
    line-height: var(--lh-heading);
    letter-spacing: -0.01em;
    color: var(--color-ink);
    margin-top: 0;
    margin-bottom: 0.75em;
    text-transform: none;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }
h5, .h5 { font-size: var(--fs-lg); }
h6, .h6 { font-size: var(--fs-base); }

.icon-x {
    width: 0.9em;
    height: 0.9em;
    fill: currentColor;
    vertical-align: -0.1em;
}

p {
    margin-top: 0;
    margin-bottom: 1.25em;
}

a {
    color: var(--color-gold-dark);
    transition: color var(--transition);
}

a:hover {
    color: var(--color-gold);
}

a.site-link {
    color: var(--color-gold-dark);
}

::selection {
    background-color: rgba(145, 130, 11, 0.2);
}

.img-fluid {
    width: 100%;
    height: auto;
}

.shadowed-image {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}


/* 3. Layout */

#wrapper {
    padding: 0;
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.page-main-container {
    margin-top: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.page-header {
    max-width: 760px;
    margin-bottom: 3rem;
}

.page-intro {
    max-width: 720px;
    margin-bottom: 2.5rem;
    font-size: var(--fs-lg);
    color: var(--color-text);
}

.page-intro > :last-child {
    margin-bottom: 0;
}

.page-header-wide {
    max-width: none;
}

.page-header-wide .page-intro {
    max-width: none;
    margin-bottom: 0;
}

.page-header-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.narrow-column {
    max-width: 760px;
    margin: 0 auto;
}

.article-column {
    max-width: 760px;
    margin: 0 auto;
}

.margin-xlarge {
    margin-top: var(--space-section);
    margin-bottom: var(--space-section);
}

.margin-small {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: 1.5rem;
}

.section-divider {
    margin: 4rem 0;
    border: 0;
    border-top: 1px solid var(--color-line);
    opacity: 1;
}

.eyebrow,
.post-series,
.event-card-meta,
.search-result-type {
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
}


/* 4. Theme overrides
   main.css styles every <header> and <nav> as the site navigation.
   Reset them so they can be used elsewhere, and restyle the site header in section 5. */

header {
    height: auto;
    margin-top: 0;
}

nav {
    float: none;
    height: auto;
    margin: 0;
}

#loader,
#loader:before,
#loader:after {
    border-top-color: var(--color-gold);
}


/* 5. Site header and navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background-color: var(--color-bg);
    transition: padding var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.site-header.is-scrolled {
    padding: 0.5rem 0;
    background-color: rgba(246, 247, 242, 0.94);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 1px 0 var(--color-line), 0 8px 24px rgba(35, 34, 37, 0.06);
}

.site-header nav {
    float: right;
    height: 50px;
    margin-top: -3px;
    margin-right: -8px;
}

@media (min-width: 1037px) {
    .inner-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.logo {
    width: 150px;
    height: 41px;
    padding-top: 0 !important;
    transition: height var(--transition);
}

.logo a {
    border: none !important;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (min-width: 769px) {
    .logo {
        width: auto;
        height: 72px;
    }

    .site-header.is-scrolled .logo {
        height: 52px;
    }
}

#bernd_menu > ul > li > a {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-ink);
}

#bernd_menu > ul > li > a:hover {
    color: var(--color-gold-dark);
}

#bernd_menu > ul > li > a:after {
    border-bottom: none;
}

#bernd_menu ul li.link-active a {
    color: var(--color-gold-dark);
    font-weight: 600;
}


/* 6. Buttons */

.btn.btn-black {
    background-color: var(--color-ink);
    border: 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    outline: none;
    transition: background-color var(--transition), transform var(--transition);
}

.btn.btn-black:hover,
.btn.btn-black:active {
    background-color: var(--color-gold-dark);
    color: #fff;
}

.btn.btn-black:focus-visible {
    outline: 3px solid rgba(145, 130, 11, 0.4);
    outline-offset: 2px;
}

.btn.btn-gold {
    background-color: var(--color-gold-light);
    border: 0;
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background-color var(--transition), color var(--transition);
}

.btn.btn-gold:hover,
.btn.btn-gold:active {
    background-color: #fff;
    color: var(--color-ink);
}

.btn.btn-gold:focus-visible {
    outline: 3px solid rgba(226, 210, 122, 0.5);
    outline-offset: 2px;
}

.btn.btn-xlarge {
    padding: 0.9rem 1.8rem;
}

.btn.btn-rounded,
.btn.btn-rounded::after {
    border-radius: var(--radius-pill);
}

.btn .fa-arrow-right-long {
    margin-left: 0.4rem;
}


/* 7. Home page */

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero {
    --hero-duration: 7s;
    position: relative;
    height: clamp(560px, calc(100svh - 7rem), 860px);
    overflow: hidden;
    color: #fff;
    background-color: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.9s ease;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform-origin: center top;
}

/* Phones get a portrait crop around the focal point set in the admin. */
@media (max-width: 767px) {
    .hero-image {
        object-position: center;
        transform-origin: center;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.45) 45%, rgba(10, 10, 10, 0.08) 80%),
        linear-gradient(0deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0) 35%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    padding-bottom: 5rem;
}

.hero-eyebrow {
    margin-bottom: 1rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold-light);
}

.hero-title {
    max-width: 15ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);
    line-height: 1.08;
    color: #fff;
}

.hero-text {
    max-width: 34rem;
    margin-bottom: 2rem;
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    margin: 0;
}

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 2rem;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.hero-progress {
    display: flex;
    flex: 1;
    gap: 1rem;
    max-width: 42rem;
}

.hero-bar {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.hero-bar.is-active,
.hero-bar:hover {
    color: #fff;
}

.hero-bar-label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-bar-track {
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.28);
}

.hero-bar-fill {
    display: block;
    width: 0;
    height: 100%;
    background-color: #fff;
}

.hero-bar.is-done .hero-bar-fill {
    width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 0.6rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.hero-button:focus-visible,
.hero-bar:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (hover: hover) {
    .hero-button:hover {
        border-color: #fff;
        background-color: #fff;
        color: var(--color-ink);
    }
}

/* Motion runs only once the slideshow script has started */

.hero.is-ready .hero-bar.is-active .hero-bar-fill {
    animation: hero-progress var(--hero-duration) linear forwards;
}

.hero.is-ready .hero-slide.is-active .hero-image {
    animation: hero-zoom calc(var(--hero-duration) + 1.5s) ease-out forwards;
}

.hero.is-ready .hero-slide.is-active .hero-content > * {
    animation: hero-rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero.is-ready .hero-slide.is-active .hero-content > :nth-child(2) { animation-delay: 0.1s; }
.hero.is-ready .hero-slide.is-active .hero-content > :nth-child(3) { animation-delay: 0.2s; }
.hero.is-ready .hero-slide.is-active .hero-content > :nth-child(4) { animation-delay: 0.3s; }

.hero.is-paused .hero-bar-fill,
.hero.is-paused .hero-image {
    animation-play-state: paused !important;
}

@keyframes hero-progress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767px) {
    .hero {
        height: clamp(560px, calc(100svh - 5.5rem), 760px);
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.55) 50%, rgba(10, 10, 10, 0.15) 100%);
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 6.5rem;
    }

    .hero-text {
        margin-bottom: 1.5rem;
    }

    .hero-controls {
        bottom: 1.5rem;
        align-items: center;
    }

    .hero-bar-label,
    .hero-arrow {
        display: none;
    }

    .hero-button {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.is-active {
        transition: none;
    }

    .hero.is-ready .hero-slide.is-active .hero-image,
    .hero.is-ready .hero-slide.is-active .hero-content > * {
        animation: none;
    }
}

section#impact {
    background-color: var(--color-tint);
}

.impact-section {
    padding: var(--space-section) 0;
}

/* Ask FKD: a full-width dark band with example questions shown as chat messages. */

.ask-section {
    padding: clamp(4.5rem, 3rem + 6vw, 9rem) 0;
    color: rgba(255, 255, 255, 0.82);
    background-color: var(--color-ink);
    background-image:
        radial-gradient(circle at 100% 0%, rgba(226, 210, 122, 0.18) 0%, rgba(226, 210, 122, 0) 45%),
        radial-gradient(circle at 0% 100%, rgba(100, 114, 99, 0.35) 0%, rgba(100, 114, 99, 0) 50%);
}

.ask-section .eyebrow {
    color: var(--color-gold-light);
}

.ask-title {
    margin-bottom: 1rem;
    font-size: var(--fs-display);
    color: #fff;
}

.ask-text {
    max-width: 36rem;
    margin-bottom: 2rem;
    font-size: var(--fs-lg);
}

.ask-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
}

.ask-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 0.3em;
    transition: text-decoration-color var(--transition), color var(--transition);
}

.ask-link:hover,
.ask-link:focus-visible {
    color: var(--color-gold-light);
    text-decoration-color: var(--color-gold-light);
}

.ask-chat {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ask-bubble {
    align-self: flex-end;
    max-width: 85%;
    padding: clamp(0.875rem, 0.7rem + 0.5vw, 1.25rem) clamp(1.25rem, 1rem + 0.6vw, 1.75rem);
    font-size: var(--fs-lg);
    line-height: 1.5;
    color: var(--color-ink);
    background-color: #fff;
    border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.ask-bubble:nth-child(2) {
    margin-right: clamp(0rem, 2vw, 2rem);
}

.ask-bubble-reply {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-start;
    padding: 0.625rem 1.25rem 0.625rem 0.625rem;
    background-color: var(--color-gold-light);
    border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
}

.ask-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-gold-light);
    background-color: var(--color-ink);
    border-radius: 50%;
}

.ask-typing {
    display: flex;
    gap: 0.3rem;
}

.ask-typing span {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--color-ink);
    border-radius: 50%;
    animation: ask-typing 1.4s ease-in-out infinite;
}

.ask-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ask-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ask-typing {
    0%, 60%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ask-typing span {
        animation: none;
        opacity: 0.6;
    }
}

.impact-section .section-header {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.impact-section .section-title {
    margin-bottom: 1rem;
}

.impact-section-text {
    font-size: var(--fs-lg);
    margin-bottom: 0;
}

.description p {
    font-size: var(--fs-base);
}

@media (max-width: 768px) {
    .image-content {
        margin-bottom: 2rem;
    }
}

#quote {
    position: relative;
    min-height: 560px;
    background-size: cover;
    background-position: center;
}

#quote .dark-overlay {
    position: relative;
    display: flex;
    align-items: center;
    min-height: inherit;
}

.quote-content {
    padding: 4rem 0;
    text-align: center;
    color: #fff;
}

.quote-mark {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--color-gold);
    opacity: 0.9;
}

.quote-text {
    margin: 0 auto 1.25rem;
    max-width: 38ch;
}

.quote-text .quote,
.quote-text .quote p {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-style: italic;
    line-height: 1.5;
    color: #fff;
}

.quote-author {
    margin: 0;
    font-size: var(--fs-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.events-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(420px, 62vh, 620px);
    overflow: hidden;
    color: #fff;
    background-color: var(--color-sage-dark);
}

.events-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.events-banner-content {
    position: relative;
    z-index: 1;
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.events-banner-content .eyebrow {
    color: var(--color-gold-light);
}

.events-banner-title {
    max-width: 20ch;
    margin: 0 auto 1rem;
    font-size: var(--fs-h1);
    color: #fff;
}

.events-banner-text {
    max-width: 36rem;
    margin: 0 auto 2rem;
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.86);
}

.home-gallery {
    padding: var(--space-section) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.gallery-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background-color: var(--color-tint);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity var(--transition);
}

.gallery-item:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

@media (hover: hover) {
    .gallery-item:hover img {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

/* Lightbox (GLightbox): slower, smoother slide and fade between photos */
.goverlay {
    background: rgba(12, 12, 12, 0.95);
}

.glightbox-container .gslideInRight,
.glightbox-container .gslideInLeft,
.glightbox-container .gslideOutRight,
.glightbox-container .gslideOutLeft {
    animation-duration: 0.55s;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.glightbox-container .gslide-image img {
    border-radius: var(--radius-sm);
}

@media (min-width: 769px) {
    .glightbox-container .gslide-image img {
        max-width: min(1200px, 86vw);
        max-height: 84vh;
    }
}


/* 8. Post cards */

.post-grid {
    margin-bottom: 1rem;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover,
.post-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.post-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-tint);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 60%, var(--color-gold-dark) 140%);
    color: #fff;
}

.post-card-placeholder-mark {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 1;
    opacity: 0.35;
}

.post-card-placeholder-topic {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
}

.post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem 1.5rem 1.75rem;
}

.post-card-meta {
    margin-bottom: 0.6rem;
    font-size: var(--fs-xs);
    color: var(--color-muted);
}

.post-card-title {
    margin-bottom: 0.75rem;
    font-size: var(--fs-h4);
    line-height: 1.3;
}

.post-card-title a {
    color: var(--color-ink);
    text-decoration: none;
}

.post-card:hover .post-card-title a {
    color: var(--color-gold-dark);
}

.post-card-summary {
    margin-bottom: 1.25rem;
    font-size: var(--fs-sm);
    line-height: 1.65;
}

.post-card-more {
    margin-top: auto;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-gold-dark);
}

.no-posts-yet {
    padding: 3rem 0;
    color: var(--color-muted);
}


/* 9. Blog post */

.entry-header {
    margin-bottom: 2rem;
}

.post-title {
    margin-bottom: 0.75rem;
    font-size: var(--fs-h1);
    color: var(--color-ink);
}

.post-author {
    margin-bottom: 0.25rem;
    font-size: var(--fs-sm);
    color: var(--color-muted);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: var(--fs-xs);
    color: var(--color-muted);
}

.entry-image {
    margin: 0 0 2.5rem;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.entry-image img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-body {
    font-size: var(--fs-article);
    line-height: 1.8;
}

.entry-body p,
.entry-body ul,
.entry-body ol {
    margin-bottom: 1.4em;
}

.entry-body ul,
.entry-body ol {
    padding-left: 1.25em;
}

.entry-body li {
    margin-bottom: 0.5em;
}

.entry-body li::marker {
    color: var(--color-gold);
}

.entry-body b,
.entry-body strong {
    font-weight: 600;
    color: var(--color-ink);
}

h2.entry-sub-title {
    margin: 2.5rem 0 1rem;
    font-size: var(--fs-h3);
    color: var(--color-ink);
    overflow-wrap: break-word;
}

.post-img img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
}

.post .blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 1.75rem;
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-style: italic;
    background-color: var(--color-tint);
    border-left: 4px solid var(--color-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post .blockquote .quote-mark {
    color: var(--color-gold);
}

.post .blockquote-footer {
    margin: 0.75rem 0 0;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-style: normal;
    color: var(--color-muted);
}

.callout {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background-color: var(--color-surface);
    border-left: 4px solid var(--color-gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
}

.callout-title {
    margin-bottom: 0.75rem;
    font-size: var(--fs-h4);
}

.callout-body > :last-child {
    margin-bottom: 0;
}

.scripture {
    margin: 2.5rem 0;
    text-align: center;
}

.scripture-text {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-style: italic;
    color: var(--color-ink);
}

.scripture-reference {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--color-gold-dark);
}

.entry-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-line);
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem 0.75rem 1.5rem;
    background-color: var(--color-surface);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.share-label {
    margin-right: 0.25rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-ink);
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--color-ink);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--color-ink);
    background-color: transparent;
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}

.share-button:focus {
    color: var(--color-ink);
}

.share-button:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .share-links {
        gap: 0.5rem;
        padding-left: 1.25rem;
    }

    .share-button {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

@media (hover: hover) {
    .share-button:hover {
        background-color: var(--color-ink);
        color: #fff;
    }
}

.series-nav {
    margin-bottom: 3rem;
    padding: 1.75rem 2rem;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.series-nav-title {
    font-size: var(--fs-h4);
}

.series-nav ol {
    margin-bottom: 0;
}

.related-posts {
    margin-top: var(--space-section);
}

/* Rich text blocks on about and impact pages */
.block-text_content {
    margin-bottom: 2.5rem;
}


/* 10. Topics, tags and filters */

.topic-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2.5rem;
}

.topic-filter .topic-pill {
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .topic-filter {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
    }
}

.topic-pill,
.tag-pill {
    display: inline-block;
    padding: 0.4em 1.05em;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: var(--fs-pill);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.topic-pill {
    border-color: rgba(119, 106, 7, 0.4);
    color: var(--color-gold-dark);
}

.topic-pill.active {
    background-color: rgba(145, 130, 11, 0.12);
    border-color: var(--color-gold-dark);
    color: var(--color-gold-dark);
    font-weight: 600;
}

.tag-pill {
    background-color: var(--color-tint);
    color: var(--color-sage-dark);
}

.topic-pill:focus,
.topic-pill:active {
    color: var(--color-gold-dark);
}

.tag-pill:focus,
.tag-pill:active {
    color: var(--color-sage-dark);
}

.topic-pill:focus-visible,
.tag-pill:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

@media (hover: hover) {
    .topic-pill:hover {
        background-color: rgba(145, 130, 11, 0.12);
        border-color: var(--color-gold-dark);
        color: var(--color-gold-dark);
    }

    .tag-pill:hover {
        background-color: #dde2d3;
        border-color: rgba(100, 114, 99, 0.35);
        color: var(--color-ink);
    }
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-heading {
    margin-top: 1.5rem;
    color: var(--color-text);
}


/* 11. Pagination */

.pagination {
    justify-content: center;
    padding: 3rem 0;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.5rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    line-height: 1;
    color: var(--color-ink);
    text-decoration: none;
}

.pagination a:hover {
    background-color: var(--color-tint);
    color: var(--color-ink);
}

.pagination .current {
    background-color: var(--color-ink);
    color: #fff;
}

.pagination .dots {
    min-width: auto;
    color: var(--color-muted);
}


/* 12. Forms and newsletter */

.contact-form p {
    margin-bottom: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form input[type="date"],
.contact-form input[type="datetime-local"],
.contact-form input[type="url"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-size: var(--fs-base);
    color: var(--color-ink);
    background-color: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(145, 130, 11, 0.15);
}

.contact-form ::placeholder {
    color: var(--color-muted);
}

.contact-form select {
    height: auto;
    padding-right: 2.75rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="%23232225"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 16px;
}

.contact-form .form-label {
    margin-bottom: 0.35rem;
    font-size: var(--fs-sm);
    color: var(--color-muted);
}

.form-help {
    margin-top: 0.35rem;
    font-size: var(--fs-xs);
    color: var(--color-muted);
}

.contact-details {
    font-size: var(--fs-base);
    color: var(--color-text);
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.newsletter-signup {
    scroll-margin-top: 7rem;
    max-width: 720px;
    margin: var(--space-section) auto;
    padding: clamp(2rem, 1.5rem + 2vw, 3rem);
    text-align: center;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.newsletter-title {
    margin-bottom: 0.5rem;
    font-size: var(--fs-h3);
}

.newsletter-text {
    max-width: 46ch;
    margin: 0 auto;
    color: var(--color-text);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 32rem;
    margin: 1.5rem auto 0;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.8rem 1.25rem;
    font-size: var(--fs-base);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    outline: none;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(145, 130, 11, 0.15);
}

.newsletter-form .btn {
    padding: 0.8rem 1.75rem;
}

.newsletter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.newsletter-captcha {
    min-height: 78px;
}

/* The reCAPTCHA checkbox has a fixed width of 304px */
@media (max-width: 575px) {
    .newsletter-actions {
        flex-direction: column;
    }

    .newsletter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .newsletter-signup {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .newsletter-captcha {
        transform: scale(0.88);
        transform-origin: center;
    }
}

.newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--color-gold-dark);
    background-color: rgba(145, 130, 11, 0.12);
    animation: hero-rise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.newsletter-error {
    margin: 0.75rem 0 0;
    font-size: var(--fs-sm);
    color: var(--color-error);
}

.newsletter-website {
    position: absolute;
    left: -10000px;
}


/* 13. Speaking */

.topic-card {
    padding: 1.75rem;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.topic-card-title {
    font-size: var(--fs-h4);
}

.engagement-list {
    padding-left: 0;
    list-style: none;
}

.engagement-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-line);
}

.engagement-meta {
    display: block;
    font-size: var(--fs-sm);
    color: var(--color-muted);
}


/* 14. Events */

.event-item,
.event-details {
    background-color: var(--color-surface);
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm) !important;
}

.event-title {
    font-size: var(--fs-h3);
}

.event-card {
    height: 100%;
    overflow: hidden;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.event-card-title {
    font-size: var(--fs-h4);
}

.event-card-title a {
    color: var(--color-ink);
    text-decoration: none;
}

.event-card-summary {
    margin-bottom: 0;
    font-size: var(--fs-sm);
}

.event-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: #fff;
    background-color: var(--color-gold-dark);
    border-radius: var(--radius-pill);
}

.event-facts dt {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.event-facts dd {
    margin-bottom: 1rem;
}

.event-gallery img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.recap-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
}

.no-events-yet {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm) !important;
}


/* 15. Search */

.search-result {
    border-bottom: 1px solid var(--color-line);
}


/* 16. Messages */

.site-messages {
    padding-top: 1.25rem;
}

.site-message {
    padding: 0.75rem 1.25rem;
    color: var(--color-ink);
    background-color: var(--color-surface);
    border-left: 4px solid var(--color-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: var(--shadow-sm);
}

.site-message-error {
    border-left-color: var(--color-error);
}


/* 17. Footer */

footer#site-footer {
    margin-top: var(--space-section);
    background-color: var(--color-sage);
}

footer#site-footer .copyright {
    font-size: var(--fs-sm);
}

footer#site-footer .social-icons a i {
    font-size: 1.75rem;
}

footer#site-footer .social-icons a i:hover {
    color: var(--color-bg);
}

#scroll-up {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1100;
    display: none;
    justify-content: center;
    align-items: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    background-color: var(--color-ink);
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    outline: none;
}

#scroll-up:hover {
    background-color: var(--color-gold-dark);
}

#scroll-up .fa-up-long {
    color: #fff;
}


/* 18. Error pages */

.error-page {
    margin-top: 6rem;
    margin-bottom: 12rem;
    padding: 3rem 1.5rem;
    text-align: center;
}

.error-message h3 {
    font-size: var(--fs-h4);
    color: var(--color-muted);
}


/* 19. Impact
   Organisation logos and cards, used on the Impact page and the home page. */

.org-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 9rem;
    padding: 1.5rem 2rem;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
}

.org-logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.org-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-gold-dark);
    background-color: var(--color-tint);
    border: 2px solid var(--color-gold-light);
    border-radius: 50%;
}

.org-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.75rem 0.75rem 1.5rem;
    text-align: center;
    color: var(--color-text);
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.org-card:hover,
.org-card:focus-visible {
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.org-card .org-logo {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
}

.org-card-name {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 700;
    line-height: var(--lh-heading);
    color: var(--color-ink);
}

.org-card-role {
    margin-top: 0.5rem;
    font-size: var(--fs-sm);
    color: var(--color-muted);
}

.impact-intro {
    font-size: var(--fs-base);
}

.org-list {
    margin: var(--space-section) 0;
}

.org-row {
    padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0;
    border-top: 1px solid var(--color-line);
    scroll-margin-top: 6rem;
}

.org-row .eyebrow {
    margin-bottom: 0.75rem;
}

.org-logo-large {
    height: clamp(12rem, 9rem + 8vw, 18rem);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-sm);
}

.org-logo-large .org-logo-placeholder {
    width: 9rem;
    height: 9rem;
    font-size: var(--fs-h2);
}

.org-name {
    font-size: var(--fs-h2);
    margin-bottom: 1rem;
}

.org-description {
    margin-bottom: 1.75rem;
    font-size: var(--fs-base);
}

.org-description > :last-child {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .org-card,
    .org-card:hover {
        transition: none;
        transform: none;
    }
}


/* 20. Videos
   The player shows a thumbnail until it is pressed (see fkd-video.js). */

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0c0c0c;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-facade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.video-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 50%, rgba(10, 10, 10, 0.35) 100%);
    transition: background-color var(--transition);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(4rem, 3rem + 4vw, 5.5rem);
    height: clamp(4rem, 3rem + 4vw, 5.5rem);
    padding-left: 0.3em;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    color: var(--color-ink);
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: transform var(--transition), background-color var(--transition), color var(--transition);
}

.video-facade:hover .video-thumbnail {
    transform: scale(1.03);
}

.video-facade:hover .video-play-icon,
.video-facade:focus-visible .video-play-icon {
    color: #fff;
    background-color: var(--color-gold);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-facade:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: -3px;
}

.videos-section {
    padding: var(--space-section) 0;
    background-color: var(--color-surface);
}

.videos-section .section-title {
    margin-bottom: 1rem;
}

.videos-section-text {
    font-size: var(--fs-lg);
    margin-bottom: 0;
}

.videos-section-caption {
    margin: 1rem 0 0;
    font-size: var(--fs-sm);
    color: var(--color-muted);
}

.video-series {
    margin-bottom: var(--space-section);
}

.video-series-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    margin-bottom: 1.75rem;
}

.video-series-title {
    font-size: var(--fs-h2);
    margin-bottom: 0.5rem;
}

.video-series-text {
    max-width: 640px;
    margin-bottom: 0;
    font-size: var(--fs-base);
}

.video-series-youtube {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
}

.video-series-youtube .fa-youtube {
    font-size: 1.25em;
    color: #ff0000;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.video-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    width: 100%;
    padding: 0.5rem;
    font-family: var(--font-body);
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    color: var(--color-text);
    background-color: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

.video-list-item:hover {
    background-color: var(--color-tint);
}

.video-list-item:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.video-list-item[aria-current="true"] {
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.video-list-thumbnail {
    position: relative;
    flex: 0 0 42%;
    max-width: 11rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background-color: #0c0c0c;
}

.video-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-list-playing {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background-color: rgba(10, 10, 10, 0.6);
}

.video-list-item[aria-current="true"] .video-list-playing {
    display: flex;
}

.video-list-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding-top: 0.125rem;
}

.video-list-number {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-gold-dark);
}

.video-list-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-ink);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Long series scroll beside the player on larger screens. */
@media (min-width: 992px) {
    .video-list {
        max-height: 30rem;
        overflow-y: auto;
        padding-right: 0.25rem;
        scrollbar-width: thin;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-thumbnail,
    .video-play-icon {
        transition: none;
    }

    .video-facade:hover .video-thumbnail {
        transform: none;
    }
}


/* 21. About
   The photo stays in view on large screens while the text scrolls past it. */

.about-photo {
    max-width: 28rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background-color: var(--color-tint);
}

.about-photo-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

@media (min-width: 992px) {
    .about-photo {
        position: sticky;
        top: 7rem;
        max-width: none;
    }
}

.about-body {
    margin-top: 1.5rem;
}

.about-body p {
    font-size: var(--fs-lg);
}

.about-purpose {
    margin-top: 1rem;
}

.purpose-card {
    height: 100%;
    padding: 1.75rem;
    border-top: 3px solid var(--color-gold);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.purpose-title {
    margin-bottom: 0.75rem;
    font-size: var(--fs-h4);
}

.purpose-card p {
    margin-bottom: 0;
}
