/* Soft fintech preview. Palette: sand #F3EDE4, ink #1B3A4B, coral #E07A5F. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@460;560;650;720&display=swap");

:root {
  --ast-global-color-0: #c4563e !important;
  --ast-global-color-1: #1b3a4b !important;
  --ast-global-color-2: #1b3a4b !important;
  --ast-global-color-3: #24343c !important;
  --ast-global-color-4: #f3ede4 !important;
  --ast-global-color-5: #fffcf8 !important;
  --ast-global-color-6: #e4d8cb !important;
  --ast-global-color-7: #1b3a4b !important;
  --ast-border-color: #e4d8cb !important;
  --ff-sand: #f3ede4;
  --ff-ink: #1b3a4b;
  --ff-coral: #e07a5f;
  --ff-coral-deep: #c4563e;
  --ff-card: #fffcf8;
  --ff-line: #e4d8cb;
  --ff-muted: #5c6b73;
}

html {
  font-size: 106% !important;
}

body,
button,
input,
select,
textarea {
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif !important;
  color: var(--ff-ink) !important;
  background: var(--ff-sand) !important;
  line-height: 1.65 !important;
}

body {
  background-color: var(--ff-sand) !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.uagb-post__title,
.uagb-post__title a {
  font-family: "Plus Jakarta Sans", "Avenir Next", sans-serif !important;
  color: var(--ff-ink) !important;
  letter-spacing: -0.03em;
  font-weight: 650 !important;
}

a,
a:visited {
  color: var(--ff-coral-deep);
}

a:hover,
a:focus {
  color: var(--ff-ink);
}

.entry-content a {
  color: var(--ff-coral-deep) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content .uagb-post__title a,
.entry-content h4.uagb-post__title a {
  color: var(--ff-ink) !important;
  text-decoration: none !important;
}

.entry-content .uagb-post__title a:hover {
  color: var(--ff-coral-deep) !important;
}

.entry-content a:hover {
  color: var(--ff-ink) !important;
}

::selection {
  background: #f0c2b4 !important;
  color: var(--ff-ink) !important;
}

.adthrive-ad,
.adthrive-footer,
.adthrive-sticky,
#adthrive-ccpa-modal {
  display: none !important;
}

/* Header */
#masthead,
.ast-primary-header-bar,
.main-header-bar,
#ast-desktop-header,
#ast-mobile-header {
  background: rgba(243, 237, 228, 0.94) !important;
  border: 0 !important;
}

#masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--ff-line) !important;
  backdrop-filter: blur(14px);
}

.ast-primary-header-bar,
.main-header-bar {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.main-header-menu > .menu-item > .menu-link,
#ast-hf-menu-1 > .menu-item > a {
  color: var(--ff-ink) !important;
  font-size: 0.92rem !important;
  font-weight: 560 !important;
  letter-spacing: -0.01em;
  border-radius: 999px;
  line-height: 1.2 !important;
  padding: 0.45em 0.85em !important;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .menu-item.current-menu-item > .menu-link,
.main-header-menu > .menu-item.current-post-ancestor > .menu-link {
  background: #e7ddd2 !important;
  color: var(--ff-ink) !important;
}

.main-header-menu .sub-menu {
  background: var(--ff-card) !important;
  border: 1px solid var(--ff-line) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  box-shadow: 0 16px 40px rgba(27, 58, 75, 0.08) !important;
}

.main-header-menu .sub-menu .menu-link {
  color: var(--ff-ink) !important;
  border-radius: 10px;
  font-size: 0.9rem !important;
}

.ast-header-search .astra-search-icon,
.ast-search-icon svg {
  color: var(--ff-ink) !important;
  fill: var(--ff-ink) !important;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
  line-height: 1.2 !important;
}

/* Geometric mark in place of the clipart logo */
.custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  min-height: 40px;
}

.custom-logo-link img {
  display: none !important;
}

