/* ===== Section headings ===== */
.section-heading,
.pillar-list-heading {
    font-size: 1.2rem;
    font-weight: 700;
}

.section-heading {
    color: #222;
    border-left: 4px solid #333;
    padding-left: 0.6rem;
}

/* ===== Featured articles ===== */
.home-featured {
    position: relative;
}

.home-featured-track {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.home-featured-item {
    display: none;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    min-width: 0;
}

.home-featured-item.is-active {
    display: block;
}

.home-featured-link {
    display: block;
    position: relative;
    height: 100%;
}

.home-featured-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-featured-media img,
.home-featured-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.home-featured-copy {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem 1rem 0.75rem;
    background: linear-gradient(180deg, transparent 0%, transparent 65%, rgba(85, 85, 85, 0.4) 80%, #555 100%);
    text-align: left;
}

.home-featured-title,
.home-featured-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-featured-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.home-featured-summary {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: #fff;
    font-size: 0.82rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.home-featured-indicators {
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0 0.25rem;
}

.home-featured-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bbb;
    border: none;
    opacity: 1;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.2s;
    padding: 0;
}

.home-featured-indicator.active {
    background-color: #c0392b;
    transform: scale(1.2);
}

@media (min-width: 992px) {
    .home-featured-track {
        display: grid;
        grid-template-columns: minmax(0, calc((100% - 1rem) * 0.55)) minmax(0, calc((100% - 1rem) * 0.225)) minmax(0, calc((100% - 1rem) * 0.225));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        height: 420px;
        overflow: visible;
        border-radius: 3px;
        background: transparent;
    }

    .home-featured-item {
        display: block;
        height: 100%;
    }

    .home-featured-item.is-lead {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .home-featured-media {
        height: 100%;
        aspect-ratio: auto;
    }

    .home-featured-item.is-lead .home-featured-link:hover .home-featured-media img {
        transform: scale(1.03);
    }

    .home-featured-item.is-secondary .home-featured-link:hover .home-featured-media img {
        transform: scale(1.05);
    }

    .home-featured-item.is-lead .home-featured-copy {
        padding: 1.5rem 1.25rem 1.25rem;
        background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.45) 55%, rgba(15, 15, 15, 0.88) 100%);
    }

    .home-featured-item.is-lead .home-featured-title {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .home-featured-item.is-lead .home-featured-summary {
        color: rgba(255, 255, 255, 0.9);
    }

    .home-featured-item.is-secondary .home-featured-copy {
        padding: 0.5rem 0.6rem;
        background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.78) 100%);
    }

    .home-featured-item.is-secondary .home-featured-title {
        display: block;
        overflow: hidden;
        max-height: 2.4em;
        line-height: 1.2;
        font-size: 0.8rem;
        font-weight: 600;
        margin: 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .home-featured-item.is-secondary .home-featured-summary {
        display: none;
    }

    .home-featured-indicators {
        display: none;
    }
}

/* ===== Popular cards ===== */
.popular-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.popular-card {
    background: #fff;
    border-radius: 0.3rem;
    overflow: hidden;
    box-shadow: 0 0 3px 0 #ccc;
    display: flex;
    flex-direction: column;
}

.popular-card-link {
    display: block;
    padding: 0.4rem 0.4rem 0;
}

.popular-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.3rem;
    background: #f4efe8;
}

.popular-card-image,
.popular-card-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.popular-card-image {
    object-fit: cover;
}

.popular-card-body {
    padding: 0.75rem 0.95rem 0.95rem;
    flex: 1;
    display: grid;
    grid-template-rows: minmax(calc(0.88rem * 1.45 * 2), auto) auto;
    row-gap: 0.65rem;
}

.popular-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #4F4F4F;
    line-height: 1.45;
    margin-bottom: 0;
    min-height: calc(0.88rem * 1.45 * 2);
}

.popular-card-title a {
    color: #4F4F4F;
    display: block;
}

.popular-card-title a:hover {
    color: #c0392b;
}

.popular-card-footer,
.popular-card-footer-right {
    display: flex;
    align-items: center;
}

.popular-card-footer {
    justify-content: space-between;
    gap: 0.25rem;
}

.popular-card-footer-right {
    gap: 0.35rem;
    flex-shrink: 0;
}

