/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0
*/

/* === ILF Navigator design tokens === */
:root {
    --color-navy: #1B2A4E;
    --color-slate: #5B6B85;
    --color-blush: #FBEAEA;
    --color-bg: #FAFAFA;
    --color-border: #ECEDF2;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background: var(--color-bg);
    font-family: var(--font-body);
    color: var(--color-slate);
}

h1, h2, h3,
.question-card-title {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 800;
}

/* --- Comments (shared across question pages and all games) --- */
#comments {
    max-width: 700px;
    margin: 32px auto 0;
    padding: 24px 20px;
}
#comments .comments-title,
#comments .comment-reply-title {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 800;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.comment-list .comment {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.comment-list .comment-author .fn {
    font-weight: 700;
    color: var(--color-navy);
}
.comment-list .comment-metadata {
    font-size: 12px;
    color: var(--color-slate);
}
.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 4px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: var(--font-body);
    margin-bottom: 14px;
    box-sizing: border-box;
}
.comment-form .form-submit input[type="submit"] {
    border: none;
    background: #4F9BD9;
    color: white;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 24px;
    cursor: pointer;
}

/* --- Nav account display (username + logout, used in the header) --- */
.ilf-nav-account-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ilf-nav-username {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--color-navy);
    text-decoration: none;
}
.ilf-nav-user-icon {
    flex-shrink: 0;
}
.ilf-nav-username:hover {
    text-decoration: underline;
}
.ilf-nav-account {
    font-weight: 600;
    color: var(--color-navy);
    text-decoration: none;
}

/* Icon circles (category question-list cards) */
.question-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 15%, white);
    color: var(--accent);
    margin-bottom: 12px;
    flex-shrink: 0;
}
.question-card-icon img {
    width: 24px;
    height: 24px;
}

/* Illustrations */
.question-illustration {
    width: 100%;
    border-radius: 16px;
    margin: 16px 0;
    display: block;
}

/* Breadcrumb (single question page) */
.breadcrumb {
    font-size: 13px;
    color: var(--color-slate);
    margin-bottom: 12px;
}
.breadcrumb a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.breadcrumb-sep {
    margin: 0 6px;
    color: var(--color-border);
}
.breadcrumb-current {
    color: var(--color-slate);
}

/* Short answer bubble */
.short-answer {
    background: var(--color-blush);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    color: var(--color-navy);
}
.short-answer-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

/* === Single question page === */
.question-page {
    display: block;
    padding: 24px 20px;
}
.question-menu {
    display: none; /* hidden on mobile/tablet, shown on desktop below */
    margin-bottom: 24px;
}
.question-menu ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.question-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-slate);
    font-weight: 600;
    font-size: 14px;
}
.question-menu a.active {
    background: color-mix(in srgb, var(--accent) 12%, white);
    color: var(--accent);
}

/* Action cards (Learn more / Watch video / Download) */
.question-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}
.action-row {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 16px;
    background: white;
}
.action-row summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--color-navy);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.action-row summary::-webkit-details-marker { display: none; }
.action-icon { font-size: 18px; }
.action-chevron {
    margin-left: auto;
    color: var(--accent);
    font-size: 20px;
    transition: transform 0.2s ease;
}
.action-row[open] .action-chevron {
    transform: rotate(90deg);
}
.action-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}
.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.resource-list a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

/* Prev/next pager */
.question-pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.pager-link {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    background: white;
}
.pager-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-slate);
}
.pager-title {
    display: block;
    font-weight: 700;
    color: var(--color-navy);
}
.pager-next {
    background: var(--accent);
    border-color: var(--accent);
}
.pager-next .pager-label,
.pager-next .pager-title {
    color: white;
}

/* === Category page === */
.question-archive {
    padding: 24px 20px;
}
.archive-title {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}
.archive-title .category-intro {
    margin: 8px 0 0;
}

