* {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #462412;
}
.lora-enabled {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: italic;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.barcelona-bg {
    background: url("/assets/img/page-bg-1000.jpeg") no-repeat center right;
    background-size: cover;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 33%;
}
.main-content {
    margin-left: 33%;
    padding-top: 100px;
}

h1,
h2 {
    font-weight: 700;
    font-size: 48px;
    line-height: normal;
}

h3 {
    font-weight: 500;
    color: #a02323;
    font-size: 48px;
    line-height: 61px;
    font-style: italic;
    display: inline-flex;
    align-items: center;
}
.padded-content {
    padding: 0 90px 100px 90px;
}
/* Balance line breaks on the guide-list hero heading (progressive enhancement) */
.padded-content h1 {
    text-wrap: balance;
}

.avatar {
    border-radius: 50%;
    width: 69px;
    height: 69px;
    overflow: hidden;
    object-fit: cover;
    display: block;
    background-size: 65px;
    background-repeat: no-repeat;
    background-position: center center;
}
.avatar.no-avatar {
    border: 1px solid #d1b9ac;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-content: center;
    background-size: 50px 50px !important;
    background-position: 9px 4px !important;
}

.content {
    min-height: 100vh;
}
.guide-list {
    padding: 0 90px 0 90px;
}

.flags-container {
    display: flex;
}
.flags-detail-container {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 20px;
    gap: 4px;
    max-width: 640px; /* match the description / focuses container width */
    margin: 20px auto;
}
.detail-focuses {
    font-size: 20px;
    color: #462412;
    line-height: 28px;
}
.button-container {
    display: flex;
}
.icon-flag {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d1b9ac;
    margin-left: -10px;
}
.icon-detail-flag {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d1b9ac;
}
.detail-flag {
    margin: 0;
    color: #462412;
    font-style: italic;
    margin-right: 16px;
}
.guide-list-item {
    background: url("/assets/img/separator.svg") repeat-x bottom left;
    padding: 10px 10px 30px 0;
    margin-bottom: 30px;
    max-width: 700px;
}
.list-focuses {
    font-family: "Lora", serif;
    font-style: italic;
    max-width: 600px;
    margin-bottom: 20px;
}
.btn.btn-primary {
    background-color: #a02323;
    border-color: #a02323;
    font-weight: 600;
}
.btn.btn-primary.btn-outline-primary {
    background-color: #fcfafa;
    color: #a02323;
}

.detail-avatar {
    margin: 0 auto 28px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    overflow: hidden;
    object-fit: cover;
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.detail-avatar.no-avatar {
    border: 1px solid #d1b9ac;
    background-size: 80px 80px !important;
    background-position: center 20px !important;
}

.registration-number {
    color: #d1b9ac;
    font-size: 20px;
    line-height: normal;
}
.dropdown-toggle {
    cursor: pointer;
}

.dropdown-languages > button {
    border: none;
    background: transparent;
    color: #a02323;
    font-weight: 600;
    font-size: 48px;
    font-style: italic;
}
.dropdown-languages .dropdown-item {
    color: #a02323;
}
.dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
}
.select-icon-flag {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid black;
}
.underline-text {
    text-decoration: underline;
}

#detailModal .modal-dialog {
    max-width: 800px;
}

#detailModal .modal-content {
    background-color: #fcfafa;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
    min-height: 763px; /* As per Figma design; grows if content is taller */
    margin: auto; /* Center the modal vertically if height is less than viewport */
}

#detailModal .modal-body {
    padding-top: 60px; /* Adjust top padding as per Figma's 'top' group */
    padding-bottom: 50px; /* Keep existing bottom padding or adjust if needed */
}

.call-to-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 22px auto 0;
    max-width: 640px; /* match the description text container width */
}

.call-to-actions .btn {
    flex: 1 1 auto; /* size to content (longer label = wider) and share extra space */
    white-space: nowrap; /* keep the label on one line — widen the button instead */
}

/* Guide detail — Reviews as a collapsible accordion (closed by default).
   The panel content stays in the DOM (Bootstrap only animates height) so all
   review text remains crawlable; the page just starts visually simpler. */
