/* 1. Import Ubuntu Font if not already loaded by theme */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');

/* 2. Global Gadget Typography */
.wa-gadget, .wa-gadget *, .u-btn, .u-field-label {
    font-family: 'Ubuntu', sans-serif !important;
}

/* 3. Gadget Headers & Titles */
.wa-gadget-title, 
.wa-gadget-header, 
h1.wa-gadget-title, 
.o-events-list-item-title a {
    color: #5f2323 !important;
    font-weight: 700 !important;
}

/* 4. Buttons - Mobile Friendly (Larger Tap Targets) */
.u-btn, 
.wa-button, 
input[type="submit"], 
.gadgetEventListArea .o-events-list-item-reg-button a {
    background-color: #5f2323 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important; /* Larger padding for thumbs */
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    font-size: 16px !important; /* Prevents iOS auto-zoom on inputs */
}

.u-btn:hover, .wa-button:hover {
    filter: brightness(1.2);
}

/* 5. Mobile Responsive Adjustments */
@media only screen and (max-width: 768px) {
    /* Stack elements that might be too wide */
    .wa-gadget {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Make buttons full-width on mobile for easier clicking */
    .u-btn, .wa-button {
        display: block !important;
        width: 100% !important;
        text-align: center;
        box-sizing: border-box;
    }

    /* Increase spacing between event list items for clarity */
    .o-events-list-item {
        margin-bottom: 30px !important;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
}

/* 6. Link Colors within Gadgets */
.wa-gadget a {
    color: #5f2323;
    text-decoration: underline;
}