/* Shared styles for news/article pages (matches asistweb index) */
:root {
    --primary-dark: #18272F;
    --accent: #EB7419;
    --accent-dark: #d96510;
    --bg: #f1f4f8;
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #334155;
    --muted: #64748b;
    --max: 920px;
    --article-gutter: 24px;
    --site-header-offset: 74px;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
html::-webkit-scrollbar-track {
    background: var(--bg);
}
html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}
body::-webkit-scrollbar {
    width: 10px;
}
body::-webkit-scrollbar-track {
    background: var(--bg);
}
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--primary-dark);
    line-height: 1.65;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* Same sticky header + primary button as asistweb/index.html */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 0 var(--article-gutter);
}
.site-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}
.site-header .brand img {
    height: 56px;
    width: auto;
    display: block;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(235, 116, 25, 0.35);
}
.btn--primary:hover {
    color: #fff;
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.article-main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px var(--article-gutter) 32px;
    overflow: visible;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--muted);
}
.article-main h1 {
    margin: 0 0 20px;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.article-intro {
    margin: 0 0 32px;
}
.article-intro p,
.article-lead {
    margin: 0 0 18px;
    font-weight: 500;
    color: var(--primary-dark);
    line-height: 1.62;
    letter-spacing: -0.015em;
    text-align: justify;
    hyphens: auto;
}
.article-intro p {
    font-size: 18px;
}
.article-lead {
    font-size: 20px;
}
.article-intro p:last-child,
.article-lead:last-child {
    margin-bottom: 0;
}

/* Management callout floated right; intro/body text wraps on the left */
.article-mgmt-callout {
    padding: 18px 20px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.09);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
}
.article-mgmt-callout--float {
    float: right;
    width: calc(300px + 0.9cm);
    max-width: 42%;
    margin: 4px calc(-56px - 1.5cm) 20px 28px;
}
.article-mgmt-callout__kicker {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.45;
    text-align: left;
}
.article-mgmt-callout__list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.article-mgmt-callout__list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 16px;
    text-align: left;
    hyphens: none;
}
.article-mgmt-callout__list li:last-child {
    margin-bottom: 0;
}
.article-mgmt-callout__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.article-mgmt-callout__emphasis {
    margin: 0 0 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    text-align: left;
    hyphens: auto;
}
.article-mgmt-callout__bridge {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    line-height: 1.5;
}
@media (max-width: 1040px) {
    .article-mgmt-callout--float {
        margin-right: 0;
    }
}
@media (max-width: 720px) {
    .article-mgmt-callout--float {
        float: none;
        width: auto;
        max-width: none;
        margin: 0 0 24px;
    }
}

.article-body {
    font-size: 16px;
}
.article-body h2 {
    margin: 32px 0 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.article-body h3 {
    margin: 24px 0 8px;
    font-size: 16px;
    font-weight: 700;
}
.article-body p {
    margin: 0 0 16px;
    color: var(--text);
    text-align: justify;
    hyphens: auto;
}
.article-body ul,
.article-body ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--text);
}
.article-body li {
    margin-bottom: 8px;
    text-align: justify;
    hyphens: auto;
}
.article-figure {
    margin: 0 0 28px;
}
.article-media-duo {
    display: flex;
    align-items: stretch;
    gap: 15px;
    width: 100%;
    margin: 8px 0 28px;
}
.article-media-duo__item {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.article-media-duo__frame {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 560px;
    height: 560px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
}
.article-media-duo__item:first-child .article-media-duo__frame {
    justify-content: flex-start;
}
.article-media-duo__item:last-child .article-media-duo__frame {
    justify-content: flex-end;
}
.article-media-duo__item figcaption {
    flex: 0 0 auto;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    text-align: left;
}
.article-figure img,
.article-body img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.article-body .article-media-duo__frame img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
@media (max-width: 720px) {
    .article-media-duo {
        flex-direction: column;
        align-items: stretch;
    }
    .article-media-duo__frame {
        height: auto;
        min-height: 280px;
        justify-content: center;
    }
    .article-body .article-media-duo__frame img {
        width: 100%;
        max-height: 420px;
    }
}
.article-visual-panel {
    margin: 24px 0 28px;
    padding: 20px 22px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.article-visual-panel > p {
    margin: 0 0 18px;
}
.article-visual-panel .article-media-duo {
    margin: 0;
}
.article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    background: var(--white);
    border-radius: 0 12px 12px 0;
    color: var(--text);
    text-align: justify;
    hyphens: auto;
}

.article-author-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--article-gutter) 28px;
}
.article-author {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.article-author__avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-dark) 0%, #2d4a5c 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 52px;
    text-align: center;
    letter-spacing: -0.02em;
}
.article-author__avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.article-author__label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.article-author__name {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}
.article-author__name a {
    color: var(--primary-dark);
    text-decoration: none;
}
.article-author__name a:hover { color: var(--accent); }
.article-author__role {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--muted);
}
.article-author__bio {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.article-author__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent);
}
.article-author__linkedin svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.article-author__linkedin:hover { color: var(--accent-dark); }

