/* WHAT IS AF template only */
/* Fully scoped so the AFI ABOUT template is untouched */

.what-is-af-page {
    background: var(--background-color);
}

.what-is-af-page .what-is-af-hero {
    position: relative;
    margin-bottom: 0;
    min-height: 100svh;
}

.what-is-af-page .what-is-af-hero .section-inner {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.what-is-af-page .what-is-af-hero .spacer {
    display: none;
}

.what-is-af-page .what-is-af-hero .hero-link-wrapper {
    width: min(1200px, calc(100vw - 48px));
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(120px, 14vh, 170px) 0 clamp(96px, 12vh, 132px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
}

.what-is-af-page .what-is-af-hero .hero-link,
.what-is-af-page .what-is-af-hero .post-excerpt-wrapper {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.what-is-af-page .what-is-af-hero h1 {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    text-wrap: balance;
}

.what-is-af-page .what-is-af-hero .post-excerpt-wrapper p {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.what-is-af-page .what-is-af-hero .section-bottom {
    display: none;
}

.what-is-af-page .what-is-af-hero .background-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.18) 46%,
        rgba(0, 0, 0, 0.34) 100%
    );
    pointer-events: none;
}

.what-is-af-page .what-is-af-shell {
    width: min(1200px, calc(100vw - 48px));
    margin: 0 auto;
    padding-top: clamp(72px, 8vw, 110px);
}

.what-is-af-page .afi-about-shell-inner {
    max-width: 860px;
    margin: 0 auto;
}

.what-is-af-page .afi-about-content {
    margin: 0;
}

.what-is-af-page .afi-about-content > *:first-child {
    margin-top: 0;
}

.what-is-af-page .afi-about-content > .afi-definition-box:first-child {
    margin-top: 0;
}

/* Dictionary box styled to match the AFI editor note */
.what-is-af-page .afi-definition-box {
    border: 1px solid #b08a3c;
    padding: 30px 34px;
    margin: 0 auto 60px;
    background: color-mix(in srgb, #b08a3c 6%, var(--background-color));
    max-width: 840px;
    text-align: center;
}

.what-is-af-page .afi-definition-word {
    margin: 0;
    color: var(--text-color);
    font-family: var(--font1);
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.what-is-af-page .afi-definition-meta {
    margin-top: 12px;
    color: var(--text-color);
    font-family: var(--font2);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.what-is-af-page .afi-definition-body {
    margin-top: 22px;
}

.what-is-af-page .afi-definition-body p {
    margin-bottom: 1em;
}

.what-is-af-page .afi-definition-label {
    display: block;
    margin: 24px 0 10px;
    color: #b08a3c;
    font-family: var(--font2);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.what-is-af-page .afi-definition-etymology {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.what-is-af-page .afi-definition-etymology p {
    margin: 8px 0;
    line-height: 1.7;
    color: var(--text-color);
}

.what-is-af-page .afi-definition-root {
    color: var(--text-color);
    font-weight: 700;
}

@media screen and (max-width: 767px) {
    .what-is-af-page .what-is-af-hero,
    .what-is-af-page .what-is-af-hero .section-inner,
    .what-is-af-page .what-is-af-hero .hero-link-wrapper {
        min-height: 100svh;
    }

    .what-is-af-page .what-is-af-hero .hero-link-wrapper {
        width: min(100vw - 28px, 1200px);
        padding: 110px 0 54px;
        gap: 12px;
    }

    .what-is-af-page .what-is-af-shell {
        width: min(100vw - 28px, 1200px);
        padding-top: 48px;
    }

    .what-is-af-page .afi-definition-box {
        max-width: 100%;
        padding: 24px 20px;
        margin-bottom: 42px;
    }
}



/* =========================
   WHAT IS AF - SPLIT BLOCK
   ========================= */

.what-is-af-page .af-split {
  width: min(1200px, calc(100vw - 48px));
  margin: clamp(64px, 8vw, 120px) auto;

  position: relative;
  left: 50%;
  transform: translateX(-50%);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
}

.what-is-af-page .af-split.reverse {
  direction: rtl;
}

.what-is-af-page .af-split.reverse * {
  direction: ltr;
}

.what-is-af-page .af-split-image {
  height: 100%;
  overflow: hidden;
}

.what-is-af-page .af-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.what-is-af-page .af-split-text {
  align-self: center;
  max-width: 520px;
}

@media (max-width: 900px) {
  .what-is-af-page .af-split {
    transform: none;
    left: auto;
    width: min(100vw - 28px, 1200px);

    grid-template-columns: 1fr;
    gap: 28px;
  }

  .what-is-af-page .af-split-image {
    min-height: 320px;
  }
}

/* Keely 1.18.4 fix: remove the stray circular arrow control on the What is Anglofuturism page only. */
.what-is-af-page .button-animated-wrapper,
.what-is-af-page .button-animated,
.what-is-af-page .random-arrow-button,
.what-is-af-page .footer-arrow-button,
.what-is-af-page .afi-about-floating-arrow,
.what-is-af-page .bottom-random-arrow,
.what-is-af-page .kg-button-card .kg-btn:empty,
.what-is-af-page .gh-content > .button-arrow:empty {
    display: none !important;
}
