/*!
 * First Compliance theme: page shell, WordPress content and Elementor integration.
 * Components (header, sections, footer) live in first-compliance.css under .fc-site.
 */

/* ============ Tokens, shared with non-widget content ============ */
:root {
  --fc-blue: #1e5bd8;
  --fc-blue-600: #1749b8;
  --fc-blue-50: #eaf1fe;
  --fc-navy: #0b2a5b;
  --fc-ink: #0e1a3a;
  --fc-muted: #56607a;
  --fc-line: #e6ebf4;
  --fc-orange: #f7801e;
  --fc-orange-600: #e86c0a;
  --fc-orange-text: #b15406;
  --fc-bg-soft: #f4f7fc;
}

/* ============ Base ============ */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--fc-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--fc-blue);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--fc-blue);
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(18, 42, 94, 0.16);
}

/* ============ Header / footer shell ============
 * The wrapper takes no box (display: contents), so the sticky header sticks to the whole page
 * rather than to its own wrapper, while still inheriting the .fc-site fonts and tokens. */
.fc-site.fc-shell {
  display: contents;
}

/* Keep the sticky header below the admin bar; below 600px the admin bar scrolls away. */
.admin-bar .fc-site {
  --fc-offset: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
  .admin-bar .fc-site {
    --fc-offset: 0px;
  }
}

/* Header and footer are set on their own; content between them is full width. */
.fc-site .header {
  font-family: var(--font-sans), system-ui, sans-serif;
}

.fc-site .footer {
  background: #fff;
}

/* ============ Elementor: full-bleed First Compliance sections ============
 * A First Compliance widget brings its own .container (max 1240px) and section spacing.
 * When it is the only thing in an Elementor container or section, that wrapper drops its
 * padding, gap and boxed width so the section background runs edge to edge. */
.e-con:has(> .fc-widget:only-child),
.e-con:has(> .e-con-inner > .fc-widget:only-child) {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --content-width: 100%;
  --width: 100%;
  --gap: 0px;
  --row-gap: 0px;
  --column-gap: 0px;
}

.e-con > .e-con-inner:has(> .fc-widget:only-child) {
  max-width: none;
  padding: 0;
}

.elementor-section:has(.fc-widget:only-child) > .elementor-container {
  max-width: none;
}

.elementor-section:has(.fc-widget:only-child) > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding: 0;
}

.elementor-widget.fc-widget {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Boxed Elementor containers holding native widgets (contact form, map…) line up with the
 * theme's .container: 1160px content, 40/24/16px side gutters. */
body .e-con.e-con-boxed.e-parent:not(:has(> .e-con-inner > .fc-widget:only-child)) {
  --content-width: 1160px;
  --padding-left: 40px;
  --padding-right: 40px;
}

@media (max-width: 960px) {
  body .e-con.e-con-boxed.e-parent:not(:has(> .e-con-inner > .fc-widget:only-child)) {
    --padding-left: 24px;
    --padding-right: 24px;
  }
}

@media (max-width: 640px) {
  body .e-con.e-con-boxed.e-parent:not(:has(> .e-con-inner > .fc-widget:only-child)) {
    --padding-left: 16px;
    --padding-right: 16px;
  }
}

/* Contact Form 7, on the contact page and in the "Schedule a Demo" popup (Popup Maker). Contact Form 7 has no
 * field-style controls of its own. The popup's form still uses the old theme's two-column classes
 * (grid2column-progression, lastcolumn-progression, clearfix-pro), so they are laid out here. */
body .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body .wpcf7-form textarea,
body .wpcf7-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid #e6ebf4;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: #0e1a3a;
}

body .wpcf7-form input::placeholder,
body .wpcf7-form textarea::placeholder {
  color: #56607a;
  opacity: 1;
}

body .wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

body .wpcf7-form p {
  margin: 0 0 16px;
}

body .wpcf7-form label {
  display: block;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #0e1a3a;
}

body .wpcf7-form label .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}

/* The old form markup has a <br> after each label text; the field wrapper already starts a new line */
body .wpcf7-form label br {
  display: none;
}

body .wpcf7-form input:focus,
body .wpcf7-form textarea:focus,
body .wpcf7-form select:focus {
  outline: 2px solid #1e5bd8;
  outline-offset: 1px;
  border-color: #1e5bd8;
}

/* Two columns from the old theme's classes */
body .wpcf7-form .grid2column-progression {
  float: left;
  width: calc(50% - 8px);
}

body .wpcf7-form .grid2column-progression.lastcolumn-progression {
  margin-left: 16px;
}

/* The empty column that only balanced the old layout */
body .wpcf7-form .grid2column-progression:not(:has(input, textarea, select)) {
  display: none;
}