/* Same footer as asistweb/index.html */
.site-footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 8px 5% 10px 5%;
    border-top: 3px solid var(--accent);
    font-size: 11px;
    line-height: 1.35;
    margin-top: 0;
}
.site-footer__inner { max-width: 1100px; margin: 0 auto; }
.site-footer__contact { margin: 0; font-style: normal; color: #e2e8f0; }
.site-footer__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
}
.site-footer__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-align: left;
    white-space: nowrap;
}
.site-footer__item--address { white-space: nowrap; max-width: none; }
.site-footer__icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: var(--accent);
}
.site-footer__contact a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    transition: border-color 0.15s ease, color 0.15s ease;
}
.site-footer__contact a:hover {
    color: #fff;
    border-bottom-color: var(--accent);
}

/* YouTube thumbnail floated right; body text wraps around */
.article-video-thumb {
    display: block;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.article-video-thumb--float {
    float: right;
    width: 280px;
    max-width: 45%;
    margin: 0 0 14px 20px;
}
.article-video-thumb:hover {
    border-color: var(--accent);
}
.article-video-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: none;
    border-radius: 0;
}
.article-video-thumb__cap {
    display: block;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
}
@media (max-width: 720px) {
    .article-video-thumb--float {
        float: none;
        width: auto;
        max-width: 420px;
        margin: 0 0 18px;
    }
}

/* Click-to-enlarge screenshot row (same sizes as asistlx.php example-grid / thumb-card) */
.article-body h3.article-screenshots-label,
.article-screenshots-label {
    margin: 20px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}
.article-example-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin: 8px 0 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px 8px 10px 8px;
    -webkit-overflow-scrolling: touch;
}
.article-example-grid + p {
    margin-top: 4px;
}
.article-example-grid::-webkit-scrollbar {
    height: 8px;
}
.article-example-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.article-example-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.article-example-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
.article-body .article-thumb-card {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: visible;
    background: #f8fafc;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: left;
}
.article-body .article-thumb-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
.article-body .article-thumb-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.article-body .article-example-grid .article-thumb-card img {
    width: 100%;
    max-width: 100%;
    height: 120px;
    max-height: 120px;
    object-fit: cover;
    object-position: top left;
    display: block;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 11px 11px 0 0;
    background: #0f172a;
}
.article-body .article-thumb-card figcaption {
    padding: 10px 12px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}
.article-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(24, 39, 47, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    box-sizing: border-box;
}
.article-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: min(98vw, 1800px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    min-height: 0;
    box-sizing: border-box;
}
.article-modal__meta {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
    padding: 0 88px 0 4px;
    box-sizing: border-box;
}
.article-modal__caption {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #f1f5f9;
}
.article-modal__panel > img {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    align-self: center;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.article-modal__close {
    position: absolute;
    top: -4px;
    right: 0;
    z-index: 2;
}
.article-modal__controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}
.article-modal__counter {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    min-width: 4.5em;
    text-align: center;
}
.article-modal__btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.article-modal__btn:hover,
.article-modal__btn:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    outline: none;
}
.article-modal__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
