/* ===== Article list (blog / freight guides) ===== */
.article-list-section {
    padding-top: 72px;
}
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 52px;
    align-items: start;
    margin-top: 0;
}
.article-layout > * {
    min-width: 0;
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.article-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-blue);
    text-align: center;
}
.article-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--white);
    color: var(--brand-700);
    box-shadow: var(--shadow-sm);
    font-size: 1.4rem;
}
.article-empty h2 {
    margin: 0 0 12px;
    color: var(--brand-900);
    font-size: clamp(1.45rem, 3vw, 1.9rem);
}
.article-empty p {
    max-width: 590px;
    margin: 0 auto 26px;
    color: var(--neutral-600);
    line-height: 1.7;
}
.article-card {
    overflow: hidden;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}
.article-media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    height: auto;
    margin-top: 18px;
    border-radius: var(--radius-md);
}
.article-media a {
    display: block;
    height: 100%;
}
.article-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .article-media img {
    transform: scale(1.03);
}
.article-body {
    padding: 18px 0 10px;
}
.article-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--brand-600);
    font-size: 0.82rem;
    font-weight: 700;
}
.article-card-title {
    margin: 0 0 10px;
    color: var(--brand-900);
    font-size: 1.08rem;
    line-height: 1.3;
}
.article-card-title a {
    color: inherit;
}
.article-card-title a:hover {
    color: var(--brand-700);
}
.article-card p {
    margin: 0 0 14px;
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.55;
}
.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-700);
    font-weight: 800;
    font-size: 0.88rem;
}
.article-card .read-more:hover {
    color: var(--brand-900);
}

/* Sidebar */
.article-sidebar {
    display: grid;
    gap: 28px;
}
.sidebar-block {
    padding: 22px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
}
.sidebar-block-title {
    margin: 0 0 16px;
    color: var(--brand-900);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.popular-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.popular-list li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
}
.popular-list img {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.popular-media-link {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.popular-list a {
    color: var(--neutral-800);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
}
.popular-list a:hover {
    color: var(--brand-700);
}
.popular-list time {
    display: block;
    margin-top: 4px;
    color: var(--neutral-600);
    font-size: 0.78rem;
}
.sidebar-cta {
    padding: 28px;
    text-align: center;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--brand-900);
    color: var(--white);
}
.sidebar-cta-title {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 14px;
    color: var(--white);
}
.sidebar-cta-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-500);
}
.sidebar-cta p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}
.sidebar-cta .btn {
    width: 100%;
}
.sidebar-cta-contact {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
    text-align: left;
}
.sidebar-cta-contact li a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}
.sidebar-cta-contact li a:hover strong {
    text-decoration: underline;
}
.sidebar-cta-contact li a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
}
.sidebar-cta-contact li a small {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 500;
}
.sidebar-cta-contact li a strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}
.sidebar-cta-title-compact,
.sidebar-cta-copy-compact,
.sidebar-cta-whatsapp {
    display: none;
}
.article-mobile-cta {
    display: none;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--neutral-700);
    background: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
}
.pagination a:last-child {
    min-width: 82px;
    padding-inline: 16px;
}
.pagination a:hover {
    border-color: var(--brand-500);
    color: var(--brand-700);
}
.pagination .is-current {
    border-color: var(--brand-700);
    color: var(--white);
    background: var(--brand-700);
}

