/* =====================================================================
   Xberra Tagger - shared components
   Loaded last (after common / responsive CSS) so it wins over the
   page-specific stylesheets. Fixes and unifies:
     1. Tables            (.xt-table)
     2. Numbered steps    (.xt-steps  /  legacy .xt-g-ef63c47a)
     3. Stat strips       (.xt-stat-strip)
     4. Tick lists        (.xt-checklist / legacy .xt-g-083866e0)
     5. Quote panels      (.xt-g-a1fa73d3)
     6. Card grids        (.xt-grid3 / .xt-grid4 / .xt-grid5)
   Tokens follow the existing brand: navy #001442, red #C01010,
   border #C9D9F4, divider #DBE6F8, text #3E4A63 / #262b35.
   ===================================================================== */

:root {
  --xt-navy: #001442;
  --xt-red: #C01010;
  --xt-red-tint: #FDECEC;
  --xt-ink: #262b35;
  --xt-body: #3E4A63;
  --xt-muted: #6B7280;
  --xt-line: #C9D9F4;
  --xt-line-soft: #DBE6F8;
  --xt-head-bg: #F2F6FF;
  --xt-card-shadow: 0 1px 2px rgba(10, 40, 110, .06), 0 14px 30px -16px rgba(10, 40, 110, .20);
}

/* ---------------------------------------------------------------------
   0. STATUS / FILING-TYPE TAGS (used inside .xt-table cells)
   --------------------------------------------------------------------- */
.xt-tag-yes,
.xt-tag-kfi,
.xt-tag-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.xt-tag-yes {
  background: #E8F6EE;
  color: #157347;
}

.xt-tag-yes::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22A559;
  display: inline-block;
}

.xt-tag-kfi {
  background: var(--xt-head-bg);
  color: var(--xt-navy);
  border: 1px solid var(--xt-line);
}

.xt-tag-full {
  background: var(--xt-red-tint);
  color: var(--xt-red);
  border: 1px solid #F3C6C6;
}

.xt-tag-sub {
  font-size: 11.5px;
  color: var(--xt-muted);
}

.xt-tag-or {
  font-size: 11.5px;
  color: var(--xt-muted);
  margin: 0 2px;
}

/* ---------------------------------------------------------------------
   1. TABLES
   The card wrapper (.xt-g-366ee564) already provides border, radius and
   horizontal scroll. This styles the table inside it.
   --------------------------------------------------------------------- */
.xt-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--xt-body);
  background: #fff;
  text-align: left;
}

.xt-table th,
.xt-table td {
  padding: 16px 24px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--xt-line-soft);
}

.xt-table th {
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--xt-head-bg);
  border-bottom: 1px solid var(--xt-line);
  color: var(--xt-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.xt-table tr:last-child td {
  border-bottom: 0;
}

.xt-table th:first-child,
.xt-table td:first-child {
  width: 26%;
}

.xt-table td:first-child,
.xt-table td:first-child strong {
  color: var(--xt-ink);
  font-weight: 700;
}

.xt-table tr:hover td {
  background: #FAFCFF;
}

/* Small screens: each row becomes a labelled card (labels come from the
   data-label attribute on each cell). */
@media (max-width: 720px) {
  .xt-table,
  .xt-table tbody,
  .xt-table tr,
  .xt-table td {
    display: block;
    width: 100%;
  }

  /* keep the header row for screen readers, hide it visually */
  .xt-table tr:first-child:has(th) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .xt-table tr {
    padding: 16px 20px;
    border-bottom: 1px solid var(--xt-line);
  }

  .xt-table tr:last-child {
    border-bottom: 0;
  }

  .xt-table th:first-child,
  .xt-table td:first-child {
    width: 100%;
  }

  .xt-table td {
    padding: 6px 0;
    border: 0;
  }

  .xt-table td:first-child {
    padding-top: 0;
    font-size: 16px;
  }

  .xt-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--xt-muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .01em;
  }

  .xt-table td:first-child[data-label]::before {
    display: none;
  }

  .xt-table tr:hover td {
    background: transparent;
  }
}

/* Same look for the blog comparison tables */
.blog-main-content .table-responsive > table thead th {
  background: var(--xt-head-bg);
  color: var(--xt-navy);
  border-bottom: 1px solid var(--xt-line);
}

.blog-main-content .table-responsive {
  border-color: var(--xt-line);
  box-shadow: var(--xt-card-shadow);
}

.blog-main-content .table-responsive > table th,
.blog-main-content .table-responsive > table td {
  border-right: 0;
  border-bottom-color: var(--xt-line-soft);
  color: var(--xt-body);
}

.blog-main-content .table-responsive > table tbody tr:nth-child(even) td {
  background: #fff;
}

.blog-main-content .table-responsive > table tbody tr:hover td {
  background: #FAFCFF;
}

.blog-main-content .table-responsive > table th:first-child,
.blog-main-content .table-responsive > table td:first-child {
  color: var(--xt-ink);
}