.reviews-accordion {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 20px auto 0;
    border-top: 1px solid #ece3dd;
    border-bottom: 1px solid #ece3dd;
}
.reviews-toggle {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: none;
    border: none;
    padding: 18px 2px;
    color: #462412;
    font-weight: 700;
    font-size: 18px;
    text-align: left;
    cursor: pointer;
}
.reviews-toggle:hover {
    color: #a02323;
}
.reviews-toggle-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.reviews-toggle .tab-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
    background: #a02323;
    border-radius: 999px;
    text-align: center;
}
.reviews-chevron {
    flex: 0 0 auto;
    color: #8a7a70;
    transition: transform 0.2s ease;
}
.reviews-toggle:not(.collapsed) .reviews-chevron {
    transform: rotate(180deg);
}
/* Inside the accordion the reviews block no longer needs its own border. */
.reviews-accordion .guide-reviews {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 22px; /* breathing room above the accordion's bottom line */
}

/* Responsive Breakpoints (Largest to Smallest) */

/* XXL - Extra extra large devices (large desktops, less than 1400px) */
@media (max-width: 1399.98px) {
    .padded-content {
        padding: 85px;
    }
    .locale-switcher {
        padding-left: 85px;
        padding-right: 85px;
    }
    .guide-list {
        padding: 0 85px;
    }
    .guide-list-footer {
        padding: 0 85px;
        max-width: calc(650px + 170px);
    }
    .pagination-container {
        padding: 0 85px;
        max-width: calc(650px + 170px);
    }
}

/* Custom large desktop - 1200px */
@media (max-width: 1200px) {
    h1,
    h2 {
        font-size: 32px;
        line-height: 40px;
    }
    h3 {
        font-size: 32px;
        line-height: 40px;
    }
    .dropdown-languages > button {
        font-size: 32px;
        line-height: 40px;
    }
}

/* XL - Extra large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .padded-content {
        padding: 75px;
    }
    .locale-switcher {
        padding-left: 75px;
        padding-right: 75px;
    }
    .guide-list {
        padding: 0 75px;
    }
    .guide-list-footer {
        padding: 0 75px;
        max-width: calc(650px + 150px);
    }
    .pagination-container {
        padding: 0 75px;
        max-width: calc(650px + 150px);
    }
}

/* LG - Large devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .guide-list-item .col-lg-2,
    .guide-list-item .col-sm-4 {
        margin-bottom: 0;
        padding: 0 !important; /* Remove all padding from avatar column */
    }
    .guide-list-item .col-lg-10,
    .guide-list-item .col-sm-8 {
        padding: 0 !important; /* Remove all padding from content column */
    }
    .guide-list-item .col-lg-2 .avatar {
        margin-right: 15px; /* Add custom margin to avatar */
    }
    .guide-list-item h4 {
        margin-bottom: 5px;
    }
    .flags-container {
        margin-top: 5px;
    }
    .button-container {
        margin-top: 10px;
    }
    .padded-content {
        padding: 60px;
    }
    .locale-switcher {
        padding-left: 60px;
        padding-right: 60px;
    }
    .guide-list {
        padding: 0 60px;
    }
    .guide-list-footer {
        padding: 0 60px;
        max-width: calc(650px + 120px);
    }
    .pagination-container {
        padding: 0 60px;
        max-width: calc(650px + 120px);
    }
}

@media (min-width: 992px) {
    .guide-list-item .col-lg-2 {
        padding-right: 0 !important; /* Remove padding from avatar column */
    }
    .guide-list-item .col-lg-10 {
        padding-left: 0 !important; /* Remove padding from content column */
        display: flex; /* Make content column a flex container */
        flex-direction: row; /* Explicitly set flex direction to row */
        align-items: center; /* Vertically align content */
        justify-content: space-between; /* Distribute space between text content and actions */
    }
    .guide-text-content {
        /* Ensure it takes its natural width, not pushing too much */
    }
    .flags-container {
        /* Ensure no conflicting margin here */
    }
    .guide-actions {
        /* Removed margin-left: auto; */
    }
    /* Adjust avatar spacing for desktop */
    .guide-list-item .col-lg-2 .avatar {
        margin-right: 15px; /* Add custom margin to avatar */
    }
}

