/* Armstrong Financial — theme overrides (on top of Astroship) */

/* Icon accents — homepage service badges and contact icons. */
.afs-icon-badge {
  background-color: #7792A6;
}
.afs-icon {
  color: #7792A6;
}


html,
body {
  background-color: #f1f3ec;
  font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
}

/* Keep anchor targets (e.g. #services, #contact-us) clear of the sticky header,
   and make anchor/navigation scrolling smooth site-wide. */
html {
  scroll-padding-top: 6rem;
  scroll-behavior: smooth;
}

/* Sticky footer — push the footer to the bottom of the viewport on short pages. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 800px;
}

/* Vertically center short page content (e.g. Contact). */
.vcenter-page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The company name (brand) in the navbar — Lato, size via utility. */
.brand {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}

/* The big hero title — Lato, 55px on mobile / 90px on desktop. */
.hero-title {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #1c2127;
  letter-spacing: -0.02em;
  font-size: 55px;
  line-height: 0.9;
}
@media (min-width: 1024px) {
  .hero-title {
    font-size: 90px;
  }
}

/* Hero image — soft corners */
.afs-hero-image {
  border-radius: 16px;
}

/* Mobile hero: underlay MOBILE.png full-bleed behind the hero words —
   flush with the header, edge-to-edge, no rounded corners.
   Tablet/desktop keep using hero.png (shown in the right column). */
.afs-hero-mobile-image {
  display: none;
}
@media (max-width: 767.98px) {
  /* Break the hero container out past the parent's px-5 padding so the
     background image can run edge-to-edge. */
  .afs-hero {
    position: relative;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 6rem;
    width: calc(100% + 2.5rem);
    overflow: hidden;
  }

  /* Pin the image to the full width/height of the broken-out container. */
  .afs-hero-mobile-image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important; /* override Tailwind's img { max-width: 100% } */
    object-fit: cover;
    object-position: center bottom;
    transform: scale(1.15);
    transform-origin: 50% 100%;
    z-index: 0;
    pointer-events: none;
  }

  /* Cream haze over the image so the dark hero text stays readable, fading to the
     page background (#f1f3ec) at the bottom so the image bleeds out naturally. */
  .afs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(241, 243, 236, 0.45) 0%,
      #f1f3ec 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  /* Keep text, headings, and buttons layered above the image. */
  .afs-hero > :not(.afs-hero-mobile-image) {
    position: relative;
    z-index: 2;
  }
}

/* Contact page links (Book a meeting / Webmeet) — blue with hover underline */
.afs-contact-link {
  color: #7792A6;
  text-decoration: none;
}
.afs-contact-link:hover {
  text-decoration: underline;
}

/* Contact form fields — soft #fafafa instead of pure white. */
#form input,
#form textarea {
  background-color: #fafafa;
}

/* Page headings ("Contact Us", "Our Team") — Lato bold, 48px mobile / 60px desktop. */
.page-title {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.02em;
  font-size: 48px;
  line-height: 1.1;
}
@media (min-width: 1024px) {
  .page-title {
    font-size: 60px;
  }
}

/* Hide the accessibility "Skip navigation" link (Bootstrap was removed from the
   homepage, so this class needs its own rule to stay visually hidden). */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Use a deep brown instead of black for backgrounds site-wide (text stays black). */
.bg-black {
  background-color: #140d08;
}

/* 3:4 (portrait) aspect ratio for team photos. */
.aspect-3x4 {
  aspect-ratio: 3 / 4;
}

/* Dark brown frame around team photos. */
.team-frame {
  border: 2px solid #140d08;
}

/* Founder section on the homepage — divided from services with a line. */
.founder-section {
  margin-top: 5rem;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid #d9dcd0;
}
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr 2fr; /* 1/3 image, 2/3 text */
  }
}
/* Circular founder photo with a soft 3D drop shadow. */
.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  border: 1px solid rgba(20, 13, 8, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
  max-width: 320px;
}
@media (min-width: 768px) {
  .founder-photo {
    max-width: none;
    margin: 0;
  }
}

