/* Country weapons block ("Rusko oružje") - single weapon pages, between Galerija and Izvori i poveznice.
   Colours come from the theme variables (--panel, --gold, --text, --muted, --border). */
.pcw {
    margin: 24px 0 28px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
/* The theme styles every img, h2, ul, li and a inside .encyclopedia-body (frame, padding, underline, margins).
   The rules below are prefixed with .pcw so they win over those without touching the theme CSS. */
.pcw .pcw-flag, .pcw .pcw-cat-icon, .pcw .pcw-pic img {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.pcw .pcw-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}
.pcw .pcw-title {
    margin: 0;
    position: static;
    padding: 0;
    border: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text);
}
.pcw .pcw-title::before, .pcw .pcw-title::after { content: none; }
.pcw .pcw-title-first { color: var(--gold); }
.pcw .pcw-flag {
    display: block;
    width: 36px;
    height: 27px;
    object-fit: cover;
    border-radius: 2px;
    flex: none;
}
.pcw .pcw-row {
    display: grid;
    grid-template-columns: 205px 220px minmax(0, 1fr);
    align-items: stretch;
    border-top: 1px solid var(--border);
}
.pcw .pcw-head + .pcw-row { border-top: 0; }
.pcw .pcw-cat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border-right: 1px solid var(--border);
}
.pcw .pcw-cat-label {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--gold);
}
.pcw .pcw-cat-icon { display: block; width: auto; height: 20px; max-width: 90px; opacity: .85; }
.pcw .pcw-pic {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-right: 1px solid var(--border);
}
.pcw .pcw-pic a { display: flex; align-items: center; justify-content: center; width: 100%; }
.pcw .pcw-list {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    margin: 0;
    padding: 8px 16px;
    list-style: none;
    row-gap: 2px;
}
.pcw .pcw-list li {
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.5;
}
.pcw .pcw-list li + li::before {
    content: "\2022";
    margin: 0 9px;
    color: var(--gold);
}
.pcw .pcw-list a { color: var(--text); text-decoration: none; }
.pcw .pcw-list a:hover { color: var(--gold); }
.pcw .pcw-list li.is-current a { color: var(--gold); font-weight: 600; }
.pcw .pcw-pic img, .pcw .pcw-pic canvas { display: block; width: 100%; height: 64px; object-fit: contain; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
/* Fallback picture (used only when no weapon of the row has an infobox image): its dark backdrop blends into the panel. */
.pcw .pcw-pic .pcw-pic-default { mix-blend-mode: lighten; }
@media (max-width: 760px) {
    .pcw .pcw-title { font-size: 21px; }
    .pcw .pcw-row { grid-template-columns: 1fr 150px; }
    .pcw .pcw-cat { grid-column: 1; flex-direction: row; align-items: center; gap: 10px; border-right: 0; padding: 8px 14px 0; }
    .pcw .pcw-pic { grid-column: 2; grid-row: 1 / span 2; border-right: 0; border-left: 1px solid var(--border); }
    .pcw .pcw-pic img, .pcw .pcw-pic canvas { height: 52px; }
    .pcw .pcw-list { grid-column: 1; padding: 4px 14px 8px; }
    .pcw .pcw-list li { font-size: 16px; }
}
@media (max-width: 480px) {
    .pcw .pcw-row { grid-template-columns: 1fr; }
    .pcw .pcw-pic, .pcw .pcw-list, .pcw .pcw-cat { grid-column: 1; grid-row: auto; }
    .pcw .pcw-pic { justify-content: flex-start; border-left: 0; }
    .pcw .pcw-pic a { justify-content: flex-start; }
    .pcw .pcw-pic img, .pcw .pcw-pic canvas { width: 140px; }
}
