.spc-container {
    max-width: 760px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.spc-container h1 {
    text-align: center;
    margin-bottom: 10px;
}

.spc-container h2 {
    color: blue;

    margin-top: 35px;
}

.spc-container audio {
    width: 100%;
    margin: 15px 0;
}

.tspc-greeting-scripture {
    max-width: 560px;
    margin: 4px auto 10px;
    color: #5c4422;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.tspc-install-app {
    max-width: 620px; margin: 22px auto 26px; padding: 20px;
    color: #4b3a2f; background: linear-gradient(180deg, #fffaf0 0%, #f7f0e7 100%);
    border: 1px solid #d7b56d; border-radius: 14px; text-align: center;
    box-shadow: 0 3px 10px rgba(120, 87, 35, 0.1);
}
.tspc-install-app[hidden], .tspc-install-app-button[hidden], .tspc-install-help[hidden] { display: none !important; }
.tspc-install-app h2 { color: #5c4422; margin: 0 0 8px; font-size: 1.35rem; }
.tspc-install-app p { margin: 8px 0 12px; }
.tspc-install-intro { line-height: 1.55; }
.tspc-install-app-button {
    padding: 11px 22px; margin: 4px 0 8px; color: #ffffff; background: #5c4422; border: 1px solid #4b351b;
    border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer;
}
.tspc-install-app-button:hover, .tspc-install-app-button:focus { background: #76592c; }
.tspc-install-help { color: #5c4422; font-size: 0.94rem; line-height: 1.5; }
.tspc-install-guides { display: grid; gap: 10px; margin-top: 14px; text-align: left; }
.tspc-install-guide { background: rgba(255, 255, 255, 0.72); border: 1px solid #decba6; border-radius: 10px; }
.tspc-install-guide summary { padding: 12px 14px; color: #4b351b; font-weight: 700; cursor: pointer; }
.tspc-install-guide[open] summary { border-bottom: 1px solid #eadcc1; }
.tspc-install-guide ol { margin: 14px 22px 12px 38px; padding: 0; }
.tspc-install-guide li { margin-bottom: 9px; padding-left: 3px; line-height: 1.5; }
.tspc-install-guide .tspc-install-note { margin: 4px 14px 14px; padding: 9px 11px; background: #fff8e8; border-left: 3px solid #b68b3f; font-size: 0.9rem; }
.tspc-install-device-note { margin-top: 15px !important; padding-top: 13px; border-top: 1px solid #decba6; font-size: 0.92rem; line-height: 1.5; }

@media (max-width: 600px) {
    .tspc-install-app { padding: 17px 14px; }
    .tspc-install-guide ol { margin-left: 32px; margin-right: 14px; }
}

/* ------------------------------------------------------
   Offline Prayer Pack – Version 4.6.0
------------------------------------------------------ */
.tspc-offline-pack {
    max-width: 620px;
    margin: 22px auto 26px;
    padding: 20px;
    color: #334b3d;
    background: linear-gradient(180deg, #f7fbf7 0%, #edf5ef 100%);
    border: 1px solid #9fbea7;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(55, 91, 66, 0.1);
}
.tspc-offline-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tspc-offline-heading h2 { color: #365f45; margin: 0 0 7px; font-size: 1.35rem; }
.tspc-offline-heading p { margin: 0; line-height: 1.5; }
.tspc-offline-badge { flex: 0 0 auto; padding: 5px 9px; color: #5c4422; background: #fff8e8; border: 1px solid #d7b56d; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.tspc-offline-badge.is-ready { color: #245436; background: #e6f4ea; border-color: #75a984; }
.tspc-offline-progress-wrap { margin: 16px 0 8px; }
.tspc-offline-progress-wrap[hidden], .tspc-offline-actions [hidden] { display: none !important; }
.tspc-offline-progress { display: block; width: 100%; height: 13px; margin-bottom: 7px; accent-color: #477a58; }
.tspc-offline-progress-wrap span { font-size: 0.88rem; }
.tspc-offline-status { margin: 13px 0; font-size: 0.93rem; line-height: 1.5; }
.tspc-offline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tspc-offline-secondary { background: #477a58; border-color: #365f45; }
.tspc-offline-remove { padding: 8px 4px; color: #744537; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.tspc-offline-information { margin-top: 15px; padding-top: 12px; border-top: 1px solid #bdd0c2; }
.tspc-offline-information summary { font-weight: 700; cursor: pointer; }
.tspc-offline-information p { margin: 10px 0 0; font-size: 0.9rem; line-height: 1.5; }

@media (max-width: 600px) {
    .tspc-offline-pack { padding: 17px 14px; }
    .tspc-offline-heading { display: block; }
    .tspc-offline-badge { display: inline-block; margin-top: 10px; }
}

/* ------------------------------------------------------
   Prayer Centre Navigation
------------------------------------------------------ */

html {
    scroll-behavior: smooth;
}

.tspc-prayer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 30px;
}

.tspc-prayer-menu a {
    display: inline-block;
    padding: 8px 12px;
    background: #f7f0e7;
    color: #4b3a2f;
    border: 1px solid #cdbba9;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease;
}

.tspc-prayer-menu a:hover,
.tspc-prayer-menu a:focus {
    background: #4b3a2f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(75, 58, 47, 0.2);
}

.tspc-prayer-menu a:focus-visible {
    outline: 3px solid #d7b56d;
    outline-offset: 3px;
}

.tspc-prayer-menu a.tspc-menu-current {
    background: #f4e4bd;
    color: #4b3a2f;
    border-color: #b88a32;
    box-shadow: 0 0 0 2px rgba(215, 181, 109, 0.3);
}

.tspc-prayer-menu a.tspc-menu-unavailable {
    opacity: 0.48;
    cursor: default;
    filter: grayscale(25%);
}

.tspc-prayer-menu a.tspc-menu-unavailable:hover,
.tspc-prayer-menu a.tspc-menu-unavailable:focus {
    background: #f7f0e7;
    color: #4b3a2f;
    transform: none;
    box-shadow: none;
}

.tspc-scroll-section {
    scroll-margin-top: 24px;
}

/* ------------------------------------------------------
   Current prayer for the time of day
------------------------------------------------------ */

.tspc-daily-section {
    padding: 1px 0;
}

.tspc-current-prayer {
    margin: 18px 0 26px;
    padding: 14px 18px 4px;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
    border: 1px solid #d7b56d;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(120, 87, 35, 0.1);
}

.spc-container .tspc-current-prayer h2 {
    margin: 12px 0 14px;
    font-size: clamp(1.8rem, 5vw, 2.25rem);
    line-height: 1.15;
}

.tspc-current-prayer .tspc-back-to-menu-wrap {
    margin: 16px 0 12px;
}

.tspc-current-prayer-label {
    width: fit-content;
    margin: 0 auto 10px;
    padding: 6px 13px;
    color: #5c4422;
    background: #f4e4bd;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
}

.tspc-prayer-availability {
    margin: 10px 0 16px;
    padding: 9px 13px;
    color: #5c4422;
    background: #fffaf0;
    border-left: 4px solid #d7b56d;
    border-radius: 4px 10px 10px 4px;
    font-size: 0.94rem;
    line-height: 1.45;
}

.tspc-back-to-menu-wrap {
    margin: 28px 0 18px;
    text-align: center;
}

.tspc-back-to-menu {
    display: inline-block;
    padding: 9px 15px;
    background: #f7f0e7;
    color: #4b3a2f;
    border: 1px solid #cdbba9;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease;
}

.tspc-back-to-menu:hover,
.tspc-back-to-menu:focus {
    background: #4b3a2f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(75, 58, 47, 0.2);
}

.tspc-back-to-menu:focus-visible {
    outline: 3px solid #d7b56d;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .tspc-prayer-menu {
        display: none !important;
    }

    .tspc-back-to-menu-wrap,
    .tspc-back-to-menu {
        display: none !important;
    }
}

/* Angelus Buttons */

.tspc-buttons{
    margin-top:20px;
}

.tspc-button {
    display: inline-block;
    padding: 12px 20px;
    border: 3px solid #1e40ff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}

.tspc-button {
    display: inline-block;
    padding: 12px 20px;
    border: 3px solid #1e40ff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;

    transition: all 0.25s ease;
}
.spc-container .tspc-angelus-bell {
    width: 100%;
    text-align: center;
    margin: 12px auto 20px;
}
.tspc-button:hover {
    background: #f4f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.spc-container .tspc-bell {
    width: 195px !important;
    max-width: 195px !important;
    height: auto !important;
    display: block;
    margin: 0 auto 18px;
}

@media (max-width: 480px) {
    .spc-container .tspc-bell {
        width: 175px !important;
        max-width: 175px !important;
    }
}
/* Greeting */

.tspc-greeting {
    text-align: center;
    margin: 10px 0 8px;
}

/* Date and Time */

.tspc-date-time {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}
/* Angelus Heading */

.tspc-angelus-heading {

    text-align: center;

    font-size: 2.2rem;

    font-weight: 600;

    color: #4b3a2f;

    margin: 0 0 18px;

}
@keyframes angelusBellSwing {

    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(-10deg); }
    40%  { transform: rotate(10deg); }
    60%  { transform: rotate(-8deg); }
    80%  { transform: rotate(8deg); }
    100% { transform: rotate(0deg); }

}

.tspc-bell {

    transform-origin: top center;
    animation: angelusBellSwing 3s ease-out;
animation-fill-mode: forwards;

}
.angelus-opening {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #4b3a2f;
}
.prayer-line {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    margin-bottom: 12px;
}
.prayer-line.visible {
    opacity: 1;
}
/* ------------------------------------------------------
   Angelus prayer fade-out
------------------------------------------------------ */

#angelus-prayer {
    opacity: 1;
    transition: opacity 3s ease-in-out;
}

#angelus-prayer.fade-out {
    opacity: 0;
}
/* ------------------------------------------------------
   Angelus Date and Time
------------------------------------------------------ */

.tspc-date-time {

    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
    margin-top: -8px;
    margin-bottom: 18px;

}
/* ------------------------------------------------------
   Prayer Centre Headings
------------------------------------------------------ */

.spc-container h2 {
    color: #4b3a2f;
}
/* Angelus Story */

.tspc-angelus-story {
    margin-top: 18px;
    text-align: center;
}

.tspc-angelus-story p {
    margin: 0 0 10px;
    color: #666;
    font-style: italic;
}

.tspc-story-button {
    display: inline-block;
    padding: 10px 18px;
    background: #4b3a2f;
    color: #ffffff !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.tspc-story-button:hover {
    background: #6a5141;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}


/* ------------------------------------------------------
   Rosary audio controls
------------------------------------------------------ */

.tspc-rosary-controls {
    margin: 18px 0 22px;
}

#rosary-audio {
    display: none;
}

/* Rosary controls */
.tspc-rosary-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0;
}


/* Today's Readings */
.tspc-readings-button-wrap {
    margin: 20px 0;
}

/* Morning Prayer */
.tspc-morning-prayer-button-wrap {
    margin: 20px 0;
}

.tspc-morning-prayer-button {
    background: #4b3a2f;
    color: #ffffff !important;
    cursor: pointer;
}

.tspc-readings-button {
    cursor: pointer;
}


/* Pray with the Holy Father */
.tspc-pope-button-wrap {
    margin: 20px 0;
}

.tspc-pope-button {
    cursor: pointer;
}

/* Exploring the Bible */
.tspc-bible-button-wrap {
    margin: 20px 0;
}

.tspc-bible-button {
    background: #4b3a2f;
    color: #ffffff !important;
    cursor: pointer;
}


/* Saint of the Day */
.tspc-saint-button-wrap {
    margin: 20px 0;
}

.tspc-saint-button {
    cursor: pointer;
}

/* Evening Prayer */
.tspc-evening-prayer-button-wrap {
    text-align: center;
}

.tspc-evening-prayer-button {
    display: inline-block;
}

/* Night Prayer */
.tspc-night-prayer-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 12px;
}

#night-prayer-audio {
    display: none;
}

.tspc-night-prayer-status {
    margin: 10px 0 20px;
    color: #5c4422;
    font-style: italic;
    text-align: center;
}

.tspc-credits {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(75, 58, 47, 0.18);
    color: #6a5141;
    font-size: 0.84rem;
    line-height: 1.5;
    text-align: center;
}

.tspc-credits p {
    margin: 5px 0;
}

/* ------------------------------------------------------
   Illustrated Rosary mysteries
------------------------------------------------------ */
.tspc-mystery-list {
    display: grid;
    gap: 16px;
    margin: 20px 0 26px;
}

.tspc-mystery-card {
    display: grid;
    grid-template-columns: minmax(130px, 190px) 1fr;
    gap: 18px;
    align-items: center;
    overflow: hidden;
    padding: 12px;
    background: #fffdf8;
    border: 1px solid rgba(75, 58, 47, 0.18);
    border-radius: 16px;
}

.tspc-mystery-image {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.tspc-mystery-content h4 {
    margin: 5px 0 0;
    color: #4b3a2f;
    font-size: 1.08rem;
    line-height: 1.35;
}

.tspc-mystery-number {
    display: block;
    color: #777;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 560px) {
    .tspc-mystery-card {
        grid-template-columns: 110px 1fr;
        gap: 12px;
        padding: 10px;
    }

    .tspc-mystery-image {
        height: 110px;
    }
}


/* ------------------------------------------------------
   Guided Rosary fade and progress – Version 3.3.8
------------------------------------------------------- */
.tspc-rosary-status {
    min-height: 1.6em;
    margin: 12px 0 8px;
    color: #4b3a2f;
    font-weight: 600;
    text-align: center;
}

.tspc-mystery-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 18px;
}

.tspc-mystery-dot {
    width: 10px;
    height: 10px;
    background: rgba(75, 58, 47, 0.2);
    border: 1px solid rgba(75, 58, 47, 0.35);
    border-radius: 50%;
    transition: background-color 0.6s ease, transform 0.6s ease;
}

.tspc-mystery-dot.is-active {
    background: #4b3a2f;
    transform: scale(1.25);
}

.tspc-mystery-dot.is-complete {
    background: rgba(75, 58, 47, 0.55);
}

.tspc-mystery-list--guided {
    position: relative;
    display: block;
    min-height: 190px;
}

.tspc-mystery-list--guided .tspc-mystery-card {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.tspc-mystery-list--guided .tspc-mystery-card.is-active {
    display: grid;
    animation: tspcMysteryFadeIn 1.5s ease forwards;
}

@keyframes tspcMysteryFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tspc-mystery-list--guided .tspc-mystery-card.is-active {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


/* Rosary opening portrait – Version 3.3.8 */
.tspc-rosary-opening-card {
    display: none;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
}

.tspc-rosary-opening-card.is-active {
    display: flex;
    animation: tspcMysteryFadeIn 1.5s ease forwards;
}

.tspc-rosary-opening-image {
    display: block;
    width: min(100%, 460px);
    max-height: 560px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(75, 58, 47, 0.14);
}

@media (max-width: 560px) {
    .tspc-rosary-opening-image {
        width: min(100%, 330px);
        max-height: 430px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tspc-rosary-opening-card.is-active {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Prayer reminder controls – Version 4.3.0 */
.tspc-prayer-reminders [hidden] {
    display: none !important;
}

.tspc-prayer-reminders {
    max-width: 760px;
    margin: 24px auto;
    padding: 22px;
    border: 1px solid rgba(92, 68, 34, 0.22);
    border-radius: 16px;
    background: #fffaf0;
    box-shadow: 0 6px 18px rgba(75, 58, 47, 0.08);
    text-align: left;
}

.tspc-reminders-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tspc-reminders-heading h2 {
    margin: 0 0 5px;
    font-size: 1.45rem;
}

.tspc-reminders-heading p,
.tspc-reminders-privacy {
    margin: 0;
}

.tspc-reminders-privacy {
    margin-top: 14px;
    color: #5f554b;
    font-size: 0.92rem;
}

.tspc-reminder-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin-top: 18px;
}

.tspc-reminder-choices label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.tspc-reminder-choices input {
    width: 20px;
    height: 20px;
    accent-color: #5c4422;
}

.tspc-reminders-status {
    min-height: 1.5em;
    margin: 14px 0 0;
    font-weight: 600;
}

.tspc-reminders-disable {
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #704d32;
    text-decoration: underline;
    cursor: pointer;
}

.tspc-reminders-finish {
    justify-self: start;
}

.tspc-reminders-manage {
    margin-top: 8px;
}

@media (max-width: 640px) {
    .tspc-reminders-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .tspc-reminder-choices {
        grid-template-columns: 1fr;
    }
}
