/* ── Editorial guides (/planning-poker, /integrations) ─────────────── */

:root {
    --gd-hero-bg: linear-gradient(135deg, #0a0e1f 0%, #1a2744 100%);
    --gd-hero-text: #cbd5e1;
    --gd-hero-heading: #ffffff;
    --gd-hero-meta: #94a3b8;
    --gd-page-bg: #ffffff;
    --gd-body-text: #334155;
    --gd-heading: #0f172a;
    --gd-muted: #64748b;
    --gd-card-bg: #ffffff;
    --gd-card-border: #e2e8f0;
    --gd-card-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    --gd-card-hover-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    --gd-surface: #f8fafc;
    --gd-link: #0a6b6e;
    --gd-link-hover: #085c5e;
    --gd-breadcrumb-text: #94a3b8;
    --gd-breadcrumb-active: #e2e8f0;
    --gd-rule: #e2e8f0;
    --gd-callout-bg: #f0fdfa;
    --gd-callout-border: #14b8a6;
    --gd-code-bg: #f1f5f9;
    --gd-code-text: #0f172a;
    --gd-table-header-bg: #f8fafc;
}

[data-theme="dark"] {
    --gd-hero-bg: linear-gradient(135deg, #070a14 0%, #111827 100%);
    --gd-hero-text: #94a3b8;
    --gd-hero-heading: #f1f5f9;
    --gd-hero-meta: #64748b;
    --gd-page-bg: #0f172a;
    --gd-body-text: #cbd5e1;
    --gd-heading: #f1f5f9;
    --gd-muted: #94a3b8;
    --gd-card-bg: #1e293b;
    --gd-card-border: #334155;
    --gd-card-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    --gd-card-hover-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    --gd-surface: #1e293b;
    --gd-link: #5eead4;
    --gd-link-hover: #99f6e4;
    --gd-breadcrumb-text: #64748b;
    --gd-breadcrumb-active: #cbd5e1;
    --gd-rule: #334155;
    --gd-callout-bg: rgba(20, 184, 166, .08);
    --gd-callout-border: #2dd4bf;
    --gd-code-bg: #0f172a;
    --gd-code-text: #e2e8f0;
    --gd-table-header-bg: #0f172a;
}

body.gd-page {
    background: var(--gd-page-bg);
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.gd-hero {
    background: var(--gd-hero-bg);
    padding: 3rem 0 2.75rem;
}

.gd-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gd-hero h1 {
    color: var(--gd-hero-heading);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: .75rem;
}

.gd-hero-sub {
    color: var(--gd-hero-text);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 44em;
}

.gd-hero-meta {
    color: var(--gd-hero-meta);
    font-size: .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 0;
}

.gd-hero-meta i {
    margin-right: .35rem;
}

/* ── Breadcrumb ────────────────────────────────────────────────────── */

.gd-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: 0;
    margin: 0 0 .75rem;
    font-size: .85rem;
}

.gd-breadcrumb a {
    color: var(--gd-breadcrumb-text);
    text-decoration: none;
}

.gd-breadcrumb a:hover {
    color: var(--gd-breadcrumb-active);
    text-decoration: underline;
}

.gd-breadcrumb-sep {
    color: var(--gd-breadcrumb-text);
}

.gd-breadcrumb-current {
    color: var(--gd-breadcrumb-active);
}

/* ── Article body ──────────────────────────────────────────────────── */

.gd-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
    color: var(--gd-body-text);
    font-size: 1.05rem;
    line-height: 1.75;
}

.gd-content h2 {
    color: var(--gd-heading);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 2.75rem 0 1rem;
    scroll-margin-top: 5rem;
}

.gd-content h2:first-child {
    margin-top: 0;
}

.gd-content h3 {
    color: var(--gd-heading);
    font-size: 1.2rem;
    font-weight: 650;
    margin: 2rem 0 .75rem;
    scroll-margin-top: 5rem;
}

.gd-content p {
    margin-bottom: 1.15rem;
}

.gd-content ul,
.gd-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.gd-content li {
    margin-bottom: .5rem;
}

.gd-content a {
    color: var(--gd-link);
    text-decoration: underline;
    text-underline-offset: .15em;
}

.gd-content a:hover {
    color: var(--gd-link-hover);
}

.gd-content strong {
    color: var(--gd-heading);
    font-weight: 650;
}

.gd-content code {
    background: var(--gd-code-bg);
    color: var(--gd-code-text);
    padding: .12em .4em;
    border-radius: 4px;
    font-size: .9em;
}

.gd-content hr {
    border: 0;
    border-top: 1px solid var(--gd-rule);
    margin: 2.5rem 0;
}

.gd-lede {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--gd-body-text);
}

/* ── Table of contents ─────────────────────────────────────────────── */

.gd-toc {
    background: var(--gd-surface);
    border: 1px solid var(--gd-card-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.gd-toc h2 {
    font-size: .8rem !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gd-muted) !important;
    margin: 0 0 .75rem !important;
}

.gd-toc ol {
    margin: 0;
    padding-left: 1.2rem;
}

.gd-toc li {
    margin-bottom: .35rem;
}

/* ── Callout ───────────────────────────────────────────────────────── */

.gd-callout {
    background: var(--gd-callout-bg);
    border-left: 3px solid var(--gd-callout-border);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.75rem 0;
}

.gd-callout p:last-child {
    margin-bottom: 0;
}

.gd-callout-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gd-link);
    margin-bottom: .35rem;
}

