/* =========================================================
   INFRANOVA — FINAL CUSTOM SITE CSS
   ========================================================= */


/* =========================================================
   DESIGN TOKENS / LAYOUT
   ========================================================= */

:root {
  --cs-entry-content-medium-width: 900px;
  --cs-entry-content-width: 1000px;
  --cs-entry-content-large-width: 1000px;
  --cs-desktop-container: 1440px;

  --iv-primary: #002060;
  --iv-primary-dark: #001747;
  --iv-accent: #573911;

  --iv-light: #e9e9e9;

  --iv-text: #2e3031;
  --iv-text-secondary: #4d5156;

  --iv-border: #d8d8d8;
  --iv-border-soft: #e4ddd4;

  --iv-surface: #ffffff;
  --iv-surface-soft: #faf7f3;
  --iv-panel: #f8f4ef;

  --iv-transition: 0.2s ease;
}


/* =========================================================
   HEADER
   ========================================================= */

.cs-header {
  position:
    fixed !important;

  top:
    0 !important;

  right:
    0 !important;

  left:
    0 !important;

  height:
    64px !important;

  margin:
    0 !important;

  background:
    var(--iv-light) !important;

  z-index:
    999;
}

.cs-header .cs-container {
  width:
    100vw !important;

  max-width:
    none !important;

  background:
    var(--iv-light);
}

.cs-header__inner {
  width:
    100% !important;

  margin:
    0 auto !important;

  padding:
    0 !important;
}

.cs-header__nav ul li a {
  color:
    var(--iv-primary) !important;

  font-size:
    16px !important;
}

.cs-header__logo img {
  width:
    auto;

  height:
    72px;
}

.cs-header__custom-button {
  padding:
    0.8rem
    1rem;

  color:
    #fff !important;

  background:
    var(--iv-primary) !important;

  border-radius:
    0 !important;

  font-size:
    16px;

  font-weight:
    700;
}

.cs-header__custom-button:hover {
  color:
    #fff !important;

  background:
    var(--iv-primary) !important;

  opacity:
    0.9;
}

.cs-header svg,
.cs-header svg path {
  color:
    var(--iv-primary);

  stroke:
    currentColor;
}


/* =========================================================
   GLOBAL
   ========================================================= */

body {
  padding-top:
    32px !important;
}

.cs-site {
  margin:
    32px
    0;
}


/* =========================================================
   SEARCH
   ========================================================= */

.cs-search__inner {
  color:
    #c9c9c9;
}

.cs-search__inner h4,
.cs-search__categories-header,
.cs-search__posts-header,
.cs-search__categories-list a {
  color:
    var(--iv-primary);
}

.cs-search__inner
.cs-posts-area__compact
.cs-entry__title a {
  color:
    var(--iv-primary) !important;
}

.cs-search__inner
.cs-posts-area__compact
.cs-entry__title a:hover {
  color:
    var(--iv-accent) !important;
}


/* =========================================================
   SUBSCRIBE
   ========================================================= */

.cs-subscribe__image {
  width:
    100% !important;

  height:
    auto !important;

  transform:
    none !important;

  filter:
    grayscale(100%);
}

.cs-subscribe__heading span {
  color:
    var(--iv-accent);
}

