/* APIGRAF 2026 editorial layer
   Keeps the current PHP + JSON structure, but strengthens hierarchy and responsiveness. */

:root {
  --apigraf-blue: #203c8c;
  --apigraf-blue-dark: #10255a;
  --apigraf-orange: #ea7a19;
  --apigraf-ink: #172236;
  --apigraf-soft: #f3f6fb;
  --apigraf-line: rgba(20, 42, 104, 0.14);
}

body.apigraf-home {
  background:
    linear-gradient(180deg, #fbfcff 0%, #eef3f8 46%, #ffffff 100%),
    repeating-linear-gradient(90deg, rgba(20, 42, 104, 0.035) 0 1px, transparent 1px 56px);
}

body.apigraf-home .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(20, 42, 104, 0.12);
  box-shadow: 0 12px 34px rgba(15, 28, 51, 0.08);
}

body.apigraf-home .header-inner {
  min-height: 78px;
  grid-template-columns: minmax(240px, 360px) 1fr auto;
}

body.apigraf-home .brand img {
  width: clamp(220px, 20vw, 350px);
}

body.apigraf-home .nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

body.apigraf-home .social {
  border-radius: 8px;
}

body.apigraf-home .hero {
  padding-top: clamp(18px, 2vw, 26px);
}

body.apigraf-home .hero-shell-lower {
  min-height: clamp(560px, 43vw, 680px) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(16, 37, 90, 0.2);
  background: #0d1b3c;
  box-shadow: 0 26px 70px rgba(15, 28, 51, 0.18);
}

body.apigraf-home .hero-shell-lower .hero-content:not(.fespa-slide-content) {
  max-width: 680px;
  margin: 0 30px 32px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 22, 46, 0.78);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

body.apigraf-home .hero-shell-lower h1,
body.apigraf-home .hero-shell-lower h2 {
  font-size: clamp(2.05rem, 4vw, 3.75rem);
  letter-spacing: 0;
}

body.apigraf-home .hero-shell-lower p {
  font-size: clamp(0.98rem, 1.18vw, 1.09rem);
}

body.apigraf-home .hero-dots {
  left: 30px !important;
  bottom: 25px !important;
}

body.apigraf-home .hero-dot {
  height: 4px;
  border-radius: 999px;
}

body.apigraf-home .hero-nav {
  right: 30px !important;
  bottom: 16px !important;
}

body.apigraf-home .hero-arrow {
  border-radius: 999px;
}

body.apigraf-home .action-strip {
  align-items: stretch;
  gap: 14px;
  margin-top: 28px;
}

body.apigraf-home .action-card {
  min-height: 132px;
  border-radius: 8px;
  border-color: rgba(20, 42, 104, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98)),
    linear-gradient(90deg, rgba(32, 60, 140, 0.08), rgba(234, 122, 25, 0.08));
  box-shadow: 0 14px 32px rgba(15, 28, 51, 0.08);
}

body.apigraf-home .action-card h3 {
  letter-spacing: 0;
}

body.apigraf-home .top-video-hero-secondary {
  width: min(940px, 100%) !important;
  margin-top: 42px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(20, 42, 104, 0.16);
  background: #101827;
  box-shadow: 0 20px 44px rgba(15, 28, 51, 0.14);
}

body.apigraf-home .section {
  border-radius: 10px;
  border-color: rgba(20, 42, 104, 0.12);
  box-shadow: 0 14px 36px rgba(15, 28, 51, 0.07);
}

body.apigraf-home .institutional {
  align-items: center;
}

body.apigraf-home .institutional-media img {
  border-radius: 8px;
}

body.apigraf-home .institutional-copy {
  padding: 8px 2px;
}

body.apigraf-home .section-header h2,
body.apigraf-home .institutional-copy h3,
body.apigraf-home .highlight-body h3,
body.apigraf-home .contact-card h3,
body.apigraf-home .info-modal__body h2 {
  letter-spacing: 0;
}

