.atlas-category-seo-text {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 4vw, 64px);
    clear: both;
    margin: clamp(24px, 4vw, 48px) 0 0;
    padding: clamp(26px, 3vw, 42px) clamp(24px, 3vw, 42px) clamp(26px, 3vw, 42px) clamp(48px, 5vw, 76px);
    border: 1px solid #e7e0d9;
    border-radius: 16px;
    background: #f8f6f3;
    color: CanvasText;
    line-height: 1.65;
}

.atlas-category-seo-text::before {
    position: absolute;
    top: clamp(26px, 3vw, 42px);
    bottom: clamp(26px, 3vw, 42px);
    left: clamp(20px, 2.4vw, 34px);
    width: 3px;
    border-radius: 3px;
    background: #e30613;
    content: "";
}

.atlas-category-seo-text > :first-child {
    margin-top: 0;
}

.atlas-category-seo-text > :last-child {
    margin-bottom: 0;
}

.atlas-category-seo-text h2,
.atlas-category-seo-text h3 {
    line-height: 1.25;
}

.atlas-category-seo-text h2 {
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.atlas-category-seo-text h3 {
    margin: clamp(28px, 4vw, 42px) 0 12px;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.atlas-category-seo-text p,
.atlas-category-seo-text li {
    max-width: 78ch;
}

.atlas-seo-guide__intro {
    grid-column: 1;
    align-self: start;
}

.atlas-seo-guide__intro > :first-child {
    margin-top: 0;
}

.atlas-seo-guide__intro > :last-child {
    margin-bottom: 0;
}

.atlas-category-seo-text ul {
    display: grid;
    gap: 8px;
    padding-left: 22px;
}

.atlas-category-seo-text a {
    color: #c80915;
    font-weight: 700;
    text-underline-offset: 3px;
}

.atlas-seo-guide__accordions {
    display: grid;
    grid-column: 2;
    max-width: none;
    align-self: start;
    gap: 10px;
    margin-top: 0;
}

.atlas-seo-guide__accordion {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.atlas-seo-guide__accordion.is-open {
    border-color: color-mix(in srgb, #e30613 28%, transparent);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.atlas-category-seo-text .atlas-seo-guide__accordion h3 {
    margin: 0;
    font-size: 1rem;
}

.atlas-seo-guide__accordion-trigger {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 48px 14px 18px;
    border: 0;
    background: transparent;
    color: #171b24;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-align: left;
}

.atlas-seo-guide__accordion-trigger::before,
.atlas-seo-guide__accordion-trigger::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #e30613;
    content: "";
    transform: translateY(-50%);
    transition: transform .18s ease;
}

.atlas-seo-guide__accordion-trigger::after {
    transform: translateY(-50%) rotate(90deg);
}

.atlas-seo-guide__accordion-trigger[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(0);
}

.atlas-seo-guide__accordion-trigger:hover {
    background: #fff8f8;
}

.atlas-seo-guide__accordion-trigger:focus-visible {
    outline: 2px solid color-mix(in srgb, #e30613 48%, transparent);
    outline-offset: -3px;
}

.atlas-seo-guide__accordion-panel {
    padding: 0 18px 18px;
}

.atlas-seo-guide__accordion-panel[hidden] {
    display: none;
}

.atlas-seo-guide__accordion-panel > :first-child {
    margin-top: 0;
}

.atlas-seo-guide__accordion-panel > :last-child {
    margin-bottom: 0;
}

.atlas-seo-guide__table-wrap {
    max-width: 980px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.atlas-seo-guide__table {
    width: 100%;
    min-width: 650px;
    border: 0;
    border-collapse: collapse;
    color: #202633;
    font-size: .92rem;
}

.atlas-seo-guide__table th,
.atlas-seo-guide__table td {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #e7e9ed;
    text-align: left;
    vertical-align: top;
}

.atlas-seo-guide__table th {
    background: #f5f6f8;
    color: #151a24;
    font-weight: 750;
}

.atlas-seo-guide__table tbody tr:last-child td {
    border-bottom: 0;
}

.atlas-seo-guide__note {
    max-width: 78ch;
    padding: 13px 16px;
    border-left: 3px solid #e30613;
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, #e30613 5%, #fff);
}

@media (max-width: 900px) {
    .atlas-category-seo-text {
        grid-template-columns: 1fr;
    }

    .atlas-seo-guide__accordions {
        grid-column: 1;
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    .atlas-category-seo-text {
        gap: 10px;
        padding: 22px 18px 22px 38px;
        border-radius: 12px;
    }

    .atlas-category-seo-text::before {
        top: 22px;
        bottom: 22px;
        left: 18px;
    }

    .atlas-seo-guide__accordions {
        gap: 8px;
        margin-top: 10px;
    }

    .atlas-seo-guide__accordion-trigger {
        min-height: 54px;
        padding: 12px 44px 12px 14px;
    }

    .atlas-seo-guide__accordion-trigger::before,
    .atlas-seo-guide__accordion-trigger::after {
        right: 16px;
    }

    .atlas-seo-guide__accordion-panel {
        padding: 0 14px 15px;
    }

    .atlas-seo-guide__table {
        font-size: .86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-seo-guide__accordion,
    .atlas-seo-guide__accordion-trigger::before,
    .atlas-seo-guide__accordion-trigger::after {
        transition: none;
    }
}

/* Plain category copy is one reading flow, not alternating grid cells. */
.atlas-category-seo-text:has(> .atlas-category-editorial) {
 display: block;
 padding: 28px 34px;
 color: #172331;
}
.atlas-category-seo-text:has(> .atlas-category-editorial)::before { display: none; }
.atlas-category-editorial { max-width: 1100px; }
.atlas-category-seo-text .atlas-category-editorial h2 {
 margin: 0 0 16px;
 font-size: clamp(22px, 2vw, 28px);
 line-height: 1.3;
}
.atlas-category-seo-text .atlas-category-editorial p {
 max-width: none;
 margin: 0 0 12px;
 line-height: 1.65;
}
.atlas-category-seo-text .atlas-category-editorial p:last-child { margin-bottom: 0; }
.atlas-category-editorial .atlas-category-editorial__links {
 padding-top: 14px;
 margin-top: 18px;
 border-top: 1px solid #e7e0d9;
}
.atlas-category-editorial a { font-weight: 600; }
@media(max-width:767px) {
 .atlas-category-seo-text:has(> .atlas-category-editorial) { padding: 20px; }
 .atlas-category-seo-text .atlas-category-editorial h2 { margin-bottom: 12px; }
}

.atlas-category-seo-text:has(> .atlas-boiler-guide) {
    padding: 24px 0;
    border: 0;
    border-top: 1px solid #e3e7ed;
    border-radius: 0;
    background: transparent;
}

.atlas-boiler-guide {
    max-width: none;
}

.atlas-boiler-guide__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.atlas-boiler-guide__links a {
    padding: 8px 14px;
    border: 1px solid #dce2ea;
    border-radius: 999px;
    text-decoration: none;
}

.atlas-boiler-guide__links a:hover,
.atlas-boiler-guide summary:hover {
    background: #f5f7fa;
}

.atlas-boiler-guide :is(a, summary):focus-visible {
    outline: 2px solid #c80915;
    outline-offset: 3px;
}

.atlas-boiler-guide details {
    margin-top: 20px;
    border: 1px solid #dce2ea;
    border-radius: 12px;
}

.atlas-boiler-guide summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.atlas-boiler-guide summary::-webkit-details-marker {
    display: none;
}

.atlas-boiler-guide summary::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin: -4px 3px 0 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.atlas-boiler-guide details[open] summary::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

.atlas-boiler-guide__answer {
    max-width: 74ch;
    padding: 16px;
    border-top: 1px solid #e3e7ed;
}

.atlas-boiler-guide__resources {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin-top: 14px;
    font-size: .875rem;
}

.atlas-category-seo-text .atlas-boiler-guide__resources p {
    margin: 0;
}

.atlas-boiler-guide__resources strong {
    margin-inline-end: 6px;
}
