:root {
    --color--black: #000000;
    --color--white: #ffffff;
    --color--brand-red: #db2a40;
    --color--jafar-300: #f17472;
    --color--neutral-900: #232323;
    --color--neutral-800: #323232;
    --color--neutral-700: #484848;
    --color--neutral-600: #656565;
    --color--neutral-500: #9a9a9a;
    --color--neutral-300: #efeff1;
    --color--neutral-100: #f9f9f9;
    --color--blue-900: #1a1f25;
    --color--blue-800: #273349;
    --color--blue-700: #203c66;
    --color--blue-600: #24487e;
    --color--blue-500: #305c95;
    --color--cornflower-600: #224ca8;
    --color--cornflower-500: #4172dc;
    --color--cornflower-400: #4172dc;
    --color--cornflower-200: #86a5e9;
    --color--metal-900: #10161c;
    --color--metal-800: #293949;
    --color--metal-600: #a0b0be;
    --color--metal-400: #c3d4eb;
    --color--metal-300: #dfe9f6;
    --color--metal-200: #e6eef8;
    --color--metal-100: #eaeff4;
    --color--brand: var(--color--brand-red);
    --color--button-primary-background: var(--color--blue-500);
    --color--button-primary-background-hover: var(--color--blue-700);
    --color--button-primary-background-pressed: var(--color--blue-800);
    --color--button-secondary-background: var(--color--metal-100);
    --color--button-secondary-background-hover: var(--color--metal-300);
    --color--button-secondary-background-pressed: var(--color--metal-400);
    --color--button-inverse-background: var(--color--neutral-800);
    --color--button-inverse-background-hover: var(--color--neutral-700);
    --color--button-inverse-background-pressed: var(--color--neutral-900);
    --color--button-primary-foreground: var(--color--white);
    --color--button-secondary-foreground: var(--color--blue-500);
    --color--button-inverse-foreground: var(--color--white);
    --color--button-link: var(--color--blue-500);
    --color--button-link-hover: var(--color--blue-700);
    --color--button-link-active: var(--color--blue-900);
    --color--text-default: var(--color--neutral-800);
    --color--text-heading: var(--color--black);
    --color--text-secondary: var(--color--neutral-600);
    --color--text-accent: var(--color--blue-500);
    --color--background-default: var(--color--white);
    --color--background-secondary: var(--color--neutral-100);
    --color--background-accent: var(--color--metal-200);
    --color--background-inverse: var(--color--black);
    --color--tag-background: var(--color--metal-100);
    --color--tag-foreground: var(--color--blue-500);
    --color--border-default: var(--color--metal-300);
    --color--border-selected: var(--color--blue-500);
    --color--border-inverse: var(--color--neutral-800);
}

/* Typography and font-face */
@font-face {
    font-family: "Avenir-Web";
    font-weight: normal;
    src: url(https://revealapp.com/fonts/Avenir-Medium.ttf) format("truetype");
}

@font-face {
    font-family: "Avenir-Web";
    font-weight: bold;
    src: url(https://revealapp.com/fonts/Avenir-Heavy.ttf) format("truetype");
}

@font-face {
    font-family: "SF-Mono-Web";
    font-weight: normal;
    src: url(https://revealapp.com/fonts/SFMono-Medium.otf) format("opentype");
}

html {
    color: var(--color--text-default);
    background-color: var(--color--background-default);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

html,
body {
    font-family: Avenir-Web, Avenir, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.75rem;
}

html {
    font-family: Avenir-Web, Avenir, -apple-system, sans-serif;
    line-height: 1.75rem;
}

a {
    font-weight: bold;
    color: var(--color--button-link);
    text-decoration: underline;
    text-underline-offset: 0.25em;
    transition: color 0.25s cubic-bezier(0.06, 0.53, 0.41, 0.89);
}

a:hover,
a:focus {
    color: var(--color--button-link-hover);
    transition-duration: 0s;
}

a:active {
    color: var(--color--button-link-active);
    transition-duration: 0s;
}

h1,
h2,
h3 {
    font-weight: normal;
    line-height: 1.5em;
    color: var(--color--text-heading);
}

h1 {
    font-size: 2em;
}

h2,
h3 {
    font-size: 1.5em;
}

*+h1,
*+h2,
*+h3,
*+h4 {
    margin-top: 2em;
}

h1+h2,
h2+h3,
h3+h4 {
    margin-top: 0;
}

h4 {
    font-weight: bold;
    color: var(--color--text-heading);
}

em,
i {
    font-style: normal;
    font-weight: bold;
}

time,
cite,
small {
    font-weight: bold;
    color: var(--color--text-secondary);
}

ul,
ol {
    list-style: none;
}

/* Header remap */
header nav .nav-list a {
    color: var(--color--text-default);
    text-decoration: none;
}

header nav .nav-list a:hover {
    text-decoration: underline;
}

code {
    display: inline-block;
    line-height: 1.5em;
    font-size: 0.875em;
    font-weight: normal;
    word-break: break-all;
    white-space: pre-wrap;
    vertical-align: baseline;
    font-family: "SF-Mono-Web", "SF Mono", monospace;
    padding: 0.1em 0.4em 0.05em;
    margin-left: 0.15em;
    margin-right: 0.15em;
    border-radius: 0.25em;
    color: var(--color--text-heading);
    box-shadow: 0 0 0 1px var(--color--border-default);
}

pre {
    padding: 1em;
    border-radius: 4px;
    box-shadow: 0 0 0 1px var(--color--border-default);
}

pre code {
    padding: 0;
    box-shadow: none;
    background-color: transparent;
}

/* Search remap */
#docsSearch h1 {
    display: none;
}

#searchBar input.search-query {
    padding: 0.625em 1.5em;
    color: var(--color--input-foreground);
    border-radius: 1.5em;
    box-shadow: 0 0 0 0px transparent inset;
}

#searchBar input.search-query:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color--input-border) inset;
}

/* Footer remap */
footer {
    padding: 4rem 1rem;
    text-align: center;
}

footer a {
    color: var(--color--text-heading);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Articles */
.docs-article h1 {
    font-weight: normal;
    font-size: 2em;
    color: var(--color--text-heading);
}

.docs-article h2,
.docs-article h3 {
    font-weight: normal;
    font-size: 1.5em;
}

.docs-article p {
    line-height: 1.5;
    margin-bottom: 1em;
}

.docs-article ul>li::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.5rem;
    background-color: var(--color--button-link);
    border-radius: 0.25rem;
}

/* Links */
a {
    font-weight: bold;
    color: var(--color--button-link);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

a:hover {
    color: var(--color--button-link-hover);
}

/* Font Resets */
button,
input[type="text"],
.articleFoot p,
.articleFoot time {
    font-family: Avenir-Web, Avenir, -apple-system, sans-serif;
}

/* Search Bar */
#searchBar button {
    border-radius: 1.5em;
    font-weight: bold;
    background-color: var(--color--button-primary-background);
    color: var(--color--button-primary-foreground);
    top: auto;
}

#searchBar button:hover {
    background-color: var(--color--button-primary-background-hover);
}