body.apigraf-home .section-kicker {
  margin: 0 0 8px;
  color: var(--apigraf-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.apigraf-home .inline-link-dark {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(32, 60, 140, 0.18);
  border-radius: 8px;
  color: var(--apigraf-blue-dark);
  background: #fff;
  font-weight: 900;
}

body.apigraf-home .platform-strip {
  margin-bottom: 6px;
}

body.apigraf-home .editorial-news,
body.apigraf-home .directory-gateway,
body.apigraf-home .video-section,
body.apigraf-home .section {
  scroll-margin-top: 96px;
}

body.apigraf-home .editorial-news {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.99)),
    linear-gradient(90deg, rgba(32, 60, 140, 0.08), rgba(234, 122, 25, 0.06));
}

body.apigraf-home .news-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.apigraf-home .news-preview-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(20, 42, 104, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 28, 51, 0.06);
}

body.apigraf-home .news-preview-media {
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #eef3f8;
}

body.apigraf-home .news-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.apigraf-home .news-preview-card:first-child .news-preview-media img {
  object-fit: contain;
  background: #eef3f8;
}

body.apigraf-home .news-preview-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: clamp(18px, 2vw, 26px);
}

body.apigraf-home .news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--apigraf-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.apigraf-home .news-meta time {
  color: #657187;
  text-transform: none;
}

body.apigraf-home .news-preview-card h3 {
  margin: 0;
  color: var(--apigraf-blue-dark);
  font-size: clamp(1.18rem, 1.55vw, 1.48rem);
  line-height: 1.16;
  letter-spacing: 0;
}

body.apigraf-home .news-preview-card p {
  margin: 0;
  color: #526073;
  line-height: 1.62;
}

body.apigraf-home .directory-gateway {
  width: 100vw;
  margin: 40px 0 10px calc(50% - 50vw);
  padding: clamp(34px, 5vw, 62px) max(24px, calc((100vw - var(--content)) / 2 + 24px));
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.68fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(16, 37, 90, 0.98) 0%, rgba(32, 60, 140, 0.98) 58%, rgba(18, 28, 50, 0.98) 100%);
  box-shadow: none;
  color: #fff;
}

body.apigraf-home .directory-copy {
  max-width: 820px;
}

body.apigraf-home .directory-gateway .section-kicker {
  color: #ffb36a;
}

body.apigraf-home .directory-gateway h2 {
  margin: 0;
  max-width: 18ch;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.85rem);
  line-height: 1;
  letter-spacing: 0;
}

body.apigraf-home .directory-gateway p {
  max-width: 68ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  font-size: 1.02rem;
}

body.apigraf-home .directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

body.apigraf-home .directory-gateway .btn-light {
  border-radius: 8px;
  background: #fff;
  color: var(--apigraf-blue-dark);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

body.apigraf-home .directory-gateway .btn-outline {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.apigraf-home .directory-stats {
  display: grid;
  gap: 12px;
}

body.apigraf-home .directory-stats div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

body.apigraf-home .directory-stats strong {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
}

body.apigraf-home .directory-stats span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

body.apigraf-home .video-section {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

body.apigraf-home .video-intro h2 {
  margin: 0;
  color: var(--apigraf-blue-dark);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

body.apigraf-home .video-section .top-video-hero-secondary {
  margin: 0 !important;
}

body.apigraf-home .contacts-grid .contact-card,
body.apigraf-home .logos-grid .logo-card {
  border-radius: 8px;
}

body.associate-page .header-inner {
  grid-template-columns: minmax(220px, 320px) 1fr auto;
}

body.associate-page .brand img {
  width: clamp(210px, 18vw, 300px);
}

body.associate-page .nav-link {
  padding: 0 10px;
  font-size: 0.88rem;
}

body.associate-page main {
  padding-top: 0;
}

.associate-hero {
  padding: clamp(34px, 5vw, 68px) 0 0;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.94), rgba(238, 243, 248, 0.88)),
    repeating-linear-gradient(90deg, rgba(20, 42, 104, 0.035) 0 1px, transparent 1px 56px);
}

.associate-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: stretch;
}

.associate-hero-copy,
.associate-hero-panel {
  border: 1px solid rgba(20, 42, 104, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 28, 51, 0.07);
}

.associate-hero-copy {
  min-height: 430px;
  display: grid;
  align-content: center;
  padding: clamp(30px, 5vw, 64px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 37, 90, 0.98), rgba(32, 60, 140, 0.96) 58%, rgba(18, 28, 50, 0.98)),
    linear-gradient(90deg, rgba(234, 122, 25, 0.18), rgba(255, 255, 255, 0));
}