.popular-flames {
    font-size: 0.82rem;
    white-space: nowrap;
    line-height: 1;
}

.popular-date {
    font-size: 0.75rem;
    color: #CDCDCD;
}

.popular-badge {
    display: inline-block;
    --popular-badge-bg: #f77902;
    --popular-badge-bg-hover: #d96800;
    background: var(--popular-badge-bg);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.55rem;
    border-radius: 20px;
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.popular-badge:hover {
    background: var(--popular-badge-bg-hover);
    color: #fff;
}

.popular-badge--travel {
    --popular-badge-bg: #ECBA8D;
    --popular-badge-bg-hover: #E3A76F;
}

.popular-badge--car {
    --popular-badge-bg: #8C7CF0;
    --popular-badge-bg-hover: #7A69E7;
}

.popular-badge--home {
    --popular-badge-bg: #8FE4E4;
    --popular-badge-bg-hover: #74D7D7;
}

.popular-badge--motorcycle {
    --popular-badge-bg: #A8C686;
    --popular-badge-bg-hover: #93B768;
}

.popular-wrapper {
    position: relative;
}

.popular-scroll {
    align-items: stretch;
}

.popular-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #4F4F4F;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.popular-nav.prev {
    left: 0;
}

.popular-nav.next {
    right: 0;
}

.popular-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

