:root {
    --arl-bg: #f7f9fc;
    --arl-card: #ffffff;
    --arl-text: #172033;
    --arl-muted: #5f6b7a;
    --arl-border: #e2e8f0;
    --arl-accent: #ff6b2c;
    --arl-accent-dark: #d94b11;
    --arl-soft: #fff1ea;
    --arl-good: #147d4b;
    --arl-good-bg: #edf9f2;
    --arl-bad: #a63d3d;
    --arl-bad-bg: #fff2f2;
    --arl-radius: 18px;
    --arl-shadow: 0 10px 32px rgba(23, 32, 51, 0.08);
    --arl-sticky-offset: 0px;
    --arl-nav-height: 58px;
}

html {
    scroll-behavior: smooth;
}


/* Full-width ARL canvas: override Astra's normal single-post content-area width. */
body.arl-review-template-active #content.site-content {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.arl-review-template-active #content.site-content > .ast-container {
    display: block;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.arl-review-template-active #primary.arl-review-page {
    float: none;
    clear: both;
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    margin: 0;
}


.arl-review-page {
    background: var(--arl-bg);
    color: var(--arl-text);
    padding: 28px 0 64px;
}

.arl-review-page * {
    box-sizing: border-box;
}

.arl-shell {
    width: min(1500px, calc(100% - 64px));
    margin: 0 auto;
}

.arl-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: stretch;
    margin-bottom: 28px;
}

.arl-hero-left,
.arl-hero-right {
    min-width: 0;
}

.arl-review-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--arl-text);
}

.arl-intro {
    margin: 0 0 22px;
    color: var(--arl-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.arl-product-name {
    margin: 0 0 16px;
    font-weight: 800;
    font-size: 1.2rem;
}

.arl-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #2563EB;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(255, 107, 44, 0.22);
    transition: transform 160ms ease, background 160ms ease;
}

.arl-cta:hover,
.arl-cta:focus {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.arl-featured-image {
    overflow: hidden;
    border-radius: var(--arl-radius);
    background: #fff;
    box-shadow: var(--arl-shadow);
}

.arl-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.arl-product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    min-height: 74px;
}

.arl-product-logo img {
    max-height: 62px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.arl-overall-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 10px 16px;
    border: 1px solid var(--arl-border);
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
}

.arl-overall-rating strong {
    font-size: 1.35rem;
}

.arl-overall-rating span {
    color: var(--arl-muted);
}

.arl-section-nav {
    position: sticky;
    top: var(--arl-sticky-offset);
    z-index: 900;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--arl-border);
    border-bottom: 1px solid var(--arl-border);
    box-shadow: 0 6px 18px rgba(23, 32, 51, 0.05);
    backdrop-filter: blur(10px);
}

.arl-section-nav-inner {
    width: min(1680px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    gap: 5px;
    align-items: center;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 9px 0;
}

.arl-section-nav-inner::-webkit-scrollbar {
    display: none;
}

.arl-nav-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--arl-text) !important;
    text-decoration: none !important;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 150ms ease, color 150ms ease;
}

.arl-nav-link:hover,
.arl-nav-link:focus {
    background: var(--arl-soft);
}

.arl-nav-link.is-active {
    background: var(--arl-accent);
    color: #fff !important;
}

.arl-sections {
    padding-top: 22px;
}

.arl-section {
    scroll-margin-top: calc(var(--arl-sticky-offset) + var(--arl-nav-height) + 12px);
    background: var(--arl-card);
    border: 1px solid var(--arl-border);
    border-radius: var(--arl-radius);
    box-shadow: var(--arl-shadow);
    padding: clamp(20px, 3vw, 30px);
    margin-bottom: 14px;
}

.arl-section h2 {
    margin: 0 0 12px;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.2;
    color: var(--arl-text);
}

.arl-section h3,
.arl-section h4,
.arl-section h5,
.arl-section h6 {
    color: var(--arl-text);
}

.arl-section-body {
    color: var(--arl-muted);
    line-height: 1.68;
}

.arl-section-body > :first-child {
    margin-top: 0;
}

.arl-section-body > :last-child {
    margin-bottom: 0;
}

