/* Guide + Spec column. Do not put these rules in page.css / v-components.css. */

.page-guide-kicker {
    margin: 0 0 12px;
    color: #999999;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
}

.page-guide-kicker a {
    color: inherit;
    text-decoration: none;
}

.page-guide-kicker a:hover {
    color: #5a8219;
}

.page-guide-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 20px;
}

.page-guide-topics a {
    color: #525252;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e7;
}

.page-guide-topics a:hover {
    color: #5a8219;
    border-bottom-color: #5a8219;
}

.page-guide-header {
    text-align: left;
}

.page-guide-byline {
    color: #999999;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}

/* TOC = heading anchors (WP Easy TOC / Rank Math / SimpleTOC slot). Square. */
.page-guide-toc {
    margin: 0 0 28px;
    padding: 20px 24px;
    background-color: #fafafa;
}

.page-guide-toc-label {
    margin: 0 0 8px;
    color: #262626;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
}

.page-guide-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: guide-toc;
}

.page-guide-toc li {
    margin: 0;
    counter-increment: guide-toc;
    border-bottom: 1px solid #e5e5e7;
}

.page-guide-toc li:last-child {
    border-bottom: 0;
}

.page-guide-toc a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    color: #262626;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
}

.page-guide-toc a::before {
    content: counter(guide-toc, decimal-leading-zero);
    flex-shrink: 0;
    min-width: 1.5em;
    color: #999999;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.page-guide-toc a:hover {
    color: #5a8219;
}

.gi-richtext h2[id],
.page-guide-summary {
    scroll-margin-top: 96px;
}

/* GEO direct answer — full content width, same family as .page-faq-tip. */
.page-guide-summary {
    margin: 0 0 40px;
    padding: 24px 32px;
    background: #fafafa;
    border-left: 3px solid #5a8219;
}

.page-guide-summary-label {
    margin: 0 0 8px;
    color: #5a8219;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.page-guide-summary-body {
    margin: 0;
    color: #262626;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
}

.page-guide-summary-body > :first-child {
    margin-top: 0;
}

.page-guide-summary-body > :last-child {
    margin-bottom: 0;
}

.page-guide-summary-body p {
    margin: 0 0 0.75em;
}

.page-guide-summary-body strong {
    font-weight: 600;
    color: #262626;
}

.page-guide-faq-q {
    margin: 0;
    flex: 1;
    min-width: 0;
    color: #262626;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
}

/* Body vs after-body: content zone ends here; related modules sit below. */
.page-guide-content {
    margin-bottom: 72px;
}

/* After-body modules: title + box. Reviews / FAQ / related searches. */
.page-guide-block {
    margin: 0 0 56px;
}

.page-guide-block-title {
    margin: 0 0 16px;
    color: #262626;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.page-guide-block-box {
    padding: 24px;
    background: #fafafa;
    border: 1px solid #e5e5e7;
}

.page-guide-faq .page-guide-block-box {
    padding: 0;
}

.page-guide-faq-item {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e5e7;
}

.page-guide-faq-item:last-child {
    border-bottom: 0;
}

.page-guide-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.page-guide-faq-item summary::-webkit-details-marker {
    display: none;
}

.page-guide-faq-item summary i {
    flex-shrink: 0;
    color: #999999;
    font-size: 16px;
    transition: transform 0.15s ease;
}

.page-guide-faq-item[open] summary i {
    transform: rotate(180deg);
}

.page-guide-faq-item summary + p {
    margin: 12px 0 0;
    color: #525252;
    font-size: 14px;
    line-height: 1.7;
}

.page-guide-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-guide-searches a {
    padding: 8px 14px;
    color: #525252;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e5e5e7;
}

.page-guide-searches a:hover {
    color: #5a8219;
    border-color: #5a8219;
}

