/* Shared styles for /user-guides single pages */
.tp-support-body {
    line-height: 1.6;
    color: #333;
    background-color: #f3f4f6;
    padding: 1rem;
}

.tp-support-main-container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 1.5rem 2.5rem;
}

@media (min-width: 640px) {
    .tp-support-body {
        padding: 2rem;
    }

    .tp-support-main-container {
        padding: 2.5rem;
    }
}

.tp-support-header {
    text-align: left;
    margin-bottom: 2.5rem;
    overflow: auto;
    scroll-margin-top: 9rem;
}

.tp-support-header h1 {
    margin: 0 0 1rem;
    font-size: 2.25rem;
    line-height: 1.25;
    font-weight: 700;
    color: #003366;
}

@media (min-width: 640px) {
    .tp-support-header h1 {
        font-size: 2.5rem;
    }
}

.tp-support-intro p {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

.tp-support-intro p:last-child {
    margin-bottom: 0;
}

.tp-support-video-card {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 0 1.25rem;
    text-decoration: none;
    color: inherit;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #003366;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
    .tp-support-video-card {
        float: right;
        margin: 0 0 1.25rem 1.75rem;
    }
}

.tp-support-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 51, 102, 0.24);
    text-decoration: none;
}

.tp-support-video-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #003366 0%, #025a7a 55%, #02a8e1 100%);
}

.tp-support-video-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
}

.tp-support-video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3.25rem;
    height: 3.25rem;
    margin: -1.625rem 0 0 -1.625rem;
    border-radius: 50%;
    background: rgba(2, 168, 225, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.tp-support-video-card-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    width: 0;
    height: 0;
    margin-top: -0.5rem;
    margin-left: -0.35rem;
    border-style: solid;
    border-width: 0.5rem 0 0.5rem 0.85rem;
    border-color: transparent transparent transparent #ffffff;
}

.tp-support-video-card-label {
    display: block;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: #003366;
    letter-spacing: 0.01em;
}

.tp-support-video-card:hover .tp-support-video-card-label {
    color: #e8f7fc;
}

.tp-support-content-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.tp-support-summary-box {
    flex: 1;
    background-color: #e8f7fc;
    border-left: 4px solid #02a8e1;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tp-support-summary-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1rem;
}

.tp-support-summary-box > div > p {
    color: #334155;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.tp-support-summary-box ul {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    margin: 0;
}

.tp-support-summary-box ul li {
    margin-bottom: 0.35rem;
}

.tp-support-summary-box ul li a {
    color: #02a8e1;
    text-decoration: none;
}

.tp-support-summary-box ul li a:hover {
    text-decoration: underline;
    color: #003366;
}

.tp-support-jump-label {
    font-weight: 600;
    color: #003366;
    margin-bottom: 0.5rem;
}

.tp-support-jump-list {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    margin: 0;
    columns: 1;
    column-gap: 1.5rem;
}

.tp-support-jump-list li {
    margin-bottom: 0.35rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

@media (min-width: 480px) {
    .tp-support-jump-list {
        columns: 2;
    }
}

@media (min-width: 768px) {
    .tp-support-jump-list {
        columns: 3;
    }
}

.tp-support-sticky-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 75px;
    z-index: 90;
    background: #ffffff;
    border-bottom: 1px solid #cceef8;
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.tp-support-sticky-menu.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tp-support-sticky-menu-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.7rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.tp-support-sticky-menu-title {
    flex-shrink: 0;
    max-width: 16rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #003366;
    text-decoration: none;
    line-height: 1.3;
}

.tp-support-sticky-menu-title:hover {
    color: #02a8e1;
    text-decoration: none;
}

.tp-support-sticky-menu-links {
    flex: 1;
    min-width: 0;
}

.tp-support-sticky-menu .tp-support-jump-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    columns: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
}

.tp-support-sticky-menu .tp-support-jump-list li {
    margin: 0;
    padding: 0;
    break-inside: auto;
}

.tp-support-sticky-menu .tp-support-jump-list a {
    display: inline-block;
    padding: 0.25rem 0;
    color: #025a7a;
    text-decoration: none;
}