/* Founder text (2/3) — box removed for comparison. */
.founder-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Buttons — white with a dark-grey border and black text; fill with the
   action color (#7792A6) on hover. */
.teal-hover:hover {
  background-color: #7792A6 !important;
  color: #ffffff !important;
  border-color: #7792A6 !important;
}

.afs-btn-primary,
.afs-btn-secondary {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-weight: 700;
  border-color: #4b5563 !important;
  border-width: 1px !important;
  border-radius: 8px !important;
}
.afs-btn-primary:hover,
.afs-btn-secondary:hover {
  background-color: #7792A6 !important;
  color: #ffffff !important;
  border-color: #7792A6 !important;
}

/* Filled action buttons — #7792A6 from the start (e.g. "Contact Us", "Request IFA"). */
.afs-btn-action {
  background-color: #7792A6 !important;
  color: #ffffff !important;
  font-weight: 700;
  border-color: #7792A6 !important;
  border-width: 1px !important;
  border-radius: 8px !important;
}
.afs-btn-action:hover {
  background-color: #647f92 !important;
  color: #ffffff !important;
  border-color: #647f92 !important;
}

/* Team page — italic credential line under each name. */
.team-credential {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
}

/* Team page — "Download vCard" link. */
.vcard-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vcard-link:hover {
  color: #1e293b;
}

/* Team page — credential list with a slate left accent (replaces plain bullets). */
.credential-list {
  margin-top: 1rem;
  padding-left: 1rem;
  list-style: none;
  border-left: 2px solid rgba(119, 146, 166, 0.45);
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}
.credential-list li + li {
  margin-top: 0.3rem;
}

/* ===== Team page — card layout ===== */
.afs-team-divider {
  width: 48px;
  height: 3px;
  margin: 1.25rem auto 0;
  background: #7792A6;
  border: 0;
  border-radius: 2px;
}
.team-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e4e7dd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 13, 8, 0.05);
}
.team-card__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  display: block;
}
.team-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.75rem;
}
.team-card__name {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #140d08;
  line-height: 1.2;
}
.team-role {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7792A6;
  background: rgba(119, 146, 166, 0.15);
  border: 1px solid rgba(119, 146, 166, 0.4);
  border-radius: 4px;
}
.team-card__bio {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* ===== Shared site header (Astroship-style) =====
   Self-contained so it renders identically on the Tailwind pages
   (Home / About / Contact) and the Bootstrap pages (Blog). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #f1f3ec;
  border-bottom: 1px solid #e5e7eb;
}
.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.site-header-bar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.site-brand {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1c2127;
  text-decoration: none;
}
.site-brand-accent {
  color: #9ca3af;
  font-weight: 700;
}
.site-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: #7792A6;
}
.site-nav {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
}
.site-nav.is-open {
  display: block;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.site-nav a {
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: #4b5563;
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-nav a:hover {
  color: #111827;
}
.site-nav a.is-active {
  color: #111827;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .site-header-bar {
    flex-direction: row;
  }
  .site-header-top {
    width: auto;
  }
  .site-menu-btn {
    display: none;
  }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    width: auto;
    margin-top: 0;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  .site-nav a {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
@media (max-width: 640px) {
  .site-brand {
    font-size: 1.26rem;
  }
}

/* ===== Universal footer (Armstrong) — self-contained ===== */
.afs-container {
  max-width: 1500px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}
.afs-container--medium {
  max-width: 1450px;
}
.afs-footer {
  background: #363636;
  color: #ffffff;
  margin-top: 4rem;
  padding: 3.5rem 0;
}

/* Outer Grid - Flex wrapper */
.afs-footer__grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

/* Left CTA Section */
.afs-footer__cta {
  flex: 0 0 auto;
  max-width: 360px;
}
.afs-footer__cta h2 {
  font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.afs-footer__cta p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
  color: #ffffff;
}
.afs-footer__buttons {
  display: flex;
  gap: 1.75rem;
}
.afs-footer__buttons a {
  display: inline-block;
  padding: 0.7rem 1.7rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #4b5563;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.afs-footer__buttons a:hover {
  background: #7792A6;
  border-color: #7792A6;
  color: #ffffff;
}
.afs-footer__buttons a.afs-footer__btn-email {
  background: #7792A6;
  border-color: #7792A6;
  color: #ffffff;
}
.afs-footer__buttons a.afs-footer__btn-email:hover {
  background: #647f92;
  border-color: #647f92;
  color: #ffffff;
}

/* Right Info Group - Pushed to the far right edge */
.afs-footer__info {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  flex-direction: row;
  gap: clamp(4rem, 7vw, 8rem);
  align-items: flex-end;
}

/* Sub-column 1: Company details */
.afs-footer__details {
  flex: 0 0 auto;
}
.afs-footer__brand {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.afs-footer__brand-strong {
  color: #ffffff;
  font-weight: 700;
}
.afs-footer__brand-muted {
  color: #d1d5db;
  font-weight: 700;
}
.afs-footer__details p {
  margin-bottom: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #ffffff;
}
.afs-footer__details a {
  color: #ffffff;
  text-decoration: none;
}
.afs-footer__details a:hover {
  color: #7792A6;
  text-decoration: underline;
}
.afs-footer__locations {
  margin-top: 1rem;
}

/* Sub-column 2: Nav links */
.afs-footer__links {
  flex: 0 0 auto;
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: nowrap;
}
.afs-footer__links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.afs-footer__links a:hover {
  color: #7792A6;
  text-decoration: underline;
}

/* Bottom bar: copyright line (links to the admin login). */
.afs-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: right;
}
.afs-footer__copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.afs-footer__copyright:hover {
  color: #7792A6;
}

/* Mobile Fallback */
@media (max-width: 900px) {
  .afs-footer__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
  }
  .afs-footer__info {
    margin-left: 0;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }
}

/* Homepage hero → services section spacing */
.afs-hero {
  padding-bottom: 3rem;
}
#services {
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .afs-hero {
    padding-bottom: 4rem;
  }
  #services {
    margin-top: 0;
  }
}

