/* Firmenny article pages */
.afina-firm-article {
    --af-art-brown: #8b3e2f;
    --af-art-line: #eadfd7;
    --af-art-text: #322b28;
    --af-art-muted: #70645e;
    max-width: 920px;
    margin: 0 auto 10px;
    font-family: Arial, Helvetica, sans-serif;
}
.afina-firm-article *,
.afina-firm-article *::before,
.afina-firm-article *::after { box-sizing: border-box; }
.afina-firm-article__hero {
    padding: 18px 18px 15px;
    border: 1px solid #efe5dd;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, #fdfbf9 0%, #fbf8f5 100%);
    text-align: center;
}
.afina-firm-article__kicker {
    margin-bottom: 5px;
    color: #9a6a54;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.3;
    text-transform: uppercase;
}
.afina-firm-article__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #322b28;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}
.afina-firm-article__title::before,
.afina-firm-article__title::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    flex: 0 0 auto;
    border-radius: 2px;
    background: var(--af-art-brown);
    opacity: .7;
}
.afina-firm-article__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 9px;
}
.afina-firm-article__meta-item {
    padding: 3px 8px;
    border: 1px solid #e8d8ce;
    border-radius: 999px;
    background: #fff9f4;
    color: #70483a;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.35;
}
.afina-firm-article__content {
    padding: 12px 14px 14px;
    border: 1px solid #efe5dd;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fbf8f5;
}
.afina-firm-article__content .item-page,
.afina-firm-article__content .blog {
    margin: 0;
    padding: 0;
}
.afina-firm-article__content .item-page > .article-bg,
.afina-firm-article__content .blog .article-bg {
    padding: 13px 14px 12px;
    overflow: hidden;
    border: 1px solid var(--af-art-line);
    border-top: 3px solid var(--af-art-brown);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(80, 48, 36, .045);
}
.afina-firm-article__content .item-page > .article-bg > h2:first-child { display: none; }
.afina-firm-article__content .article-bg > p,
.afina-firm-article__content .article-bg > div:not(.jcomments-links):not(#jc),
.afina-firm-article__content .article-bg > ul,
.afina-firm-article__content .article-bg > ol {
    color: #5d524d;
    font-size: 13px;
    line-height: 1.6;
    text-align: left !important;
}
.afina-firm-article__content .article-bg > p {
    margin: 0 0 9px;
    padding: 0;
}
.afina-firm-article__content .article-bg > p:first-of-type {
    color: #473d38;
    font-size: 13.5px;
    line-height: 1.62;
}
.afina-firm-article__content .article-bg > p span,
.afina-firm-article__content .article-bg > ul span,
.afina-firm-article__content .article-bg > ol span {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: inherit !important;
    line-height: inherit !important;
}
.afina-firm-article__content .article-bg > ul,
.afina-firm-article__content .article-bg > ol {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}
.afina-firm-article__content .article-bg > ul li,
.afina-firm-article__content .article-bg > ol li {
    position: relative;
    margin: 0 0 5px;
    padding-left: 13px;
    color: #5d524d;
    font-size: 12.5px;
    line-height: 1.52;
}
.afina-firm-article__content .article-bg > ul li::before,
.afina-firm-article__content .article-bg > ol li::before {
    content: "";
    position: absolute;
    top: .63em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b77b68;
}
.afina-firm-article__content .article-bg img {
    display: block;
    width: auto;
    max-width: 100% !important;
    height: auto !important;
    margin: 10px auto;
    float: none !important;
    border-radius: 10px;
}
.afina-firm-article__content .article-bg h1,
.afina-firm-article__content .article-bg h2,
.afina-firm-article__content .article-bg h3 {
    color: #8b3e2f;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.3;
}
.afina-firm-article__content .article-bg h1 { margin: 0 0 10px; font-size: 17px; }
.afina-firm-article__content .article-bg h2 { margin: 0 0 9px; font-size: 16px; }
.afina-firm-article__content .article-bg h3 { margin: 0; font-size: 12.5px; }
.afina-firm-article__content .article-bg strong { color: #3d332e; font-weight: 700; }
.afina-firm-article__content .article-bg em { color: #5d524d; }
.afina-firm-article__content .article-bg blockquote {
    margin: 8px 0;
    padding: 9px 10px;
    border-left: 3px solid #c49a84;
    border-radius: 0 8px 8px 0;
    background: #fdf8f4;
    color: #5d524d;
    font-size: 12px;
    line-height: 1.5;
}
.afina-firm-article__content .article-bg > table {
    display: block;
    width: 100% !important;
    margin: 10px 0 0;
    border: 0;
    border-collapse: separate;
}
.afina-firm-article__content .article-bg > table tbody {
    display: grid;
    gap: 7px;
}
.afina-firm-article__content .article-bg > table tr:not(:has(a)) { display: none !important; }
.afina-firm-article__content .article-bg > table tr {
    display: grid;
    min-width: 0;
    min-height: 52px;
    height: auto !important;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid #eadfd7;
    border-radius: 8px;
    background: #fdfbf9;
}
.afina-firm-article__content .article-bg > table td {
    display: flex !important;
    align-items: center;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: middle;
    text-align: left !important;
}
.afina-firm-article__content .article-bg > table td:first-child { justify-content: center; text-align: center !important; }
.afina-firm-article__content .article-bg > table td:last-child {
    display: flex !important;
    align-items: center;
    min-width: 0;
    font-size: 12px !important;
    line-height: 1.38 !important;
    overflow-wrap: anywhere;
}
.afina-firm-article__content .article-bg > table td:last-child > span,
.afina-firm-article__content .article-bg > table td:last-child > span a {
    display: block;
    width: 100%;
    color: #3d332e !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.38 !important;
    text-decoration: none !important;
}
.afina-firm-article__content .article-bg > table td img {
    width: 30px !important;
    height: 30px !important;
    margin: 0 auto;
    border-radius: 4px;
}
.afina-firm-article__content .article-bg > table h3,
.afina-firm-article__content .article-bg > table h3 span {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.38 !important;
}
.afina-firm-article__content .article-bg > table a {
    color: #3d332e;
    text-decoration: none;
}
.afina-firm-article__content .article-bg > table a:hover,
.afina-firm-article__content .article-bg > table a:focus {
    color: #8b3e2f;
    text-decoration: underline;
}
.afina-firm-article__content .blog .items-leading,
.afina-firm-article__content .blog .items-row,
.afina-firm-article__content .blog > .item {
    display: block;
    width: 100% !important;
    margin: 0 0 9px;
    padding: 0;
    float: none !important;
    clear: both;
}
.afina-firm-article__content .blog > .item,
.afina-firm-article__content .blog .item {
    width: 100% !important;
    margin: 0 0 9px;
    padding: 0;
    float: none !important;
}
.afina-firm-article__content .blog .item-separator,
.afina-firm-article__content .blog .row-separator { display: none; }
.afina-firm-article__content .blog-item-title {
    margin: 0 0 9px;
    padding: 0 0 8px;
    border-bottom: 1px solid #f0e7e1;
    color: #8b3e2f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
}
.afina-firm-article__content .blog-item-title a { color: inherit; text-decoration: none; }
.afina-firm-article__content .blog-item-title a:hover { text-decoration: underline; }
.afina-firm-article__content .blog .article-bg > p { margin: 0 0 7px; }
.afina-firm-article--licenses .blog .article-bg > p { text-align: center !important; }
.afina-firm-article--licenses .blog .article-bg img {
    width: 100% !important;
    max-width: 420px !important;
    margin: 6px auto;
    border: 1px solid #eadfd7;
    border-radius: 8px;
}
.afina-firm-article__content .jcomments-links { margin-top: 9px; }
.afina-firm-article__content .jcomments-links a {
    color: #8b3e2f;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}
.afina-firm-article__content .jcomments-links a:hover { text-decoration: underline; }
@media (max-width: 520px) {
    .afina-firm-article__hero { padding: 14px 12px 12px; border-radius: 13px 13px 0 0; }
    .afina-firm-article__title { gap: 7px; font-size: 16px; letter-spacing: .025em; }
    .afina-firm-article__title::before,
    .afina-firm-article__title::after { width: 15px; }
    .afina-firm-article__content { padding: 10px 10px 11px; border-radius: 0 0 13px 13px; }
    .afina-firm-article__content .item-page > .article-bg,
    .afina-firm-article__content .blog .article-bg { padding: 11px 11px 10px; }
    .afina-firm-article__content .article-bg > p,
    .afina-firm-article__content .article-bg > div:not(.jcomments-links):not(#jc) { font-size: 12.5px; }
    .afina-firm-article__content .article-bg img { margin: 8px auto; }
    .afina-firm-article__content .article-bg > table tr { grid-template-columns: 34px minmax(0, 1fr); gap: 7px; padding: 6px 7px; }
    .afina-firm-article__content .article-bg > table td img { width: 27px !important; height: 27px !important; }
}
/* Official documents accordion */
.afina-firm-article .afina-official-title {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    color: #322b28;
    font-size: 17px;
    line-height: 1.3;
    text-align: center;
}
.afina-firm-article .afina-official-intro {
    margin: 0 0 12px;
    color: #70645e;
    font-size: 12px;
    line-height: 1.45;
    text-align: center !important;
}
.afina-official-accordion { display: grid; gap: 8px; }
.afina-official-group {
    overflow: hidden;
    border: 1px solid #eadfd7;
    border-top: 3px solid #8b3e2f;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(80, 48, 36, .04);
}
.afina-official-group[open] { border-color: #dfcfc4; box-shadow: 0 3px 9px rgba(80, 48, 36, .07); }
.afina-official-group__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 15px;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    cursor: pointer;
    list-style: none;
    outline: none;
    background: #fff;
    transition: background-color .2s ease;
}
.afina-official-group__summary::-webkit-details-marker { display: none; }
.afina-official-group__summary:hover,
.afina-official-group__summary:focus-visible { background: #fcf7f3; }
.afina-official-group[open] > .afina-official-group__summary { border-bottom: 1px solid #f0e6df; background: #fcf7f3; }
.afina-official-group__title {
    color: #8b3e2f;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.afina-official-group__count {
    color: #8b7d74;
    font-size: 9.5px;
    line-height: 1.3;
    white-space: nowrap;
}
.afina-official-group__chevron {
    width: 8px;
    height: 8px;
    margin: 0 2px 3px 1px;
    border-right: 2px solid #a98d7e;
    border-bottom: 2px solid #a98d7e;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.afina-official-group[open] .afina-official-group__chevron { margin-bottom: -3px; transform: rotate(225deg); }
.afina-official-group__docs { padding: 4px 10px 7px; }
.afina-official-doc {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f3ebe6;
    color: #3d332e;
    text-decoration: none;
}
.afina-official-doc:last-child { border-bottom: 0; }
.afina-official-doc:hover .afina-official-doc__name,
.afina-official-doc:focus .afina-official-doc__name { color: #8b3e2f; text-decoration: underline; }
.afina-official-doc__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 6px;
    background: linear-gradient(145deg, #a94d38, #7c3125);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
}
.afina-official-doc__name {
    color: #4c423d;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
@media (max-width: 520px) {
    .afina-firm-article .afina-official-title { font-size: 16px; }
    .afina-firm-article .afina-official-intro { font-size: 11.5px; }
    .afina-official-group__summary { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 6px; padding: 8px 9px; }
    .afina-official-group__title { font-size: 11px; }
    .afina-official-group__count { font-size: 9px; }
    .afina-official-group__docs { padding: 3px 9px 5px; }
    .afina-official-doc { grid-template-columns: 31px minmax(0, 1fr); gap: 7px; padding: 6px 0; }
    .afina-official-doc__type { width: 29px; height: 29px; }
    .afina-official-doc__name { font-size: 11px; }
}
/* Universal text formatting for Joomla articles */
.afina-firm-article__content .article-bg {
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.afina-firm-article__content .article-bg > h1,
.afina-firm-article__content .article-bg > h2,
.afina-firm-article__content .article-bg > h3,
.afina-firm-article__content .article-bg > h4 {
    margin-top: 14px;
    margin-bottom: 7px;
}

.afina-firm-article__content .article-bg > h1:first-child,
.afina-firm-article__content .article-bg > h2:first-child,
.afina-firm-article__content .article-bg > h3:first-child,
.afina-firm-article__content .article-bg > h4:first-child {
    margin-top: 0;
}

.afina-firm-article__content .article-bg > p + p,
.afina-firm-article__content .article-bg > div + p,
.afina-firm-article__content .article-bg > p + div {
    margin-top: 8px;
}

.afina-firm-article__content .article-bg > ul,
.afina-firm-article__content .article-bg > ol {
    margin-top: 8px;
    margin-bottom: 12px;
}

.afina-firm-article__content .article-bg > ul li,
.afina-firm-article__content .article-bg > ol li {
    margin-bottom: 6px;
    overflow-wrap: break-word;
}

.afina-firm-article__content .article-bg > blockquote {
    margin: 12px 0;
}

.afina-firm-article__content .article-bg a {
    color: #8b3e2f;
    text-decoration-color: rgba(139, 62, 47, .38);
    text-underline-offset: 2px;
}

.afina-firm-article__content .article-bg a:hover,
.afina-firm-article__content .article-bg a:focus {
    color: #60291f;
    text-decoration-color: currentColor;
}
