/* Domino page list and paragraph spacing */
#history p {
  margin-bottom: 1rem;
}

#history ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

#history ul li {
  margin-bottom: 0.75rem;
}
main {
    padding: 32px 20px;
}

h1, h2 {
    font-size: 2rem;
    margin-bottom: 32px;
}

h2 {
    margin-top: 32px;
    font-size: 1.8rem;
}

h1, p, #links a, #ul li, h2 {
    font-family: Nunito;
}

p, #ul li{
    margin-bottom: 24px;
}

#ul li {
    margin-top: 24px;
}

#ul {
    list-style-type:disc !important;
}

#links, #domino-editions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

#links a, #domino-editions a {
    background-color: var(--cta-color);
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
}

#domino-editions {
  margin: 32px 0;
  font-family: Nunito, sans-serif;
}

#additional_assets {
  display: flex;
  align-items: center;
  gap: 16px;
}

h3 {
  font-family: Nunito;
  margin-top: 16px;
}

.ol_announcement {
  margin-bottom: 18px;
  padding-left: 18px;
}

#additional_assets p {
  margin: 0;
}

/* keep default bullets for specific lists when global styles remove them */
.bulleted {
    list-style-type: disc !important;
    margin-left: 1.5rem;
}

.shift-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: #fff;
}

.shift-table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: .5rem;
  color: #222;
}

.shift-table thead th {
  background: var(--cta-color);
  color: #fff;
  padding: .65rem .75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--cta-color);
  font-family: Nunito, sans-serif;
}

.shift-table tbody td {
  padding: .55rem .75rem;
  border: 1px solid #d0d6e2;
  font-family: Nunito, sans-serif;
}

.shift-table tbody tr:nth-child(even) {
  background: #f5f8fb;
}

.shift-table tbody tr:hover {
  background: #e9f2ff;
}

/* General table styling for rulebook pages */
#rulebook table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d0d6e2;
  margin: 1.5rem 0;
}

#rulebook table th,
#rulebook table td {
  border: 1px solid #d0d6e2;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

#rulebook table th {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
}

#rulebook table tbody tr:nth-child(even) {
  background: #f5f8fb;
}

#rulebook table tbody tr:hover {
  background: #e9f2ff;
}

#rulebook table td p {
  margin-bottom: 0.5rem;
}

#rulebook table td p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .shift-table,
  .shift-table thead,
  .shift-table tbody,
  .shift-table tr,
  .shift-table th,
  .shift-table td {
    display: block;
    width: 100%;
  }
  .shift-table thead {
    display: none;
  }
  .shift-table tbody tr {
    margin-bottom: .75rem;
    border: 1px solid #d0d6e2;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
  }
  .shift-table tbody td {
    border: none;
    padding: .5rem .75rem;
    position: relative;
  }
  .shift-table tbody td:first-child {
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
  }
}

/* Text section styles for SEO updates */
.intro-text-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.intro-text-section h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.centered-section {
    text-align: center;
    margin: 2rem 0;
}

.centered-section h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}
