/* Typography System - Responsive Font Sizes */
/* Desktop (default) */
h1, .h1 {
    font-size: 100px;
    line-height: 1.1;
}

h2, .h2 {
    font-size: 50px;
    line-height: 1.2;
}

h3, .h3 {
    font-size: 38px;
    line-height: 1.3;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    h1, .h1 {
        font-size: 4.5rem; /* ~72px */
    }
    
    h2, .h2 {
        font-size: 2.5rem; /* ~40px */
    }
    
    h3, .h3 {
        font-size: 1.875rem; /* ~30px */
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: 3.5rem; /* ~56px */
    }
    
    h2, .h2 {
        font-size: 2rem; /* ~32px */
    }
    
    h3, .h3 {
        font-size: 1.5rem; /* ~24px */
    }
}

/* Basic styles for Party Tasks */
.party-tasks-list {
    margin: 1rem 0;
    font-family: var(--e-global-typography-bae4a59-font-family);
    font-size: 18px;
    font-weight: 400;
}

.party-tasks-progress {
    font-family: var(--e-global-typography-bae4a59-font-family);
    font-size: 18px;
    font-weight: 400;
}

.party-tasks-list .party-tasks-header {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 18px; /* Body text size as specified */
}

.party-tasks-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.party-tasks-items .party-task-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.party-task-title {
    display: block;
    font-weight: 700;
    font-size: 18px; /* Body text size as specified */
}

.party-task-content {
    opacity: .85;
    margin-top: .25rem;
    font-weight: 400;
    font-size: 18px; /* Body text size as specified */
}

.party-tasks-progress {
    position: relative;
    box-sizing: border-box;
    border: 1px solid #2f2a8d;
    border-radius: 8px;
    padding: 4px;
    width: 100% !important;
    display: block;
    max-width: none !important;
    max-height: 60px;
}

.party-tasks-progress-track {
    width: 100%;
    height: 50px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.party-tasks-progress-bar {
    height: 100%;
    width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #3b22aa, #c11aa0, #f12f7c);
    color: #fff;
    border-radius: 8px;
    transition: width .5s ease;
    overflow: hidden;
}

.party-tasks-progress-label {
    font-family: var(--e-global-typography-bae4a59-font-family);
    font-weight: 600;
    color: #fff;
    font-size: 38px; /* H3 size for desktop */
    line-height: 1;
}

/* Responsive font sizes for progress label */
@media (max-width: 1024px) {
    .party-tasks-progress-label {
        font-size: 1.875rem; /* H3 size for tablet (~30px) */
    }
}

@media (max-width: 768px) {
    .party-tasks-progress-label {
        font-size: 1.5rem; /* H3 size for mobile (~24px) */
    }
}

/* Cards layout for tegemisel (Not done) */
.party-tasks-list {
    width: 100%;
}

.party-tasks-list .party-tasks-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.party-tasks-list .party-task-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    padding: 28px 24px;
    background: #ffffff;
    margin: 0;
    box-sizing: border-box;
}

.party-tasks-list .party-tasks-cards>.party-task-card:nth-of-type(even) {
    background: #fff3f8;
}

.party-tasks-list .party-task-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.party-tasks-list .party-task-checkbox {
    width: 44px;
    height: 44px;
    border: 3px solid #3a2f87;
    border-radius: 10px;
    display: inline-block;
    flex: 0 0 44px;
    background: #fff;
    position: relative;
}

.party-tasks-list.party-tasks-tehtud .party-task-checkbox::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 13l4 4 10-10" fill="none" stroke="%23ec4899" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.party-tasks-list .party-task-main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.party-tasks-list .party-task-title {
    color: #2f2a8d;
    font-weight: 700;
    font-size: 18px; /* Body text size as specified */
    line-height: 1.3;
}

.party-tasks-list .party-task-content {
    color: #2f2a8d;
    opacity: 1;
    margin-top: 8px;
    overflow: hidden;
    transition: height .28s ease;
    font-weight: 400;
    font-size: 18px; /* Body text size as specified */
}

.party-tasks-list .party-task-content.is-collapsed {
    height: calc(1.3em * 2); /* 2 lines of approx 1.3 line-height */
}

.party-tasks-list .party-task-content.is-expanded {
    height: auto;
}

.party-tasks-list .party-task-content-inner { padding: 0; }
.party-tasks-list .party-task-content.is-collapsed .party-task-content-inner > * { margin-top: 0; margin-bottom: 0; }

.party-tasks-list .party-task-toggle {
    border: none;
    background: transparent;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-tasks-list .party-task-chevron {
    width: 12px;
    height: 12px;
    border-right: 3px solid #3a2f87;
    border-bottom: 3px solid #3a2f87;
    transform: rotate(45deg);
    transition: transform .25s ease;
    transform-origin: center;
    display: inline-block;
}

.party-tasks-list .party-task-toggle[aria-expanded="true"] .party-task-chevron {
    transform: rotate(-135deg);
}