body {
    background-color: #F7F4F1; /* warm sand (theme A, Nov 24 2026) */
    /*background-image: url("../Content/Images/bg_crowd.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;*/
}

section#main {
    background-color: #ffffff;
    border: 1px solid #aaaaaa;
    box-shadow: rgba(227,227,227,0.3) 5px 5px;
    margin-top: 40px;
    padding: 15px;
}

/* A section's header (the user's pick, Oct 30 2026): the title in cocoa after its Bootstrap icon in a cocoa circle, over a
   red rule (as under the header photo), and the subtitle under it as ordinary text. One-line subtitles are muted
   (text-body-secondary in the markup); the long ones keep the body color. The margin leaves 16px between the header
   and its article (article.section-article's -20px top margin). */
header.section-header {
    margin-bottom: 36px;
}

/* A section that follows another on the same step: more space above it, as the header no longer has a bar. */
article ~ header.section-header,
article + div > header.section-header {
    margin-top: 40px;
}

header.section-header > div.row:first-child {
    color: #45382B; /* cocoa, the logo's brown */
    border-bottom: 3px solid #E60012; /* Lotte red */
    padding: 0 0 6px 0;
}

/* A flex box, so the icon stays beside a title that wraps. A title made of several pieces (the code box's "<type> Code")
   must be wrapped in one span: flex drops the spaces between separate pieces. */
header.section-header > div.row:first-child .h4 {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-weight: 700;
}

header.section-header > div.row:first-child .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.6rem;
    border-radius: 50%;
    background-color: #45382B;
    color: #ffffff;
    font-size: 1.1rem;
}

header.section-header > div.row:nth-child(2) {
    padding: 10px 0 0 0;
}

