/**
 * Elementor widget: Tehetségpont jó gyakorlatai.
 * Colours / typography / borders come from the widget's Style tab; these are the defaults.
 * Layout follows the widget's own width (container queries), not the viewport.
 */

.mtsz-jgy {
    --mtsz-jgy-bg: #fff;
    --mtsz-jgy-header-bg: #f3f4f6;
    --mtsz-jgy-header-line: #e5e7eb;
    --mtsz-jgy-item-line: #e5e7eb;
    --mtsz-jgy-item-hover: #f9fafb;
    --mtsz-jgy-text: #374151;
    --mtsz-jgy-muted: #6b7280;
    --mtsz-jgy-heading: #1f2937;
    --mtsz-jgy-pad-x: 2rem;

    container-type: inline-size;
    background: var(--mtsz-jgy-bg);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    color: var(--mtsz-jgy-text);
    line-height: 1.6;
}

/* ─── Header ─────────────────────────────────────── */
.mtsz-jgy__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.4rem var(--mtsz-jgy-pad-x);
    background: var(--mtsz-jgy-header-bg);
    color: var(--mtsz-jgy-heading);
    list-style: none;
}
details.mtsz-jgy > .mtsz-jgy__header {
    cursor: pointer;
}
details.mtsz-jgy[open] > .mtsz-jgy__header,
div.mtsz-jgy > .mtsz-jgy__header {
    border-bottom: 1px solid var(--mtsz-jgy-header-line);
}
.mtsz-jgy__header::-webkit-details-marker,
.mtsz-jgy__item-header::-webkit-details-marker {
    display: none;
}
.mtsz-jgy__heading {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
}
.mtsz-jgy__count {
    flex: 0 0 auto;
    min-width: 1.75em;
    padding: .1em .55em;
    border-radius: 999px;
    background: #e5e7eb;
    color: var(--mtsz-jgy-heading);
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
}

/* Chevron (pure CSS) */
.mtsz-jgy__chevron {
    flex: 0 0 auto;
    width: .6rem;
    height: .6rem;
    margin: 0 .3rem 0 .5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .6;
    transform: translateY(-25%) rotate(45deg);
    transition: transform .2s ease;
}
details[open] > summary > .mtsz-jgy__chevron {
    transform: translateY(25%) rotate(-135deg);
}

.mtsz-jgy summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

/* ─── Body ───────────────────────────────────────── */
.mtsz-jgy__body {
    padding: 1.75rem var(--mtsz-jgy-pad-x) 2rem;
}
.mtsz-jgy__title {
    margin: 0 0 1.25rem;
    color: var(--mtsz-jgy-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Fields: label | value, stacked when narrow */
.mtsz-jgy__fields {
    display: grid;
    gap: .35rem 0;
    margin: 0 0 1.5rem;
}
.mtsz-jgy__field {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
}
.mtsz-jgy__fields dt {
    margin: 0;
    color: var(--mtsz-jgy-muted);
    font-weight: 600;
}
.mtsz-jgy__fields dt::after {
    content: ":";
}
.mtsz-jgy__fields dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.mtsz-jgy__lead p,
.mtsz-jgy__content p {
    margin: 0 0 1rem;
}
.mtsz-jgy__lead {
    font-size: 1.05em;
}
.mtsz-jgy__content ul,
.mtsz-jgy__content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}
.mtsz-jgy__content li {
    margin: 0 0 .4rem;
    padding-left: .2rem;
}
.mtsz-jgy__content > :last-child,
.mtsz-jgy__lead > :last-child {
    margin-bottom: 0;
}
.mtsz-jgy__content {
    margin-top: 1rem;
}
.mtsz-jgy__content strong {
    color: var(--mtsz-jgy-heading);
    font-weight: 700;
}
.mtsz-jgy__more {
    margin: 1.25rem 0 0;
    font-weight: 600;
}

/* ─── Several practices: accordion inside the card ── */
.mtsz-jgy__body:has(> .mtsz-jgy__item) {
    padding: 0;
}
.mtsz-jgy__item + .mtsz-jgy__item {
    border-top: 1px solid var(--mtsz-jgy-item-line);
}
.mtsz-jgy__item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem var(--mtsz-jgy-pad-x);
    cursor: pointer;
    list-style: none;
    transition: background-color .15s ease;
}
.mtsz-jgy__item-header:hover,
.mtsz-jgy__item[open] > .mtsz-jgy__item-header {
    background: var(--mtsz-jgy-item-hover);
}
.mtsz-jgy__item-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    gap: .15rem;
}
.mtsz-jgy__item-title {
    color: var(--mtsz-jgy-heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.mtsz-jgy__item-meta {
    color: var(--mtsz-jgy-muted);
    font-size: .875rem;
}
.mtsz-jgy__item-body {
    padding: .5rem var(--mtsz-jgy-pad-x) 1.75rem;
}

/* ─── Narrow (widget width, not viewport) ─────────── */
@container (max-width: 560px) {
    .mtsz-jgy__field {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .mtsz-jgy__field + .mtsz-jgy__field {
        margin-top: .4rem;
    }
}
@container (max-width: 480px) {
    .mtsz-jgy {
        --mtsz-jgy-pad-x: 1.1rem;
    }
    .mtsz-jgy__heading {
        font-size: 1.05rem;
    }
    .mtsz-jgy__title {
        font-size: 1.2rem;
    }
}
/* Browsers without container queries */
@supports not (container-type: inline-size) {
    @media (max-width: 600px) {
        .mtsz-jgy {
            --mtsz-jgy-pad-x: 1.1rem;
        }
        .mtsz-jgy__field {
            grid-template-columns: 1fr;
            gap: 0;
        }
    }
}

/* ─── Editor-only notice ─────────────────────────── */
.mtsz-jgy-notice {
    padding: 1rem 1.25rem;
    border: 1px dashed #c3c4c7;
    border-radius: 8px;
    background: #f6f7f7;
    color: #50575e;
    font-size: 14px;
}
