/* Explain: Reusable polished law firm components and utility styles. */
.article-card:target {
    display: flex !important;
    border-color: var(--secondary-color);
    box-shadow: 0 14px 36px rgba(30, 91, 154, 0.2);
}

.nav-link {
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease;
    border-radius: var(--radius-medium);
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(30, 91, 154, 0.08);
}

.btn-law-primary {
    min-height: 46px;
    border: 1px solid var(--secondary-color);
    background: var(--secondary-color);
    color: var(--white-color);
    box-shadow: 0 12px 24px rgba(30, 91, 154, 0.20);
}

.btn-law-primary:hover {
    border-color: var(--secondary-hover);
    background: var(--secondary-hover);
}

.btn-law-outline {
    min-height: 46px;
    border: 1px solid rgba(11, 46, 74, 0.22);
    background: var(--white-color);
    color: var(--primary-color);
}

.btn-law-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.law-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    background: var(--white-color);
    box-shadow: var(--shadow-card);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--secondary-color);
}

.form-input-law {
    border: 1px solid var(--border-color);
    background: var(--white-color);
    color: var(--text-color);
}

.form-input-law:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(30, 91, 154, 0.12);
}

.status-message {
    display: none;
    border-radius: var(--radius-small);
    padding: 0.9rem 1rem;
    font-weight: 700;
}

.status-message.is-visible {
    display: block;
}

.status-message.is-success {
    border: 1px solid rgba(30, 91, 154, 0.24);
    background: var(--accent-color);
    color: var(--primary-color);
}

.status-message.is-error {
    border: 1px solid rgba(185, 28, 28, 0.20);
    background: #FEF2F2;
    color: #991B1B;
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer p,
.site-footer a,
.site-footer .footer-muted {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer h2,
.site-footer h3,
.site-footer .footer-brand {
    color: var(--white-color);
}

.site-footer a:hover {
    color: var(--white-color);
}

.cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 99990;
    width: 100%;
    background: #FFFFFF;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 -12px 32px rgba(11, 46, 74, 0.18);
    padding-block: 1rem;
}

.cookie-consent.hidden {
    display: none;
}

html.cookie-consent-open #a11y-widget-btn {
    bottom: calc(var(--cookie-h, 120px) + 20px);
}

html.cookie-consent-open #a11y-panel {
    bottom: calc(var(--cookie-h, 120px) + 85px);
}

#siteSettingsBtn {
    position: fixed;
    bottom: 20px;
    left: 88px;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#siteSettingsBtn:hover {
    transform: scale(1.1);
}

#siteSettingsBtn.hidden {
    display: none;
}

html.cookie-consent-open #siteSettingsBtn {
    bottom: calc(var(--cookie-h, 120px) + 20px);
}

/* ============================================================
   חוויית קריאה במאמרים — טיפוגרפיה מרווחת, ציטוטים והדגשות
   ============================================================ */
.article-content {
    counter-reset: article-chapter;
    font-size: 1.125rem;
    line-height: 2.05;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 1.9rem;
    line-height: 2.1;
    color: var(--text-color);
    text-align: justify;
    text-justify: inter-word;
}

.article-content p.article-lead {
    margin-bottom: 2.25rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border-color);
    border-inline-start: 5px solid var(--secondary-color);
    border-radius: var(--radius-medium);
    background: var(--surface-color);
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
    font-weight: 700;
    line-height: 1.9;
    color: var(--primary-color);
    text-align: justify;
    text-justify: inter-word;
}

.article-content h2 {
    position: relative;
    counter-increment: article-chapter;
    margin-top: 4.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    font-size: clamp(1.5rem, 1.2rem + 1.05vw, 2.15rem);
    font-weight: 900;
    line-height: 1.45;
    color: var(--primary-color);
    text-shadow: 0 1px 0 rgba(11, 46, 74, 0.06);
    text-align: start;
}

