/*
 * Gradle Markdown Theme
 */

@font-face {
    font-display: swap;
    font-family: Lato;
    font-weight: 500;
    font-style: normal;
    src: url("https://assets.gradle.com/lato/fonts/lato-semibold/lato-semibold.woff2") format("woff2"),
         url("https://assets.gradle.com/lato/fonts/lato-semibold/lato-semibold.woff") format("woff");
}

/* Variables */
:root {
    --bg-color: #fff;
    --fg-color: #000;
    --text-color: #02303A;
    --title-color: #02303A;
    --border-color: #e5e5e5;
    --various-border-color: #e7e7e9;
    --code-color: #f7f7f8;
    --code-text-color: rgba(0, 0, 0, 0.9);
    --code-link-color: #021274;
    --top-header-color: #fff;
    --nav-color: #f8f8f7;
    --table-color: #f9f9f9;
    --footer-color: rgba(0, 0, 0, 0.8);
    --footer-text-color: #fff;
    --footer-other-text-color: #02303A;
    --box-shadow-color: rgba(0, 0, 0, .15);
    --right-menu-gray: hsl(224, 6%, 56%);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --fg-color: #fff;
    --text-color: #aaa;
    --title-color: #fff;
    --border-color: #444;
    --various-border-color: #242526;
    --code-color: #1f1f1f;
    --code-text-color: rgba(255, 255, 255, 0.9);
    --code-link-color: #1fafcc;
    --top-header-color: #242526;
    --nav-color: #121212;
    --table-color: #1a1a1a;
    --footer-color: #121212;
    --footer-text-color: #aaa;
    --footer-other-text-color: #ddd;
    --box-shadow-color: rgba(255, 255, 255, .15);
    --right-menu-gray: hsl(224, 6%, 70%);
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #1DA2BD;
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
}

h1 a:hover, h1 a:focus,
h2 a:hover, h2 a:focus,
h3 a:hover, h3 a:focus,
h4 a:hover, h4 a:focus,
h5 a:hover, h5 a:focus,
h6 a:hover, h6 a:focus {
    text-decoration: none;
}

a strong {
    color: inherit;
}

img {
    max-width: 100%;
    border-radius: 4px; /* match with `code` */
}

table {
    width: 100%;
    font-size: 85%;
    border: 1px solid var(--border-color);
    border-collapse: collapse;
}

.table-contents {
    overflow-x: auto;
    padding-left: 0.6rem;
    margin-bottom: 1rem;
}

td,
th {
    padding: .25rem .5rem;
    border: 1px solid var(--border-color);
}

th {
    text-align: left;
}

.content tbody tr:nth-child(odd) td,
.content tbody tr:nth-child(odd) th {
    background-color: var(--table-color);
}

/* typography */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--title-color);
    text-rendering: optimizeLegibility;
}

h1 {
    font-size: 2rem;
}

h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

h4 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

h5, h6 {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

dt {
    font-weight: 700;
}

dd {
    margin-bottom: 0.5rem;
    margin-left: 1.5em;
}

dd p {
    margin-top: 0;
}

hr {
    position: relative;
    border: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--bg-color);
    margin: 0;
}

