/* Shared styles for new custom widgets. All layout rules stay inside .zy-widget-v2. */
@font-face {
    font-family: "ZY Widgets V2"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/InterTight-Regular.woff2") format("woff2");
}
@font-face {
    font-family: "ZY Widgets V2"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/InterTight-Medium.woff2") format("woff2");
}
.zy-widget-v2 {
    --zy-v2-ink: #000632;
    --zy-v2-muted: #61657a;
    --zy-v2-accent: #215387;
    --zy-v2-border: #d9e2ec;
    --zy-v2-soft: #f2f5f9;
    font-family: "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
    color: var(--zy-v2-ink);
    line-height: 1.5;
    text-align: left;
}
.zy-widget-v2, .zy-widget-v2 *, .zy-widget-v2 *::before, .zy-widget-v2 *::after { box-sizing: border-box; }
.zy-widget-v2 :is(button, a) { -webkit-tap-highlight-color: transparent; }
.zy-widget-v2 :is(a, button, [tabindex]):focus-visible { outline: 2px solid var(--zy-v2-accent); outline-offset: 3px; }

/* Result carousel. Its columns follow the article width, including editor columns. */
.zy-widget-v2.zy-articles-v2 {
    container: zy-widget-v2 / inline-size;
    display: block;
    width: 100%; max-width: 100%; min-width: 0;
    margin: 32px 0; padding: 24px 20px;
    background: var(--zy-v2-soft); border: 0; border-radius: 12px;
    clear: both;
}
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__header { margin: 0 0 22px; padding: 0; background: none; border: 0; }
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__header h2 {
    margin: 0; padding: 0; border: 0; background: none;
    color: var(--zy-v2-ink); font: 500 26px/1.2 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
    letter-spacing: -.025em; text-transform: none; overflow-wrap: anywhere;
}
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__header h2 :is(strong, b) { color: var(--zy-v2-accent); font-weight: inherit; }
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__track {
    position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 340px);
    gap: 14px; width: 100%; min-width: 0;
    margin: 0; padding: 4px 2px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none;
}
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__track::-webkit-scrollbar { display: none; }
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__track:has(> [data-zy-v2-card]:only-child) { grid-auto-columns: 100%; }
.zy-widget-v2.zy-articles-v2 article.zy-result-v2 {
    display: flex; flex-direction: column; align-items: stretch;
    width: auto; max-width: none; min-width: 0; min-height: 234px; height: auto;
    margin: 0; padding: 22px 24px;
    border: 1px solid var(--zy-v2-border); border-radius: 12px;
    background: #fff; box-shadow: none; scroll-snap-align: start;
    overflow-wrap: anywhere; text-align: left;
}
.zy-widget-v2.zy-articles-v2 .zy-result-v2 p { margin: 0; padding: 0; border: 0; background: none; font-family: inherit; text-indent: 0; }
.zy-widget-v2.zy-articles-v2 .zy-result-v2__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--zy-v2-muted); }
.zy-widget-v2.zy-articles-v2 .zy-result-v2__top p,
.zy-widget-v2.zy-articles-v2 .zy-result-v2__top time { font: 400 13px/1.4 "ZY Widgets V2", "Inter Tight", Arial, sans-serif; color: var(--zy-v2-muted); }
.zy-widget-v2.zy-articles-v2 .zy-result-v2__top time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.zy-widget-v2.zy-articles-v2 h3.zy-result-v2__amount {
    margin: 7px 0 16px; padding: 0; border: 0; background: none;
    color: var(--zy-v2-accent); font: 500 30px/1.15 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
    letter-spacing: -.025em; text-transform: none;
}
.zy-widget-v2.zy-articles-v2 p.zy-result-v2__company { font-size: 17px; line-height: 1.4; color: var(--zy-v2-ink); }
.zy-widget-v2.zy-articles-v2 p.zy-result-v2__region { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--zy-v2-muted); }
.zy-widget-v2.zy-articles-v2 p.zy-result-v2__dealer { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--zy-v2-ink); }
.zy-widget-v2.zy-articles-v2 .zy-result-v2__dealer span { margin-right: 4px; color: var(--zy-v2-muted); }
.zy-widget-v2.zy-articles-v2 p.zy-result-v2__note { margin-top: 8px; color: var(--zy-v2-muted); font-size: 13px; line-height: 1.4; }
.zy-widget-v2.zy-articles-v2 h3.zy-result-v2__original-title {
    margin: 12px 0 0; padding: 0; border: 0; background: none;
    color: var(--zy-v2-ink); font: 400 20px/1.4 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
    letter-spacing: normal; text-transform: none;
}
.zy-widget-v2.zy-articles-v2 a.zy-result-v2__link,
.zy-widget-v2.zy-articles-v2 a.zy-articles-v2__all {
    display: flex; align-items: center; width: fit-content; max-width: 100%; gap: 8px;
    border: 0; background: none; box-shadow: none;
    color: var(--zy-v2-accent); font: 400 16px/1.4 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
    text-decoration: underline; text-decoration-color: #b9cbdf; text-underline-offset: 4px;
}
.zy-widget-v2.zy-articles-v2 a.zy-result-v2__link { margin: auto 0 0; padding: 22px 0 0; font-size: 15px; }
.zy-widget-v2.zy-articles-v2 a.zy-articles-v2__all { margin: 0; padding: 0; }
.zy-widget-v2.zy-articles-v2 :is(.zy-result-v2__link, .zy-articles-v2__all) svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; }
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 0; padding: 0; border: 0; background: none; }
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__controls { display: flex; flex-shrink: 0; gap: 8px; margin-left: auto; }
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__controls[hidden] { display: none; }
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__controls button {
    display: grid; place-items: center; width: 46px; min-width: 46px; height: 46px;
    margin: 0; padding: 0; border: 1px solid var(--zy-v2-border); border-radius: 8px;
    background: #fff; color: var(--zy-v2-accent); cursor: pointer;
    box-shadow: none; appearance: none; transform: none; line-height: 1;
}
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__controls button::before,
.zy-widget-v2.zy-articles-v2 .zy-articles-v2__controls button::after { content: none; }
.zy-widget-v2.zy-articles-v2--empty { font-size: 15px; }
@container zy-widget-v2 (min-width: 580px) {
    .zy-widget-v2.zy-articles-v2 .zy-articles-v2__track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
    .zy-widget-v2.zy-articles-v2 .zy-articles-v2__header h2 { font-size: 28px; }
}
@container zy-widget-v2 (min-width: 1000px) {
    .zy-widget-v2.zy-articles-v2 .zy-articles-v2__track { grid-auto-columns: calc((100% - 40px) / 3); }
    .zy-widget-v2.zy-articles-v2 .zy-articles-v2__header h2 { font-size: 32px; }
}
@container zy-widget-v2 (max-width: 360px) {
    .zy-widget-v2.zy-articles-v2 article.zy-result-v2 { padding: 18px 16px; }
    .zy-widget-v2.zy-articles-v2 .zy-result-v2__top p,
    .zy-widget-v2.zy-articles-v2 .zy-result-v2__top time { font-size: 12px; }
    .zy-widget-v2.zy-articles-v2 p.zy-result-v2__company { font-size: 16px; }
    .zy-widget-v2.zy-articles-v2 h3.zy-result-v2__amount { font-size: 28px; }
}
@media (hover: hover) {
    .zy-widget-v2.zy-articles-v2 :is(.zy-result-v2__link, .zy-articles-v2__all):hover { text-decoration-color: currentColor; }
    .zy-widget-v2.zy-articles-v2 .zy-articles-v2__controls button:hover { border-color: var(--zy-v2-accent); background: #eaf1f8; }
}

/* Team_v2: columns follow the containing post/details block, not the window. */
.zy-widget-v2.zy-team-v2 {
    container: zy-team-v2 / inline-size;
    display: block; width: 100%; max-width: 100%; min-width: 0;
    margin: 32px 0; padding: 8px 0; clear: both;
    border: 0; background: #fff; box-shadow: none;
}
.zy-widget-v2.zy-team-v2 .zy-team-v2__header {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 18px 24px; margin: 0 0 28px; padding: 0; border: 0; background: none;
}
.zy-widget-v2.zy-team-v2 .zy-team-v2__intro { flex: 1 1 100%; min-width: 0; }
.zy-widget-v2.zy-team-v2 .zy-team-v2__intro h2 {
    margin: 0; padding: 0; border: 0; background: none;
    color: var(--zy-v2-ink); font: 500 28px/1.15 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
    letter-spacing: -.03em; text-transform: none; overflow-wrap: anywhere; text-align: left;
}
.zy-widget-v2.zy-team-v2 .zy-team-v2__intro h2 :is(strong,b) { color: var(--zy-v2-accent); font-weight: inherit; }
.zy-widget-v2.zy-team-v2 p.zy-team-v2__description {
    margin: 16px 0 0; padding: 0; border: 0; background: none;
    color: var(--zy-v2-muted); font: 400 17px/1.5 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
    text-indent: 0; overflow-wrap: anywhere;
}
.zy-widget-v2.zy-team-v2 .zy-team-v2__controls { display: flex; align-items: center; flex-shrink: 0; gap: 16px; margin-left: auto; }
.zy-widget-v2.zy-team-v2 .zy-team-v2__controls[hidden] { display: none !important; }
.zy-widget-v2.zy-team-v2 .zy-team-v2__counter { color: var(--zy-v2-muted); font-size: 14px; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zy-widget-v2.zy-team-v2 .zy-team-v2__arrows { display: flex; gap: 8px; }
.zy-widget-v2.zy-team-v2 .zy-team-v2__arrows button {
    display: flex; align-items: center; justify-content: center; flex: 0 0 44px;
    width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
    border: 1px solid var(--zy-v2-border); border-radius: 8px; background: #fff; color: var(--zy-v2-accent);
    font: 400 25px/1 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
    box-shadow: none; transform: none; appearance: none; cursor: pointer;
}
.zy-widget-v2.zy-team-v2 .zy-team-v2__arrows button:disabled { opacity: .35; cursor: default; }
.zy-widget-v2.zy-team-v2 .zy-team-v2__arrows button::before,
.zy-widget-v2.zy-team-v2 .zy-team-v2__arrows button::after { content: none; }
.zy-widget-v2.zy-team-v2 ul.zy-team-v2__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px; align-items: stretch;
    position: relative; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 0 0 8px;
    list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.zy-widget-v2.zy-team-v2[data-zy-team-v2-ready] .zy-team-v2__track { scrollbar-width: none; }
.zy-widget-v2.zy-team-v2[data-zy-team-v2-ready] .zy-team-v2__track::-webkit-scrollbar { display: none; }
.zy-widget-v2.zy-team-v2 li.zy-team-v2__card {
    display: block; min-width: 0; max-width: none; width: auto; height: auto; min-height: 0;
    margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff;
    list-style: none; color: var(--zy-v2-ink); scroll-snap-align: start; overflow-wrap: anywhere; text-align: left;
}
.zy-widget-v2.zy-team-v2 li.zy-team-v2__card::before,
.zy-widget-v2.zy-team-v2 li.zy-team-v2__card::after { display: none; content: none; }
.zy-widget-v2.zy-team-v2 .zy-team-v2__portrait { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--zy-v2-soft); }
.zy-widget-v2.zy-team-v2 .zy-team-v2__portrait img {
    display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0;
    object-fit: cover; object-position: 50% 8%; border-radius: 0; box-shadow: none;
}
.zy-widget-v2.zy-team-v2 .zy-team-v2__content { padding-top: 18px; }
.zy-widget-v2.zy-team-v2 h3.zy-team-v2__name {
    margin: 0; padding: 0; border: 0; background: none;
    color: var(--zy-v2-ink); font: 500 23px/1.2 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
    letter-spacing: -.02em; text-transform: none;
}
.zy-widget-v2.zy-team-v2 p.zy-team-v2__post {
    margin: 6px 0 0; padding: 0; border: 0; background: none; text-indent: 0;
    color: var(--zy-v2-muted); font: 400 16px/1.4 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
}
.zy-widget-v2.zy-team-v2 p.zy-team-v2__experience {
    display: inline-block; max-width: 100%; margin: 16px 0 0; padding: 6px 10px; border: 0; border-radius: 5px; text-indent: 0;
    background: var(--zy-v2-soft); color: var(--zy-v2-accent); font: 400 15px/1.4 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
}
.zy-widget-v2.zy-team-v2 .zy-team-v2__role {
    margin: 20px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--zy-v2-border); background: none;
    color: var(--zy-v2-muted); font: 400 17px/1.5 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
}
.zy-widget-v2.zy-team-v2 .zy-team-v2__qualification {
    margin: 16px 0 0; padding: 0 0 0 12px; border: 0; border-left: 2px solid var(--zy-v2-border); background: none;
    color: var(--zy-v2-muted); font: 400 15px/1.5 "ZY Widgets V2", "Inter Tight", Arial, sans-serif;
}
.zy-widget-v2.zy-team-v2 li.zy-team-v2__card--no-photo { padding: 20px; border-top: 2px solid var(--zy-v2-accent); border-radius: 8px; background: var(--zy-v2-soft); }
.zy-widget-v2.zy-team-v2 .zy-team-v2__card--no-photo .zy-team-v2__content { padding-top: 0; }
.zy-widget-v2.zy-team-v2--empty { padding: 20px; border: 1px solid var(--zy-v2-border); border-radius: 8px; font-size: 15px; }
@container zy-team-v2 (min-width: 540px) {
    .zy-widget-v2.zy-team-v2 ul.zy-team-v2__track { grid-auto-columns: calc((100% - 20px) / 2); }
    .zy-widget-v2.zy-team-v2 .zy-team-v2__intro h2 { font-size: 32px; }
}
@container zy-team-v2 (min-width: 820px) {
    .zy-widget-v2.zy-team-v2 ul.zy-team-v2__track { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; }
    .zy-widget-v2.zy-team-v2 .zy-team-v2__intro { flex-basis: 60%; }
    .zy-widget-v2.zy-team-v2 .zy-team-v2__intro h2 { font-size: 36px; }
    .zy-widget-v2.zy-team-v2 p.zy-team-v2__description { font-size: 18px; }
}
@container zy-team-v2 (min-width: 1120px) {
    .zy-widget-v2.zy-team-v2 ul.zy-team-v2__track { grid-auto-columns: calc((100% - 72px) / 4); }
    .zy-widget-v2.zy-team-v2 .zy-team-v2__intro h2 { font-size: 42px; }
    .zy-widget-v2.zy-team-v2 p.zy-team-v2__description { font-size: 20px; }
}
@media (hover: hover) {
    .zy-widget-v2.zy-team-v2 .zy-team-v2__arrows button:not(:disabled):hover { background: var(--zy-v2-soft); border-color: var(--zy-v2-accent); }
}
@media (prefers-reduced-motion: reduce) {
    .zy-widget-v2.zy-team-v2 .zy-team-v2__track { scroll-behavior: auto; }
}
