


.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
    font-size: 0.82rem;
    color: var(--text-dim);
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span { margin: 0 0.4rem; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem 3rem;
    background: var(--primary);
    color: white;
    margin-bottom: 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,107,74,0.2);
    border: 1px solid rgba(255,107,74,0.4);
    color: var(--coral);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: var(--r-pill);
    margin-bottom: 1.5rem;
}
h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: white;
}
h1 span { color: var(--coral); }
.hero-intro {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
}
.hero-meta-item { display: flex; align-items: center; gap: 0.4rem; }

.article-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.article-body { min-width: 0; }

.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; border-top: none; }
.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.75rem 0 0.75rem;
}
.article-body p { line-height: 1.8; margin-bottom: 1.25rem; color: var(--text); }
.article-body a { color: var(--coral); text-decoration: underline; }
.article-body a:hover { color: var(--coral-dark); }
.article-body ul { margin: 1.25rem 0; padding-left: 0; list-style: none; }
.article-body ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    line-height: 1.7;
    border-bottom: 1px solid var(--border);
}
.article-body ul li:last-child { border-bottom: none; }
.article-body ul li::before {
    content: '♠';
    position: absolute;
    left: 0;
    color: var(--coral);
    font-size: 0.9rem;
    top: 0.55rem;
}

/* Snippet / definition box */
.snippet-box {
    background: var(--coral-faint);
    border-left: 4px solid var(--coral);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}
.snippet-box p { margin-bottom: 0; font-size: 1.05rem; }

/* Info / warning boxes */
.info-box {
    background: #eef2f7;
    border: 1px solid #b6c7da;
    border-radius: var(--r-md);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}
.info-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #24466d;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.info-box p { margin-bottom: 0; font-size: 0.95rem; color: #24466d; }

.warning-box {
    background: #fbf6ea;
    border: 1px solid #fed7aa;
    border-radius: var(--r-md);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}
.warning-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #c2410c;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.warning-box p { margin-bottom: 0; font-size: 0.95rem; color: #9a3412; }

/* FAQ */
.faq-section { margin: 2.5rem 0; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: white;
    border: none;
    padding: 1.1rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
}
.faq-question:hover { background: #f8f5f0; }
.faq-question .faq-icon { color: var(--coral); flex-shrink: 0; font-size: 1.2rem; transition: transform 0.25s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    background: white;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
}
.faq-answer.open { display: block; }

/* Sidebar TOC */
.sidebar { position: sticky; top: 2rem; }
.toc-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-1);
}
.toc-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin: 0 0 1rem;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list a {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    display: block;
    padding: 0.2rem 0.5rem;
    border-radius: var(--r-sm);
    transition: all 0.2s;
    line-height: 1.5;
}
.toc-list a:hover { color: var(--coral); background: var(--coral-faint); }

.sidebar-cta {
    background: var(--primary);
    border-radius: var(--r-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    color: white;
}
.sidebar-cta p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.sidebar-cta a {
    display: block;
    background: var(--coral);
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    margin-bottom: 0.5rem;
}
.sidebar-cta a:hover { background: var(--coral-dark); color: white; }
.sidebar-cta a.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.85rem;
}
.sidebar-cta a.secondary:hover { background: rgba(255,255,255,0.1); }

/* Author box */
.author-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.5rem;
    margin-top: 3rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: var(--shadow-1);
}
.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.author-name { font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.author-bio { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; margin: 0; }

/* Next cards */
.next-section { margin-top: 3rem; }
.next-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
}
.next-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.next-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    box-shadow: var(--shadow-1);
    display: block;
}
.next-card:hover { border-color: var(--coral); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.next-card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.next-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 0 0 0.5rem; }
.next-card p { font-size: 0.875rem; color: var(--text-dim); margin: 0; line-height: 1.55; }

@media (max-width: 860px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}
@media (max-width: 540px) {
    .author-box { flex-direction: column; }
    .next-cards { grid-template-columns: 1fr; }
}