header.section-header > div.row:nth-child(2) .h6 {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

/* A note that must not be missed (a committee's shift requirement, above its grid): a light box. */
.section-note {
    display: block;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bs-tertiary-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

/* The first step's commitment and perks: one icon per item, in cocoa. */
.volunteer-perks {
    margin: 1rem 0 0 0;
    padding: 0;
    list-style: none;
}

.volunteer-perks > li {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.volunteer-perks > li > .bi {
    flex-shrink: 0;
    color: #45382B;
    font-size: 1.1rem;
}

/* The footer, below the white box (MasterPage.master). */
footer.container {
    margin-bottom: 30px;
}

footer > div.row {
    font-size: 0.8em;
    padding: 5px 0 5px 0;
}

article.section-article {
    margin: -20px 0 15px 0;
}

div.alert {
    padding: 5px;   
}

/* The country code beside a phone number, in one input group: wide enough for "United States +1", and a long
   country name doesn't squeeze the number. */
.phone-input .input-group > .phone-country {
    flex: 0 0 auto;
    width: 13rem;
    max-width: 50%;
}

/* At phone width the closed dropdown shows only its dial code, leaving the number more room. An option's text can't be
   partly hidden, so the dropdown's own text is made transparent and the code drawn over it (.phone-dial-code, set by
   Default.aspx.js, which adds has-dial-code: without the script the dropdown shows its full text). Tapping it still
   opens the list with the countries' names. */
.phone-field {
    position: relative;
}

.phone-dial-code {
    display: none;
}

@media (max-width: 575.98px) {
    .phone-input .input-group > .phone-country {
        width: 6rem;
    }

    .phone-field.has-dial-code .phone-country {
        color: transparent;
    }

    .phone-field.has-dial-code .phone-country option {
        color: var(--bs-body-color);
    }

    .phone-field.has-dial-code .phone-dial-code {
        display: block;
        position: absolute;
        top: calc(.375rem + var(--bs-border-width));
        left: calc(.75rem + var(--bs-border-width));
        pointer-events: none;
        z-index: 6;
    }
}

.required {
    font-weight: 700;
}

.required::before {
    content: "* "
}

nav {
    margin: 30px 0 30px 0;
}

nav > div.row:first-child {
    background-color: rgba(238, 238, 238, 0.6);
    padding: 5px 0 5px 0;
}

header {
    margin-bottom: 30px;
}

section {
    margin: 15px 0 15px 0;
}

/* A validator's message (Default.aspx, CommitteeShiftSelection.ascx and their code-behind): a small red tag with an
   icon under the field, in place of a full-width alert. */
.field-error {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.875em;
    color: var(--bs-danger-text-emphasis);
    background-color: var(--bs-danger-bg-subtle);
    border: var(--bs-border-width) solid var(--bs-danger-border-subtle);
    border-radius: var(--bs-border-radius);
}

.field-error::before {
    content: "\f622"; /* Bootstrap Icons x-circle-fill */
    font-family: "bootstrap-icons";
    line-height: 1;
}

/* Outline buttons in cocoa, filled when chosen: the choice pills and the polo sizes. */
.btn-outline-navy {
    --bs-btn-color: #45382B;
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #45382B;
    --bs-btn-hover-color: #45382B;
    --bs-btn-hover-bg: rgba(69, 56, 43, 0.08);
    --bs-btn-hover-border-color: #45382B;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #45382B;
    --bs-btn-active-border-color: #45382B;
    --bs-btn-focus-shadow-rgb: 69, 56, 43;
}

/* A RadioButtonList with RepeatLayout="UnorderedList" and CssClass="choice-pills": the choices as separate pill buttons
   that wrap. Default.aspx gives each radio .btn-check and its label the button classes. */
.choice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The Uniform step (Default.aspx): a title over each row of choices, and the polo sizes as buttons of one width. */
.uniform-title {
    color: #45382B;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.size-button {
    min-width: 3.5rem;
}

/* The first step's application types (Default.aspx, lstApplicationTypes) as cards: one per line, three across from
   992px. The card's text is set in Default.aspx.cs (GetApplicationTypeHtml); the whole card selects its radio. */
.type-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 992px) {
    .type-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.type-cards > li {
    position: relative;
    border: 1px solid var(--bs-border-color);
    border-top: 4px solid #45382B;
    border-radius: var(--bs-border-radius);
    padding: 1rem 1rem 0.5rem 2.75rem;
}

.type-cards > li:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(69, 56, 43, 0.15);
}

.type-cards > li:has(> input:checked) {
    border-color: #45382B;
    background-color: rgba(69, 56, 43, 0.05);
    box-shadow: 0 0 0 2px #45382B;
}

.type-cards .form-check-input {
    position: absolute;
    left: 1rem;
    top: 1.4rem;
    margin: 0;
}

.type-cards label {
    display: block;
    cursor: pointer;
}

.type-cards label::after {
    content: "";
    position: absolute;
    inset: 0;
}

.type-card-title {
    display: block;
    color: #45382B;
    font-size: 1.25rem;
    font-weight: 700;
}

.type-card-text {
    display: block;
    margin-top: 0.5rem;
}

.type-cards ul {
    margin: 0.25rem 0 0.5rem 0;
    padding-left: 1.25rem;
}

/* Checked checkboxes and radios in cocoa (Bootstrap's is blue). */
.form-check-input:checked {
    background-color: #45382B;
    border-color: #45382B;
}

mark {
    background-color: rgba(252, 255, 0, 0.5);
}

.header-left {
    text-align: center;
}

.header-right {
    margin-top: 15px;
    text-align: center;
}

/* Small devices (landscape phones, 576px and up)  */
@media (min-width: 576px) {
    .header-left {
        text-align: center;
    }

    .header-right {
        margin-top: 15px;
        text-align: center;
    }
}

.shift-disabled {
    display:none;
}

/* The shift grid (CommitteeShiftSelection.ascx.cs): a card per date with a cocoa header and a list of its shifts. */
.shift-day > .card-header {
    background-color: #45382B;
    color: #ffffff;
    text-align: center;
    line-height: 1.25;
    padding: 0.4rem 0.5rem;
}

.shift-day > .card-header > strong {
    display: block;
}

/* A chosen shift: tinted, with a red edge. */
.shift-day .list-group-item:has(input:checked) {
    background-color: rgba(69, 56, 43, 0.08);
    box-shadow: inset 4px 0 0 #E60012;
}

/* A click anywhere in a shift's item checks its box: the checkbox's label is stretched over the item (list-group-item is
   position: relative). */
.shift-day .list-group-item {
    cursor: pointer;
}

.shift-day .list-group-item .form-check label::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* A committee whose shifts are all full (CommitteeShiftSelection.ascx.cs, GetFullCommitteeNextStep), in place of the
   requirement note above its grid: a red callout (OccuNet's is orange, the Nanea Cup's gold; brought over from OccuNet on Nov 13 2026). */
.committee-full {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
    background-color: rgba(230, 0, 18, 0.07);
    border-left: 4px solid #E60012;
    border-radius: var(--bs-border-radius);
}

.committee-full > .bi {
    color: #C4000F; /* the darker Lotte red, readable on the tint */
    font-size: 1.15rem;
    line-height: 1.3;
}

/* A full shift: Bootstrap fades a disabled checkbox's label to half opacity, too light to read the name; the label is
   shown in the secondary text color instead (the same as the time), and the checkbox stays faded. */
.shift-day .list-group-item.shift-full {
    cursor: default;
}

.shift-day .shift-full .form-check-label {
    opacity: 1;
    color: var(--bs-secondary-color);
}

/* Its "Full" pill (the user's pick of four mockups for OccuNet, Nov 13 2026): grey, so it doesn't read as chosen (the
   red edge) or as an error, at the right of the item, centered; positioned on the item (list-group-item is position:
   relative), with room kept for it so a long shift name doesn't run under it. */
.shift-day .shift-full .form-check {
    padding-right: 3.25rem;
}

.shift-full-pill {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    padding: 0.2em 0.55em;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #495057;
    background-color: #eceef1;
    border-radius: 50rem;
}

/* The shift's time, under its name. */
.shift-time {
    display: block;
    font-size: 0.8em;
    color: var(--bs-secondary-color);
}

/* A shift that counts as more than one toward the minimum: "Two shifts" on its own line under the time, in cocoa
   (OccuNet's, Nov 14 2026, in this event's color); grey like the rest of a full shift. */
.shift-weight {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
    color: #45382B;
}

.shift-day .shift-full .shift-weight {
    font-weight: 400;
    color: var(--bs-secondary-color);
}

/* The header (the Nanea Cup's, OccuNet's layout; the photo and theme A, the user's picks of Nov 24 2026): the Plantation
   Course at Kapalua from golfatkapalua.com (since the evening of Nov 24 2026, when the event moved there; before, the
   Hoakalei course from lpga.com, and before that a lagoon photo), flush with the top and sides of the page's white box (section#main's
   15px padding cancelled by the -15px margins in MasterPage.master), with a Lotte red rule under it and, over a cocoa
   gradient at its foot, the white Lotte Championship logo on the left, then a thin divider and the title on the right.
   On phones the two are stacked and centered. */
.event-header {
    position: relative;
    border-bottom: 4px solid #E60012;
}

/* 350px tall at every width, filled. header.jpg (1600x1066, the Plantation Course: a fairway, the ocean and Molokai) is
   cropped high, so the sky, the sea and the tree line show above the band and the band sits over the trees and fairway. */
.event-header-photo {
    display: block;
    width: 100%;
    max-width: none;
    height: 350px;
    object-fit: cover;
    object-position: center 30%;
}

.event-header-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 90px 28px 18px 28px;
    background: linear-gradient(to top, rgba(52, 42, 32, 0.92) 0%, rgba(52, 42, 32, 0.75) 55%, rgba(52, 42, 32, 0) 100%);
}

/* The white Lotte Championship logo (Content/Images/logo-white.png, 418x143; its "Presented by Hoakalei" line removed
   Nov 24 2026, when the 2027 event moved to Kapalua), 250px wide. */
.event-header .event-logo {
    flex-shrink: 0;
    width: 250px;
    height: auto;
}

/* The title block, with the thin divider on its left edge. */
.event-header .event-title {
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    padding-left: 20px;
}

@media (max-width: 767.98px) {
    .event-header-text {
        flex-direction: column;
        gap: 10px;
        padding: 60px 16px 14px 16px;
        text-align: center;
    }

    .event-header .event-logo {
        width: 200px;
    }

    /* Stacked: the divider becomes a short rule above the title. */
    .event-header .event-title {
        border-left: 0;
        padding-left: 0;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.45);
    }
}