@media (max-width: 991.98px) {
    .popular-nav {
        display: flex;
    }

    .popular-scroll {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .popular-scroll::-webkit-scrollbar {
        display: none;
    }

    .popular-scroll .popular-card {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .popular-flames {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .popular-scroll .popular-card {
        flex: 0 0 48%;
    }
}

/* ===== Search bar ===== */
.latest-search-copy {
    margin: 0 auto 0.75rem;
    line-height: 1.6;
    text-align: center;
}

.latest-search-bar {
    display: flex;
    align-items: center;
    border: 1.5px solid #d0d0d0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    max-width: 480px;
    margin: 0 auto;
}

.page-heading-search-row .latest-search-bar {
    width: 100%;
    max-width: none;
    margin: 0 !important;
}

.latest-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0.25rem 0.75rem;
    background: transparent;
    text-align: center;
}

.latest-search-input:not(:placeholder-shown),
.latest-search-input:focus {
    text-align: left;
}

.latest-search-btn,
.latest-share-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.latest-search-btn {
    flex: 0 0 auto;
    padding: 0.25rem 0.75rem;
    font-size: 1rem;
    color: #666;
}

@media (max-width: 767.98px) {
    .latest-search-copy {
        font-size: 0.9rem;
        margin-bottom: 0.65rem;
    }
}

/* ===== Latest article rows ===== */
.latest-article-row {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.latest-article-row .row {
    align-items: stretch;
}

.latest-article-title {
    font-weight: 700;
    color: #333;
    margin: 0;
}

.latest-article-title a {
    color: #333;
}

.latest-article-title a:hover {
    color: #c0392b;
}

.latest-article-summary {
    font-size: 0.82rem;
    color: #707070;
    margin: 0;
}

.latest-read-more {
    font-size: 0.8rem;
    color: #0026A6;
    text-decoration: none;
}

.latest-read-more:hover {
    text-decoration: underline;
}

.latest-date {
    font-size: 0.75rem;
    color: #434343;
    white-space: nowrap;
}

.latest-meta-right {
    flex-shrink: 0;
}

.latest-share-btn {
    padding: 0;
    font-size: 0.85rem;
    color: #999;
    line-height: 1;
}

.latest-share-btn:hover {
    color: #c0392b;
}

/* ===== Article page ===== */
.article-container {
    box-shadow: 0 0 3px 0 #ccc;
    padding: 1.75rem;
}

.article-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c0392b;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .article-main-title {
        font-size: 1.75rem;
    }
}

.article-pub-date {
    font-size: 0.82rem;
    color: #CDCDCD;
}

.btn-share-icon {
    background: none;
    border: 0;
    border-radius: 6px;
    padding: 0.3rem 0.4rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.btn-share-icon:hover {
    color: #c0392b;
}

.article-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-right: 4px solid #dee2e6;
    border-left: 4px solid #dee2e6;
}

/* ===== Article content typography ===== */
.article-content {
    color: #333;
    line-height: 1.8;
}

.article-content h2 {
    font-weight: 700;
    color: #2c3e50;
    border-left: 6px solid #c0392b;
    padding-left: 0.95rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.article-content h3 {
    font-weight: 700;
    color: #2c3e50;
    border-left: 2px solid #e0a39c;
    padding-left: 0.6rem;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.article-content h4 {
    font-weight: 700;
    color: #f77902;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    text-indent: 2em;
}

.article-content li p {
    text-indent: 0;
    margin-bottom: 0;
}

.article-content .alert-box p,
.article-content .info-box p,
.article-content .warning-box p,
.article-content .req-box p,
.article-content .story-box p,
.article-content .bubble-ans p {
    text-indent: 0;
}

.article-content ul:not(.list-group),
.article-content ol:not(.list-group) {
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content .alert-box ul,
.article-content .alert-box ol,
.article-content .info-box ul,
.article-content .info-box ol,
.article-content .warning-box ul,
.article-content .warning-box ol,
.article-content .req-box ul,
.article-content .req-box ol,
.article-content .story-box ul,
.article-content .story-box ol,
.article-content .bubble-ans ul,
.article-content .bubble-ans ol {
    margin-bottom: 0;
    margin-left: 1rem;
}

.article-content .alert-box li,
.article-content .info-box li,
.article-content .warning-box li,
.article-content .req-box li,
.article-content .story-box li,
.article-content .bubble-ans li {
    margin-bottom: 0;
}

.article-content a {
    color: #1b7a4a;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.article-content a:hover {
    color: #146c43;
}

.article-content img:not([class]) {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #a3cfbb;
    background: #f4faf7;
    padding: 0.85rem 1rem;
    margin: 1.25rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #374151;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}


/* ===== Tree TOC ===== */
.toc-tree {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    border: 1px solid rgba(47, 153, 95, 0.35);
    border-radius: 0.25rem;
}

.toc-tree-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: #163428;
    margin: 0;
    line-height: 1.4;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(47, 153, 95, 0.16);
}

.toc-tree-title::before {
    content: "";
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    background-color: #23885a;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='6.5' r='1.5' fill='black'/%3E%3Ccircle cx='5' cy='12' r='1.5' fill='black'/%3E%3Ccircle cx='5' cy='17.5' r='1.5' fill='black'/%3E%3Cpath d='M9 6.5h10M9 12h10M9 17.5h6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='6.5' r='1.5' fill='black'/%3E%3Ccircle cx='5' cy='12' r='1.5' fill='black'/%3E%3Ccircle cx='5' cy='17.5' r='1.5' fill='black'/%3E%3Cpath d='M9 6.5h10M9 12h10M9 17.5h6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.article-toc-tree {
    margin: 0;
}

.article-toc-tree .toc-tree-label {
    line-height: 1.5;
}

.article-toc-tree .toc-tree-label,
.article-toc-tree .toc-tree-label:hover,
.article-toc-tree .toc-tree-label:visited,
.article-toc-tree .toc-tree-label:active,
.article-toc-tree .toc-tree-label:focus {
    color: #111;
    text-decoration: none;
}

.article-toc-tree .toc-tree-label:focus-visible {
    outline: 2px solid rgba(35, 136, 90, 0.35);
    outline-offset: 0.2rem;
    border-radius: 0.2rem;
}



/* ===== Pillar tile grid - bottom of article page ===== */
.pillar-tile-grid-bottom {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    scroll-padding-inline: 0.125rem;
}

.pillar-tile-grid-bottom::-webkit-scrollbar {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .pillar-tile-grid-bottom::-webkit-scrollbar {
        display: block;
        height: 4px;
    }

    .pillar-tile-grid-bottom::-webkit-scrollbar-track {
        background: transparent;
    }

    .pillar-tile-grid-bottom::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.25);
        border-radius: 2px;
    }

    .pillar-tile-grid-bottom {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
    }
}

.pillar-tile-item {
    position: relative;
    aspect-ratio: 4 / 3;
    flex: 0 0 calc((100% - 0.5rem * 4) / 4.2);
    min-width: calc((100% - 0.5rem * 4) / 4.2);
    scroll-snap-align: start;
}

@media (min-width: 992px) {
    .pillar-tile-grid-bottom {
        justify-content: center;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }

    .pillar-tile-item {
        flex: 0 0 calc(10% - 0.42rem);
        min-width: 0;
    }
}

.pillar-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-tile-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.4rem;
    background: rgba(15, 23, 42, 0.65);
    border-bottom-left-radius: var(--bs-border-radius);
}

.pillar-tile-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 3px 2px 2px rgba(0, 0, 0, 0.15);
}

/* ===== Pillar list heading ===== */
.pillar-list-heading {
    color: #333;
}

.alert-box,
.info-box {
    padding: 6px 10px;
    border-radius: 5px;
    margin: 15px 0;
}

.alert-box {
    background-color: #ffeeef;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.info-box {
    background-color: #e7f3ff;
    color: #0c5460;
    border-left: 5px solid #007bff;
}

.warning-box,
.story-box {
    color: #0c5460;
    border-radius: 5px;
    margin: 0.75rem 0;
}

.warning-box {
    box-shadow: 0px 0px 1.5px 1.5px #d8d9fcb0;
    padding: 0.75rem;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    line-clamp: 3;
    -webkit-line-clamp: 3;
}

.faq-group-list,
.faq-group-list dt {
    margin: 0;
    padding: 0;
}

.faq-group-list dd {
    margin: 1.25rem auto;
    padding: 0;
}

.faq-pair {
    display: block;
    margin-bottom: 20px;
}

.faq-pair:last-child {
    margin-bottom: 0;
}

.faq-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.faq-item.right-0,
.faq-item.right-1 {
    flex-direction: row-reverse;
    text-align: left;
}

.icon {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    width: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubble,
.bubble-ans {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    position: relative;
}

.bubble {
    background: #e5e7eb;
    font-weight: bold;
}

.bubble::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 12px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent #e5e7eb transparent transparent;
}

.faq-item.right-0 .bubble-ans {
    background: #dbeafe;
}

.faq-item.right-1 .bubble-ans {
    background: #fedbdb;
}

.faq-item.right-0 .bubble-ans::after,
.faq-item.right-1 .bubble-ans::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 12px;
    border-width: 8px;
    border-style: solid;
}