/* In the 768–991px (sm) range the avatar lives in a 33%-wide Bootstrap column
   (col-sm-4), leaving a large gap before the guide text. Size that column to the
   avatar itself so the avatar→text spacing matches the other breakpoints (~15px).
   The largest (>=992px / lg) layout is intentionally left untouched. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .guide-list-item .col-sm-4 {
        flex: 0 0 auto;
        width: 84px;       /* 69px avatar + 15px gap (avatar's margin-right) */
        max-width: 84px;
        padding: 0 !important; /* drop the Bootstrap gutter so the avatar sits flush left */
    }
    .guide-list-item .col-sm-8 {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }
}

/* MD - Medium devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .guide-list-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }
    .guide-list-item .col-lg-2,
    .guide-list-item .col-sm-4 {
        flex: none;
        width: 80px; /* Match avatar size */
        margin-right: 15px; /* Maintain consistent spacing */
    }
    .guide-list-item .col-lg-10,
    .guide-list-item .col-sm-8 {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0; /* Ensure no extra padding */
    }
    .barcelona-bg {
        background: url("/assets/img/page-bg-1000.jpeg") no-repeat center;
        background-size: cover;
        width: 100%;
        height: 30vh;
        position: static;
    }
    .main-content {
        margin-left: 0;
        padding-top: 20px;
    }
    .button-container {
        flex-direction: row;
    }
    .flags-container {
        flex-direction: row;
        margin-left: 0;
    }
    .padded-content {
        padding: 20px;
    }
    .locale-switcher {
        padding-left: 20px;
        padding-right: 20px;
    }
    .guide-list {
        padding: 0 40px;
    }
    .guide-list-footer {
        padding: 0 40px;
        max-width: calc(650px + 80px);
    }
    .avatar,
    .detail-avatar {
        width: 80px;
        height: 80px;
    }
    .detail-avatar.no-avatar {
        background-size: 60px 60px !important;
        background-position: center 10px !important;
    }
    h1,
    h2,
    h3 {
        font-size: 30px;
        line-height: 38px;
        display: block; /* Make h3 stack vertically */
        text-align: left; /* Align h3 content to the left */
    }
    .dropdown-languages > button {
        font-size: 30px;
        line-height: 38px;
    }
    /* Adjustments for dropdown language selector */
    .main-content {
        padding-top: 10px;
    }
    .dropdown-languages {
        margin-top: 10px;
        margin-left: 0; /* Ensure no left margin */
        padding: 0; /* Remove all padding */
        text-align: left; /* Explicitly align to left */
    }

    .dropdown-languages .dropdown-toggle {
        padding: 5px 0;
    }

    .dropdown-menu {
        min-width: unset;
        text-align: left;
    }

    .dropdown-item {
        padding: 8px 15px;
        text-align: left;
    }

    /* Detail page adjustments — left-align the card content on phones/tablets */
    .modal-body {
        padding: 30px !important;
        text-align: left !important;
    }
    .detail-avatar {
        width: 120px;
        height: 120px;
        margin-left: 0;
    }
    .flags-detail-container {
        justify-content: flex-start;
    }
    .call-to-actions {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }
    .detail-focuses-box {
        margin-left: 0;
    }
}

/* Custom small desktop/large tablet - 760px */