/* ---------------------------------------------------------------------
   2. NUMBERED STEPS
   --------------------------------------------------------------------- */
.xt-g-ef63c47a {
  overflow: hidden;
}

.xt-g-228ff4f9,
.xt-g-8aa4f5e1 {
  align-items: flex-start;
  gap: 18px;
  padding: 18px 26px;
}

.xt-g-5912ac7b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--xt-red-tint);
  color: var(--xt-red);
  font-size: 16px;
  line-height: 1;
}

.xt-g-dae04889 {
  align-self: center;
  font-size: 15.5px;
  line-height: 1.6;
}

.xt-g-dae04889 strong {
  display: block;
  color: var(--xt-ink);
  font-size: 16px;
  font-weight: 700;
}

.xt-g-67b6f8e2 {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--xt-red);
  border-radius: 0 10px 10px 0;
  background: var(--xt-red-tint);
  font-weight: 500;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------
   3. STAT STRIP  (three or four headline facts in one card)
   --------------------------------------------------------------------- */
.xt-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--xt-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--xt-card-shadow);
}

.xt-stat-strip > div {
  padding: 26px 30px;
  border-left: 1px solid var(--xt-line-soft);
}

.xt-stat-strip > div:first-child {
  border-left: 0;
}

.xt-stat-strip > div > div:first-child {
  margin-bottom: 4px;
  font-size: 32px;
  line-height: 1.15;
}

.xt-stat-strip > div > div:last-child {
  font-size: 14.5px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .xt-stat-strip > div {
    padding: 20px 22px;
    border-left: 0;
    border-top: 1px solid var(--xt-line-soft);
  }

  .xt-stat-strip > div:first-child {
    border-top: 0;
  }
}

/* ---------------------------------------------------------------------
   4. TICK LISTS  (white card, two columns, tick badge per item)
   --------------------------------------------------------------------- */
.xt-g-083866e0 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 20px 0 20px;
  overflow: hidden;
  border: 1px solid var(--xt-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--xt-card-shadow);
}

.xt-g-6ca91914 {
  position: relative;
  padding: 18px 24px 18px 66px;
  border-bottom: 1px solid var(--xt-line-soft);
  color: var(--xt-body);
  font-size: 15px;
  line-height: 1.6;
}

.xt-g-6ca91914::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 19px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--xt-red-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C01010' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 15px 15px no-repeat;
}

.xt-g-6ca91914 strong {
  display: block;
  color: var(--xt-ink);
  font-size: 16px;
  font-weight: 700;
}

/* remove the divider under the last row(s) so the card edge stays clean */
.xt-g-083866e0 > .xt-g-6ca91914:last-child {
  border-bottom: 0;
}

@media (min-width: 720px) {
  .xt-g-083866e0 {
    grid-template-columns: repeat(2, 1fr);
  }

  .xt-g-083866e0 > .xt-g-6ca91914:nth-child(odd) {
    border-right: 1px solid var(--xt-line-soft);
  }

  .xt-g-083866e0 > .xt-g-6ca91914:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}

/* ---------------------------------------------------------------------
   5. QUOTE PANEL
   --------------------------------------------------------------------- */
.xt-g-a1fa73d3 {
  margin-top: 20px;
  padding: 28px 32px;
  border-left: 4px solid var(--xt-red);
  border-radius: 16px;
  background: var(--xt-navy);
}

.xt-g-8fc412ff {
  max-width: 900px;
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
}

.xt-g-f3c4c168 {
  margin-top: 12px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .xt-g-a1fa73d3 {
    padding: 22px 22px;
  }

  .xt-g-8fc412ff {
    font-size: 17px;
  }
}

/* ---------------------------------------------------------------------
   6. CARD GRIDS
   Column count adapts to the space and to the number of cards, so a
   row of three cards no longer leaves an empty fourth column.
   --------------------------------------------------------------------- */
.xt-grid3,
.xt-grid4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.xt-grid5 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

/* Keep the type in cards on one rhythm */
.xt-g-7f445e4a h4,
.xt-g-df42a906 h4 {
  line-height: 1.35;
}

.xt-g-7f445e4a p {
  line-height: 1.6;
}

/* ---------------------------------------------------------------------
   Section footnotes (text under a table)
   --------------------------------------------------------------------- */
.xt-g-a8c69582,
.xt-g-d6072a5b {
  max-width: 820px;
  line-height: 1.6;
}

/* Stat strip nested inside a quick-reference card: lighter, no second shadow */
.xt-g-5d7ebc3d .xt-stat-strip {
  margin-bottom: 14px;
  background: var(--xt-head-bg);
  box-shadow: none;
}

/* Navy callout card: rounded, and spaced when it follows a card grid */
.xt-g-9073530c {
  border-radius: 16px;
}

div + .xt-g-9073530c {
  margin-top: 16px;
}