.tp-support-sticky-menu .tp-support-jump-list a:hover {
    color: #02a8e1;
    text-decoration: underline;
}

@media (max-width: 1023px) {
    .tp-support-sticky-menu {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-support-sticky-menu {
        transition: none;
    }
}

.tp-support-youtube-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    min-height: 10rem;
    padding: 1rem;
    border: 2px dashed #9ca3af;
}

.tp-support-youtube-placeholder p {
    text-align: center;
    color: #4b5563;
    font-weight: 600;
}

.tp-support-content-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tp-support-content-body section {
    margin-top: 2.5rem;
    scroll-margin-top: 9rem;
}

.tp-support-content-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #cceef8;
}

.tp-support-content-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #003366;
    margin: 1.5rem 0 0.75rem;
}

.tp-support-content-body p,
.tp-support-content-body li {
    font-size: 1rem;
    color: #4b5563;
}

.tp-support-content-body p {
    margin-bottom: 1rem;
}

.tp-support-content-body ul,
.tp-support-content-body ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}

.tp-support-content-body ol {
    list-style-type: decimal;
}

.tp-support-content-body ul {
    list-style-type: disc;
}

.tp-support-content-body li {
    margin-bottom: 0.5rem;
}

.tp-support-content-body strong {
    font-weight: 600;
    color: #1f2937;
}

.tp-support-content-body ul.tp-support-field-list {
    list-style: none;
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
}

.tp-support-content-body ul.tp-support-field-list li {
    list-style: none;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.tp-support-note-box {
    padding: 1rem;
    background-color: #e8f7fc;
    border-left: 4px solid #02a8e1;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    color: #003366;
}

.tp-support-note-box p {
    font-size: 1rem;
    color: #003366;
    margin: 0;
}

.tp-support-warning-box {
    padding: 1rem;
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    color: #92400e;
}

.tp-support-warning-box p {
    font-size: 1rem;
    color: #92400e;
    margin: 0;
}

.tp-support-note-box strong,
.tp-support-warning-box strong {
    font-weight: 700;
}

.tp-support-screenshot-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.tp-support-screenshot {
    max-width: 100%;
    height: auto;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 51, 102, 0.12);
}

.tp-support-screenshot-zoomable {
    cursor: zoom-in;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tp-support-screenshot-zoomable:hover,
.tp-support-screenshot-zoomable:focus {
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.2);
    outline: none;
}

.tp-support-screenshot-zoomable:focus-visible {
    box-shadow: 0 0 0 3px rgba(2, 168, 225, 0.45), 0 8px 24px rgba(0, 51, 102, 0.2);
}

body.tp-support-lightbox-open {
    overflow: hidden;
}

.tp-support-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 20, 40, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tp-support-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.tp-support-lightbox-figure {
    margin: 0;
    max-width: min(1200px, 100%);
    max-height: 100%;
    text-align: center;
}

.tp-support-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 6.5rem);
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    background: #ffffff;
}

.tp-support-lightbox-caption {
    margin-top: 0.85rem;
    color: #e8f7fc;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.tp-support-lightbox-close,
.tp-support-lightbox-prev,
.tp-support-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(0, 51, 102, 0.92);
    color: #ffffff;
    cursor: pointer;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease;
}

.tp-support-lightbox-close:hover,
.tp-support-lightbox-prev:hover,
.tp-support-lightbox-next:hover,
.tp-support-lightbox-close:focus,
.tp-support-lightbox-prev:focus,
.tp-support-lightbox-next:focus {
    background: #02a8e1;
    outline: none;
}

.tp-support-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.75rem;
    line-height: 1;
}

.tp-support-lightbox-prev,
.tp-support-lightbox-next {
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.375rem;
    font-size: 1.35rem;
    line-height: 1;
}

.tp-support-lightbox-prev {
    left: 1rem;
}

.tp-support-lightbox-next {
    right: 1rem;
}