/* ===== Article detail ===== */
.article-detail {
    --article-copy-width: 780px;
    --article-media-width: 860px;
    max-width: var(--article-media-width);
    margin: 0 auto;
}
.article-detail--has-toc {
    max-width: var(--article-media-width);
}
.article-detail h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    color: var(--brand-900);
}
.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--neutral-600);
    font-size: 0.85rem;
}
.article-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.page-banner .article-detail-meta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 600;
}
.page-banner .article-detail-meta i {
    color: var(--brand-500);
}
.page-banner .article-detail-author-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 3px;
    transition: color var(--motion-fast) ease, text-decoration-color var(--motion-fast) ease;
}
.page-banner .article-detail-author-link:hover {
    color: var(--white);
    text-decoration-color: var(--brand-500);
}
.article-detail-layout,
.article-detail-main {
    min-width: 0;
}
.article-detail:not(.article-detail--has-toc) .article-detail-main {
    max-width: var(--article-media-width);
    margin-inline: auto;
}
.article-detail--has-toc .article-detail-layout {
    display: block;
}
.article-detail--has-toc .article-detail-main {
    max-width: var(--article-media-width);
    margin-inline: auto;
}
.article-toc {
    position: static;
    width: auto;
    max-width: var(--article-copy-width);
    max-height: none;
    margin: 0 auto 32px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-xs);
}
.article-toc-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-blue);
}
.article-toc-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--brand-900);
    font-size: 0.92rem;
    font-weight: 800;
}
.article-toc-title-icon {
    color: var(--brand-600);
    font-size: 0.86rem;
}
.article-toc-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--brand-700);
    cursor: pointer;
}
.article-toc-toggle i::before {
    display: block;
    transition: transform var(--motion-fast) var(--ease-standard);
}
.article-toc-list,
.article-toc-list ol {
    margin: 0;
    padding-left: 1.25rem;
}
.article-toc-list {
    padding: 18px 20px 18px 2.5rem;
}
.article-toc-list ol {
    margin-top: 8px;
    list-style: disc;
}
.article-toc-list li {
    margin-bottom: 10px;
    padding-left: 0.12rem;
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.5;
}
.article-toc-list li:last-child {
    margin-bottom: 0;
}
.article-toc-list li::marker {
    color: var(--neutral-400);
    font-weight: 700;
}
.article-toc-list a {
    display: block;
    margin-left: -6px;
    padding: 5px 6px;
    border-radius: var(--radius-sm);
    color: var(--neutral-600);
    text-decoration: none;
    transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
    .article-toc-list a:hover {
        color: var(--brand-700);
        background: var(--brand-50);
    }
}
.article-detail-body {
    display: flow-root;
    max-width: var(--article-copy-width);
    margin-inline: auto;
    color: var(--neutral-700);
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}
.article-detail-body > :first-child {
    margin-top: 0;
}
.article-detail-body > :last-child {
    margin-bottom: 0;
}

/* Type and links */
.article-detail-body :where(h2, h3, h4, h5, h6) {
    color: var(--brand-900);
    font-weight: 700;
    line-height: 1.3;
    scroll-margin-top: calc(var(--header-height) + 24px);
}
.article-detail-body :where(h2) {
    margin: 40px 0 16px;
    font-size: clamp(1.4rem, 2.4vw, 1.65rem);
    letter-spacing: -0.015em;
}
.article-detail-body :where(h3) {
    margin: 32px 0 12px;
    color: var(--brand-800);
    font-size: clamp(1.15rem, 2vw, 1.3rem);
}
.article-detail-body :where(h4) {
    margin: 28px 0 10px;
    font-size: 1.08rem;
}
.article-detail-body :where(h5, h6) {
    margin: 24px 0 8px;
    font-size: 1rem;
}
.article-detail-body :where(p) {
    margin: 0 0 18px;
}
.article-detail-body :where(a:not(.btn)) {
    color: var(--brand-700);
    text-decoration: underline;
    text-decoration-color: rgba(0, 83, 158, 0.65);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}
.article-detail-body :where(a:not(.btn)):hover {
    color: var(--brand-900);
    text-decoration-color: currentColor;
}
.article-detail-body :where(strong, b) {
    color: var(--neutral-900);
    font-weight: 700;
}
.article-detail-body :where(mark) {
    padding: 0.08em 0.22em;
    border-radius: var(--radius-xs);
    background: var(--accent-100);
    color: var(--brand-900);
}
.article-detail-body :where(abbr[title]) {
    cursor: help;
    text-decoration-style: dotted;
    text-underline-offset: 0.16em;
}

