/* ============================================================
   referenceStyle.css

   Shared styling for the Round Dance Reference Library:
       • Positions
       • Movements
       • Actions
       • Directions
       • Styling

   Loaded after roundDanceStyle.css.
============================================================ */

/* ============================================================
   SHARED REFERENCE PAGE STRUCTURE
============================================================ */

.referenceContentsNote {
    color: #666;
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
    margin: 0 auto 1rem;
    max-width: 36rem;
    text-align: center;
}

.referenceIntroduction {
    background-color: rgba(255,255,255,0.55);
    border-bottom: 1.5px solid #b8b8b8;
    border-top: 1.5px solid #b8b8b8;
    font-style: italic;
    line-height: 1.4;
    margin: 1.25rem auto 2rem;
    padding: 0.75rem 1.5rem;
    text-align: left;
    width: 82%;
}

#referenceContents {
    background: rgba(255,255,255,0.55);
    border: 1px dashed #cfcfcf;
    border-radius: 0.75rem;
    margin: 2.25rem 0 2.5rem;
    padding: 0.9rem 1.2rem 1rem;
}

.referenceContentsList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.referenceContentsGroups {
    display: grid;
    gap: 0.35rem;
}

.referenceContentsGroup {
    margin: 0;
    padding: 0;
}

.referenceContentsLetter {
    color: #666;
    font-family: 'Oranienbaum', serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1;
    margin: 0 0 0.15rem;
}

.referenceContentsGroups .referenceContentsList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.1rem;
    margin: 0 0 0.3rem;
}

    .referenceContentsGroups .referenceContentsList li {
        line-height: 1.2;
    }

.referenceContentsUnavailable {
    color: #aaa;
}

.referenceContentsList a:link,
.referenceContentsList a:visited {
    color: #2f5d9f;
    text-decoration: none;
}

.referenceContentsList a:hover,
.referenceContentsList a:focus {
    color: black;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

.referenceEntry {
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(170,170,170,0.42);
    border-radius: 1rem;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.28), 0 0.35rem 1rem rgba(0,0,0,0.055);
    margin: 2.5rem 0 3rem;
    padding: 0.9rem 1.25rem 1.4rem;
}

.referenceGlobalSection {
    background: rgba(255,255,255,0.5);
    border: 1px dashed #cfcfcf;
    border-radius: 0.75rem;
    margin: 0 0 2.5rem;
    padding: 0.9rem 1.2rem 1rem;
}

.referenceGlobalSectionTitle {
    margin-top: 0;
}

.referenceEntryHeader {
    align-items: baseline;
    border-bottom: 1px solid #d8d8d8;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.35rem;
}