.category-layout {
    display: block;
}
.category-illustration {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 16px;
    display: block;
    object-fit: cover;
}
.no-questions {
    color: var(--color-slate);
    font-style: italic;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.question-card a {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 16px;
    background: white;
    text-decoration: none;
}
.question-card-arrow {
    margin-left: auto;
    color: var(--accent);
    font-size: 20px;
}

.did-you-know {
    background: var(--color-blush);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0 32px; /* bottom margin so it doesn't touch the question list below on mobile/tablet */
    color: color-mix(in srgb, var(--accent) 75%, black);
}
.did-you-know-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.bulb-icon {
    flex-shrink: 0;
}
.did-you-know p {
    margin: 0;
}

/* === Desktop === */
@media (min-width: 1024px) {
    .question-archive {
        max-width: 1100px;
        margin: 0 auto;
        padding: 40px 24px;
    }
    .category-layout {
        display: grid;
        grid-template-columns: 380px 1fr;
        gap: 48px;
        align-items: start;
    }
    .category-sidebar {
        position: sticky;
        top: 100px;
    }
    .category-illustration {
        height: 320px;
    }
    .did-you-know {
        margin-bottom: 0; /* sidebar isn't stacked above the list on desktop, so no extra gap needed */
    }

    .question-page {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 48px;
        max-width: 1100px;
        margin: 0 auto;
        padding: 40px 24px;
        align-items: start;
    }
    .question-menu {
        display: block;
        position: sticky;
        top: 100px;
        margin-bottom: 0;
    }
}

/* === Home page: welcome banner + category grid === */
.home-page {
    padding: 24px 20px;
}
.home-banner {
    margin: 0 0 32px;
}

/* Center the welcome image + text once they stack (mobile/tablet) */
@media (max-width: 1023px) {
    .home-banner .wp-block-media-text {
        grid-template-columns: 1fr !important;
        grid-template-areas: none !important;
    }
    .home-banner .wp-block-media-text__media,
    .home-banner .wp-block-media-text__content {
        grid-column: 1;
        text-align: center;
    }
    .home-banner .wp-block-media-text__media img {
        margin: 0 auto;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.home-category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 18px 20px;
    background: white;
    text-decoration: none;
}
.home-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 15%, white);
    color: var(--accent);
    flex-shrink: 0;
}
.home-category-icon img {
    width: 24px;
    height: 24px;
}
.home-category-text {
    display: flex;
    flex-direction: column;
}
.home-category-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-navy);
}
.home-category-desc {
    font-size: 13px;
    color: var(--color-slate);
    margin-top: 2px;
}
.home-category-arrow {
    margin-left: auto;
    color: var(--accent);
    font-size: 22px;
    flex-shrink: 0;
}
.no-categories {
    color: var(--color-slate);
    font-style: italic;
}

/* === Tablet === */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* === Desktop === */
@media (min-width: 1024px) {
    .home-page {
        max-width: 1100px;
        margin: 0 auto;
        padding: 40px 24px;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* === Game page shell (Happy Skin Club, and future games) === */
.game-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 20px;
}
.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.game-tab {
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    color: var(--color-slate);
    cursor: pointer;
}
.game-tab.active {
    background: var(--game-accent);
    border-color: var(--game-accent);
    color: white;
}

.game-panel h2 {
    text-align: center;
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 30px;
	font-family: "Baloo 2", sans-serif;
	color: #0B5C50;
}

.game-panel button {
    transition: background-color 0.2s ease;
}

.game-panel button:hover {
    background-color: #8FCB9B;
}

.game-tabs button {
    transition: background-color 0.2s ease;
}

.game-tabs button:hover {
    background-color: #8FCB9B;
}

.coming-soon {
    text-align: center;
    color: var(--color-slate);
    font-style: italic;
}

.game-encouragement {
    text-align: center;
    color: var(--game-accent);
    font-weight: 700;
    margin-top: 24px;
}

/* --- Checklist --- */
.checklist-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.checklist-item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 16px;
    background: #F7FAF9;
}
.checklist-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-navy);
}
.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--game-accent);
}
.checklist-item:has(input:checked) {
    background: color-mix(in srgb, var(--game-accent) 12%, white);
    border-color: var(--game-accent);
}