.associate-hero-copy .section-kicker {
  color: #ffb36a;
}

.associate-hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.associate-hero-copy p:not(.section-kicker) {
  max-width: 62ch;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.7;
}

.associate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.associate-hero-copy .btn-light {
  border-radius: 8px;
  background: #fff;
  color: var(--apigraf-blue-dark);
}

.associate-hero-copy .btn-outline {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.associate-hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.associate-hero-panel div {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 126px;
  padding: 20px;
  border: 1px solid rgba(20, 42, 104, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7faff);
}

.associate-hero-panel strong {
  color: var(--apigraf-blue-dark);
  font-size: 1.35rem;
  line-height: 1.15;
}

.associate-hero-panel span {
  color: #526073;
  line-height: 1.5;
}

.associate-content {
  padding-bottom: 26px;
}

.associate-benefits .section-header h2,
.associate-process .section-header h2,
.associate-form-intro h2,
.associate-faq .section-header h2,
.payment-details .section-header h2 {
  letter-spacing: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-grid article,
.process-grid div,
.bank-grid article {
  border: 1px solid rgba(20, 42, 104, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 28, 51, 0.04);
}

.benefit-grid article {
  padding: 22px;
}

.benefit-grid h3,
.process-grid h3,
.bank-grid h3 {
  margin: 0 0 10px;
  color: var(--apigraf-blue-dark);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.benefit-grid p,
.process-grid p,
.bank-grid p {
  margin: 0;
  color: #526073;
  line-height: 1.65;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-grid div {
  padding: 20px;
}

.process-grid span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(234, 122, 25, 0.12);
  color: var(--apigraf-orange);
  font-weight: 900;
}

.associate-form-section {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}

.associate-form-intro,
.associate-form {
  border: 1px solid rgba(20, 42, 104, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 28, 51, 0.07);
}

.associate-form-intro {
  padding: clamp(24px, 3vw, 34px);
  position: sticky;
  top: 104px;
}

.associate-form-intro h2 {
  margin: 0;
  color: var(--apigraf-blue-dark);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.associate-form-intro > p {
  color: #526073;
  line-height: 1.7;
}

.payment-note {
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(32, 60, 140, 0.06);
  border: 1px solid rgba(32, 60, 140, 0.12);
}

.payment-note h3 {
  margin: 0 0 8px;
  color: var(--apigraf-blue-dark);
  font-size: 1rem;
}

.payment-note p {
  margin: 0;
  color: #526073;
  line-height: 1.6;
}

.associate-form {
  padding: clamp(20px, 3vw, 32px);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.associate-form label {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  color: #526073;
  font-size: 0.91rem;
  font-weight: 800;
}

.associate-form input,
.associate-form textarea,
.associate-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(20, 42, 104, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #172236;
  font: inherit;
  padding: 10px 12px;
}

.associate-form textarea {
  line-height: 1.55;
  resize: vertical;
}

.associate-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #172236;
}

.associate-form .consent input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.associate-form button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-success,
.form-error {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 8px;
  font-weight: 800;
}

.form-success {
  background: rgba(32, 60, 140, 0.08);
  color: var(--apigraf-blue-dark);
  border: 1px solid rgba(32, 60, 140, 0.18);
}

.form-success span {
  font-weight: 600;
}

.form-error {
  background: rgba(164, 43, 43, 0.08);
  color: #8d2323;
  border: 1px solid rgba(164, 43, 43, 0.18);
}

.form-error ul {
  margin: 0;
  padding-left: 18px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(20, 42, 104, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 0 18px;
}

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--apigraf-blue-dark);
  font-weight: 900;
}

.faq-list p {
  margin: 0 0 18px;
  color: #526073;
  line-height: 1.7;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bank-grid article {
  padding: 22px;
}

.bank-grid strong {
  color: var(--apigraf-blue-dark);
}

@media (min-width: 901px) {
  body.apigraf-home .hero-slide-fespa {
    display: grid !important;
    grid-template-columns: minmax(0, 1.14fr) minmax(380px, 0.72fr);
    align-items: stretch !important;
    background: #10255a !important;
  }

  body.apigraf-home .hero-slide-fespa::before,
  body.apigraf-home .hero-slide-fespa::after {
    display: none !important;
  }

  body.apigraf-home .hero-slide-fespa .fespa-slide-banner {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    filter: saturate(0.96) contrast(1.02);
  }

  body.apigraf-home .hero-slide-fespa .fespa-slide-content {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: 100%;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px !important;
    padding: clamp(34px, 4vw, 58px) !important;
    border-radius: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    background:
      linear-gradient(180deg, rgba(32, 60, 140, 0.98), rgba(8, 23, 57, 0.98)),
      radial-gradient(circle at 80% 10%, rgba(234, 122, 25, 0.18), transparent 32%);
    box-shadow: none !important;
  }

  body.apigraf-home .hero-slide-fespa .fespa-slide-content::before {
    content: "Destaque APIGRAF";
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  body.apigraf-home .hero-slide-fespa .fespa-slide-content h2 {
    max-width: 10ch !important;
    font-size: clamp(2.15rem, 3.4vw, 4rem) !important;
    line-height: 0.98 !important;
  }

  body.apigraf-home .hero-slide-fespa .fespa-slide-content p {
    max-width: 34rem !important;
    font-size: 1.03rem !important;
    line-height: 1.65 !important;
  }

  body.apigraf-home .hero-slide-fespa .hero-actions {
    min-width: 0;
    margin-top: 4px;
  }

  body.apigraf-home .hero-slide-fespa .btn {
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--apigraf-blue-dark) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  }
}

@media (min-width: 841px) {
  body.apigraf-home .info-modal__dialog {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.84fr);
    width: min(1120px, calc(100% - 40px));
    max-height: calc(100vh - 48px);
  }

  body.apigraf-home .info-modal__media {
    min-height: 0;
    background: #080063;
    display: flex;
    align-items: center;
  }

  body.apigraf-home .info-modal__media img {
    height: 100%;
    max-height: calc(100vh - 48px);
    object-fit: contain;
  }

  body.apigraf-home .info-modal__body {
    overflow: auto;
    max-height: calc(100vh - 48px);
    padding: clamp(28px, 3vw, 42px);
  }
}

@media (max-width: 1280px) {
  body.apigraf-home .header-inner {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  body.apigraf-home .brand img {
    width: min(310px, 66vw);
  }
}

@media (max-width: 900px) {
  body.apigraf-home .hero-shell-lower {
    min-height: 530px !important;
  }

  body.apigraf-home .hero-slide-fespa {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #4869b0 0%, #c44984 100%) !important;
  }

  body.apigraf-home .fespa-slide-banner {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: 330px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06);
  }

  body.apigraf-home .hero-slide-fespa .fespa-slide-content {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin-top: 10px !important;
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    border-radius: 10px !important;
  }

  body.apigraf-home .hero-slide-fespa .hero-actions {
    min-width: 0;
    justify-content: flex-start !important;
  }

  body.apigraf-home .action-strip,
  body.apigraf-home .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.apigraf-home .news-preview-grid,
  body.apigraf-home .directory-gateway,
  body.apigraf-home .video-section {
    grid-template-columns: 1fr;
  }

  body.apigraf-home .news-preview-card {
    grid-template-columns: 1fr;
  }

  body.apigraf-home .news-preview-media {
    min-height: 0;
  }

  body.apigraf-home .directory-gateway {
    padding-right: max(24px, calc((100vw - var(--content)) / 2 + 24px));
    padding-left: max(24px, calc((100vw - var(--content)) / 2 + 24px));
  }

  body.apigraf-home .directory-gateway h2 {
    max-width: 18ch;
  }

  body.associate-page .header-inner {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  .associate-hero-grid,
  .associate-form-section {
    grid-template-columns: 1fr;
  }

  .associate-hero-panel,
  .benefit-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .associate-form-intro {
    position: static;
  }
}

@media (max-width: 560px) {
  body.apigraf-home .wrap {
    width: min(calc(100% - 24px), var(--content));
  }

  body.apigraf-home .header-inner {
    min-height: 72px;
  }

  body.apigraf-home .brand img {
    width: min(245px, 68vw);
  }

  body.apigraf-home .hero {
    padding-top: 12px;
  }

  body.apigraf-home .hero-shell-lower {
    min-height: 510px !important;
    border-radius: 12px !important;
  }

  body.apigraf-home .fespa-slide-banner {
    max-height: 235px !important;
  }

  body.apigraf-home .hero-slide-fespa .fespa-slide-content h2 {
    font-size: clamp(1.55rem, 7.8vw, 2rem) !important;
    line-height: 1.05 !important;
  }

  body.apigraf-home .hero-slide-fespa .fespa-slide-content p {
    display: none;
  }

  body.apigraf-home .hero-slide-fespa .hero-actions .btn {
    width: 100%;
    justify-content: center;
    border-radius: 8px !important;
  }

  body.apigraf-home .hero-shell-lower .hero-content:not(.fespa-slide-content) {
    margin: 0 12px 64px;
    padding: 18px;
  }

  body.apigraf-home .hero-dots {
    left: 20px !important;
    bottom: 22px !important;
  }

  body.apigraf-home .hero-nav {
    right: 18px !important;
    bottom: 12px !important;
  }

  body.apigraf-home .action-strip,
  body.apigraf-home .highlights-grid {
    grid-template-columns: 1fr;
  }

  body.apigraf-home .section {
    padding: 22px 18px;
  }

  body.apigraf-home .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.apigraf-home .inline-link-dark {
    width: 100%;
  }

  body.apigraf-home .news-preview-media {
    min-height: 0;
  }

  body.apigraf-home .directory-gateway {
    margin-top: 28px;
    padding-top: 32px;
    padding-bottom: 34px;
  }

  body.apigraf-home .directory-gateway h2 {
    max-width: 100%;
    font-size: clamp(1.72rem, 9vw, 2.55rem);
  }

  body.apigraf-home .directory-actions .btn-light,
  body.apigraf-home .directory-actions .btn-outline {
    width: 100%;
  }

  body.apigraf-home .video-section {
    margin-top: 26px;
  }

  body.associate-page .brand img {
    width: min(245px, 68vw);
  }

  .associate-hero {
    padding-top: 28px;
  }

  .associate-hero-copy {
    min-height: 0;
    padding: 28px 20px;
  }

  .associate-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 15vw, 3.8rem);
  }

  .associate-actions .btn-light,
  .associate-actions .btn-outline {
    width: 100%;
  }

  .associate-hero-panel,
  .benefit-grid,
  .process-grid,
  .form-grid.two,
  .bank-grid {
    grid-template-columns: 1fr;
  }

  .associate-form-section {
    margin-top: 22px;
  }

  .associate-form,
  .associate-form-intro {
    padding: 20px;
  }
}
