/* nano-guide.css — DataGNSS NANO RTK setup guide */

/* ── Hero ── */
.ng-hero {
    position: relative;
    padding: 3rem 0;
    background-color: #0d2818;
    background-image: url('/static/images/nano-guide-header.webp'), url('/static/images/nano-guide-header.jpg');
    background-position: 75% center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

/* Dark overlay keeps the white text readable over the bright photo */
.ng-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 12, 0.72);
    pointer-events: none;
}

.ng-hero .container {
    position: relative;
    z-index: 1;
}

.ng-hero h1 {
    margin-bottom: var(--spacing-md);
    font-size: 1.9rem;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ng-hero h1 small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.55em;
    font-weight: 400;
    opacity: 0.95;
}

.ng-hero__lead {
    max-width: 560px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ── Layout ── */
.ng-content {
    padding: var(--spacing-xl) 0;
}

.ng-content .container {
    max-width: 960px;
}

.ng-section {
    margin-bottom: var(--spacing-xl);
}

.ng-section h2,
.ng-next h2 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
    color: var(--color-primary);
}

.ng-section p,
.ng-next p {
    line-height: 1.7;
    color: #444;
}

.ng-back-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    color: var(--color-primary);
}

.ng-back-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ── Setup chooser ── */
.ng-pills {
    display: grid;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.ng-pill {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    text-decoration: none;
    background: #fff;
    color: var(--color-primary);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ng-pill:hover {
    background: rgba(26, 86, 50, 0.06);
    transform: translateY(-1px);
}

.ng-pill--alt {
    border-color: var(--color-accent);
    color: #4a3510;
}

.ng-pill span {
    font-size: 0.95rem;
    color: #444;
}

/* ── Setup 1 card ── */
.ng-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    background: #fff;
}

.ng-card__img {
    background: var(--color-bg-light);
}

.ng-card__img img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.ng-card__caption {
    margin: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    text-align: center;
    color: #666;
}

.ng-card__body {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
}

.ng-card__lead {
    margin-top: 0;
    font-weight: 600;
}

/* ── Steps ── */
.ng-steps {
    margin: var(--spacing-sm) 0;
    padding-left: 1.4rem;
    list-style: decimal;
    line-height: 1.7;
    color: #444;
}

.ng-steps li {
    margin-bottom: 0.6rem;
}

/* ── Setup 2 power options ── */
.ng-options {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.ng-option {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    background: #fff;
}

.ng-option img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    object-position: top;
}

.ng-option__body {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
}

.ng-option__body h3 {
    margin: 0.4rem 0;
    font-size: 1.1rem;
}

.ng-option__body p {
    margin: 0;
    font-size: 0.95rem;
}

.ng-option__tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: var(--color-primary);
    color: #fff;
}

/* ── Callouts ── */
.ng-callout {
    margin-top: var(--spacing-md);
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
    background: #fef9ef;
    line-height: 1.65;
    color: #4a3510;
}

.ng-callout--info {
    border-left-color: var(--color-secondary);
    background: #edf7f1;
    color: #333;
}

/* ── Spec table ── */
.ng-specs {
    width: 100%;
    margin: var(--spacing-md) 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ng-specs th,
.ng-specs td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.ng-specs th {
    width: 9rem;
    font-weight: 600;
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.ng-specs__note {
    font-size: 0.85rem;
}

/* ── Technical details link ── */
.ng-docs .ng-btn {
    margin-top: 0.25rem;
}

.ng-docs .ng-docs__note {
    margin: 0.6rem 0 0;
    font-size: 0.82rem;
    color: #666;
}

/* ── FAQ ── */
.ng-faq__item {
    margin-top: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: #fff;
}

.ng-faq__item summary {
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
}

.ng-faq__item p {
    margin: 0;
    padding: 0 1rem 1rem;
}

/* ── Help ── */
.ng-next {
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.ng-next__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.ng-btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    color: var(--color-primary);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ng-btn:hover {
    background: rgba(26, 86, 50, 0.06);
    transform: translateY(-1px);
}

.ng-btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.ng-btn--primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* ── Desktop ── */
@media (min-width: 720px) {
    .ng-hero {
        display: flex;
        align-items: center;
        min-height: clamp(260px, 22vw, 420px);
        background-position: 75% 30%;
    }

    .ng-hero::before {
        background: linear-gradient(90deg, rgba(8, 22, 12, 0.88) 0%, rgba(8, 22, 12, 0.7) 45%, rgba(8, 22, 12, 0.05) 75%);
    }

    .ng-hero .container {
        width: 100%;
    }

    .ng-hero h1 {
        font-size: 2.4rem;
    }

    .ng-pills,
    .ng-options {
        grid-template-columns: 1fr 1fr;
    }

    .ng-option img {
        max-height: none;
    }

    .ng-card {
        flex-direction: row;
    }

    .ng-card__img {
        flex: 0 0 38%;
    }

    .ng-card__img img {
        max-height: 380px;
    }
}