.arl-section-body ul,
.arl-section-body ol {
    margin: 0;
    padding-left: 1.35rem;
}

.arl-section-body li + li {
    margin-top: 8px;
}

.arl-section-image {
    width: min(78%, 760px);
    margin: 18px auto 0;
    border: 1px solid var(--arl-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.arl-section-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.arl-disclosure-section {
    background: #fffaf7;
    border-color: #ffd9c7;
}

.arl-pros-cons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.arl-pros,
.arl-cons {
    border-radius: 14px;
    padding: 18px;
}

.arl-pros {
    background: var(--arl-good-bg);
    border: 1px solid #cfeedd;
}

.arl-cons {
    background: var(--arl-bad-bg);
    border: 1px solid #f0d2d2;
}

.arl-pros h3 {
    color: var(--arl-good);
    margin-top: 0;
}

.arl-cons h3 {
    color: var(--arl-bad);
    margin-top: 0;
}

.arl-pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.arl-pricing-copy p {
    margin: 0 0 12px;
}

.arl-rating-breakdown {
    display: grid;
    gap: 14px;
}

.arl-rating-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.94rem;
}

.arl-rating-track {
    height: 8px;
    background: #edf0f4;
    border-radius: 999px;
    overflow: hidden;
}

.arl-rating-track span {
    display: block;
    height: 100%;
    background: var(--arl-accent);
    border-radius: inherit;
}

.arl-faq-item {
    border: 1px solid var(--arl-border);
    border-radius: 12px;
    background: #fff;
    padding: 0 16px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.arl-faq-item:hover {
    background: var(--arl-good-bg);
    border-color: rgba(20, 125, 75, 0.30);
}

.arl-faq-item + .arl-faq-item {
    margin-top: 10px;
}

.arl-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: var(--arl-text);
    padding: 16px 30px 16px 0;
    position: relative;
    transition: color 160ms ease;
}

.arl-faq-item:hover summary {
    color: var(--arl-good);
}

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

.arl-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 13px;
    font-size: 1.35rem;
    color: var(--arl-accent);
}

.arl-faq-item[open] summary::after {
    content: '–';
}

.arl-faq-answer {
    padding: 0 0 16px;
}

@media (max-width: 900px) {
    .arl-review-page {
        padding-top: 20px;
    }

    .arl-shell {
        width: min(100% - 28px, 760px);
    }

    .arl-section-nav-inner {
        width: calc(100% - 28px);
    }

    .arl-section-image {
        width: min(88%, 720px);
    }

    .arl-hero {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .arl-hero-left,
    .arl-hero-right {
        display: contents;
    }

    .arl-review-title { order: 1; }
    .arl-intro { order: 2; }
    .arl-featured-image { order: 3; }
    .arl-product-name { order: 4; }
    .arl-product-meta-row { order: 5; }
    .arl-cta { order: 6; width: 100%; }

    .arl-product-meta-row {
        margin-top: 0;
        min-height: 0;
    }

    .arl-pros-cons,
    .arl-pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .arl-review-title {
        font-size: 2rem;
    }

    .arl-intro {
        font-size: 1rem;
    }

    .arl-section-nav-inner {
        width: calc(100% - 16px);
        padding: 8px 0;
    }

    .arl-nav-link {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 0.84rem;
    }

    .arl-section {
        border-radius: 14px;
        padding: 20px 18px;
    }

    .arl-section-image {
        width: 100%;
        margin-top: 16px;
    }

    .arl-product-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .arl-cta,
    .arl-nav-link {
        transition: none;
    }
}


/* v0.3.2: make inline legacy labels read as stacked mini-paragraphs.
   This is intentionally scoped to the two sections where older article
   content uses <strong> labels followed by plain text on the same flow. */
#key-features .arl-section-body > strong,
#who-should-use .arl-section-body > strong {
    display: block;
    margin: 20px 0 5px;
    color: var(--arl-text);
    font-size: 1.02rem;
    line-height: 1.45;
}

#key-features .arl-section-body > strong + br,
#who-should-use .arl-section-body > strong + br {
    display: none;
}