.faq-item.right-0 .bubble-ans::after {
    border-color: transparent transparent transparent #dbeafe;
}

.faq-item.right-1 .bubble-ans::after {
    border-color: transparent transparent transparent #fedbdb;
}

.inner-float {
    position: fixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    right: 0px;
    top: 45%;
    transform: translateY(-50%);
    color: #fff;
    line-height: 1.15;
    letter-spacing: 0.28em;
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    background: orange;
    padding: 0.55rem 0.05rem;
    width: 36px;
    z-index: 99999;
    transition: background-color 0.3s ease;
}

.inner-float:hover {
    background: #E1700D;
}

@media (max-width: 768px) {
    .inner-float {
        font-size: 1rem;
        line-height: 1.1;
        letter-spacing: 0.12em;
        padding: 0.45rem 0.05rem;
        width: 28px;
        z-index: 99999;
    }
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed #ccc;
}

.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6 {
    font-weight: 700;
}

.cta-section h2 {
    color: #2c3e50;
    border-left: 6px solid #c0392b;
    padding-left: 0.95rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

.cta-section h4 {
    color: #f77902;
}

.cta-button {
    display: inline-block;
    background: #38ab9d;
    color: white;
    padding: 0px 12px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
    margin-top: 3px;
}

.cta-button:hover {
    background: #00b3c5;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .cta-button {
        font-size: .85rem;
    }
}

.cta-section .cta-button {
    margin: 0 0.2em;
}

.article-content .cta-button {
    background: transparent;
    color: #1b7a4a;
    border: 2px solid #1b7a4a;
    padding: 0.3rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin: 0.25rem 0;
    transition: background-color 0.2s, color 0.2s;
}

.article-content .cta-button:hover {
    background: #1b7a4a;
    color: #fff;
    transform: none;
}

