/**
 * Shared prose treatment — matches About / History / Judges Seat.
 * Wrapper: .dwc-prose
 * Also styles legacy Finals class names when nested inside .dwc-prose.
 */

.dwc-prose {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.dwc-prose > .dwc-intro,
.dwc-prose > .dwc-entry-info,
.dwc-prose > .dwc-final-message {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Section wrappers used by rules search — invisible in the prose flow */
.dwc-prose > .dwc-entry-info > h2:first-child {
  margin-top: 2.75em;
}

.dwc-prose h2,
.dwc-prose .dwc-intro-title,
.dwc-prose .dwc-info-title,
.dwc-prose .dwc-entry-title {
  margin: 2.75em 0 0.85em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  letter-spacing: -0.01em;
}

.dwc-prose h2:first-child,
.dwc-prose .dwc-intro-title:first-child,
.dwc-prose > .dwc-intro:first-child .dwc-intro-title,
.dwc-prose > .dwc-entry-info:first-child .dwc-info-title {
  margin-top: 0;
}

.dwc-prose h3,
.dwc-prose .dwc-info-subtitle,
.dwc-prose .dwc-deadlines-heading {
  margin: 2em 0 0.75em;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #222;
}

.dwc-prose h3:first-child,
.dwc-prose .dwc-info-subtitle:first-child,
.dwc-prose .dwc-deadlines-heading:first-child {
  margin-top: 0;
}

.dwc-prose p,
.dwc-prose .dwc-intro-text,
.dwc-prose .dwc-info-card p,
.dwc-prose .dwc-rule,
.dwc-prose .dwc-venue-details dd {
  margin: 0 0 1.25em;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #222;
}

.dwc-prose p:last-child,
.dwc-prose .dwc-intro-text:last-child {
  margin-bottom: 0;
}

.dwc-prose a,
.dwc-prose .dwc-intro-link,
.dwc-prose .dwc-info-link {
  color: #b22222;
  font-weight: 600;
  text-decoration: none;
}

.dwc-prose a:hover,
.dwc-prose .dwc-intro-link:hover,
.dwc-prose .dwc-info-link:hover {
  text-decoration: underline;
}

.dwc-prose .dwc-info-card,
.dwc-prose .dwc-deadlines-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.dwc-prose ul:not(.dwc-meta-list):not(.dwc-social-list) {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.dwc-prose ul:not(.dwc-meta-list):not(.dwc-social-list) li,
.dwc-prose .dwc-deadlines-list li,
.dwc-prose .dwc-info-card ul li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.2rem;
  border-bottom: 1px solid #eee;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #222;
  margin: 0;
}

.dwc-prose ul:not(.dwc-meta-list):not(.dwc-social-list) li:last-child,
.dwc-prose .dwc-deadlines-list li:last-child,
.dwc-prose .dwc-info-card ul li:last-child {
  border-bottom: 0;
}

.dwc-prose ul:not(.dwc-meta-list):not(.dwc-social-list) li::before,
.dwc-prose .dwc-deadlines-list li::before,
.dwc-prose .dwc-info-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #b22222;
}

.dwc-prose .dwc-deadlines-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

/* History-style meta rows (city / dates / fees) */
.dwc-prose .dwc-meta-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.dwc-prose .dwc-meta-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #222;
}

.dwc-prose .dwc-meta-list li:last-child {
  border-bottom: 0;
}

.dwc-prose .dwc-meta-list .label {
  font-weight: 700;
  color: #b22222;
}

.dwc-prose .dwc-intro-highlight,
.dwc-prose .dwc-notice-highlight,
.dwc-prose .dwc-important-box {
  background: transparent;
  border: 0;
  border-left: 3px solid #b22222;
  border-radius: 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #222;
}

.dwc-prose .dwc-important-box strong {
  color: #b22222;
}

.dwc-prose .dwc-rule-num {
  font-weight: 700;
  color: #b22222;
  margin-right: 0.35rem;
}

.dwc-prose .dwc-info-button,
.dwc-prose .dwc-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0.35rem 0 1.5rem;
  padding: 0 1.4rem;
  border: 2px solid #b22222;
  border-radius: 12px;
  background: #b22222;
  color: #fff !important;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dwc-prose .dwc-info-button:hover,
