/* =========================================================
   LUMISCHEMA SINGLE DEVICE PAGE
   Component styles only. Page width, gutters, the top gap under the header
   and the main/sidebar grid come from layout-system.css.
   Design: hero + price box, key specs, tabbed specs, related links, sidebar.
   ========================================================= */

.ls-device-main { min-width: 0; color: #10233f; }
.ls-device-page a:hover,
.ls-device-page a:focus { text-decoration: none; }

/* Breadcrumb: shared .ls-crumbs in global.css. */

/* ---------- Hero ---------- */
.ls-device-hero {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}
.ls-device-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    overflow: hidden;
    background: none;
    border: 0;
    border-radius: 0;
}
.ls-device-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    object-fit: contain;
}
.ls-device-image-placeholder { padding: 24px; color: #71819b; text-align: center; font-size: 14px; }

.ls-device-brand {
    display: inline-flex;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #0b5fd8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.ls-device-brand:hover,
a.ls-device-brand:focus { background: #0849a8; color: #fff; text-decoration: none; }
.ls-device-intro h1 {
    margin: 0 0 10px;
    color: #071D33;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.25;
    font-weight: 800;
}
.ls-device-description { margin: 0 0 12px; color: #526477; font-size: 14px; line-height: 1.6; }

.ls-device-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; color: #4a5d7a; font-size: 12px; }
.ls-device-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ls-device-meta svg { width: 14px; height: 14px; fill: none; stroke: #0b5fd8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 14px; }

/* ---------- Hero card (design A) ----------
   Soft blue-grey card with a brand-blue top line and a light shadow; photo, spec
   tiles and the availability bar sit on white inside it. No price. */
.ls-hero {
    display: flex;
    gap: 22px;
    margin: 0 0 24px;
    padding: 18px;
    background: #f6f9fe;
    border: 1px solid #d6e4fb;
    border-top: 4px solid #0b5fd8;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(7, 29, 51, .08);
}
.ls-hero-media { flex: 0 0 220px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ls-hero-image { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex: 1; min-height: 0; padding: 14px 12px 12px; background: radial-gradient(120% 70% at 50% 40%, #ffffff 0%, #ffffff 55%, #eef5ff 100%); border: 1px solid #e1e9f4; border-radius: 12px; box-sizing: border-box; }
.ls-hero-photo { position: relative; flex: 1 1 auto; min-height: 130px; }
.ls-hero-photo > img, .ls-hero-photo > .ls-device-image-placeholder { position: absolute; inset: 0; margin: auto; }
.ls-hero-photo > .ls-device-image-placeholder { display: flex; align-items: center; justify-content: center; padding: 12px; }
.ls-hero-image img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(7, 29, 51, .14)); }
.ls-hero-colours { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; color: #4a5d7a; font-size: 11px; }
.ls-hero-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(7, 29, 51, .18); box-sizing: border-box; }
.ls-hero-colours-label { margin-left: 4px; }
.ls-hero-image .ls-hero-colours { padding-top: 10px; border-top: 1px solid #edf2f9; }

/* Quick facts under the photo: one line each (label left, value right). */
.ls-hero-facts { list-style: none; margin: 0; padding: 2px 12px; background: #fff; border: 1px solid #e1e9f4; border-radius: 12px; }
.ls-hero-facts li { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 7px 0; }
.ls-hero-facts li + li { border-top: 1px solid #edf2f9; }
.ls-hero-facts .ls-ico { flex: 0 0 18px; width: 18px; height: 18px; }
.ls-hero-facts span { display: flex; flex: 1; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.ls-hero-facts small { flex: 0 0 auto; color: #667085; font-size: 11px; font-weight: 600; line-height: 1.3; }
.ls-hero-facts strong { min-width: 0; color: #071D33; font-size: 12.5px; font-weight: 700; line-height: 1.3; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ls-hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ls-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.ls-hero-tags .ls-device-brand { margin: 0; }
.ls-hero-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.ls-hero-status.is-released { background: #e8f5ec; color: #14532d; }
.ls-hero-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #16803d; }
.ls-hero-status.is-rumored { background: #c62828; color: #fff; }
.ls-hero-status.is-announced { background: #e8f0fe; color: #0b3a82; }
.ls-hero-status.is-announced .ls-hero-status-dot { background: #0B5FD8; }
.ls-hero-status.is-upcoming { background: #fff4e5; color: #8a4b00; }
.ls-hero h1 { margin: 0 0 6px; color: #071D33; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; font-weight: 800; letter-spacing: -.3px; }
.ls-hero-desc { margin: 0 0 14px; color: #526477; font-size: 14px; line-height: 1.55; }

/* Key spec tiles: icon, big figure + small unit, detail line (Display / Camera / Performance / Battery). */
.ls-hero-keys { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 14px; padding: 0; background: #dbe6f6; border: 1px solid #dbe6f6; border-radius: 12px; overflow: hidden; }
.ls-hero-key { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 12px 14px 13px; background: linear-gradient(180deg, #eef5ff 0%, #ffffff 72%); }
.ls-hero-key-icon { display: block; height: 26px; margin-bottom: 8px; }
.ls-hero-key-icon .ls-ico { display: block; width: 26px; height: 26px; }
.ls-hero-key-value { display: flex; align-items: baseline; min-width: 0; color: #071D33; font-size: clamp(22px, 2.3vw, 28px); line-height: 1; font-weight: 800; letter-spacing: -.6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ls-hero-key-unit { margin-left: 2px; color: #0b5fd8; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.ls-hero-key-sub { display: -webkit-box; margin-top: 7px; color: #526477; font-size: 12px; font-weight: 600; line-height: 1.3; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
/* Long figures like "12/16 GB RAM": smaller, and the unit may drop under the number rather than be cut off. */
.ls-hero-key-value { flex-wrap: wrap; row-gap: 2px; }
.ls-hero-key.is-long .ls-hero-key-value { font-size: clamp(20px, 1.8vw, 23px); letter-spacing: -.8px; }
.ls-hero-key.is-long .ls-hero-key-unit { font-size: 12px; }
.ls-hero-key.is-text .ls-hero-key-value { font-size: 15px; line-height: 1.25; letter-spacing: 0; white-space: normal; }

.ls-hero-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; padding: 10px 12px; background: #fff; border: 1px solid #e1e9f4; border-radius: 12px; }

/* Specifications / Review / Opinions links (hero card + Opinions page). */
.ls-dnav { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ls-dnav-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; background: #fff; border: 1px solid #c3d3ea; border-radius: 8px; color: #071D33; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; box-sizing: border-box; }
.ls-dnav-link .ls-ico { flex: 0 0 18px; width: 18px; height: 18px; }
a.ls-dnav-link:hover, a.ls-dnav-link:focus-visible { border-color: #0b5fd8; color: #0b5fd8; }
.ls-dnav-link.is-active, .ls-dnav-link.is-active:hover { background: #071D33; border-color: #071D33; color: #fff; }
.ls-dnav-count { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: #edf4ff; color: #0b5fd8; font-size: 11px; font-weight: 800; text-align: center; box-sizing: border-box; }
.ls-dnav-link.is-active .ls-dnav-count { background: rgba(255, 255, 255, .16); color: #fff; }
.ls-dnav-score { padding: 3px 7px; border-radius: 6px; background: #16803d; color: #fff; font-size: 11px; font-weight: 800; }
.ls-dnav-chev { width: 14px; height: 14px; margin-right: -3px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .45; }
.ls-dnav-link.is-disabled { background: #f6f9fe; border-style: dashed; color: #8a99ad; cursor: default; }
.ls-dnav-link.is-disabled .ls-ico { filter: grayscale(1); opacity: .55; }
.ls-dnav-link.is-disabled small { font-size: 10px; font-weight: 600; }
.ls-dnav-short { display: none; }

.ls-hero-actions { display: flex; gap: 8px; margin-left: auto; }
.ls-hero-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 8px; background: #071D33; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.ls-hero-btn:hover { background: #0b2a52; color: #fff; }
.ls-hero-btn.is-ghost { background: #fff; border: 1px solid #c3d3ea; color: #071D33; }
.ls-hero-btn.is-ghost:hover { border-color: #071D33; color: #071D33; }
.ls-hero-disclosure { margin: 6px 2px 0; color: #8a99ad; font-size: 10.5px; line-height: 1.4; }
.ls-hero-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; color: #667085; font-size: 11px; }

@media (max-width: 760px) {
    .ls-hero { flex-direction: column; padding: 14px; }
    .ls-hero-media { flex-basis: auto; }
    .ls-hero-image { min-height: 200px; }
    .ls-hero-photo { flex: 0 0 240px; min-height: 240px; }

    .ls-hero-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ls-hero-key-value { font-size: 26px; }
    .ls-dnav { flex-wrap: nowrap; width: 100%; gap: 6px; }
    .ls-dnav > * { flex: 1 1 auto; }
    .ls-dnav-link { justify-content: center; min-height: 44px; padding: 0 8px; gap: 6px; font-size: 12px; }
    .ls-dnav-chev, .ls-dnav-link.is-disabled small, .ls-dnav-long { display: none; }
    .ls-dnav-short { display: inline; }
    .ls-hero-actions { width: 100%; margin-left: 0; flex-direction: column; }
    .ls-hero-btn { justify-content: center; min-height: 44px; }
}

/* ---------- Price box ---------- */
.ls-device-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 14px;
    background: #edf4ff;
    border: 1px solid #d6e4fb;
    border-radius: 12px;
}
.ls-device-price-item,
.ls-device-availability { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ls-device-availability { padding-left: 14px; border-left: 1px solid #bcd1f3; }
.ls-device-price-icon svg { display: block; width: 20px; height: 20px; fill: none; stroke: #0b5fd8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ls-device-price small,
.ls-device-price strong { display: block; }
.ls-device-price small { margin-bottom: 2px; color: #4a5d7a; font-size: 11px; }
.ls-device-price strong { color: #0b5fd8; font-size: 18px; line-height: 1.15; font-weight: 800; }
.ls-device-availability strong { color: #10233f; font-size: 14px; font-weight: 700; }
.ls-device-price > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 9px 14px;
    border-radius: 8px;
    background: #071D33;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}
.ls-device-price > a:hover { background: #0b2a52; color: #fff; }
.ls-device-price-unavailable { margin-left: auto; color: #4a5d7a; font-size: 12px; }

/* ---------- Section headings ---------- */
.ls-device-section { margin: 0 0 24px; }
.ls-device-section > h2,
.ls-spec-head > h2,
.ls-device-related > h2 {
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 4px solid #0b5fd8;
    color: #071D33;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

/* ---------- Key specifications ---------- */
.ls-device-key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ls-device-key-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    background: #f4f8fe;
    border: 1px solid #e0eaf9;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(11, 42, 82, .05);
}
.ls-device-key-icon {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d9e6fa;
    border-radius: 10px;
}
.ls-device-key-icon svg { width: 20px; height: 20px; fill: none; stroke: #0b5fd8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ls-device-key-item > span:last-child { min-width: 0; }
.ls-device-key-item strong,
.ls-device-key-item > span:last-child > span { display: block; }
.ls-device-key-item strong { margin-bottom: 2px; color: #0b5fd8; font-size: 12px; font-weight: 600; }
.ls-device-key-item > span:last-child > span { color: #10233f; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

/* ---------- Detailed specifications ----------
   All sections listed straight down (PhoneArena style). Each section is a
   <details>: click its blue band to collapse / expand. All open by default. */
.ls-spec-stack { display: flex; flex-direction: column; gap: 12px; }
.ls-spec-section { margin: 0; background: #fff; }
.ls-spec-section > .ls-spec-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 8px 40px;
    position: relative;
    list-style: none;
    background: #e7effb;
    color: #0b2a52;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}
.ls-spec-section > .ls-spec-band::-webkit-details-marker { display: none; }
.ls-spec-section > .ls-spec-band::marker { content: ""; }
.ls-spec-section > .ls-spec-band:hover { background: #dce7f8; }
.ls-spec-section > .ls-spec-band:focus-visible { outline: 2px solid #0b5fd8; outline-offset: 2px; }
.ls-spec-band svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: #0b2a52; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ls-spec-band .ls-spec-chevron { position: absolute; right: 14px; top: 50%; margin-top: -9px; transition: transform .2s ease; }
.ls-spec-section:not([open]) .ls-spec-chevron { transform: rotate(-90deg); }
.ls-spec-section dl { margin: 0; }
.ls-spec-section dl > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    margin: 0;
    padding: 6px 14px;
    border: 0;
    font-size: 13px;
    line-height: 1.5;
}
.ls-spec-section dl > div:nth-child(even) { background: #f4f7fb; }
.ls-spec-section dt { margin: 0; color: #10233f; font-size: 13px; font-weight: 700; }
.ls-spec-section dd { margin: 0; color: #1f2f45; font-size: 13px; overflow-wrap: anywhere; }
.ls-spec-section dd > span { display: block; }
@media (max-width: 640px) {
    .ls-spec-section > .ls-spec-band { font-size: 16px; }
    .ls-spec-section dl > div { grid-template-columns: 110px minmax(0, 1fr); column-gap: 10px; padding: 6px 10px; }
}

/* ---------- Related links ---------- */
.ls-device-related { margin: 0 0 24px; padding: 14px; background: #edf4ff; border: 1px solid #d6e4fb; border-radius: 14px; }
.ls-device-related > h2 { padding: 0; border: 0; margin-bottom: 10px; color: #071D33; font-size: 18px; }
.ls-device-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ls-device-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #d9e6fa;
    border-radius: 12px;
    color: #0b5fd8;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(11, 42, 82, .05);
}
.ls-device-related-card:hover { border-color: #0b5fd8; }
.ls-device-related-card > img { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; border-radius: 8px; background: #f1f5fc; }
.ls-device-related-icon { display: flex; flex: 0 0 40px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: #eaf2ff; }
.ls-device-related-icon svg { width: 20px; height: 20px; fill: none; stroke: #0b5fd8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ls-device-related-card > span:not(.ls-device-related-icon) { min-width: 0; flex: 1; }
.ls-device-related-card strong,
.ls-device-related-card small { display: block; }
.ls-device-related-card strong { color: #071D33; font-size: 14px; line-height: 1.3; font-weight: 700; }
.ls-device-related-card small { margin-top: 2px; color: #4a5d7a; font-size: 11px; }
.ls-device-related-card > b {
    display: flex;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe0fa;
    border-radius: 50%;
    background: #fff;
}
.ls-device-related-card > b svg { width: 13px; height: 13px; fill: none; stroke: #10233f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sidebar: the site-wide GeneratePress sidebar (#right-sidebar), styled by sidebar-widgets.css. */

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .ls-device-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ls-device-related-card.ls-device-latest-link { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
    .ls-device-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .ls-device-hero-image { height: 180px; }
    
    .ls-device-key-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ls-device-key-item { padding: 10px; gap: 10px; }
    .ls-device-key-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 8px; }
    .ls-device-key-icon svg { width: 18px; height: 18px; }
    .ls-device-key-item strong,
    .ls-device-key-item > span:last-child > span { font-size: 12px; }
    .ls-device-price { flex-wrap: wrap; }
    .ls-device-availability { padding-left: 12px; }
    .ls-device-price > a { width: 100%; justify-content: center; margin-left: 0; }
    .ls-device-related-grid { grid-template-columns: minmax(0, 1fr); }
    .ls-device-related-card.ls-device-latest-link { grid-column: auto; }
}

/* Editor-only note under Detailed Specifications (ACF fields with values not shown in the table). */
.ls-spec-admin-note { margin: -12px 0 24px; padding: 8px 12px; border: 1px dashed #c9a400; border-radius: 8px; background: #fffbe6; color: #5a4a00; font-size: 12px; }
.ls-spec-admin-note summary { cursor: pointer; font-weight: 700; }
.ls-spec-admin-note p { margin: 6px 0 0; line-height: 1.7; }
.ls-spec-admin-note code { font-size: 11px; background: #fff3b0; padding: 0 4px; border-radius: 3px; }

/* Hero action row: Review, Opinions, Compare, Check Latest Prices on one line.
   The two groups are flattened so all four buttons share the row. */
.ls-hero-bar { flex-wrap: nowrap; gap: 8px; padding: 8px; }
.ls-hero-bar .ls-dnav,
.ls-hero-bar .ls-hero-actions { display: contents; }
.ls-hero-bar .ls-dnav-link,
.ls-hero-bar .ls-hero-btn { flex: 1 1 auto; justify-content: center; min-width: 0; min-height: 40px; padding: 0 10px; gap: 6px; margin: 0; font-size: 12.5px; }
.ls-hero-bar .ls-hero-btn { flex-grow: 1.4; }
.ls-hero-bar .ls-dnav-chev,
.ls-hero-bar .ls-dnav-link.is-disabled small { display: none; }
@media (min-width: 761px) and (max-width: 1100px) {
    .ls-hero-bar { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .ls-hero-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ls-hero-bar .ls-dnav-link,
    .ls-hero-bar .ls-hero-btn { min-height: 44px; padding: 0 8px; }
    .ls-hero-bar .ls-hero-btn span[aria-hidden="true"] { display: none; }
}

/* Multicolour icons */
.ls-spec-band svg.ls-ico { width: 22px; height: 22px; flex: 0 0 22px; }
.ls-hero-spec svg.ls-ico { width: 24px; height: 24px; display: block; }
.ls-hero-avail-icon svg.ls-ico { width: 28px; height: 28px; }
.ls-device-related-icon,
.ls-hero-avail-icon { background: transparent !important; border: 0 !important; }
.ls-device-related-icon svg.ls-ico { width: 30px; height: 30px; }

/* Opinions page hero (.ls-op-hero) and the comment list/form: css/discussion.css */

/* Disclaimer under the spec table */
.ls-spec-disclaimer { margin: 12px 0 0; padding: 10px 12px; background: #f6f9fe; border: 1px solid #e1e9f4; border-left: 3px solid #0b5fd8; border-radius: 8px; color: #526477; font-size: 12.5px; line-height: 1.5; }
.ls-spec-disclaimer strong { color: #071D33; }
.ls-spec-disclaimer a { color: #0b5fd8; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ls-spec-disclaimer a:hover { text-decoration: none; }

/* Battery tile: charging line with small wired (plug) / wireless icons. */
.ls-hero-key-sub.ls-hero-charge { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; -webkit-line-clamp: unset; }
.ls-chg { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }
.ls-chg-ico { flex: 0 0 18px; width: 18px; height: 18px; margin-right: 1px; }
.ls-chg.is-wired .ls-chg-ico { margin-right: -1px; }

/* Device photo: always dead-centre in its box (any image size or shape, any lazy-load plugin). */
.ls-hero-photo { overflow: hidden; }
.ls-hero-photo > img { inset: auto; top: 50%; left: 50%; right: auto; bottom: auto; margin: 0; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%; object-position: center; }

/* Mobile (incl. iPhone Safari): no absolute positioning at all. The photo box is a fixed-height
   flex box and the image is centred by flexbox, so Safari cannot push it to the left. */
@media (max-width: 760px) {
    .ls-hero-photo { display: flex; align-items: center; justify-content: center; height: 240px; min-height: 240px; flex: 0 0 240px; }
    .ls-hero-photo > img { position: static; inset: auto; transform: none; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: 240px; object-fit: contain; object-position: center; }
    .ls-hero-photo > .ls-device-image-placeholder { position: static; transform: none; margin: 0 auto; }
}

/* Google preferred source button: base style in global.css; here it sits at the right of the meta line. */
.ls-hero-meta { align-items: center; }
.ls-hero-meta .ls-gsrc, .ls-hero-meta .ls-gbtns { margin-left: auto; }
.ls-hero-meta .ls-gbtns .ls-gsrc { margin-left: 0; }
@media (max-width: 760px) {
    .ls-hero-meta .ls-gsrc { margin: 0; }
    .ls-hero-meta .ls-gbtns { margin: 6px 0 0; }
}

/* Related Links: every card the same size, PC and mobile.
   PC (3 across): title up to 2 lines, fixed card height. Mobile (1 across): title on 1 line. */
.ls-device-related-grid { align-items: stretch; }
.ls-device-related-card { height: 74px; box-sizing: border-box; overflow: hidden; }
.ls-device-related-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.25; }
.ls-device-related-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
    .ls-device-related-card { height: 62px; }
    .ls-device-related-card strong { display: block; white-space: nowrap; text-overflow: ellipsis; }
}
