/* Guides and tutorials (/articles/). Loaded by templates/partials/article.html. */

.guide-col {
    min-width: 0;
}

.guide {
    max-width: 760px;
    margin: 0 auto 60px;
    color: #1e1e22;
}

/* Breadcrumbs */
.guide-breadcrumbs ol {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.guide-breadcrumbs li {
    font-size: 14px;
    color: #666;
}

.guide-breadcrumbs li + li::before {
    content: "\203A";
    padding: 0 8px;
    color: #999;
}

.guide-breadcrumbs a {
    color: #03778a;
}

/* Header */
.guide-header h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #1e1e22;
}

.guide-meta {
    font-size: 15px;
    color: #666;
    margin: 0 0 32px;
}

/* Body text */
#article {
    font-size: 18px;
    line-height: 1.65;
}

#article p,
#article li {
    font-size: inherit;
}

#article p,
#article ul,
#article ol,
#article dl,
#article pre,
#article blockquote {
    margin: 0 0 1.1em;
}

#article ul,
#article ol {
    padding-left: 1.4em;
    margin-left: 0;
}

#article li {
    margin: 0 0 .45em;
    line-height: 1.6;
}

#article li > ul,
#article li > ol {
    margin: .45em 0 0;
}

#article h2 {
    font-size: 28px !important;
    line-height: 1.25;
    margin: 2.2em 0 .6em;
    color: #1e1e22;
}

#article h3 {
    font-size: 21px;
    line-height: 1.3;
    margin: 1.8em 0 .5em;
    color: #1e1e22;
}

#article h4 {
    font-size: 17px;
    margin: 1.4em 0 .4em;
}

#article [id] {
    scroll-margin-top: 90px;
}

#article a,
.guide-cta a,
.guide-more a {
    color: #03778a;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

#article a:hover,
.guide-cta a:hover,
.guide-more a:hover {
    color: #025563;
}

#article strong {
    color: #1e1e22;
}

#article p.lead {
    font-size: 20px;
    line-height: 1.6;
}

/* Inline code and code blocks */
#article code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .86em;
    background: #f1f3f5;
    border-radius: 4px;
    padding: .1em .35em;
    overflow-wrap: anywhere;
    color: #24292e;
}

#article pre {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 14px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
    max-width: 100%;
}

#article pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    overflow-wrap: normal;
    color: #24292e;
}

/* Tables: wide ones scroll inside the wrapper, never the page */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.4em 0 1.6em;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
}

#article .table-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

#article .table-wrap.wide table {
    min-width: 900px;
}

#article .table-wrap.medium table {
    min-width: 640px;
}

#article .table-wrap th,
#article .table-wrap td {
    border: 0;
    border-bottom: 1px solid #e6e9ed;
    padding: 9px 12px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    text-align: left;
    vertical-align: top;
    color: #1e1e22 !important;
}

#article .table-wrap th {
    background: #f3f5f7;
    font-weight: 700;
}

#article .table-wrap thead th {
    border-bottom: 2px solid #d5dae0;
    white-space: nowrap;
}

#article .table-wrap tbody th {
    background: #fafbfc;
    min-width: 120px;
}

#article .table-wrap tr:last-child td,
#article .table-wrap tr:last-child th {
    border-bottom: 0;
}

#article .table-wrap tr:nth-of-type(even) {
    background: #fff;
}

#article caption {
    caption-side: top;
    text-align: left;
    padding: 10px 12px 0;
    font-size: 14px;
    color: #666;
}

/* Key facts list in each API section */
#article dl.facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 18px;
    background: #f7f9fa;
    border: 1px solid #e3e8ec;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 16px;
}

#article dl.facts dt {
    font-weight: 700;
    color: #1e1e22;
}

#article dl.facts dd {
    margin: 0;
    min-width: 0;
}

/* Notes and the table of contents */
#article .note {
    border-left: 4px solid #00bcd4;
    background: #f2fbfc;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
}

#article .toc {
    background: #f7f9fa;
    border: 1px solid #e3e8ec;
    border-radius: 6px;
    padding: 14px 18px 6px;
    margin-bottom: 1.6em;
}

#article .toc p {
    font-weight: 700;
    margin-bottom: .4em;
}

#article .toc ol {
    columns: 2;
    column-gap: 28px;
    font-size: 16px;
}

/* Hub list */
#article .guide-list {
    list-style: none;
    padding: 0;
}

#article .guide-list li {
    border: 1px solid #e3e8ec;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 0 0 14px;
}

#article .guide-list h2 {
    font-size: 20px !important;
    margin: 4px 0 6px;
}

#article .guide-list p {
    margin: 0;
    font-size: 16px;
}

#article .guide-kind {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #03778a;
    font-weight: 700;
}

/* Call to action and related guides */
.guide-cta {
    margin: 48px 0 0;
    padding: 22px 24px;
    background: #f2fbfc;
    border: 1px solid #c9eef3;
    border-radius: 8px;
}

.guide-cta h2,
.guide-more h2 {
    font-size: 22px !important;
    margin: 0 0 8px;
    color: #1e1e22;
}

.guide-cta p {
    font-size: 17px;
    margin: 0 0 12px;
}

.guide-cta-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-bottom: 0 !important;
}

.guide-cta a.guide-button {
    display: inline-block;
    background: #03778a;
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
}

.guide-cta a.guide-button:hover {
    background: #025563;
    color: #fff;
}

.guide-more {
    margin-top: 36px;
}

.guide-more ul {
    margin: 0;
    padding-left: 1.2em;
}

.guide-more li {
    font-size: 17px;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .guide-header h1 {
        font-size: 29px;
    }

    #article {
        font-size: 17px;
    }

    #article h2 {
        font-size: 23px !important;
    }

    #article h3 {
        font-size: 19px;
    }

    #article .toc ol {
        columns: 1;
    }

    #article dl.facts {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    #article dl.facts dd {
        margin-bottom: 8px;
    }

    .guide-cta {
        padding: 18px;
    }
}