/* SM - Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Adjustments for dropdown language selector */
    .main-content {
        padding-top: 10px;
    }
    .dropdown-languages {
        margin-top: 10px;
        margin-left: 0; /* Ensure no left margin */
        padding: 0; /* Remove all padding */
    }

    .dropdown-languages .dropdown-toggle {
        padding: 5px 0;
    }

    .dropdown-menu {
        min-width: unset;
        text-align: left;
    }

    .dropdown-item {
        padding: 8px 15px;
        text-align: left;
    }

    /* Adjustments for guide list items on very small screens */
    .guide-list-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 10px 0 30px 0;
        padding-left: 0 !important;
        max-width: 100%;
    }

    .guide-list-item > div:first-child {
        /* Avatar container */
        flex: none;
        width: 70px;
        margin-right: 20px;
    }

    .guide-list-item > div:last-child {
        /* Content container (name, description, flags, button) */
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0;
    }

    .guide-text-content {
        margin: 0;
        padding: 0;
    }

    .guide-list-item .guide-text-content h4 {
        margin-left: 0;
        padding-left: 0;
        text-align: left !important;
        font-size: 20px;
        margin-bottom: 5px;
    }

    .guide-list-item .guide-text-content p {
        margin-left: 0;
        padding-left: 0;
        text-align: left !important;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .guide-actions {
        align-self: flex-start;
        margin-left: 0;
        padding-left: 0;
    }

    .avatar {
        /* Mobile specific avatar size */
        width: 70px;
        height: 70px;
        background-size: cover;
    }

    .avatar.no-avatar {
        /* Mobile specific no-avatar size */
        width: 70px;
        height: 70px;
        background-size: 50px 50px !important;
        background-position: 9px 4px !important;
    }

    .flags-container {
        margin-left: 0;
    }

    .button-container {
        margin-right: 0;
    }

    .main-content {
        margin-left: 0;
    }
    .padded-content {
        padding: 10px;
    }
    .locale-switcher {
        padding-left: 10px;
        padding-right: 10px;
    }
    .guide-list {
        padding: 0 20px;
    }
    .guide-list-footer {
        padding: 0 20px;
        max-width: calc(650px + 40px);
    }
    .barcelona-bg {
        width: 100%;
        height: 200px;
        position: relative;
        background-position: center;
    }
    .list-focuses {
        margin: 0;
        padding-left: 0;
        text-align: left;
    }
    .guide-list-item {
        padding: 10px 0 30px 0;
        max-width: 100%;
    }
    .avatar,
    .detail-avatar {
        width: 50px;
        height: 50px;
        background-size: contain;
    }
    .detail-avatar.no-avatar {
        background-size: 50px 50px !important;
        background-position: center center !important;
    }
    .flags-detail-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        text-align: left;
    }
    .detail-flag {
        margin: 5px 16px 5px 0;
    }
    /* Left-align the profile card content on phones */
    .modal-body {
        text-align: left !important;
    }
    .detail-avatar {
        margin-left: 0;
    }
    /* Stack the action buttons full-width on phones */
    .call-to-actions {
        flex-direction: column;
    }
    .call-to-actions .btn {
        flex: 1 1 auto;
        width: 100%;
    }
    h1,
    h2,
    h3 {
        font-size: 28px;
        line-height: 36px;
    }
    .dropdown-languages > button {
        font-size: 28px;
    }
    /* Footer adjustments */
    .footer {
        text-align: center;
        padding: 20px;
    }
    /* Detail page adjustments */
    .modal-body {
        padding: 20px !important;
    }
    .detail-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    .detail-avatar.no-avatar {
        background-size: 60px 60px !important;
        background-position: center center !important;
    }
    .registration-number {
        font-size: 14px;
    }
    .flags-detail-container {
        margin-top: 10px;
    }
    .detail-focuses {
        margin-top: 10px;
        font-size: 0.9rem;
        text-align: left;
    }
}

/* Footer Styles */
.guide-list-footer {
    padding: 0 90px;
    max-width: calc(
        650px + 180px
    ); /* guide-list-item max-width + left/right padding */
    margin: 0;
}

.guide-list-footer a {
    color: #a02323;
    text-decoration: none;
}

.guide-list-footer a:hover {
    color: #a02323;
    text-decoration: underline;
}

/* Site-wide footer (rendered on every page via partials/foot.phtml) */
.site-footer {
    padding: 0 20px;
}
.site-footer a {
    color: #a02323;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin-bottom: 12px;
}
.footer-nav a {
    font-weight: 600;
    white-space: nowrap;
}

