@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-VariableFont.woff2') format('woff2');
    font-style: normal;
    font-weight: 300 600;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Italic-VariableFont.woff2') format('woff2');
    font-style: italic;
    font-weight: 300 600;
}

:root {
    --font-family: 'Inter', Arial, sans-serif;
    --font-family-monospace: 'Courier New', monospace;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --line-height: 1.5em;

    /* Colors as defined on the i2 Group website */
    --blue: #2873FF;
    --navylight: #EEEEEE;
    --navy: #17254B;
    --navydark: #071024;
    --orange: #FF4433;
    --grey: #6E6E6E;
    --lightgrey: #EEEEEE;
    --midgrey: #C2C7D2;
    --white: #fff;
    --black: #000;
    --text: #000;
    --error: #f2545b;
    --errordark: #721c24;
}

html {
    font-family: var(--font-family);
}

body {
    display: grid;
    grid-template: auto 1fr auto / auto 1fr;
    line-height: var(--line-height);
    margin: auto;
    max-width: unset;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
}

.context, .p, p {
    line-height: var(--line-height);
    margin: 1rem 0;
    max-width: unset;
}

.shortdesc {
    color: var(--grey);
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
}

main li, main dl, main blockquote {
    max-width: calc(100% - 3rem);
}

header[role="banner"] {
    grid-column: 1 / 3;
}

nav.toc {
    background-color: var(--white);
    grid-column: 1 / 2;
    margin-top: -0.25rem;
    padding-bottom: 1rem;
    width: 18rem;
    word-break: break-word;
    z-index: 0;
}

nav.toc > ul {
    margin: inherit;
    padding-left: 3rem;
}

nav.toc li {
    line-height: 1.25rem;
    list-style: none;
    margin-top: 0.55rem;
}

nav.toc li.active > a {
    font-weight: var(--font-weight-bold);
}

main {
    margin-left: 0;
    margin-top: -1.5rem;
    background-color: var(--white);
}

main[role="main"] {
    grid-column: 2 / 3;
    padding: 0rem 3rem 1rem 3rem;
}

main[role="search-results"], main[role="doc-home"] {
    grid-column: 1 / 3;
}

main[role="search-results"] {
    padding: 1.5rem 3rem 0 3rem;
}

main[role="doc-home"] > div {
    margin-left: auto;
    margin-right: auto;
    max-width: 1024px;
}

.rubric {
    padding-left: 6rem;
    padding-right: 3rem;
}

.rubric h2 {
    font-size:1.7rem;
    font-weight: normal;
    padding-top: 1.5rem;
}

.rubric p {
    max-width: 75%;
}

.boxes {
    display: grid;
    grid-template: 1fr / 1fr 1fr 1fr 1fr;
    margin: 0 0 0 0;
    min-height: 25rem;
    min-width: 50rem;
    padding: 1rem 3rem 6rem 6rem;
}

.boxes img {
    width: calc(100% - 2rem);
}

.boxes .users {
    grid-column: 1 / 2;
    color: var(--navy);
    background-color: var(--white);
}

.boxes .admins {
    grid-column: 2 / 3;
    color: var(--navy);
    background-color: var(--white);
}

.boxes .devs {
    grid-column: 3 / 4;
    color: var(--navy);
    background-color: var(--white);
}

.boxes .products {
    grid-column: 4 / 5;
    color: var(--navy);
    background-color: var(--white);
}

.box h6, .box p, .box a {
    color: inherit !important;
}

.box h6, .box p {
    margin: 1rem 2rem 1rem 0;
}

.box h6 {
    font-size: 1.4rem;
}

footer[role="contentinfo"] {
    grid-column: 1 / 3;
}

footer[role="contentinfo"] .links {
    background-color: var(--blue);
    color: var(--white);
    display: flex;
    justify-content: center;
    margin-bottom: -1.5rem;
}

footer[role="contentinfo"] .links p {
    margin: 0.5rem;
}