ul, ol, dl {
    list-style-position: outside;
    line-height: 1.6;
    margin: 0 0 1.25rem 1.5em;
    padding: 0;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

dl dt {
    font-weight: normal;
}

tfoot {
    font-style: italic;
}

caption {
    background: #eee;
}

abbr, acronym {
    font-size: 85%;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

abbr[title], acronym[title] {
    cursor: help;
    border-bottom: 1px dotted var(--border-color);
}

b, strong, dfn {
    font-weight: 700;
}

em, dfn {
    font-style: italic;
}

sup, sub {
    line-height: 0;
}

address {
    margin: 0 0 1.5em;
    font-style: italic;
}

del {
    color: #666;
}

blockquote {
    padding: .5rem 1rem;
    margin: .8rem 0;
    color: #7a7a7a;
    border-left: .25rem solid var(--border-color);
}

blockquote p:first-child {
    margin-top: 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

@media (min-width: 30em) {
    blockquote {
        padding-right: 5rem;
        padding-left: 1.25rem;
    }
}

/* layout */
.container, .appendix, .book, .chapter, .footer {
    background-color: var(--bg-color);
    border-radius: 5px;
    padding: 1.5rem;
}

.container, .appendix, .footer {
    max-width: 45rem;
}

.container {
    margin: 2rem auto;
}

.content, .text-container {
    width: 60rem;
}

.content-container {
    min-height: calc(100vh - 60px);
}

.content, .sidebar {
    display: inline-block;
}

.sidebar {
    float: right;
    width: 12.5rem;
}

@media screen and (max-width: 45em) {
    .container, .footer {
        max-width: 100%;
    }
    .content {
        display: block;
        width: auto;
    }
    .sidebar {
        display: none;
    }
    .container,
    .main-content > .appendix,
    .main-content > .book,
    .main-content > .chapter {
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* code */
code {
    font-size: 90%;
    background-color: var(--code-color);
    color: var(--code-text-color);
    border-radius: 4px;
}

a code { color: var(--code-link-color); }

*:not(pre) > code {
    letter-spacing: 0;
    padding: 0.1em 0.5ex;
}

.hljs {
    background: var(--code-color) !important;
}

/* util classes */
.left {
    float: left !important;
}

p .left {
    margin: 1.5em 1.5em 1.5em 0;
    padding: 0;
}

.right {
    float: right !important;
}

p .right {
    margin: 1.5em 0 1.5em 1.5em;
    padding: 0;
}

.small {
    font-size: .8em;
    margin-bottom: 1.875em;
    line-height: 1.875em;
}

.large {
    font-size: 1.2em;
    line-height: 2.5em;
    margin-bottom: 1.25em;
}

.hide {
    display: none;
}

.quiet {
    color: #666;
}

.loud {
    color: #000;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.highlight {
    background: #ff0;
}

.added {
    background: #060;
    color: #fff;
}

.removed {
    background: #900;
    color: #fff;
}

.first {
    margin-left: 0;
    padding-left: 0;
}

.last {
    margin-right: 0;
    padding-right: 0;
}

.top {
    margin-top: 0;
    padding-top: 0;
}

.bottom {
    margin-bottom: 0;
    padding-bottom: 0;
}

.citetitle {
    font-style: normal;
}

table th.border-right {
    border-right: solid #d0d0d0 1px;
}

table th.no-border-bottom {
    border-bottom: none;
}

h3.releaseinfo {
    color: #999;
    font-weight: normal;
    margin-top: -0.5em;
}

/* Site header specific styles */

/* Override javadoc styles */

/* Navigation submenu styles */

/* Top navigation mobile styles */

/* Top navigation desktop styles */

/* Side Navigation styles */
/* Docs Navigation */
.docs-navigation .search-container {
    display: none;
    margin-bottom: 1rem;
}

.docs-navigation {
    display: none;
    padding-left: 5px;
    padding: 20px 20px 20px 26px;
    background: var(--nav-color);
    border-right: 1px solid var(--various-border-color);
    overflow: auto;
}

.docs-navigation a {
    color: var(--text-color);
    display: block;
    font-size: .80rem;
    position: relative;
}

.docs-navigation a:focus {
    outline: none;
}

.docs-navigation a:hover {
    color: #35c1e4;
    text-decoration: none;
}

.docs-navigation a code {
    color: var(--text-color);
    overflow-wrap: break-word;
    padding: 0;
    word-break: break-all;
}

.docs-navigation a.active {
    text-decoration: underline;
    outline: 0;
    border: none;
    outline-style: none;
    -moz-outline-style: none;
}

.docs-navigation a.active:hover {
    color: #35c1e4;
    text-decoration: underline;
}

.docs-navigation .reference-links {
    font-size: 1.0rem;
}

.docs-navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.docs-navigation li > ul > li a {
    font-size: 14px;
    color: var(--right-menu-gray);
}

.docs-navigation ul:last-of-type {
    margin-bottom: 0;
}

.docs-navigation li {
    margin-top: 0.3334em;
    line-height: 1.3334;
}
.docs-navigation li:last-of-type {
    margin-bottom: 0;
}

.docs-navigation .nav-dropdown:before {
    content: '\2023';
    font-size: 28px;
    position: absolute;
    margin-left: -14px;
    margin-top: -8px;
}

.docs-navigation .nav-dropdown.expanded:before {
    transform: rotate(90deg);
}

.docs-navigation > ul ul,
.docs-navigation > ul ul ul {
    display: none;
    height: 0;
    margin-left: 1rem;
}

.docs-navigation > ul ul:target,
.docs-navigation > ul ul:target ul,
.docs-navigation > ul .nav-dropdown.expanded ~ ul {
    display: block;
    height: auto;
}

.docs-navigation h3 {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 1.5em 0 0;
}

@media screen and (min-width: 45rem) {
    .main-content {
        display: flex;
        justify-content: center;
    }
}

/* User guide navigation appears for desktops */
@media screen and (min-width: 64rem) {
    .docs-navigation {
        display: block;
        flex: 0 0 auto;
        width: 13.75rem;
    }

    .main-content > .appendix,
    .main-content > .book,
    .main-content > .chapter {
        flex: 0 0 auto;
        margin: 0 auto;
    }
}

/* Table of Contents */
.toc p {
    font-size: 1em;
}
.toc dl dt,
.toc a {
    line-height: 1.0;
}
.toc dl dt {
    padding-bottom: 0.625rem;
}
.toc a {
    color: #1DA2BD;
}
.toc p {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}
.toc dl, .list-of-examples dl {
    margin-left: 0;
}

.navheader, .navfooter, .navbar {
    display: none;
}

/* Userguide Meta */
.chapter-meta {
    float: right;
    text-align: right;
}

.chapter-meta .edit-link {
    color: var(--right-menu-gray);
    font-size: 0.9em;
    padding-right: 3px;
}

.chapter-meta .edit-link svg {
    margin-right: 1px;
}

/* Clever use of RTL to fill in all stars to left of hover position */
.rating {
    direction: rtl;
}
.rating > .star {
    cursor: pointer;
    padding: 3px;
}
.rating > .star:hover > svg > g,
.rating > .star:hover ~ .star > svg > g,
.rating > .star.selected > svg > g,
.rating > .star.selected ~ .star > svg > g {
    fill: #999;
}

@media screen and (min-width: 84.375rem) {
    .ui-logos .ui-logo {
        box-shadow: 0 6px 15px 1px rgba(0, 0, 0, 0.56);
    }
}

/* User Manual Home */
.technology-logos,
.ui-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.technology-logo,
.ui-logo {
    flex: 0 1 auto;
}

.ui-logo {
    width: 224px;
    height: 135px;
    margin: 12px;
}

.segmentedlist {
    margin-top: 1.6em;
    margin-bottom: 1.6em;
}

.segmentedlist table, .table table {
    border: solid #d0d0d0 1px;
    border-collapse: collapse;
    margin-left: -10px;
    margin-right: -10px;
}

.segmentedlist th {
    padding: 0.3em 0.8em;
    color: #505050;
}

.segmentedlist td {
    padding: 0.3em 0.8em;
}

.segmentedlist dt,
.variablelist dt {
    font-weight: bold;
}

.variablelist dt a {
    font-weight: normal;
}

.itemizedlist li p,
.example pre,
.figure pre {
    margin-top: 0;
    margin-bottom: 0.625rem;
}

.example, .figure, .table {
    margin-top: 0;
    margin-bottom: 1.8em;
}

.example .title, .figure .title, .table .title {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.example-contents > p {
    margin: 0;
}

.example-break, .figure-break {
    display: none;
}

.exampleLocation .emphasis em {
    font-style: normal;
    font-weight: bold;
}

.appendix h1 {
    margin-bottom: 1.0em;
}

.footnote sup {
    vertical-align: baseline;
    font-size: 100%;
}

.note p:first-child, .tip p:first-child {
    margin-top: 0;
}

.note > :last-child, .tip > :last-child, .examplelocation > :last-child {
    margin-bottom: 0;
}

.note, .tip, .exampleLocation {
    border-left: 1px solid var(--border-color);
    color: var(--text-color);
    margin: 0 0 1.5em 1.25em;
    padding-left: 1.125em;
    padding-right: 1.25em;
}

.note p:first-child:before {
    content: "Note: ";
    font-weight: bold;
}

.tip p:first-child:before {
    content: "Tip: ";
    font-weight: bold;
}

.note .title, .tip .title {
    margin-left: 0px;
}

.tip h1, .note h1
.tip h2, .note h2,
.tip h3, .note h3,
.tip h4, .note h4,
.tip h5, .note h5,
.tip h6, .note h6 {
    margin-top: 0;
}

.literal, .filename {
    white-space: nowrap;
}

.caution {
    font-size: 15px;
    color: #AF5252;
    background-color: pink;
    font-style: italic;
    border-radius: 3px;
    display: inline-block;
    padding: 0 5px;
    margin-bottom: 8px;
}

.caution :last-child {
    margin-bottom: 0;
}

table .caution {
    font-size: 13px;
    margin-right: 6px;
    margin-top: 2px;
    margin-bottom: 0px;
    display: inline;
    text-transform: lowercase;
}

.signature {
    background-color: var(--code-color);
    border: solid #e7e7e7 1px;
    color: var(--text-color);
    width: auto;
    margin-right: -0.8em;
    margin-left: -0.8em;
    padding: 0.3em 0.8em;
    font-weight: normal;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    font-family: "Ubuntu Mono", courier, monospace;
    text-shadow: none;
}

.signature .literal {
    color: #04598D;
    padding-left: 0.1em;
}

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Single page html
 */
.book .chapter {
    margin-top: 4em;
}

.toc .chapter {
    padding-top: 0;
}

div.example code.filename {
    font-weight: bold;
}

/* Clickable links on section headers */
.section .title > a.section-anchor {
    display: inline-block;
    text-decoration: none !important;
    margin-left: -1ch;
    opacity: 0;
    padding-right: 0.4ch;
}

.section .title > a.section-anchor:before {
    content: "\00A7";
    display: inline-block;
    font-size: 0.8em;
    vertical-align: bottom;
}

.section .title:hover > a {
    opacity: 1;
}

.section .title:hover > a.section-anchor,
.section .title a.section-anchor:hover {
    border: inherit;
    opacity: 1;
}

.docs-navigation {
    width: 18rem;
    padding: 20px 20px 20px 26px;
    background: var(--nav-color);
    border-right: 1px solid var(--various-border-color);
    overflow: auto;
}

.layout {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
}

.main-content {
    overflow: auto;
    display: flex;
}

.content {
    flex: 1 1 auto;
    overflow: auto;
    padding-left: 0;
    padding-right: 0;
}

.content .chapter,
.content .book {
    padding: 2rem 2.4rem;
}

.toc a:active {
    font-weight: 500;
}

#header {
    margin-left: 0;
}

#header > h1:first-child {
    margin-bottom: 40px;
}

/* DSL syntax highlighting (xslthl-emitted spans in DocBook output).
   Palette matches highlight.js stackoverflow-light/dark. */
.hl-keyword    { color: #a626a4; }
.hl-string     { color: #50a14f; }
.hl-number     { color: #986801; }
.hl-comment    { color: #a0a1a7; font-style: italic; }
.hl-doccomment { color: #a0a1a7; font-style: italic; }
.hl-annotation { color: #4078f2; }

[data-theme="dark"] .hl-keyword    { color: #c678dd; }
[data-theme="dark"] .hl-string     { color: #98c379; }
[data-theme="dark"] .hl-number     { color: #d19a66; }
[data-theme="dark"] .hl-comment    { color: #7f848e; }
[data-theme="dark"] .hl-doccomment { color: #7f848e; }
[data-theme="dark"] .hl-annotation { color: #61aeee; }

/* Dark mode overrides */

