/* Virtue Quest — virtue-quest.html
   Builds on admissions.css (hero, cards, buttons). */

.vq-hero {
    background:
        radial-gradient(40% 70% at 85% 30%, rgba(169, 147, 221, .35) 0%, transparent 70%),
        radial-gradient(40% 70% at 10% 90%, rgba(127, 178, 229, .25) 0%, transparent 70%),
        linear-gradient(160deg, #1a2744 0%, #2b2f5c 60%, #4a2c4d 100%);
}
.vq-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 2.5rem; align-items: center; }
.vq-now {
    background: rgba(255, 253, 247, .08);
    border: 1px solid rgba(240, 213, 138, .4);
    border-radius: 18px;
    padding: 1.6rem 1.6rem 1.4rem;
    text-align: center;
}
.vq-now-month { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #f0d58a; }
.vq-now-name { margin: .3rem 0 .4rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.8rem; line-height: 1.05; color: #fffdf7; font-weight: 700; }
.vq-now-means { margin: 0; color: #dfe5ef; line-height: 1.5; }

/* ---------- start ---------- */
.vq-start { max-width: 560px; margin: 0 auto; text-align: center; padding: 2.5rem 2rem; background: #fff; border: 1px solid var(--adm-line); border-radius: 18px; box-shadow: var(--shadow-md); }
.vq-start > i { font-size: 2.4rem; color: var(--adm-gold); }
.vq-start h3 { font-size: 1.6rem; margin: .6rem 0 .4rem; color: var(--adm-navy); }
.vq-start p { color: var(--adm-muted); line-height: 1.6; }
.vq-inline-form { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.2rem; }
.vq-inline-form input { flex: 1 1 200px; min-height: 48px; padding: .6rem .8rem; border: 1px solid #b7bfcc; border-radius: 8px; font: inherit; }
.vq-inline-form .adm-btn { font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- kid tabs ---------- */
.vq-kidbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.8rem; }
.vq-kids { display: flex; flex-wrap: wrap; gap: .5rem; }
.vq-kid { font: inherit; font-weight: 700; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid #b7bfcc; background: #fff; color: var(--adm-navy); cursor: pointer; }
.vq-kid.is-active { background: var(--adm-navy); color: #fff; border-color: var(--adm-navy); }
.vq-kid-add { border-style: dashed; color: var(--adm-wine); }
.vq-add-form { margin-top: 0; justify-content: flex-start; flex: 1 1 320px; }

/* ---------- layout ---------- */
.vq-layout { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); gap: 3rem; align-items: start; }
.vq-window-col { position: sticky; top: 110px; text-align: center; }
.vq-window svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(26, 39, 68, .25)); }
.vq-piece { cursor: pointer; transition: opacity .2s; }
.vq-piece:hover { opacity: .85; }
.vq-lit { animation: vq-glow .9s ease-out; }
@keyframes vq-glow { from { filter: brightness(1.8); } to { filter: none; } }
.vq-who { margin: 1rem 0 .5rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--adm-navy); }
.vq-progress { height: 10px; border-radius: 999px; background: #e6e1d6; overflow: hidden; }
.vq-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1f4e8c, #9c2a22, #c79a12, #3f7a22); transition: width .5s; }
.vq-total { margin: .6rem 0 0; color: var(--adm-muted); font-size: .95rem; }
.vq-complete { margin: .8rem 0 0; font-weight: 700; color: #8a6520; }
.vq-window-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 1.2rem; }
.vq-window-actions .adm-btn { font: inherit; font-weight: 700; cursor: pointer; }
.vq-link { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--adm-muted); text-decoration: underline; cursor: pointer; }
.vq-tip { font-size: .85rem; color: var(--adm-muted); margin: .8rem 0 0; }

/* ---------- month picker ---------- */
.vq-months { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.5rem; }
.vq-month {
    font: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .7rem .3rem .55rem;
    border-radius: 12px;
    border: 1px solid var(--adm-line);
    border-top: 4px solid var(--glass);
    background: #fff;
    cursor: pointer;
    color: var(--adm-ink);
    min-width: 0;
}
.vq-month i { color: var(--glass); font-size: 1.1rem; }
.vq-month-name { font-weight: 700; font-size: .86rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.vq-month small { font-size: .74rem; color: var(--adm-muted); }
.vq-month.is-selected { background: #fdf8ec; box-shadow: 0 0 0 2px var(--glass); }
.vq-month.is-done { background: linear-gradient(180deg, #fffaf0, #fff); }
.vq-month.is-done small::after { content: " \2713"; color: #3f7a22; font-weight: 700; }
.vq-month.is-locked { opacity: .65; }
.vq-month.is-locked i { color: var(--adm-muted); }

/* ---------- virtue card ---------- */
.vq-virtue {
    background: #fff;
    border: 1px solid var(--adm-line);
    border-radius: 18px;
    padding: 1.8rem 1.8rem 1.4rem;
    box-shadow: var(--shadow-md);
    border-top: 8px solid var(--glass, var(--adm-navy));
}
.vq-virtue:focus { outline: none; }
.vq-virtue:focus-visible { outline: 3px solid #b5760a; outline-offset: 3px; }
.vq-v-month { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--glass); }
.vq-virtue h3 { margin: .2rem 0 .4rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; color: var(--adm-navy); }
.vq-v-means { margin: 0; font-size: 1.1rem; line-height: 1.55; }
.vq-verse { margin: 1.3rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--glass-light, #d2a84f); background: #fffdf7; border-radius: 8px; }
.vq-verse p { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; line-height: 1.45; }
.vq-verse cite { display: block; margin-top: .35rem; font-style: normal; font-weight: 700; font-size: .88rem; color: var(--adm-wine); }
.vq-saint { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--adm-tint); border-radius: 12px; }
.vq-saint > i { font-size: 1.5rem; color: var(--adm-gold); margin-top: .2rem; }
.vq-saint p { margin: 0; line-height: 1.55; color: var(--adm-muted); }
.vq-saint-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--adm-wine) !important; }
.vq-saint-name { font-weight: 700; color: var(--adm-navy) !important; font-size: 1.1rem; }
.vq-locked { margin: 1.3rem 0 0; padding: 1rem 1.1rem; border: 1px dashed #b7bfcc; border-radius: 12px; color: var(--adm-muted); }

.vq-missions { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.vq-mission { border: 1px solid var(--adm-line); border-radius: 12px; padding: .9rem 1rem; background: #fff; transition: background .2s, border-color .2s; }
.vq-mission.is-done { background: #f6faf2; border-color: #b9d6a8; }
.vq-mission label { display: flex; gap: .85rem; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.vq-page .vq-mission input[type="checkbox"] { opacity: 1; position: static; flex: none; width: 1.4rem; height: 1.4rem; margin-top: .1rem; accent-color: #3f7a22; cursor: pointer; }
.vq-mission input[type="checkbox"]:focus-visible { outline: 3px solid #b5760a; outline-offset: 2px; }
.vq-mission b { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--glass); }
.vq-mission.is-done label span { color: #3a5a2a; }
.vq-note { display: block; width: 100%; box-sizing: border-box; margin: .7rem 0 0; padding: .5rem .7rem; border: 1px solid #c9d8bd; border-radius: 8px; font: inherit; font-size: .93rem; background: #fff; }
.vq-when { display: block; margin-top: .35rem; font-size: .78rem; color: #5a7a4a; }

.vq-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.vq-how h3 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--adm-navy); }
.vq-how h3 i { color: var(--adm-gold); margin-right: .35rem; }
.vq-how p { margin: 0; line-height: 1.6; color: var(--adm-muted); }

/* ---------- celebration ---------- */
.vq-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9995;
    max-width: 24rem;
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    background: #1a2744;
    color: #fffdf7;
    border: 1px solid rgba(240, 213, 138, .5);
    box-shadow: 0 20px 44px rgba(10, 16, 30, .35);
}
.vq-toast.is-showing { animation: vq-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.vq-toast > i { font-size: 1.6rem; color: #f0d58a; margin-top: .1rem; }
.vq-toast p { margin: 0; line-height: 1.45; color: #dfe5ef; }
.vq-toast .vq-toast-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; font-weight: 700; color: #fffdf7; }
.vq-toast button { background: none; border: 0; color: #fffdf7; font-size: 1.3rem; cursor: pointer; padding: 0 .2rem; }
@keyframes vq-pop { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
    .vq-layout { grid-template-columns: 1fr; }
    .vq-window-col { position: static; max-width: 440px; margin: 0 auto; }
    .vq-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .vq-hero-grid { grid-template-columns: 1fr; }
    .vq-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vq-how { grid-template-columns: 1fr; }
    .vq-virtue { padding: 1.4rem 1.2rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .vq-lit, .vq-toast.is-showing { animation: none; }
    .vq-progress span, .vq-mission { transition: none; }
}

/* ---------- print: just the window and the name ---------- */
@media print {
    .vq-page .page-hero, .vq-kidbar, .vq-main-col, .vq-window-actions, .vq-tip, .vq-page .adm-tint, .vq-toast,
    body > header, body > footer, .adm-skip { display: none !important; }
    .vq-layout { display: block; }
    .vq-window-col { position: static; max-width: 15cm; margin: 0 auto; }
    .vq-window svg { filter: none; }
    .vq-who { font-size: 26pt; }
    .vq-progress { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .vq-window svg, .vq-progress span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .vq-play::before { content: "St. Ann Catholic School \00b7  Virtue Quest"; display: block; text-align: center; font-size: 12pt; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
}
