/* eXperimental (the x language): its introduction and reference (Controllers\Experimental) */

:root { --x-blue: #1976d2; --x-ink: #0e1a2b; }   /* (the blue: 4.6:1 on white, readable as text) */

/* the X of "eXperimental", wherever it's written */
.x-blue { color: var(--x-blue); }

/* the side menu */
.x-nav { position: sticky; top: 7rem; font-size: .92rem; max-height: calc(100vh - 8rem); overflow-y: auto; padding-right: .5rem; }
.x-nav a { color: #2b3040; text-decoration: none; display: block; padding: .18rem .6rem; border-left: 2px solid transparent; }
.x-nav a:hover { color: var(--x-blue); }
.x-nav a.active { color: var(--x-blue) !important; background: transparent !important; border-left-color: var(--x-blue); font-weight: 600; }   /* (not style.css's .active box) */
.x-nav .x-nav-home { font-size: 1.35rem; font-weight: 800; padding-left: 0; border: 0; margin-bottom: .5rem; }
.x-nav .x-nav-home.active { font-weight: 800; color: var(--x-ink) !important; }   /* (so its X stays the blue one) */
.x-nav-section { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: #565c6b; margin: 1rem 0 .3rem; }
.x-nav ul { list-style: none; padding: 0; margin: 0; }
@media (max-width: 991.98px) { .x-nav { position: static; max-height: none; } }

/* the page */
.x-crumbs a { color: #565c6b; text-decoration: none; }
.x-crumbs a:hover { color: var(--x-blue); }
.x-page h1 { color: var(--x-ink); font-size: 2rem; font-weight: 800; }
.x-page h2 { color: var(--x-ink); }
.x-page h3 { color: #1565c0; }
.x-page h4 { color: #2b3040; }
.x-page a { color: #1565c0; }
.x-page a:hover { color: #0d47a1; }
.x-page h1, .x-page h2, .x-page h3, .x-page h4 { scroll-margin-top: 7rem; }
.x-anchor { margin-left: .4em; font-weight: 400; color: var(--x-blue) !important; text-decoration: none; opacity: 0; transition: opacity .15s; }
.x-page h1:hover .x-anchor, .x-page h2:hover .x-anchor, .x-page h3:hover .x-anchor, .x-page h4:hover .x-anchor, .x-anchor:focus { opacity: .6; }
.x-page table { border-collapse: collapse; margin: 1rem 0; }
.x-page th, .x-page td { border: 1px solid #dde2ea; padding: .3rem .6rem; vertical-align: top; }
.x-page th { background: #e8eef7; color: var(--x-ink) !important; font-weight: 700; }   /* (style.css makes th white) */
.x-page :not(pre) > code { background: #eef4fc; color: #0d3c78; padding: .05em .35em; border-radius: .25rem; font-size: .9em; }
.x-page pre { background: #f6f8fb; border: 1px solid #e3e8f0; border-radius: .5rem; padding: .8rem 1rem; overflow-x: auto; }
.x-page pre.code-block.language-x { border-left: 3px solid var(--x-blue) !important; }
.x-pager { border-top: 1px solid #e3e8f0; }
.x-pager a { color: var(--x-blue); text-decoration: none; font-weight: 600; }

/* the introduction */
.x-hero { background: var(--x-ink); color: #fff; border-radius: 1.25rem; padding: 2.5rem; }
.x-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: .01em; }
.x-hero .x-blue { color: #5aa9ff; }                       /* (a lighter blue on the dark) */
.x-hero .lead { color: rgba(255,255,255,.88); }
.x-kicker { color: #8cc4ff; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; font-size: .85rem; }
.x-card { display: block; height: 100%; border: 1px solid #dde6f3; border-radius: 1rem; padding: 1.2rem 1.4rem; text-decoration: none !important; background: #f6f9fe; }
.x-card:hover { border-color: var(--x-blue); }
.x-card-title { display: block; font-weight: 800; font-size: 1.2rem; color: var(--x-ink); }
.x-card-text { display: block; color: #4a5160; margin-top: .25rem; }
.x-toc { columns: 2; column-gap: 2rem; }
@media (max-width: 767.98px) { .x-toc { columns: 1; } }

/* x code (js/prism-x.js): every colour at least 6.7:1 on the code background */
pre.language-x .token.comment   { color: #4f5864; font-style: italic; }
pre.language-x .token.keyword   { color: #0b4a96; font-weight: 600; }
pre.language-x .token.type      { color: #005a5f; }
pre.language-x .token.string    { color: #843c0c; }
pre.language-x .token.number    { color: #55309c; }
pre.language-x .token.constant  { color: #8a0f45; }
pre.language-x .token.function  { color: #0d47a1; }
pre.language-x .token.directive { color: #6a1b9a; font-weight: 600; }
pre.language-x .token.operator,
pre.language-x .token.punctuation { color: #454d57; }
