/*
 * Article content styles (.prose) — shared by the frontend article page and the TinyMCE editor.
 * Values follow cosmodatapro-static. Theme tokens come from the site stylesheet;
 * the fallbacks below are the static light theme, so the editor renders without it.
 *
 * Markup (see admin TinyMCE styles):
 *   p.intro, p.slogan, h2 (auto-numbered 01, 02...), h3
 *   ul.chips, ul.ticks, ul.flow, ul.flow.plus  > li
 *   ul.benefits, ul.features > li > strong (title) + br + text
 */

.prose {
    counter-reset: sec;
    font-size: 17px;
    line-height: 1.7;
    color: #24324f;
}

/* Block rhythm (static: flex column with gap 16px) */
.prose > * { margin: 0; }
.prose > * + * { margin-top: 16px; }

.prose p { max-width: 72ch; }
.prose a { color: var(--accent, #2a4ba8); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-2, #1b3480); }

.prose .intro { font-size: 19px; line-height: 1.65; color: var(--ink, #0b1b3a); }
.prose > .intro + .intro { margin-top: 12px; }

/* Headings */
.prose h2,
.prose h3 { font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--ink, #0b1b3a); }

.prose h2 {
    counter-increment: sec;
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: clamp(24px, 2.6vw, 30px);
    scroll-margin-top: 96px;
    text-wrap: balance;
}
.prose > h2 { margin-top: 32px; }
.prose > * + h2 { margin-top: 48px; }
.prose h2::before {
    content: counter(sec, decimal-leading-zero);
    flex: none;
    padding-top: 6px;
    border-top: 2px solid var(--accent, #2a4ba8);
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--accent, #2a4ba8);
}

.prose h3 { font-size: 20px; }
.prose > * + h3 { margin-top: 40px; }

/* Plain lists (no style chosen) */
.prose ul:not([class]),
.prose ol { padding-left: 1.4em; }
.prose ul:not([class]) { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul:not([class]) > li + li,
.prose ol > li + li { margin-top: 4px; }

/* Styled lists: reset */
.prose ul[class] { list-style: none; padding: 0; }

/* Chips */
.prose ul.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prose ul.chips > li,
.prose ul.flow > li {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--line, #e3e8f2);
    border-radius: 999px;
    background: var(--soft, #f3f6fb);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink, #0b1b3a);
}

/* Flow: Step → Step → Step (ul.flow.plus: Step + Step) */
.prose ul.flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--navy, #0b1b3a);
}
.prose ul.flow > li {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(159, 182, 255, .35);
    color: #fff;
}
.prose ul.flow > li + li { position: relative; margin-left: 26px; }
.prose ul.flow > li + li::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: var(--pale, #9fb6ff);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose ul.flow.plus > li + li::before {
    content: "+";
    height: auto;
    background: none;
    -webkit-mask: none;
            mask: none;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    color: var(--pale, #9fb6ff);
}

/* Check icon (benefits, ticks) */
.prose ul.benefits > li::before,
.prose ul.ticks > li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    background: var(--accent, #2a4ba8);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Ticks: ✓ item */
.prose ul.ticks { display: flex; flex-direction: column; gap: 10px; }
.prose ul.ticks > li { position: relative; padding-left: 32px; }
.prose ul.ticks > li::before { top: 3px; }

/* Card lists: title (first strong) + text; the <br> after the title is only for the editor */
.prose ul.benefits > li > strong:first-child,
.prose ul.features > li > strong:first-child { display: block; font-weight: 800; color: var(--ink, #0b1b3a); }
.prose ul.benefits > li > strong:first-child + br,
.prose ul.features > li > strong:first-child + br { display: none; }

/* Benefits: soft panel, ✓ + title + text */
.prose ul.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    background: var(--soft, #f3f6fb);
}
.prose ul.benefits > li { position: relative; padding-left: 34px; font-size: 15px; line-height: 1.55; color: var(--muted, #4a5878); }
.prose ul.benefits > li::before { top: 2px; }
.prose ul.benefits > li > strong:first-child { font-size: 16px; line-height: 1.35; }

/* Features: cards with accent bar */
.prose ul.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}
.prose ul.features > li {
    padding: 20px;
    border: 1px solid var(--line, #e3e8f2);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted, #4a5878);
}
.prose ul.features > li > strong:first-child { margin-bottom: 8px; font-size: 17px; line-height: 1.3; }
.prose ul.features > li > strong:first-child::before {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    margin-bottom: 12px;
    border-radius: 2px;
    background: var(--accent, #2a4ba8);
}

/* Card lists sit 8px further from their neighbours (static: margin 8px 0) */
.prose > ul.benefits,
.prose > ul.features,
.prose > ul.benefits + *,
.prose > ul.features + * { margin-top: 24px; }
.prose > ul.benefits + h2,
.prose > ul.features + h2 { margin-top: 56px; }
.prose > ul.benefits + h3,
.prose > ul.features + h3,
.prose > ul.benefits + .slogan,
.prose > ul.features + .slogan { margin-top: 48px; }

/* Slogan */
.prose .slogan {
    max-width: none;
    padding: 24px 28px;
    border-radius: 14px;
    background: var(--navy, #0b1b3a);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}
.prose > .slogan { margin-top: 40px; }

/* Dark theme (tokens are switched by the site stylesheet) */
:root[data-theme="dark"] .prose { color: #c6cdd8; }
:root[data-theme="dark"] .prose ul.features > li { background: #151a21; }

/* Quote: <blockquote class="quote"><p>…</p><footer>Name</footer></blockquote> */
.prose blockquote.quote {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 26px;
    border-left: 3px solid var(--accent, #2a4ba8);
    border-radius: 0 8px 8px 0;
    background: var(--soft, #f3f6fb);
}
.prose blockquote.quote p { max-width: none; font-size: 16px; line-height: 1.7; color: var(--ink, #0b1b3a); }
.prose blockquote.quote footer { font-size: 15px; font-weight: 700; color: var(--ink, #0b1b3a); }
.prose blockquote.quote footer::before { content: "— "; }

/* Timeline: <ol class="timeline"><li><b>Year</b><span>Text</span></li>…</ol> (TinyMCE saves <b> as <strong>) */
.prose ol.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}
.prose ol.timeline > li { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-top: 10px; border-top: 2px solid var(--accent, #2a4ba8); }
.prose ol.timeline > li > b,
.prose ol.timeline > li > strong { font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace); font-size: 15px; font-weight: 500; color: var(--accent, #2a4ba8); }
.prose ol.timeline > li > span { font-size: 14px; line-height: 1.45; color: var(--muted, #4a5878); }

/* Org chart: div.org > div.org-top + div.org-grid > div.org-col > (b + ul) */
.prose .org { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.prose .org-top {
    padding: 12px 28px;
    border-radius: 8px;
    background: var(--accent, #2a4ba8);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.prose .org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; width: 100%; }
.prose .org-col { padding: 14px 16px; border: 1px solid var(--line, #e3e8f2); border-top: 3px solid var(--accent, #2a4ba8); border-radius: 6px; background: var(--soft, #f3f6fb); }
.prose .org-col > b,
.prose .org-col > strong { display: block; margin-bottom: 8px; font-size: 14.5px; line-height: 1.3; color: var(--ink, #0b1b3a); }
.prose .org-col ul { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.prose .org-col li { margin: 0; padding-left: 10px; border-left: 2px solid var(--line, #e3e8f2); font-size: 13.5px; line-height: 1.35; color: var(--muted, #4a5878); }
:root[data-theme="dark"] .prose .org-top { color: #0b0e13; }

/* ------------------------------------------------------------------
 * About Us articles (36-45). Moved from site.css and scoped to .prose, so the editor shows them too;
 * they also cover the About page (pages/{lang}/about.view.php), whose content sits in .prose.
 * TinyMCE saves <b> as <strong> and unwraps <span> without attributes, so the text styles are set on
 * the container and the label is strong/b.
 */

/* Timeline: after an edit «<li><strong>1991</strong>Text</li>» (the span is unwrapped) */
.prose ol.timeline > li { font-size: 14px; line-height: 1.45; color: var(--muted, #4a5878); }

/* Link cards: div.cards-text.two > a.tcard > h3 + p + span.link-arrow */
.prose .cards-text { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.prose .cards-text.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.prose a.tcard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line, #e3e8f2);
    border-radius: var(--radius, 14px);
    background: #fff;
    color: var(--ink, #0b1b3a);
    text-decoration: none;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.prose a.tcard:hover { color: var(--ink, #0b1b3a); border-color: #c7d2ec; box-shadow: 0 18px 40px rgba(11, 27, 58, .10); transform: translateY(-2px); }
.prose a.tcard > * { margin: 0; }
.prose a.tcard h3 { font-size: 19px; }
.prose a.tcard p { font-size: 15px; line-height: 1.55; color: var(--muted, #4a5878); }
.prose a.tcard .link-arrow { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 700; color: var(--accent, #2a4ba8); }

/* Technology partners: div.pgroup > h3 + p.pintro + div.pgrid > div.pcard > div.plogo > img, strong, p */
.prose .pgroup { margin-top: 32px; scroll-margin-top: 96px; }
.prose .pgroup > * { margin: 0; }
.prose .pgroup h3 { font-size: 19px; line-height: 1.3; }
.prose .pgroup .pintro { margin-top: 6px; font-size: 15px; color: var(--muted, #4a5878); }
.prose .pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 16px; }
.prose .pcard { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line, #e3e8f2); border-radius: 8px; background: #fff; }
.prose .pcard > * { margin: 0; }
.prose .pcard .plogo { display: flex; align-items: center; height: 48px; }
.prose .pcard .plogo img { display: block; max-width: 100%; opacity: .85; }
.prose .pcard > b,
.prose .pcard > strong { font-size: 15px; color: var(--ink, #0b1b3a); }
.prose .pcard p { font-size: 14px; line-height: 1.55; color: var(--muted, #4a5878); }

/* Group companies: div.group-grid > a.gcard (div.gcard without link) > div.glogo > img
   + div.gband.g-{brand} > span.gyear + strong + span.gtext + span.gurl */
.prose .group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.prose > .group-grid,
.prose > .group-grid + * { margin-top: 24px; }
.prose .gcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line, #e3e8f2); border-radius: 10px; background: #fff; }
.prose a.gcard { color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.prose a.gcard:hover { color: inherit; box-shadow: 0 14px 32px rgba(11, 27, 58, .14); transform: translateY(-2px); }
.prose .gcard .glogo { display: flex; align-items: center; justify-content: center; height: 118px; padding: 18px 22px; background: #fff; }
.prose .gcard .glogo img { display: block; width: auto; height: auto; max-width: 88%; max-height: 62px; }
.prose .gcard .gband { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; font-size: 14.5px; line-height: 1.45; }
.prose .gcard .gband > b,
.prose .gcard .gband > strong { font-size: 16px; }
.prose .gcard .gyear { font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace); font-size: 12px; letter-spacing: .12em; opacity: .85; }
.prose .gcard .gurl { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
/* Brand colours (were inline styles on the About page; the editor removes inline styles) */
.prose .gband.g-cosmodata { background: #28409a; color: #fff; }
.prose .gband.g-greentech { background: #227e34; color: #fff; }
.prose .gband.g-neagi     { background: #67ba2a; color: #10240a; }
.prose .gband.g-paleta    { background: #890607; color: #fff; }
.prose .gband.g-hyundai   { background: #0f6fb0; color: #fff; }
.prose .gband.g-ultima    { background: #f6a229; color: #2a1a02; }
.prose .group-outro { font-size: 17px; line-height: 1.65; color: var(--ink, #0b1b3a); }

/* Company details: ul.info-grid > li > strong (label) + br + value (About page: div > b + span) */
.prose .info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.prose .info-grid > * {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line, #e3e8f2);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink, #0b1b3a);
}
.prose .info-grid > * > b,
.prose .info-grid > * > strong { font-size: 13px; font-weight: 600; color: var(--muted, #4a5878); }

/* Stores: ul.stores > li > strong (city) + br + address */
.prose ul.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.prose ul.stores > li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line, #e3e8f2);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    color: var(--muted, #4a5878);
}
.prose ul.stores > li > b,
.prose ul.stores > li > strong { font-size: 16px; color: var(--ink, #0b1b3a); }

/* The <br> after the label is only for the editor */
.prose .info-grid br,
.prose ul.stores br { display: none; }

:root[data-theme="dark"] .prose .pcard { background: #151a21; }
:root[data-theme="dark"] .prose .pcard .plogo img { filter: invert(1); opacity: .88; }
:root[data-theme="dark"] .prose .gcard { border-color: #262d38; }