.checklist-stars {
    text-align: center;
    font-size: 24px;
    margin-bottom: 8px;
}
.star {
    color: var(--color-border);
}
.star.filled {
    color: #F5B942;
}

.checklist-progress {
    text-align: center;
    font-weight: 700;
    color: var(--game-accent);
    margin-bottom: 16px;
}

.checklist-reset {
    display: block;
    margin: 0 auto;
    border: none;
    background: var(--game-accent);
    color: white;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 24px;
    cursor: pointer;
}

/* --- Quiz --- */
.quiz-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}
.quiz-progress {
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--game-accent);
    margin-bottom: 8px;
}
.quiz-question {
    text-align: left;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-navy);
    margin-bottom: 20px;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.quiz-option {
    border: 1px solid var(--color-border);
    background: #F7FAF9;
    border-radius: 12px;
    padding: 16px 18px;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
    font-size: 15px;
}
.quiz-option.correct {
    background: color-mix(in srgb, var(--game-accent) 15%, white);
    border-color: var(--game-accent);
    color: var(--game-accent);
}
.quiz-option.incorrect {
    background: #FBEAEA;
    border-color: #E06C6C;
    color: #C0392B;
}
/* Cancels the browser's default dimmed look on disabled buttons — this was
   the "white hue" washing out the green/red colors once you answered */
.quiz-option:disabled {
    opacity: 1;
    cursor: default;
}
.quiz-feedback {
    font-weight: 700;
    margin: 4px 0 0;
}
.quiz-feedback.correct {
    color: var(--game-accent);
}
.quiz-feedback.incorrect {
    color: #C0392B;
}
.quiz-next,
.quiz-again {
    display: block;
    margin: 0 auto;
    border: none;
    background: #F0A15D;
    color: white;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 24px;
    cursor: pointer;
}
.quiz-next:disabled {
    background: var(--color-border);
    color: var(--color-slate);
    cursor: not-allowed;
}
.quiz-score {
    text-align: center;
    font-size: 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--game-accent);
    margin-bottom: 8px;
}
.quiz-results-card {
    text-align: center;
}
.quiz-encouragement-text {
    text-align: center;
    color: var(--color-navy);
    margin-bottom: 20px;
}

/* --- Home nav cards --- */
.home-nav-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}
.home-nav-card {
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.home-nav-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.home-nav-icon.icon-teal {
    background: color-mix(in srgb, var(--game-accent) 15%, white);
    color: var(--game-accent);
}
.home-nav-icon.icon-yellow {
    background: #FCEFD8;
    color: #E2A93B;
}
.home-nav-icon.icon-coral {
    background: #FBEAEA;
    color: #E06C6C;
}
.home-nav-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-navy);
}
.home-nav-desc {
    color: var(--color-slate);
    font-size: 13px;
}