body .wpcf7-form .clearfix-pro {
  clear: both;
}

body .wpcf7-form .submit-button-wrapper {
  margin-top: 8px;
}

@media (max-width: 640px) {
  body .wpcf7-form .grid2column-progression {
    float: none;
    width: auto;
  }

  body .wpcf7-form .grid2column-progression.lastcolumn-progression {
    margin-left: 0;
  }
}

/* "Schedule a Demo" popup: heading and box in the design's style */
.pum-container.popmake .pum-title {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0e1a3a;
}

.pum-container.popmake {
  border-radius: 20px;
  padding: 32px 32px 28px;
}

.pum-container.popmake .wpcf7-form textarea {
  min-height: 0;
  height: 120px;
}

.fc-contact__map .elementor-widget-google_maps {
  flex-grow: 1;
}

.fc-contact__map .elementor-widget-google_maps .elementor-widget-container,
.fc-contact__map .elementor-custom-embed {
  height: 100%;
}

.fc-contact__map .elementor-custom-embed {
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(18, 42, 94, 0.07);
}

.fc-contact__map .elementor-custom-embed iframe {
  display: block;
  height: 100%;
  min-height: 360px;
}

/* Sticky children (the platform steps) need ancestors without transforms or clipping. */
.fc-widget > .elementor-widget-container {
  overflow: visible;
  transform: none;
}

/* ============ Platform steps without pinning (setting off, or in the Elementor editor) ============ */
@media (min-width: 961px) {
  .fc-site .hstack--static .hstack__sticky {
    position: static;
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .fc-site .hstack--static .hstack__progress {
    display: none;
  }

  .fc-site .hstack--static .hstack__stage {
    max-width: 820px;
    margin: 36px auto 0;
  }

  .fc-site .hstack--static .hstack__slot {
    grid-area: auto;
    width: auto;
    transform: none !important;
    filter: none !important;
  }

  .fc-site .platform:has(.hstack--static) {
    padding: 80px 0 90px;
  }
}

/* ============ Extra components used by the widgets ============ */

/* Section heading widget */
.fc-site.fc-heading {
  background: none;
}

.fc-site .fc-heading--center {
  text-align: center;
}

.fc-site .fc-heading--center .section-label {
  justify-content: center;
}

.fc-site .fc-heading--center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.fc-site .fc-heading--light .h2 {
  color: #fff;
}

.fc-site .fc-heading--light .section-label {
  color: #fff;
}

.fc-site .fc-heading--light .muted {
  color: rgba(255, 255, 255, 0.85);
}

.fc-site h1.h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.fc-site .text-orange {
  color: var(--orange-text);
}

/* On navy, the bright orange is the accessible one (5.4:1). */
.fc-site .cta .text-orange,
.fc-site .fc-bg--navy .text-orange {
  color: var(--orange);
}

/* Checklist widget: no top margin when used on its own */
.fc-site.fc-heading > .caps {
  margin-top: 0;
}

/* Button widget */
.fc-site.fc-buttons {
  background: none;
}

.fc-site .fc-buttons--center {
  justify-content: center;
}

.fc-site .fc-buttons--right {
  justify-content: flex-end;
}

.fc-site .btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.fc-site .btn--outline:focus {
  color: var(--blue);
}

.fc-site .btn--outline:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(30, 91, 216, 0.3);
}

/* Contact Form 7 submit buttons (Contact page, Schedule A Demo popup) sit outside .fc-site: give them
   the orange button's look and hover. Navy text keeps AA in every state. */