/* Lists */
.article-detail-body :where(ul, ol) {
    margin: 0 0 20px;
    padding-left: 1.5rem;
}
.article-detail-body :where(ul, ol) :where(ul, ol) {
    margin: 8px 0 0;
}
.article-detail-body :where(li) {
    margin-bottom: 7px;
    padding-left: 0.18rem;
}
.article-detail-body :where(li)::marker {
    color: var(--brand-600);
    font-weight: 700;
}
.article-detail-body :where(dl) {
    margin: 0 0 20px;
}
.article-detail-body :where(dl dt) {
    margin-top: 14px;
    color: var(--brand-900);
    font-weight: 700;
}
.article-detail-body :where(dl dd) {
    margin: 4px 0 14px 20px;
}

/* Images, captions and media */
.article-detail-body :where(figure) {
    margin: 28px 0;
}
.article-detail-body :where(img, video) {
    height: auto;
    border-radius: var(--radius-md);
}
.article-detail-body > :where(img, video) {
    margin: 28px 0;
}
.article-detail-body > :where(img, video),
.article-detail-body > :where(table) {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.article-detail-body > :where(img, video) {
    width: auto;
    max-width: min(var(--article-media-width), calc(100vw - 32px));
}
.article-detail-body > :where(table) {
    width: min(var(--article-media-width), calc(100vw - 32px));
    max-width: none;
}
.article-detail-body :where(figure > a) {
    display: block;
}
.article-detail-body :where(figcaption) {
    margin: 10px auto 0;
    color: var(--neutral-600);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: center;
}
.article-detail-body :where(embed, object) {
    max-width: 100%;
}

/* Quotes and callouts */
.article-detail-body :where(blockquote) {
    margin: 28px 0;
    padding: 22px 24px;
    border-left: 4px solid var(--accent-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--surface-blue);
    color: var(--neutral-800);
}
.article-detail-body :where(blockquote) > :last-child {
    margin-bottom: 0;
}
.article-detail-body :where(blockquote cite) {
    display: block;
    margin-top: 12px;
    color: var(--neutral-600);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 600;
}

/* Tables */
.article-detail-body :where(.table-responsive, .wp-block-table) {
    max-width: 100%;
    margin: 28px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.article-detail-body :where(table) {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.9rem;
    line-height: 1.55;
}
.article-detail-body > :where(table) {
    display: block;
    max-width: none;
    margin: 28px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.article-detail-body :where(th, td) {
    min-width: 120px;
    padding: 12px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.article-detail-body :where(th) {
    background: var(--brand-900);
    color: var(--white);
    font-weight: 700;
}
.article-detail-body :where(tr > :last-child) {
    border-right: 0;
}
.article-detail-body :where(tbody tr:last-child > *) {
    border-bottom: 0;
}
.article-detail-body :where(table caption) {
    padding: 0 12px 10px;
    color: var(--neutral-600);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: left;
    caption-side: top;
}

/* Code and preformatted content */
.article-detail-body :where(code, kbd, samp) {
    padding: 0.12em 0.38em;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--neutral-100);
    color: var(--neutral-900);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
}
.article-detail-body :where(kbd) {
    border-color: var(--neutral-300);
    box-shadow: inset 0 -1px 0 var(--neutral-300);
}
.article-detail-body :where(pre) {
    max-width: 100%;
    margin: 28px 0;
    padding: 20px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--neutral-950);
    color: var(--neutral-100);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.65;
    tab-size: 4;
    white-space: pre;
}
.article-detail-body :where(pre code) {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

/* Embedded media and native HTML */
.article-detail-body :where(iframe) {
    max-width: 100%;
}
.article-detail-body :where(audio) {
    width: 100%;
}
.article-detail-body :where(hr) {
    width: 100%;
    height: 1px;
    margin: 36px 0;
    border: 0;
    background: var(--line-strong);
}
.article-detail-body :where(details) {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
}
.article-detail-body :where(summary) {
    cursor: pointer;
    color: var(--brand-900);
    font-weight: 700;
}
.article-detail-body :where(details[open] summary) {
    margin-bottom: 12px;
}
.article-detail-body :where(.footnotes) {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--neutral-600);
    font-size: 0.88rem;
}
.article-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: var(--article-copy-width);
    margin: 40px auto 0;
}
.article-navigation-link {
    display: flex;
    min-width: 0;
    padding: 20px 22px;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-blue);
    color: var(--brand-800);
    text-decoration: none;
    transition: border-color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}