@media (min-width: 992px) {
    .sidebar-column {
        border-left: 1px solid #dee2e6;
        padding-left: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .sidebar-sticky {
        position: static;
    }
}

.story-box {
    box-shadow: 0px 0px 1.5px 1.5px #fcd9d8b0;
    padding: 0.5rem;
}

.text-cyan {
    color: darkcyan;
}

html {
    scroll-behavior: smooth;
}

.article-anchor {
    scroll-margin-top: 6.5rem;
}

.faq-group-block {
    position: relative;
}

@media (max-width: 991.98px) {
    .article-anchor {
        scroll-margin-top: 5.5rem;
    }
}

.article-table-block {
    margin: 2rem 0;
}

.article-table-header {
    margin-bottom: 1rem;
}

.article-table-title {
    color: #213b2d;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-table-intro {
    color: #52606d;
    margin: 0.5rem 0 0;
}

.article-table-intro> :first-child {
    margin-top: 0;
}

.article-table-intro> :last-child {
    margin-bottom: 0;
}

.article-table-intro ul,
.article-table-intro ol {
    margin-bottom: 0;
    padding-left: 1.4rem;
}

.article-table-intro img {
    border-radius: 1rem;
    display: block;
    height: auto;
    margin: 0.75rem 0;
    max-width: 100%;
}

.article-table-alert {
    background: #fff4e5;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    color: #92400e;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.article-table {
    margin-bottom: 0;
    min-width: 40rem;
}

.article-table th,
.article-table td {
    vertical-align: top;
}

.article-table-cell-list {
    margin: 0;
    padding-left: 1.25rem;
}

.article-table-cell-list li+li {
    margin-top: 0.35rem;
}

.article-table thead th {
    background: #eff6f2;
    color: #213b2d;
    font-weight: 700;
    white-space: nowrap;
}

.article-table-leading-header,
.article-table-row-header {
    background: #f8faf7;
    color: #213b2d;
    min-width: 10rem;
}

.article-table-group-row th {
    background: #213b2d;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.article-table-column--recommended {
    background: #fff9db;
}

.article-table-row--highlight>* {
    background: #e8f5ec;
}

.article-table-row--muted>* {
    background: #f9fafb;
    color: #9ca3af;

}

.article-table-note-row td {
    background: #fcfcfd;
    color: #6b7280;
}

.article-table-footnote {
    border-top: 1px solid #e5e7eb;
    color: #52606d;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.article-table-footnote p:last-child,
.article-table-footnote ul:last-child,
.article-table-footnote ol:last-child {
    margin-bottom: 0;
}

.article-table-mobile {
    display: none;
}

.article-table-scroll-hint {
    color: #52606d;
    display: none;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

@media (max-width: 767.98px) {
    .article-table {
        min-width: 34rem;
    }

    .article-table-scroll-hint {
        display: block;
    }

    .article-table-desktop--matrix {
        position: relative;
    }

    .article-table-desktop--matrix-sticky .article-table thead th:first-child,
    .article-table-desktop--matrix-sticky .article-table tbody tr:not(.article-table-group-row):not(.article-table-note-row)>th:first-child,
    .article-table-desktop--matrix-sticky .article-table tbody tr:not(.article-table-group-row):not(.article-table-note-row)>td:first-child {
        box-shadow: 10px 0 16px -16px rgba(17, 24, 39, 0.55);
        left: 0;
        position: sticky;
    }

    .article-table-desktop--matrix-sticky .article-table thead th:first-child {
        background: #eff6f2;
        z-index: 4;
    }

    .article-table-desktop--matrix-sticky .article-table tbody tr:not(.article-table-group-row):not(.article-table-note-row)>th:first-child {
        background: #f8faf7;
        z-index: 3;
    }

    .article-table-desktop--matrix-sticky .article-table tbody tr:not(.article-table-group-row):not(.article-table-note-row)>td:first-child {
        background: #fff;
        z-index: 2;
    }

    .article-table-row--highlight>th:first-child,
    .article-table-row--highlight>td:first-child {
        background: #e8f5ec !important;
    }


    .article-table-block--card .article-table-desktop,
    .article-table-block--info .article-table-desktop {
        display: none;
    }

    .article-table-block--card .article-table-mobile,
    .article-table-block--info .article-table-mobile {
        display: block;
    }

    .article-table-mobile--cards,
    .article-table-mobile--info {
        display: grid;
        grid-auto-flow: row;
    }

    .article-table-mobile--cards {
        row-gap: 1.5rem;
    }

    .article-table-mobile--info {
        row-gap: 1.25rem;
    }

    .article-table-card,
    .article-table-info-row {
        background: #fff;
        margin: 0;
        overflow: hidden;
    }

    .article-table-card {
        border: 1px solid #dbe5dd;
        border-radius: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(33, 59, 45, 0.08);
    }

    .article-table-info-row {
        border: 1px solid #d9e2ec;
        border-left: 4px solid #8bbf9f;
        border-radius: 0.85rem;
        box-shadow: none;
    }

    .article-table-mobile--cards>.article-table-card+.article-table-card {
        margin-top: 0.25rem;
    }

    .article-table-mobile--info>.article-table-info-row+.article-table-info-row {
        margin-top: 0.2rem;
    }

    .article-table-card-title,
    .article-table-card-group,
    .article-table-info-title,
    .article-table-info-group {
        font-weight: 700;
    }

    .article-table-card-title {
        background: #eff6f2;
        color: #213b2d;
        padding: 0.9rem 1rem;
    }

    .article-table-info-title {
        background: transparent;
        color: #213b2d;
        font-size: 1rem;
        padding: 0.95rem 1rem 0.15rem;
    }

    .article-table-card-group {
        color: #146c43;
        font-size: 0.88rem;
        letter-spacing: 0.04em;
        margin: 0.25rem 0 0.15rem;
        padding: 0 0.5rem;
        text-transform: uppercase;
    }

    .article-table-info-group {
        color: #52606d;
        font-size: 0.82rem;
        letter-spacing: 0.05em;
        margin: 0.15rem 0 0.1rem;
        padding: 0 0.35rem;
        text-transform: uppercase;
    }

    .article-table-mobile--cards>.article-table-card-group+.article-table-card {
        margin-top: 0;
    }

    .article-table-mobile--info>.article-table-info-group+.article-table-info-row {
        margin-top: 0;
    }

    .article-table-card-body,
    .article-table-info-body {
        padding: 1rem;
    }

    .article-table-card-body {
        display: grid;
        gap: 0.85rem;
    }

    .article-table-card-pair {
        display: grid;
        gap: 0.3rem;
        padding: 0.1rem 0;
    }

    .article-table-card-pair+.article-table-card-pair {
        border-top: 1px solid #eef2ef;
        padding-top: 0.85rem;
    }

    .article-table-card-pair--recommended {
        background: #fff9db;
        border: 1px solid #f3d27a;
        border-radius: 0.85rem;
        padding: 0.75rem;
    }

    .article-table-card-label,
    .article-table-info-label {
        color: #52606d;
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    .article-table-card-value,
    .article-table-info-value {
        color: #111827;
        font-weight: 600;
        line-height: 1.55;
    }

    .article-table-card-note,
    .article-table-info-note {
        color: #6b7280;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .article-table-card-note {
        background: #fafcfb;
        border-top: 1px solid #eef2ef;
        margin-top: 0;
        padding: 0.9rem 1rem 1rem;
    }

    .article-table-card--highlight,
    .article-table-info-row--highlight {
        background: #e8f5ec;
        border-left: 3px solid #4caf7d;
    }

    .article-table-card--muted,
    .article-table-info-row--muted {
        background: #f9fafb;
        color: #9ca3af;

    }

    .article-table-info-row {
        padding-bottom: 0.9rem;
    }

    .article-table-info-body {
        display: grid;
        gap: 0;
        padding-top: 0.35rem;
    }

    .article-table-info-pair {
        display: grid;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .article-table-info-pair+.article-table-info-pair {
        border-top: 1px dashed #d7dee8;
    }

    .article-table-info-label {
        font-size: 0.82rem;
        margin-bottom: 0;
    }

    .article-table-info-value {
        font-weight: 500;
    }

    .article-table-info-note {
        border-top: 1px dashed #d7dee8;
        margin-top: 0;
        padding: 0.8rem 1rem 0;
    }
}

/* ===== Article prev/next navigation ===== */
.article-nav-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .article-nav-row {
        flex-direction: row;
        align-items: stretch;
    }
}

.article-nav-card {
    box-shadow: 0 0 3px 0 #ccc;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s ease;
    min-height: 95px;
}

.article-nav-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
}

.article-nav-label,
.article-nav-body {
    display: flex;
    align-items: center;
}

.article-nav-label {
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    background: #f5f5f5;
    color: #999;
    font-size: 0.72rem;
    line-height: 1.4;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.article-nav-thumb {
    flex: 0 0 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    box-sizing: border-box;
}

.article-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
}

.article-nav-body {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.65rem 0.25rem;
}

.article-nav-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-nav-card--prev .article-nav-thumb {
    order: 1;
}

.article-nav-card--prev .article-nav-body {
    order: 2;
}

.article-nav-card--prev .article-nav-label {
    order: 3;
}

/* 下一篇：縮圖在右側 */
.article-nav-card--next .article-nav-thumb {
    order: 3;
}

.article-nav-card--next .article-nav-label {
    order: 1;
}

.article-nav-card--next .article-nav-body {
    order: 2;
}

@media (min-width: 992px) {
    .article-nav-card {
        flex: 1 1 0;
        min-height: 84px;
    }

    .article-nav-thumb {
        align-self: stretch;
        flex: 0 0 104px;
        padding: 0.2rem;
    }

    .article-nav-thumb img {
        height: 100%;
        aspect-ratio: auto;
    }

    .article-nav-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
}

.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.25rem;
    --bs-pagination-color: #9d9d9d;
    --bs-pagination-active-border-color: #94bfff;
    --bs-pagination-active-bg: #94bfff;
    --bs-pagination-active-border-color: #94bfff;
    --bs-pagination-disabled-bg: none;
}

.page-link {
    border: none;
    border-radius: 3px;
    margin: 0 6px;
}

/* ── 流程步驟卡片（StepCard） ─────────────────────────────
   .step-flow 容器由 ArticleContentRenderer.WrapStepCardGroups() 自動補上
 */

.step-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* 供 .num--auto 自動編號使用 */
    counter-reset: step-card;
}

.step-card {
    position: relative;
    /* 舊版數值：卡片不隨容器拉寬，維持直式比例，靠 flex-wrap 換行 */
    min-width: 345px;
    height: 405px;
    margin: 1rem;
    border-radius: 15px;
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
        inset -5px -5px 15px rgba(255, 255, 255, 0.1),
        3px 3px 10px rgba(0, 0, 0, 0.3),
        -5px -5px 15px rgba(255, 255, 255, 0.1);
    transition: 0.5s;
    counter-increment: step-card;
}

.step-card .box {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #043857;
    border-radius: 15px;
    transition: 0.5s;
}

.step-card .box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.step-card .content {
    padding: 20px;
    text-align: center;
}

.step-card .num {
    position: absolute;
    right: 30px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.1);
    border-left: none;
}

