/* Shared overrides for the supplied views. Existing theme colors/fonts remain in use. */
body.responsive-ui {
    --responsive-gutter: 16px;
    --responsive-target: 44px;
    min-width: 0;
    max-width: 100%;
}
body.responsive-ui #wrapper,
body.responsive-ui #body.l-main-container,
body.responsive-ui .responsive-main { min-width: 0; max-width: 100%; box-sizing: border-box; }

body.responsive-ui .header *,
body.responsive-ui .hero *,
body.responsive-ui .footer *,
body.responsive-ui .responsive-modal *,
body.responsive-ui .responsive-services *,
body.responsive-ui .accessibility-menu * {
    box-sizing: border-box;
}

body.responsive-ui .header > .container,
body.responsive-ui .hero > .container,
body.responsive-ui .footer > .container,
body.responsive-ui .responsive-services > .container {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin-inline: auto;
    padding-inline: var(--responsive-gutter);
}

body.responsive-ui .header .header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.responsive-ui .header .logo { flex: 0 0 auto; max-width: 120px; }
body.responsive-ui .header .logo img { display: block; max-width: 100%; height: auto; }
body.responsive-ui .header .j-top-nav { flex: 1 1 560px; min-width: 0; float: none; }
body.responsive-ui .header .auth-buttons { flex: 0 0 auto; margin: 0; }
body.responsive-ui .header .language-switch-container { display: flex; gap: 4px; }

body.responsive-ui .header button,
body.responsive-ui .footer .social-links a,
body.responsive-ui .accessibility-menu button {
    min-width: var(--responsive-target);
    min-height: var(--responsive-target);
    touch-action: manipulation;
}

body.responsive-ui .header .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    line-height: 1.25;
}

body.responsive-ui .dynamic-navigation,
body.responsive-ui .dynamic-navigation .navbar-container { width: 100%; min-width: 0; }
body.responsive-ui .dynamic-navigation .b-top-nav__1level_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    min-width: 0;
    list-style: none;
}
body.responsive-ui .dynamic-navigation .b-top-nav__1level {
    position: relative;
    float: none;
    max-width: 100%;
    margin: 0;
}
body.responsive-ui .dynamic-navigation .b-top-nav__1level > a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--responsive-target);
    padding: 10px 8px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.responsive-ui .dynamic-navigation .myAcc { min-width: 0; max-width: 18rem; overflow-wrap: anywhere; }
