/* HottestGuys /featured — v4. Versioned filename for Cloudflare cache.
   Scoped to .page-featured.
   Spacing scale:
     12px  crumbs → H1, intro paragraph gap
     24px  mobile page top, H1 → intro
     32px  intro → card, card → CTA, CTA → footer, desktop page top
     16px  mobile side gutter (≤620px, matches .wrap / header)
     22px  desktop side gutter (>620px, matches .wrap / header)
     20px  card and CTA inner padding
     16px  card and CTA corner radius
*/

/* ---- gutters: undo .pagehead's 20px padding so we share the header wrap ---- */
.page-featured .pagehead {
  max-width: none;
  margin: 0;
  padding: 32px 0 0;
  text-align: center;
}
.page-featured .pagehead .wrap {
  padding-inline: 22px;
}
.page-featured .pagehead .crumbs {
  justify-content: center;
  margin: 0 0 12px;
}
.page-featured .pagehead h1 {
  margin: 0;
}

.page-featured .feat {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 32px;
  /* padding-inline comes from .wrap: 22px / 16px at ≤620px */
}

.page-featured .feat__intro {
  max-width: 62ch;
  margin: 0 auto 32px;
  text-align: center;
}
.page-featured .feat__intro p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 12px;
}
.page-featured .feat__intro p:last-child { margin-bottom: 0; }
.page-featured .feat__intro a {
  color: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
  text-decoration: none;
}
.page-featured .feat__intro a:hover { color: var(--accent); }

.page-featured .feat__block { margin: 0 0 32px; }

/* One card is full-width of the wrap on mobile (same gutters as the header
   and the CTA). From 621px, cards cap at 360px and center; 2–3+ sit in a row. */
.page-featured .fgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 621px) {
  .page-featured .fgrid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
  }
}

.page-featured .fcard {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  box-shadow: 0 0 0 0 transparent;
  transition:
    transform .2s var(--ease),
    border-color .2s var(--ease),
    box-shadow .2s var(--ease),
    background .2s var(--ease);
}
.page-featured a.fcard { color: inherit; }

/* Subtle cyan gradient border, revealed on hover. */
.page-featured .fcard::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    165deg,
    rgba(79, 209, 255, .75) 0%,
    rgba(0, 175, 240, .35) 42%,
    rgba(0, 175, 240, .06) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity .2s var(--ease);
}
.page-featured .fcard:hover,
.page-featured .fcard:focus-visible {
  transform: translateY(-3px);
  border-color: transparent;
  background: var(--bg-card-hover);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .38),
    0 0 26px rgba(0, 175, 240, .2);
}
.page-featured .fcard:hover::before,
.page-featured .fcard:focus-visible::before { opacity: 1; }
.page-featured .fcard:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Logo tile: dark/neutral, inside the card, logo contained and centered. */
.page-featured .fcard__logo {
  box-sizing: border-box;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 96px;
  margin: 0 0 16px;
  padding: 16px 18px;
  background: #0f141a;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  overflow: hidden;
}
.page-featured .fcard__logo img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.page-featured .fcard__badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--accent-soft);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
}
.page-featured .fcard h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.page-featured .fcard__blurb {
  flex: 1 1 auto;
  margin: 0 0 16px;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.page-featured .fcard__cta {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-soft);
  letter-spacing: -.01em;
  line-height: 1.4;
}
.page-featured .fcard:hover .fcard__cta,
.page-featured .fcard:focus-visible .fcard__cta { color: var(--accent); }

/* Want to be featured? Same radius and inner padding as the card. */
.page-featured .feat-cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  box-shadow: 0 0 32px rgba(0, 175, 240, .08);
}
.page-featured .feat-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 750;
  letter-spacing: -.028em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.page-featured .feat-cta p {
  max-width: 54ch;
  margin: 0 auto 20px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.65;
}
.page-featured .feat-cta__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(0, 175, 240, .2);
  transition: background .16s var(--ease), box-shadow .16s var(--ease), color .16s var(--ease);
}
.page-featured .feat-cta__mail:hover,
.page-featured .feat-cta__mail:focus-visible {
  background: var(--accent-soft);
  color: #07202c;
  box-shadow: 0 0 22px rgba(79, 209, 255, .28);
}
.page-featured .feat-cta__mail:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .page-featured .pagehead { padding-top: 24px; }
  .page-featured .pagehead .wrap { padding-inline: 16px; }
  .page-featured .feat { padding-top: 24px; padding-bottom: 32px; }
  .page-featured .feat__intro { margin-bottom: 32px; }
  .page-featured .feat__intro p { font-size: 15px; }
  .page-featured .feat__block { margin-bottom: 32px; }
  .page-featured .fcard { padding: 20px; }
  .page-featured .fcard__logo {
    min-height: 84px;
    padding: 14px 14px;
    margin-bottom: 16px;
  }
  .page-featured .fcard__logo img { max-height: 48px; }
  /* Full-width email button on mobile, same side inset as the CTA padding. */
  .page-featured .feat-cta__mail {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-featured .fcard,
  .page-featured .fcard::before,
  .page-featured .feat-cta__mail { transition: none; }
  .page-featured .fcard:hover,
  .page-featured .fcard:focus-visible { transform: none; }
}