.tp-support-lightbox-prev:disabled,
.tp-support-lightbox-next:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 640px) {
    .tp-support-lightbox {
        padding: 1rem;
    }

    .tp-support-lightbox-prev,
    .tp-support-lightbox-next {
        top: auto;
        bottom: 1rem;
        margin-top: 0;
    }

    .tp-support-lightbox-prev {
        left: 1rem;
    }

    .tp-support-lightbox-next {
        right: 1rem;
    }

    .tp-support-lightbox-image {
        max-height: calc(100vh - 8.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-support-lightbox,
    .tp-support-screenshot-zoomable {
        transition: none;
    }
}

.tp-support-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.95rem;
    border: 0;
    border-radius: 999px;
    background: #003366;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.75rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.tp-support-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tp-support-back-to-top:hover,
.tp-support-back-to-top:focus {
    background: #02a8e1;
    outline: none;
}

.tp-support-back-to-top:focus-visible {
    box-shadow: 0 0 0 3px rgba(2, 168, 225, 0.45), 0 8px 20px rgba(0, 51, 102, 0.28);
}

.tp-support-back-to-top-text {
    letter-spacing: 0.02em;
}

@media (max-width: 479px) {
    .tp-support-back-to-top {
        right: 1rem;
        bottom: 1rem;
        padding: 0.75rem;
    }

    .tp-support-back-to-top-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-support-back-to-top {
        transition: none;
    }
}

/* User guides index (/user-guides/) */
.tp-guides-index {
    background: #f3f4f6;
}

/* Keep GoodLayers hero backgrounds visible inside .tp-guides-index
   (their default z-index: -2 paints behind this section's background). */
.tp-guides-index > .gdlr-core-pbf-wrapper {
    isolation: isolate;
}

.tp-guides-index > .gdlr-core-pbf-wrapper > .gdlr-core-pbf-background-wrap {
    z-index: 0;
}

.tp-guides-index > .gdlr-core-pbf-wrapper > .gdlr-core-pbf-background-wrap > .gdlr-core-pbf-background {
    background-position: center bottom !important;
}

.tp-guides-index > .gdlr-core-pbf-wrapper > .gdlr-core-pbf-wrapper-content {
    position: relative;
    z-index: 1;
}

.tp-guides-index-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.tp-guides-index-toc {
    background: #ffffff;
    border-left: 4px solid #02a8e1;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 51, 102, 0.08);
}

.tp-guides-index-toc-label {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #003366;
}

.tp-guides-index-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.5rem 1rem;
}

.tp-guides-index-toc li {
    min-width: 0;
}

.tp-guides-index-toc a {
    display: block;
    color: #02a8e1;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
}

.tp-guides-index-toc a:hover {
    color: #003366;
    text-decoration: underline;
}

.tp-guides-index-sticky-toc .tp-support-sticky-menu-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    max-width: 8.5rem;
}

.tp-guides-index-sticky-toc .tp-support-jump-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.5rem 1.25rem;
}

.tp-guides-index-sticky-toc .tp-support-jump-list li {
    min-width: 0;
}

.tp-guides-index-sticky-toc .tp-support-jump-list a {
    display: block;
}

.tp-guides-index-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: var(--tp-guides-index-scroll-margin, 14rem);
}

.tp-guides-index-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #cceef8;
}

.tp-guides-index-section-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
}

.tp-guides-index-section-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #02a8e1;
    text-decoration: none;
    white-space: nowrap;
}

.tp-guides-index-section-action:hover {
    color: #003366;
    text-decoration: underline;
}

.tp-guides-index-section-action span {
    transition: transform 0.2s ease;
}

.tp-guides-index-section-action:hover span {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .tp-guides-index-section-action span {
        transition: none;
    }
}

.tp-guides-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 720px) {
    .tp-guides-index-list {
        grid-template-columns: 1fr 1fr;
    }
}

.tp-guides-index-list a {
    display: block;
    height: 100%;
    padding: 1rem 1.15rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tp-guides-index-list a:hover {
    border-color: #02a8e1;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.tp-guides-index-link-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #003366;
    line-height: 1.35;
}

.tp-guides-index-link-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    .tp-guides-index-list a {
        transition: none;
    }
}
