.rules-index { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 2rem 0 3rem; padding: 1.5rem 0; border-block: 1px solid #383838; }
.rules-index a { color: #ead9b5; text-underline-offset: .25em; }
.rules-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.rules-table { width: 100%; border-collapse: collapse; color: #e8e5df; font-family: Inter, sans-serif; font-size: 1rem; line-height: 1.6; }
.rules-table caption { text-align: left; padding-bottom: .75rem; color: #bdb7aa; font-size: .875rem; }
.rules-table th, .rules-table td { text-align: left; padding: 1rem; border: 1px solid #383838; }
.rules-table th { color: #ead9b5; background: #171717; }
.rules-table td { background: #101010; }
.landing-content section[id] { scroll-margin-top: 7rem; }
.landing-content .seo-copy { margin-block: 3rem; }
@media (max-width: 600px) { .rules-table th, .rules-table td { padding: .75rem; } .rules-index { gap: .75rem 1rem; } }

.competition-page [hidden] { display: none !important; }
.competition-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.competition-page .landing-hero { padding-block: 45px 40px; }
.competition-page .landing-hero h1 { max-width: 1040px; font-size: clamp(44px,6.4vw,92px); line-height: .98; }
.competition-page .landing-hero > p:last-child { max-width: 760px; font-family: Inter,sans-serif; font-size: clamp(16px,1.5vw,20px); line-height: 1.65; }
.competition-page .landing-content { padding-top: 0; border-top: 0; }
.rules-review { color: #aaa397; font-size: .78rem; line-height: 1.7; }
.competition-page .rules-index { position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; overflow-x: auto; gap: .25rem; padding: .65rem 0; margin: 1rem 0 3rem; background: #0b0b0bf7; backdrop-filter: blur(12px); }
.rules-index a { flex: 0 0 auto; padding: .65rem .85rem; border-radius: 3px; color: #d4ccbe; font: 500 .8rem Inter,sans-serif; text-decoration: none; }
.rules-index a:hover { background: #25211b; color: #fff; }
.competition-page :is(input,select,button,a,summary):focus-visible { outline: 2px solid #ead9b5; outline-offset: 4px; }
.competition-page section[id], .competition-page details[id] { scroll-margin-top: 85px; }
.rules-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 4rem 0 1.75rem; }
.rules-section-heading h2 { margin: .5rem 0 0; font: 400 clamp(32px,4vw,52px)/1.1 'DM Serif Display',serif; color: #f0ece3; }
.rules-section-heading > p { max-width: 390px; margin: 0; color: #b9b3a8; font-size: .9rem; line-height: 1.7; }
.rules-kicker { margin: 0; color: #d8ad85; font: .7rem 'JetBrains Mono',monospace; text-transform: uppercase; letter-spacing: .12em; }
.explorer-controls { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr .85fr; gap: 1rem; padding: 1.5rem; background: #151411; border: 1px solid #3e382e; border-bottom: 0; border-radius: 8px 8px 0 0; }
.explorer-controls label, .rules-search label { display: block; color: #dcd5c8; font-size: .8rem; font-weight: 600; }
.explorer-controls label > span { font-weight: 400; color: #b9b3a8; }
.explorer-controls :is(select,input), .rules-search input { display: block; width: 100%; min-height: 48px; margin-top: .65rem; padding: .75rem; border: 1px solid #585044; border-radius: 4px; color: #fff; background: #0b0b0b; font: .9rem Inter,sans-serif; color-scheme: dark; }
.explorer-controls #weight-help { grid-column: 1 / -1; color: #b9b3a8; font-size: .75rem; margin: 0; line-height: 1.6; }
.category-result { padding: clamp(20px,3vw,40px); border: 1px solid #3e382e; border-radius: 0 0 8px 8px; background: radial-gradient(ellipse at top right,#24201755,transparent 65%),#10100e; }
.category-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.category-heading h3, .category-empty h3 { margin: .65rem 0 1.5rem; font: 400 clamp(28px,3vw,40px)/1.15 'DM Serif Display',serif; }
.season-pill { border: 1px solid #66553b; color: #e4cda6; border-radius: 30px; padding: .4rem .7rem; white-space: nowrap; font-size: .7rem; }
.category-facts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; padding: 1.25rem 0; margin: 0; border-block: 1px solid #343028; }
.category-facts dt { font-size: .7rem; color: #b1a99a; margin-bottom: .5rem; }
.category-facts dd { margin: 0; color: #efe9dd; font-size: .9rem; line-height: 1.5; }
.category-note, .category-empty p { color: #bfb8ac; line-height: 1.7; font-size: .9rem; }
.weight-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.5rem 0; }
.weight-column h4 { margin: 0 0 1rem; font-size: .85rem; color: #e7d9bc; }
.weight-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 0; }
.weight-chips li { padding: .75rem .8rem; border: 1px solid #484136; color: #ede9e0; background: #1b1915; border-radius: 4px; font: 600 1.05rem Inter,sans-serif; }
.weight-chips small { font-size: .65rem; font-weight: 400; color: #b9b3a8; }
.weight-chips .is-weight-match { color: #15120c; background: #ead4ac; border-color: #ead4ac; outline: 2px solid #ead4ac; outline-offset: 2px; }
.weight-chips .is-weight-match small { color: #393026; }
.weight-key, .category-sources, .weight-result { font-size: .78rem; line-height: 1.7; color: #bcb3a3; }
.category-sources a { display: inline-block; margin: .35rem 0; color: #e4cda6; text-underline-offset: 4px; }
.weight-result { padding: .8rem 1.25rem; border-left: 3px solid #d4b581; background: #1b1812; }
.grouping-note { padding: 1.25rem; border: 1px dashed #64513a; margin: 1.5rem 0; }
.grouping-note strong { color: #e4cda6; }
.grouping-note p { color: #bfb8ac; line-height: 1.6; font-size: .85rem; margin-bottom: 0; }
.competition-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.competition-type-grid details, .category-fallback details { border: 1px solid #39352d; border-radius: 5px; padding: 1rem 1.25rem; background: #121210; }
.competition-type-grid summary, .category-fallback summary, .veteran-groups summary { cursor: pointer; padding: .4rem 0; color: #e1d6c2; font-size: .95rem; line-height: 1.5; }
.type-number { color: #c69568; font: .75rem 'JetBrains Mono',monospace; margin-right: .7rem; }
.competition-type-grid p, .format-strip p { font-size: .85rem; line-height: 1.8; color: #c0b9ab; }
.competition-type-grid a { font-size: .8rem; color: #e4cda6; }
.format-strip { padding: 1.25rem 0; margin-top: 1rem; border-bottom: 1px solid #343028; }
.format-strip h3 { color: #ded4c0; font-size: .95rem; }
.category-fallback details { margin-block: .75rem; }
.category-fallback summary > span { float: right; font-size: .75rem; color: #bcb3a3; }
.rules-search { max-width: 650px; margin-bottom: 1.5rem; }
.rules-search > div { display: flex; gap: .75rem; align-items: end; }
.rules-search button { min-height: 48px; border: 1px solid #61543e; border-radius: 4px; padding: .75rem 1rem; color: #ead9b5; background: #201b13; cursor: pointer; }
.rules-search > p { font-size: .75rem; color: #bcb3a3; }
.rules-topic { border-block-start: 1px solid #40392d; }
.rules-topic:last-of-type { border-bottom: 1px solid #40392d; }
.rules-topic > summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; cursor: pointer; padding: 1.5rem 0; list-style: none; }
.rules-topic > summary::-webkit-details-marker { display: none; }
.rules-topic > summary h2 { margin: 0; font: 400 clamp(22px,2.4vw,32px)/1.25 'DM Serif Display',serif; color: #eee6d8; }
.rules-topic > summary > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #655235; border-radius: 50%; color: #ead4ac; transition: transform .15s; }
.rules-topic[open] > summary > span { transform: rotate(45deg); }
.rules-topic-body { padding-bottom: 1.5rem; max-width: 1080px; }
.rules-topic-body p { color: #c6beb0; font-size: .95rem; line-height: 1.8; }
.rules-topic-body a { color: #e4cda6; text-underline-offset: 3px; }
.rules-topic-body h3 { font-size: 1.05rem; color: #eee6d8; margin-top: 1.5rem; }
.rules-topic-body .landing-grid { gap: 1rem; margin-block: 1rem; }
.rules-topic-body .landing-card { padding: 1.5rem; }
.rules-topic-body .landing-card h3 { margin-top: 0; }
.osaekomi-tool { border: 1px solid #64513a; background: #19160f; padding: 1.5rem; margin: 0 0 2rem; border-radius: 5px; }
.osaekomi-tool label { color: #e7d9bc; font-size: .9rem; }
.osaekomi-tool p { margin-block: .5rem; font-size: .75rem; }
.osaekomi-reading { display: flex; align-items: baseline; gap: 1.25rem; padding-block: 1rem; color: #ead4ac; }
.osaekomi-reading output { font: 400 2.5rem 'DM Serif Display',serif; min-width: 90px; }
.osaekomi-tool input[type="range"] { display: block; width: 100%; min-height: 36px; accent-color: #e5c693; }
.range-marks { display: flex; justify-content: space-between; font-size: .7rem; color: #bcb3a3; }
.osaekomi-tool .prior-score { display: flex; align-items: center; gap: .65rem; margin-top: 1.5rem; }
.prior-score input { width: 20px; height: 20px; accent-color: #e5c693; }
@media (max-width: 950px) { .explorer-controls { grid-template-columns: 1fr 1fr; } .rules-section-heading { align-items: start; flex-direction: column; gap: 1rem; } .rules-section-heading > p { max-width: 650px; } }
@media (max-width: 600px) {
  .competition-page .landing-hero { padding-block: 32px 25px; }
  .competition-page .breadcrumbs { flex-wrap: wrap; line-height: 1.6; }
  .competition-page .rules-index { margin-bottom: 2rem; }
  .explorer-controls { padding: 1rem; gap: 1rem .75rem; }
  .explorer-controls label { font-size: .73rem; }
  .explorer-controls :is(select,input) { font-size: 16px; padding: .55rem; }
  .explorer-controls label:first-child, .explorer-controls label:nth-child(2) { grid-column: 1 / -1; }
  .category-facts { grid-template-columns: 1fr; gap: 1rem; }
  .category-facts div { display: grid; grid-template-columns: 105px 1fr; gap: .5rem; }
  .category-facts dt { margin: 0; line-height: 1.5; }
  .weight-columns { grid-template-columns: 1fr; gap: 1.25rem; }
  .competition-type-grid { grid-template-columns: 1fr; }
  .category-heading { flex-direction: column-reverse; gap: .75rem; }
  .category-heading h3 { margin-bottom: 1rem; }
  .rules-section-heading { margin-top: 2.5rem; }
  .osaekomi-tool { padding: 1rem; }
  .osaekomi-reading strong { font-size: .9rem; }
  .range-marks { font-size: .6rem; }
  .category-fallback summary > span { display: block; float: none; }
}
@media print {
  .competition-page :is(.rules-index,.explorer-controls,.rules-search,.osaekomi-tool,.nav,.footer) { display: none !important; }
  .competition-page { color: #111; background: #fff; }
}
