/* Gotti Rules page — collapsible sections, no post chrome */
#gotti-rules-page.gr-page {
  background: rgba(20, 14, 16, 0.92) !important;
  border: 1px solid rgba(201, 162, 39, 0.18) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45) !important;
  margin: 16px 0 40px !important;
  overflow: hidden !important;
}
#gotti-rules-page .inner { padding: 0 !important; }
.gr-hero {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(107,15,26,0.35), rgba(15,10,12,0.2));
}
.gr-kicker {
  margin: 0 0 6px !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #c9a227 !important;
  font-weight: 600 !important;
}
.gr-title {
  margin: 0 0 10px !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #f0e6d2 !important;
  letter-spacing: -0.02em !important;
}
.gr-lede {
  margin: 0 0 10px !important;
  color: #cfc4b0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  max-width: 72ch;
}
.gr-meta {
  margin: 0 0 16px !important;
  color: #8a8070 !important;
  font-size: 12px !important;
}
.gr-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.gr-btn {
  appearance: none;
  border: 1px solid rgba(201,162,39,0.45);
  background: linear-gradient(180deg, #8e1422, #6b0f1a);
  color: #f5e6c8 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.gr-btn:hover { filter: brightness(1.08); }
.gr-btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.14);
  color: #cfc4b0 !important;
}
.gr-content { padding: 12px 16px 24px; }
.gr-section {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(35, 28, 30, 0.85);
  margin: 0 0 10px;
  overflow: hidden;
}
.gr-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #f0e6d2 !important;
  background: rgba(0,0,0,0.2);
  user-select: none;
}
.gr-summary::-webkit-details-marker { display: none; }
.gr-summary:hover { background: rgba(107,15,26,0.25); }
.gr-chev {
  width: 10px; height: 10px;
  border-right: 2px solid #c9a227;
  border-bottom: 2px solid #c9a227;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-top: -4px;
}
.gr-section[open] .gr-chev {
  transform: rotate(225deg);
  margin-top: 4px;
}
.gr-body {
  padding: 8px 18px 18px;
  color: #c8bdaa !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.gr-body p { margin: 0 0 12px !important; color: inherit !important; }
.gr-body strong { color: #f0e6d2 !important; font-weight: 600 !important; }
.gr-body code {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  color: #e4c45a !important;
}
.gr-sub {
  margin: 18px 0 8px !important;
  font-size: 15px !important;
  color: #e4c45a !important;
  font-weight: 600 !important;
  border-left: 3px solid #6b0f1a;
  padding-left: 10px !important;
}
.gr-body ul { margin: 0 0 12px 1.2em !important; padding: 0 !important; }
.gr-body li { margin: 0 0 6px !important; }
.gr-body blockquote {
  margin: 0 0 14px !important;
  padding: 10px 14px !important;
  border-left: 3px solid #c9a227 !important;
  background: rgba(0,0,0,0.28) !important;
  color: #b8ad9a !important;
}
.gr-table-wrap { overflow-x: auto; margin: 0 0 14px; }
.gr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.gr-table th, .gr-table td {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.gr-table th {
  background: rgba(107,15,26,0.35);
  color: #f0e6d2 !important;
  font-weight: 600;
}
.gr-table td { color: #c8bdaa !important; }
.gr-table tr:nth-child(even) td { background: rgba(0,0,0,0.15); }
.gr-footnote {
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #8a8070 !important;
  font-size: 12px !important;
}
.gr-footnote p { margin: 0 !important; }

/* Hide accidental post UI if theme injects anything */
#gotti-rules-page .post, #gotti-rules-page .buttons, #gotti-rules-page .action-bar { display: none !important; }
