/* guide.css -- gemensam stilmall for alla guider (SEO-05) */

:root {
    --bg-primary:     var(--landing-bg-primary,    #ffffff);
    --bg-secondary:   var(--landing-bg-secondary,  #f9fafb);
    --text-primary:   var(--landing-text-primary,  #1f2937);
    --text-secondary: var(--landing-text-secondary,#6b7280);
    --border-color:   var(--landing-border-color,  #e5e7eb);
    --primary-color:  var(--signal,                #5ba3d9);
    --hover-color:    var(--landing-card-hover,    rgba(0,0,0,0.03));
}

/* ---- Breadcrumb ---- */
.guide-breadcrumb {
    padding: 0.6rem 1.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.guide-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--primary-color); }
.guide-breadcrumb span[aria-hidden] { margin: 0 0.35rem; opacity: 0.4; }

/* ---- Layout ---- */
.guide-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

/* ---- Header ---- */
.guide-header {
    padding: 1.75rem 0 1.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.75rem;
}
.guide-h1 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.guide-h1-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}
.guide-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

/* ---- Section headings ---- */
.guide-section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.85rem;
}

/* ---- Steps ---- */
.guide-steps {
    margin-bottom: 1.75rem;
    counter-reset: step;
}
.guide-step {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}
.guide-step:last-child { border-bottom: none; }
.guide-step-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 0.1rem;
    line-height: 1.4;
}
.guide-step-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.3rem;
}
.guide-step-body {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    grid-column: 2;
}

/* ---- Tip / Note box ---- */
.guide-note {
    margin-bottom: 1.75rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.guide-note strong { color: var(--text-primary); }

/* ---- Disclaimer ---- */
.guide-disclaimer {
    margin-bottom: 1.75rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
}
.guide-disclaimer-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
}
.guide-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---- FAQ ---- */
.guide-faq {
    margin-bottom: 1.75rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
}
.guide-faq-item {
    border-top: 1px solid var(--border-color);
    padding: 0.1rem 0;
}
.guide-faq-item:first-of-type { border-top: none; }
.guide-faq-item summary {
    padding: 0.55rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    user-select: none;
}
.guide-faq-item summary::-webkit-details-marker { display: none; }
.guide-faq-item summary::before {
    content: '▶';
    font-size: 0.58rem;
    opacity: 0.4;
    transition: transform 0.15s;
    flex-shrink: 0;
}
details[open].guide-faq-item summary::before { transform: rotate(90deg); }
.guide-faq-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 0.65rem 0.9rem;
}

/* ---- Related nav / CTA ---- */
.guide-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.82rem;
}
.guide-related a {
    color: var(--primary-color);
    text-decoration: none;
}
.guide-related a:hover { text-decoration: underline; }

/* ---- Guide index list (for guide landing page if needed) ---- */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.guide-list li {
    border-bottom: 1px solid var(--border-color);
}
.guide-list li:last-child { border-bottom: none; }
.guide-list a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.88rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.1s;
}
.guide-list a:hover { color: var(--primary-color); }
.guide-list-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}