.custom-logo-link::before {
  content: "";
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='18' fill='%231B3A4B'/%3E%3Cpath d='M16 48c6-16 12-22 20-18' stroke='%23F3EDE4' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='22' r='7' fill='%23E07A5F'/%3E%3Cpath d='M46 21.5h11l-4.5 3.6z' fill='%23F6E2D8'/%3E%3Cellipse cx='22' cy='46' rx='11' ry='7' fill='%23E07A5F'/%3E%3Cpath d='M20 51v7M26 51v7' stroke='%23F3EDE4' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.custom-logo-link::after {
  content: "Fiscal Flamingo";
  color: var(--ff-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 720;
  font-size: 16px;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

/* Page canvas and cards */
.ast-separate-container,
.ast-plain-container,
#page {
  background: var(--ff-sand) !important;
}

.ast-separate-container #primary {
  padding-top: 2.2rem !important;
  padding-bottom: 3rem !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comments-area,
.ast-separate-container .comment-respond,
.ast-separate-container .ast-author-meta,
.ast-separate-container #secondary .widget,
.ast-separate-container .comments-area .ast-comment-list li {
  background: var(--ff-card) !important;
  border: 1px solid var(--ff-line) !important;
  border-radius: 28px !important;
  box-shadow: 0 14px 36px rgba(27, 58, 75, 0.05) !important;
}

.ast-separate-container .ast-article-single {
  padding: 3.2rem 3.4rem !important;
}

body.home .ast-article-single:not(.uagb-post__inner-wrap),
body.home .ast-article-post:not(.uagb-post__inner-wrap),
body.home #primary article:not(.uagb-post__inner-wrap) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.uagb-post__items.is-grid,
.wp-block-uagb-post-grid.is-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
}

.uagb-post-grid.is-grid article {
  float: none !important;
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.uagb-post__inner-wrap {
  height: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border: 1px solid #e0d4c6 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px rgba(27, 58, 75, 0.05) !important;
  text-align: left !important;
  padding: 0 !important;
  min-height: 156px;
}

.uagb-post__inner-wrap .uagb-post__image,
.uagb-post__inner-wrap .uagb-post__image:first-child {
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 148px !important;
  width: 148px !important;
  height: auto !important;
}

.uagb-post__image a {
  display: block !important;
  height: 100% !important;
}

.uagb-post__image img {
  width: 148px !important;
  height: 100% !important;
  min-height: 156px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block;
}

.wp-block-image img,
.post-thumb img,
.ast-blog-featured-section img {
  border-radius: 16px !important;
}

.uagb-post__title {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  font-size: 1.02rem !important;
  line-height: 1.35 !important;
}

.entry-content {
  color: #24343c !important;
}

.entry-content p,
.entry-content li {
  color: #24343c;
}

.entry-title {
  font-size: 2.15rem !important;
  line-height: 1.2 !important;
  margin-bottom: 0.6em !important;
}

blockquote {
  border-left: 3px solid var(--ff-coral) !important;
  background: #f7f1ea !important;
  border-radius: 0 16px 16px 0;
  color: var(--ff-ink) !important;
}

/* Forms and calculators */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
input[type="url"],
select,
textarea {
  background: #fff !important;
  border: 1px solid #d9cec2 !important;
  border-radius: 14px !important;
  color: var(--ff-ink) !important;
  padding: 0.7em 0.9em !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ff-coral) !important;
  outline: 3px solid rgba(224, 122, 95, 0.25) !important;
}

button,
.ast-button,
.ast-custom-button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.menu-toggle {
  background: var(--ff-coral) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em;
  box-shadow: none !important;
}

button:hover,
.ast-button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--ff-ink) !important;
  color: #fff !important;
}

table,
.tablepress {
  border-radius: 16px;
  overflow: hidden;
}

th {
  background: #f6efe7 !important;
  color: var(--ff-ink) !important;
}

/* Footer */
.site-footer,
.site-below-footer-wrap,
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
  background: var(--ff-ink) !important;
  color: #f3ede4 !important;
  border: 0 !important;
}

.ast-footer-copyright,
.ast-footer-copyright a,
.site-footer a {
  color: #f3ede4 !important;
}

.site-footer a:hover,
.ast-footer-copyright a:hover {
  color: #f3c2b4 !important;
}

#secondary .widget-title,
.widget-title {
  color: var(--ff-ink) !important;
  font-size: 1.05rem !important;
}

@media (max-width: 1100px) {
  .uagb-post__items.is-grid,
  .wp-block-uagb-post-grid.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .uagb-post__items.is-grid,
  .wp-block-uagb-post-grid.is-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 921px) {
  .custom-logo-link::after {
    font-size: 15px;
  }

  .ast-separate-container .ast-article-single {
    padding: 1.4rem 1.15rem !important;
    border-radius: 20px !important;
  }

  .entry-title {
    font-size: 1.7rem !important;
  }
}