/* --- Learn & Play flip cards --- */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.flip-card {
    border: none;
    border-radius: 16px;
    background: color-mix(in srgb, var(--game-accent) 10%, white);
    padding: 20px 14px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.flip-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.flip-card-icon {
    font-size: 28px;
}
.flip-card-label {
    font-weight: 700;
    color: var(--game-accent);
    font-size: 14px;
}
.flip-card-back {
    display: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}
.flip-card.flipped {
    background: var(--game-accent);
}
.flip-card.flipped .flip-card-front {
    display: none;
}
.flip-card.flipped .flip-card-back {
    display: block;
}
.flip-hint {
    text-align: center;
    color: var(--color-slate);
    font-size: 13px;
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .home-nav-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .flip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .game-page {
        max-width: 960px;
    }
}

/* Lymph Learning Map*/
.map-page {
    margin: 0 auto;
    padding: 24px 20px;
	background: #bde2f1;
}
.map-header {
    text-align: center;
    margin-bottom: 20px;
}
.map-header h1 {
	font-family: "Baloo 2", sans-serif; 
	font-weight: 800;
	margin-top: 20px;
	color: #0d3d68;
}
.keys-counter {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    border-radius: 999px;
    background: #FBF2D9;
    color: #8A6D1D;
    font-weight: 700;
}

/* --- Map + pins --- */
.map-container {
	max-width: 1000px;
    position: relative;
    width: 100%;
	margin: 0 auto;
}

.map-image {
    width: 100%;
    border-radius: 16px;
    display: block;
}
 
.map-pin {
    position: absolute;
    left: var(--pin-x);
    top: var(--pin-y);
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid white;
    background: var(--pin-color, #2E6BA8);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}
.map-pin:hover {
    transform: translate(-50%, -50%) scale(1.15);
}
.map-pin.collected::after {
    content: '\2713';
    position: absolute;
    top: -6px;
    right: -6px;
    background: #F5B942;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-pin-chest {
    background: #C0392B;
    width: 44px;
    height: 44px;
}
.map-pin-chest.unlocked {
    background: #F5B942;
}
 
@media (max-width: 767px) {
    .map-pin {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .map-pin-chest {
        width: 36px;
        height: 36px;
    }
}
 
/* --- Legend --- */
.map-legend {
    background: #EAF4FC;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin: 16px auto 0;
    max-width: 1000px;
    box-sizing: border-box;
}
.map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-navy);
    font-size: 14px;
}
.map-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
 
/* --- Modal --- */
.map-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 42, 78, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
.map-modal {
    background: #FBF3DE;
    border: 2px solid #D9C48C;
    border-radius: 16px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}
.map-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: var(--color-border);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
	color: black;
	display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.map-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2E6BA8;
    color: white;
    font-weight: 800;
    margin-bottom: 8px;
}
.map-modal-location {
    color: #C0392B;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin: 0;
}
.map-modal-description {
    font-style: italic;
    color: var(--color-slate);
    margin: 4px 0 16px;
}
.map-fact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.map-fact-list li {
    background: #FFFCF4;
    border: 1px solid #D9C48C;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}
 
/* --- Quiz inside modal --- */
.map-quiz-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #C9A227;
    font-weight: 700;
}
.map-quiz-question {
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}
.map-quiz-options {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.map-quiz-option {
    flex: 1;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
	color: var(--color-navy);
}
.map-quiz-option.correct {
    background: #E8F6F0;
    border-color: #4FB89D;
    color: #2C8A6D;
}
.map-quiz-option.incorrect {
    background: #FBEAEA;
    border-color: #E06C6C;
    color: #C0392B;
}
.map-quiz-feedback {
    font-size: 14px;
    color: var(--color-navy);
}
.map-key-earned,
.map-key-collected {
    margin-top: 10px;
    font-weight: 700;
    color: #C9A227;
}
.map-quiz-retry {
    display: block;
    margin-top: 12px;
    border: none;
    background: #4FB89D;
    color: white;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 20px;
    cursor: pointer;
}
 
/* --- Chest --- */
.map-chest-locked,
.map-chest-unlocked {
    text-align: center;
}
.map-chest-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.map-chest-status {
    color: #C0392B;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.map-chest-progress {
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-slate);
}

/* -------------------- Linfy's Check up ---------------------- */
main.checkup-page {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    background:
        radial-gradient(circle at 10% 0%, #F3FBFF 0%, transparent 45%),
        radial-gradient(circle at 90% 10%, #FFF7E9 0%, transparent 40%),
        #FBF1E4;
}

/* --- Shared login prompt banner (used across Checkup, History, and games) --- */
.ilf-login-prompt {
    background: #FFF6E5;
    border: 1px solid #F0C879;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    text-align: center;
    color: #8A6D1D;
    font-weight: 600;
}
.ilf-login-prompt p {
    margin: 0;
}
.ilf-login-prompt a {
    color: #4F9BD9;
    text-decoration: underline;
}

.checkup-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
    box-sizing: border-box;
}

.checkup-header {
    text-align: center;
    margin-bottom: 20px;
}
.checkup-mascot {
    width: 85px;
    height: auto;
    flex-shrink: 0;
}
.checkup-header {
    margin-bottom: 8px;
}
.checkup-header-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.checkup-header-text {
    flex: 1;
    text-align: left;
}
.checkup-header-text h1 {
    margin: 0 0 4px;
	font-family: "Baloo 2", sans-serif;
	color: #268300;
}

.checkup-highlight {
	color: #0d3d68;
}
.checkup-header-text .checkup-subtitle {
    margin: 0 0 4px;
}
.checkup-header-text .checkup-week {
    margin: 0;
}
.checkup-history-link {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 13px;
    color: #4F9BD9;
    font-weight: 700;
    text-decoration: none;
}
@media (max-width: 640px) {
    .checkup-header-card {
        flex-direction: column;
        text-align: center;
        padding-top: 44px;
    }
    .checkup-header-text {
        text-align: center;
    }
    .checkup-history-link {
        top: 16px;
        right: 50%;
        transform: translateX(50%);
    }
}
.checkup-subtitle {
    color: var(--color-slate);
}
.checkup-week {
    font-size: 13px;
    color: var(--color-slate);
}
.checkup-current-user {
    margin: 6px 0 0;
    font-size: 13px;
    color: #4F9BD9;
}

.checkup-progress-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 12px 20px;
    margin: 0 0 8px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.checkup-progress-track {
    height: 8px;
    background: var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.checkup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F9BD9, #4FB89D);
    transition: width 0.3s ease;
}
.checkup-progress-text {
    text-align: center;
    font-size: 13px;
    color: var(--color-slate);
    margin: 0;
}

.checkup-questions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0 20px;
}
.checkup-card {
    border: 1px solid color-mix(in srgb, var(--card-accent) 35%, var(--color-border));
    border-radius: 16px;
    padding: 20px;
    background: white;
}
.checkup-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.checkup-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-accent) 18%, white);
    color: var(--card-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.checkup-card-header h3 {
    margin: 0;
    font-size: 16px;
}
.checkup-card-description {
    color: var(--color-slate);
    font-size: 14px;
    margin-bottom: 14px;
}
.checkup-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.checkup-option {
    text-align: left;
    border: 1px solid #D6E8F7;
    background: #EAF4FC;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
}
.checkup-option.selected {
    background: #E8F6F0;
    border-color: #4FB89D;
    color: #2C8A6D;
}
.checkup-tip {
    font-size: 13px;
    color: var(--color-slate);
    margin: 0;
}

.checkup-message-card {
    background: #EAF4FC;
    border-left: 4px solid #4F9BD9;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.checkup-message-mascot {
    width: 48px;
    height: auto;
    flex-shrink: 0;
}
.checkup-message-body {
    flex: 1;
}
.checkup-message-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4F9BD9;
    font-weight: 700;
    margin-bottom: 4px;
}
.checkup-message-body h3 {
    margin: 0 0 6px;
}
.checkup-message-body p {
    margin: 0;
    color: var(--color-navy);
}
.checkup-message-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 12px 0;
}