body.responsive-ui .dynamic-navigation .b-top-nav__2level_wrap { padding: 0; margin: 0; list-style: none; }
body.responsive-ui .dynamic-navigation .b-top-nav__2level > a {
    display: block;
    min-height: var(--responsive-target);
    padding: 10px 12px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.responsive-ui .responsive-submenu-toggle { display: none; }

body.responsive-ui .hero .hero-content { min-width: 0; max-width: 100%; }
body.responsive-ui .hero h2,
body.responsive-ui .hero p,
body.responsive-ui .footer p,
body.responsive-ui .footer a { overflow-wrap: anywhere; }
body.responsive-ui .hero .img-50 { width: 50px; height: 50px; object-fit: contain; vertical-align: middle; }

body.responsive-ui .footer .footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
body.responsive-ui .footer .footer-section { width: auto; min-width: 0; }
body.responsive-ui .footer li > a { display: inline-block; min-height: 44px; padding-block: 8px; }
body.responsive-ui .footer .social-links { display: flex; flex-wrap: wrap; gap: 12px; }
body.responsive-ui .footer .social-links a { display: inline-flex; align-items: center; justify-content: center; }

/* Do not set display/visibility: the existing modal/alert scripts retain ownership. */
body.responsive-ui .responsive-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 12px;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
}
body.responsive-ui #loginModal > form { width: 100%; max-width: 560px; min-width: 0; margin: 0 auto; }
body.responsive-ui .responsive-modal .modal-content {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    max-width: 560px;
    min-width: 0;
    height: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0 auto;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
}
body.responsive-ui .responsive-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
}
body.responsive-ui .responsive-modal .modal-header h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.6;
}
body.responsive-ui .responsive-modal .modal-header .close {
    position: static;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
body.responsive-ui .responsive-modal .modal-body { padding: 20px; min-width: 0; }
body.responsive-ui .responsive-modal .modal-footer { padding: 16px 0 0; min-width: 0; }
body.responsive-ui .responsive-modal .form-group { min-width: 0; margin-bottom: 16px; }
body.responsive-ui .responsive-modal .form-group > label,
body.responsive-ui .responsive-form-grid > div > label { display: block; margin-bottom: 6px; line-height: 1.6; }
body.responsive-ui .responsive-modal .form-group > input + label { margin-top: 16px; }
body.responsive-ui .responsive-modal input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([aria-hidden="true"]),
body.responsive-ui .responsive-modal select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;
    font-size: max(16px, 1rem);
    line-height: 1.5;
}
body.responsive-ui .responsive-modal .checkbox-container {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 12px;
}
body.responsive-ui .responsive-modal .form-actions,
body.responsive-ui .responsive-modal .auth-links { display: flex; flex-wrap: wrap; gap: 12px; }
body.responsive-ui .responsive-modal .form-actions > .btn {
    flex: 1 1 180px;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    font: inherit;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
    touch-action: manipulation;
}
body.responsive-ui .responsive-modal input[aria-hidden="true"][tabindex="-1"] { left: 0 !important; top: 0; }
body.responsive-ui .responsive-modal .modal-content > .forgot-password-info { padding-inline: 16px; }
body.responsive-ui .responsive-modal .auth-links > a {
    min-height: 44px;
    max-width: 100%;
    padding-block: 8px;
    line-height: 1.6;
}
body.responsive-ui .responsive-modal .alert { position: relative; padding-inline-end: 56px; }
body.responsive-ui .responsive-modal .alert button.close {
    position: absolute;
    top: 4px;
    left: auto;
    right: auto;
    inset-inline-end: 4px;
    min-width: 44px;
    min-height: 44px;
}
body.responsive-ui .responsive-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
body.responsive-ui .responsive-form-grid > div { float: none; width: 100%; min-width: 0; margin: 0; padding: 0; }
body.responsive-ui .responsive-form-grid > .responsive-form-span { grid-column: 1 / -1; }
/* Last-resort local scrolling for a third-party widget; never hide or scale its controls. */
body.responsive-ui .responsive-captcha { max-width: 100%; min-width: 0; overflow-x: auto; padding-block: 2px; }
body.responsive-ui .responsive-captcha > div { width: max-content; margin-inline: auto; }

body.responsive-ui .responsive-services .section-title { overflow-wrap: anywhere; }
body.responsive-ui .responsive-services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    min-width: 0;
}
/* Keep card typography, spacing, icon styling and every hover/entrance effect in
   the original OnlineServicesStyle.css. Only constrain the responsive boxes. */
