/* Custom styles for Camera Guide Sidebar */
.article-sidebar .sidebar-item ul {
    list-style: none;
    padding: 0;
}
.article-sidebar .sidebar-item ul li {
    display: flex;
    align-items: center;
    padding: 8px 0;
}
.article-sidebar .sidebar-item ul i {
    font-size: 20px;
    margin-right: 10px;
    color: var(--color-primary);
}
.article-sidebar .sidebar-item ul a {
    color: var(--color-secondary);
    transition: 0.3s;
}
.article-sidebar .sidebar-item ul a:hover {
    color: var(--color-primary);
}

.article-sidebar .reference-nav {
    margin-top: 14px;
}

.article-sidebar .reference-nav details {
    border-bottom: 1px solid #eef0f2;
}

.article-sidebar .reference-nav summary {
    position: relative;
    padding: 10px 28px 10px 0;
    color: #52565e;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.article-sidebar .reference-nav summary::-webkit-details-marker {
    display: none;
}

.article-sidebar .reference-nav summary::after {
    content: "⌄";
    position: absolute;
    top: 8px;
    right: 2px;
    color: #f7b733;
    font-size: 20px;
    line-height: 1;
    transform: rotate(-90deg);
    transition: transform .18s ease;
}

.article-sidebar .reference-nav details[open] > summary::after {
    transform: rotate(0deg);
}

.article-sidebar .reference-nav details[open] > summary {
    padding-bottom: 15px;
    color: #2f363d;
    font-weight: 700;
}

.article-sidebar .reference-nav details[open] > summary::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 38px;
    height: 2px;
    border-radius: 2px;
    background: #ffd336;
}

.article-sidebar .reference-nav .folder-links {
    margin: 0 0 10px;
    padding: 0 0 2px 16px;
}

.article-sidebar .reference-nav .folder-links li {
    padding: 5px 0;
}

.article-sidebar .sidebar-item ul a[aria-current="page"] {
    display: inline-block;
    margin-left: -8px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 211, 54, .35);
    color: #283943;
    font-weight: 600;
}

.article-sidebar .reference-nav summary:focus-visible,
.article-sidebar .reference-nav a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.article-sidebar .reference-nav .flat-links {
    margin: 12px 0 0;
}

/* Consistent article catalog cards */
.article-catalog .posts-list .post-item {
    display: flex;
    flex-direction: column;
}

.article-catalog .posts-list .post-img {
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.article-catalog .posts-list .post-img img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-catalog .posts-list .post-content {
    flex-grow: 1;
}

.article-catalog .posts-list .post-content hr {
    width: 100%;
    margin-top: auto;
}

/* Compact article layout */
.article-page {
    background: #f5f6f8;
}

.article-page .header {
    position: relative;
    inset: auto;
    padding: 20px 0;
    background: #17262d;
}

.article-page .blog {
    padding: 40px 0 72px;
    overflow: visible;
}

.article-page .blog > .container > .row {
    --bs-gutter-x: 32px;
    --bs-gutter-y: 24px;
}

.article-page .blog .blog-details,
.article-page .blog .sidebar {
    background: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(23, 38, 45, .025);
}

.article-page .blog .blog-details {
    padding: 36px 40px 40px;
}

.article-page .article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin-bottom: 18px;
    color: #66747d;
    font-size: 14px;
    font-weight: 600;
}

.article-page .article-back-link:hover {
    color: #17262d;
}

.article-page .article-back-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 3px;
}

.article-page .shooting-switch {
    margin-bottom: 30px;
    padding: 16px;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    background: #f7f8fa;
}

.article-page .shooting-switch__label {
    margin: 0 0 12px;
    color: #52616b;
    font-size: 14px;
    font-weight: 500;
}

.article-page .shooting-switch__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.article-page .shooting-switch__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border: 1px solid #e1e6ea;
    border-radius: 10px;
    background: #fff;
    color: #243944;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease;
}

.article-page .shooting-switch__option:hover {
    border-color: #bdc7ce;
    background: #fafbfc;
}

.article-page .shooting-switch__option[aria-current="page"] {
    border-color: #e7bc3b;
    background: #fff8df;
}

.article-page .shooting-switch__option:focus-visible {
    outline: 2px solid #a87506;
    outline-offset: 3px;
}

.article-page .shooting-switch__icon {
    display: grid;
    flex: 0 0 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #f0f3f5;
    color: #60737e;
    font-size: 18px;
}

.article-page .shooting-switch__option[aria-current="page"] .shooting-switch__icon {
    background: #ffedac;
    color: #805c0b;
}

.article-page .shooting-switch__text {
    flex: 1;
    min-width: 0;
}

.article-page .shooting-switch__title,
.article-page .shooting-switch__description {
    display: block;
}

.article-page .shooting-switch__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.article-page .shooting-switch__description {
    margin-top: 5px;
    color: #64737c;
    font-size: 12px;
    line-height: 1.5;
}

.article-page .shooting-switch__indicator {
    flex-shrink: 0;
    color: #84939c;
    font-size: 15px;
}

.article-page .shooting-switch__option[aria-current="page"] .shooting-switch__indicator {
    color: #986d0d;
}