/* ── Tables ────────────────────────────────────────────────────────── */

.gd-table-wrap {
    overflow-x: auto;
    margin: 1.75rem 0;
}

.gd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    min-width: 30rem;
}

.gd-table th,
.gd-table td {
    border: 1px solid var(--gd-card-border);
    padding: .7rem .85rem;
    text-align: left;
    vertical-align: top;
}

.gd-table th {
    background: var(--gd-table-header-bg);
    color: var(--gd-heading);
    font-weight: 650;
}

/* ── Card values strip ─────────────────────────────────────────────── */

.gd-cards {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1.75rem 0;
    padding: 0;
    list-style: none;
}

.gd-card-chip {
    min-width: 3.1rem;
    padding: .85rem .5rem;
    border: 1px solid var(--gd-card-border);
    border-radius: 8px;
    background: var(--gd-card-bg);
    box-shadow: var(--gd-card-shadow);
    text-align: center;
    font-weight: 700;
    color: var(--gd-heading);
    font-size: 1.05rem;
}

.gd-card-chip small {
    display: block;
    font-weight: 500;
    font-size: .68rem;
    color: var(--gd-muted);
    margin-top: .2rem;
}

/* ── FAQ ───────────────────────────────────────────────────────────── */

.gd-faq-item {
    border-bottom: 1px solid var(--gd-rule);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.gd-faq-item:last-child {
    border-bottom: 0;
}

.gd-faq-item h3 {
    margin-top: 0;
}

.gd-faq-item p:last-child {
    margin-bottom: 0;
}

/* ── Hub / index grids ─────────────────────────────────────────────── */

.gd-hub {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.5rem 1rem 1rem;
}

.gd-hub h2 {
    color: var(--gd-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.gd-hub-intro {
    color: var(--gd-muted);
    margin-bottom: 1.75rem;
    max-width: 44em;
}

.gd-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.1rem;
}

.gd-hub-card {
    display: block;
    background: var(--gd-card-bg);
    border: 1px solid var(--gd-card-border);
    border-radius: 12px;
    box-shadow: var(--gd-card-shadow);
    padding: 1.35rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.gd-hub-card:hover,
.gd-hub-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--gd-card-hover-shadow);
}

.gd-hub-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9px;
    background: rgba(79, 70, 229, .1);
    color: #4f46e5;
    font-size: 1.05rem;
    margin-bottom: .85rem;
}

.gd-hub-card h3 {
    color: var(--gd-heading);
    font-size: 1.08rem;
    font-weight: 650;
    margin: 0 0 .4rem;
}

.gd-hub-card p {
    color: var(--gd-muted);
    font-size: .93rem;
    line-height: 1.55;
    margin: 0 0 .65rem;
}

.gd-hub-card-meta {
    color: var(--gd-link);
    font-size: .83rem;
    font-weight: 600;
}

/* ── Related reading ───────────────────────────────────────────────── */

.gd-related {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.gd-related h2 {
    color: var(--gd-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: .9rem;
}

.gd-related-card {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    background: var(--gd-card-bg);
    border: 1px solid var(--gd-card-border);
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.gd-related-card:hover,
.gd-related-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--gd-card-hover-shadow);
}

.gd-related-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(79, 70, 229, .1);
    color: #4f46e5;
    font-size: .9rem;
}

.gd-related-body {
    display: block;
}

.gd-related-title {
    display: block;
    color: var(--gd-heading);
    font-weight: 650;
    font-size: .98rem;
    margin-bottom: .2rem;
}

.gd-related-blurb {
    display: block;
    color: var(--gd-muted);
    font-size: .86rem;
    line-height: 1.5;
}

/* ── CTA ───────────────────────────────────────────────────────────── */

.gd-cta {
    background: var(--gd-surface);
    border-top: 1px solid var(--gd-rule);
    padding: 3rem 1rem;
}

.gd-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.gd-cta h2 {
    color: var(--gd-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .65rem;
}

.gd-cta p {
    color: var(--gd-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.gd-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

.gd-btn {
    display: inline-block;
    padding: .7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.gd-btn-primary {
    background: #14b8a6;
    color: #ffffff;
    border: 1px solid #14b8a6;
}

.gd-btn-primary:hover,
.gd-btn-primary:focus-visible {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
}

.gd-btn-ghost {
    background: transparent;
    color: var(--gd-heading);
    border: 1px solid var(--gd-card-border);
}

.gd-btn-ghost:hover,
.gd-btn-ghost:focus-visible {
    border-color: #14b8a6;
    color: #0d9488;
}

.gd-cta-note {
    font-size: .85rem !important;
    color: var(--gd-muted);
    margin: 1.15rem 0 0 !important;
}

/* ── Integration page extras ───────────────────────────────────────── */

.gd-steps {
    list-style: none;
    counter-reset: gd-step;
    padding: 0;
    margin: 1.75rem 0;
}

.gd-step {
    counter-increment: gd-step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.gd-step::before {
    content: counter(gd-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: #4f46e5;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
}

.gd-step h3 {
    margin: .2rem 0 .35rem !important;
    font-size: 1.05rem;
}

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

@media (max-width: 576px) {
    .gd-hero {
        padding: 2.25rem 0 2rem;
    }

    .gd-content {
        padding: 2rem 1rem 2.5rem;
        font-size: 1rem;
    }

    .gd-cta-actions .gd-btn {
        width: 100%;
    }
}
