/* Shared long-form guide page styles (install guide, sideloading guide, …).
   Loaded alongside style.css + directory.css. */

.guide-hero {
    padding: 1.75rem;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    background: linear-gradient(140deg, rgba(74, 158, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.guide-hero-title {
    margin: 0 0 0.9rem;
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.guide-hero p {
    margin: 0 0 0.9rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.guide-hero p:last-of-type {
    margin-bottom: 1.4rem;
}

.guide-hero .dir-btn {
    margin-top: 0.15rem;
}

.guide-intro p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    counter-reset: guide-step;
}

.guide-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
}

.guide-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #08111f;
    font-weight: 700;
    font-size: 0.95rem;
}

.guide-step-title {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    font-weight: 700;
}

.guide-step-body p {
    margin: 0 0 0.4rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.guide-step-body p:last-child {
    margin-bottom: 0;
}

.guide-outro p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.guide-section > p {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.guide-section > p:last-child {
    margin-bottom: 0;
}

.guide-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0.9rem 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 560px) {
    .guide-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.guide-list li {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
}

.guide-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 0 auto;
}

@media (max-width: 560px) {
    .guide-list li:last-child:nth-child(odd) {
        width: auto;
        margin: 0;
    }
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.2rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
}

.guide-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.guide-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.guide-card-link {
    margin-top: 0.2rem;
    color: var(--accent-blue);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.guide-card-link:hover {
    text-decoration: none;
    color: var(--text);
}

.guide-faq {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.guide-faq-item {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: var(--card-bg);
}

.guide-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--text);
    list-style: none;
}

.guide-faq-item summary::-webkit-details-marker {
    display: none;
}

.guide-faq-item summary::before {
    content: "+";
    display: inline-block;
    width: 1rem;
    margin-right: 0.5rem;
    color: var(--accent-blue);
    font-weight: 700;
}

.guide-faq-item[open] summary::before {
    content: "\2212";
}

.guide-faq-item p {
    margin: 0.6rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.guide-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.guide-cta-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text);
    text-decoration: none;
}

.guide-cta-card:hover {
    text-decoration: none;
    border-color: rgba(148, 163, 184, 0.34);
}

.guide-cta-card strong {
    font-size: 0.98rem;
}

.guide-cta-card span {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.guide-brand-strip {
    text-align: center;
    padding: 1rem 0 0.5rem;
    color: var(--text-muted);
}

.guide-brand-strip strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.guide-brand-strip span {
    display: block;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .guide-card-grid,
    .guide-cta-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .guide-hero {
        padding: 1.15rem;
    }

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

    .guide-step-num {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}
