/* HAMIA DIGITAL - shared readability and accessibility layer */
:root {
    --hd-sidebar-width: 224px;
}

html { font-size: 16px; }
body { font-size: 16px !important; line-height: 1.55; }

/* Keep the sidebar exactly the same width and proportions on both pages. */
.sidebar {
    width: var(--hd-sidebar-width) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}
.main-shell { margin-left: var(--hd-sidebar-width) !important; }
.main { margin-left: var(--hd-sidebar-width) !important; }

/* Brand and navigation */
.brand-name { font-size: 17px !important; line-height: 1.25; }
.brand-sub, .brand-subtitle { font-size: 12px !important; }
.menu-label, .menu-heading { font-size: 12px !important; }
.nav-link, .menu a, .logout-button {
    min-height: 48px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
}
.nav-icon, .menu-icon { font-size: 18px !important; }

/* Top bar, account information and page headings */
.topbar { min-height: 72px; }
.breadcrumb { font-size: 14px !important; }
.balance, .balance-pill { font-size: 13px !important; padding: 10px 13px !important; }
.profile-name { font-size: 13px !important; }
.profile-sub, .profile-subtitle { font-size: 11px !important; }
.eyebrow { font-size: 12px !important; }
h1, .welcome h1 { font-size: 29px !important; line-height: 1.25; }
.page-description, .welcome p { font-size: 15px !important; line-height: 1.65; }
.date-pill { font-size: 12px !important; }

/* Dashboard cards */
.stat-label { font-size: 14px !important; }
.stat-note, .stat-help { font-size: 13px !important; line-height: 1.5; }
.stat-value { font-size: 30px !important; }
.section-title { font-size: 21px !important; }
.section-subtitle { font-size: 14px !important; }
.quick-card h3 { font-size: 16px !important; }
.quick-card p { font-size: 14px !important; line-height: 1.6; }
.panel-header h2 { font-size: 17px !important; }
.view-all { font-size: 14px !important; }
.event-name { font-size: 15px !important; }
.event-meta { font-size: 13px !important; line-height: 1.6; }
.event-count { font-size: 14px !important; }
.status { font-size: 12px !important; }
.empty h3 { font-size: 17px !important; }
.empty p { font-size: 14px !important; line-height: 1.6; }
.primary-button { font-size: 14px !important; }

/* Event form and event cards */
.panel-heading h2 { font-size: 20px !important; }
.panel-heading p { font-size: 14px !important; line-height: 1.6; }
label { font-size: 14px !important; }
input, select, textarea {
    min-height: 48px;
    font-size: 15px !important;
    padding-top: 9px;
    padding-bottom: 9px;
}
.btn { min-height: 46px !important; font-size: 14px !important; padding-left: 18px; padding-right: 18px; }
.notice { font-size: 14px !important; }
.price-title { font-size: 15px !important; }
.price-item small { font-size: 12px !important; line-height: 1.45; }
.price-item strong { font-size: 18px !important; }
.price-note, .form-hint { font-size: 13px !important; line-height: 1.65; }
.event-type { font-size: 12px !important; }
.event-card h3 { font-size: 17px !important; }
.event-details, .event-details strong, .event-details span { font-size: 13px !important; }
.event-footer { font-size: 13px !important; }
.footer { font-size: 13px !important; }

/* Keyboard focus should be clearly visible. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid #ffbf47 !important;
    outline-offset: 2px !important;
}

/* Match the compact sidebar behavior at tablet widths on both pages. */
@media (max-width: 760px) and (min-width: 651px) {
    .sidebar { width: 70px !important; padding-left: 8px !important; padding-right: 8px !important; }
    .main-shell, .main { margin-left: 70px !important; }
    .brand { justify-content: center; padding-left: 0 !important; padding-right: 0 !important; }
    .brand-copy, .brand-name, .brand-sub, .brand-subtitle, .menu-label, .menu-heading,
    .nav-text { display: none !important; }
    .nav-link { justify-content: center; padding-left: 0 !important; padding-right: 0 !important; }
    .menu a { justify-content: center; padding-left: 0 !important; padding-right: 0 !important; font-size: 0 !important; }
    .menu-icon, .nav-icon { font-size: 19px !important; }
    .logout-button { justify-content: center; padding-left: 0 !important; padding-right: 0 !important; font-size: 0 !important; }
    .profile-copy, .profile-subtitle { display: none !important; }
}

@media (max-width: 650px) {
    body { font-size: 15px !important; }
    .sidebar { width: 100% !important; }
    .main-shell, .main { margin-left: 0 !important; }
    .brand-name { display: block !important; font-size: 17px !important; }
    .brand-sub, .brand-subtitle { display: block !important; }
    .menu-label, .menu-heading, .nav-link, .menu, .sidebar-bottom { display: none !important; }
    .content { padding: 20px 14px !important; }
    h1, .welcome h1 { font-size: 25px !important; }
    .page-description, .welcome p { font-size: 14px !important; }
    .balance, .balance-pill { font-size: 12px !important; }
    label { font-size: 14px !important; }
    input, select, textarea { font-size: 16px !important; }
    .price-note, .form-hint { font-size: 13px !important; }
}