.article-page .blog .blog-details .title {
    margin: 0;
    padding: 0;
    color: #1c303b;
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -.01em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.article-page .blog .blog-details .content {
    margin-top: 24px;
    color: #46545e;
    font-size: 16px;
    line-height: 1.75;
}

.article-page .blog .blog-details .content > .article-lead {
    margin-bottom: 28px;
    padding-left: 20px;
    border-left: 3px solid var(--color-primary);
    color: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
}

.article-page .blog .blog-details .content h3 {
    margin-top: 36px;
    margin-bottom: 12px;
    color: #243944;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.4;
    text-wrap: pretty;
}

.article-page .blog .blog-details .content h4 {
    color: #243944;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.45;
    text-wrap: pretty;
}

.article-page .blog .blog-details .content > h3:first-child {
    margin-top: 0;
}

.article-page .blog .blog-details .post-img {
    margin: 28px 0 0;
    border-radius: 10px;
}

.article-page .blog .sidebar {
    padding: 26px;
}

.article-page .blog .sidebar .sidebar-title {
    color: #243944;
    font-size: 17px;
    line-height: 1.4;
}

.article-page .article-sidebar .sidebar-item ul a {
    line-height: 1.5;
}

.article-page .article-media {
    margin: 24px 0;
}

.article-page .article-media a {
    display: block;
    min-width: 0;
}

.article-page .article-media img {
    display: block;
    width: 100%;
    height: auto;
}

.article-page .article-media--panel {
    padding: 24px;
    background: #f8f7f5;
}

.article-page .article-media--narrow > a {
    width: 56%;
    max-width: 360px;
    margin-inline: auto;
}

.article-page .article-media--status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 222px));
    justify-content: center;
    gap: 16px;
}

.article-page .article-media--editing {
    display: grid;
    grid-template-columns: minmax(0, 738fr) minmax(0, 348fr);
    align-items: start;
    gap: 18px;
}

.article-page .article-mobile-app {
    margin: 24px 0;
    padding: 0;
    background: transparent;
}

.article-page .article-mobile-app .realty-mobile-app {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 24px;
    padding: 26px;
}

.article-page .article-mobile-app .realty-mobile-app__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: .8px;
}

.article-page .article-mobile-app .realty-mobile-app h2 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.article-page .article-mobile-app .realty-mobile-app p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.article-page .article-mobile-app .realty-mobile-app__stores img {
    width: auto;
    max-width: 100%;
    height: 30px;
}

.article-page .article-mobile-app .realty-mobile-app__qr {
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
}

.article-page .article-mobile-app .realty-mobile-app__qr-code {
    width: 36px;
    height: 36px;
    padding: 3px;
    border: 0;
    border-radius: 6px;
    font-size: 21px;
}

.article-page .article-mobile-app .realty-mobile-app__qr-code svg,
.article-page .article-mobile-app .realty-mobile-app__qr-code img,
.article-page .article-mobile-app .realty-mobile-app__qr-code canvas {
    width: 30px !important;
    height: 30px !important;
}

.article-page .article-mobile-app .realty-mobile-app__qr strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.article-page .article-mobile-app .realty-mobile-app__qr small {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
}

.article-page .article-mobile-app .realty-mobile-app__phone {
    justify-content: center;
}

.article-page .article-mobile-app .realty-mobile-app__phone::before {
    right: 0;
    width: 120px;
    height: 120px;
}

.article-page .article-mobile-app .realty-mobile-app__phone-frame {
    width: 100px;
    height: 203px;
    border-width: 3px;
    border-radius: 18px;
}

.article-page .article-mobile-app .realty-mobile-app__phone-frame::before {
    width: 48px;
    height: 11px;
    border-radius: 0 0 9px 9px;
}

.article-page .article-mobile-app .realty-mobile-app__phone-screen {
    border-radius: 15px;
}

@media (max-width: 767px) {
    .article-page .header {
        padding: 16px 0;
    }

    .article-page .blog {
        padding: 24px 0 40px;
    }

    .article-page .blog .blog-details,
    .article-page .blog .sidebar {
        padding: 22px 20px;
        border-radius: 12px;
    }

    .article-page .article-back-link {
        margin-bottom: 14px;
    }

    .article-page .shooting-switch {
        padding: 12px;
        margin-bottom: 24px;
    }

    .article-page .blog .blog-details .title {
        font-size: 26px;
        line-height: 1.3;
    }

    .article-page .blog .blog-details .content h3 {
        font-size: 21px;
    }

    .article-page .blog .blog-details .content > .article-lead {
        margin-bottom: 24px;
        padding-left: 14px;
        font-size: 16px;
    }

    .article-page .article-media--panel {
        padding: 16px;
    }

    .article-page .article-media--narrow > a {
        width: 100%;
        max-width: 320px;
    }

    .article-page .article-media--editing {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .article-page .article-media--editing > a {
        width: 100%;
        max-width: 360px;
    }

    .article-page .article-media--editing > a:last-child {
        max-width: 200px;
    }
}

@media (max-width: 575px) {
    .article-page .shooting-switch__options {
        grid-template-columns: 1fr;
    }

    .article-page .article-mobile-app .realty-mobile-app {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }

    .article-page .article-mobile-app .realty-mobile-app__phone {
        display: none;
    }

    .article-page .article-media--status {
        grid-template-columns: minmax(0, 222px);
    }
}