.afs-article__legal {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #d9dcd0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #64748b;
}
.afs-article__legal p {
  margin: 0;
}
.afs-article__legal p + p {
  margin-top: 0.75rem;
}
.afs-article__legal strong {
  font-weight: 700;
  letter-spacing: 0.03em;
}
.afs-article__disclaimer {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  font-style: italic;
  color: #64748b;
}

/* ===== Contact page map (Westmount Square) ===== */
.afs-contact-map {
  max-width: 56rem;
  margin: 3rem auto 0;
  border: 1px solid #d9dcd0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 13, 8, 0.08);
}
.afs-contact-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: saturate(0.6) contrast(0.95) brightness(1.03);
}

/* ===== File Repository (Resources page) ===== */
.afs-repo {
  max-width: 48rem;
  margin: 0 auto;
}
.afs-repo__toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.afs-repo__search-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid #d9dcd0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  color: #140d08;
  background: #fff;
}
.afs-repo__search-input:focus {
  outline: none;
  border-color: #7792A6;
  box-shadow: 0 0 0 1px #7792A6;
}
.afs-repo__search-btn {
  padding: 0.65rem 1.25rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #4b5563;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.afs-repo__search-btn:hover {
  background: #7792A6;
  border-color: #7792A6;
  color: #ffffff;
}
.afs-repo__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.afs-repo__cat-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid #d9dcd0;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #140d08;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.afs-repo__cat-pill:hover {
  border-color: #7792A6;
  color: #7792A6;
}
.afs-repo__cat-pill.is-active {
  background: #7792A6;
  border-color: #7792A6;
  color: #ffffff;
}
.afs-repo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.afs-repo__file {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e4e7dd;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}
.afs-repo__file-title {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #140d08;
  margin: 0 0 0.35rem;
}
.afs-repo__file-title a {
  color: inherit;
  text-decoration: none;
}
.afs-repo__file-title a:hover {
  color: #7792A6;
}
.afs-repo__badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7c2d12;
  background: #fef3c7;
  border-radius: 4px;
  vertical-align: middle;
}
.afs-repo__file-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 0.5rem;
}
.afs-repo__file-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.afs-repo__download {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #4b5563;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.afs-repo__download:hover {
  background: #7792A6;
  border-color: #7792A6;
  color: #ffffff;
}
.afs-repo__empty {
  text-align: center;
  color: #64748b;
  padding: 2rem 0;
}
@media (max-width: 640px) {
  .afs-repo__file {
    flex-direction: column;
    align-items: stretch;
  }
  .afs-repo__download {
    text-align: center;
  }
}
@media (max-width: 600px) {
  .afs-footer__buttons a {
    width: 100%;
    text-align: center;
  }
}

/* ===== Blog / article list ===== */
.card-title a {
  color: #000000;
  font-weight: 700;
  text-decoration: none;
}
.card-title a:hover {
  color: #7792A6;
}
.container h1 {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #000000;
}