.cs-subscribe__heading span::after {
  background:
    none;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.cs-overlay-background::after {
  background:
    linear-gradient(
      to bottom,
      rgba(87, 57, 17, 0) 0%,
      rgba(87, 57, 17, 0.8) 100%
    ) !important;
}


/* =========================================================
   ARTICLE
   ========================================================= */

.cs-entry__metabar-reading_time {
  margin-top:
    12px !important;
}

.cs-entry__metabar-reading_time__fill {
  background-color:
    var(--iv-accent) !important;
}

.post {
  border:
    0 !important;
}


/* =========================================================
   CATEGORY TAGS
   ========================================================= */

.post .cs-meta-category li a {
  margin:
    0
    0.8rem;

  padding:
    0.25rem
    0.5rem !important;

  color:
    var(--iv-accent);

  border:
    1px solid
    var(--iv-accent) !important;

  border-radius:
    0 !important;

  font-size:
    12px !important;
}

.post .cs-meta-category li a:hover {
  color:
    #fff !important;

  background:
    var(--iv-accent) !important;
}

.cs-meta-category li a:first-child {
  margin-left:
    0;
}


/* =========================================================
   HOME
   ========================================================= */

.cs-home-about__heading span {
  color:
    var(--iv-accent);
}

.cs-home-about__heading span::after {
  background:
    none;
}


/* =========================================================
   FOOTER
   ========================================================= */

.cs-footer__logo img {
  width:
    auto;

  height:
    84px;
}

.cs-footer-columns__nav li a {
  color:
    var(--iv-accent);

  font-size:
    10px !important;
}

.cs-footer-columns__nav li a:hover {
  color:
    var(--iv-primary);
}

.sub-menu li a {
  font-size:
    12px !important;
}

.cs-col-center {
  width:
    700px;
}

.cs-col-right {
  width:
    100px;

  max-width:
    100px;
}


/* =========================================================
   SHARP UI
   ========================================================= */

.cs-widget-promo__top button,
.cs-scroll-top {
  border-radius:
    0 !important;
}


/* =========================================================
   RIGHT SIDEBAR PANEL
   ========================================================= */

body.single-post
.cs-sidebar__inner {
  padding:
    16px;

  background:
    var(--iv-panel);

  border:
    1px solid
    rgba(87, 57, 17, 0.10);

  border-radius:
    0 !important;

  box-sizing:
    border-box;
}

body.single-post
.cs-sidebar__inner
.widget:first-child {
  margin-top:
    0;
}

body.single-post
.cs-sidebar__inner
.widget:last-child {
  margin-bottom:
    0;
}

/* =========================================================
   INFRANOVA — ARTICLE TABLES
   FINAL / RESPONSIVE / BALANCED
   ========================================================= */

.article-table-scroll {
  position: relative;

  width: 100%;
  max-width: 100%;

  margin: 30px 0;

  overflow-x: auto;
  overflow-y: hidden;

  background:
    var(--iv-surface, #ffffff);

  border:
    1px solid
    var(--iv-border, #d8d8d8);

  border-radius:
    0 !important;

  box-shadow:
    0 4px 16px
    rgba(0, 32, 96, 0.045);

  overscroll-behavior-x:
    contain;

  -webkit-overflow-scrolling:
    touch;

  scrollbar-width:
    thin;

  scrollbar-color:
    var(--iv-accent, #573911)
    rgba(87, 57, 17, 0.08);
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.article-table-scroll::-webkit-scrollbar {
  height:
    8px;
}

.article-table-scroll::-webkit-scrollbar-track {
  background:
    rgba(87, 57, 17, 0.05);
}

.article-table-scroll::-webkit-scrollbar-thumb {
  background:
    var(--iv-accent, #573911);

  border-radius:
    0 !important;
}


/* =========================================================
   TABLE BASE
   ========================================================= */

.article-table-scroll > table {
  width:
    max-content !important;

  min-width:
    100% !important;

  margin:
    0 !important;

  table-layout:
    auto !important;

  border:
    0 !important;

  border-collapse:
    separate !important;

  border-spacing:
    0 !important;

  background:
    var(--iv-surface, #ffffff) !important;

  color:
    var(--iv-text, #2e3031) !important;

  font-family:
    var(
      --cs-font-post-content-family,
      inherit
    ) !important;

  font-size:
    15px !important;

  line-height:
    1.5 !important;

  text-align:
    left !important;
}


/* =========================================================
   ALL CELLS
   ========================================================= */

.article-table-scroll > table th,
.article-table-scroll > table td {
  min-width:
    150px;

  max-width:
    280px;

  padding:
    14px
    18px !important;

  vertical-align:
    top !important;

  text-align:
    left !important;

  white-space:
    normal !important;

  word-break:
    normal !important;

  overflow-wrap:
    break-word !important;

  hyphens:
    none !important;

  line-height:
    1.5 !important;

  color:
    var(--iv-text-secondary, #4d5156) !important;

  background:
    transparent !important;

  border-top:
    0 !important;

  border-left:
    0 !important;

  border-right:
    1px solid
    var(--iv-border-soft, #e4ddd4) !important;

  border-bottom:
    1px solid
    var(--iv-border-soft, #e4ddd4) !important;
}


/* =========================================================
   COLUMN WIDTH LOGIC
   ========================================================= */

/* First column:
   usually Stage / Category / Label */

.article-table-scroll > table th:first-child,
.article-table-scroll > table td:first-child {
  min-width:
    150px;

  max-width:
    190px;
}


/* General descriptive columns */

.article-table-scroll > table th:nth-child(n + 2),
.article-table-scroll > table td:nth-child(n + 2) {
  min-width:
    185px;

  max-width:
    260px;
}


/* Tables with exactly 2 columns */

.article-table-scroll
> table:has(tr > :nth-child(2):last-child)
th,

.article-table-scroll
> table:has(tr > :nth-child(2):last-child)
td {
  min-width:
    240px;

  max-width:
    420px;
}


/* Tables with exactly 3 columns */

.article-table-scroll
> table:has(tr > :nth-child(3):last-child)
th,

.article-table-scroll
> table:has(tr > :nth-child(3):last-child)
td {
  min-width:
    210px;

  max-width:
    330px;
}


/* Tables with 4+ columns */

.article-table-scroll
> table:has(tr > :nth-child(4))
th,

.article-table-scroll
> table:has(tr > :nth-child(4))
td {
  min-width:
    165px;

  max-width:
    240px;
}


/* =========================================================
   LAST COLUMN
   ========================================================= */

.article-table-scroll > table th:last-child,
.article-table-scroll > table td:last-child {
  border-right:
    0 !important;
}


/* =========================================================
   STANDARD HEADER
   ========================================================= */

.article-table-scroll > table thead,
.article-table-scroll > table thead tr {
  background:
    var(--iv-primary, #002060) !important;
}

.article-table-scroll > table thead th,
.article-table-scroll > table thead td {
  color:
    #ffffff !important;

  background:
    var(--iv-primary, #002060) !important;

  border-color:
    var(--iv-primary-dark, #001747) !important;

  font-size:
    14px !important;

  font-weight:
    600 !important;

  line-height:
    1.4 !important;

  letter-spacing:
    0 !important;

  text-transform:
    none !important;
}


/* =========================================================
   FALLBACK HEADER
   Handles tables without <thead>
   ========================================================= */

.article-table-scroll
> table:not(:has(thead))
> tbody
> tr:first-child {
  background:
    var(--iv-primary, #002060) !important;
}

.article-table-scroll
> table:not(:has(thead))
> tbody
> tr:first-child
> th,

.article-table-scroll
> table:not(:has(thead))
> tbody
> tr:first-child
> td {
  color:
    #ffffff !important;

  background:
    var(--iv-primary, #002060) !important;

  border-color:
    var(--iv-primary-dark, #001747) !important;

  font-size:
    14px !important;

  font-weight:
    600 !important;

  line-height:
    1.4 !important;
}


/* =========================================================
   PARAGRAPHS INSIDE CELLS
   ========================================================= */

.article-table-scroll > table th p,
.article-table-scroll > table td p {
  margin:
    0 !important;

  color:
    inherit !important;

  font:
    inherit !important;

  line-height:
    inherit !important;
}


/* =========================================================
   BODY ROWS
   ========================================================= */

.article-table-scroll > table tbody tr {
  background:
    var(--iv-surface, #ffffff) !important;

  transition:
    background-color
    var(--iv-transition, 0.2s ease);
}

.article-table-scroll > table tbody tr:nth-child(even) {
  background:
    var(--iv-surface-soft, #faf7f3) !important;
}

.article-table-scroll > table tbody tr:hover {
  background:
    #f6f0e8 !important;
}


/* Keep fallback header dark on hover */

.article-table-scroll
> table:not(:has(thead))
> tbody
> tr:first-child:hover {
  background:
    var(--iv-primary, #002060) !important;
}


/* =========================================================
   FIRST COLUMN EMPHASIS
   ========================================================= */

.article-table-scroll
> table
> tbody
> tr
> td:first-child {
  color:
    var(--iv-primary, #002060) !important;

  font-weight:
    600;
}


/* Don't recolor fallback header first cell */

.article-table-scroll
> table:not(:has(thead))
> tbody
> tr:first-child
> td:first-child {
  color:
    #ffffff !important;
}


/* =========================================================
   LINKS
   ========================================================= */

.article-table-scroll > table a {
  color:
    var(--iv-primary, #002060) !important;

  font-weight:
    500;

  text-decoration:
    underline;

  text-decoration-thickness:
    1px;

  text-underline-offset:
    3px;
}

.article-table-scroll > table a:hover {
  color:
    var(--iv-accent, #573911) !important;
}


/* Links inside header */

.article-table-scroll > table thead a,

.article-table-scroll
> table:not(:has(thead))
> tbody
> tr:first-child
a {
  color:
    #ffffff !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .article-table-scroll {
    margin:
      22px
      0;
  }

  .article-table-scroll > table {
    font-size:
      14px !important;
  }

  .article-table-scroll > table th,
  .article-table-scroll > table td {
    min-width:
      145px;

    max-width:
      220px;

    padding:
      12px
      14px !important;

    line-height:
      1.45 !important;
  }

  .article-table-scroll > table th:first-child,
  .article-table-scroll > table td:first-child {
    min-width:
      145px;

    max-width:
      180px;
  }

  .article-table-scroll > table th:nth-child(n + 2),
  .article-table-scroll > table td:nth-child(n + 2) {
    min-width:
      165px;

    max-width:
      220px;
  }

  .article-table-scroll
  > table:has(tr > :nth-child(2):last-child)
  th,

  .article-table-scroll
  > table:has(tr > :nth-child(2):last-child)
  td {
    min-width:
      200px;

    max-width:
      300px;
  }

  .article-table-scroll
  > table:has(tr > :nth-child(3):last-child)
  th,

  .article-table-scroll
  > table:has(tr > :nth-child(3):last-child)
  td {
    min-width:
      180px;

    max-width:
      250px;
  }
}

/* =========================================================
   ARTICLE FAQ
   ========================================================= */

.sd-faq-heading {
  margin-bottom:
    16px !important;

  font-family:
    var(
      --cs-font-headings-family,
      inherit
    ) !important;

  font-weight:
    var(
      --cs-font-headings-weight,
      600
    ) !important;

  line-height:
    var(
      --cs-font-headings-line-height,
      1.2
    ) !important;

  letter-spacing:
    var(
      --cs-font-headings-letter-spacing,
      normal
    ) !important;
}

.article-faq {
  width:
    100% !important;

  margin:
    0
    0
    32px !important;

  padding:
    0 !important;

  font-family:
    var(
      --cs-font-post-content-family,
      inherit
    ) !important;
}

.article-faq__list {
  display:
    flex !important;

  flex-direction:
    column !important;

  gap:
    8px !important;

  width:
    100% !important;

  margin:
    0 !important;

  padding:
    0 !important;
}

.article-faq
details.article-faq__item {
  position:
    relative !important;

  width:
    100% !important;

  margin:
    0 !important;

  padding:
    0 !important;

  overflow:
    hidden !important;

  background:
    #fff !important;

  border:
    1px solid
    rgba(0, 32, 96, 0.13) !important;

  border-radius:
    0 !important;

  box-shadow:
    0 2px 10px
    rgba(0, 32, 96, 0.025);

  transition:
    border-color
    var(--iv-transition),
    box-shadow
    var(--iv-transition);
}

.article-faq
details.article-faq__item:hover {
  border-color:
    rgba(0, 32, 96, 0.28) !important;
}

.article-faq
details.article-faq__item[open] {
  border-color:
    rgba(87, 57, 17, 0.30) !important;

  box-shadow:
    0 5px 18px
    rgba(87, 57, 17, 0.055);
}

.article-faq
details.article-faq__item
> summary.article-faq__question {
  position:
    relative !important;

  display:
    flex !important;

  align-items:
    center !important;

  width:
    100% !important;

  margin:
    0 !important;

  padding:
    14px
    48px
    14px
    18px !important;

  color:
    var(--iv-primary) !important;

  background:
    #fff !important;

  border:
    0 !important;

  border-radius:
    0 !important;

  cursor:
    pointer !important;

  list-style:
    none !important;

  font-family:
    var(
      --cs-font-post-content-family,
      inherit
    ) !important;

  font-size:
    var(
      --cs-font-post-content-size,
      1.125rem
    ) !important;

  font-weight:
    600 !important;

  line-height:
    1.45 !important;

  transition:
    color
    var(--iv-transition),
    background-color
    var(--iv-transition);
}

.article-faq
summary.article-faq__question::-webkit-details-marker {
  display:
    none !important;
}

.article-faq
summary.article-faq__question::marker {
  content:
    "" !important;
}

.article-faq
details.article-faq__item
> summary.article-faq__question:hover {
  background:
    #fcfaf7 !important;
}

.article-faq
details.article-faq__item[open]
> summary.article-faq__question {
  color:
    var(--iv-accent) !important;

  background:
    #faf6f1 !important;
}

.article-faq
summary.article-faq__question::before,
.article-faq
summary.article-faq__question::after {
  content:
    "" !important;

  position:
    absolute !important;

  top:
    50% !important;

  right:
    18px !important;

  width:
    14px !important;

  height:
    2px !important;

  background:
    currentColor !important;

  transform:
    translateY(-50%) !important;

  transition:
    transform
    var(--iv-transition);
}

.article-faq
summary.article-faq__question::after {
  transform:
    translateY(-50%)
    rotate(90deg) !important;
}

.article-faq
details.article-faq__item[open]
> summary.article-faq__question::after {
  transform:
    translateY(-50%)
    rotate(0deg) !important;
}

.article-faq__answer {
  margin:
    0 !important;

  padding:
    0
    18px
    15px !important;

  color:
    var(--iv-text-secondary) !important;

  background:
    #fff !important;

  font-family:
    var(
      --cs-font-post-content-family,
      inherit
    ) !important;

  font-size:
    var(
      --cs-font-post-content-size,
      1.125rem
    ) !important;

  font-weight:
    var(
      --cs-font-post-content-weight,
      400
    ) !important;

  line-height:
    var(
      --cs-font-post-content-line-height,
      1.6
    ) !important;
}

.article-faq__answer p {
  margin:
    10px
    0
    0 !important;

  padding:
    0 !important;

  color:
    inherit !important;

  font:
    inherit !important;
}

.article-faq__answer a {
  color:
    var(--iv-primary);
}

.article-faq__answer a:hover {
  color:
    var(--iv-accent);
}

.article-faq
details.article-faq__item[open]::before {
  content:
    "" !important;

  position:
    absolute !important;

  top:
    0 !important;

  bottom:
    0 !important;

  left:
    0 !important;

  width:
    3px !important;

  background:
    var(--iv-accent) !important;
}

.article-faq
summary.article-faq__question:focus-visible {
  outline:
    2px solid
    var(--iv-primary) !important;

  outline-offset:
    -3px !important;
}


/* =========================================================
   TABLE OF CONTENTS
   No internal scroll.
   ========================================================= */

body.single-post
.cs-entry__metabar-toc__nav {
  padding:
    16px
    14px;

  background:
    var(--iv-panel);

  border:
    1px solid
    rgba(87, 57, 17, 0.12);

  border-radius:
    0 !important;

  box-shadow:
    0 3px 12px
    rgba(87, 57, 17, 0.025);
}

body.single-post
.cs-entry__metabar-toc__heading {
  margin:
    0
    0
    14px;

  color:
    var(--iv-accent);
}

body.single-post
.cs-entry__metabar-toc__nav-wrapper {
  max-height:
    none !important;

  overflow:
    visible !important;

  padding:
    0 !important;
}

body.single-post
.cs-entry__metabar-toc__nav-wrapper ul {
  margin:
    0;

  padding:
    0;

  list-style:
    none;
}

body.single-post
.cs-entry__metabar-toc__nav-wrapper li {
  margin:
    0;

  padding:
    0;
}

body.single-post
.cs-toc-link {
  display:
    block;

  padding:
    7px
    8px;

  color:
    var(--iv-primary);

  border-radius:
    0 !important;

  font-family:
    var(
      --cs-font-base-family,
      inherit
    );

  font-size:
    14px;

  font-weight:
    500;

  line-height:
    1.35;

  text-decoration:
    none;

  word-break:
    normal;

  overflow-wrap:
    normal;

  hyphens:
    none;

  transition:
    color
    0.18s ease,
    background-color
    0.18s ease;
}

body.single-post
.cs-toc-link:hover {
  color:
    var(--iv-accent);

  background:
    rgba(87, 57, 17, 0.06);
}

body.single-post
.cs-toc-link.is-active,
body.single-post
.cs-toc-link.active,
body.single-post
.cs-toc-link[aria-current="true"] {
  color:
    var(--iv-accent);

  background:
    rgba(87, 57, 17, 0.09);

  font-weight:
    600;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .cs-footer__inner {
    grid-template-columns:
      1fr;

    grid-template-areas:
      "center"
      "left"
      "right"
      "copyright";

    text-align:
      center;
  }

  .cs-col-center,
  .cs-col-right {
    width:
      100%;

    max-width:
      100%;
  }

  .cs-header__nav ul li a {
    font-size:
      14px !important;
  }

  body.single-post
  .cs-sidebar__inner {
    padding:
      12px;
  }

  .article-table-scroll {
    margin:
      22px
      0;
  }

  .article-table-scroll > table {
    font-size:
      14px !important;
  }

  .article-table-scroll > table th,
  .article-table-scroll > table td {
    min-width:
      145px;

    padding:
      12px
      14px !important;
  }

  .article-table-scroll > table th:first-child,
  .article-table-scroll > table td:first-child {
    min-width:
      155px;
  }

  .article-table-scroll > table th:nth-child(n + 2),
  .article-table-scroll > table td:nth-child(n + 2) {
    min-width:
      175px;
  }

  .article-faq__list {
    gap:
      7px !important;
  }

  .article-faq
  details.article-faq__item
  > summary.article-faq__question {
    padding:
      13px
      43px
      13px
      15px !important;

    font-size:
      1rem !important;
  }

  .article-faq__answer {
    padding:
      0
      15px
      14px !important;

    font-size:
      1rem !important;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .article-faq *,
  .article-faq *::before,
  .article-faq *::after {
    transition:
      none !important;
  }
}