body.responsive-ui .responsive-services .service-card {
    min-width: 0;
    max-width: 100%;
    height: auto;
    overflow-wrap: anywhere;
    touch-action: manipulation;
}
body.responsive-ui .responsive-services .service-card > .service-icon { max-width: 100%; }
body.responsive-ui .responsive-services .service-icon > img.service-icon {
    max-width: 100%;
    object-fit: contain;
}
body.responsive-ui .responsive-services .service-card h3 { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

body.responsive-ui .accessibility-menu {
    position: fixed;
    left: auto;
    right: auto;
    inset-inline-end: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 32px);
}
body.responsive-ui .accessibility-menu .accessibility-panel {
    position: absolute;
    top: auto;
    left: auto;
    right: auto;
    inset-inline-end: 0;
    bottom: calc(100% + 12px);
    width: 320px;
    max-width: calc(100vw - 32px);
    min-width: 0;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    margin: 0;
    overflow-y: auto;
    overflow-wrap: anywhere;
}
body.responsive-ui .accessibility-menu .accessibility-option { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.responsive-ui .accessibility-menu .accessibility-option > label { flex: 1 1 100px; min-width: 0; }

body.responsive-ui .header a:focus-visible,
body.responsive-ui .header button:focus-visible,
body.responsive-ui .responsive-modal :focus-visible,
body.responsive-ui .responsive-services .service-card:focus-visible,
body.responsive-ui .accessibility-menu button:focus-visible {
    outline: 3px solid var(--primary-gold, #c0932e);
    outline-offset: 3px;
}

@media (min-width: 576px) {
    body.responsive-ui .responsive-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    /* Compact desktop login; phone sizing and the other modal forms stay fluid. */
    body.responsive-ui #loginModal { align-items: center; }
    body.responsive-ui #loginModal > form,
    body.responsive-ui #loginModal .modal-content { max-width: 420px; }
    body.responsive-ui #loginModal .modal-header { padding: 12px 16px; }
    body.responsive-ui #loginModal .modal-header h2 { font-size: 1.125rem; }
    body.responsive-ui #loginModal .modal-body { padding: 16px; }
    body.responsive-ui #loginModal .login-form { margin: 0; padding: 0; }
    body.responsive-ui #loginModal .form-group { margin-bottom: 12px; }
    body.responsive-ui #loginModal input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([aria-hidden="true"]) { min-height: 44px; padding: 8px 10px; }
    body.responsive-ui #loginModal .form-actions { gap: 8px; }
    body.responsive-ui #loginModal .form-actions > .btn { min-height: 44px; padding: 8px 10px; }
    body.responsive-ui #loginModal .modal-footer { padding-top: 12px; }
    body.responsive-ui #loginModal .auth-links { gap: 8px 12px; }
    body.responsive-ui #loginModal .guest-access { margin-top: 8px; padding: 8px 10px; }
    body.responsive-ui #loginModal .guest-access p { margin: 0; line-height: 1.6; }
    body.responsive-ui #loginModal .responsive-captcha { overflow: visible; }
    body.responsive-ui .header .j-top-nav { display: block !important; }
    body.responsive-ui .header .mobile-menu-toggle { display: none !important; }
    body.responsive-ui .dynamic-navigation .b-top-nav__1level:focus-within > .b-top-nav__dropdomn,
    body.responsive-ui .dynamic-navigation .responsive-submenu-open > .b-top-nav__dropdomn {
        display: block;
        visibility: visible;
        opacity: 1;
    }
    body.responsive-ui .dynamic-navigation .b-top-nav__dropdomn { max-width: calc(100vw - 32px); }
}
@media (max-width: 1023px) {
    body.responsive-ui #wrapper,
    body.responsive-ui #body.l-main-container,
    body.responsive-ui .responsive-main { width: 100%; margin-inline: 0; }
    body.responsive-ui .header { position: sticky; top: 0; z-index: 1000; }
    body.responsive-ui .header .header-content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        align-items: center;
        gap: 8px;
        padding-block: 8px;
    }
    body.responsive-ui .header .logo { grid-column: 1; grid-row: 1; min-width: 0; width: 96px; max-width: 100%; }
    body.responsive-ui .header .mobile-menu-toggle { display: none !important; grid-column: 2; grid-row: 1; margin: 0; }
    body.responsive-ui .header.responsive-nav-ready .mobile-menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
    body.responsive-ui .header .header-login { grid-column: 3; grid-row: 1; }
    body.responsive-ui .header .header-language { grid-column: 4; grid-row: 1; }
    body.responsive-ui .header .j-top-nav {
        display: block !important;
        position: static !important;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        height: auto;
        max-height: calc(100vh - 96px);
        max-height: calc(100dvh - 96px);
        margin: 0;
        padding: 0;
        transform: none !important;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    body.responsive-ui .header.responsive-nav-ready .j-top-nav { display: none !important; }
    body.responsive-ui .header.responsive-nav-ready.responsive-menu-open .j-top-nav { display: block !important; }
    body.responsive-ui .dynamic-navigation .navbar-container { display: block; padding: 0; }
    body.responsive-ui .dynamic-navigation { display: block !important; }
    body.responsive-ui .dynamic-navigation .b-top-nav__1level_wrap { display: block; width: 100%; }
    body.responsive-ui .dynamic-navigation .b-top-nav__1level {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 4px;
        width: 100%;
        padding: 4px 0;
        text-align: start;
    }
    body.responsive-ui .dynamic-navigation .b-top-nav__1level > a { grid-column: 1 / -1; width: auto; min-width: 0; padding: 10px 12px; }
    body.responsive-ui .dynamic-navigation .responsive-has-submenu > a { grid-column: 1; }
    body.responsive-ui .dynamic-navigation .responsive-has-submenu > a .b-ico-dropdown { display: none; }
    body.responsive-ui .responsive-submenu-toggle {
        display: inline-flex;
        grid-column: 2;
        align-items: center;
        justify-content: center;
        align-self: start;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--primary-gold, #c0932e);
        border-radius: 6px;
        background: transparent;
        color: inherit;
        font-size: 1.25rem;
        cursor: pointer;
    }
    body.responsive-ui .responsive-submenu-toggle[aria-expanded="true"] > span { transform: rotate(180deg); }
    body.responsive-ui .dynamic-navigation .b-top-nav__dropdomn {
        display: block !important;
        position: static !important;
        grid-column: 1 / -1;
        width: 100% !important;
        max-width: 100%;
        min-width: 0 !important;
        height: auto !important;
        max-height: none;
        margin: 0;
        padding: 4px;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: start;
    }
    body.responsive-ui .header.responsive-nav-ready .b-top-nav__1level:not(.responsive-submenu-open) > .b-top-nav__dropdomn { display: none !important; }
    body.responsive-ui .dynamic-navigation .b-top-nav__2level { float: none; width: 100%; min-width: 0; }
    body.responsive-ui .hero { margin-top: 0; padding-block: 28px; }
    body.responsive-ui .hero h2 { font-size: clamp(1.375rem, 4vw, 2rem); line-height: 1.6; }
    body.responsive-ui .hero p { font-size: 1rem; line-height: 1.8; }
    body.responsive-ui .responsive-services .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 899px) {
    body.responsive-ui .footer .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body.responsive-ui .responsive-services .services-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    body.responsive-ui .responsive-legacy-form { float: none; width: 100%; max-width: 100%; }
    body.responsive-ui .responsive-legacy-form > .col-sm-3.col-xs-3 { display: none; }
    body.responsive-ui .responsive-legacy-form .outerDiv { float: none; width: 100%; padding: 16px; }
    body.responsive-ui .responsive-legacy-form .form-group { display: flow-root; margin-bottom: 16px; }
    body.responsive-ui .responsive-legacy-form .form-group > label,
    body.responsive-ui .responsive-legacy-form .form-group > input { float: none; width: 100%; box-sizing: border-box; }
    body.responsive-ui .responsive-legacy-form input { min-width: 0; min-height: 48px; padding: 10px 12px; font-size: 16px; font-size: max(16px, 1rem); }
    body.responsive-ui .responsive-legacy-form .btn { min-height: 44px; margin: 4px; white-space: normal; }
    body.responsive-ui .footer .footer-bottom { padding-bottom: 72px; }
}
@media (max-width: 599px) {
    body.responsive-ui .footer .footer-content { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    body.responsive-ui .responsive-modal .form-actions { flex-direction: column; }
    body.responsive-ui .responsive-modal .form-actions > .btn { flex: 0 0 auto; width: 100%; }
    body.responsive-ui .responsive-modal .modal-header,
    body.responsive-ui .responsive-modal .modal-body { padding: 16px; }
    body.responsive-ui .responsive-modal .modal-header h2 { font-size: 1.125rem; }
}
@media (max-width: 399px) {
    /* Let the third-party widget use the modal's full width; keep fields/text inset. */
    body.responsive-ui .responsive-modal .responsive-captcha { width: calc(100% + 32px); max-width: none; margin-inline: -16px; }
}
@media (max-width: 359px) {
    body.responsive-ui { --responsive-gutter: 12px; }
    body.responsive-ui .header .header-content { gap: 6px; }
    body.responsive-ui .header .language-switch-container { gap: 2px; }
    /* A 304px normal CAPTCHA needs the full inner width at the 320px breakpoint. */
    body.responsive-ui .responsive-modal { padding: 4px; }
    body.responsive-ui .responsive-modal .modal-content { max-height: calc(100vh - 8px); max-height: calc(100dvh - 8px); }
    body.responsive-ui .responsive-modal .modal-header { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    body.responsive-ui .dynamic-navigation .b-top-nav__dropdomn { animation: none !important; transition: none !important; transform: none !important; opacity: 1; }
}

/* GetAllServiceViaType: keep the original five-column desktop table and its hooks.
   At phone widths each original row becomes one card; no service data is removed. */
body.responsive-ui .responsive-service-list,
body.responsive-ui .responsive-service-list * { box-sizing: border-box; }
body.responsive-ui .responsive-service-list { min-width: 0; max-width: 100%; }
body.responsive-ui .responsive-service-list > .container {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin-inline: auto;
    padding-inline: var(--responsive-gutter, 16px);
}
body.responsive-ui .responsive-service-list .services-grid-section,
body.responsive-ui .responsive-service-list .services-container,
body.responsive-ui .responsive-service-list .lands-table-container,
body.responsive-ui .responsive-service-list .table-responsive { min-width: 0; max-width: 100%; }
body.responsive-ui .responsive-service-list .table-responsive { clear: both; }
body.responsive-ui .responsive-service-list .table-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
body.responsive-ui .responsive-service-list .table-header h2 {
    flex: 1 1 320px;
    min-width: 0;
    margin: 0;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.responsive-ui .responsive-service-list .table-actions { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
body.responsive-ui .responsive-service-list .table-actions > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    white-space: normal;
    line-height: 1.5;
    touch-action: manipulation;
}
body.responsive-ui .responsive-service-list .responsive-service-search-row {
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}
body.responsive-ui .responsive-service-list .responsive-service-search { width: 100%; min-width: 0; margin-block: 16px; }
body.responsive-ui .responsive-service-list .responsive-service-search > .form-group {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
body.responsive-ui .responsive-service-list .search-container,
body.responsive-ui .responsive-service-list .search-box,
body.responsive-ui .responsive-service-list .search-input-container { width: 100%; max-width: 100%; min-width: 0; }
body.responsive-ui .responsive-service-list .search-box,
body.responsive-ui .responsive-service-list .search-input-container { display: block; }
body.responsive-ui .responsive-service-list .search-input-container > label { display: block; margin-bottom: 6px; line-height: 1.6; }
body.responsive-ui .responsive-service-list .search-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;
    font-size: max(16px, 1rem);
    line-height: 1.5;
}
body.responsive-ui .responsive-service-list .lands-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
}
body.responsive-ui .responsive-service-list .lands-table th,
body.responsive-ui .responsive-service-list .lands-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
body.responsive-ui .responsive-service-list .lands-table th:nth-child(1) { width: 30%; }
body.responsive-ui .responsive-service-list .lands-table th:nth-child(2) { width: 15%; }
body.responsive-ui .responsive-service-list .lands-table th:nth-child(3) { width: 13%; }
body.responsive-ui .responsive-service-list .lands-table th:nth-child(4),
body.responsive-ui .responsive-service-list .lands-table th:nth-child(5) { width: 21%; }
body.responsive-ui .responsive-service-list .responsive-service-name { min-width: 0; max-width: 100%; }
body.responsive-ui .responsive-service-list .responsive-service-name > i { flex: 0 0 auto; }
body.responsive-ui .responsive-service-list .responsive-service-name > span { min-width: 0; overflow-wrap: anywhere; }
body.responsive-ui .responsive-service-list .lands-table .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    white-space: normal;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    touch-action: manipulation;
}
body.responsive-ui .responsive-service-list .lands-table .btn > i { flex: 0 0 auto; }
body.responsive-ui .responsive-service-list .page-header,
body.responsive-ui .responsive-service-list .alert { max-width: 100%; overflow-wrap: anywhere; }
body.responsive-ui .responsive-service-list .btn:focus-visible,
body.responsive-ui .responsive-service-list .search-input:focus-visible { outline: 3px solid var(--primary-gold, #c0932e); outline-offset: 3px; }

@media (max-width: 767px) {
    body.responsive-ui .responsive-service-list .table-header { align-items: stretch; }
    body.responsive-ui .responsive-service-list .table-header h2 { flex-basis: 100%; }
    body.responsive-ui .responsive-service-list .table-actions { width: 100%; }
    body.responsive-ui .responsive-service-list .table-actions > .btn { flex: 1 1 0; min-width: 0; }
    body.responsive-ui .responsive-service-list .table-responsive { overflow: visible; }
    body.responsive-ui .responsive-service-list .lands-table { display: block; border: 0; overflow: visible; }
    /* Visually hide column headings while retaining them for table semantics. */
    body.responsive-ui .responsive-service-list .lands-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
    body.responsive-ui .responsive-service-list .lands-table tbody { display: block; width: 100%; }
    /* No !important on display: filterServices() must be able to hide rows inline. */
    body.responsive-ui .responsive-service-list .lands-table tbody > tr.service-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        height: auto;
        margin-bottom: 16px;
        padding: 4px 12px;
        border: 1px solid var(--border-color, rgba(192, 147, 46, 0.2));
        border-radius: 12px;
        text-align: start;
    }
    body.responsive-ui .responsive-service-list .lands-table td {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px 0;
        text-align: start;
        font-size: 16px;
        font-size: max(16px, 1rem);
        line-height: 1.6;
    }
    body.responsive-ui .responsive-service-list .lands-table td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 14px;
        font-size: max(14px, 0.875rem);
        line-height: 1.5;
    }
    body.responsive-ui .responsive-service-list .lands-table td:last-child { border-bottom: 0; }
    body.responsive-ui .responsive-service-list .lands-table .btn {
        width: 100%;
        min-height: 48px;
        /* These two declarations replace the original links' inline small sizing. */
        font-size: 16px !important;
        font-size: max(16px, 1rem) !important;
        padding: 10px 12px !important;
    }
}

/* Print the same rows as a regular table. Inline-hidden search results stay hidden. */
@media print {
    body.responsive-ui .responsive-service-list .table-actions,
    body.responsive-ui .responsive-service-list .responsive-service-search-row { display: none; }
    body.responsive-ui .responsive-service-list .table-responsive { overflow: visible; }
    body.responsive-ui .responsive-service-list .lands-table { display: table; }
    body.responsive-ui .responsive-service-list .lands-table thead {
        display: table-header-group;
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: normal;
    }
    body.responsive-ui .responsive-service-list .lands-table tbody { display: table-row-group; width: auto; }
    body.responsive-ui .responsive-service-list .lands-table tbody > tr.service-item {
        display: table-row;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        break-inside: avoid;
    }
    body.responsive-ui .responsive-service-list .lands-table td { display: table-cell; width: auto; padding: 8px; font-size: 12px; }
    body.responsive-ui .responsive-service-list .lands-table td[data-label]::before { display: none; }
    body.responsive-ui .responsive-service-list .lands-table .btn { min-height: 0; padding: 4px 6px !important; font-size: 12px !important; }
}
