/* Preparing for the Sacraments — sacraments.html
   Builds on the shared hub components in admissions.css. */

.sc-hero {
    background:
        radial-gradient(70% 110% at 90% 10%, rgba(240, 213, 138, .24) 0%, transparent 60%),
        linear-gradient(135deg, #1a2744 0%, #2c3a5c 55%, #4b3a63 100%);
}
.sc-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 3rem;
    align-items: center;
}
.sc-page #sc-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; }

/* next sacrament card */
.sc-next {
    background: #fffdf7;
    color: var(--adm-ink);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 22px 50px rgba(8, 14, 30, .35);
    border-top: 6px solid #d2a84f;
}
.sc-next-label { margin: 0 0 .75rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--adm-wine); }
.sc-next-count { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--adm-navy); }
.sc-page .sc-next .sc-next-name { margin: .4rem 0 .2rem; font-size: 1.35rem; line-height: 1.3; color: var(--adm-navy); }
.sc-next-date { margin: 0 0 1.1rem; color: var(--adm-muted); }
.sc-next-none { margin: 0 0 1rem; line-height: 1.6; color: var(--adm-muted); }
.sc-next-none a, .sc-next .adm-link { color: var(--adm-wine); font-weight: 700; }
.sc-next.has-date .sc-next-none, .sc-next.no-date .sc-next-when { display: none; }
.sc-next:not(.has-date):not(.no-date) .sc-next-when { visibility: hidden; }

