/* JRDC Rules & Regulations: light reading surface */
.jrdc-rules-page .pt-blog-contain, .jrdc-rules-page .entry-content, .jrdc-rules-page article { background: transparent; }
.jrdc-rules { --r-red: #c62828; --r-ink: #16161a; --r-muted: #5b5d66; --r-line: #e2e3e8; --r-soft: #f6f6f8; --r-gold: #b8860b; background: #fff; color: var(--r-ink); border-radius: 8px; padding: 32px; margin: 0 0 40px; box-shadow: 0 1px 0 rgba(0,0,0,.04); font-size: 17px; line-height: 1.7; }
.jrdc-rules p, .jrdc-rules li, .jrdc-rules td, .jrdc-rules th, .jrdc-rules figcaption { color: var(--r-ink) !important; }
.jrdc-rules h2, .jrdc-rules h3 { color: var(--r-ink) !important; text-transform: none; letter-spacing: 0; }
.jrdc-rules a { color: var(--r-red) !important; text-underline-offset: 3px; }
.jrdc-rules-note { margin: 0 0 18px; color: var(--r-muted) !important; font-size: 15px; max-width: 75ch; }
.jrdc-rules-search { display: block; }
.jrdc-rules-search input { width: 100%; box-sizing: border-box; padding: 14px 16px 14px 44px; font-size: 17px; border: 2px solid var(--r-line); border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5d66' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 20px; color: var(--r-ink) !important; }
.jrdc-rules-search input:focus { outline: none; border-color: var(--r-red); box-shadow: 0 0 0 3px rgba(198,40,40,.15); }
.jrdc-rules-count { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--r-muted) !important; }
.jrdc-rules-tabs { display: flex; gap: 6px; margin: 18px 0 0; border-bottom: 2px solid var(--r-line); overflow-x: auto; scrollbar-width: thin; }
.jrdc-rules-tabs button { flex: 0 0 auto; appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 16px; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--r-muted); cursor: pointer; white-space: nowrap; border-radius: 6px 6px 0 0; }
.jrdc-rules-tabs button:hover { color: var(--r-ink); background: var(--r-soft); }
.jrdc-rules-tabs button[aria-selected="true"] { color: var(--r-red); border-bottom-color: var(--r-red); }
.jrdc-rules-tabs button:focus-visible { outline: 3px solid var(--r-gold); outline-offset: -3px; }
.jrdc-rules:not(.is-js) .jrdc-rules-tabs { display: none; }
.jrdc-rules-panel { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-areas: "head head" "intro intro" "toc body"; gap: 0 40px; padding-top: 26px; }
.jrdc-rules-panel[hidden] { display: none; }
.jrdc-rules-head { grid-area: head; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--r-line); margin-bottom: 20px; }
.jrdc-rules-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--r-red) !important; }
.jrdc-rules .jrdc-rules-doc-title { margin: 0 0 4px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.jrdc-rules-blurb { margin: 0; color: var(--r-muted) !important; }
.jrdc-rules-pdf { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 2px solid var(--r-red); border-radius: 4px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.jrdc-rules-pdf::before { content: "\2193"; }
.jrdc-rules a.jrdc-rules-pdf:hover { background: var(--r-red); color: #fff !important; }
.jrdc-rules-intro { grid-area: intro; color: var(--r-muted); margin-bottom: 8px; }
.jrdc-rules-intro p { margin: 0 0 10px; color: #3c3e46 !important; }
.jrdc-rules-intro ul { margin: 0 0 12px 1.2em; }
.jrdc-rules-toc, .jrdc-rules-az { grid-area: toc; align-self: start; position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; padding: 16px 16px 16px 0; font-size: 14px; line-height: 1.45; }
.jrdc-rules-toc-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--r-muted) !important; }
.jrdc-rules-toc ol { margin: 0; padding: 0 0 0 1.4em; }
.jrdc-rules-toc li { margin: 0 0 8px; padding-left: 2px; color: var(--r-muted) !important; }
.jrdc-rules-toc a { color: var(--r-ink) !important; text-decoration: none; }
.jrdc-rules-toc a:hover { color: var(--r-red) !important; text-decoration: underline; }
.jrdc-rules-az { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.jrdc-rules-az a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--r-line); border-radius: 4px; font-weight: 700; text-decoration: none; color: var(--r-ink) !important; }
.jrdc-rules-az a:hover { background: var(--r-red); border-color: var(--r-red); color: #fff !important; }
.jrdc-rules-body { grid-area: body; min-width: 0; }
.jrdc-rules-part { scroll-margin-top: 110px; }
.jrdc-rules-part + .jrdc-rules-part { margin-top: 36px; }
.jrdc-rules .jrdc-rules-part > h2 { margin: 0 0 14px; padding: 12px 16px; font-size: 22px; line-height: 1.25; background: var(--r-ink); color: #fff !important; border-left: 5px solid var(--r-red); border-radius: 0 4px 4px 0; }
.jrdc-rules-rule { scroll-margin-top: 110px; padding: 6px 0 10px; border-bottom: 1px solid var(--r-line); transition: background-color .6s ease; }
.jrdc-rules-rule:last-child { border-bottom: 0; }
.jrdc-rules-rule.is-target { background: #fff6d6; }
.jrdc-rules .jrdc-rules-rule h3 { margin: 14px 0 8px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.jrdc-rules-anchor { margin-left: 8px; font-weight: 400; opacity: 0; text-decoration: none; }
.jrdc-rules-rule h3:hover .jrdc-rules-anchor, .jrdc-rules-anchor:focus { opacity: .6; }
.jrdc-rules-rule p { margin: 0 0 10px; }
.jrdc-rules-bullets { margin: 0 0 12px 1.3em; padding: 0; }
.jrdc-rules-lettered { list-style: none; margin: 0 0 12px 1em; padding: 0; }
.jrdc-rules-bullets li, .jrdc-rules-lettered li { margin: 0 0 6px; }
.jrdc-rules-xref { font-weight: 600; text-decoration: underline dotted; }
.jrdc-rules-table { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--r-line); border-radius: 6px; }
.jrdc-rules-table table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.jrdc-rules-table th, .jrdc-rules-table td { padding: 9px 12px; border-bottom: 1px solid var(--r-line); text-align: left; white-space: nowrap; background: #fff !important; }
.jrdc-rules-table thead th { background: var(--r-soft) !important; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--r-muted) !important; }
.jrdc-rules-table tbody tr:last-child > * { border-bottom: 0; }
.jrdc-rules-table tbody tr:nth-child(even) > * { background: #fafafb !important; }
.jrdc-rules-fig { margin: 14px 0 18px; }
.jrdc-rules-fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--r-line); border-radius: 6px; background: #fff; }
.jrdc-rules-fig figcaption { margin-top: 8px; font-size: 14px; color: var(--r-muted) !important; }
.jrdc-flag { width: 150px; height: 100px; margin: 4px 0 12px; border: 1px solid #c9cad0; border-radius: 3px; }
.jrdc-flag-green { background: #00b140; }
.jrdc-flag-yellow { background: #ffd500; }
.jrdc-flag-red { background: #e10600; }
.jrdc-flag-white { background: #fff; }
.jrdc-flag-blue { background: #4aa3ff; }
.jrdc-flag-surface { background: repeating-linear-gradient(90deg, #e10600 0 18.75px, #ffd500 18.75px 37.5px); }
.jrdc-flag-meatball { background: radial-gradient(circle at center, #ff6a00 0 27px, #000 28px); }
.jrdc-flag-warning { background: linear-gradient(to bottom right, #000 50%, #fff 50%); }
.jrdc-flag-cross { background: linear-gradient(to top right, transparent calc(50% - 7px), #fff calc(50% - 7px) calc(50% + 7px), transparent calc(50% + 7px)), linear-gradient(to bottom right, transparent calc(50% - 7px), #fff calc(50% - 7px) calc(50% + 7px), transparent calc(50% + 7px)), #000; }
.jrdc-flag-chequered { background: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 25px 25px; }
.jrdc-grid { display: grid; gap: 10px; max-width: 360px; margin: 12px 0 16px; padding: 16px; background: var(--r-soft); border: 1px solid var(--r-line); border-radius: 6px; font-size: 14px; }
.jrdc-grid-start { text-align: center; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px; background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 12px 12px; color: transparent; position: relative; }
.jrdc-grid-start::after { content: "START GRID"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 0 4px #000, 0 0 2px #000; }
.jrdc-grid-class { display: grid; gap: 6px; }
.jrdc-grid-label { font-weight: 700; color: var(--r-red); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.jrdc-grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jrdc-grid-row span { padding: 6px; text-align: center; background: #fff; border: 1px solid var(--r-line); border-radius: 4px; font-weight: 700; }
.jrdc-grid-row:nth-child(even) span:last-child, .jrdc-grid-row span:last-child { transform: translateY(10px); }
.jrdc-grid-row { margin-bottom: 8px; }
.jrdc-grid-gap { text-align: center; font-style: italic; color: var(--r-muted); border-top: 2px dashed #c9cad0; border-bottom: 2px dashed #c9cad0; padding: 4px; }
.jrdc-rules-steps { margin: 0 0 12px 1.4em; }
.jrdc-rules.is-searching .jrdc-rules-intro, .jrdc-rules.is-searching .jrdc-rules-lead { display: none; }
.jrdc-rules .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
  .jrdc-rules { padding: 20px 16px; font-size: 16px; }
  .jrdc-rules-panel { grid-template-columns: 1fr; grid-template-areas: "head" "intro" "toc" "body"; }
  .jrdc-rules-toc, .jrdc-rules-az { position: static; max-height: none; padding: 14px; margin-bottom: 20px; background: var(--r-soft); border-radius: 6px; }
  .jrdc-rules-toc ol { columns: 2; column-gap: 24px; }
  .jrdc-rules-pdf { width: 100%; justify-content: center; }
}
@media (max-width: 560px) { .jrdc-rules-toc ol { columns: 1; } .jrdc-rules-table th, .jrdc-rules-table td { padding: 8px 10px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .jrdc-rules-rule { transition: none; } }
@media print { .jrdc-rules-tabs, .jrdc-rules-search, .jrdc-rules-toc, .jrdc-rules-az { display: none !important; } .jrdc-rules-panel[hidden] { display: grid !important; } }
.jrdc-rules-top { display: flow-root; }
.jrdc-rules-top *, .jrdc-rules-search, .jrdc-rules-search input { float: none !important; }
.jrdc-rules-tabs, .jrdc-rules-panel { clear: both; }
.jrdc-rules-search input, .jrdc-rules-search input::placeholder { text-transform: none !important; }
.jrdc-grid-start { background: #16161a; color: #fff; border-top: 8px solid transparent; border-image: repeating-linear-gradient(90deg, #000 0 8px, #fff 8px 16px) 8; padding: 8px; }
.jrdc-grid-start::after { content: none; }
.jrdc-rules .jrdc-grid-start { color: #fff !important; }