.referenceEntryTitle {
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.referenceAbbreviation {
    background: rgba(115,131,115,0.12);
    border: 1px solid rgba(115,131,115,0.28);
    border-radius: 999px;
    color: #59675b;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    padding: 0.18rem 0.55rem;
}

.referenceEntryTop {
    align-items: flex-start;
    display: flex;
    gap: 1.5rem;
}

.referenceHeroPhotograph {
    flex: 0 0 12rem;
    margin: 0;
    text-align: center;
    width: 12rem;
}

.referenceAnimation {
    flex: 0 0 12rem;
    margin: 0;
    text-align: center;
    width: 12rem;
}

.referenceAnimationFrame {
    align-items: stretch;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(160,159,157,0.55);
    border-radius: 0.9rem;
    box-shadow: 0 0 8px 4px #a09f9d;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 12rem;
    overflow: hidden;
    position: relative;
}

.referenceAnimationPlaceholder {
    color: #777;
    display: flex;
    flex-direction: column;
    font-family: Georgia, "Times New Roman", Times, serif;
    gap: 0.2rem;
    text-align: center;
}

    .referenceAnimationPlaceholder span {
        font-size: 1.05rem;
        font-style: italic;
    }

    .referenceAnimationPlaceholder small {
        font-size: 0.78rem;
    }

.referenceAnimation figcaption {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.35;
    margin-top: 0.55rem;
}

.movementAnimationControls {
    border-bottom: 1px solid rgba(160,160,160,0.35);
    padding: 0.75rem 0.75rem 0.6rem;
    width: 100%;
}

.movementAnimationControlGroup {
    border: none;
    margin: 0 0 0.65rem;
    padding: 0;
}

    .movementAnimationControlGroup:last-child {
        margin-bottom: 0;
    }

    .movementAnimationControlGroup legend {
        color: #555;
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 0.82rem;
        font-style: italic;
        margin-bottom: 0.3rem;
        padding: 0;
        text-align: left;
    }

.movementAnimationChoices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.movementAnimationChoice {
    cursor: pointer;
    display: inline-flex;
}

    .movementAnimationChoice input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .movementAnimationChoice span {
        background: rgb(250,251,251);
        border: 1.5px solid #ccc;
        border-radius: 0.5rem;
        color: #555;
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 0.82rem;
        line-height: 1;
        padding: 0.3rem 0.55rem;
    }

    .movementAnimationChoice input:checked + span {
        background: rgba(115,131,115,0.16);
        border-color: #738373;
        color: #354638;
    }

    .movementAnimationChoice input:focus-visible + span {
        outline: 2px solid #245fbc;
        outline-offset: 2px;
    }

.movementAnimationStage {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-height: 12rem;
    width: 100%;
}

.movementAnimationSvg {
    display: block;
    height: auto;
    max-height: 14rem;
    width: 100%;
}

.movementAnimationFloorLine {
    stroke: #c8c8c8;
    stroke-width: 2;
}

.movementAnimationFoot ellipse {
    fill: rgba(115,131,115,0.12);
    stroke: #59675b;
    stroke-width: 2;
}

.movementAnimationFoot text {
    fill: #59675b;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 13px;
    text-anchor: middle;
}

.movementAnimationButtons {
    border-top: 1px solid rgba(160,160,160,0.35);
    padding: 0.65rem;
    text-align: center;
    width: 100%;
}

.movementAnimationPlayButton {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}



.referenceImageFrame {
    border-radius: 0.9rem;
    box-shadow: 0 0 8px 4px #a09f9d;
    overflow: hidden;
}

    .referenceImageFrame img {
        display: block;
        height: auto;
        width: 100%;
    }

.referenceEntryText {
    flex: 1 1 auto;
    min-width: 0;
}

.referenceDescription,
.referenceCommonMistakesIntroduction {
    color: #555;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.45;
}

.referenceCommonMistakesIntroduction {
    margin-top: 0;
}

.referenceDescription p {
    margin: 0;
}

    .referenceDescription p + p {
        margin-top: 0.8rem;
    }

.referenceArticleSection {
    margin-top: 1.35rem;
}

.referenceArticleSectionTitle {
    color: #4e6150;
    font-family: 'Oranienbaum', serif;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 1rem;
    margin-right: 0;
    margin-bottom: 0.55rem;
    margin-left: 0;
    text-shadow: 1px 1px 1px white;
}

.referenceSectionContent {
    line-height: 1.5;
}

    .referenceSectionContent p {
        margin: 0 0 0.7rem;
    }

        .referenceSectionContent p:last-child {
            margin-bottom: 0;
        }

    .referenceSectionContent ul {
        margin: 0.6rem 0 0;
        padding-left: 1.35rem;
    }

    .referenceSectionContent li {
        margin-bottom: 0.55rem;
    }

        .referenceSectionContent li:last-child {
            margin-bottom: 0;
        }

.referenceConnectionList {
    list-style: none;
    padding-left: 0 !important;
}

    .referenceConnectionList li {
        border-left: 3px solid rgba(115,131,115,0.35);
        padding-left: 0.75rem;
    }

.referenceGallery {
    border-top: 1px solid #d8d8d8;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.referencePhotographs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: flex-start;
}

.referencePhotograph {
    flex: 0 1 10rem;
    margin: 0;
    max-width: 10rem;
    text-align: center;
    width: 100%;
}

    .referenceHeroPhotograph figcaption,
    .referencePhotograph figcaption {
        color: #666;
        font-size: 0.9rem;
        font-style: italic;
        line-height: 1.35;
        margin-top: 0.55rem;
    }

/* ============================================================
   COMMON MISTAKES
============================================================ */

.referenceCommonMistakes .referencePhotographs {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 13rem));
    justify-content: start;
}

.referenceMistakePhotograph {
    max-width: 9rem;
}

.referenceMistakeImageFrame {
    position: relative;
}

.referenceMistakeBanner {
    background: white;
    border-bottom: 2px solid #9f2f2f;
    color: #9f2f2f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    padding: 0.35rem 0.45rem;
    text-align: center;
    text-transform: uppercase;
}

.referenceNotes {
    border-top: 1px solid #d8d8d8;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

    .referenceNotes ul {
        margin-bottom: 0;
    }

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

    .referenceEntryTop {
        display: block;
    }

    .referenceHeroPhotograph {
        margin: 0 auto 1.25rem;
        width: 11rem;
    }

    .referencePhotographs {
        justify-content: center;
    }

    .referenceAnimation {
        margin: 0 auto 1.25rem;
        width: 11rem;
    }
}