.dwc-prose .dwc-download-btn:hover {
  background: #951c1c;
  border-color: #951c1c;
  color: #fff !important;
}

.dwc-prose .dwc-venue-details {
  margin: 0 0 1.5em;
}

.dwc-prose .dwc-venue-details dt {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #777;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dwc-prose .dwc-venue-details dt:first-child {
  margin-top: 0;
}

.dwc-prose .dwc-venue-details dd {
  margin: 0.3rem 0 0;
  font-weight: 500;
}

.dwc-prose .dwc-map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0.5rem 0 0.65rem;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f7f7;
}

.dwc-prose .dwc-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dwc-prose .dwc-map-caption {
  margin: 0 0 1.25em;
  font-size: 0.95rem;
  color: #777;
}

.dwc-prose .dwc-social-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.dwc-prose .dwc-social-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #222;
}

.dwc-prose .dwc-social-list li:last-child {
  border-bottom: 0;
}

.dwc-prose .dwc-table-scroll {
  margin: 1.25rem 0 1.5rem;
}

.dwc-prose .dwc-table-hint {
  display: none;
}

.dwc-prose .dwc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
}

.dwc-prose .dwc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}

.dwc-prose .dwc-table th {
  background: #b22222;
  color: #fff;
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 700;
  vertical-align: top;
}

.dwc-prose .dwc-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  line-height: 1.55;
  color: #222;
}

.dwc-prose .dwc-table tr:nth-child(even) td {
  background: #fafafa;
}

.dwc-prose .dwc-score-band {
  margin: 1rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dwc-prose .dwc-score-band strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #b22222;
}

.dwc-prose .dwc-score-band p {
  margin: 0;
}

/* Quiet closing line — not a shout banner */
.dwc-prose .dwc-final-message {
  margin: 2.75em 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid #ececec;
  text-align: left;
}

.dwc-prose .dwc-final-message-text {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  color: #333;
  letter-spacing: 0;
  text-transform: none;
}

.dwc-prose .dwc-final-message-text span {
  color: #b22222;
  font-weight: 700;
}

/* Legacy grids flattened into prose rhythm */
.dwc-prose .dwc-fact-grid,
.dwc-prose .dwc-price-grid,
.dwc-prose .dwc-age-grid {
  display: block;
  margin: 0 0 1.5em;
}

.dwc-prose .dwc-fact-item,
.dwc-prose .dwc-price-item,
.dwc-prose .dwc-age-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dwc-prose .dwc-fact-item:last-child,
.dwc-prose .dwc-price-item:last-child,
.dwc-prose .dwc-age-item:last-child {
  border-bottom: 0;
}

.dwc-prose .dwc-fact-label,
.dwc-prose .dwc-price-title,
.dwc-prose .dwc-age-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #b22222;
}

.dwc-prose .dwc-fact-value,
.dwc-prose .dwc-price-amount,
.dwc-prose .dwc-age-range {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: #222;
}

.dwc-prose .dwc-price-note {
  display: none;
}

@media (max-width: 800px) {
  .dwc-prose .dwc-table-hint {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-style: italic;
    color: #999;
  }

  .dwc-prose .dwc-table {
    min-width: 640px;
  }
}

@media (max-width: 600px) {
  .dwc-prose {
    padding: 32px 20px 64px;
  }

  .dwc-prose h2,
  .dwc-prose .dwc-intro-title,
  .dwc-prose .dwc-info-title,
  .dwc-prose .dwc-entry-title {
    font-size: 1.3rem;
    margin-top: 2.25em;
  }

  .dwc-prose h3,
  .dwc-prose .dwc-info-subtitle {
    font-size: 1.1rem;
  }

  .dwc-prose p,
  .dwc-prose .dwc-intro-text,
  .dwc-prose .dwc-info-card p,
  .dwc-prose .dwc-rule {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .dwc-prose .dwc-meta-list li,
  .dwc-prose .dwc-fact-item,
  .dwc-prose .dwc-price-item,
  .dwc-prose .dwc-age-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .dwc-prose .dwc-map-frame {
    border-radius: 14px;
  }
}
