.city-rules-page{--rules-header-height:64px;--rules-update-height:52px;background:#050505;color:#e5e5e9}
.city-rules-page .site-header{position:sticky;inset:0 0 auto;z-index:90;height:var(--rules-header-height);background:#070707;backdrop-filter:none;border-bottom:1px solid #282828}
.city-rules-page .social-rail{display:none}
.city-rules-page .rulebook-main{padding:0;min-height:100svh;background:#050505}
.rules-update-bar{position:sticky;top:var(--rules-header-height);z-index:80;height:var(--rules-update-height);padding:8px 24px;display:grid;place-items:center;background:var(--green);color:#111b06;text-align:center;font-size:14px;line-height:1.45}
.rules-update-bar p{margin:0}.rules-update-bar strong{font-weight:700}.rules-update-bar time{font-weight:800;white-space:nowrap}
.rules-mobile-toolbar{display:none}
.rulebook-layout{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start}
.rulebook-sidebar{position:sticky;top:calc(var(--rules-header-height) + var(--rules-update-height));height:calc(100svh - var(--rules-header-height) - var(--rules-update-height));overflow-y:auto;padding:26px 20px 30px;background:#191919;border-right:1px solid #303030;scrollbar-width:thin;scrollbar-color:#444 #191919}
.rules-sidebar-brand{display:block;width:85px;margin:7px 10px 28px}
.rules-sidebar-brand img{width:85px;height:70px;object-fit:contain}
.rules-search-control{display:flex;align-items:center;gap:8px;border:2px solid var(--green);border-radius:10px;background:#0a0a0a;min-height:44px;padding:7px 10px}
.rules-search-control:focus-within{box-shadow:0 0 0 3px #a0f33c25}
.rules-search-control svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round}
.rules-search-control input{width:100%;min-width:0;flex:1;background:none;border:0;padding:0;color:white;outline:0;font-size:14px;line-height:1.4;text-overflow:ellipsis}
.rules-search-control input::placeholder{color:#898989}
.rules-search-control input::-webkit-search-cancel-button{display:none}
.rules-search-control kbd{font-family:inherit;font-size:12px;line-height:1;border:1px solid #444;padding:2px 5px;color:#aaa;border-radius:3px}
.rules-search-control button{border:0;border-radius:4px;color:#ccc;background:#303030;width:24px;height:24px;flex-shrink:0;font-size:21px;line-height:1;padding:0}
.rules-results{font-size:12px;color:#929292;line-height:1.5;margin:12px 0 18px;min-height:18px}
.rules-menu details{margin:0 0 1px}
.rules-menu summary{list-style:none;display:flex;align-items:center;gap:10px;padding:11px 5px;cursor:pointer;color:#bdbdbd;font-size:14px;font-weight:600;line-height:1.5;text-transform:uppercase}
.rules-menu summary::-webkit-details-marker{display:none}
.rules-menu summary:before{content:"";flex-shrink:0;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.rules-menu details[open]>summary:before{transform:rotate(45deg)}
.rules-menu summary small{margin-left:auto;color:#7d7d7d;font-size:11px;font-weight:400}
.rules-menu summary:hover,.rules-menu details[open]>summary{color:var(--green)}
.rules-submenu{border-left:1px solid #3b3b3b;margin:0 0 12px 8px;padding-left:10px}
.rules-submenu a{display:block;padding:8px 6px;color:#b0b0b0;font-size:13px;line-height:1.5;border-radius:4px}
.rules-submenu a span{color:var(--green);white-space:nowrap}
.rules-submenu a:hover,.rules-submenu a[aria-current=location]{color:white;background:#a0f33c12}
.rules-submenu a.rules-category-jump{font-size:12px;color:#888}
.rules-original{display:block;margin-top:26px;padding:15px 5px 0;border-top:1px solid #333;color:var(--green);font-size:14px;line-height:1.5}
.rulebook-content{min-width:0;background:#050505;padding-bottom:60px}
.rulebook-hero{position:relative;isolation:isolate;overflow:hidden;text-align:center;padding:70px 40px 44px}
.rulebook-banner{position:absolute;inset:0 0 auto;width:100%;height:430px;object-fit:cover;object-position:center 44%;filter:grayscale(1) brightness(.55);opacity:.56;z-index:-2}
.rulebook-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#050505 18%,#05050500 88%),linear-gradient(90deg,#05050540,#05050510)}
.rulebook-hero-logo{width:220px;height:184px;object-fit:contain;margin:0 auto 100px;filter:drop-shadow(0 8px 22px #000a)}
.rulebook-hero h1{color:var(--green);font-size:48px;font-weight:800;line-height:1.2;letter-spacing:-.02em;margin:0 0 20px;text-shadow:0 0 30px #a0f33c20}
.rulebook-hero>p{max-width:730px;margin:0 auto;color:#d4d4da;font-size:17px;line-height:1.65}
.rulebook-counts{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;margin-top:23px}
.rulebook-counts>span{border:1px solid #323232;border-radius:999px;padding:4px 15px;font-size:13px;line-height:1.5;color:#a9a9ae}
.rulebook-counts strong{color:#eee;font-weight:700}
.rulebook-body{width:calc(100% - 112px);max-width:900px;margin:0 auto}
.rulebook-status{border:1px solid #30372b;border-radius:8px;background:#a0f33c05;margin-bottom:42px;font-size:14px;line-height:1.65;color:#aeadb4}
.rulebook-status summary{padding:14px 18px;color:#cbd7bd;cursor:pointer;line-height:1.6}
.rulebook-status p{padding:0 18px 18px;margin:0}
.rulebook-category{margin:0 0 58px;scroll-margin-top:145px}
.rulebook-category-heading{text-align:center;margin:0 0 22px}
.rulebook-category-heading h2{font-size:32px;line-height:1.3;font-weight:800;color:var(--green);text-transform:uppercase;margin:0 0 9px}
.rulebook-category-heading>p{font-size:14px;margin:0;color:#929292}
.law-entry{padding:24px 0 28px;border-bottom:1px solid #ffffff0d;scroll-margin-top:145px}
.law-entry h3{font-size:20px;line-height:1.5;color:#f0f0f2;margin:0 0 14px;font-weight:700}
.law-entry h3>span{color:var(--green)}
.law-entry p,.law-entry li{font-size:17px;line-height:1.8;color:#c3c3ca}
.law-entry p{margin:0 0 16px}
.law-entry ul{margin:0 0 16px;padding-left:26px}
.law-entry li{padding-left:5px;margin-bottom:9px}
.law-entry li::marker{color:var(--green)}
.law-entry a:not(.rule-source-link){color:#c6ed99;text-decoration:underline;text-underline-offset:3px}
.rule-source-link{font-size:13px;color:#85858b;text-decoration:underline;text-underline-offset:4px}
.rule-source-link:hover{color:var(--green)}
.rule-discord-scope{display:inline-block;margin:0 0 15px;padding:3px 10px;color:#a6d477;background:#a0f33c0c;border:1px solid #a0f33c2c;border-radius:4px;font-size:12px;line-height:1.6}
.rulebook-appendix-note{color:#acacb4;border-left:2px solid var(--green);padding-left:18px;font-size:16px;line-height:1.75}
.rules-table-wrap{overflow:auto;margin:12px 0 22px;border:1px solid #333;border-radius:8px}
.rules-table-wrap table{border-collapse:collapse;width:100%;min-width:360px;font-size:16px;text-align:left}
.rules-table-wrap th,.rules-table-wrap td{padding:12px 18px;border-bottom:1px solid #2c2c2c}
.rules-table-wrap th{background:#191d14;color:#c5e6a3;font-weight:600}.rules-table-wrap td{color:#c6c6cc}.rules-table-wrap tr:last-child td{border-bottom:0}
.law-entry pre{overflow:auto;padding:18px;border:1px solid #333;background:#141414;border-radius:8px;font-size:14px}
.rules-empty{padding:45px 25px;border:1px solid #333;text-align:center;border-radius:10px;margin-bottom:50px}
.rules-empty h2{font-size:27px;line-height:1.3;color:var(--green);margin:0 0 15px}.rules-empty p{color:#aaa;margin:0}
.rulebook-endnote{color:#808086;font-size:13px;line-height:1.75;border-top:1px solid #222;padding-top:24px}
.rulebook-main.is-searching .rulebook-hero{display:none}.rulebook-main.is-searching .rulebook-body{padding-top:30px}
@media(min-width:1900px){.rulebook-layout{grid-template-columns:300px minmax(0,1fr)}.rulebook-hero{padding-top:90px}.rulebook-hero-logo{margin-bottom:125px}.rulebook-hero h1{font-size:50px}}
@media(min-width:821px) and (max-width:1100px){.rulebook-layout{grid-template-columns:250px minmax(0,1fr)}.rulebook-sidebar{padding-inline:16px}.rulebook-body{width:calc(100% - 64px)}.rulebook-hero{padding-inline:30px}.rulebook-hero h1{font-size:40px}.rulebook-category-heading h2{font-size:29px}}
@media(max-width:820px){
  .city-rules-page{--rules-header-height:76px;--rules-update-height:76px;--rules-mobile-height:50px}
  .rules-update-bar{padding:9px 18px;font-size:13px}
  .rules-mobile-toolbar{display:block;position:sticky;top:calc(var(--rules-header-height) + var(--rules-update-height));height:var(--rules-mobile-height);z-index:82;background:#171717;border-bottom:1px solid #333}
  .rules-mobile-toolbar button{display:flex;align-items:center;gap:12px;justify-content:center;width:100%;height:100%;border:0;border-radius:0;background:none;color:var(--green);font-weight:700;font-size:15px}
  .rules-mobile-toolbar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  .rulebook-layout{display:block}
  .rulebook-sidebar{display:none;position:fixed;top:calc(var(--rules-header-height) + var(--rules-update-height) + var(--rules-mobile-height));left:0;right:0;height:calc(100svh - var(--rules-header-height) - var(--rules-update-height) - var(--rules-mobile-height));z-index:84;padding:22px 24px 40px;border-right:0;box-shadow:0 18px 35px #0009}
  .rulebook-sidebar.is-open{display:block}.rules-sidebar-brand{display:none}.rules-search-control{margin-bottom:8px}.rules-search-control input{font-size:16px}.rules-menu summary{font-size:15px;padding-block:12px}.rules-submenu a{font-size:15px}
  .rulebook-hero{padding:38px 24px 34px}.rulebook-banner{height:320px}.rulebook-hero-logo{width:165px;height:140px;margin-bottom:55px}.rulebook-hero h1{font-size:36px;margin-bottom:18px}.rulebook-hero>p{font-size:16px}.rulebook-counts{gap:7px;margin-top:20px}.rulebook-counts>span{font-size:12px;padding:4px 11px}
  .rulebook-body{width:calc(100% - 42px)}.rulebook-status{margin-bottom:32px}.rulebook-status summary{padding:14px}.rulebook-status p{padding:0 14px 15px}
  .rulebook-category{scroll-margin-top:220px;margin-bottom:45px}.rulebook-category-heading h2{font-size:28px}.law-entry{scroll-margin-top:220px;padding:22px 0}.law-entry h3{font-size:20px}.law-entry p,.law-entry li{font-size:17px}.rulebook-content{padding-bottom:30px}.rule-source-link{font-size:13px}
}
@media(max-width:380px){.rulebook-hero h1{font-size:31px}.rulebook-body{width:calc(100% - 36px)}.rulebook-counts>span{padding-inline:9px}.rulebook-category-heading h2{font-size:26px}}
