.eph-amazon-picks {
    max-width: 1120px;
    margin: 24px auto;
    padding: 12px clamp(12px, 3vw, 24px);
    color: #19191c;
}

.eph-homepage > .eph-amazon-picks { border-top: 1px solid #dedee2; }
.eph-amazon-picks > :is(h1, h2, h3) { margin: 0 0 8px; }
.eph-amazon-picks > :is(h2, h3)[id$="-phones"],
.eph-amazon-picks > :is(h2, h3)[id$="-accessories"] { margin-top: 20px; scroll-margin-top: 100px; }
.eph-amazon-picks > p { margin: 0 0 10px; max-width: 72ch; }
.eph-amazon-disclosure { color: #4b4c56; font-size: .875rem; }

.eph-amazon-nav,
.eph-amazon-links {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
}

.eph-amazon-all { font-weight: 650; }
.eph-amazon-category { margin-top: 8px; }
.eph-amazon-category summary { padding: 6px 0; cursor: pointer; font-weight: 650; }
.eph-amazon-category[open] summary { margin-bottom: 4px; }
.eph-amazon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 10px;
    align-items: start;
}

.eph-amazon-group {
    border: 1px solid #dedee2;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.eph-amazon-group > p { margin: 0 0 2px; font-weight: 700; }
.eph-amazon-group > ul { list-style: none; margin: 0; padding: 0; }
.eph-amazon-group li { padding: 8px 0; line-height: 1.35; }
.eph-amazon-group li + li { border-top: 1px solid #ededf0; }
.eph-amazon-specs { display: block; margin: 2px 0 4px; font-size: .84rem; color: #4b4c56; }
.eph-amazon-links a { font-size: .875rem; }
.eph-amazon-links span { font-weight: 400; font-size: .75rem; }
.eph-amazon-picks a:focus-visible { outline: 2px solid #3158bb; outline-offset: 2px; }
.eph-primary-actions .eph-nav-sub.eph-nav-editorial-list {
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 8px;
}

.eph-guide-intro.eph-brand-guide-intro { margin-bottom: 8px; padding: 8px 10px; }
.eph-brand-guide-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    align-items: start;
}
.eph-brand-guide-controls > .eph-guide-fold {
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0 !important;
}
.eph-brand-guide-intro .eph-brand-guide-controls > .eph-guide-fold > summary {
    box-sizing: border-box;
    min-height: 36px !important;
    height: auto !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 4px 7px !important;
    line-height: 1.25 !important;
}
@media (pointer: coarse) {
    .eph-brand-guide-intro .eph-brand-guide-controls > .eph-guide-fold > summary { min-height: 44px !important; }
}
.eph-brand-guide-controls > :is(.eph-guide-links, .eph-guide-fold[open]) { grid-column: 1 / -1; }
.eph-brand-guide-controls > .eph-guide-links { margin-top: 0 !important; }
.eph-brand-guide-intro + .eph-guide-jump { margin-block: 4px 10px !important; }
@media (max-width: 360px) {
    .eph-brand-guide-controls > .eph-guide-fold > summary { font-size: 12px !important; }
}

.eph-nav-editorial-list .eph-nav-guide-link {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 37px;
    overflow-wrap: anywhere;
}

#ast-desktop-header .eph-nav-editorial-list .eph-nav-guide-link:first-of-type {
    background: #eaf0fc;
    color: #174399 !important;
}

body #ast-mobile-popup .eph-nav-editorial-list .eph-nav-guide-link {
    min-height: 44px !important;
    padding: 7px 9px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

body #ast-mobile-popup .eph-nav-editorial-list { grid-template-columns: minmax(0, 1fr); }

.eph-compare-page,
.eph-model-guide-article {
    --eph-guide-ink: #171b25;
    --eph-guide-muted: #50596a;
    --eph-guide-line: #dce1e9;
    --eph-guide-tint: #f4f7fc;
    --eph-guide-link: #19499e;
    color: var(--eph-guide-ink);
}

.eph-compare-page {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: clamp(16px, 3vw, 40px) clamp(10px, 2vw, 22px) 48px;
}

.eph-compare-page a,
.eph-model-guide-article a { color: var(--eph-guide-link); }

.eph-compare-page :is(a, button, input, select, summary):focus-visible,
.eph-model-guide-article :is(a, summary):focus-visible,
.eph-nav-guide-link:focus-visible {
    outline: 2px solid #235abd;
    outline-offset: 3px;
}

.eph-compare-hero {
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--eph-guide-line);
    border-radius: 16px;
    background: var(--eph-guide-tint);
}

.eph-compare-hero .eph-compare-back { font-size: .9rem; font-weight: 650; }
.eph-compare-page .eph-compare-hero h1 {
    margin: 12px 0 8px;
    color: var(--eph-guide-ink);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -.035em;
    line-height: 1.1;
}

.eph-compare-hero p { max-width: 58ch; margin: 0; color: var(--eph-guide-muted); }
.eph-compare-page h2 { margin: 0 0 14px; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.22; }
.eph-compare-page h3 { margin: 0; font-size: 1.06rem; line-height: 1.35; }
#eph-compare-library, .eph-compare-pair { margin-top: 28px; }

.eph-compare-search { max-width: 36rem; margin: 0 0 14px; }
.eph-compare-search label { display: block; margin-bottom: 5px; font-weight: 650; }
.eph-compare-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.eph-compare-search input[type="search"],
.eph-compare-picker select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #aab4c5;
    border-radius: 8px;
    background: #fff;
    color: var(--eph-guide-ink);
    font-size: 1rem;
}

/* Keep editorial button states above the theme's important link colors. */
@layer ephGuideControls {
    .eph-guide-cta {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box;
        min-height: 44px !important;
        padding: 8px 13px !important;
        border: 1px solid var(--eph-guide-cta-border, #c4d4ee) !important;
        border-radius: 8px !important;
        background: var(--eph-guide-cta-bg, #f4f7fc) !important;
        color: var(--eph-guide-cta-ink, #19499e) !important;
        -webkit-text-fill-color: currentColor !important;
        font: inherit;
        font-weight: 650 !important;
        text-align: center;
        text-decoration: none !important;
        cursor: pointer;
    }
    .eph-guide-cta-primary {
        --eph-guide-cta-border: #19499e;
        --eph-guide-cta-bg: #19499e;
        --eph-guide-cta-ink: #fff;
        --eph-guide-cta-hover-bg: #143c82;
        --eph-guide-cta-hover-border: #143c82;
    }
    .eph-guide-cta:is(:hover, :focus-visible) {
        background: var(--eph-guide-cta-hover-bg, #e8f0ff) !important;
        border-color: var(--eph-guide-cta-hover-border, #6e94cd) !important;
    }
    .eph-guide-cta:focus-visible {
        outline: 2px solid #235abd !important;
        outline-offset: 3px !important;
    }
}

.eph-compare-picker { margin-top: 16px; padding: 14px; border: 1px solid var(--eph-guide-line); border-radius: 10px; }
.eph-compare-picker h2 { margin-bottom: 9px; font-size: 1.12rem; }
.eph-compare-picker form { margin: 0; }
.eph-compare-picker-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 8px; }
.eph-compare-picker-controls label { min-width: 0; font-weight: 650; }
.eph-compare-picker-controls select { display: block; margin-top: 4px; }
.eph-compare-picker .eph-compare-empty { margin: 0 0 10px; }

.eph-compare-filters,
.eph-compare-actions,
.eph-model-guide-actions,
.eph-model-guide-rivals {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.eph-compare-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 6px 12px;
    border: 1px solid var(--eph-guide-line);
    border-radius: 8px;
    background: #fff;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}

.eph-compare-filters a[aria-current="true"] { border-color: #a9c2ee; background: #e8f0ff; }
.eph-compare-group { margin-top: 20px; }
.eph-compare-group ul { display: grid; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.eph-compare-group li { margin: 0; }
.eph-compare-group li a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid var(--eph-guide-line);
    border-radius: 8px;
    color: var(--eph-guide-ink);
    font-weight: 650;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.eph-compare-group li a:hover, .eph-compare-filters a:hover { background: var(--eph-guide-tint); }
.eph-compare-group small { color: var(--eph-guide-muted); }
.eph-compare-arrow { color: var(--eph-guide-link); }
.eph-compare-more { display: inline-block; margin-top: 3px; font-weight: 650; }
.eph-compare-empty { margin: 16px 0 0; padding: 12px; border-radius: 8px; background: var(--eph-guide-tint); }

.eph-compare-page .eph-compare-table {
    width: 100%;
    margin: 0 0 12px;
    border-collapse: collapse;
    border: 1px solid var(--eph-guide-line);
    table-layout: fixed;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.eph-compare-table :is(th, td) { padding: 10px; border: 1px solid var(--eph-guide-line); text-align: left; vertical-align: top; }
.eph-compare-table thead th { background: #eaf0fb; color: var(--eph-guide-ink); }
.eph-compare-table tr > :first-child { width: 25%; }
.eph-compare-table tbody th { background: var(--eph-guide-tint); }

.eph-compare-advice,
.eph-model-guide-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eph-compare-advice-single { grid-template-columns: minmax(0, 1fr); }
.eph-compare-advice article,
.eph-model-guide-overview > div { padding: 13px; border: 1px solid var(--eph-guide-line); border-radius: 10px; background: var(--eph-guide-tint); }
.eph-compare-advice article > p { margin: 7px 0; }
.eph-compare-advice .eph-compare-source { color: var(--eph-guide-muted); font-size: .85rem; }

#buying-guide, #live-deals, #iphone-guides, #galaxy-guides, #eph-compare-picker { scroll-margin-top: 6rem; }
.eph-model-guide-article h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
.eph-model-guide-actions { margin: 0 0 12px; gap: 10px 14px; }
.eph-model-guide-overview ul { margin: 0; padding-inline-start: 1.15rem; }
.eph-model-guide-overview li + li { margin-top: 4px; }
.eph-model-guide-details { margin: 12px 0; border: 1px solid var(--eph-guide-line); border-radius: 9px; }
.eph-model-guide-details summary { min-height: 44px; padding: 9px 12px; font-weight: 650; cursor: pointer; }
.eph-model-guide-details[open] summary { border-bottom: 1px solid var(--eph-guide-line); }
.eph-model-guide-details .eph-model-guide-content { padding: 12px; }
.eph-model-guide-article .eph-model-guide-rivals { margin: 0 0 8px; padding: 0; list-style: none; }
.eph-offer-model-guide { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 7px; background: #edf3fc; color: #19499e; font-weight: 650; }
.eph-guide-hub-compare { margin: 10px 0; font-weight: 650; }

.eph-quick-guide-dialog {
    position: fixed;
    inset: 0;
    width: min(34rem, calc(100% - 24px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: clamp(15px, 4vw, 24px);
    border: 1px solid #dce1e9;
    border-radius: 14px;
    background: #fff;
    color: #171b25;
    box-shadow: 0 14px 44px #17213b38;
    overflow: auto;
}

.eph-quick-guide-dialog::backdrop { background: #11182785; }
.eph-quick-guide-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.eph-quick-guide-dialog h2 { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.2; }
.eph-quick-guide-dialog h3 { margin: 10px 0 2px; font-size: 1rem; }
.eph-quick-guide-dialog p, .eph-quick-guide-dialog ul { margin: 0 0 8px; }
.eph-quick-guide-dialog ul { padding-inline-start: 1.2rem; }
.eph-quick-guide-dialog .eph-quick-guide-close { min-height: 38px; padding: 4px 9px; border: 1px solid #dce1e9; border-radius: 7px; background: #f4f7fc; color: #19499e; font: inherit; }
.eph-quick-guide-dialog .eph-quick-guide-full { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: #19499e; font-weight: 650; }
.eph-quick-guide-dialog :is(a, button):focus-visible { outline: 2px solid #235abd; outline-offset: 3px; }

@media (max-width: 620px) {
    .eph-compare-advice, .eph-model-guide-overview { grid-template-columns: minmax(0, 1fr); }
    .eph-compare-picker-controls { grid-template-columns: minmax(0, 1fr); }
    .eph-compare-table { font-size: .82rem; }
    .eph-compare-table :is(th, td) { padding: 7px 5px; }
    .eph-compare-group li a { gap: 6px; padding-inline: 7px; }
}
