html {
    scroll-padding-top: 82px;
}

.guide-header {
    background:
        linear-gradient(180deg, rgba(0, 72, 110, 0.58), rgba(1, 46, 70, 0.72)),
        url(/images/stock-photo-landlord-keys-contract-small.jpg);
    background-position: center 35%;
    background-size: cover;
}

.guide-header .main-text {
    margin-top: 0;
}

.guide-header .main-text h1,
.guide-header .main-text p {
    text-shadow: 1px 1px 2px #00000099;
}

.guide-header .main-text p {
    font-size: 1.35rem;
}

.container .row:first-child {
    margin-top: 0;
}

.guide-container .row:first-child {
    margin-top: 0;
}

.guide-content {
    color: #2d3740;
}

.guide-content p,
.guide-content li {
    line-height: 1.75;
}

.guide-content section {
    border-bottom: 1px solid #dce5eb;
    margin-bottom: 2.75rem;
    padding-bottom: 2.75rem;
}

.guide-content section:last-child {
    border-bottom: 0;
}

.guide-content h2 {
    color: #173f5f;
    font-weight: 500;
    margin-bottom: 1rem;
}

.guide-content h3 {
    color: #245875;
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 1.75rem;
    margin-bottom: .75rem;
}

.section-kicker {
    color: #8b5b4a;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.guide-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 1.5rem 0;
}

.guide-principles div {
    align-items: flex-start;
    background: #f7fbfd;
    border: 1px solid #d7e9f2;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 28px 1fr;
    padding: 14px;
}

.guide-principles i {
    color: #0579af;
    font-size: 1.1rem;
    margin-top: .2rem;
}

.guide-principles b,
.guide-principles span {
    display: block;
    grid-column: 2;
}

.guide-principles span {
    color: #596a75;
    font-size: .94rem;
}

.guide-screenshot {
    background: #ffffff;
    border: 1px solid #d8e3ea;
    border-radius: 8px;
    box-shadow: 0 .15rem .65rem rgba(40, 70, 90, .08);
    margin: 1.4rem 0 1.75rem;
    overflow: hidden;
}

.mobile-frame-shell {
    align-items: center;
    background:
        linear-gradient(180deg, #f8fbfd, #eef5f8);
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}

.mobile-frame {
    background: #263746;
    border: 1px solid #0f1f2c;
    border-radius: 30px;
    box-shadow: 0 14px 32px rgba(15, 31, 44, .2);
    max-width: 290px;
    padding: 18px 11px 14px;
    position: relative;
    width: 62%;
}

.mobile-frame::before,
.mobile-frame::after {
    background: #1a2935;
    content: "";
    position: absolute;
    top: 78px;
    width: 3px;
}

.mobile-frame::before {
    border-radius: 2px 0 0 2px;
    height: 38px;
    left: -4px;
}

.mobile-frame::after {
    border-radius: 0 2px 2px 0;
    height: 56px;
    right: -4px;
}

.mobile-speaker {
    background: #0e1a22;
    border-radius: 999px;
    height: 5px;
    margin: 0 auto 12px;
    width: 56px;
}

.mobile-screen {
    background: #f7fbfd;
    border: 1px solid #0b1620;
    border-radius: 18px;
    overflow: hidden;
}

.mobile-home-indicator {
    background: #0e1a22;
    border-radius: 999px;
    height: 4px;
    margin: 10px auto 0;
    width: 72px;
}

.mobile-screen img {
    display: block;
    height: auto;
    width: 100%;
}

.screenshot-placeholder {
    align-items: center;
    aspect-ratio: 9 / 19;
    background:
        linear-gradient(135deg, rgba(5, 121, 175, .08), rgba(182, 115, 91, .12)),
        repeating-linear-gradient(45deg, #f8fbfd 0, #f8fbfd 10px, #eef5f8 10px, #eef5f8 20px);
    color: #466170;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.15rem;
    text-align: center;
}

.screenshot-placeholder i {
    color: #0579af;
    font-size: 2rem;
    margin-bottom: .75rem;
}

.screenshot-placeholder span {
    font-weight: 700;
}

.screenshot-placeholder small {
    color: #6a7d88;
    font-size: .72rem;
    line-height: 1.35;
    margin-top: .25rem;
    overflow-wrap: anywhere;
}

.guide-screenshot figcaption {
    color: #5d6c76;
    font-size: .9rem;
    margin: 0;
    padding: .75rem 1rem;
    text-align: center;
}

#guide-sidebar {
    top: 80px;
}

.guide-sidebar-card {
    background: #fff8e5;
    border: 1px solid #eed16780;
    border-radius: 8px;
    padding: 1rem;
}

.guide-sidebar-title {
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    color: #6d4d24;
    font-weight: 600;
    margin-bottom: .65rem;
    padding-bottom: .45rem;
}

.guide-sidebar-title i {
    margin-right: .35rem;
}

#guide-section-menu {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: .25rem;
}

#guide-section-menu .nav-link {
    border-radius: 8px;
    color: #385466;
    font-size: .93rem;
    font-weight: 300;
    margin: 2px 0;
    padding: .42rem .65rem;
    position: relative;
    transition: background-color .18s ease, box-shadow .18s ease, color .18s ease, padding-left .18s ease;
}

#guide-section-menu .nav-link:hover {
    background: rgba(5, 121, 175, .08);
    color: #0579af;
}

#guide-section-menu .nav-link::before {
    background: transparent;
    border-radius: 999px;
    content: "";
    height: calc(100% - 12px);
    left: 7px;
    position: absolute;
    top: 6px;
    transition: background-color .18s ease, width .18s ease;
    width: 0;
}

#guide-section-menu .nav-link.active {
    background: linear-gradient(90deg, #dff0f8 0%, #edf7fb 100%);
    box-shadow: inset 0 0 0 1px rgba(5, 121, 175, .22), 0 3px 10px rgba(5, 121, 175, .12);
    color: #045f89;
    font-weight: 700;
    padding-left: 1.15rem;
}

#guide-section-menu .nav-link.active::before {
    background: #0579af;
    width: 4px;
}

#guide-section-menu .nav-item.active + .nav-item .nav-link {
    margin-top: 4px;
}

.screen-reference-table {
    background: #ffffff;
    border: 1px solid #d8e3ea;
    border-radius: 8px;
}

.screen-reference-table table {
    margin-bottom: 0;
}

.screen-reference-table th {
    background: #173f5f;
    border-color: #173f5f;
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
}

.screen-reference-table td {
    vertical-align: top;
}

.breadcrumb {
    background: #f6fafc;
    border: 1px solid #e1edf3;
    border-radius: 8px;
}

code {
    color: #245875;
}

@media (max-width: 991.98px) {
    #guide-sidebar {
        position: static;
    }

    #guide-section-menu {
        max-height: none;
    }

    .guide-principles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .guide-header .main-text p {
        font-size: 1.05rem;
    }

    .guide-content section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .mobile-frame-shell {
        padding: 1rem;
    }

    .mobile-frame {
        max-width: 240px;
        width: 72%;
    }
}