/* Category list */
.category-list {
    text-align: center;

}

.category-list .category {
    border: 1px solid var(--color--border-default);
    border-radius: 0.25rem;
    background: var(--color--background-secondary);
    padding: 1.5rem;
}

.category-list .category h3 {
    font-size: 1.5rem;
}

/* Content */
.contentWrapper p {
    margin-top: auto;
}

/* Articles */

#fullArticle .btn {
    text-decoration: none;
}

.printArticle {
    display: none;
}

#main-content {
    background: none;
}

.contentWrapper {
    border: 0;
    padding: 0 2rem 0 0;
}

#fullArticle,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle div,
#fullArticle li,
#fullArticle ol,
#fullArticle p,
#fullArticle table,
#fullArticle ul {
    font-size: 1rem;
}

#fullArticle code {
    padding: 0;
}

#fullArticle blockquote {
    font-style: normal;
}

.icon-article-doc:before {
    content: "";
    margin-right: 0px;
}

.container-fluid {
    max-width: 100%;
}


.articleFoot p.lu,
.articleFoot time.lu {
    float: none;
}

aside nav .nav-list li {
    line-height: 1em;
}

aside nav .nav-list li a {
    font-size: 1em;
}

.nav-list .nav-header,
.nav-list>li>a {
    text-shadow: none;
}

article a {
    word-break: break-word;
}

article ul,
article ol {
    margin-left: 1rem;
}

article ul>li {
    position: relative;
    margin-left: 1.5rem;
}

article ul>li:before {
    position: absolute;
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    left: -1.5rem;
    top: 0.55rem;
    content: "";
    border-radius: 0.25rem;
    background-color: var(--color--button-link);
}

article ol {
    counter-reset: list-counter;
}

article ol>li {
    position: relative;
    margin-left: 1.5rem;
    counter-increment: list-counter;
}

article ol>li:before {
    position: absolute;
    display: block;
    line-height: 0;
    font-size: 0.875em;
    font-weight: bold;
    text-align: center;
    border-radius: 100%;
    top: 0.1rem;
    left: -2.5rem;
    width: 1.5rem;
    padding: 0.75rem 0 0.7rem;
    text-indent: 0.1rem;
    color: var(--color--tag-foreground);
    content: counter(list-counter);
    background-color: var(--color--tag-background);
}

article ul ul,
article ol ol,
article ul ol,
article ol ul {
    margin-top: 1rem;
}

article blockquote {
    padding-left: 1em;
    color: var(--color--text-secondary);
    border-left: 2px solid var(--color--border-default);
}

article figure {
    margin-top: 2em;
    margin-bottom: 2em;
    text-align: center;
}

article figure img {
    display: inline-block;
}

article figcaption {
    text-align: center;
    font-size: 0.875em;
    color: var(--color--text-secondary);
}

article hr {
    width: 100%;
    height: 1px;
    margin: 4em auto;
    border: none;
    background-color: var(--color--border-default);
}

#mainNav a.brand {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 1em;
}

#mainNav a.brand::after {
    content: "Reveal Support";
    padding-left: 12px;
    color: var(--color--neutral-100);
}

.navbar .brand {
    float: none;
}
