/* Shared styles for the rules and strategy content pages (plain CSS, no build step). */

.content_page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 60px;
  padding: 0 20px;
  font-family: Metropolis, "Inter", sans-serif;
  color: #222;
}

.content_page .lead {
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  color: rgba(34, 34, 34, 0.8);
  margin: 0 auto 30px;
  max-width: 700px;
}

.content_page h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 48px 0 16px;
}

.content_page h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.content_page p,
.content_page li {
  font-size: 18px;
  line-height: 28px;
}

.content_page ul,
.content_page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content_page a {
  color: #2f8a2c;
  text-decoration: underline;
}

/* Rule-set tabs */
.ruleset_tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 24px;
}

.ruleset_tabs button {
  border: 0;
  border-radius: 20px;
  padding: 10px 26px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  background-color: #c2c2c2;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ruleset_tabs button:hover,
.ruleset_tabs button:focus-visible {
  background-color: #8fbf7d;
  outline: none;
}

.ruleset_tabs button[aria-selected="true"] {
  background-color: #67af4a;
}

.ruleset_panel[hidden] {
  display: none;
}

.ruleset_summary {
  background: #f2f8ef;
  border-radius: 15px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.ruleset_summary p {
  margin: 0;
}

/* Score tables */
.table_wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

.score_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 24px;
}

.score_table caption {
  caption-side: top;
  text-align: left;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  padding: 0 0 8px;
}

.score_table th,
.score_table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid #e3e3e3;
}

.score_table thead th {
  background: #67af4a;
  color: #fff;
  font-weight: 700;
}

.score_table thead th:first-child {
  border-top-left-radius: 10px;
}

.score_table thead th:last-child {
  border-top-right-radius: 10px;
}

.score_table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.score_table tr.bonus_row td,
.score_table tr.bonus_row th {
  background: #fff7e8;
}

.dice {
  font-family: "Inter", sans-serif;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Callouts and CTA */
.note {
  border-left: 4px solid #f18500;
  background: #fff7e8;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}

.cta_box {
  text-align: center;
  background: #f2f8ef;
  border-radius: 15px;
  padding: 28px 20px;
  margin-top: 48px;
}

.cta_box h2 {
  margin-top: 0;
}

.cta_box .download {
  justify-content: center;
  margin-top: 20px;
}

.faq dt {
  font-size: 19px;
  font-weight: 700;
  margin-top: 20px;
}

.faq dd {
  font-size: 18px;
  line-height: 28px;
  margin: 6px 0 0;
}

@media (max-width: 479px) {
  .content_page {
    padding: 0 12px;
  }

  .content_page h2 {
    font-size: 26px;
  }

  .ruleset_tabs button {
    font-size: 17px;
    padding: 8px 18px;
  }

  .score_table {
    font-size: 15px;
  }

  .score_table th,
  .score_table td {
    padding: 8px;
  }

  .score_table tbody th {
    white-space: normal;
  }
}

.cta_button {
  display: inline-block;
  background: #39a936;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 26px;
}

.cta_button:hover,
.cta_button:focus-visible {
  background: #2b8a29;
}

.trademark_note {
  margin-top: 32px;
  font-size: 13px !important;
  line-height: 20px !important;
  color: #7a7a7a;
}

/* ---------------------------------------------------------------------- */
/* Printable scorecard                                                    */
/* ---------------------------------------------------------------------- */

.yg-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sc_print_row {
  text-align: center;
  margin: 0 0 24px;
}

.sc_print {
  border: 0;
  font-size: 18px;
  cursor: pointer;
}

.sc_sheet {
  border: 2px solid #222;
  border-radius: 12px;
  padding: 14px 16px 10px;
  background: #fff;
}

.sc_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sc_logo {
  font-family: Metropolis, "Inter", sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: #39a936;
}

.sc_rules {
  font-weight: 700;
  font-size: 16px;
}

.sc_site {
  font-size: 13px;
  color: #7a7a7a;
}

.sc_table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
}

.sc_table th,
.sc_table td {
  border: 1px solid #9a9a9a;
  height: 30px;
  padding: 2px 6px;
}

.sc_table thead th {
  background: #eaf5e4;
  font-weight: 700;
  text-align: center;
}

.sc_table thead th:first-child {
  text-align: left;
  width: 30%;
}

.sc_table thead th.sc_hint {
  width: 13%;
}

.sc_table tbody th {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc_hint {
  text-align: center;
  color: #555;
  font-size: 14px;
  white-space: nowrap;
}

.sc_table tr.sc_names th,
.sc_table tr.sc_names td {
  height: 36px;
  border-bottom: 2px solid #222;
}

.sc_table tr.sc_sub th,
.sc_table tr.sc_sub td {
  background: #f6f6f6;
}

.sc_table tr.sc_sub + tr:not(.sc_sub) th,
.sc_table tr.sc_sub + tr:not(.sc_sub) td {
  border-top: 2px solid #222;
}

.sc_table tr.sc_total th,
.sc_table tr.sc_total td {
  height: 38px;
  font-weight: 800;
  border-top: 2px solid #222;
  background: #eaf5e4;
}

.sc_legend {
  font-size: 13px !important;
  line-height: 18px !important;
  color: #555;
  margin: 8px 0 0;
}

@media (max-width: 600px) {
  .sc_table {
    font-size: 13px;
  }

  .sc_table thead th:first-child {
    width: 34%;
  }

  .sc_table thead th.sc_hint {
    width: 16%;
  }

  .sc_hint {
    font-size: 12px;
  }
}

@media print {
  @page {
    size: auto;
    margin: 10mm;
  }

  html,
  body {
    background: #fff !important;
    height: auto !important;
  }

  .header,
  .footer,
  .overlay,
  #overlay,
  .sc_noprint,
  amp-auto-ads,
  ins.adsbygoogle,
  .google-auto-placed,
  iframe {
    display: none !important;
  }

  .content_page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .sc_sheet {
    border: 0;
    padding: 0;
    break-inside: avoid;
  }

  .sc_sheet[hidden] {
    display: none !important;
  }

  .sc_logo,
  .sc_table thead th,
  .sc_table tr.sc_sub th,
  .sc_table tr.sc_sub td,
  .sc_table tr.sc_total th,
  .sc_table tr.sc_total td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sc_table {
    font-size: 11pt;
  }

  .sc_table th,
  .sc_table td {
    height: 9.5mm;
    border-color: #555;
  }

  #six-dice .sc_table th,
  #six-dice .sc_table td {
    height: 7.3mm;
    padding-top: 0;
    padding-bottom: 0;
  }

  .sc_legend {
    margin-top: 4px;
  }

  .sc_table tbody th {
    white-space: normal;
  }
}