/* Blog pages: standalone .container (Bootstrap is not loaded here). */
.container {
  width: 100%;
  max-width: 62.5rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.my-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}
.page-item {
  list-style: none;
}
.page-link {
  display: block;
  padding: 0.5rem 0.9rem;
  color: #7792A6;
  text-decoration: none;
  border: 1px solid #4b5563;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.page-link:hover {
  background: #7792A6;
  color: #ffffff;
}
.page-item.disabled .page-link {
  color: #b5b5b5;
  border-color: #d9dcd0;
  pointer-events: none;
}

/* ===== Article cards (Recent Articles) ===== */
.afs-article-card {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  margin-bottom: 1.5rem;
  height: 240px;
  overflow: hidden;
}
.afs-article-card__media {
  flex: 0 0 240px;
  height: 240px;
  background: #e9ebe4;
  display: block;
}
.afs-article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.afs-article-card__body {
  flex: 1;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.afs-article-card__title {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.afs-article-card__title a {
  color: #000000;
  text-decoration: none;
}
.afs-article-card__title a:hover {
  color: #7792A6;
}
.afs-article-card__caption {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 0.5rem;
}
.afs-article-card__date {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}
.afs-article-card__excerpt {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.afs-article-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7792A6;
  text-decoration: none;
}
.afs-article-card__link:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .afs-article-card {
    flex-direction: column;
    height: auto;
  }
  .afs-article-card__media {
    display: none;
  }
  .afs-article-card__excerpt {
    display: none;
  }
  .afs-article-card__body {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem 1rem;
  }
  .afs-article-card__title,
  .afs-article-card__caption {
    flex: 1 0 100%;
  }
  .afs-article-card__title {
    margin-bottom: 0;
  }
  .afs-article-card__caption {
    margin-bottom: 0;
  }
  .afs-article-card__date {
    margin: 0;
  }
}

/* ===== Articles heading + search ===== */
.afs-articles-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.afs-articles-heading h1 {
  margin: 0;
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) {
  .afs-articles-heading h1 {
    font-size: 3rem;
  }
}
.afs-search {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.afs-search input {
  padding: 0.55rem 0.9rem;
  font-size: 1rem;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  min-width: 220px;
}
.afs-search input:focus {
  outline: none;
  border-color: #7792A6;
}
.afs-search button {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #000000;
  background: #ffffff;
  border: 1px solid #4b5563;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.afs-search button:hover {
  background: #7792A6;
  border-color: #7792A6;
  color: #ffffff;
}
@media (max-width: 640px) {
  .afs-articles-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .afs-search {
    width: 100%;
  }
  .afs-search input {
    min-width: 0;
    flex: 1;
  }
}

/* Breathing room before the footer on content pages. */
.page-gutter {
  padding-bottom: 8rem;
}

/* ===== Article detail page ===== */
.afs-article {
  width: 100%;
}
.afs-article__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.afs-article__back {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #7792A6;
  text-decoration: none;
  margin-bottom: 1rem;
}
.afs-article__back:hover {
  text-decoration: underline;
}
.afs-article__title {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.01em;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  text-align: left;
}
@media (min-width: 768px) {
  .afs-article__title {
    font-size: 2rem;
  }
}
.afs-article__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 1.5rem;
}
.afs-article__author {
  font-weight: 600;
  color: #1e293b;
}
.afs-article__meta-dot {
  color: #94a3b8;
}
.afs-article__share {
  margin-left: auto;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  color: #000000;
  background: #ffffff;
  border: 1px solid #4b5563;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.afs-article__share:hover {
  background: #7792A6;
  border-color: #7792A6;
  color: #ffffff;
}

/* ===== IFA Review page ===== */
.ifa-page {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.ifa-title {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  color: #000000;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (min-width: 768px) {
  .ifa-title {
    font-size: 2.5rem;
  }
}
.ifa-intro {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
}
.ifa-intro p + p {
  margin-top: 1rem;
}
.ifa-section {
  margin-top: 3rem;
}
.ifa-section__title {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #140d08;
  margin: 0 0 1.25rem;
}
.ifa-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  .ifa-cards {
    grid-template-columns: 1fr;
  }
}
.ifa-card {
  background: #ffffff;
  border: 1px solid #e4e7dd;
  border-radius: 8px;
  padding: 1.5rem;
}
.ifa-card h3 {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #140d08;
  line-height: 1.3;
}
.ifa-card p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}
.ifa-cta-wrap {
  margin-top: 3rem;
  text-align: center;
}
.ifa-cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: #7792A6;
  color: #ffffff;
  border: 1px solid #7792A6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ifa-cta:hover {
  background: #647f92;
  border-color: #647f92;
  color: #ffffff;
}
.ifa-disclaimer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d9dcd0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #64748b;
  font-style: italic;
}