.gi-richtext .page-guide-dek {
    margin: -4px 0 1.25em;
    color: #525252;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}

/* Spec / compare table: first column = item, other columns = values.
   Default <table> stays the boxed data grid. */
.gi-richtext table.table-kv {
    width: 100%;
    margin: 0 0 1.5em;
    border: 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.gi-richtext table.table-kv thead th {
    background: transparent;
    font-weight: 600;
    color: #262626;
    text-align: left;
    padding: 10px 16px 10px 0;
    border-bottom: 1px solid #262626;
}

.gi-richtext table.table-kv thead th:first-child {
    color: #999999;
    font-weight: 500;
}

.gi-richtext table.table-kv tbody th,
.gi-richtext table.table-kv tbody td {
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid #e5e5e7;
    vertical-align: top;
    background: transparent;
}

.gi-richtext table.table-kv tbody tr:last-child th,
.gi-richtext table.table-kv tbody tr:last-child td {
    border-bottom: 0;
}

.gi-richtext table.table-kv tbody > tr > :first-child {
    width: 28%;
    color: #525252;
    font-weight: 500;
    padding-right: 20px;
}

.gi-richtext table.table-kv tbody td {
    color: #262626;
    font-weight: 400;
}

/* Rail products: same LI as shop mobile row (left image / right copy + text badges). */
.page-guide-products ul.products {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0;
    row-gap: 0;
}

.page-guide-products ul.products > li.product {
    width: 100%;
    max-width: none;
    float: none;
}

.page-guide-products .shop-pro-inner>ul.products>li.product {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e7;
}

.page-guide-products .shop-pro-inner>ul.products>li.product:first-child {
    border-top: 1px solid #e5e5e7;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner {
    grid-template-columns: 30% 70%;
    grid-template-rows: auto;
    align-items: start;
    border: none;
    border-radius: 0;
    background-color: transparent;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-image-outer {
    display: contents;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-image-link {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-height: 100%;
    align-self: start;
    background-color: #f5f5f5;
    overflow: hidden;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner:has(.gi-pro-badges) .gi-pro-image-link {
    grid-row: 1 / span 2;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner:has(.gi-pro-badges) {
    grid-template-rows: auto auto;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-badges {
    position: static;
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 6px 16px;
    max-width: none;
    gap: 4px 10px;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-badges .gl-tag {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #737373;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner:has(.gi-pro-badges) .gi-pro-body {
    grid-row: 2;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-image-bars {
    flex-direction: row;
    align-items: stretch;
    left: 0;
    right: 0;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-image-bars .gi-pro-image-bar {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    height: 20px;
    font-size: 10px;
    padding: 0 6px;
    letter-spacing: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-body {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    padding: 0 0 0 16px;
    justify-content: flex-start;
    gap: 8px;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-title {
    order: -1;
    font-size: 14px;
    line-height: 1.35;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-monthly-sales {
    display: none;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-footer {
    flex: 0 0 auto;
    align-items: center;
    align-content: flex-start;
    margin-top: 0;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-footer> :not(.gi-pro-rating) {
    flex: 0 1 auto;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-badge-row {
    order: 1;
    flex: 0 0 100%;
    width: 100%;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-footer>.stock {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-rating {
    order: 3;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-price {
    display: contents;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-price>.price,
.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-footer>.price {
    order: 3;
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 0;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-starrating {
    width: 1em;
    letter-spacing: 0;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pro-starrating::before {
    content: "\f005";
    background: none;
    -webkit-text-fill-color: #f27d0c;
    color: #f27d0c;
}

.page-guide-products .shop-pro-inner>ul.products .gi-product-inner .gi-pdp-price-discount {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .page-guide-summary {
        padding: 20px 20px;
        margin-bottom: 32px;
    }

    .page-guide-content {
        margin-bottom: 48px;
    }

    .gi-richtext table.table-kv {
        overflow-x: auto;
    }

    .gi-richtext table.table-kv tbody > tr > :first-child {
        width: auto;
        min-width: 7.5em;
    }
}

.page-faq-turn + .page-guide-block {
    margin-top: 40px;
}

.page-guide-related {
    margin: 0;
}

.page-guide-related ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-guide-related li + li {
    border-top: 1px solid #e5e5e7;
}

.page-guide-related-item {
    display: block;
    padding: 16px 0;
    color: inherit;
    text-decoration: none;
}

.page-guide-related-title {
    display: block;
    color: #262626;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.page-guide-related-item:hover .page-guide-related-title {
    color: #5a8219;
}

.page-guide-related-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
}

.page-guide-related-keys span,
.page-guide-related-keys a {
    color: #525252;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e7;
}

.page-guide-related-keys a:hover {
    color: #5a8219;
    border-bottom-color: #5a8219;
}

/* Entity-Grouped Related Guides (Minimalist) */
.page-guide-related-group {
    margin-top: 28px;
}

.page-guide-related-group:first-child {
    margin-top: 0;
}

.page-guide-related-subhead {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    letter-spacing: 0;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.page-guide-related-subhead .entity-name {
    color: #5a8219;
}

/* Spec modules (was spec.css). Guide chrome above. */
.page-spec-overview.page-guide-summary {
    margin: 0 0 22px;
    padding: 16px 20px;
}

/* UA centers <th>. Row labels in the spec tables stay left. */
.gi-richtext table.table-kv tbody th {
    text-align: left;
}

.page-spec-sheet.page-guide-content {
    margin-bottom: 16px;
}

.page-spec-sheet-notes {
    margin: 0 0 48px;
}

.page-spec-sheet-notes .page-spec-note {
    margin: 8px 0 0;
}

.page-spec-sheet-notes .page-spec-note:first-child {
    margin-top: 0;
}

.page-spec-sheet .page-spec-group:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .page-spec-sheet.page-guide-content {
        margin-bottom: 12px;
    }

    .page-spec-sheet-notes {
        margin-bottom: 36px;
    }
}

.page-spec-sheet .gi-richtext table.table-kv tbody > tr > :first-child {
    width: 14em;
}

.page-spec-group {
    scroll-margin-top: 96px;
    margin: 0 0 32px;
}

.page-spec-group > h2 {
    margin: 0 0 4px;
    color: #262626;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.page-spec-group > h3 {
    margin: 16px 0 8px;
    color: #262626;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.page-spec-group > h3:first-of-type {
    margin-top: 12px;
}

.page-spec-note {
    margin: 10px 0 0;
    color: #525252;
    font-size: 14px;
    line-height: 1.55;
}

.page-spec-group > h2 + .page-spec-note {
    margin: 8px 0 16px;
}

.page-spec-read,
.page-spec-fit {
    scroll-margin-top: 96px;
}

/* Our ratings: primary product ACF. Bars match PDP — no numeric score. */
.page-spec-read-scale,
.page-spec-read-head {
    display: grid;
    grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.page-spec-read-head {
    grid-column: 1 / -1;
}

.page-spec-read-scale {
    margin: 0 0 4px;
}

.page-spec-read-ends {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    color: #b0b0b0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.page-spec-read-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-spec-read-list > li {
    display: grid;
    grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    padding: 12px 0;
}

.page-spec-read-name {
    color: #262626;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.page-spec-read-track {
    --score: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    height: 5px;
}

.page-spec-read-track[data-score="1"] { --score: 1; }
.page-spec-read-track[data-score="2"] { --score: 2; }
.page-spec-read-track[data-score="3"] { --score: 3; }
.page-spec-read-track[data-score="4"] { --score: 4; }
.page-spec-read-track[data-score="5"] { --score: 5; }
.page-spec-read-track[data-score="6"] { --score: 6; }
.page-spec-read-track[data-score="7"] { --score: 7; }
.page-spec-read-track[data-score="8"] { --score: 8; }
.page-spec-read-track[data-score="9"] { --score: 9; }
.page-spec-read-track[data-score="10"] { --score: 10; }

.page-spec-read-seg {
    --i: 1;
    position: relative;
    display: block;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 1px;
    background: rgba(38, 38, 38, 0.1);
}

.page-spec-read-seg:nth-child(1) { --i: 1; }
.page-spec-read-seg:nth-child(2) { --i: 2; }
.page-spec-read-seg:nth-child(3) { --i: 3; }
.page-spec-read-seg:nth-child(4) { --i: 4; }
.page-spec-read-seg:nth-child(5) { --i: 5; }

.page-spec-read-seg::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: clamp(0%, calc((var(--score) - (var(--i) - 1) * 2) * 50%), 100%);
    background: #6f6b64;
}

.page-spec-read-why {
    grid-column: 2;
    margin: 0;
    color: #737373;
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
}

@media (max-width: 639px) {
    .page-spec-read-scale,
    .page-spec-read-head,
    .page-spec-read-list > li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-spec-read-scale .page-spec-read-name {
        display: none;
    }

    .page-spec-read-why {
        grid-column: 1;
    }
}

.page-spec-read > .page-spec-note {
    margin: 16px 0 0;
}

.page-spec-read > .page-spec-note + .page-spec-note {
    margin-top: 8px;
}

/* Who it fits: related gl_entity terms. Outside post_content. */
.page-spec-fit-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page-spec-fit-group + .page-spec-fit-group {
    margin-top: 20px;
}

.page-spec-fit-subhead {
    margin: 0 0 8px;
    color: #999999;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.page-spec-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-spec-entity {
    display: inline-flex;
}

.page-spec-entity .entity-name {
    color: #5a8219;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.page-spec-fit > .page-spec-note {
    margin: 16px 0 0;
}

/* Spec rail only — do not strip Guide related-product borders. */
.page-spec-buy .shop-pro-inner>ul.products>li.product,
.page-spec-buy .shop-pro-inner>ul.products>li.product:first-child {
    border-top: none;
    border-bottom: none;
}

.page-spec-assembly {
    padding: 8px 0 0;
}

.page-spec-assembly > h2 {
    margin: 0 0 16px;
    color: #262626;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.page-spec-assembly .page-doc,
.page-spec-assembly .page-doc:first-child {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.page-spec-assembly .page-doc-view {
    display: none;
}

.page-spec-assembly .page-doc-title,
.page-spec-assembly .page-doc-models {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
