/* pages/guides.css: the /guides listing page and /guides/{slug} article pages.
   Builds on 06-content-pages.css (.content-page, .faq-item) and the shared
   page vocabulary (.card, .btn, .spec-table-style tables). */

/* ---------- listing ---------- */

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
    box-shadow: 0 2px 6px rgba(11, 60, 93, 0.12), 0 8px 22px rgba(11, 60, 93, 0.1);
    transform: translateY(-2px);
}

.guide-card h2 {
    font-size: 1.08rem;
    line-height: 1.4;
    color: var(--brand-900);
    margin: 0;
}

.guide-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.guide-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.guide-card-meta i {
    margin-right: 4px;
}

.guide-card-read {
    font-weight: 600;
    color: var(--brand-600);
}

.guide-listing-footer p {
    color: var(--text-secondary);
}

/* ---------- article shell ---------- */

.guide-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.guide-breadcrumbs a {
    color: var(--brand-600);
    text-decoration: none;
}

.guide-breadcrumbs a:hover {
    text-decoration: underline;
}

.guide-breadcrumb-current {
    color: var(--text-muted);
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.guide-meta i {
    margin-right: 5px;
    color: var(--brand-600);
}

/* ---------- article body ---------- */

.guide-body {
    margin-bottom: 36px;
}

.guide-body h2 {
    margin: 30px 0 12px;
}

.guide-body h3 {
    margin: 22px 0 10px;
    font-size: 1.08rem;
}

.guide-body p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.guide-body ul,
.guide-body ol {
    margin: 0 0 14px;
    padding-left: 24px;
    line-height: 1.7;
}

.guide-body li {
    margin-bottom: 6px;
}

/* Answer-first summary box at the top of each guide. */
.guide-answer {
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-left: 4px solid var(--brand-600);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 22px;
}

.guide-answer p {
    margin: 0;
    line-height: 1.7;
}

/* Non-legal-advice and similar disclaimers. */
.guide-note {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- tables ---------- */

.guide-table-wrap {
    overflow-x: auto;
    margin: 16px 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.guide-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.guide-table th,
.guide-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
    border-bottom: 1px solid var(--border);
}

.guide-table thead th {
    background: var(--bg-subtle);
    color: var(--brand-900);
    font-weight: 600;
    white-space: nowrap;
}

.guide-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- CTA strip ---------- */

.guide-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--brand-900);
    color: var(--text-on-brand);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 32px;
}

.guide-cta-copy {
    flex: 1 1 320px;
}

.guide-cta h2 {
    color: var(--text-on-brand);
    font-size: 1.15rem;
    margin: 0 0 6px;
}

.guide-cta p {
    margin: 0;
    color: var(--brand-100);
    font-size: 0.95rem;
    line-height: 1.6;
}

.guide-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-cta .btn-secondary {
    background: transparent;
    color: var(--text-on-brand);
    border-color: var(--brand-200);
}

.guide-cta .btn-secondary:hover {
    background: var(--brand-700);
}

/* ---------- prev/next ---------- */

.guide-next {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

.guide-next-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--text);
}

.guide-next-card:hover .guide-next-title {
    color: var(--brand-600);
}

.guide-next-forward {
    text-align: right;
    align-items: flex-end;
}

.guide-next-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.guide-next-title {
    font-weight: 600;
    color: var(--brand-900);
    line-height: 1.4;
}

.guide-all-link {
    margin-bottom: 8px;
}

.guide-all-link a {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: none;
}

.guide-all-link a:hover {
    text-decoration: underline;
}