.checkup-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 42, 78, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
.checkup-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
}
.checkup-modal-mascot {
    width: 90px;
    height: auto;
    margin: 0 auto 16px;
}
.checkup-modal .checkup-message-label {
    text-align: center;
}
.checkup-modal-continue {
    display: block;
    width: 100%;
    margin-top: 20px;
    border: none;
    background: #4F9BD9;
    color: white;
    font-weight: 700;
    border-radius: 999px;
    padding: 14px;
    cursor: pointer;
}

.checkup-save {
    display: block;
    margin: 0 auto 8px;
    border: none;
    background: #4FB89D;
    color: white;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 28px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.checkup-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.checkup-save-note {
    text-align: center;
    font-size: 13px;
    color: var(--color-slate);
    margin-bottom: 24px;
}

/* --- Journey map --- */
.checkup-journey {
    text-align: center;
    background: #F1F8F4;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.checkup-journey h2{
	font-family: "Baloo 2", sans-serif;
	color: #0d3d68;
}

.checkup-map-scroll {
    padding: 10px 0;
}
.checkup-journey-svg {
    width: 100%;
    height: auto;
    display: block;
}
.checkup-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-weight: 700;
    color: var(--color-navy);
}

/* --- Remember section (built via the normal page editor, not ACF) --- */
.checkup-remember {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}
.checkup-remember h2 {
    margin-top: 0;
}
.checkup-remember .remember-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.checkup-remember .remember-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E8F1FB;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--color-navy);
}
.checkup-remember .remember-disclaimer {
    font-size: 13px;
    color: var(--color-slate);
    margin-top: 16px;
}