body .wpcf7 input.wpcf7-submit {
  padding: 14px 30px;
  border: 0;
  border-radius: 10px;
  background-color: var(--fc-orange, #f7801e);
  background-image: linear-gradient(180deg, #ffb067 0%, #ff8f2e 50%, #e86c0a 100%);
  background-size: 100% 200%;
  background-position: 0 100%;
  box-shadow: 0 8px 20px rgba(247, 128, 30, 0.35);
  color: #071d42;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-position 0.35s ease;
}

body .wpcf7 input.wpcf7-submit:hover,
body .wpcf7 input.wpcf7-submit:focus {
  background-color: var(--fc-orange, #f7801e);
  background-position: 0 0;
  box-shadow: 0 14px 30px rgba(247, 128, 30, 0.5);
  color: #071d42;
  transform: translateY(-2px);
}

body .wpcf7 input.wpcf7-submit:active {
  transform: translateY(0) scale(0.98);
}

body .wpcf7 input.wpcf7-submit:focus-visible {
  outline: 3px solid #1e5bd8;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body .wpcf7 input.wpcf7-submit:hover,
  body .wpcf7 input.wpcf7-submit:active {
    transform: none;
  }
}

/* Section backgrounds selectable on every section widget */
.fc-site .fc-bg--soft {
  background: var(--bg-soft);
}

.fc-site .fc-bg--white {
  background: #fff;
}

.fc-site .fc-bg--navy {
  background: var(--navy);
  color: #fff;
}

.fc-site .fc-bg--navy .h2,
.fc-site .fc-bg--navy h3 {
  color: #fff;
}

.fc-site .fc-bg--navy .section-label {
  color: #fff;
}

.fc-site .fc-bg--navy .muted,
.fc-site .fc-bg--navy .cert p {
  color: rgba(255, 255, 255, 0.8);
}

.fc-site .fc-bg--navy .cert__icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Phone numbers and e-mails in credential items (fc_text_linked) */
.fc-site .cert p a {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.fc-site .cert p a[href^="tel:"] {
  white-space: nowrap;
}

.fc-site .cert p a:hover,
.fc-site .cert p a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

.fc-site .fc-bg--navy .cert p a {
  color: #fff;
}

/* Heading highlights go orange on navy, as in the CTA banner (blue is 2.4:1 there). */
.fc-site .fc-bg--navy .h2 .text-blue {
  color: var(--orange);
}

/* White cards keep their dark titles on a navy section. */
.fc-site .fc-bg--navy .card h3 {
  color: var(--ink);
}

.fc-site .fc-bg--transparent {
  background: none;
}

.fc-site .fc-pad--none {
  padding-top: 0;
  padding-bottom: 0;
}

.fc-site .fc-pad--top-none {
  padding-top: 0;
}

.fc-site .fc-pad--bottom-none {
  padding-bottom: 0;
}

/* Feature cards: optional links and icon tone */
.fc-site a.why__card {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-site a.why__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Feature cards with a photo (Industries We Serve): photo on top, icon badge over its corner */
.fc-site .why__card.why__card--photo {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fc-site .why__card.why__card--photo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #c9d8f6;
}

.fc-site .why__photo {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-soft);
}

.fc-site .why__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fc-site .why__card--photo:hover .why__photo img {
  transform: scale(1.05);
}

/* Navy fade at the bottom of the photo, so the white badge stands out on light images */
.fc-site .why__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 42, 91, 0) 55%, rgba(11, 42, 91, 0.35) 100%);
  pointer-events: none;
}

/* Overlaps the bottom of the photo */
.fc-site .why__badge {
  position: relative;
  z-index: 1;
  margin: -24px 0 0 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 27, 61, 0.14);
}

