/* Tour through twonly: one section per theme, each feature with its text, where to find it and its screenshots. Colors match compare.css. */
.tour-main {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 6rem 3rem 6rem;
    color: #0e3a2c;
}

.tour-main h1,
.tour-main h2,
.tour-main h3,
.tour-main h4 {
    margin: 0;
    padding: 0;
    color: #0e3a2c;
    font-weight: 700;
    text-wrap: balance;
}

/* As wide as the lead below it, so the title breaks into two even lines. */
.tour-main h1 {
    max-width: 44rem;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.tour-main h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.tour-main h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

.tour-main h4 {
    margin-top: 2.25rem;
    font-size: 1.125rem;
    line-height: 1.45;
}

.tour-main p,
.tour-main li {
    color: #43574c;
    line-height: 1.8;
    text-wrap: pretty;
}

.tour-main a {
    color: #1a6546;
    text-decoration: underline;
    text-decoration-color: #b7d8c6;
    text-underline-offset: 4px;
}

.tour-main a:hover {
    text-decoration-color: currentColor;
}

.tour-main a:focus-visible {
    border-radius: 3px;
    outline: 2px solid #1a6546;
    outline-offset: 4px;
}

.tour-eyebrow {
    margin: 0 0 1rem;
    color: #1a6546 !important;
    font-size: 0.8125rem;
    font-weight: 600;
}

.tour-lead {
    max-width: 44rem;
    margin-top: 1.75rem;
    color: #194d3a !important;
    font-size: 1.125rem;
}

/* Table of contents: one column per theme with its features. */
.tour-toc {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding: 1.75rem 2rem;
    border-radius: 1.5rem;
    background: #eff8f2;
}

.tour-toc h2 {
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    letter-spacing: 0;
    line-height: 1.6;
}

.tour-toc h2 a {
    color: #1a6546;
    text-decoration: none;
}

.tour-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tour-toc li {
    line-height: 1.6;
}

.tour-toc li + li {
    margin-top: 0.375rem;
}

.tour-main .tour-toc li a {
    color: #0e3a2c;
    font-size: 0.9375rem;
    text-decoration-color: #b7d8c6;
}

.tour-group {
    margin-top: 6rem;
    scroll-margin-top: 1.5rem;
}

.tour-feature {
    margin-top: 3.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid #dcebe2;
    scroll-margin-top: 1.5rem;
}

.tour-group > .tour-feature:first-of-type {
    margin-top: 2rem;
    padding-top: 0;
    border-top: 0;
}

.tour-text {
    max-width: 44rem;
}

.tour-text > * + * {
    margin-top: 1rem;
}

.tour-text ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.tour-text li + li {
    margin-top: 0.375rem;
}

.tour-text li::marker {
    color: #1a6546;
}

/* "Where to find it" box, like a hint in the help centre. */
.tour-where {
    margin-top: 1.5rem !important;
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    background: #eff8f2;
}

.tour-where strong {
    color: #0e3a2c;
}

.tour-more {
    font-size: 0.9375rem;
}

/* The screenshots of a feature in a row, scrollable sideways when they don't fit. */
.tour-shots {
    display: flex;
    gap: 1.5rem;
    margin: 2rem -0.5rem 0;
    padding: 0.5rem 0.5rem 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.tour-shots figure {
    flex: none;
    width: 13.5rem;
    margin: 0;
    scroll-snap-align: start;
}

.tour-shots a {
    display: block;
    border-radius: 1rem;
    text-decoration: none;
}

.tour-shots img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #dcebe2;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgb(14 58 44 / 8%);
    transition: transform 0.15s ease;
}

.tour-shots a:hover img {
    transform: translateY(-3px);
}

.tour-shots figcaption {
    margin-top: 0.75rem;
    color: #43574c;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* The bigger view of a screenshot. */
.tour-lightbox {
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

.tour-lightbox::backdrop {
    background: rgb(7 30 22 / 85%);
}

.tour-lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tour-lightbox img {
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 6rem);
    border-radius: 1rem;
}

.tour-lightbox p {
    max-width: 36rem;
    margin: 0;
    padding: 0 1rem;
    color: #fff;
    text-align: center;
}

.tour-lightbox button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgb(255 255 255 / 15%);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.tour-outro {
    margin-top: 6rem;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: #eff8f2;
}

.tour-outro p {
    margin-top: 1rem;
}

/* The download area of the footer, as on the comparison page. */
.tour-page + div {
    padding: 3.5rem 1.5rem !important;
}

.tour-page + div h2 {
    padding: 0;
    color: #0e3a2c;
    font-size: 2rem;
    font-weight: 700;
}

.tour-page + div .my-5 {
    margin: 0 !important;
}

.tour-page + div .my-5 > div {
    flex-wrap: wrap;
    gap: 1rem !important;
}

.tour-page + div a {
    width: 10.5rem;
}

.tour-page + div img {
    width: 100%;
    height: auto;
}

.tour-main .tour-toc li a[aria-current] {
    color: #1a6546;
    font-weight: 600;
    text-decoration-color: currentColor;
}

/* On wide screens the contents stay on the left while you scroll. */
@media (min-width: 901px) {
    .tour-main {
        display: grid;
        grid-template-columns: 12.5rem minmax(0, 1fr);
        column-gap: 2.5rem;
        max-width: 80rem;
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .tour-main > section:first-child {
        grid-column: 2;
        grid-row: 1;
    }

    .tour-content {
        grid-column: 2;
        grid-row: 2;
    }

    .tour-toc {
        display: block;
        position: sticky;
        top: 2rem;
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        max-height: calc(100vh - 4rem);
        margin-top: 0;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .tour-toc > div + div {
        margin-top: 1.25rem;
    }

    .tour-main .tour-toc li a {
        font-size: 0.875rem;
    }

    .tour-toc li + li {
        margin-top: 0.25rem;
    }
}

@media (min-width: 1200px) {
    .tour-main {
        grid-template-columns: 14rem minmax(0, 1fr);
        column-gap: 4rem;
        padding-right: 3rem;
        padding-left: 3rem;
    }
}

@media (max-width: 900px) {
    .tour-toc {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tour-main {
        padding: 4rem 1rem 4rem;
    }

    .tour-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1.5rem 1.25rem;
    }

    .tour-group {
        margin-top: 4.5rem;
    }

    .tour-shots {
        gap: 1rem;
        margin-right: -1rem;
        padding-right: 1rem;
    }

    .tour-shots figure {
        width: 62vw;
        max-width: 13.5rem;
    }

    .tour-outro {
        padding: 1.75rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tour-shots img {
        transition: none;
    }
}

/* Browser screenshots, such as the memories importer, are wider than a phone. */
.tour-shots figure.tour-shot--wide {
    width: 26rem;
}

@media (max-width: 640px) {
    .tour-shots figure.tour-shot--wide {
        width: 80vw;
        max-width: 26rem;
    }
}

/* The feedback buttons at the end, as on the About page. */
.tour-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.tour-main .tour-actions .tour-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid #0e3a2c;
    border-radius: 0.625rem;
    background: #0e3a2c;
    color: #e1f9eb;
    font-weight: 600;
    text-decoration: none;
}

.tour-main .tour-actions .tour-button:hover {
    background: #194d3a;
}

.tour-main .tour-text-link {
    font-size: 0.9375rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .tour-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tour-text-link {
        text-align: center;
    }
}