/* --- Desktop layout --- */
@media (min-width: 768px) {
    .checkup-questions {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .checkup-page {
        max-width: 1100px;
    }
    .checkup-questions {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* -------------------- Linfy's Check up History ---------------------- */
.checkup-history-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}
.checkup-history-header {
    text-align: center;
    margin-bottom: 12px;
}
.checkup-history-back {
    display: inline-block;
    margin-top: 8px;
    color: #4F9BD9;
    font-weight: 600;
    text-decoration: none;
}
.checkup-history-intro {
    text-align: center;
    color: var(--color-slate);
    margin-bottom: 20px;
}
.checkup-history-actions {
    text-align: center;
    margin-bottom: 24px;
}
.checkup-print-btn {
    border: none;
    background: #4F9BD9;
    color: white;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 24px;
    cursor: pointer;
}

.checkup-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.checkup-history-card {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    background: white;
}
.checkup-history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}
.checkup-history-card-header h2 {
    margin: 0;
    font-size: 18px;
}
.checkup-history-date {
    font-size: 12px;
    color: var(--color-slate);
}
.checkup-history-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checkup-history-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    flex-wrap: wrap;
}
.checkup-history-row.flagged {
    background: #FFF6E5;
}
.checkup-history-q {
    font-weight: 600;
    color: var(--color-navy);
}
.checkup-history-a {
    color: var(--color-slate);
    text-align: right;
}
.checkup-history-flag {
    display: block;
    color: #B4780F;
    font-weight: 700;
    font-size: 12px;
}
.checkup-history-empty,
.checkup-history-loading {
    text-align: center;
    color: var(--color-slate);
}

/* --- Print: keep it clean and readable for a doctor visit --- */
@media print {
    .checkup-history-actions,
    .checkup-history-back {
        display: none !important;
    }
    .checkup-history-page {
        max-width: 100%;
        padding: 0;
    }
    .checkup-history-card {
        border: 1px solid #999;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    body {
        background: white !important;
    }
    /* Mobile bottom nav — give that Elementor section the CSS class
       "site-mobile-nav" (Advanced tab) so this can hide it */
    body .site-mobile-nav,
    html body .site-mobile-nav {
        display: none !important;
    }
    /* Comment reply box — no need for this on a printed summary */
    #comments,
    html body #comments {
        display: none !important;
    }
    /* If the site's own header/footer still appear when printing, uncomment and
       adjust these selectors to match Kadence's actual header/footer classes: */
    /*
    .site-header, .site-footer, #masthead, #colophon {
        display: none !important;
    }
    */
}

/* --- Link on the main checkup page to reach this history page --- */
.checkup-history-link {
    display: inline-block;
    margin-top: 8px;
    color: #4F9BD9;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}