.fc-site .why__card--photo h3 {
  margin: 0;
  padding: 14px 20px 22px;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.fc-site .why__card--photo p {
  margin-top: -12px;
  padding: 0 20px 22px;
}

.fc-site a.why__card--photo:hover h3 {
  color: var(--blue);
}

@media (max-width: 640px) {
  .fc-site .why__badge {
    margin: -20px 0 0 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .fc-site .why__card--photo h3 {
    padding: 10px 14px 16px;
    font-size: 14px;
  }
}

/* Photo cards stay two to a row on small phones (plain cards go to one), so 17 industries don't make a very long page */
@media (max-width: 420px) {
  .fc-site .why__cards:has(.why__card--photo) {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .fc-site .why__card--photo h3 {
    padding: 8px 12px 14px;
    font-size: 13px;
  }

  .fc-site .why__badge {
    margin-left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
}

/* Feature cards, showcase style (360-degree page): tall tinted cards with an illustration and an arrow */
.fc-site .why__card.why__card--showcase {
  --tone: var(--blue);
  --tone-soft: #e6eefc;
  --tone-wash: #edf2fd;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 385px;
  padding: 24px 24px 160px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 30%, var(--tone-wash) 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fc-site .why__card.why__card--showcase.why__card--orange {
  --tone: #e2701b;
  --tone-soft: #fde9d9;
  --tone-wash: #fff2e8;
}

.fc-site .why__card.why__card--showcase.why__card--green {
  --tone: #1d8a57;
  --tone-soft: #dbf2e6;
  --tone-wash: #e7f6ee;
}

.fc-site a.why__card--showcase:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fc-site .why__tile {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--tone-soft);
  color: var(--tone);
}

.fc-site .why__card--showcase h3 {
  margin: 30px 0 12px;
  font-size: 17px;
  line-height: 1.35;
}

.fc-site .why__card--showcase p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.6;
}

.fc-site .why__go {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--tone);
  box-shadow: 0 6px 16px rgba(15, 27, 61, 0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fc-site a.why__card--showcase:hover .why__go {
  background: var(--tone);
  color: #fff;
  transform: translateX(3px);
}

/* Illustrations: decorative, drawn with CSS and the theme's icons */
.fc-site .why-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  pointer-events: none;
}

.fc-site .why-art__lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-site .why-art__lines i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--tone-soft);
}

.fc-site .why-art__lines i:nth-child(1) { width: 70px; }
.fc-site .why-art__lines i:nth-child(2) { width: 58px; }
.fc-site .why-art__lines i:nth-child(3) { width: 46px; }
.fc-site .why-art__lines i:nth-child(4) { width: 62px; }

.fc-site .why-art__avatar {
  display: grid;
  place-items: center;
  color: var(--tone);
}

/* Compact showcase card: title only, with the card's icon drawn large and faint in the corner */
.fc-site .why__card.why__card--showcase.why__card--short {
  min-height: 200px;
  padding-bottom: 24px;
}

.fc-site .why__card--short h3 {
  max-width: 78%;
  margin-top: 22px;
}

.fc-site .why-art--icon {
  left: auto;
  right: -18px;
  bottom: -22px;
  width: 140px;
  height: 140px;
  color: var(--tone);
  opacity: 0.12;
  transform: rotate(-12deg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fc-site .why__card--showcase:hover .why-art--icon {
  opacity: 0.2;
  transform: rotate(-4deg) scale(1.05);
}

/* Linked compact cards keep the arrow clear of the corner icon */
.fc-site .why__card--short .why__go {
  z-index: 2;
}

/* ID card */
.fc-site .why-art__card {
  position: absolute;
  left: 18px;
  bottom: -8px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 152px;
  height: 104px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 27, 61, 0.12);
  transform: rotate(-7deg);
}

.fc-site .why-art__card--back {
  left: 10px;
  bottom: -16px;
  background: var(--tone-soft);
  box-shadow: none;
  transform: rotate(-2deg);
}

.fc-site .why-art--id-card .why-art__avatar {
  width: 34px;
  height: 46px;
  border-radius: 6px;
  background: var(--tone-soft);
}

.fc-site .why-art--id-card .why-art__lines i {
  background: #c9d8f6;
}

/* Photo, fading in from the card's tint */
.fc-site .why-art--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
}

/* Document with a shield seal */
.fc-site .why-art__doc {
  position: absolute;
  left: 20px;
  bottom: -10px;
  width: 122px;
  height: 112px;
  padding: 20px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: -8px 6px 0 var(--tone-soft), 0 10px 26px rgba(15, 27, 61, 0.1);
  transform: rotate(-5deg);
}

.fc-site .why-art--document .why-art__lines i {
  background: #cfe9dc;
}

.fc-site .why-art__seal {
  position: absolute;
  left: 106px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #15803d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.3);
}

/* Phone */
.fc-site .why-art__phone {
  position: absolute;
  left: 40px;
  bottom: -46px;
  width: 98px;
  height: 160px;
  border: 4px solid var(--tone);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(30, 91, 216, 0.18);
}

.fc-site .why-art__phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 30px;
  height: 5px;
  border-radius: 3px;
  background: var(--tone);
  transform: translateX(-50%);
}

.fc-site .why-art--phone .why-art__avatar {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tone-soft);
  box-shadow: 0 0 0 6px rgba(30, 91, 216, 0.06);
  transform: translateX(-50%);
}

@media (max-width: 1100px) {
  .fc-site .why__cards.why__cards--showcase {
    grid-template-columns: repeat(min(var(--fc-cols, 4), 2), 1fr);
  }
}