.event-header .event-subtitle {
    color: #F0C9A8; /* light sand, to read on cocoa */
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.event-header .event-name {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .event-header .event-name {
        font-size: 1.15rem;
    }
}

.event-header .event-dates {
    color: rgba(255, 255, 255, 0.85);
}

/* The buttons (btn-dark) in cocoa, through Bootstrap 5's button variables. */
.btn-dark {
    --bs-btn-bg: #45382B;
    --bs-btn-border-color: #45382B;
    --bs-btn-hover-bg: #3A2F24;
    --bs-btn-hover-border-color: #3A2F24;
    --bs-btn-active-bg: #2F261D;
    --bs-btn-active-border-color: #2F261D;
    --bs-btn-disabled-bg: #45382B;
    --bs-btn-disabled-border-color: #45382B;
}

/* The Confirm step (Default.aspx): the details in titled groups on the left, the summary card on the right. */
.confirm-group {
    color: #45382B;
    font-weight: 700;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

.confirm-group .bi {
    margin-right: 0.4rem;
}

.confirm-summary {
    border-top: 4px solid #E60012;
}

.confirm-total {
    color: #C4000F;
}

/* The completion page (Complete.aspx): the round icon over the heading, the heading and the application number. */
.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 48px;
}

.result-title {
    color: #45382B;
}

.result-number {
    color: #C4000F;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .header-left {
        text-align: center;
    }

    .header-right {
        margin-top: 15px;
        text-align: center;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .header-left {
        text-align: left;
    }

    .header-right {
        text-align: right;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .header-left {
        text-align: left;
    }

    .header-right {
        text-align: right;
    }

    .shift-disabled {
        display: block;
        opacity: 0.2;
    }
}
/* Waivers as text (App_Controls/WaiverText.ascx, Nov 30 2026; until then the form embedded the PDFs): the title with the
   "Last edited" date and the Printable PDF link (beside it, under it on phones), the text in the Release for Minors' box
   style, a little taller. Phones hide scrollbars, so a fade over the last lines and the note under the box say there's
   more; Default.aspx.js (SetUpWaiverText) marks the box "at-end" once its last line is in view, or when the text fits.
   The fade doesn't block taps or scrolling. */
.waiver-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    column-gap: 1rem;
    row-gap: .25rem;
}

.waiver-box {
    position: relative;
}

.waiver-text {
    max-height: 360px;
    overflow-y: auto;
    font-size: .95rem;
    line-height: 1.45;
}

    .waiver-text:focus-visible {
        outline: 2px solid rgb(69, 56, 43); /* cocoa, as the buttons' focus ring */
        outline-offset: 2px;
    }

    .waiver-text ul {
        padding-left: 1.25rem;
        margin-bottom: .75rem;
    }

    .waiver-text li {
        margin-bottom: .4rem;
    }

    .waiver-text p {
        margin-bottom: .5rem;
    }

    .waiver-text > :last-child {
        margin-bottom: 0;
    }

    /* Volunteer_Waiver.html's opening lines. */
    .waiver-text .intro {
        font-weight: bold;
        margin-bottom: .25rem;
    }

.waiver-box::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 1px;
    height: 4.5rem;
    pointer-events: none;
    background: linear-gradient(rgba(var(--bs-tertiary-bg-rgb), 0), var(--bs-tertiary-bg) 85%);
    transition: opacity .2s;
}

.waiver-box.at-end::after {
    opacity: 0;
}

.waiver-note {
    min-height: 1.5em;
}

    .waiver-note .waiver-end {
        display: none;
    }

.waiver-box.at-end + .waiver-note .waiver-more {
    display: none;
}

/* Text that fits needs no note. */
.waiver-box.fits + .waiver-note {
    display: none;
}

.waiver-box.at-end + .waiver-note .waiver-end {
    display: inline;
}