footer[role="contentinfo"] .links p a {
    color: var(--white);
    font-size: small;
    font-weight: bold;
}

button, input[type="button"], input[type="reset"] {
    background-color: var(--blue);
}

input[type="submit"] {
    background-color: var(--orange);
}

.header {
    background: var(--navy);
    margin: 0rem 0rem 1.5rem 0rem;
    padding: 2.5rem 3rem 2.5rem 3rem;
}

.header a img {
    float: left;
    height: 4.375rem;
    margin: -0.45rem 3rem 0 0;
}

.header p {
    color: var(--white);
    float: left;
    font-size: 1.75rem;
    margin: 0.45rem 0 0.55rem 0;
}

.header p.home {
    font-size: 2rem;
}

.header form {
    display: flex;
    float: right;
    margin-top: 0.5rem;
    margin-bottom: 6rem;
}

.header form input {
    border: none !important;
    box-sizing: border-box;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    height: 2.5rem;
    line-height: normal;
    margin: 0;
    max-width: 100%;
    min-width: 15rem;
    padding: 0 0.5rem 0 1rem;
    text-transform: none;
}

.header form button {
    background-color: var(--orange);
    border: 1px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    fill: var(--white);
    font-size: 0.8rem;
    min-height: 2.5rem;
    min-width: auto;
    overflow: visible;
    padding: 0 1rem;
    stroke: var(--white);
    width: 3.25rem;
}

.header form button:hover {
    background-color: #FF5F50;
    stroke: var(--white);
    fill: var(--white);
}

.header .home {
    display: block;
    float: none;
    margin: 0.75rem auto 1.25rem auto;
    width: fit-content;
}

.header form.home {
    display: flex;
}

.header form.home input:first-child {
    width: 25rem;
}

.header input:focus, .header > a:focus {
  border-radius: 0;
  outline: 1px dashed var(--midgrey);
  outline-offset: 2px;
}

/* Footer formatting on content pages */
.footer {
    background-color: var(--navy);
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    margin: 1.5rem 0rem 0rem 0rem;
}

.footer hr, .footer br, div.p br, p.p + br, img + br {
    display: none;
}

.footer p {
    color: var(--lightgrey);
    font-size: smaller;
    margin: auto;
}

.footer .copyright {
    grid-column: 2 / 3;
    padding-bottom: 2.5rem;
    padding-top: 4.5rem;
    text-align: center;
}

.footer .footer-links {
    background-color: var(--blue);
    column-gap: 1rem;
    display: grid;
    grid-template: auto auto auto / 6.5rem auto;
    padding: 2rem 0 2rem 2rem;
}

.footer .footer-links p:first-child {
    font-size: unset;
    grid-column: 1 / 3;
    padding-bottom: 0.25rem;
}

.footer .footer-links p {
    color: var(--white);
    margin: 0;
}

.footer .footer-links a {
    color: var(--white);
}

.parentlink {
    margin-top: 1.25rem;
}

/* Consistent border all the way round tables */
table {
    border: 1px solid var(--midgrey);
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 0.5rem;
    width: 100%;
    word-break: break-word;
}

/* Make table column widths better-behaved */
col {
    width: 0px !important;
}

th {
    background-color: var(--lightgrey);
    text-align: left;
}

td, th {
    border-bottom: 1px solid !important;
    border-bottom-color: var(--midgrey) !important;
    border-right: 0 !important;
    border-top: 1px solid !important;
    border-top-color: var(--midgrey) !important;
    padding: 0.5rem;
    vertical-align: top;
}

/* Simple content formatting modifications */
h1.title {
    font-size: 2rem;
    font-weight: var(--font-weight-medium);
    line-height: normal;
    margin-top: 1.1rem;
}

h2.title, h2.tasklabel {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0;
    margin-top: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy) !important;
}

code,
kbd,
pre,
samp,
tt,
.cmdname,
.codeblock,
.codeph,
.filepath,
.msgnum,
.option,
.parmname,
.tt,
.varname {
    font-family: var(--font-family-monospace) !important;
    word-break: break-word;
}