@media (max-width: 560px) {
  .fc-site .why__cards.why__cards--showcase {
    grid-template-columns: 1fr;
  }

  .fc-site .why__card.why__card--showcase {
    min-height: 340px;
  }

  /* Compact cards (title only) stay two to a row */
  .fc-site .why__cards.why__cards--showcase:has(.why__card--short) {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .fc-site .why__card.why__card--showcase.why__card--short {
    min-height: 170px;
    padding: 16px 14px;
  }

  .fc-site .why__card--short h3 {
    max-width: none;
    margin-top: 16px;
    font-size: 14px;
  }

  .fc-site .why__card--short .why__tile {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .fc-site .why-art--icon {
    width: 96px;
    height: 96px;
    right: -14px;
    bottom: -16px;
  }

  .fc-site .why-art--icon svg {
    width: 96px;
    height: 96px;
  }
}

/* ---- Feature cards: tile, list, chips and highlighted layouts ---- */
/* Colour per card (rotates blue, orange, green); the tile and accents read it. */
.fc-site .why__cards .why__card--blue {
  --tone: var(--blue);
  --tone-soft: #e6eefc;
}

.fc-site .why__cards .why__card--orange {
  --tone: #e2701b;
  --tone-soft: #fde9d9;
}

.fc-site .why__cards .why__card--green {
  --tone: #1d8a57;
  --tone-soft: #dbf2e6;
}

/* Tile: tinted icon tile, faint number, accent bar on hover */
.fc-site .why__card.why__card--tile {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fc-site .why__card--tile::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--tone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.fc-site .why__card--tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.fc-site .why__card--tile:hover::before {
  transform: scaleX(1);
}

.fc-site .why__num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #b4bfd4;
}

.fc-site .why__card--tile h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  line-height: 1.35;
}

.fc-site .why__card--tile p {
  font-size: 13.5px;
  line-height: 1.6;
}

/* Highlighted: the first card is navy */
.fc-site .why__card.why__card--featured {
  border-color: transparent;
  background: linear-gradient(150deg, #123a7a 0%, var(--navy, #0b2a5b) 70%);
  box-shadow: 0 18px 40px rgba(11, 42, 91, 0.22);
}

.fc-site .why__card--featured h3 {
  color: #fff;
}

.fc-site .why__card--featured p {
  color: rgba(255, 255, 255, 0.82);
}

.fc-site .why__card--featured .why__tile {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.fc-site .why__card--featured .why__num {
  color: rgba(255, 255, 255, 0.45);
}

.fc-site .why__card--featured::before {
  background: var(--orange);
}

/* Feature list: two columns of rows, no boxes */
.fc-site .why__cards.why__cards--list {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 0;
}

.fc-site .why__row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.fc-site .why__row h3 {
  margin: 4px 0 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}

.fc-site .why__row p {
  font-size: 14px;
  line-height: 1.65;
}

.fc-site a.why__row:hover h3 {
  color: var(--blue);
}

/* Compact chips: icon and title side by side */
.fc-site .why__cards.why__cards--chips {
  gap: 14px;
}

.fc-site .why__chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fc-site .why__chip:hover {
  border-color: var(--tone);
  transform: translateY(-2px);
}

.fc-site .why__chip .why__tile {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.fc-site .why__chip h3 {
  margin: 0;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
}

.fc-site .why__chip p {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .fc-site .why__cards.why__cards--chips {
    grid-template-columns: repeat(min(var(--fc-cols, 4), 2), 1fr);
  }
}

@media (max-width: 768px) {
  .fc-site .why__cards.why__cards--list {
    grid-template-columns: 1fr;
  }

  .fc-site .why__cards.why__cards--trio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .fc-site .why__cards.why__cards--chips {
    grid-template-columns: 1fr;
  }

  .fc-site .why__row {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 20px 0;
  }
}

.fc-site .why__card .text-orange {
  color: var(--orange);
}

.fc-site .why__card .text-green {
  color: var(--green);
}

.fc-site .why--plain .why__panel {
  padding: 0;
  background: none;
}

.fc-site .why--plain .why__panel::before {
  display: none;
}

/* Hero with an image instead of the animation */
.fc-site .hero__image {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin-left: auto;
}

/* Customer proof: logos and testimonials */
.fc-site .proof__logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

.fc-site .proof__logo {
  display: grid;
  place-items: center;
  height: 88px;
  padding: 16px 20px;
}

.fc-site .proof__logo img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.fc-site .proof__logo:hover img {
  filter: none;
  opacity: 1;
}

.fc-site .proof__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* "Figures per row" set in the widget; Automatic keeps the auto-fit grid above. */
.fc-site .proof__stats--cols {
  grid-template-columns: repeat(var(--fc-cols, 3), minmax(0, 1fr));
}

@media (max-width: 960px) {
  .fc-site .proof__stats--cols {
    grid-template-columns: repeat(min(2, var(--fc-cols, 3)), minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fc-site .proof__stats--cols {
    grid-template-columns: 1fr;
  }
}

.fc-site .proof__stat {
  padding: 24px;
}

.fc-site .proof__stat strong {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.fc-site .proof__stat span {
  font-size: 14px;
  color: var(--muted);
}

/* Testimonials: horizontal carousel (scroll-snap track; arrows wired in JS) */
.fc-site .proof__carousel {
  margin-top: 40px;
}

.fc-site .proof__quotes {
  display: flex;
  gap: 24px;
  /* Room for the card shadows inside the scrolling track. */
  margin: -16px -16px 0;
  padding: 16px 16px 32px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.fc-site .proof__quotes::-webkit-scrollbar {
  display: none;
}

.fc-site .proof__quotes:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.fc-site .proof__quote {
  display: flex;
  flex: 0 0 calc((100% - 24px) / 2);
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(18, 42, 94, 0.06);
  scroll-snap-align: start;
}

.fc-site .proof__quote blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}

.fc-site .proof__quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-size: 13.5px;
  color: var(--muted);
}

.fc-site .proof__quote figcaption img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.fc-site .proof__quote figcaption b {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
}

.fc-site .proof__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
}

.fc-site .proof__controls[hidden] {
  display: none;
}

/* "body … button" outranks the theme's guard that resets buttons inside .fc-site. */
body .fc-site .proof__controls button.proof__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}

body .fc-site .proof__controls button.proof__arrow:hover:not(:disabled) {
  color: var(--blue);
  border-color: var(--blue);
}

body .fc-site .proof__controls button.proof__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 960px) {
  .fc-site .proof__quote {
    flex-basis: 85%;
  }

  /* Centred, clear of the floating contact buttons on the right. */
  .fc-site .proof__controls {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-site .proof__quotes {
    scroll-behavior: auto;
  }
}

.fc-site .proof__empty {
  margin-top: 32px;
  padding: 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
}

/* Page header widget */
.fc-site .fc-page-hero--widget {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.fc-site .fc-page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  z-index: -1;
  background: var(--fc-bg-image) right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  /* Faint enough that the title, label and breadcrumb keep AA contrast where they overlap it. */
  opacity: 0.18;
}

@media (max-width: 767px) {
  /* On phones the text spans the full width, so the photo would sit behind all of it. */
  .fc-site .fc-page-hero--photo::before {
    display: none;
  }
}

.fc-site .fc-page-hero .section-intro {
  margin-top: 4px;
}

.fc-site .fc-page-hero__actions {
  margin-top: 26px;
}

.fc-site .fc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

.fc-site .fc-breadcrumb a {
  color: var(--blue);
}

.fc-site .fc-breadcrumb a:hover {
  text-decoration: underline;
}

/* Rich text inside widgets */
.fc-site .fc-richtext {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.fc-site .fc-richtext > * + * {
  margin-top: 14px;
}

.fc-site .fc-richtext h3,
.fc-site .fc-richtext h4 {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

/* Long-form text in a widget (e.g. a case study) can carry its own section headings. */
.fc-site .fc-richtext h2 {
  margin-top: 36px;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.fc-site .fc-richtext > h2:first-child {
  margin-top: 0;
}

.fc-site .fc-richtext strong {
  color: var(--ink);
}

.fc-site .fc-richtext a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-site .fc-richtext ul,
.fc-site .fc-richtext ol {
  padding-left: 1.3em;
  list-style: revert;
}

.fc-site .fc-richtext li + li {
  margin-top: 6px;
}

.fc-site .fc-ticks {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.fc-site .fc-ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.fc-site .fc-ticks li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(30, 91, 216, 0.12);
  color: var(--blue);
}

/* Media & text widget */
.fc-site .fc-mt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.fc-site .fc-mt--image-left .fc-mt__media {
  order: -1;
}

/* Grid columns may shrink below their content (long button labels), so nothing is clipped. */
.fc-site .fc-mt > * {
  min-width: 0;
}

@media (max-width: 640px) {
  /* Long button labels ("Get Started with First Compliance Solution Today") wrap on phones. */
  .fc-site .fc-mt .btn {
    white-space: normal;
    text-align: center;
  }
}

.fc-site .fc-mt--text {
  display: block;
}

/* Text-only: the copy spans the full container, like every other section. */
.fc-site .fc-mt--text > * {
  max-width: none;
}

.fc-site .fc-mt .h2 {
  margin-bottom: 18px;
}

.fc-site .fc-mt__actions {
  margin-top: 28px;
}

.fc-site .fc-mt__media {
  margin: 0;
}

.fc-site .fc-mt__media img {
  width: 100%;
  height: auto;
}

.fc-site .fc-mt__media--card img {
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

/* FAQ widget */
.fc-site .fc-faq__list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.fc-site .fc-faq .caps {
  margin-top: 0;
}

.fc-site .fc-faq .caps__toggle {
  font-size: 16px;
}

.fc-site .fc-faq .caps__body {
  padding-top: 18px;
}

@media (max-width: 960px) {
  .fc-site .fc-mt {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fc-site .fc-mt--image-left .fc-mt__media {
    order: 0;
  }
}

/* ============ Floating contact buttons (theme setting) ============ */
.fc-site.fc-float-wrap {
  display: contents;
}

/* ============ WordPress content: pages, posts, archives ============ */
.fc-page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 60% 80% at 10% 0%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(160deg, #eef4fd 0%, #dbe8fb 100%);
  border-bottom: 1px solid var(--fc-line);
}

.fc-page-hero .h2 {
  margin-bottom: 10px;
}

.fc-page-hero .fc-meta {
  font-size: 14px;
  color: var(--fc-muted);
}

.fc-site .fc-page-hero--article .fc-meta {
  margin-top: 14px;
}

.fc-content {
  padding: 64px 0 90px;
}

/* Article and page text use the full boxed container, like every other section. */
.fc-site .fc-prose {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--fc-ink);
}

.fc-site .fc-prose > * + * {
  margin-top: 1.1em;
}

.fc-site .fc-prose h2,
.fc-site .fc-prose h3,
.fc-site .fc-prose h4 {
  margin-top: 1.8em;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fc-navy);
}

.fc-site .fc-prose h2 {
  font-size: 28px;
}

.fc-site .fc-prose h3 {
  font-size: 22px;
}

.fc-site .fc-prose a {
  color: var(--fc-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-site .fc-prose ul,
.fc-site .fc-prose ol {
  padding-left: 1.4em;
  list-style: revert;
}

.fc-site .fc-prose p,
.fc-site .fc-prose li {
  line-height: 1.75;
}

.fc-site .fc-prose li + li {
  margin-top: 0.4em;
}

.fc-site .fc-prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--fc-orange);
  color: var(--fc-muted);
}

.fc-site .fc-prose img {
  border-radius: 14px;
}

.fc-site .fc-prose .wp-block-image figcaption,
.fc-site .fc-prose figcaption {
  font-size: 13px;
  color: var(--fc-muted);
  text-align: center;
}

.fc-site .fc-prose table,
.fc-site .fc-richtext table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.fc-site .fc-prose th,
.fc-site .fc-prose td,
.fc-site .fc-richtext th,
.fc-site .fc-richtext td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fc-line);
  text-align: left;
}

/* Small screens: a table wider than the column scrolls sideways in its own box instead of being cut off. */
@media (max-width: 760px) {
  .fc-site .fc-prose table,
  .fc-site .fc-richtext table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Text columns keep a readable width and the table scrolls, instead of squeezing to a word per line. */
  .fc-site .fc-richtext th,
  .fc-site .fc-richtext td {
    min-width: 150px;
    vertical-align: top;
  }
}

.fc-site .fc-prose .fc-featured {
  margin-bottom: 36px;
  overflow: hidden;
  border-radius: var(--radius);
}

/* Full-width banner: 16:7 cropped from the centre, so a 3:2 photo doesn't push the text off screen. */
.fc-site .fc-prose .fc-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

@media (max-width: 640px) {
  .fc-site .fc-prose .fc-featured img {
    aspect-ratio: 16 / 10;
  }
}

/* Post cards: blog (FC Posts widget), archives and search */
.fc-site .fc-posts {
  display: grid;
  grid-template-columns: repeat(var(--fc-cols, 3), minmax(0, 1fr));
  gap: 28px;
}

.fc-site .fc-post {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fc-site .fc-post:hover,
.fc-site .fc-post:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d5e0f5;
}

.fc-site .fc-post__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue);
}

.fc-site .fc-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fc-site .fc-post:hover .fc-post__thumb img {
  transform: scale(1.04);
}

.fc-site .fc-post__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px 12px;
}

.fc-site .fc-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-site .fc-post__tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.fc-site a.fc-post__tag:hover {
  background: var(--blue);
  color: #fff;
}

.fc-site .fc-post__tag--latest {
  background: #fff1e6;
  color: var(--orange-text);
}

.fc-site .fc-post__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.fc-site .fc-post__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fc-site .fc-post__title a:hover,
.fc-site .fc-post:hover .fc-post__title a {
  color: var(--blue);
}

.fc-site .fc-post__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.fc-site .fc-post__footer {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.fc-site .fc-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.fc-site .fc-post__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fc-site .fc-post__meta svg {
  color: var(--blue);
}

.fc-site .fc-post .link-arrow {
  padding-bottom: 0;
}

/* The site-wide link hover widens the gap before the arrow, which can push the link onto a second
   line in a card footer. Here the arrow slides with a transform instead, which never changes layout,
   and it moves when anywhere on the card is hovered. */
.fc-site .fc-post .link-arrow,
.fc-site .fc-post .link-arrow:hover {
  gap: 8px;
}

.fc-site .fc-post .link-arrow svg {
  transition: transform 0.25s ease;
}

.fc-site .fc-post:hover .link-arrow svg,
.fc-site .fc-post .link-arrow:focus-visible svg {
  transform: translateX(4px);
}

/* Featured: the newest post, large and horizontal, above the grid */
.fc-site .fc-post--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 36px;
  padding: 12px;
}

.fc-site .fc-post--featured .fc-post__thumb {
  aspect-ratio: auto;
  min-height: 360px;
  height: 100%;
}

.fc-site .fc-post--featured .fc-post__body {
  gap: 16px;
  padding: 28px 28px 18px;
}

.fc-site .fc-post--featured .fc-post__title {
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.22;
}

.fc-site .fc-post--featured .fc-post__excerpt {
  -webkit-line-clamp: 5;
  font-size: 16px;
}

.fc-site .fc-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.fc-site .fc-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.fc-site .fc-pagination .page-numbers.current,
.fc-site .fc-pagination a.page-numbers:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.fc-site .fc-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.fc-site .fc-empty .btn-row {
  justify-content: center;
  margin-top: 28px;
}

.fc-search {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 24px auto 0;
}

.fc-search input[type="search"] {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
}

.fc-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--fc-line);
  font-size: 14px;
  font-weight: 600;
}