/* Pagination Styles */
.pagination-container {
    margin: 40px 0;
    padding: 0 90px;
    max-width: calc(
        650px + 180px
    ); /* guide-list-item max-width + left/right padding */
    margin-left: 0;
    margin-right: auto;
}

.pagination-nav .pagination {
    margin-bottom: 10px;
}

.pagination .page-link {
    color: #a02323;
    border-color: #d1b9ac;
    padding: 8px 12px;
}

.pagination .page-link:hover {
    color: #fcfafa;
    background-color: #a02323;
    border-color: #a02323;
}

.pagination .page-item.active .page-link {
    background-color: #a02323;
    border-color: #a02323;
    color: #fcfafa;
}

.pagination .page-item.disabled .page-link {
    color: #d1b9ac;
    background-color: #fcfafa;
    border-color: #d1b9ac;
}

.pagination-info {
    color: #462412;
    font-style: italic;
}

/* Responsive pagination */
@media (max-width: 767.98px) {
    .pagination-container {
        padding: 0 40px;
        margin: 20px 0;
        max-width: calc(650px + 80px);
    }

    .pagination .page-link {
        padding: 6px 10px;
        font-size: 14px;
    }

    .pagination-info {
        font-size: 12px;
    }
}

@media (max-width: 575.98px) {
    .pagination-container {
        padding: 0 20px;
        max-width: calc(650px + 40px);
    }

    .pagination .page-link {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Language landing-page editorial content (intro + FAQ) */
.language-content {
    padding-top: 60px;
    max-width: 900px;
    color: #462412;
}
.language-content h2 {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #462412;
}
.language-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 16px;
}
/* FAQ blocks — used on language, collection AND article pages, so NOT scoped
   to .language-content (otherwise article FAQs fall back to the hero h2/h3). */
.faq-heading {
    margin-top: 48px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    font-style: normal;
    color: #462412;
}
.faq-item {
    margin-bottom: 22px;
}
.faq-q {
    font-size: 19px;
    line-height: 1.4;
    font-style: normal;
    font-weight: 700;
    color: #462412;
    display: block;
    margin-bottom: 6px;
}
.faq-a {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Guide detail page — readable description block inside the profile card.
   The card itself uses the existing #detailModal styles (now rendered
   statically open, see detail.phtml) so the visual is unchanged. */
.guide-description {
    text-align: left;
    color: #462412;
    font-size: 17px;
    line-height: 1.7;
    max-width: 640px;
    margin: 28px auto 8px;
}
.guide-description p {
    margin-bottom: 14px;
}

/* Internal-linking block: browse collections by specialty */
.specialty-links {
    padding-top: 20px;
    padding-bottom: 50px;
}
.specialty-links h2 {
    font-size: 24px;
    line-height: 1.3;
    color: #462412;
    margin-bottom: 16px;
}
.specialty-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}
.specialty-link-list a {
    color: #a02323;
    text-decoration: underline;
    font-size: 16px;
}
.specialty-more {
    margin: 16px 0 0;
}
.specialty-more a {
    color: #a02323;
    font-weight: 600;
    text-decoration: none;
}

/* Locale switcher (translated-language links) */
.locale-switcher {
    text-align: center;
    /* Horizontal padding mirrors .padded-content so the locale row sits in the
       same container as body text (see responsive overrides at each breakpoint). */
    padding: 18px 90px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: center;
}
.locale-switcher .locale-link {
    color: #8a7a70;
    text-decoration: none;
    font-size: 14px;
}
.locale-switcher .locale-link:hover {
    color: #a02323;
}
.locale-switcher .locale-link.active {
    color: #462412;
    font-weight: 700;
    text-decoration: underline;
}