/* StepLabel 留空時依卡片順序自動產生 Step01、Step02… */
.step-card .num--auto::before {
    content: "Step" counter(step-card, decimal-leading-zero);
}

/* 舊版是 svg 的 width/height:25%，換算 345px 卡片約 76px */
.step-card .step-icon {
    margin-bottom: 15px;
    color: #fff;
    font-size: 4.75rem;
    line-height: 1;
}

/* wa-icon 是非同步載入的 web component，先佔位避免內文往下彈 */
.step-card .step-icon wa-icon {
    display: block;
    width: 1em;
    height: 1em;
    margin: 0 auto;
}

.step-card .content p {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-indent: 0;
    margin-bottom: 0;
}

.step-card .step-link {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    border-radius: 5px;
    background: #000;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

/* 依卡片順序上色，對應舊版 .card-step:nth-child(1~4) */
.step-card:nth-child(4n+1) .step-link {
    background: #2196f3;
}

.step-card:nth-child(4n+2) .step-link {
    background: #e91e63;
}

.step-card:nth-child(4n+3) .step-link {
    background: #23c186;
}

.step-card:nth-child(4n+4) .step-link {
    background: #c19023;
}

.step-card .step-link--disabled {
    background: #6c757d;
    box-shadow: none;
    cursor: default;
}

.step-card .box:hover {
    transform: translateY(-25px);
}

.step-card a.step-link:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}