b, strong {
    font-weight: var(--font-weight-bold);
}

pre {
    background-color: var(--lightgrey);
    border: 1px solid var(--midgrey);
    border-radius: 4px;
    font-size: 0.8125rem;
    margin: 1rem 0;
    padding: 0.5rem 0.75rem;
    white-space: pre-wrap;
}

a,
a:link,
a:visited,
a:active,
a:focus {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--navy);
    text-decoration: underline;
}

a[rel~='external'] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><path d='M28,4 39,4 39,15 M39,4 23,20 M28,9 7,9 7,34 35,34 35,15' fill='none' stroke='%23999' stroke-width='2'/></svg>");
    background-position: 0 50%;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    display: inline-block;
    padding-left: 1.25rem;
}

ol, ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

li {
    font-size: 1rem;
    margin: 0.5rem 0;
}

dt {
    margin-top: 1rem;
}

dd {
    margin-left: 1rem;
}

img {
    max-width: 100%;
}

li > img {
    margin-top: 0.5rem;
}

blockquote {
    margin-left: 1.5rem;
}

blockquote::before {
    content: none;
}

blockquote > :first-child {
    text-indent: 0;
}

caption {
    margin-bottom: 0.25rem;
}

caption p {
    margin-bottom: 0.25rem !important;
    margin-top: 0 !important;
}

video {
    width: min(640px, 100%);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

/* Better separate the formatting of links to child topics  */
.related-links ul {
    border: 1px var(--midgrey) solid;
    border-radius: 4px;
    margin-top: 1.5rem;
}
  
.related-links li strong {
    font-weight: var(--font-weight-normal);
}

/* ------------------------------------ *
 * Fixes for pages with Markdown source *
 * ------------------------------------ */
/* Reduce the spacing of list items */
div[class="body"] .li .p {
    margin: inherit;
}

/* Don't do anything special to paragraph text in tables */
.simpletable p {
    font-size: inherit;
    line-height: inherit;
    margin: inherit;
}

/* Enable horizontal rules with <span class="hr"/> */
span.hr {
    display: block;
    border-width: 1px 0 0 0;
    border-style: solid;
    border-color: var(--navy);
    margin: 1.5rem 0 1.5rem 0;
}

/* ------------------------------ *
 * Search results page formatting *
 * ------------------------------ */
#search-input {
    border: none;
    display: block;
    font: inherit;
    height: 2.5rem;
    margin: 0.5rem calc(50% - 12.5rem) 0.5rem auto;
    min-width: 25rem;
    padding-left: 1rem;
}

#results-container {
    padding-left: 0;
}

#results-container * {
    max-width: none;
}

#results-container li {
    list-style: none;
}

#results-container p {
    font-size: smaller;
    margin-top: 0;
}

/* --------------------------------- *
 * Version drop-down menu formatting *
 * --------------------------------- */
.dropdown {
    display: inline-block;
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.version {
    color: var(--navy);
    float: right;
    font-size: smaller;
    margin-left: 1rem;
    padding: 1px 5px;
  }

.dropbtn {
    padding: 0.7rem 1rem 0.6rem 1rem;
    font-size: 1rem;
    border: 0 !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    text-align: left;
    text-transform: none !important;
    cursor: pointer;
    color: var(--lightgrey);
}

.dropbtn .version {
    background-color: var(--lightgrey);
}

.dropdown-content {
    display: none;
    box-shadow: 0px 2px 10px 2px rgb(0 0 0 / 10%);
    position: absolute;
    background-color: var(--white);
    line-height: normal;
    z-index: 1;
}

.dropdown-content .version {
    background-color: var(--orange);
    color: var(--white)
}

.dropdown-content a {
    padding: 0.7rem 1rem 0.6rem 1rem;
    text-decoration: none;
    display: block;
    color: var(--navy);
}

.dropdown-content a:hover {
    background-color: var(--lightgrey);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}