.article-navigation-link--next {
    align-items: flex-end;
    text-align: right;
}
.article-navigation-link--next:first-child {
    grid-column: 2;
}
.article-navigation-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--neutral-600);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.article-navigation-label i {
    color: var(--accent-600);
}
.article-navigation-title {
    overflow-wrap: anywhere;
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.45;
}
@media (hover: hover) and (pointer: fine) {
    .article-navigation-link:hover {
        border-color: var(--brand-500);
        background: var(--brand-50);
    }
}
/* Responsive */
@media (max-width: 1240px) {
    .article-toc-header {
        isolation: isolate;
        min-height: 58px;
        padding: 9px 12px 9px 16px;
        border-bottom: 0;
    }
    .article-toc-title {
        position: relative;
        z-index: 1;
        padding-right: 48px;
        font-size: 0.95rem;
        letter-spacing: 0.01em;
        pointer-events: none;
    }
    .article-toc-title-icon {
        font-size: 0.92rem;
    }
    .article-toc-toggle {
        position: absolute;
        inset: 0;
        z-index: 0;
        justify-content: flex-end;
        width: 100%;
        height: 100%;
        padding: 9px 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--brand-700);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .article-toc-toggle:hover {
        background: var(--brand-50);
    }
    .article-toc-toggle:focus-visible {
        outline: 0;
        box-shadow: inset 0 0 0 2px var(--brand-500), var(--focus-ring);
    }
    .article-toc-toggle i {
        display: inline-grid;
        place-items: center;
        width: 40px;
        height: 40px;
        margin-left: auto;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--white);
    }
    .article-toc-toggle i::before {
        transform: rotate(180deg);
    }
    .js-enabled .article-toc-toggle {
        display: inline-flex;
    }
    .js-enabled .article-toc.is-collapsed .article-toc-list {
        display: none;
    }
    .js-enabled .article-toc.is-collapsed .article-toc-toggle i::before {
        transform: none;
    }
}
@media (max-width: 1080px) {
    .article-list-section {
        padding-top: 64px;
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
        order: 2;
    }
    .article-mobile-cta {
        display: block;
        grid-column: 1 / -1;
        margin: 4px 0 8px;
    }
    .sidebar-block {
        order: 1;
    }
    .sidebar-contact-cta {
        order: 2;
        padding: 26px;
    }
    .sidebar-cta-title-desktop,
    .sidebar-cta-copy-desktop,
    .sidebar-quote-button {
        display: none;
    }
    .sidebar-cta-title-compact,
    .sidebar-cta-copy-compact,
    .sidebar-cta-whatsapp {
        display: block;
    }
    .sidebar-contact-cta .sidebar-cta-contact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 0;
    }
}
@media (max-width: 720px) {
    .article-list-section {
        padding-top: 52px;
    }
    .article-layout { margin-top: 0; gap: 38px; }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .article-empty {
        padding: 44px 24px;
    }
    .sidebar-contact-cta .sidebar-cta-contact {
        grid-template-columns: 1fr;
    }
    .pagination {
        gap: 4px;
    }
    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.82rem;
    }
    .pagination a:last-child {
        min-width: 70px;
        padding-inline: 12px;
    }
    .article-detail-body :where(h2) {
        margin-top: 34px;
        font-size: 1.35rem;
    }
    .article-detail-body :where(h3) {
        margin-top: 28px;
        font-size: 1.15rem;
    }
    .article-detail-body :where(blockquote) {
        padding: 18px;
    }
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .article-navigation-link {
        padding: 18px;
    }
    .article-navigation-link--next:first-child {
        grid-column: auto;
    }
}
