/* Shared typographic shell for the /apps, /language-levels, /project, /sdk, /technologies
   info pages. Gives every page the same rhythm, a readable measure, and tidy headings. */

.info-page {
    max-width: 840px;
    margin: 0 auto;
    padding: 2.5rem 1rem 3.5rem;
}

.info-page .info-hero {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.info-page .info-hero__eyebrow {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    background: #dbeafe;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.info-page .info-hero h1 {
    margin: 0 0 0.75rem;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.02em;
    color: #111827;
}

.info-page .info-hero p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5563;
}

.info-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.01em;
}

.info-page h3,
.info-page h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.info-page p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1rem;
}

.info-page ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.info-page li {
    line-height: 1.7;
    color: #374151;
    margin-bottom: 0.35rem;
}

/* Only plain inline links inherit the blue-link styling — anchors styled as buttons
   (.btn.*) keep their Bootstrap text colour (white for primary, etc.). */
.info-page a:not(.btn) {
    color: #2563eb;
    text-decoration: none;
}

.info-page a:not(.btn):hover {
    text-decoration: underline;
}

/* CEFR card for the language-levels page — one card per level so the page scans
   like a reference chart, not one long prose dump. */
.info-level {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.info-level__header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.info-level__badge {
    display: inline-block;
    min-width: 3rem;
    padding: 0.25rem 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 999px;
    color: #fff;
}

.info-level__badge.lv-pre { background: #6b7280; }
.info-level__badge.lv-a1  { background: #10b981; }
.info-level__badge.lv-a2  { background: #14b8a6; }
.info-level__badge.lv-b1  { background: #3b82f6; }
.info-level__badge.lv-b2  { background: #6366f1; }
.info-level__badge.lv-c1  { background: #8b5cf6; }
.info-level__badge.lv-c2  { background: #ec4899; }

.info-level__label {
    font-weight: 600;
    color: #111827;
    font-size: 1.05rem;
}

.info-level__hours {
    margin-left: auto;
    font-size: 0.8rem;
    color: #6b7280;
}

.info-level p {
    margin-bottom: 0.6rem;
}

.info-level p:last-child {
    margin-bottom: 0;
}

/* CTA strip at the bottom of most info pages. */
.info-cta {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 60%);
    border: 1px solid #dbeafe;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.info-cta__text {
    flex-grow: 1;
    min-width: 240px;
}

.info-cta h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    color: #111827;
}

.info-cta p {
    margin: 0;
    color: #4b5563;
}

.info-cta .btn {
    flex-shrink: 0;
}
