/* Sheafly guides — layered on top of ../style.css, reusing its tokens. */

.guide-page {
    background: var(--surface);
}

.guide-shell {
    width: min(820px, calc(100% - 48px));
    margin-inline: auto;
    padding: clamp(34px, 5vw, 56px) 0 clamp(40px, 6vw, 64px);
}

.breadcrumb {
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--rule);
}

.breadcrumb a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.guide-shell h1 {
    max-width: 760px;
    font-size: clamp(2.1rem, 4.4vw, 3rem);
}

.guide-lede {
    margin-bottom: 1.6rem;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.8vw, 1.16rem);
    line-height: 1.55;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.guide-meta li {
    padding: 6px 12px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--ink-soft);
    background: var(--surface-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

.guide-shell h2 {
    margin-top: 2.6rem;
    font-size: clamp(1.55rem, 3vw, 2rem);
    scroll-margin-top: 92px;
}

.guide-shell h3 {
    margin-top: 1.8rem;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.guide-shell p,
.guide-shell li {
    color: var(--ink-soft);
}

.guide-shell strong {
    color: var(--ink);
}

.guide-shell a:not(.app-store-badge):not(.guide-card) {
    color: var(--teal);
    font-weight: 600;
    text-underline-offset: 3px;
}

.guide-shell code,
.guide-shell kbd {
    padding: 1px 6px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--ink);
    background: var(--surface-soft);
    font: 0.88em/1.4 ui-monospace, "SF Mono", Menlo, monospace;
}

.ui {
    color: var(--ink);
    font-weight: 650;
}

/* Quick answer box */
.quick-answer {
    margin: 0 0 2rem;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--teal-pale);
}

.quick-answer h2 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    color: #113832;
}

.quick-answer ol {
    margin: 0;
    padding-left: 1.3rem;
}

.quick-answer li {
    margin: 0.35rem 0;
    color: #294c48;
}

/* On-page contents */
.guide-toc {
    margin: 0 0 1rem;
    padding: 16px 20px;
    border: 1px solid var(--rule);
    border-radius: 16px;
    background: var(--surface-soft);
}

.guide-toc p {
    margin: 0 0 0.4rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guide-toc ul {
    margin: 0;
    padding-left: 1.1rem;
}

.guide-toc li {
    margin: 0.2rem 0;
}

/* Numbered steps */
.steps {
    counter-reset: step;
    margin: 1rem 0 1.4rem;
    padding: 0;
    list-style: none;
}

.steps > li {
    position: relative;
    counter-increment: step;
    margin: 0 0 0.9rem;
    padding-left: 44px;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: var(--teal);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

/* Screenshots and renders */
.shot {
    margin: 1.4rem 0 1.8rem;
}

.shot img {
    width: 100%;
    height: auto;
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.shot-window img {
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: 0 18px 44px rgba(23, 38, 59, 0.16), 0 0 0 1px rgba(23, 38, 59, 0.08);
}

.shot-narrow {
    max-width: 560px;
    margin-inline: auto;
}

.shot-page img {
    max-width: 560px;
    margin-inline: auto;
    border-radius: 6px;
}

.shot figcaption,
.phone-row figcaption {
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: center;
}

.phone-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 1.4rem 0 1.8rem;
}

.phone-row.two {
    grid-template-columns: repeat(2, minmax(0, 220px));
    justify-content: center;
}

.phone-row.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.phone-row figure {
    margin: 0;
}

.phone-row img {
    width: 100%;
    height: auto;
    border: 1px solid var(--rule);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(23, 38, 59, 0.14);
}

.phone-row figcaption {
    font-size: 0.8rem;
}

/* Callouts */
.callout {
    margin: 1.4rem 0;
    padding: 16px 20px;
    border-left: 4px solid var(--teal);
    border-radius: 0 14px 14px 0;
    background: var(--blue-pale);
}

.callout p {
    margin: 0;
}

.callout p + p {
    margin-top: 0.6rem;
}

.callout-title {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--ink);
    font-weight: 700;
}

.limits {
    padding-left: 1.2rem;
}

.limits li {
    margin: 0.55rem 0;
}

/* Related guides and index cards */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.guide-card {
    display: block;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--rule);
    border-radius: 18px;
    color: inherit;
    background: var(--surface-soft);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
    border-color: var(--teal);
    transform: translateY(-1px);
}

.guide-card strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--ink);
    font-size: 1.04rem;
    line-height: 1.3;
}

.guide-card span {
    display: block;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.guide-card img {
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid var(--rule);
}

.guide-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Call to action */
.guide-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    padding: clamp(26px, 5vw, 40px);
    border-radius: 24px;
    background: var(--teal-pale);
    text-align: center;
}

.guide-cta img.cta-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
}

.guide-cta h2 {
    margin: 0 0 0.6rem;
}

.guide-cta p {
    max-width: 560px;
    margin: 0 0 1.3rem;
    color: #294c48;
}

.guide-cta .fine {
    margin: 1rem 0 0;
    color: #3f6560;
    font-size: 0.84rem;
}

@media (max-width: 700px) {
    .guide-shell {
        width: min(100% - 32px, 820px);
    }

    .phone-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .phone-row.two,
    .phone-row.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .steps > li {
        padding-left: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-card {
        transition: none;
    }

    .guide-card:hover {
        transform: none;
    }
}

/* iPad screenshots (landscape) */
.shot-tablet img {
    border: 1px solid var(--rule);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(23, 38, 59, 0.14);
}

/* A single phone screenshot */
.phone-row.one {
    grid-template-columns: minmax(0, 260px);
    justify-content: center;
}

@media (max-width: 700px) {
    .phone-row.one {
        grid-template-columns: minmax(0, 220px);
    }
}