.article-content h2::before {
    content: counter(article-chapter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-inline-end: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: 0.1em;
}

.article-content h2::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: var(--secondary-color);
}

.article-content h3 {
    margin-top: 2.8rem;
    margin-bottom: 1.15rem;
    padding-inline-start: 1.1rem;
    border-inline-start: 5px solid var(--secondary-color);
    font-size: clamp(1.2rem, 1rem + 0.55vw, 1.5rem);
    font-weight: 900;
    line-height: 1.5;
    color: var(--primary-color);
    text-align: start;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.7rem;
    padding-inline-start: 1.55rem;
}

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

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

.article-content li {
    margin-bottom: 0.8rem;
    line-height: 1.95;
    color: var(--text-color);
    text-align: justify;
    text-justify: inter-word;
}

.article-content strong {
    color: var(--primary-color);
    font-weight: 800;
}

.article-content a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--primary-color);
}

.article-content #article-toc {
    list-style: none;
    padding-inline-start: 0;
}

.article-content blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding-block: 1.85rem;
    padding-inline-start: 3.5rem;
    padding-inline-end: 1.75rem;
    border: 1px solid var(--border-color);
    border-inline-start: 5px solid var(--secondary-color);
    border-radius: var(--radius-medium);
    background: linear-gradient(180deg, var(--surface-color) 0%, #ffffff 100%);
    box-shadow: 0 12px 30px rgba(11, 46, 74, 0.07);
    font-size: 1.1rem;
    line-height: 1.95;
    color: var(--primary-color);
}

.article-content blockquote p {
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 600;
    text-align: justify;
    text-justify: inter-word;
}

.article-content blockquote::before {
    content: '\201C';
    position: absolute;
    inset-inline-start: 1.05rem;
    top: 1.1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--secondary-color);
    opacity: 0.35;
    pointer-events: none;
}

.article-content .article-guide-lead {
    margin: 3rem 0 1rem;
    padding: 1.6rem 1.85rem;
    border: 1px dashed var(--secondary-color);
    border-radius: var(--radius-medium);
    background: var(--surface-color);
}

.article-content .article-guide-lead p {
    margin-bottom: 0;
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-color);
}

.article-guide-lead-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-chapter {
    padding-block: 0.25rem;
}

.article-faq {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.article-content .article-faq-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.75rem;
    padding: 0;
    border: 0;
    font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.7rem);
    color: var(--primary-color);
}

.article-faq-item {
    margin-bottom: 0.85rem;
    padding: 1.15rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    background: var(--surface-color);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.article-faq-item[open] {
    border-color: var(--secondary-color);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(11, 46, 74, 0.06);
}

.article-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color);
}

.article-faq-item summary::-webkit-details-marker {
    display: none;
}

.article-faq-item summary i {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.article-faq-item[open] summary i {
    transform: rotate(180deg);
}

.article-faq-answer {
    margin-top: 0.9rem;
    color: var(--text-muted);
    line-height: 1.95;
    text-align: justify;
    text-justify: inter-word;
}

/* --- חוויית קריאה בגוף המאמר: פסקת פתיחה, רשימות, תמונות וטבלאות --- */
.article-content h2 + p {
    font-size: 1.17rem;
    font-weight: 600;
    line-height: 2.05;
    color: var(--primary-color);
}

.article-content .article-chapter > p:first-of-type {
    font-size: 1.12rem;
    line-height: 2.05;
}

.article-content li::marker {
    color: var(--secondary-color);
    font-weight: 800;
}

.article-content hr {
    height: 1px;
    margin: 3rem 0;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.article-content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 2.25rem 0;
    border-radius: var(--radius-medium);
    box-shadow: 0 16px 40px rgba(11, 46, 74, 0.10);
}

.article-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 1rem;
}

.article-content th,
.article-content td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    text-align: start;
}

.article-content th {
    background: var(--surface-color);
    color: var(--primary-color);
    font-weight: 800;
}
