/*
  The Hog Call — promo-post table styles (preview / additional-CSS candidate).
  Scope: body.postid-1119, body.postid-1120, and body.page-id-1123 only.
  Does not target header, homepage, .pb-scores, recap ads, or any other template.
  Page 1123 (/promos/) currently has no tables; the page-id-1123 branch is
  included so a future wp-block-table on that page would inherit the same look.
*/

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.35em 0 1.6em;
  background: #fffdf8;
  border: 1px solid #e4d8cf;
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: #161214;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table table {
  box-sizing: border-box;
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: #161214;
  background: #fffdf8;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table thead {
  display: table-header-group;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table tbody {
  display: table-row-group;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table tr {
  display: table-row;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table th,
body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table td {
  box-sizing: border-box;
  display: table-cell;
  float: none;
  width: auto;
  min-width: 0;
  padding: 0.7em 0.85em;
  border: 1px solid #e4d8cf;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  color: #161214;
  background: #fffdf8;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 400;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table thead th {
  background: #9d2235;
  color: #fffdf8;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table tbody tr:nth-child(even) td {
  background: #f3efe8;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table tbody td:first-child {
  font-weight: 700;
}

/* Promo codes are marked up as <strong> inside the first cell — not <code>.
   td:first-child keeps BetOnline table 2's mid-cell "Reduced juice" <strong>
   from getting the pill. Prefer wrapping codes in <code class="promo-code"> later. */
body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table td:first-child strong {
  display: inline-block;
  margin: 0 0.1em;
  padding: 0.15em 0.55em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #1f7a3a;
  background: #e8f5ec;
  border: 1px dashed #1f7a3a;
  border-radius: 999px;
  white-space: nowrap;
  -webkit-user-select: all;
  user-select: all;
}

/* Defensive: tables currently contain 0 links. If a CTA is added inside a
   table, keep it readable. Does not restyle links outside the table. */
body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table a {
  color: #9d2235;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 700;
  background: none;
  opacity: 1;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table a:hover,
body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table a:focus {
  color: #6e1020;
  text-decoration: underline;
}

body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table thead th a {
  color: #fffdf8;
  text-decoration: underline;
}

@media (max-width: 600px) {
  body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table {
    margin: 1em 0 1.25em;
  }

  body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table table {
    font-size: 0.9rem;
    width: 100%;
    min-width: 28rem;
  }

  body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table table:has(th:nth-child(4)) {
    min-width: 36rem;
  }

  body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table table:has(th:nth-child(5)) {
    min-width: 40rem;
  }

  body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table th,
  body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table td {
    padding: 0.45em 0.55em;
  }

  body:is(.postid-1119, .postid-1120, .page-id-1123) figure.wp-block-table thead th {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
  }
}
