/*
========================================================
LtcSw Pulse
Site Stylesheet
========================================================
*/
/*
========================================================
GLOBAL RESET
========================================================
*/
* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

/*
========================================================
GLOBAL ELEMENTS
========================================================
*/

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

/*
========================================================
SITE CONTAINER
========================================================
*/

.site-container {
    width: 100%;
    max-width: 1400px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #191970;
}

/*
========================================================
HEADER
========================================================
*/

.site-header {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #101050;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-content {
    width: 100%;
    max-width: 1200px;
    min-height: 110px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

/*
========================================================
LOGO
========================================================
*/

.site-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .site-logo a {
        display: block;
        margin: 0;
        padding: 0;
        text-decoration: none;
    }

    .site-logo img {
        display: block;
        width: 80px;
        height: 80px;
        object-fit: contain;
    }

/*
========================================================
SITE BRANDING
========================================================
*/

.site-branding {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.site-title {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

    .site-title i {
        font-weight: 400;
    }

.site-subtitle {
    margin: 5px 0 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

/*
========================================================
MAIN NAVIGATION BAR
========================================================
*/
.main-navigation-bar {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #0d0d40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
}

.navigation-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 50px;
    min-height: 50px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    overflow: visible;
}

/*
========================================================
Navigation Layout
========================================================
*/

.navigation-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.navigation-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.navigation-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/*
========================================================
MENU CONTAINER
========================================================
*/

.menu-container {
    position: relative;
    width: auto;
    height: 50px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    z-index: 1000
}

/*
========================================================
MENU BUTTON
========================================================
*/

.menu-button {
    position: relative;
    width: auto;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .menu-button:hover,
    .menu-button:focus {
        background-color: #252580;
        color: #ffffff;
        outline: none;
    }

    .menu-button:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: -2px;
    }

    .menu-button[aria-expanded="true"] {
        background-color: #252580;
    }

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}

.menu-text {
    display: inline-block;
    line-height: 1;
}

/*
========================================================
SLIDING MENU PANEL
========================================================
*/

/*
The Menu Panel is anchored to the Menu Container.

The top-left corner of the panel is exactly at
the top-left corner of the Menu button.

The panel then expands downward using scaleY().

Because transform-origin is top left, the expansion
visually begins at the Menu button's top-left corner.
*/

.navigation-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    margin: 0;
    padding: 0;
    background-color: #101050;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    /*
    Start collapsed at the Menu button's
    top-left corner.
    */

    transform: scaleY(0);
    transform-origin: top left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s linear 0.3s;
}

    /*
========================================================
OPEN MENU PANEL
========================================================
*/

    .navigation-panel.navigation-panel-open {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s linear 0s;
    }

/*
========================================================
MENU PANEL HEADER
========================================================
*/

.navigation-panel-header {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0d0d40;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/*
========================================================
CLOSE MENU BUTTON
========================================================
*/

.close-menu-button {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .close-menu-button:hover,
    .close-menu-button:focus {
        background-color: #252580;
        color: #ffffff;
        outline: none;
    }

    .close-menu-button:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: -2px;
    }

/*
========================================================
MENU PANEL LINKS
========================================================
*/

.navigation-panel-links {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.navigation-panel-links a {
    width: 100%;
    margin: 0;
    padding: 14px 18px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.navigation-panel-links a:hover,
.navigation-panel-links a:focus {
    background-color: #252580;
    color: #ffffff;
    padding-left: 24px;
    outline: none;
}

.navigation-panel-links a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

/*
========================================================
NAVIGATION PANEL SEPARATOR
========================================================
*/

.navigation-panel-separator {
    width: calc(100% - 24px);
    height: 1px;
    margin: 6px 12px;
    flex: 0 0 auto;
    background-color: rgba(255, 255, 255, 0.25);
}

/*
========================================================
STANDARD NAVIGATION LINKS
========================================================
*/

.navigation-link {
    height: 50px;
    margin: 0;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .navigation-link:hover,
    .navigation-link:focus {
        background-color: #252580;
        color: #ffffff;
        outline: none;
    }

    .navigation-link:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: -2px;
    }

/*
========================================================
TABLET
========================================================
*/

@media (max-width: 900px) {

    .navigation-inner {
        padding: 0 10px;
    }

    .menu-button {
        padding: 0 14px;
    }

    .navigation-link {
        padding: 0 12px;
        font-size: 0.95rem;
    }
}

/*
========================================================
SMALL TABLET
========================================================
*/

@media (max-width: 700px) {

    .navigation-inner {
        padding: 0 5px;
    }

    .menu-button {
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .navigation-link {
        padding: 0 9px;
        font-size: 0.85rem;
    }
}

/*
========================================================
PHONE
========================================================
*/

@media (max-width: 600px) {

    .navigation-inner {
        height: 50px;
        min-height: 50px;
        padding: 0;
    }

    .menu-container {
        height: 50px;
    }

    .menu-button {
        width: 50px;
        height: 50px;
        padding: 0;
    }

    .menu-text {
        display: none;
    }

    .menu-icon {
        font-size: 1.35rem;
    }

    .navigation-link {
        height: 50px;
        padding: 0 7px;
        font-size: 0.75rem;
    }

    .navigation-panel {
        width: 280px;
        max-width: 85vw;
    }
}

/*
========================================================
SMALL PHONE
========================================================
*/

@media (max-width: 400px) {

    .navigation-link {
        padding: 0 5px;
        font-size: 0.68rem;
    }

    .navigation-panel {
        width: 260px;
        max-width: 90vw;
    }
}

/*
========================================================
REDUCED MOTION
========================================================
*/

@media (prefers-reduced-motion: reduce) {

    .navigation-panel {
        transition: none;
    }

        .navigation-panel.navigation-panel-open {
            transition: none;
        }

    .navigation-panel-links a,
    .menu-button,
    .close-menu-button,
    .navigation-link {
        transition: none;
    }
}

/*
========================================================
MAIN CONTENT AREA
========================================================
*/
.content-area {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 30px;
    background-color: #191970;
    color: #ffffff;
}

/*
========================================================
CONTENT PANEL
========================================================
*/

.content-panel {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px;
    background-color: #202080;
    border-radius: 6px;
    color: #ffffff;
}

    /*
========================================================
CONTENT HEADINGS
========================================================
*/

.content-panel h1,
.content-panel h2,
.content-panel h3,
.content-panel h4,
.content-panel h5,
.content-panel h6 {
    margin-top: 0;
    color: #ffffff;
}

.content-panel h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
}

.content-panel h2 {
    margin-bottom: 16px;
    font-size: 1.6rem;
    line-height: 1.25;
}

.content-panel h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.3;
}

    /*
========================================================
CONTENT TEXT
========================================================
*/

.content-panel p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.content-panel ul,
.content-panel ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-panel li {
    margin-bottom: 0.35rem;
}

    /*
========================================================
CONTENT LINKS
========================================================
*/

.content-panel a {
    color: #ffffff;
    text-decoration: underline;
}

.content-panel a:hover,
.content-panel a:focus {
    color: #ffffff;
}

/* =========================================================
   Pulse Home Page
   ========================================================= */

.pulse-home {
    width: 100%;
}


/* ---------------------------------------------------------
   Row 1 - Theme / Welcome
   --------------------------------------------------------- */

.home-hero {
    display: grid;
    grid-template-columns: 30% 70%;
    width: 100%;
    align-items: center;
}

.home-theme-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.home-theme-logo {
    border-radius: 20px;
    display: block;
    height: auto;
    max-width: 320px;
    width: 100%;
}

.home-welcome-column {
    padding: 32px;
}

.home-theme-heading {
    margin-bottom: 24px;
}

.home-theme-heading h1 {
    margin: 0;
}

.home-scripture-reference {
    margin-top: 4px;
    font-weight: 600;
}

.home-welcome-column h2 {
    margin-top: 0;
}

.home-welcome-column p {
    line-height: 1.6;
    text-align: left;
}


/* ---------------------------------------------------------
   Row 2 - Stay Connected
   --------------------------------------------------------- */

.home-connected {
    width: 100%;
    padding: 32px;
    text-align: left;
}

.home-connected h2 {
    margin-top: 0;
}

.home-connected p {
    line-height: 1.6;
}

.home-scripture {
    margin: 24px auto;
    padding: 16px 24px;
    max-width: 700px;
}

    .home-scripture cite {
        display: block;
        margin-top: 8px;
        font-style: normal;
        font-weight: 600;
    }


/* ---------------------------------------------------------
   Tablet Portrait
   --------------------------------------------------------- */

@media (min-width: 600px) and (max-width: 900px) {

    .home-hero {
        display: grid;
        grid-template-columns: 33% 67%;
        align-items: center;
    }

    .home-theme-column {
        grid-column: 1;
        grid-row: 1;
        padding: 20px;
    }

    .home-theme-logo {
        width: 100%;
        max-width: 280px;
        height: auto;
        border-radius: 20px;
    }

    .home-welcome-column {
        display: contents;
    }

    .home-theme-heading {
        grid-column: 2;
        grid-row: 1;
        padding: 24px;
        margin: 0;
        text-align: center;
    }

        .home-theme-heading h1 {
            margin: 0;
        }

    .home-scripture-reference {
        margin-top: 6px;
    }

    .home-welcome-column > h2 {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
        padding: 24px 24px 8px;
        text-align: center;
    }

    .home-welcome-column > p {
        grid-column: 1 / -1;
        margin: 0;
        padding: 0 24px 16px;
        text-align: left;
    }

    .home-connected {
        padding: 24px;
    }
}

/*
========================================================
Calendar Page
========================================================
*/
.calendar-page {
    width: 100%;
}

    .calendar-page h1 {
        margin: 0 0 1.5rem 0;
    }


/*
========================================================
Calendar Table Container
========================================================
*/

.calendar-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/*
========================================================
Calendar Table
========================================================
*/

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}


    /*
========================================================
Calendar Table Header
========================================================
*/

    .calendar-table thead {
        background-color: #101050;
        color: #ffffff;
    }

    .calendar-table th {
        padding: 0.85rem 1rem;
        text-align: left;
        font-weight: 600;
        border: none;
    }


        /*
    Date column
*/

        .calendar-table th:first-child {
            width: 28%;
        }


        /*
    Description column
*/

        .calendar-table th:last-child {
            width: 72%;
        }


    /*
========================================================
Calendar Table Rows
========================================================
*/

    .calendar-table tbody tr {
        background-color: #202080;
    }


        /*
    Alternating row background
*/

        .calendar-table tbody tr:nth-child(even) {
        }


    /*
    Table cells
*/

    .calendar-table td {
        padding: 1rem;
        vertical-align: top;
        border: none;
    }


    /*
========================================================
Horizontal Section Separator
========================================================

    The bottom border separates one date from
    the next date without creating vertical
    grid lines.
*/

    .calendar-table tbody tr {
        border-bottom: 1px solid #101050;
    }


        /*
    Remove the separator after the final date.
*/

        .calendar-table tbody tr:last-child {
            border-bottom: none;
        }


/*
========================================================
Calendar Date
========================================================
*/

.calendar-date {
    font-weight: 700;
    color: #ffffff;
}


/*
========================================================
Calendar Description
========================================================
*/

.calendar-description {
    color: #ffffff;
}


/*
    Primary event description
*/

.description-main {
    font-weight: 700;
    line-height: 1.4;
}


/*
    Additional information associated
    with the primary description
*/

.description-secondary {
    margin-top: 0.4rem;
    padding-left: 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
}


    /*
Visual indicator for secondary descriptions
*/

    .description-secondary::before {
        content: "•";
        display: inline-block;
        margin-right: 0.5rem;
    }


/*
========================================================
Calendar Row Hover
========================================================
*/

.calendar-table tbody tr:hover {
    background-color: #252580;
}


/*
========================================================
Responsive Calendar
========================================================
*/

/*
    Tablet
*/

@media (max-width: 700px) {

    .calendar-table {
        table-layout: auto;
    }

        .calendar-table th:first-child {
            width: 32%;
        }

        .calendar-table th:last-child {
            width: 68%;
        }

        .calendar-table th,
        .calendar-table td {
            padding: 0.8rem;
        }
}


/*
    Phone
*/

@media (max-width: 600px) {

    .calendar-page h1 {
        margin-bottom: 1rem;
    }

    .calendar-table {
        table-layout: auto;
    }

        .calendar-table th,
        .calendar-table td {
            padding: 0.7rem;
        }

            .calendar-table th:first-child {
                width: 36%;
            }

            .calendar-table th:last-child {
                width: 64%;
            }

    .description-secondary {
        padding-left: 0.75rem;
        font-size: 0.9rem;
    }
}


/*
========================================================
Very Small Phones
========================================================
*/

@media (max-width: 400px) {

    .calendar-table th,
    .calendar-table td {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .description-secondary {
        padding-left: 0.5rem;
        font-size: 0.85rem;
    }
}

/*
========================================================
My Schedule
========================================================
*/

.my-schedule-page {
    width: 100%;
}

    .my-schedule-page > h1 {
        margin: 0 0 1.5rem 0;
        text-align: center;
    }

.my-schedule-day {
    width: 100%;
    margin-bottom: 2rem;
}

    .my-schedule-day:last-child {
        margin-bottom: 0;
    }

.my-schedule-day-header {
    margin: 0;
    padding: 0.85rem 1rem;
    background-color: #101050;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.my-schedule-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.my-schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .my-schedule-table td {
        border: none;
    }

.my-schedule-event-row {
    background-color: #202080;
}

    .my-schedule-event-row td {
        padding: 1rem 1rem 0.3rem 1rem;
        color: #ffffff;
        font-weight: 700;
        vertical-align: top;
    }

.my-schedule-time {
    width: 25%;
    text-align: left;
    white-space: nowrap;
}

.my-schedule-event-name {
    width: 75%;
    text-align: right;
}

.my-schedule-location-row {
    background-color: #202080;
    border-bottom: 1px solid #101050;
}

    .my-schedule-location-row td {
        padding: 0.2rem 1rem 1rem 1rem;
    }

.my-schedule-location {
    text-align: left;
    color: #ffffff;
    font-style: italic;
    font-size: 0.95rem;
}

.my-schedule-table tbody .my-schedule-location-row:last-child {
    border-bottom: none;
}

.my-schedule-event-row:hover,
.my-schedule-event-row:hover + .my-schedule-location-row {
    background-color: #252580;
}

.my-schedule-empty-row {
    background-color: #202080;
}

    .my-schedule-empty-row td {
        padding: 1rem;
        color: #ffffff;
        font-style: italic;
        text-align: left;
    }

@media (max-width: 700px) {
    .my-schedule-table {
        table-layout: fixed;
    }

    .my-schedule-event-row td {
        padding: 0.8rem 0.8rem 0.25rem 0.8rem;
    }

    .my-schedule-location-row td {
        padding: 0.2rem 0.8rem 0.8rem 0.8rem;
    }
}

@media (max-width: 600px) {
    .my-schedule-page > h1 {
        margin-bottom: 1rem;
    }

    .my-schedule-day {
        margin-bottom: 1.5rem;
    }

    .my-schedule-day-header {
        padding: 0.7rem;
        font-size: 1.15rem;
    }

    .my-schedule-event-row td {
        padding: 0.7rem 0.7rem 0.2rem 0.7rem;
    }

    .my-schedule-location-row td {
        padding: 0.2rem 0.7rem 0.7rem 0.7rem;
    }

    .my-schedule-location {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .my-schedule-event-row td,
    .my-schedule-location-row td {
        font-size: 0.9rem;
    }

    .my-schedule-location {
        font-size: 0.85rem;
    }
}

/*
========================================================
Study Material
========================================================
*/
.study-material-page {
    width: 100%;
}


/*
========================================================
Study Material Introduction
========================================================
*/

.study-material-introduction {
    max-width: 850px;
    margin: 0 auto 2rem auto;
    text-align: center;
    line-height: 1.6;
}


/*
========================================================
Category Buttons
========================================================
*/

.study-material-categories {
    width: 50%;
    max-width: 650px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


/*
========================================================
Category Button
========================================================
*/

.study-material-category-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 1rem 3.5rem 1rem 2rem;
    background-color: #006400;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /*
        Restrained 3D bubble effect.
    */

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.20), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 5px 0 #003d00, 0 8px 14px rgba(0, 0, 0, 0.30);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

    .study-material-category-button,
    .study-material-category-button:hover,
    .study-material-category-button:focus,
    .study-material-category-button:active {
        text-decoration: none;
    }

.study-material-categories a.study-material-category-button {
    color: #ffffff;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

    .study-material-categories a.study-material-category-button:hover {
        color: #ffffff;
        text-decoration: none !important;
        text-decoration-line: none !important;
    }

/*
========================================================
Category Button Text
========================================================
*/

.study-material-category-text {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}


/*
========================================================
Category Button Arrow
========================================================
*/

.study-material-category-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    line-height: 1;
    font-weight: 300;
}


/*
========================================================
Category Button Hover
========================================================
*/

.study-material-category-button:hover {
    background-color: #087208;
    transform: translateY(-2px);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 7px 0 #003d00, 0 11px 18px rgba(0, 0, 0, 0.30);
}


/*
========================================================
Category Button Active
========================================================
*/

.study-material-category-button:active {
    transform: translateY(4px);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 2px 0 #003d00, 0 4px 8px rgba(0, 0, 0, 0.25);
}


/*
========================================================
Keyboard Focus
========================================================
*/

.study-material-category-button:focus {
    outline: none;
}

.study-material-category-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}


/*
========================================================
Empty / Error Messages
========================================================
*/

.study-material-empty,
.study-material-error {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
    background-color: #101050;
    border-radius: 12px;
}


/*
========================================================
Category Page Header
========================================================
*/

.study-material-page-header {
    margin-bottom: 2rem;
}


    .study-material-page-header h1 {
        margin-top: 0.75rem;
    }


/*
========================================================
Back Link
========================================================
*/

.study-material-back-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.9;
}


    .study-material-back-link:hover {
        opacity: 1;
        text-decoration: underline;
    }


/*
========================================================
Resource Sections
========================================================
*/

.study-material-section {
    margin: 2rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #101050;
}


    .study-material-section h2 {
        margin: 0;
        font-size: 1.2rem;
    }


/*
========================================================
Resource List
========================================================
*/

.study-material-resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


/*
========================================================
Resource
========================================================
*/

.study-material-resource {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: #101050;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}


    /*
========================================================
Resource Hover
========================================================
*/

    .study-material-resource:hover {
        background-color: #151560;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
    }


/*
========================================================
Resource Icon
========================================================
*/

.study-material-resource-icon {
    flex: 0 0 auto;
    width: 36px;
    text-align: center;
    font-size: 1.5rem;
}


/*
========================================================
Resource Content
========================================================
*/

.study-material-resource-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}


.study-material-resource-title {
    font-weight: 700;
    line-height: 1.35;
}


.study-material-resource-type {
    font-size: 0.8rem;
    opacity: 0.65;
    text-transform: uppercase;
}


/*
========================================================
Resource Arrow
========================================================
*/

.study-material-resource-arrow {
    flex: 0 0 auto;
    font-size: 1.8rem;
    line-height: 1;
}


/*
========================================================
Responsive Category Layout
========================================================
*/

@media (max-width: 900px) {

    .study-material-categories {
        width: 70%;
        max-width: none;
    }
}


/*
========================================================
Tablet
========================================================
*/

@media (max-width: 700px) {

    .study-material-categories {
        width: 80%;
        gap: 1.5rem;
    }

    .study-material-category-button {
        min-height: 60px;
    }
}


/*
========================================================
Phone
========================================================
*/

@media (max-width: 600px) {

    .study-material-categories {
        width: 100%;
        padding: 0 0.5rem;
        gap: 1.25rem;
    }


    .study-material-category-button {
        min-height: 58px;
        padding-left: 1.25rem;
        padding-right: 3rem;
    }


    .study-material-category-text {
        font-size: 1rem;
    }


    .study-material-category-arrow {
        right: 1.25rem;
    }


    .study-material-resource {
        padding: 0.9rem;
        gap: 0.7rem;
    }
}


/*
========================================================
Very Small Phones
========================================================
*/

@media (max-width: 400px) {

    .study-material-category-button {
        min-height: 54px;
        padding-left: 1rem;
        padding-right: 2.75rem;
    }


    .study-material-category-text {
        font-size: 0.95rem;
    }


    .study-material-resource-icon {
        width: 30px;
        font-size: 1.25rem;
    }
}


/*
========================================================
Bible Bowl Trivia
========================================================
*/

.bible-bowl-page {
    width: 100%;
}


    /*
========================================================
Chapter Selection
========================================================
*/

    .bible-bowl-page .study-material-categories {
        width: 650px;
        max-width: 100%;
        margin: 2rem auto;
    }

.bible-bowl-chapter-form {
    width: 100%;
    margin: 0;
}

.bible-bowl-chapter-button {
    width: 100%;
    min-width: 100%;
    max-width: none;
    margin: 0;
    font-family: inherit;
    cursor: pointer;
}


/*
========================================================
Question Header / Status
========================================================
*/

.bible-bowl-page > h1 {
    margin-bottom: 1.25rem;
    text-align: center;
}

.bible-bowl-status {
    width: 100%;
    margin: 0 0 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.bible-bowl-status-left {
    text-align: left;
}

.bible-bowl-status-center {
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}

.bible-bowl-status-right {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.content-panel a.bible-bowl-chapter-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    opacity: 0.9;
}

    .content-panel a.bible-bowl-chapter-link:hover,
    .content-panel a.bible-bowl-chapter-link:focus {
        color: #ffffff;
        text-decoration: underline;
        opacity: 1;
    }

.bible-bowl-study-reference {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.75;
}


/*
========================================================
Question Panel
========================================================
*/

.bible-bowl-question-panel {
    width: 100%;
    margin: 0 0 1.5rem 0;
    padding: 1.4rem 1.5rem;
    background-color: #101050;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.content-panel .bible-bowl-question-text {
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
}


/*
========================================================
Answer Grid
========================================================
*/

.bible-bowl-answer-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.bible-bowl-answer-form,
.bible-bowl-answer-item {
    width: 100%;
    margin: 0;
}

.bible-bowl-answer-button {
    width: 100%;
    min-height: 86px;
    height: 100%;
    margin: 0;
    padding: 1rem 1.4rem;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.8rem;
    align-items: center;
    background-color: #006400;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.20), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 5px 0 #003d00, 0 8px 14px rgba(0, 0, 0, 0.30);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bible-bowl-answer-form .bible-bowl-answer-button:hover,
.bible-bowl-answer-form .bible-bowl-answer-button:focus {
    background-color: #087208;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 7px 0 #003d00, 0 11px 18px rgba(0, 0, 0, 0.30);
    outline: none;
}

.bible-bowl-answer-form .bible-bowl-answer-button:active {
    transform: translateY(4px);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 2px 0 #003d00, 0 4px 8px rgba(0, 0, 0, 0.25);
}

.bible-bowl-answer-form .bible-bowl-answer-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.bible-bowl-answer-letter {
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
}

.bible-bowl-answer-text {
    min-width: 0;
}


/*
========================================================
Validated Answer States
========================================================
*/

.bible-bowl-answer-button:disabled {
    color: #ffffff;
    cursor: default;
}

.bible-bowl-answer-correct,
.bible-bowl-answer-correct:disabled {
    background-color: #087208;
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 5px 0 #003d00, 0 8px 14px rgba(0, 0, 0, 0.30);
    opacity: 1;
}

.bible-bowl-answer-incorrect,
.bible-bowl-answer-incorrect:disabled {
    background-color: #8b0000;
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), inset 0 -4px 0 rgba(0, 0, 0, 0.20), 0 5px 0 #520000, 0 8px 14px rgba(0, 0, 0, 0.30);
    opacity: 1;
}

.bible-bowl-answer-muted,
.bible-bowl-answer-muted:disabled {
    background-color: #101050;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: none;
    opacity: 0.45;
}

.bible-bowl-answer-verse {
    margin: 0.7rem 1rem 0 3.8rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.9;
}

.bible-bowl-result-message {
    grid-column: 1 / -1;
    margin: 1.5rem 0 0 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
}


/*
========================================================
Chapter Complete
========================================================
*/

.bible-bowl-complete {
    width: 100%;
}

.bible-bowl-results-panel {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    text-align: center;
    background-color: #101050;
    border-radius: 12px;
}

.bible-bowl-final-score {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.content-panel .bible-bowl-final-summary {
    margin-bottom: 0;
}

.bible-bowl-complete-actions {
    width: 650px;
    max-width: 100%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

    .bible-bowl-complete-actions form {
        width: 100%;
        margin: 0;
    }

.content-panel a.bible-bowl-complete-link {
    color: #ffffff;
    text-decoration: none !important;
}

    .content-panel a.bible-bowl-complete-link:hover,
    .content-panel a.bible-bowl-complete-link:focus,
    .content-panel a.bible-bowl-complete-link:active {
        color: #ffffff;
        text-decoration: none !important;
    }


/*
========================================================
Responsive Bible Bowl Layout
========================================================
*/

@media (max-width: 700px) {

    .bible-bowl-status {
        grid-template-columns: 1fr 1fr;
    }

    .bible-bowl-status-center {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .bible-bowl-status-left {
        grid-column: 1;
        grid-row: 2;
    }

    .bible-bowl-status-right {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 600px) {

    .bible-bowl-page .study-material-categories,
    .bible-bowl-complete-actions {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .bible-bowl-answer-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bible-bowl-answer-button {
        min-height: 68px;
        grid-template-columns: 34px 1fr;
        padding: 0.9rem 1.1rem;
    }

    .content-panel .bible-bowl-question-text {
        font-size: 1.15rem;
    }

    .bible-bowl-answer-verse {
        margin-left: 3.25rem;
    }
}

@media (max-width: 400px) {

    .bible-bowl-status {
        gap: 0.7rem;
        font-size: 0.9rem;
    }

    .bible-bowl-study-reference {
        font-size: 0.8rem;
    }

    .bible-bowl-answer-button {
        font-size: 0.95rem;
    }
}


/*
========================================================
Footer
========================================================
*/

.site-footer {
    width: 100%;
    background-color: #101050;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-content {
    width: 100%;
    min-height: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.footer-copyright {
    text-align: left;
    font-size: 0.9rem;
}

.footer-links {
    text-align: right;
    font-size: 0.9rem;
}

    .footer-links a {
        color: #ffffff;
        text-decoration: none;
    }

        .footer-links a:hover,
        .footer-links a:focus {
            text-decoration: underline;
        }

@media (max-width: 600px) {
    .footer-content {
        padding: 10px 12px;
    }

    .footer-copyright,
    .footer-links {
        font-size: 0.8rem;
    }
}


/* =========================================================
   LTCsw PULSE
   JUDGING FORM
   =========================================================

   Styling for the judge-facing judging-form.php page.

   These selectors correspond to the EXISTING PHP markup.
   The same visual design can later be applied to the
   judging-form-creation.php preview.

   ========================================================= */


/* =========================================================
   LtcSw Pulse â€” Judging Form
   Final consolidated stylesheet
   ========================================================= */

* {
    box-sizing: border-box;
}

.judging-preview {
    width: min(100%, 1200px);
    margin: 24px auto;
    padding: 28px;
    background: #fff;
    border: 1px solid #c7cdd6;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    color: #1f2937;
}

/* Header */

.judging-preview-header {
    margin-bottom: 12px;
    padding-bottom: 18px;
    text-align: center;
    border-bottom: 2px solid #0b1f3a;
}

.judging-preview-organization {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4b5563;
}

.judging-preview-title {
    margin-top: 4px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #0b1f3a;
}

.judging-preview-event {
    margin: 0 0 22px;
    padding: 12px 16px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    background: #f2f5f9;
    border: 1px solid #d4dae3;
    border-radius: 7px;
    color: #0b1f3a;
}

/* Participant information */

.judging-preview-information {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.judging-preview-information-row {
    display: flex;
    width: 100%;
    gap: 14px;
}

.judging-preview-information-item {
    min-width: 0;
}

.judging-preview-participant-name {
    flex: 3 1 75%;
}

.judging-preview-grade {
    flex: 1 1 25%;
}

.judging-preview-full-width {
    width: 100%;
    flex: 1 1 100%;
}

.judging-preview-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
}

.judging-preview-value,
.judging-preview-information-item input[type="text"] {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #aeb7c4;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font: inherit;
}

.judging-preview-value {
    background: #f8fafc;
}

.judging-preview-information-item input[type="text"]:focus,
.judging-form-commentary-textarea:focus {
    outline: 2px solid rgba(11, 31, 58, 0.18);
    outline-offset: 1px;
    border-color: #0b1f3a;
}

/* Main Scoring / Critique columns */

.judging-preview-main-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.judging-preview-section {
    margin-top: 24px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.judging-preview-main-columns > .judging-preview-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.judging-preview-section::before {
    display: block;
    padding: 10px 14px;
    background: #0b1f3a;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.judging-preview-scoring::before {
    content: "Scoring";
}

.judging-preview-critique::before {
    content: "Critique";
}

.judging-preview-commentary::before {
    content: "Commentary";
}

.judging-preview-questions {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.judging-preview-question {
    padding: 16px;
    border-bottom: 1px solid #e2e7ed;
}

    .judging-preview-question:last-child {
        border-bottom: 0;
    }

.judging-preview-question-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

.judging-preview-question-title strong {
    margin-right: 6px;
    color: #0b1f3a;
}

.judging-preview-question-description {
    margin-top: 7px;
    line-height: 1.55;
    color: #4b5563;
}

.judging-preview-question-description p {
    margin: 0.35em 0;
}

.judging-preview-response {
    margin-top: 12px;
}

.judging-preview-empty {
    padding: 18px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
    background: #fafbfc;
}

/* Scoring rows: 25% control / 75% question text */

.judging-preview-scoring .judging-preview-question {
    display: grid;
    grid-template-columns: 25% 75%;
    grid-template-areas:
        "response title"
        ". description";
    column-gap: 0;
    row-gap: 0;
    align-items: start;
}

.judging-preview-scoring .judging-preview-response {
    grid-area: response;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 12px 0 0;
    align-self: stretch;
}

.judging-preview-scoring .judging-preview-question-title {
    grid-area: title;
    margin: 0;
    padding: 0;
    align-self: center;
}

.judging-preview-scoring .judging-preview-question-description {
    grid-area: description;
    margin-top: 7px;
}


/* Critique rows: 75% text / 25% star control */

.judging-preview-critique .judging-preview-question {
    display: grid;
    grid-template-columns: 75% 25%;
    grid-template-areas:
        "title response"
        "description .";
    column-gap: 0;
    row-gap: 0;
    align-items: start;
}

.judging-preview-critique .judging-preview-question-title {
    grid-area: title;
    margin: 0;
    padding: 0 12px 0 0;
    align-self: center;
}

.judging-preview-critique .judging-preview-response {
    grid-area: response;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
}

.judging-preview-critique .judging-preview-question-description {
    grid-area: description;
    margin-top: 7px;
    padding-right: 12px;
}

.judging-preview-critique star-rating {
    display: inline-block;
    margin: 0;
}


/* Custom controls */

.judging-preview-scoring numeric-slider {
    width: 100%;
    margin: 0;
    padding: 0;
}

.judging-preview-critique star-rating {
    margin-left: auto;
}


.judging-form-commentary-textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 10px 12px;
    border: 1px solid #aeb7c4;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
}

/* Total Score inside Scoring column */

.judging-preview-score-row-inline {
    display: grid;
    grid-template-columns: 25% 75%;
    align-items: center;
    gap: 0;
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #d5dbe3;
    background: #f2f5f9;
}

    .judging-preview-score-row-inline .judging-preview-score-control {
        display: block;
        width: 100%;
        min-height: 42px;
        margin: 0;
        padding: 9px 11px;
        border: 1px solid #bcc5d0;
        border-radius: 6px;
        background: #fff;
        color: #0b1f3a;
        font: inherit;
        font-weight: 700;
    }

    .judging-preview-score-row-inline .judging-preview-score-label {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 12px;
        text-align: center;
        font-weight: 700;
        color: #0b1f3a;
    }




/*
========================================================
Recommended Award
========================================================
*/

.judging-preview-award {
    margin-top: 28px;
    padding: 16px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    background: #f8fafc;
}

.judging-preview-award-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
    align-items: center;
    justify-items: stretch;
    font-size: 1.35rem;
    font-weight: 700;
    color: #374151;
}

.judging-preview-award-label {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
}

.judging-preview-award-option {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
}

.judging-preview-award-option-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/*
 * Keep the radio input functional for mutual exclusion,
 * but completely hide the browser's native round control.
 */
.judging-preview-award-option input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    pointer-events: none;
}

.judging-preview-award-star {
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: #cbd5e1;
    font-size: 2rem;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.judging-preview-award-option
input[type="radio"]:checked ~ .judging-preview-award-option-content
.judging-preview-award-star {
    color: #f5b301;
}

.judging-preview-award-option:hover
.judging-preview-award-star {
    color: #f5b301;
}

.judging-preview-award-option
input[type="radio"]:focus-visible ~ .judging-preview-award-option-content
.judging-preview-award-star {
    outline: 2px solid #0b1f3a;
    outline-offset: 3px;
    border-radius: 2px;
}

/*
========================================================
Judging Form Creation - Page Header / Category Selector
========================================================
*/

.judging-form-creation {
    width: 100%;
}

.judging-form-creation-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin: 0 0 18px 0;
    padding: 0;
}

    .judging-form-creation-header h1 {
        width: 100%;
        margin: 0;
        padding: 0 320px;
        text-align: center;
    }

    .judging-form-creation-header .judging-form-selection {
        position: absolute;
        top: 50%;
        right: 0;
        margin: 0;
        padding: 0;
        transform: translateY(-50%);
    }

    .judging-form-creation-header .judging-form-category {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        margin: 0;
        padding: 0;
    }

    .judging-form-creation-header #category-select {
        width: 280px;
        max-width: 100%;
        margin: 0;
    }

    .judging-form-creation-header .judging-form-status {
        margin-top: 4px;
        font-size: 0.82rem;
        line-height: 1.1;
        text-align: right;
    }


/*
 * Tablet / narrow desktop fallback:
 * retain centered heading while allowing the selector
 * to fit cleanly within the Content Panel.
 */
@media (max-width: 900px) {

    .judging-form-creation-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
    }

    .judging-form-creation-header h1 {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .judging-form-creation-header .judging-form-selection {
        position: static;
        width: 100%;
        transform: none;
        display: flex;
        justify-content: flex-end;
    }

    .judging-form-creation-header .judging-form-category {
        width: min(100%, 320px);
    }

    .judging-form-creation-header #category-select {
        width: 100%;
    }
}


/*
========================================================
Judging Form Creation - New Category Modal
========================================================
*/

body.judging-modal-open {
    overflow: hidden;
}

.judging-category-modal[hidden] {
    display: none !important;
}

.judging-category-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.judging-category-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.judging-category-modal-panel {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    border: 1px solid #cfd6df;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30);
    overflow: hidden;
}

.judging-category-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #0b1f3a;
    color: #ffffff;
}

.judging-category-modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.2;
}

.judging-category-modal-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.judging-category-modal-body {
    padding: 18px 20px;
}

.judging-category-modal-label {
    display: block;
    margin-bottom: 6px;
    color: #0b1f3a;
    font-weight: 700;
}

.judging-category-modal-input {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #aeb7c4;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font: inherit;
}

.judging-category-modal-input:focus {
    outline: 2px solid rgba(11, 31, 58, 0.18);
    outline-offset: 1px;
    border-color: #0b1f3a;
}

.judging-category-modal-error {
    margin-top: 10px;
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 600;
}

.judging-category-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #e2e7ed;
    background: #f8fafc;
}

.judging-category-modal-actions button {
    min-width: 130px;
}

@media (max-width: 600px) {

    .judging-category-modal {
        padding: 12px;
    }

    .judging-category-modal-actions {
        flex-direction: column-reverse;
    }

        .judging-category-modal-actions button {
            width: 100%;
        }
}


/*
========================================================
Judging Form Creation - Editor Layout
========================================================
*/

.judging-form-editor {
    width: 100%;
    min-width: 0;
}

    .judging-form-editor .judging-preview {
        width: 100%;
        max-width: none;
    }

.judging-form-editor-main-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    min-width: 0;
    margin-top: 18px;
}

.judging-form-editor-section {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.judging-form-editor-main-columns
.judging-form-editor-section {
    min-height: 100%;
}

.judging-form-editor-commentary {
    width: 100%;
    margin-top: 18px;
}

.judging-form-editor-section
.judging-preview-section-header {
    margin-bottom: 12px;
}

    .judging-form-editor-section
    .judging-preview-section-header h2 {
        margin: 0;
        text-align: center;
    }

.judging-form-editor-section
.judging-preview-questions {
    width: 100%;
    min-width: 0;
}

.judging-form-editor-section
.judging-preview-add-button {
    display: block;
    width: min(100%, 280px);
    margin: 16px auto 0 auto;
}


/*
 * Preserve the same visual proportions used by the
 * actual Judging Form while editing.
 */
.judging-form-editor
.judging-preview-scoring
.judging-preview-question {
    grid-template-columns: 25% 75%;
}

.judging-form-editor
.judging-preview-critique
.judging-preview-question {
    grid-template-columns: 75% 25%;
}


/*
========================================================
Judging Form Creation - Question Modal
========================================================
*/

body.judging-question-modal-open {
    overflow: hidden;
}

.judging-question-modal[hidden] {
    display: none !important;
}

.judging-question-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.judging-question-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.judging-question-modal-window {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(860px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    margin: 0;
    overflow: hidden;
    border: 1px solid #40546f;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.judging-question-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: 0 0 auto;
    padding: 14px 18px;
    border-bottom: 1px solid #314761;
    background: #0b1f3a;
    color: #ffffff;
}

    .judging-question-modal-header > div {
        min-width: 0;
    }

    .judging-question-modal-header h2 {
        margin: 0;
        color: #ffffff;
        font-size: 1.35rem;
        line-height: 1.15;
    }

    .judging-question-modal-header p {
        margin: 3px 0 0 0;
        color: #d7e0eb;
        font-size: 0.9rem;
        line-height: 1.15;
    }

.judging-question-modal-close {
    flex: 0 0 auto;
    min-width: 110px;
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

    .judging-question-modal-close:hover,
    .judging-question-modal-close:focus-visible {
        background: rgba(255, 255, 255, 0.14);
    }

.judging-question-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px;
    background: #e9eef5;
}

.judging-question-editor-field {
    margin-bottom: 18px;
}

    .judging-question-editor-field:last-child {
        margin-bottom: 0;
    }

    .judging-question-editor-field > label,
    .judging-question-editor-caption,
    .judging-question-bounds label {
        display: block;
        margin: 0 0 6px 0;
        color: #0b1f3a;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .judging-question-editor-field select,
    .judging-question-bounds input {
        width: 100%;
        min-height: 42px;
        margin: 0;
        padding: 8px 10px;
        box-sizing: border-box;
        border: 1px solid #8e9bad;
        border-radius: 6px;
        background: #ffffff;
        color: #111827;
        font: inherit;
    }

        .judging-question-editor-field select:focus,
        .judging-question-bounds input:focus {
            border-color: #0b1f3a;
            outline: 2px solid rgba(11, 31, 58, 0.16);
            outline-offset: 1px;
        }

.judging-question-bounds {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.judging-question-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    padding: 12px 18px;
    border-top: 1px solid #cbd5e1;
    background: #ffffff;
}


/*
========================================================
Judging Form Creation - Quill Editors
========================================================
*/

.judging-question-modal
.rich-text-editor {
    background: #ffffff;
}

.judging-question-modal
.ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #7f8ea3;
    border-bottom: 1px solid #a4afbe;
    border-radius: 7px 7px 0 0;
    background: #dbe3ed;
}

.judging-question-modal
.ql-container.ql-snow {
    border: 1px solid #7f8ea3;
    border-top: 0;
    border-radius: 0 0 7px 7px;
    background: #ffffff;
    color: #111827;
}

.judging-question-modal
.rich-text-editor-title
.ql-editor {
    min-height: 72px;
    max-height: 120px;
}

.judging-question-modal
.rich-text-editor-description
.ql-editor {
    min-height: 150px;
    max-height: 260px;
}

.judging-question-modal
.ql-editor {
    padding: 12px 14px;
    overflow-y: auto;
    background: #ffffff;
    color: #111827;
    font-size: 1rem;
    line-height: 1.45;
}

    .judging-question-modal
    .ql-editor.ql-blank::before {
        color: #667085;
        opacity: 1;
    }


/*
 * Make Quill toolbar icons visible against the toolbar.
 */
.judging-question-modal
.ql-snow .ql-stroke {
    stroke: #0b1f3a;
}

    .judging-question-modal
    .ql-snow .ql-fill,
    .judging-question-modal
    .ql-snow .ql-stroke.ql-fill {
        fill: #0b1f3a;
    }

.judging-question-modal
.ql-snow .ql-picker {
    color: #0b1f3a;
}

.judging-question-modal
.ql-snow .ql-picker-options {
    background: #ffffff;
    color: #111827;
}

.judging-question-modal
.ql-snow button:hover .ql-stroke,
.judging-question-modal
.ql-snow button:focus .ql-stroke,
.judging-question-modal
.ql-snow button.ql-active .ql-stroke {
    stroke: #c85b00;
}

.judging-question-modal
.ql-snow button:hover .ql-fill,
.judging-question-modal
.ql-snow button:focus .ql-fill,
.judging-question-modal
.ql-snow button.ql-active .ql-fill {
    fill: #c85b00;
}

.judging-question-modal
.ql-snow .ql-picker-label:hover,
.judging-question-modal
.ql-snow .ql-picker-label.ql-active {
    color: #c85b00;
}


/*
========================================================
Judging Form Creation - Responsive Editor
========================================================
*/

@media (max-width: 900px) {

    .judging-form-editor-main-columns {
        grid-template-columns: 1fr;
    }

    .judging-question-modal {
        padding: 12px;
    }

    .judging-question-modal-window {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }
}

@media (max-width: 600px) {

    .judging-question-modal-header {
        gap: 10px;
        padding: 12px;
    }

    .judging-question-modal-close {
        min-width: auto;
        padding: 0 10px;
    }

    .judging-question-modal-body {
        padding: 14px;
    }

    .judging-question-bounds {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .judging-question-modal-footer {
        flex-direction: column-reverse;
    }

        .judging-question-modal-footer button {
            width: 100%;
        }
}

/*
========================================================
Judging Form - Scoring Points + Title Inline
========================================================
*/

.judging-preview-scoring .judging-preview-question-title {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0.35em;
    grid-area: title;
    margin: 0;
    padding: 0;
    align-self: center;
}

.judging-preview-scoring .judging-scoring-points {
    flex: 0 0 auto;
    white-space: nowrap;
}

.judging-preview-scoring .judging-scoring-question-title {
    flex: 1 1 auto;
    min-width: 0;
}

    .judging-preview-scoring .judging-scoring-question-title > p {
        display: inline;
        margin: 0;
    }

        .judging-preview-scoring .judging-scoring-question-title > p:first-child {
            margin-top: 0;
        }

        .judging-preview-scoring .judging-scoring-question-title > p:last-child {
            margin-bottom: 0;
        }

/*
========================================================
Judging Form - Question-Type Layout Templates
========================================================

Question layout is determined by TypeID, not by the section
that contains the question.

Numeric:
    25% response / 75% title and description

Stars:
    75% title and description / 25% response

Text:
    full-width title, description, and response
========================================================
*/


/* ---------------------------------------------------------
   NUMERIC QUESTIONS
   --------------------------------------------------------- */

.judging-preview-question.judging-question-type-numeric {
    display: grid;
    grid-template-columns: 25% 75%;
    grid-template-areas:
        "response title"
        ". description";
    column-gap: 0;
    row-gap: 0;
    align-items: start;
}

    .judging-preview-question.judging-question-type-numeric
    .judging-preview-response {
        grid-area: response;
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0 12px 0 0;
        align-self: stretch;
    }

    .judging-preview-question.judging-question-type-numeric
    .judging-preview-question-title {
        grid-area: title;
        display: flex;
        align-items: baseline;
        flex-wrap: nowrap;
        gap: 0.35em;
        margin: 0;
        padding: 0;
        align-self: center;
    }

    .judging-preview-question.judging-question-type-numeric
    .judging-preview-question-description {
        grid-area: description;
        margin-top: 7px;
    }

    .judging-preview-question.judging-question-type-numeric
    numeric-slider {
        width: 100%;
        margin: 0;
        padding: 0;
    }


/* ---------------------------------------------------------
   STAR QUESTIONS
   --------------------------------------------------------- */

.judging-preview-question.judging-question-type-stars {
    display: grid;
    grid-template-columns: 75% 25%;
    grid-template-areas:
        "title response"
        "description .";
    column-gap: 0;
    row-gap: 0;
    align-items: start;
}

    .judging-preview-question.judging-question-type-stars
    .judging-preview-question-title {
        grid-area: title;
        margin: 0;
        padding: 0 12px 0 0;
        align-self: center;
    }

    .judging-preview-question.judging-question-type-stars
    .judging-preview-response {
        grid-area: response;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        margin: 0;
        padding: 0;
        align-self: center;
    }

    .judging-preview-question.judging-question-type-stars
    .judging-preview-question-description {
        grid-area: description;
        margin-top: 7px;
        padding-right: 12px;
    }

    .judging-preview-question.judging-question-type-stars
    star-rating {
        display: inline-block;
        margin: 0 0 0 auto;
    }


/* ---------------------------------------------------------
   TEXT QUESTIONS
   --------------------------------------------------------- */

.judging-preview-question.judging-question-type-text {
    display: block;
    width: 100%;
}

    .judging-preview-question.judging-question-type-text
    .judging-preview-question-title {
        width: 100%;
        margin: 0 0 7px 0;
        padding: 0;
    }

    .judging-preview-question.judging-question-type-text
    .judging-preview-question-description {
        width: 100%;
        margin: 0 0 10px 0;
        padding: 0;
    }

    .judging-preview-question.judging-question-type-text
    .judging-preview-response {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .judging-preview-question.judging-question-type-text
    .judging-form-commentary-textarea {
        width: 100%;
    }


/*
========================================================
Judging Form Creation - Type-Aware Question Header
========================================================
*/

.judging-form-editor
.judging-preview-question-header {
    min-width: 0;
}

/*
 * The Creation editor includes Edit/Move/Delete controls in the
 * question header. For Numeric and Star questions the header
 * occupies the same title column used by the live form.
 */
.judging-form-editor
.judging-preview-question.judging-question-type-numeric {
    grid-template-columns: 25% 75%;
    grid-template-areas:
        "response header"
        ". description";
}

.judging-form-editor
.judging-preview-question.judging-question-type-stars {
    grid-template-columns: 75% 25%;
    grid-template-areas:
        "header response"
        "description .";
}

    .judging-form-editor
    .judging-preview-question.judging-question-type-numeric
    .judging-preview-question-header,
    .judging-form-editor
    .judging-preview-question.judging-question-type-stars
    .judging-preview-question-header {
        grid-area: header;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
    }

        .judging-form-editor
        .judging-preview-question.judging-question-type-numeric
        .judging-preview-question-header
        .judging-preview-question-title,
        .judging-form-editor
        .judging-preview-question.judging-question-type-stars
        .judging-preview-question-header
        .judging-preview-question-title {
            flex: 1 1 auto;
            min-width: 0;
        }

.judging-form-editor
.judging-preview-question.judging-question-type-text
.judging-preview-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

    .judging-form-editor
    .judging-preview-question.judging-question-type-text
    .judging-preview-question-header
    .judging-preview-question-title {
        flex: 1 1 auto;
        min-width: 0;
    }


/*
========================================================
Question-Type Layout - Small Screens
========================================================
*/

@media (max-width: 700px) {

    .judging-preview-question.judging-question-type-numeric,
    .judging-preview-question.judging-question-type-stars,
    .judging-form-editor
    .judging-preview-question.judging-question-type-numeric,
    .judging-form-editor
    .judging-preview-question.judging-question-type-stars {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "header"
            "response"
            "description";
    }

        .judging-preview-question.judging-question-type-numeric
        .judging-preview-question-title,
        .judging-preview-question.judging-question-type-stars
        .judging-preview-question-title,
        .judging-form-editor
        .judging-preview-question.judging-question-type-numeric
        .judging-preview-question-header,
        .judging-form-editor
        .judging-preview-question.judging-question-type-stars
        .judging-preview-question-header {
            grid-area: header;
        }

        .judging-preview-question.judging-question-type-numeric
        .judging-preview-response,
        .judging-preview-question.judging-question-type-stars
        .judging-preview-response {
            grid-area: response;
            margin-top: 12px;
            padding-right: 0;
            justify-content: flex-start;
        }

        .judging-preview-question.judging-question-type-numeric
        .judging-preview-question-description,
        .judging-preview-question.judging-question-type-stars
        .judging-preview-question-description {
            grid-area: description;
            padding-right: 0;
        }
}


/* Recursive Study Material folders and embedded video pages */
.study-material-folder-list {
    margin-bottom: 1rem;
}

.study-video-title {
    margin: 1.25rem 0 0.9rem;
}

.study-material-breadcrumbs {
    margin: 0.5rem 0 1rem;
    color: #5d6570;
    font-size: 0.95rem;
}

.study-material-breadcrumbs a {
    color: inherit;
}

/* The global content-panel link rule underlines every anchor; Study Material
   uses card and icon links, so keep all of its links unadorned in every state. */
.study-material-page a,
.study-material-page a:link,
.study-material-page a:visited,
.study-material-page a:hover,
.study-material-page a:focus,
.study-material-page a:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.study-video-frame {
    position: relative;
    width: 75%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    overflow: hidden;
    background: #111;
    border-radius: 0.6rem;
}

.study-video-frame iframe,
.study-video-native {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.study-video-native {
    width: 75%;
    height: auto;
    margin: 0 auto;
    max-height: 75vh;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 0.6rem;
}

.study-video-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.study-video-channel {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-align: left;
    font-weight: 600;
}

.study-video-channel-icon {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.study-video-channel-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.study-video-channel a {
    color: inherit;
}

.study-video-external {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.study-video-social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.study-video-social a {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.study-video-social svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {
    .study-video-details {
        align-items: flex-start;
    }

    .study-video-frame {
        min-height: 200px;
    }
}

.study-video-social .social-icon-facebook path,
.study-video-social .social-icon-tiktok path,
.study-video-social .social-icon-x path {
    fill: currentColor;
    stroke: none;
}


/* Interactive Study links use button/card styling without browser underlines. */
.bible-bowl-page a,
.bible-bowl-page a:link,
.bible-bowl-page a:visited,
.bible-bowl-page a:hover,
.bible-bowl-page a:focus,
.bible-bowl-page a:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
}
