html {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: Arial, Helvetica, sans-serif;

}

.visually-hidden-focusable {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    .visually-hidden-focusable:focus {
        position: static;
        width: auto;
        height: auto;
        left: auto;
        background: #fff;
        color: #000;
        padding: 8px;
        z-index: 1000;
    }


@media (max-width: 575.98px) {
    #bylawTable thead {
        display: none;
    }

    #bylawTable, #bylawTable tbody, #bylawTable tr, #bylawTable td {
        display: block;
        width: 100%;
    }

        #bylawTable tr {
            margin-bottom: 1rem;
            border-bottom: 2px solid #dee2e6;
            box-shadow: 0 2px 4px rgba(0,0,0,0.03);
        }

        #bylawTable td {
            text-align: left !important;
            padding-left: 50%;
            position: relative;
            min-height: 40px;
            border: none;
            border-bottom: 1px solid #f1f1f1;
        }

            #bylawTable td:before {
                position: absolute;
                left: 1rem;
                top: 0;
                width: 45%;
                white-space: nowrap;
                font-weight: bold;
                color: #6c757d;
                content: attr(data-label);
            }

            #bylawTable td:last-child {
                border-bottom: none;
            }

    .search-form .input-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .search-form .form-control,
    .search-form .btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .search-form .btn {
        text-align: center;
    }

    .search-form .btn-outline-primary {
        border-radius: 0.375rem !important; 
    }

    .search-form .btn-outline-secondary {
        border-radius: 0.375rem !important; 
    }

    .input-group .clear-btn {
        border-top-left-radius: 30px;
        border-bottom-left-radius: 10px;
    }

    .btn-group {
        display: block !important;
        width: 100%;
    }    
            
    .bylaw-view-btn {
        width: 100% !important;
        display: block;
        box-sizing: border-box;
    }

    .container, .card, .card-body {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .row.g-3 > .col-md-4,
    .row.g-3 > .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row.g-4 > .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .input-group,
    .input-group .form-select,
    .input-group .form-control,
    .input-group .btn {
        width: 100% !important;
        min-width: 0;
    }

        .input-group .btn {
            margin-top: 0.5rem;
        }

    .list-group-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .d-flex.gap-2.justify-content-end.mt-4 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .btn, .form-control, .form-select {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }

    .navbar-brand img {
        height: 40px !important;
    }

}