:root {
    color-scheme:light;
    --paper:#faf9f6;
    --ink:#292a30;
    --muted:#696972;
    --line:#dededb;
    --accent:#575a87;
    --tint:#ededf4;
    font-family:Arial,Helvetica,sans-serif;
    font-size:15px;
    color:var(--ink);
    background:var(--paper)
}

* {
    box-sizing:border-box
}
html {
    scroll-padding-top:24px
}
body {
    margin:0
}
a {
    color:inherit;
    text-underline-offset:4px
}
a:hover {
    color:var(--accent)
}
button,input,select {
    font:inherit
}
button,select {
    cursor:pointer
}
button {
    color:var(--ink);
    background:transparent;
    border:1px solid var(--line);
    border-radius:4px;
    padding:8px 12px
}
button:hover {
    background:var(--tint);
    border-color:var(--accent)
}
:focus-visible {
    outline:2px solid var(--accent);
    outline-offset:4px
}
h1,h2,h3,h4,p {
    margin:0
}
p {
    line-height:1.7
}
.page {
    max-width:1240px;
    margin:auto;
    padding:0 48px
}
.skip {
    position:absolute;
    left:20px;
    top:-80px;
    background:white;
    padding:12px;
    z-index:2
}
.skip:focus {
    top:12px
}
.site-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:104px;
    gap:24px
}
.brand {
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
    font-size:19px;
    letter-spacing:-.6px;
    font-weight:600
}
.brand img {
    object-fit:contain
}
.brand-copy {
    display:flex;
    flex-direction:column;
    gap:6px
}
.brand-tagline {
    font-size:11px;
    font-weight:400;
    letter-spacing:0;
    color:var(--muted)
}
.visually-hidden {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    border:0
}
.site-header nav {
    display:flex;
    align-items:center;
    gap:30px;
    font-size:14px
}
.site-header nav a {
    text-decoration:none
}
.github-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:32px;
    min-height:32px
}
.eyebrow {
    text-transform:uppercase;
    font-size:10px;
    letter-spacing:2px;
    font-weight:600;
    color:var(--accent);
    margin-bottom:20px
}
.text-link {
    display:inline-block;
    font-size:13px;
    text-decoration:none;
    border-bottom:1px solid var(--line);
    padding:5px 0
}
.text-link span {
    margin-left:12px
}
.section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:19px 0;
    border-top:1px solid var(--ink);
    border-bottom:1px solid var(--line)
}
.breadcrumbs {
    min-width:0;
    font-size:12px;
    font-weight:500;
    letter-spacing:-.25px
}
.breadcrumbs ol {
    display:flex;
    flex-wrap:wrap;
    gap:8px 0;
    list-style:none;
    margin:0;
    padding:0
}
.breadcrumbs li {
    display:flex;
    align-items:baseline;
    min-width:0
}
.breadcrumbs li + li::before {
    content:'›';
    margin:0 12px;
    color:var(--muted)
}
.breadcrumbs a {
    text-decoration:none;
    overflow-wrap:anywhere
}
.breadcrumbs a:hover {
    text-decoration:underline
}
.breadcrumbs a[aria-current] {
    color:var(--accent)
}
.version-form {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:12px
}
.version-form label {
    color:var(--muted)
}
select {
    border:1px solid var(--line);
    padding:7px 26px 7px 10px;
    background:var(--paper);
    color:var(--ink);
    border-radius:4px
}
.explorer-layout {
    display:grid;
    grid-template-columns:245px minmax(0,1fr);
    border-bottom:1px solid var(--line);
    min-height:520px
}
.rule-browser {
    padding:26px 20px 26px 0;
    border-right:1px solid var(--line)
}
.rule-browser label {
    font-size:12px;
    display:block;
    margin-bottom:10px;
    color:var(--muted)
}
.search-field {
    display:flex;
    border:1px solid var(--line);
    border-radius:4px;
    background:white
}
.search-field input {
    min-width:0;
    width:100%;
    border:0;
    background:transparent;
    padding:10px;
    font-size:12px;
    color:var(--ink)
}
.search-field input::-webkit-search-cancel-button {
    cursor:pointer
}
.search-field button {
    border:0;
    padding:6px 12px
}
.list-meta {
    display:flex;
    justify-content:space-between;
    margin:20px 0 10px;
    font-size:10px;
    letter-spacing:.3px;
    color:var(--muted)
}
.rule-list {
    max-height:360px;
    overflow:auto;
    scrollbar-width:thin;
    scrollbar-color:#c9c9cf transparent
}
.rule-list a {
    display:block;
    padding:9px 10px;
    font-family:Consolas,'Liberation Mono',monospace;
    font-size:11px;
    text-decoration:none;
    overflow-wrap:anywhere;
    border-left:2px solid transparent
}
.rule-list a:hover {
    background:#f0efed
}
.rule-list a[aria-current] {
    color:var(--accent);
    background:var(--tint);
    border-left-color:var(--accent)
}
.production {
    min-width:0;
    padding:29px 0 28px 32px
}
.production-meta {
    display:flex;
    justify-content:space-between;
    gap:15px;
    font-size:10px;
    letter-spacing:.35px;
    color:var(--muted)
}
.production-meta>span>span {
    padding:0 8px;
    color:#aaa
}
.production-meta a {
    text-decoration:none
}
.production h3 {
    font-family:Consolas,'Liberation Mono',monospace;
    font-size:24px;
    font-weight:400;
    letter-spacing:-.7px;
    margin:21px 0 10px;
    overflow-wrap:anywhere
}
.diagram-hint {
    font-size:12px;
    color:var(--muted)
}
.diagram-scroll {
    margin:24px 0 18px;
    padding:12px 8px;
    max-height:520px;
    overflow:auto;
    background:#fff;
    border:1px solid #e9e8e5;
    border-radius:4px;
    scrollbar-width:thin
}
.railroad {
    display:block;
    max-width:none;
    margin:0 auto;
    overflow:visible
}
.railroad .track {
    fill:none;
    stroke:#8c8c97;
    stroke-width:1.25
}
.railroad .endpoint {
    fill:#8c8c97
}
.railroad .node {
    stroke:var(--accent);
    stroke-width:1;
    fill:var(--tint)
}
.railroad .literal {
    stroke:#a5a4a8;
    fill:#fff
}
.railroad .external {
    stroke-dasharray:4 3
}
.railroad text {
    font-family:Consolas,'Liberation Mono',monospace;
    font-size:14px;
    text-anchor:middle;
    fill:var(--ink);
    pointer-events:none
}
.railroad a:hover .node,.railroad a:focus .node {
    fill:#dcdced;
    stroke:#36385d;
    stroke-width:2
}
.railroad a {
    cursor:pointer
}
.legend {
    display:flex;
    flex-wrap:wrap;
    gap:10px 17px;
    color:var(--muted);
    font-size:10px;
    line-height:1.6
}
.legend span {
    display:flex;
    align-items:center;
    gap:6px
}
.legend i {
    display:inline-block;
    width:17px;
    height:11px;
    border:1px solid var(--accent);
    background:var(--tint);
    border-radius:2px
}
.legend .legend-literal {
    border-color:#999;
    background:white;
    border-radius:8px
}
.source {
    margin-top:29px;
    border-top:1px solid var(--line);
    padding-top:17px
}
summary {
    font-size:12px;
    cursor:pointer;
    color:var(--muted);
    padding:3px 0
}
pre {
    font:12px/1.85 Consolas,'Liberation Mono',monospace;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    margin:15px 0 0;
    color:#4e4e59
}
.references {
    margin-top:25px
}
.references h4 {
    font-size:11px;
    font-weight:400;
    color:var(--muted);
    margin-bottom:10px
}
.link-list {
    display:flex;
    flex-wrap:wrap;
    gap:8px 16px
}
.link-list a {
    font:11px/1.8 Consolas,'Liberation Mono',monospace;
    overflow-wrap:anywhere;
    text-decoration:none;
    border-bottom:1px solid var(--line);
    color:var(--accent)
}
.link-list a span {
    margin-left:4px
}
.used-by {
    margin-top:24px
}
.used-by .link-list {
    margin-top:12px
}
.count {
    font-size:10px;
    padding:2px 6px;
    background:#eeedeb;
    border-radius:3px;
    margin-left:6px
}
.navigation-note {
    font-size:10px;
    color:var(--muted);
    margin-top:27px
}
.downloads {
    padding:58px 0;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    border-bottom:1px solid var(--line)
}
.downloads .eyebrow {
    margin-bottom:14px
}
.downloads h2,.about h2 {
    font:400 29px/1.3 Georgia,'Times New Roman',serif;
    letter-spacing:-.7px
}
.downloads p:not(.eyebrow) {
    font-size:13px;
    color:var(--muted);
    margin-top:15px
}
.download {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:20px 0;
    text-decoration:none;
    border-bottom:1px solid var(--line)
}
.download:first-child {
    padding-top:4px
}
.download:last-child {
    border-bottom:0
}
.download strong {
    font:16px Consolas,'Liberation Mono',monospace
}
.download small {
    display:block;
    color:var(--muted);
    margin-top:9px;
    font-size:11px
}
.download>span:last-child {
    font-size:23px;
    color:var(--accent)
}
.about {
    padding:50px 0;
    max-width:630px
}
.about h2 {
    font-size:23px
}
.about p {
    color:var(--muted);
    font-size:13px;
    margin:16px 0 12px
}
footer {
    border-top:1px solid var(--line);
    padding:26px 0 34px;
    display:flex;
    justify-content:space-between;
    gap:16px;
    color:var(--muted);
    font-size:10px
}
footer a {
    text-decoration:none
}
footer span span {
    padding:0 6px
}
.notice,.primitive-note {
    font-size:13px;
    margin:24px 0;
    line-height:1.8
}
.notice {
    padding:16px;
    border:1px solid var(--line);
    border-radius:4px
}
.empty {
    font-size:12px;
    color:var(--muted);
    padding:10px
}

@media(min-width:1500px) {
    .page {
    max-width:1360px
}

}

@media(max-width:760px) {
    .page {
    padding:0 22px
}
.site-header {
    min-height:85px;
    flex-wrap:wrap;
    gap:20px;
    padding:22px 0
}
.brand {
    font-size:16px;
    gap:8px
}
.brand img {
    width:53px;
    height:32px
}
.site-header nav {
    width:100%;
    gap:18px;
    font-size:12px
}
.section-heading {
    flex-wrap:wrap
}
.explorer-layout {
    grid-template-columns:1fr
}
.rule-browser {
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:20px 0
}
.rule-list {
    max-height:150px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-content:start
}
.list-meta {
    margin-top:14px
}
.production {
    padding:25px 0
}
.production h3 {
    font-size:21px
}
.diagram-scroll {
    max-height:420px
}
.downloads {
    grid-template-columns:1fr;
    gap:26px;
    padding:38px 0
}
.downloads h2 {
    font-size:27px
}
.about {
    padding:36px 0
}
footer {
    flex-direction:column;
    gap:12px
}
.version-form {
    gap:7px
}

}

@media(prefers-reduced-motion:no-preference) {
    a,button {
    transition:background-color .12s,color .12s
}

}

