/* Reference Section Pattern */
.entry-content .wp-block-group.is-style-reference-section {
    padding: 50px 14%;
    margin: 0 auto;
    width: 100%;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Critical fix for container line heights */
.entry-content .wp-block-group.is-style-reference-section .wp-block-list {
    line-height: var(--font-lh-reference);
    display: inline;
}

.entry-content .wp-block-group.is-style-reference-section .wp-block-group {
    line-height: var(--font-lh-reference);
    max-width: 1460px;
    margin: 0 auto;
}

/* Reference List Styling */
.entry-content .wp-block-group.is-style-reference-section .reference-list {
    margin: 0 0 20px 0;
    display: block;
    font-size: var(--font-size-reference-title);
    line-height: var(--font-lh-reference-title);
    text-transform: uppercase;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.entry-content .wp-block-group.is-style-reference-section .inline-references {
    counter-reset: reference-counter;
    margin: 0;
    padding: 0;
    display: inline;
    list-style: none;
    font-size: var(--font-size-reference);
    line-height: var(--font-lh-reference);
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.entry-content .wp-block-group.is-style-reference-section .inline-references li {
    display: inline;
    font-size: var(--font-size-reference);
    line-height: var(--font-lh-reference);
    margin-right: 3px;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none !important;
}

/* Link styling */
.entry-content .wp-block-group.is-style-reference-section .inline-references li a {
    text-decoration: none;
    color: var(--color-yellow);
    font-size: var(--font-size-reference);
    line-height: var(--font-lh-reference);
}

/* Prevent phone number detection on all text content */
.entry-content .wp-block-group.is-style-reference-section * {
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Additional protection for text content */
.entry-content .wp-block-group.is-style-reference-section p,
.entry-content .wp-block-group.is-style-reference-section span,
.entry-content .wp-block-group.is-style-reference-section div {
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Reference numbers */
.entry-content .wp-block-group.is-style-reference-section .inline-references li::before {
    counter-increment: reference-counter;
    content: counter(reference-counter) ".";
    font-weight: 700;
    margin: 0 0.25em 0 0;
}

/* Dark Styles */
.entry-content .wp-block-group.is-style-reference-section.dark {
    color: white;
}

@media screen and (max-width: 1599px) {
    .entry-content .wp-block-group.is-style-reference-section {
        padding: 100px 10% 0;
    }
}

@media screen and (max-width: 1365px) {
    .entry-content .wp-block-group.is-style-reference-section {
        padding: 60px 10% 0;
    }
}

@media screen and (max-width: 767px) {
    .entry-content .wp-block-group.is-style-reference-section {
        padding: 40px 5% 0;
    }
}