.fc-post-nav a {
  color: var(--fc-blue);
  text-decoration: none;
}

@media (max-width: 960px) {
  .fc-site .fc-posts {
    grid-template-columns: repeat(min(2, var(--fc-cols, 3)), minmax(0, 1fr));
  }

  .fc-site .fc-post--featured {
    grid-template-columns: 1fr;
  }

  .fc-site .fc-post--featured .fc-post__thumb {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .fc-site .fc-post--featured .fc-post__body {
    padding: 20px 14px 12px;
  }
}

@media (max-width: 640px) {
  .fc-site .fc-posts {
    grid-template-columns: 1fr;
  }

  .fc-page-hero {
    padding: 48px 0 40px;
  }

  .fc-content {
    padding: 44px 0 64px;
  }
}

/* ============ Team (FC Team widget) ============ */
.fc-site .fc-team__group + .fc-team__group {
  margin-top: 48px;
}

.fc-site .fc-team__group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.fc-site .fc-team__count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 12.5px;
  font-weight: 700;
}

.fc-site .fc-team__grid {
  display: grid;
  grid-template-columns: repeat(var(--fc-cols, 3), minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc-site .fc-team__card {
  display: flex;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fc-site .fc-team__card:hover,
.fc-site .fc-team__card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #d5e0f5;
}

/* Photos are 200 x 240; shown at or below that size so they stay sharp. */
.fc-site .fc-team__photo {
  flex: none;
  width: 124px;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
}

.fc-site .fc-team__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.fc-site .fc-team__photo--lg {
  width: 132px;
}

.fc-site .fc-team__initials {
  display: grid;
  place-items: center;
  height: 100%;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
}

.fc-site .fc-team__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fc-site .fc-team__name {
  margin: 2px 0 2px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.fc-site .fc-team__role {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue-600);
}

.fc-site .fc-team__creds {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.fc-site .fc-team__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 10px 0 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.fc-site .fc-team__more svg {
  transition: transform 0.25s ease;
}

.fc-site .fc-team__card:hover .fc-team__more svg,
.fc-site .fc-team__more:focus-visible svg {
  transform: translateX(4px);
}

.fc-site .fc-team__more:focus-visible,
.fc-site .fc-dialog__close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Profile dialog */
html.fc-dialog-open {
  overflow: hidden;
}

.fc-site .fc-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.fc-site .fc-dialog::backdrop {
  background: rgba(7, 29, 66, 0.55);
  backdrop-filter: blur(2px);
}

.fc-site .fc-dialog[open] {
  animation: fc-dialog-in 0.22s ease;
}

@keyframes fc-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-site .fc-dialog[open] {
    animation: none;
  }
}

.fc-site .fc-dialog__panel {
  position: relative;
  padding: 32px;
}

.fc-site .fc-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
}

.fc-site .fc-dialog__close:hover {
  background: var(--blue-50);
  color: var(--blue);
}

.fc-site .fc-dialog__head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  padding: 0 40px 22px 0;
  border-bottom: 1px solid var(--line);
}

.fc-site .fc-dialog__head > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-site .fc-dialog__name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.fc-site .fc-dialog__body {
  max-width: none;
  font-size: 15.5px;
}

@media (max-width: 960px) {
  .fc-site .fc-team__grid {
    grid-template-columns: repeat(min(2, var(--fc-cols, 3)), minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fc-site .fc-team__grid {
    grid-template-columns: 1fr;
  }

  .fc-site .fc-team__photo {
    width: 92px;
  }

  .fc-site .fc-dialog__panel {
    padding: 24px 20px;
  }

  .fc-site .fc-dialog__head {
    align-items: flex-start;
    gap: 16px;
  }

  .fc-site .fc-team__photo--lg {
    width: 96px;
  }

  .fc-site .fc-dialog__name {
    font-size: 20px;
  }
}