/* Reviews (UI mock — no backend yet) */
.guide-reviews {
    text-align: left;
    max-width: 640px;
    margin: 28px auto 0;
    border-top: 1px solid #ece3dd;
    padding-top: 22px;
}
.reviews-heading {
    font-size: 22px;
    color: #462412;
    margin-bottom: 12px;
}
.no-reviews {
    color: #8a7a70;
    font-style: italic;
    margin-bottom: 8px;
}
.review-card {
    border: 1px solid #ece3dd;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.review-stars {
    color: #e6b800;
    font-size: 18px;
    letter-spacing: 2px;
}
.review-text {
    color: #462412;
    margin: 6px 0 4px;
}
.review-author {
    color: #8a7a70;
    font-size: 14px;
    margin: 0;
}
.review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}
.review-rating-input {
    font-size: 26px;
    letter-spacing: 3px;
    color: #d8cfc8;
    cursor: pointer;
}
.review-rating-input .star {
    transition: color 0.1s ease;
}
.review-rating-input .star.active {
    color: #e6b800;
}
.review-input {
    width: 100%;
    border: 1px solid #d8cfc8;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: #462412;
    background: #fff;
}
.review-input:focus {
    outline: none;
    border-color: #a02323;
}
.review-form .btn {
    align-self: flex-start;
}
/* Submit button: smaller than the main contact CTAs (no Bootstrap p-3). */
.review-submit-btn {
    padding: 9px 22px;
    font-size: 14px;
    flex: 0 0 auto;
}
/* Button + moderation note on one row (note to the right) on desktop;
   wraps below the button on narrow screens. */
.review-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.review-form-note {
    font-size: 13px;
    color: #a99;
    margin: 0;
    flex: 1 1 200px;
}

/* Contact form (reuses .review-input / .review-form-note styling) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    max-width: 640px;
}
.contact-form .btn {
    align-self: flex-start;
}
/* Guide-authored bio (plain text, escaped + nl2br at render) */
.guide-bio {
    max-width: 640px; /* match .guide-description / .detail-focuses-box width */
    margin: 14px auto 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #ece3dd; /* same divider color as .reviews-accordion */
    text-align: left;
    line-height: 1.6;
}

/* "Is this you? Update your details" — low-key, must not compete with the CTAs */
.detail-update-link {
    font-size: 13px;
    margin: 6px 0 0;
}
.detail-update-link a {
    color: #8a7a70;
}

/* Join form: language / specialty checkbox grids */
.join-fieldset {
    border: 1px solid #e3d8d0;
    border-radius: 10px;
    padding: 10px 14px 14px;
    margin: 4px 0;
}
.join-legend {
    font-size: 14px;
    font-weight: 600;
    color: #8a7a70;
    width: auto;
    padding: 0 6px;
    margin: 0;
}
.join-check {
    display: block;
    font-size: 14px;
    padding: 3px 0;
    cursor: pointer;
}
.join-check input {
    margin-right: 6px;
}
.contact-thanks {
    color: #2e6b2e;
    font-weight: 600;
    margin-top: 18px;
}
.contact-error {
    color: #a02323;
    font-weight: 600;
    margin-top: 18px;
}
.review-thanks {
    background: #eaf6ee;
    border: 1px solid #bfe3cc;
    color: #1f7a3d;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}
.review-error {
    background: #fbeaea;
    border: 1px solid #e6bcbc;
    color: #a02323;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* 404 / error page */
.error-page {
    max-width: 640px;
    padding-top: 60px;
    padding-bottom: 40px;
    color: #462412;
}
.error-page .error-code {
    font-size: 64px;
    font-weight: 700;
    color: #a02323;
    margin: 0;
    line-height: 1;
}
.error-page h1 {
    font-size: 30px;
    margin: 8px 0 12px;
}
.error-page .error-message {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.error-page .error-links a {
    color: #a02323;
    font-weight: 600;
    text-decoration: none;
}
.error-page .error-links a:hover {
    text-decoration: underline;
}

/* Articles (informational content) */
.article {
    max-width: 760px;
    padding-top: 40px;
    padding-bottom: 40px;
    color: #462412;
}
.article-crumb {
    font-size: 14px;
    color: #8a7a70;
    margin-bottom: 10px;
}
.article-crumb a {
    color: #a02323;
}
.article h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 8px;
}
.article-date {
    color: #8a7a70;
    font-size: 14px;
    margin-bottom: 24px;
}
.article-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #8a7a70;
}
.author-photo {
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.author-name {
    color: #462412;
    font-weight: 600;
}
.article-intro {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.article-body {
    font-size: 17px;
    line-height: 1.75;
}
.article-body h2 {
    font-size: 26px;
    line-height: 1.3;
    margin: 28px 0 12px;
    color: #462412;
}
.article-body p {
    margin-bottom: 16px;
}
.article-body a {
    color: #a02323;
    text-decoration: underline;
}
.article-body figure {
    margin: 24px 0;
}
.article-body figure.figure-float {
    max-width: 320px;
}
@media (min-width: 720px) {
    .article-body figure.figure-float {
        float: right;
        margin: 6px 0 16px 28px;
    }
}
.article-body figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(70, 36, 18, 0.18);
}
.article-body figcaption {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #7a6a5f;
}
.article-body figcaption a {
    color: #7a6a5f;
}
.article-list-item {
    padding: 16px 0;
    border-bottom: 1px solid #ece3dd;
}
.article-list-item h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 6px;
}
.article-list-item h2 a {
    color: #462412;
    text-decoration: none;
}
.article-list-item h2 a:hover {
    text-decoration: underline;
}
.article-related {
    margin-top: 32px;
    border-top: 1px solid #ece3dd;
    padding-top: 16px;
}
.article-related h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #462412;
}
.article-related ul {
    padding-left: 20px;
}
.article-related a {
    color: #a02323;
}
@media (max-width: 991.98px) {
    .article h1 {
        font-size: 28px;
    }
}
#detailModal .modal-close-link {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    opacity: 0.55;
    transition: opacity 0.15s ease-in-out;
}
#detailModal .modal-close-link:hover,
#detailModal .modal-close-link:focus {
    opacity: 1;
}

