/*
 * Layout of the laravel-modules docs on top of PrettyDocs (BS5):
 * header with version selector, sidebar with groups, plain content.
 */

:root {
    --kit-accent: #75c181;
}

a {
    color: var(--kit-accent);
    text-decoration: none;
}

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

.doc-menu a:hover {
    text-decoration: none;
}

/* ===== Header ===== */
.header {
    border-top: 5px solid var(--kit-accent);
    padding: 30px 0;
}

.kit-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kit-branding .logo {
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kit-branding .logo a,
.kit-branding .logo a:hover {
    text-decoration: none;
}

.kit-branding .icon,
.kit-branding .text-highlight,
.kit-back,
.kit-back:hover {
    color: var(--kit-accent) !important;
}

.kit-branding .text-highlight {
    text-transform: uppercase;
}

.kit-version .btn {
    font-weight: 600;
    background: #fff;
    border-color: #fff;
}

.kit-version .dropdown-item.active,
.kit-version .dropdown-item:active {
    background: var(--kit-accent);
    color: #fff;
}

.kit-github,
.kit-github:hover {
    margin-left: auto;
    color: #fff !important;
    font-size: 34px;
    line-height: 1;
}

/* ===== Sidebar ===== */
#doc-nav {
    position: sticky;
    top: 20px;
}

.doc-menu {
    list-style: none;
    padding-left: 0;
}

.doc-menu > li {
    margin-bottom: 5px;
}

.doc-menu > li > a {
    display: block;
    padding: 5px 15px;
    border-left: 4px solid transparent;
    color: #616670;
    font-size: 15px;
}

.doc-menu > li.active > a {
    border-left-color: var(--kit-accent);
    color: var(--kit-accent);
    font-weight: 600;
}

.doc-sub-menu {
    list-style: none;
    padding-left: 0;
}

.doc-sub-menu > li {
    margin-bottom: 10px;
    font-size: 13px;
}

.doc-sub-menu > li:first-child {
    padding-top: 5px;
}

.doc-sub-menu > li > a {
    display: block;
    color: #616670;
    padding-left: 34px;
}

.doc-menu > li:first-child .doc-sub-menu > li > a {
    padding-left: 19px;
}

.doc-sub-menu > li > a:hover,
.doc-sub-menu > li.active > a {
    color: var(--kit-accent);
    text-decoration: none;
}

/* ===== Content ===== */
.doc-content {
    position: relative;
    font-size: 15px;
}

.doc-content h1 {
    font-size: 48px;
    font-weight: 600;
    color: #494d55;
    margin: 0 0 30px;
    padding-right: 140px;
}

.doc-content h2 {
    font-size: 28px;
    margin: 40px 0 15px;
    color: #494d55;
}

.doc-content h3 {
    font-size: 20px;
    margin: 30px 0 12px;
    color: #494d55;
}

.anchor-link {
    opacity: 0;
    font-size: 0.6em;
    margin-left: 6px;
    text-decoration: none !important;
}

.anchor-link::before {
    content: "#";
}

.doc-content h1:hover .anchor-link,
.doc-content h2:hover .anchor-link,
.doc-content h3:hover .anchor-link {
    opacity: 0.6;
}

.kit-toolbar {
    position: absolute;
    top: 18px;
    right: 0;
}

.kit-edit,
.kit-edit:hover {
    background: #494d55;
    color: #fff !important;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none !important;
}

.kit-edit i {
    margin-left: 3px;
    font-size: 14px;
    vertical-align: -1px;
}

/* Inline code: light grey with pink text. */
.doc-content :not(pre) > code {
    display: inline;
    background: #f1f1f3;
    color: #c7254e;
    font-weight: 400;
    font-size: 0.85em;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Code blocks: one dark block framed in light grey, full width. */
.doc-content pre,
.doc-content pre[class*="language-"] {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 9px;
    margin: 0 0 20px;
    overflow: visible;
}

.doc-content pre > code,
.doc-content pre > code[class*="language-"] {
    display: block;
    background: #333;
    color: #fff;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    border-radius: 0;
    white-space: pre;
    overflow-x: auto;
    text-shadow: none;
}

.doc-content table {
    background: #fff;
    margin-bottom: 20px;
}

.doc-content table code {
    white-space: nowrap;
}

.doc-content ul,
.doc-content ol {
    margin-bottom: 1em;
}

.doc-content li {
    margin-bottom: 4px;
}

.callout-block {
    margin: 25px 0;
}

.callout-block .content p:last-child {
    margin-bottom: 0;
}

.callout-block :not(pre) > code {
    background: rgba(255, 255, 255, 0.4);
    color: inherit;
}

/* Previous / next */
.kit-pager {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.kit-pager a {
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 5px 14px;
    background: #fff;
    text-decoration: none;
}

.kit-pager a:hover {
    background: #eee;
}

/* ===== Footer ===== */
.footer {
    height: auto;
    padding: 15px 0;
}

.footer a {
    color: var(--kit-accent);
}

@media (max-width: 767.98px) {
    .doc-content h1 {
        font-size: 34px;
        padding-right: 0;
    }

    .kit-toolbar {
        position: static;
        margin-bottom: 10px;
    }

    #doc-nav {
        position: static;
        margin-bottom: 30px;
    }
}
