/* rinex-ppk-guide.css — Free RINEX Post-Processing for UK Surveyors */

/* ── Hero ─────────────────────────────────────────────── */
.rpg-hero {
    background-color: #0d2818;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Cpath d='M25 5 L45 25 L25 45 L5 25 Z' stroke='%231e5432' stroke-width='0.6' fill='none'/%3E%3C/svg%3E");
    background-size: 50px 50px;
    color: #fff;
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    text-align: center;
}
.rpg-hero__eyebrow {
    display: inline-block;
    background: rgba(232, 168, 56, 0.25);
    border: 1px solid rgba(232, 168, 56, 0.6);
    color: #f5c842;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: var(--spacing-md);
}
.rpg-hero h1 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    color: #fff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.25;
}
.rpg-hero__subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 640px;
    margin: 0.4rem auto 1rem;
    opacity: 0.88;
    letter-spacing: 0.01em;
}
.rpg-hero__lead {
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto var(--spacing-md);
    opacity: 0.93;
    line-height: 1.65;
}
.rpg-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: var(--spacing-md);
}
.rpg-hero__pill {
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
}

/* ── Content layout ────────────────────────────────────── */
.rpg-body {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

/* ── Section ───────────────────────────────────────────── */
.rpg-section {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid #e8eee8;
}
.rpg-section:last-of-type { border-bottom: none; }
.rpg-section h2 {
    font-size: 1.55rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}
.rpg-section h3 {
    font-size: 1.15rem;
    color: #1a3a28;
    margin: var(--spacing-md) 0 var(--spacing-sm);
}
.rpg-section p { color: #333; line-height: 1.75; margin-bottom: var(--spacing-sm); }
.rpg-section ul, .rpg-section ol {
    margin: 0 0 var(--spacing-md) var(--spacing-lg);
    color: #444;
}
.rpg-section li { color: #444; line-height: 1.65; margin-bottom: 0.4rem; }
.rpg-section a { color: var(--color-secondary); }
.rpg-section a:hover { text-decoration: underline; }

/* ── Image float helpers ───────────────────────────────── */
.rpg-img-right {
    float: right;
    margin: 0 0 var(--spacing-lg) var(--spacing-xl);
    width: 300px;
}
.rpg-img-left {
    float: left;
    margin: 0 var(--spacing-xl) var(--spacing-lg) 0;
    width: 300px;
}
.rpg-img-right img,
.rpg-img-left img,
.rpg-img-center img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    border: 1px solid #ddd;
    display: block;
}
.rpg-img-center {
    clear: both;
    margin: var(--spacing-lg) auto;
    text-align: center;
}
.rpg-img-caption {
    font-size: 0.78rem;
    color: #666;
    text-align: center;
    margin-top: var(--spacing-xs);
    font-style: italic;
    max-width: 300px;
}
.rpg-img-left .rpg-img-caption { text-align: left; }
.rpg-img-right .rpg-img-caption { text-align: right; }
.rpg-clearfix::after { content: ''; display: table; clear: both; }
@media (max-width: 640px) {
    .rpg-img-right, .rpg-img-left {
        float: none;
        width: 100%;
        margin: var(--spacing-md) 0;
    }
    .rpg-img-right img, .rpg-img-left img {
        width: 100%;
        height: auto;
    }
}

/* Zoom hint */
.rpg-img-right .lb-zoom-hint,
.rpg-img-left .lb-zoom-hint,
.rpg-img-center .lb-zoom-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.73rem;
    color: #888;
    margin-top: 0.3rem;
    justify-content: center;
}

/* ── Callout / tip box ─────────────────────────────────── */
.rpg-callout {
    background: #fff9e6;
    border: 1px solid #e8c84a;
    border-left: 4px solid #e8a838;
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}
.rpg-callout__title {
    font-weight: 700;
    color: #7a5800;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.rpg-callout p { color: #4a3800; margin: 0 0 0.5rem; line-height: 1.7; }
.rpg-callout p:last-child { margin: 0; }

/* ── Green info box ────────────────────────────────────── */
.rpg-info {
    background: #edf7f1;
    border: 1px solid #b6dfc5;
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}
.rpg-info__title {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.rpg-info p { color: #1a3a28; margin: 0 0 0.5rem; line-height: 1.7; }
.rpg-info p:last-child { margin: 0; }
.rpg-info a { color: var(--color-secondary); }

/* ── Workflow steps ────────────────────────────────────── */
.rpg-steps {
    counter-reset: rpg-step;
    margin: var(--spacing-lg) 0;
    padding: 0;
    list-style: none;
}
.rpg-steps__item {
    counter-increment: rpg-step;
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid #e8eee8;
}
.rpg-steps__item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.rpg-steps__num {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}
.rpg-steps__content h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: #1a3a28; }
.rpg-steps__content p { margin: 0 0 0.4rem; color: #444; line-height: 1.65; }
.rpg-steps__content p:last-child { margin: 0; }
.rpg-steps__content a { color: var(--color-secondary); }
.rpg-steps__content code {
    background: #f0f4f0;
    border: 1px solid #d0ddd0;
    border-radius: 3px;
    padding: 0.1em 0.4em;
    font-size: 0.88em;
    color: #1a5632;
}

/* ── Tools comparison cards ────────────────────────────── */
.rpg-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}
@media (max-width: 600px) { .rpg-tools { grid-template-columns: 1fr; } }
.rpg-tool-card {
    background: #f4f7f5;
    border: 1px solid #c8d9cc;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
}
.rpg-tool-card--recommended {
    border-color: var(--color-secondary);
    border-width: 2px;
    position: relative;
}
.rpg-tool-card__badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    margin-bottom: var(--spacing-sm);
}
.rpg-tool-card h3 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin: 0 0 0.3rem;
}
.rpg-tool-card__tagline {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}
.rpg-tool-card ul {
    margin: 0;
    padding-left: var(--spacing-lg);
}
.rpg-tool-card li { font-size: 0.9rem; color: #444; margin-bottom: 0.3rem; }
.rpg-tool-card__link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
}

/* ── Output formats grid ───────────────────────────────── */
.rpg-outputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}
@media (max-width: 600px) { .rpg-outputs { grid-template-columns: 1fr 1fr; } }
.rpg-output-card {
    background: #fff;
    border: 1px solid #dde8e0;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
}
.rpg-output-card__ext {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}
.rpg-output-card__name {
    font-size: 0.78rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
    display: block;
}
.rpg-output-card p { font-size: 0.82rem; color: #555; margin: 0; }

/* ── FAQ ───────────────────────────────────────────────── */
.rpg-faq { margin: var(--spacing-xl) 0; }
.rpg-faq h2 { font-size: 1.55rem; color: var(--color-primary); margin-bottom: var(--spacing-lg); }
.rpg-faq__item {
    border-top: 1px solid #e0e8e0;
    padding: var(--spacing-md) 0;
}
.rpg-faq__q {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3a28;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.rpg-faq__a { color: #444; line-height: 1.7; font-size: 0.95rem; }
.rpg-faq__a a { color: var(--color-secondary); }

/* ── CTA ───────────────────────────────────────────────── */
.rpg-cta {
    background: linear-gradient(135deg, #f0f7ee 0%, #e2f0e5 100%);
    border: 1px solid #b8d8c0;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl) var(--spacing-2xl);
    text-align: center;
    margin: var(--spacing-xl) 0;
}
.rpg-cta h2 { font-size: 1.6rem; color: var(--color-primary); margin-bottom: var(--spacing-sm); }
.rpg-cta p { color: #2a4a30; max-width: 560px; margin: 0 auto var(--spacing-lg); line-height: 1.65; }
.rpg-cta__btn {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background 0.15s;
}
.rpg-cta__btn:hover { background: #134022; color: #fff; text-decoration: none; }

/* ── Table of contents ─────────────────────────────────── */
.rpg-toc {
    background: #f4f7f5;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0 0 var(--spacing-xl);
}
.rpg-toc__title {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}
.rpg-toc ol { margin: 0; padding-left: var(--spacing-lg); }
.rpg-toc li { font-size: 0.9rem; margin-bottom: 0.3rem; }
.rpg-toc a { color: var(--color-secondary); text-decoration: none; }
.rpg-toc a:hover { text-decoration: underline; }