/* --- UI polish (gap, globe, detail scroll, brand interactive states) --- */

/* Controlled space between "speaking" and the language dropdown.
   Match the hero h3 styling (Lora italic, brand red) — a bare span wasn't
   inheriting it reliably across the inline-flex heading. */
.hero-speaking {
    margin-right: 0.3em;
    font-family: "Lora", serif;
    font-style: italic;
    color: #a02323;
}

/* "Any language" globe (no flag image) */
.select-icon-globe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    background: #fff;
}

/* Guide detail renders as a statically-open modal that scrolls itself —
   lock BOTH html and body (browsers scroll via html) so there's a single
   scrollbar (the modal's), not two. */
html.detail-view,
html.detail-view body.detail-view {
    overflow: hidden;
    height: 100%;
}

/* Replace Bootstrap's blue interactive states with the site's brand colours */
.dropdown-languages .dropdown-item:hover,
.dropdown-languages .dropdown-item:focus {
    background-color: #f6ecec;
    color: #a02323;
}
.dropdown-languages .dropdown-item:active,
.dropdown-languages .dropdown-item.active {
    background-color: #a02323;
    color: #fff;
}
.dropdown-languages > button:focus,
.dropdown-languages > button:focus-visible,
.dropdown-languages .dropdown-toggle:focus {
    outline: none;
    box-shadow: none;
}
.btn.btn-primary:hover,
.btn.btn-primary:active,
.btn.btn-primary:focus {
    background-color: #862020;
    border-color: #862020;
    color: #fff;
}
.btn.btn-primary.btn-outline-primary:hover,
.btn.btn-primary.btn-outline-primary:active,
.btn.btn-primary.btn-outline-primary:focus {
    background-color: #f6ecec;
    color: #a02323;
}
.btn:focus,
.btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(160, 35, 35, 0.35);
    outline: none;
}

/* "Expert in …" specialties, in a bordered box right under the languages */
.detail-focuses-box {
    border: 1px solid #e3d8d0;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 16px auto 0;
    max-width: 640px; /* match the description text container width */
    text-align: left;
    color: #462412;
    font-size: 16px;
    line-height: 1.5;
}
.detail-focuses-box .list-focuses {
    margin: 0;
}

/* Smooth same-origin page navigations: keep the old page (incl. the fixed left image) until the new one paints. */
@view-transition { navigation: auto; }