/* the path */
.sc-path {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: path;
    position: relative;
}
.sc-path::before {
    content: "";
    position: absolute;
    top: 30px; left: 12%; right: 12%;
    border-top: 2px dashed #d6c79b;
}
.sc-path li { position: relative; text-align: center; padding: 0 .5rem; }
.sc-path-icon {
    display: inline-grid;
    place-items: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d6c79b;
    color: var(--adm-navy);
    font-size: 1.35rem;
    position: relative;
}
.sc-path li.is-now .sc-path-icon { background: var(--adm-navy); border-color: var(--adm-navy); color: #f0d58a; box-shadow: 0 0 0 6px rgba(201, 168, 76, .25); }
.sc-path h3 { margin: .9rem 0 .35rem; font-size: 1.1rem; color: var(--adm-navy); }
.sc-path p { margin: 0; line-height: 1.55; color: var(--adm-muted); font-size: .95rem; }

/* dates */
.sc-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.sc-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--adm-line);
    border-left: 6px solid #7a5a9e;
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
}
.sc-date-communion { border-left-color: #d2a84f; }
.sc-date-confirmation { border-left-color: #a4262c; }
.sc-date strong { display: block; color: var(--adm-navy); font-size: 1.08rem; }
.sc-date span { color: var(--adm-muted); line-height: 1.5; }
.sc-ics { font: inherit; font-weight: 700; cursor: pointer; flex: none; }

/* checklist */
.sc-tabs { display: flex; gap: .5rem; border-bottom: 2px solid var(--adm-line); margin-bottom: 1.25rem; flex-wrap: wrap; }
.sc-tabs button {
    font: inherit;
    font-weight: 700;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: .75rem 1rem;
    color: var(--adm-muted);
    cursor: pointer;
}
.sc-tabs button[aria-selected="true"] { color: var(--adm-navy); border-bottom-color: var(--adm-gold); }
.sc-tabs button:focus-visible { outline: 3px solid #b5760a; outline-offset: 2px; }
.sc-meter-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sc-meter-row p { margin: 0; font-weight: 600; color: var(--adm-muted); white-space: nowrap; }
.sc-meter { flex: 1; height: 10px; border-radius: 99px; background: #ece6d6; overflow: hidden; }
.sc-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c9a84c, #7b2d3a); border-radius: inherit; transition: width .35s ease; }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sc-check {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--adm-line);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    cursor: pointer;
}
/* styles.css hides checkboxes site-wide for its custom ones; show real ones here */
.sc-check input[type="checkbox"] { opacity: 1; position: static; width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; accent-color: #7b2d3a; flex: none; }
.sc-check:has(input:focus-visible) { outline: 3px solid #b5760a; outline-offset: 2px; }
.sc-check strong { display: block; color: var(--adm-navy); }
.sc-check small { display: block; margin-top: .25rem; font-size: .95rem; line-height: 1.55; color: var(--adm-muted); }
.sc-check:has(input:checked) { background: #faf6ea; }
.sc-check:has(input:checked) strong { text-decoration: line-through; text-decoration-color: rgba(123, 45, 58, .5); }
.sc-empty { color: var(--adm-muted); line-height: 1.6; }
.sc-reset { margin-top: 1rem; font: inherit; background: none; border: 0; color: var(--adm-wine); text-decoration: underline; cursor: pointer; padding: 0; }

/* practice */
.sc-practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.sc-practice h3 { margin: 0 0 1rem; color: var(--adm-navy); }
.sc-practice h3 i { color: var(--adm-gold); margin-right: .35rem; }
.sc-steps { list-style: none; margin: 0 0 1.25rem; padding: 0; counter-reset: step; }
.sc-step {
    counter-increment: step;
    position: relative;
    padding: .7rem .8rem .7rem 3rem;
    border-radius: 10px;
    transition: background .2s, opacity .2s;
}
.sc-step::before {
    content: counter(step);
    position: absolute;
    left: .6rem; top: .7rem;
    width: 1.75rem; height: 1.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ece6d6;
    color: var(--adm-navy);
    font-weight: 700;
    font-size: .9rem;
}
.sc-step h4 { margin: 0 0 .2rem; color: var(--adm-navy); font-size: 1.02rem; }
.sc-step p { margin: 0; line-height: 1.55; color: var(--adm-muted); }
.is-practicing .sc-step { opacity: .45; }
.is-practicing .sc-step.is-done { opacity: .7; }
.is-practicing .sc-step.is-done::before { content: "\2713"; background: #d6c79b; }
.is-practicing .sc-step.is-current { opacity: 1; background: #fbf5e2; box-shadow: inset 0 0 0 2px #d2a84f; }
.is-practicing .sc-step.is-current::before { background: var(--adm-navy); color: #f0d58a; }
.sc-practice-btn { font: inherit; font-weight: 700; cursor: pointer; }

.sc-exam { margin-top: 1.75rem; background: #fff; border: 1px solid var(--adm-line); border-radius: 12px; }
.sc-exam summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--adm-navy); }
.sc-exam summary i { color: var(--adm-wine); margin-right: .4rem; }
.sc-exam-body { padding: 0 1.3rem 1.2rem; line-height: 1.65; color: var(--adm-muted); }
.sc-exam-body ul { padding-left: 1.2rem; }
.sc-exam-body li { margin: .45rem 0; }
.sc-exam-body strong { color: var(--adm-navy); }

/* prayers */
.sc-prayers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sc-prayer {
    margin: 0;
    background: #fffdf7;
    border: 1px solid #e8dcb8;
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
}
.sc-prayer figcaption { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--adm-wine); margin-bottom: .6rem; }
.sc-prayer blockquote { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.25rem; line-height: 1.55; color: var(--adm-ink); }
.sc-prayer blockquote p { margin: 0; }

@media (max-width: 900px) {
    .sc-hero-grid, .sc-practice-grid, .sc-prayers { grid-template-columns: 1fr; }
    .sc-path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .sc-path::before { display: none; }
}
@media (max-width: 560px) {
    .sc-date { flex-direction: column; align-items: flex-start; }
    .sc-path { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-meter span, .sc-step { transition: none; }
}
@media print {
    .header, .footer, .adm-jump, .sc-hero, .sc-tabs, .sc-reset, .sc-practice-btn, .adm-final, .sc-ics, #sc-checklist, .adm-skip { display: none !important; }
    .is-practicing .sc-step { opacity: 1; }
    .sc-exam:not([open]) .sc-exam-body { display: block; }
    .adm-section { padding: 1rem 0; }
}