/* ===== Services pages ===== */
.service-page {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.service-title {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  color: #000000;
  letter-spacing: -0.01em;
  margin: 1rem 0 0;
}
@media (min-width: 768px) {
  .service-title {
    font-size: 2.5rem;
  }
}
.service-summary {
  margin-top: 1rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #475569;
}
.service-body {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #1e293b;
}
.service-body h2 {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #140d08;
  margin: 2rem 0 0.75rem;
}
.service-body h3 {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #140d08;
  margin: 1.25rem 0 0.35rem;
}
.service-body p {
  margin: 0.5rem 0;
  color: #475569;
}
.service-body a {
  color: #7792A6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.service-body ul,
.service-body ol {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  color: #475569;
}
.service-body li + li {
  margin-top: 0.25rem;
}
.service-index {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 700px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e4e7dd;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(20, 13, 8, 0.1);
}
.service-card h3 {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #140d08;
}
.service-card p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

/* Underline the service card title on hover. */
a.group:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Style the IFA "Request…" mailto link as a button. */
.service-body a[href^="mailto:"] {
  display: block;
  width: fit-content;
  margin: 3rem auto 0;
  padding: 0.85rem 1.75rem;
  background: #7792A6;
  color: #ffffff;
  border: 1px solid #7792A6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.service-body a[href^="mailto:"]:hover {
  background: #647f92;
  border-color: #647f92;
  color: #ffffff;
}

/* Disclaimer — divider above, lighter grey, italic. */
.service-body p:has(i) {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d9dcd0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #94a3b8;
  font-style: italic;
}
.afs-article__divider {
  border: 0;
  border-top: 1px solid #000000;
  margin: 1rem 0 1.5rem;
}
.afs-article__cover {
  margin-bottom: 1.25rem;
}
.afs-article__cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #140d08;
}
.afs-article__body {
  color: #1e293b;
  font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.afs-article__body p {
  margin: 0 0 1.25rem;
}
.afs-article__body h2,
.afs-article__body h3,
.afs-article__body h4 {
  font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #000000;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.afs-article__body h2 {
  font-size: 1.375rem;
}
.afs-article__body h3 {
  font-size: 1.125rem;
}
.afs-article__body h4 {
  font-size: 1rem;
}
.afs-article__body a {
  color: #7792A6;
  text-decoration: underline;
}
.afs-article__body img {
  max-width: 100%;
  height: auto;
}
.afs-article__body ul,
.afs-article__body ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}
.afs-article__body li + li {
  margin-top: 0.25rem;
}
.afs-article__body blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid #7792A6;
  color: #475569;
}
.afs-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.afs-article__body th,
.afs-article__body td {
  border: 1px solid #d9dcd0;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.afs-article__body th {
  background: #f1f3ec;
  font-weight: 700;
}
.afs-article__body hr {
  border: 0;
  border-top: 1px solid #d9dcd0;
  margin: 2rem 0;
}
.afs-article__back--bottom {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* Unify all heading colors */
.page-title,
.container h1,
.team-card__name,
.team-credential,
.card-title a,
.afs-article-card__title a,
.afs-repo__file-title,
.afs-article__title,
.afs-article__body h2,
.afs-article__body h3,
.afs-article__body h4,
.ifa-title,
.ifa-section__title,
.ifa-card h3,
.service-title,
.service-body h2,
.service-body h3,
.service-card h3,
.afs-section-title {
  color: #1c2127;
}

/* Discreet serif quote */
.afs-quote {
  max-width: 46rem;
  margin: 4rem auto 0;
  padding: 2.75rem 1.25rem 0;
  text-align: center;
  border-top: 1px solid #e4e7dd;
}
.afs-quote__text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.4;
  color: #5b6470;
  margin: 0;
}
.afs-quote__attribution {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #8a919a;
  margin-top: 0.75rem;
}
@media (max-width: 640px) {
  .afs-quote__text {
    font-size: 1.5rem;
  }
}
