/* ==========================================================================
   Hily tables — shared styles for the 4 table variants
   (parsed from "Hily Table.dc.html": 4a, 4b, 2a, 1a)
   ========================================================================== */

/* ---- base reset shared by every variant ------------------------------- */
.hily-table-wrap {
  max-width: 1040px;
  margin: 0;
}

.hily-table {
  width: 100%;
  max-width: 1040px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.hily-table th,
.hily-table td {
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 24px;
  font-family: "Bagoss Standard Regular", sans-serif;
  font-weight: 400;
}

.hily-table th strong,
.hily-table th b,
.hily-table td strong,
.hily-table td b {
  font-family: "Bagoss Standard Bold", sans-serif;
  font-weight: normal;
}

/* ---- column-width ratios (reused across variants) --------------------- */
/* 3-column ratio: 1fr / 0.5fr / 1.3fr */
.hily-table--3col col:nth-child(1) { width: 36%; }
.hily-table--3col col:nth-child(2) { width: 18%; }
.hily-table--3col col:nth-child(3) { width: 46%; }

/* 2-column ratio: 0.75fr / 1.25fr */
.hily-table--2col col:nth-child(1) { width: 37.5%; }
.hily-table--2col col:nth-child(2) { width: 62.5%; }

/* ==========================================================================
   Card-row variants (4a "Check-in types", 4b "Dating trends")
   Each body row is its own white rounded card, no borders between rows.
   ========================================================================== */
.hily-table--cards {
  border-spacing: 0 20px;
}

.hily-table--cards thead th {
  padding: 0 28px 2px;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  border: none;
}

.hily-table--cards tbody td {
  padding: 22px 28px;
  border: none;
  background: #FFFFFF;
}

.hily-table--cards tbody td:first-child { border-top-left-radius: 24px; border-bottom-left-radius: 24px; }
.hily-table--cards tbody td:last-child  { border-top-right-radius: 24px; border-bottom-right-radius: 24px; }

/* 4a — first column emphasis */
.hily-table--checkin-types tbody td:first-child {
  font-family: "Bagoss Standard Bold", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  color: #000000;
}

.hily-table--checkin-types tbody td:nth-child(2) {
  font-family: "Bagoss Standard Medium", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #000000;
}

.hily-table--checkin-types tbody td:nth-child(3) {
  font-size: 17px;
  line-height: 26px;
  color: #000000;
  text-wrap: pretty;
  font-weight: normal;
}

/* 4b — pill-shaped rows, 2 columns */
.hily-table--dating-trends-cards tbody td {
  padding: 20px 28px;
}

.hily-table--dating-trends-cards tbody td:first-child {
  font-family: "Bagoss Standard Bold", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #000000;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.hily-table--dating-trends-cards tbody td:last-child {
  font-size: 17px;
  line-height: 24px;
  color: #000000;
  text-wrap: pretty;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  font-weight: normal;
}

@media (max-width: 680px) {
  .hily-table--cards { border-spacing: 0 8px; }
  .hily-table--cards thead { display: none; }
  .hily-table--cards tbody tr { display: block; }
  .hily-table--cards tbody td { display: block; padding: 18px 20px; border-radius: 20px !important; }

  .hily-table--checkin-types tbody td:first-child { font-size: 18px; }
  .hily-table--dating-trends-cards tbody td { padding: 18px 22px; }
}

/* ==========================================================================
   Bordered variants (2a "Dating trends table", 1a "Relationship check-in")
   Single card container, purple header row, hairline row dividers.
   ========================================================================== */
.hily-table-wrap--bordered,
.hily-table--bordered {
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.hily-table--bordered thead th {
  padding: 16px 28px;
  background: #A182FF;
  font-size: 13px;
  font-weight: normal;
  color: #000000;
}

.hily-table--bordered tbody td {
  padding: 20px 28px;
  transition: background 150ms ease;
}

.hily-table--bordered tbody tr:not(:first-child) td {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hily-table--bordered tbody tr:hover td {
  background: #F5F5F5;
}

/* 2a — two-column list table */
.hily-table--dating-trends tbody td:first-child {
  font-family: "Bagoss Standard Medium", sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 24px;
  color: #000000;
}

.hily-table--dating-trends tbody td:last-child {
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  text-wrap: pretty;
  font-weight: normal;
}

/* 1a — three-column table with frequency tag */
.hily-table--relationship-checkin tbody td:first-child {
  font-family: "Bagoss Standard Medium", sans-serif;
  font-weight: normal;
  font-size: 19px;
  line-height: 26px;
  color: #000000;
}

.hily-table--relationship-checkin tbody td:last-child {
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  text-wrap: pretty;
  font-weight: normal;
}

.hily-table__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ADE3F8;
  color: #000000;
  font-size: 13px;
  line-height: normal;
  font-weight: normal;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .hily-table--bordered thead { display: none; }
  .hily-table--bordered tbody tr { display: block; }
  .hily-table--bordered tbody tr:not(:first-child) { border-top: 1px solid rgba(0, 0, 0, 0.08); }
  .hily-table--bordered tbody tr:not(:first-child) td { border-top: none; }
  .hily-table--bordered tbody td { display: block; padding: 16px 20px; }

  .hily-table--relationship-checkin tbody td:first-child { font-size: 18px; }
}
