.tour-rules-copy { color: var(--color-on-surface-variant); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.tour-rules-copy > * + * { margin-top: 1rem; }
.tour-rules-copy h1, .tour-rules-copy h2, .tour-rules-copy h3, .tour-rules-copy h4, .tour-rules-copy h5, .tour-rules-copy h6 { margin-top: 2rem; color: var(--color-primary-dark); font-family: "Manrope", sans-serif; font-weight: 700; line-height: 1.25; }
.tour-rules-copy h1, .tour-rules-copy h2 { font-size: 24px; }
.tour-rules-copy h3 { font-size: 20px; }
.tour-rules-copy ul { list-style: disc; padding-left: 1.5rem; }
.tour-rules-copy ol { list-style: decimal; padding-left: 1.5rem; }
.tour-rules-copy li + li { margin-top: .35rem; }
.tour-rules-copy a { color: var(--color-primary-dark); text-decoration: underline; }
.tour-rules-copy a:hover { color: var(--color-surface-tint); }
.tour-rules-copy blockquote { padding: 1rem 1.25rem; background: var(--color-surface-container-low); }
.tour-rules-copy pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: var(--color-surface-container-low); }
.tour-rules-page h1 { overflow-wrap: anywhere; }
.tour-rules-content { max-width: 1440px; margin: 0 auto; padding: 28px 16px 48px; }
.tour-rules-document { container-type: inline-size; }
.tour-rules-intro { max-width: 780px; margin-bottom: 28px; }
.tour-rules-layout { display: grid; align-items: start; gap: 24px; }
.tour-rule-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; }
.tour-rule-card { min-width: 0; padding: 22px 18px; background: var(--color-surface-container-low); }
.tour-rule-card:nth-child(even) { background: var(--color-surface-container-lowest); }
.tour-rule-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; }
.tour-rule-number { display: grid; place-items: center; width: 34px; height: 34px; background: var(--color-primary-dark); color: white; font: 700 11px "Manrope", sans-serif; }
.tour-rule-title { margin: 0; color: var(--color-primary-dark); font: 700 18px/1.2 "Manrope", sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tour-rule-body { margin: 13px 0 0 46px; font-size: 13px; line-height: 1.7; }
.tour-rule-body > :first-child, .tour-rules-notes > :first-child { margin-top: 0; }
.tour-rules-notes { min-width: 0; padding: 24px; background: var(--color-tertiary-fixed); color: var(--color-on-tertiary-fixed); font-size: 13px; }
.tour-rules-notes h2 { font-size: 23px; }
@media (min-width: 640px) {
  .tour-rules-content { padding: 36px 32px 56px; }
}
@container (min-width: 600px) {
  .tour-rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 1000px) {
  .tour-rules-with-notes { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}
.rules-toggle { display: flex; align-items: center; gap: 10px; color: var(--manage-primary); font-weight: 700; }
.rules-toggle input[type="checkbox"] { width: 18px; height: 18px; flex: none; accent-color: var(--manage-primary); }
.rules-help { color: var(--manage-muted); font-size: 11px; line-height: 1.6; }
#rules textarea { width: 100%; resize: vertical; padding: 12px; background: var(--manage-low); font: 13px/1.6 monospace; }
.rules-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rules-preview { margin-top: 24px; padding: 20px; background: var(--manage-low); }
.rules-preview > h2 { margin: 15px 0; overflow-wrap: anywhere; }
@media print {
  .tour-rules-page { margin: 0 !important; }
  .tour-rules-content { padding: 16px 0; }
  .tour-rules-layout { display: block; }
  .tour-rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-rule-card, .tour-rules-notes { break-inside: avoid; }
  .tour-rules-copy { font-size: 11px; }
  .tour-rule-title, .tour-rules-copy h2 { break-after: avoid; }
  .tour-rules-notes { margin-top: 20px; }
}
