/* ==========================================================================
   Wiki Baby / Children Visa Photo Page
   ========================================================================== */

/* ---------- Age Rules Table ---------- */
.age-table__header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1.5fr;
    background: #f0f4f8;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4a5568;
}

.age-table__header > div,
.age-table__row > div {
    padding: .75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.age-table__row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1.5fr;
}

.age-table__row--highlight {
    background: #f0fff4;
}

.age-table__row--highlight .age-table__age {
    color: #276749;
}

.age-table__size {
    font-weight: 700;
    color: #2d6a4f;
}

.age-table__notes {
    color: #555;
    font-style: italic;
}

@media (max-width: 640px) {
    .age-table__header {
        display: none;
    }

    .age-table__row {
        grid-template-columns: 1fr;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: .75rem;
    }

    .age-table__row > div {
        border-bottom: 1px solid #f0f0f0;
    }

    .age-table__row > div:last-child {
        border-bottom: none;
    }
}

/* ---------- Common Mistakes Grid ---------- */
.mistake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.mistake-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.mistake-card__icon {
    color: #dc3545;
}

.mistake-card__icon .material-symbols-outlined {
    font-size: 2rem;
}

.mistake-card__title {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
    margin: 0;
}

.mistake-card__desc {
    font-size: .9rem;
    color: #555;
    margin: 0;
}

/* ---------- Step Subtitle ---------- */
.step-item__subtitle {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    margin-bottom: .25rem;
}

/* ---------- Official Link Button ---------- */
.wiki-link-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    border: 2px solid currentColor;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    color: #2a5298;
    transition: background .2s, color .2s;
}

.wiki-link-btn:hover {
    background: #2a5298;
    color: #fff;
}

/* ---------- 3-Step Timeline Variant ---------- */
.steps-timeline--3 {
    grid-template-columns: repeat(3, 1fr);
}

.steps-timeline--3::before {
    left: calc(16.67% + 20px);
    right: calc(16.67% + 20px);
}
