/* Reading layout shared by every site and language. */
.article-page { padding-block: 2rem 3rem; }
.article-breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.article-breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.article-breadcrumb svg { flex: none; }
.article-title { margin: 0 0 1.25rem; color: #0f172a; font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.article-summary { padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border-left: 3px solid var(--color-brand, #007d3a); border-radius: 0 .5rem .5rem 0; background: #edf4f0; }
.article-summary p { margin: 0; color: #334155; font-size: 1.125rem; line-height: 1.65; overflow-wrap: anywhere; }
.article-hero { display: block; width: 100%; height: 18rem; margin: 0 auto 2rem; border-radius: .75rem; object-fit: cover; }
.article-back-link { min-height: 2.75rem; }
.article-page a:focus-visible, .article-table-scroll:focus-visible { outline: 3px solid var(--color-brand, #007d3a); outline-offset: 4px; }
.article-content { display: flow-root; overflow-wrap: anywhere; }
.article-table-scroll { max-width: 100%; margin: 1.5em 0; overflow-x: auto; border-radius: .75rem; -webkit-overflow-scrolling: touch; }
.article-content .article-table-scroll table { margin: 0; }
@media (max-width: 640px) {
    .article-page { padding-block: 1rem 2rem; }
    .article-breadcrumb { margin-bottom: 1rem; }
    .article-breadcrumb__current { display: none; }
    .article-title { font-size: 1.625rem; line-height: 1.25; margin-bottom: 1rem; }
    .article-summary { padding: 1rem; margin-bottom: 1.25rem; }
    .article-summary p { font-size: 1rem; line-height: 1.65; }
    .article-hero { height: auto; max-height: 12rem; aspect-ratio: 2; margin-bottom: 1.5rem; }
    .article-meta { gap: .5rem 1rem; }
}

.article-symbol-hero { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.article-symbol-hero img { display: block; width: 160px; height: 160px; max-width: 100%; object-fit: contain; }
@media (max-width: 640px) {
    .article-symbol-hero img { width: 128px; height: 128px; }
}

/* Article content typography - best practices */
.article-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #334155;
}

.article-content > * + * {
    margin-top: 1.25em;
}

.article-content p {
    margin-bottom: 1.25em;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.article-content ul, .article-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5em;
    padding-left: 0.375em;
}

.article-content li::marker {
    color: #00A64D;
}

.article-content strong {
    font-weight: 600;
    color: #0f172a;
}

.article-content a {
    color: #00A64D;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: #007D3A;
}

.article-content blockquote {
    border-left: 4px solid #00A64D;
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: #475569;
}

/* Lietuvos dygliuotų padangų straipsnio KET ženklo paaiškinimas. */
.article-content .studded-sign-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    margin: 1.5em 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #00A64D;
    border-radius: 0.75rem;
}

.article-content .studded-sign-card img {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    height: 5.5rem;
    max-height: none;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
}

.article-content .studded-sign-card p {
    margin: 0;
}

.article-content .studded-sign-card p + p {
    margin-top: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

@media (max-width: 520px) {
    .article-content .studded-sign-card {
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .article-content .studded-sign-card img {
        flex-basis: 4.5rem;
        width: 4.5rem;
        height: 4.5rem;
    }
}

.article-content img {
    border-radius: 0.75rem;
    /* Seni Magento blog'o paveikslėliai būna bet kokių proporcijų: siauri
       portretai (439x673), aukštos lentelės (497x850), logo juostos (653x221).
       Taisyklės: centruojama; plotis ribojamas kolona; AUKŠTIS ribojamas
       ~26rem — kitaip portretinis paveikslėlis užima pusę ekrano teksto
       viduryje (2026-08-10 Martyno pastaba „proporcijos nesąmoningos").
       width/height:auto išlaiko proporcijas abiem kryptim. */
    display: block;
    max-width: 100%;
    max-height: 26rem;
    width: auto;
    height: auto;
    margin: 1.5em auto;
}

/* Siauras portretas įvyniojamas į tekstą (Martyno pastaba: „foto kairėje arba
   dešinėje ir šiek tiek teksto šone, o ne kaip blynas viduryje"). Klasė dedama
   turinio <figure> elementui; numatytoji pusė — dešinė, .left — kairė.
   Antraštės nulaužia apiplaukimą, kad kita sekcija prasidėtų nuo švaraus krašto;
   mobiliame float išjungiamas — siaurame ekrane šone teksto nebelieka. */
.article-content figure.img-side {
    float: right;
    max-width: 44%;
    margin: 0.25em 0 1em 1.75em;
}
.article-content figure.img-side.left {
    float: left;
    margin: 0.25em 1.75em 1em 0;
}
.article-content figure.img-side img {
    margin: 0;
    max-height: 22rem;
}
.article-content h2, .article-content h3 {
    clear: both;
}
.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: -0.75em;
    margin-bottom: 1.5em;
}
@media (max-width: 640px) {
    .article-content figure.img-side,
    .article-content figure.img-side.left {
        float: none;
        max-width: 100%;
        margin: 1.5em 0;
    }
    .article-content figure.img-side img {
        margin: 0 auto;
    }
}

.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border: 1px solid #e2e8f0;
    -webkit-overflow-scrolling: touch;
}

.article-content th, .article-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    min-width: 6rem;
    overflow-wrap: normal;
    word-break: normal;
}

.article-content th {
    background-color: #00A64D;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content tbody tr {
    transition: background-color 0.15s ease;
}

.article-content tbody tr:hover {
    background-color: #f8fafc;
}

.article-content tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.article-content tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 640px) {
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-content table {
        font-size: 0.875rem;
        line-height: 1.45;
    }

    .article-content th,
    .article-content td {
        padding: 0.625rem 0.75rem;
    }
}

/* Technical markings must stay legible, including labels near image edges. */
.article-hero--diagram { width: auto; max-width: 100%; height: auto; max-height: 26rem; aspect-ratio: auto; object-fit: contain; }
.article-related-image { width: 4rem; height: 4rem; flex: none; border-radius: .5rem; object-fit: cover; }
.article-related-image--diagram { padding: .25rem; background: #fff; object-fit: contain; }
@media (max-width: 640px) {
    .article-hero--diagram { max-height: 18rem; }
    .article-content .studded-sign-card { flex-direction: column; }
}
