/* Original editorial imagery; isolated from existing content and behavior. */
.editorial-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.editorial-image--security { object-fit: contain; background: #e4e5da; }
.editorial-image--indoor-security-camera { object-position: center 65%; }
.editorial-image--outdoor-security-camera { object-position: center 35%; }
.editorial-figure { margin: 0; min-width: 0; }
.editorial-figure > img { border-radius: 16px; }
.editorial-figure figcaption { margin-top: .55rem; color: var(--ink-3); font-size: .75rem; line-height: 1.5; }
.brand-logo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.brand-logo--wyze { background: #161d23; border-radius: 6px; }
.brand-badge { display: block; flex: none; max-width: 100%; background: #fff; border-radius: 6px; }
.pick-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.75rem; }
.prose .pick-heading > h2 { margin: 0; min-width: 0; }
.pick-heading__logo { width: 174px; border: 1px solid var(--line); }
.table-brand-logo { width: 108px; margin-bottom: .35rem; }
.specbox__brand { width: 174px; margin: 0 auto 1rem; }
.score-brand-logo { width: 100px; margin-bottom: .25rem; }
.credbar__item { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.credbar__logo { width: 110px; }
.credbar__inner { gap: .85rem 1.1rem; }

/* Keep the title, verdict and existing disclosure prominent. */
.review-identity { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: .85rem; }
.review-identity__logo { display: block; flex: none; width: 144px; height: 48px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.review-identity__logo > .brand-logo { width: 100%; height: 100%; }
.review-identity > .article__kicker { margin: 0; padding-left: .85rem; border-left: 1px solid var(--line-2); font-size: .6875rem; letter-spacing: .1em; }
.review-identity__logo--adt { width: 52px; height: 48px; }
.review-identity__logo--ring { width: 84px; }
.review-identity__logo--arlo { width: 104px; }
.review-identity__logo--abode { width: 168px; height: 56px; }
/* These SVGs have wide empty margins; only that blank canvas is clipped. */
.review-identity__logo--adt > .brand-logo, .review-identity__logo--ring > .brand-logo, .review-identity__logo--arlo > .brand-logo { object-fit: cover; }
.article-head-grid, .hub-head-grid { display: grid; align-items: center; gap: 1.5rem; }
.article-head-copy, .hub-head-copy { min-width: 0; }
.article-visual { min-width: 0; position: relative; }
.article-visual__brand { position: absolute; z-index: 1; top: .75rem; left: .75rem; background: #fff; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; width: 144px; padding: .3rem .45rem; }
.article-visual > .editorial-figure > img { height: 200px; }
.hub-head-grid > .editorial-figure > img { height: 200px; }

.comparison-visual { margin: 0; padding: 1.25rem 1.5rem; border: 1px solid #C6D3BE; border-radius: 16px; background: var(--sage-soft); min-width: 0; }
.comparison-visual > figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; color: var(--research); font-weight: 600; }
.comparison-visual > figcaption > span { font-weight: 400; }
.comparison-visual__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem 1rem; margin-top: 1rem; }
.comparison-visual__row > .brand-logo { width: 165px; max-width: 100%; }
.comparison-visual__row > strong { color: #164d43; font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1; }
.comparison-visual__row > strong > span { font-family: var(--font-body); font-size: .875rem; color: #426457; }
.comparison-visual__track { grid-column: 1 / -1; height: 6px; background: #cbdad3; border-radius: 6px; overflow: hidden; }
.comparison-visual__track > span { display: block; height: 100%; background: #235d4e; border-radius: inherit; }
.comparison-visual__row:last-child .comparison-visual__track > span { background: #94713f; }

/* Images sit within existing links, keeping link text and destinations intact. */
.card-visual { display: flex; align-items: center; justify-content: center; flex: none; width: calc(100% + 3rem); margin: -1.5rem -1.5rem .75rem; overflow: hidden; border-bottom: 1px solid var(--line); aspect-ratio: 2.25 / 1; background: #eaf0ed; }
.card-visual--brand { background: #fff; padding: 1.5rem 2rem; }
.card-visual--brand > .brand-logo { width: 220px; max-width: 100%; }
.card-visual--compare { gap: .1rem; padding: .75rem; background: #fff; }
.card-visual--compare > .brand-logo { width: calc(50% - 1rem); }
.card-visual__versus { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; flex: none; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--ink-3); font-family: var(--font-display); font-style: italic; font-size: .875rem; }
.card-visual--photo > img { height: 100%; aspect-ratio: auto; }
.card-visual + .card__icon { margin-top: -.2rem; }
.card__link:focus-visible { outline: 3px solid #235d4e; outline-offset: -4px; border-radius: var(--r-lg); }

.home-editorial { margin-top: 1.75rem; }
.home-editorial > img { height: 200px; object-position: center 57%; border: 1px solid var(--line); }
.city-editorial { margin: 1.75rem 0 0; }
.city-editorial > img { height: 200px; }

@media (min-width: 600px) and (max-width: 1019px) {
  .article-visual, .hub-head-grid > .editorial-figure { max-width: 560px; }
  .article-visual > .editorial-figure > img, .hub-head-grid > .editorial-figure > img { height: 240px; }
}
@media (min-width: 1020px) {
  .article-head-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 3rem; }
  .hub-head-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 4rem; }
  .article-head-grid .article__title { max-width: none; }
  .article-visual > .editorial-figure > img { height: auto; }
  .hub-head-grid > .editorial-figure > img { height: 260px; }
  .article-visual__brand { width: 176px; }
  .comparison-visual { padding: 1.75rem; }
  .comparison-visual__row { margin-top: 1.4rem; }
  .home-editorial > img { height: 230px; }
  .hero__inner { align-items: start; }
  .hero__form { align-self: center; }
  .city-editorial > img { height: 250px; }
}
@media (max-width: 599px) {
  .pick-heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .pick-heading__logo { width: 150px; }
  .table-brand-logo { width: 96px; }
  .credbar__label { flex-basis: 100%; text-align: center; }
  .article-head-grid, .hub-head-grid { gap: 1rem; }
  .article-visual > .editorial-figure > img, .hub-head-grid > .editorial-figure > img { height: 164px; }
  /* Keep camera bodies and their mounts in frame on wider phones. */
  .article-visual > .editorial-figure > .editorial-image--indoor-security-camera,
  .article-visual > .editorial-figure > .editorial-image--outdoor-security-camera { height: clamp(164px, 45vw, 240px); }
  .article-visual__brand { width: 125px; top: .55rem; left: .55rem; }
  .comparison-visual { padding: 1rem 1.25rem; }
  .comparison-visual__row { margin-top: .55rem; }
  .comparison-visual__row > .brand-logo { width: 140px; }
  .comparison-visual__row > strong { font-size: 1.65rem; }
  .home-editorial > img, .city-editorial > img { height: 180px; }
}
/* Actual manufacturer photos use contain so controls and sensors stay in frame. */
.product-image { display: block; width: 100%; height: auto; object-fit: contain; min-width: 0; }
.product-figure { margin: 0; min-width: 0; }
.product-figure__surface { padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.product-figure__surface > .product-image { height: 220px; }
.product-figure > figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .75rem; margin-top: .55rem; color: var(--ink-3); font-size: .75rem; line-height: 1.5; }
.product-credit { color: var(--ink-3); text-underline-offset: .2em; }
.product-credit:hover { color: var(--brass-deep); }
.article--review .article-head-grid { grid-template-areas: 'heading' 'product' 'summary'; }
.article--review .article-head-copy { grid-area: heading; }
.article--review .article-visual { grid-area: product; width: 100%; }
.article-head-summary { grid-area: summary; min-width: 0; }
.article-head-summary .review-summary { margin-top: 0; }
.comparison-visual--products { background: var(--sage-soft); padding: 1rem; }
.comparison-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.comparison-product { min-width: 0; }
.comparison-product__link { display: grid; justify-items: center; gap: .5rem; padding: .7rem; background: #fff; border: 1px solid #C6D3BE; border-radius: 10px; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
.comparison-product__link > .product-image { width: 100%; height: 120px; }
.comparison-product__link > .brand-logo { width: 110px; height: 30px; }
.comparison-product__link > strong { font-family: var(--font-display); font-size: 1.7rem; color: #164d43; font-weight: 500; }
.comparison-product__link > strong > span { font-family: var(--font-body); font-size: .8rem; }
.comparison-product > p { font-size: .75rem; line-height: 1.45; color: var(--ink-2); margin: .6rem 0 .15rem; }
.comparison-product > .product-credit { font-size: .6875rem; }
.comparison-product__link:focus-visible, .product-credit:focus-visible { outline: 3px solid #235d4e; outline-offset: 3px; }
.comparison-product__link:focus-visible { border-color: var(--research); box-shadow: var(--shadow-md); }
@media (hover: hover) and (pointer: fine) {
  .comparison-product__link:hover { border-color: var(--research); box-shadow: var(--shadow-md); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .comparison-product__link:hover { transform: translateY(-2px); }
}
.card-visual--product, .card-visual--compare-products { aspect-ratio: 1.8 / 1; }
.card-visual--product { display: grid; grid-template-rows: minmax(0, 1fr) 22px; justify-items: center; gap: .4rem; padding: .85rem 1.25rem; background: #fff; }
.card-visual--product > .product-image { width: 100%; height: 100%; }
.card-visual--product > .brand-logo { width: 110px; height: 22px; }
.card-visual--compare-products { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .65rem; padding: .8rem; background: #fff; }
.card-product { display: grid; grid-template-rows: minmax(0, 1fr) 20px; gap: .4rem; width: 100%; height: 100%; min-height: 0; justify-items: center; }
.card-product > .product-image { width: 100%; height: 100%; }
.card-product > .brand-logo { width: 100%; max-width: 95px; height: 20px; }
@media (max-width: 599px) {
  .article--editorial .article__head { padding-block: 1.35rem 1.25rem; }
  .article--editorial .article-head-grid { gap: .85rem; }
  .article--editorial .crumbs { margin-bottom: .7rem; }
  .article--editorial .review-identity { gap: .6rem; margin-bottom: .65rem; }
  .article--editorial .article__title { margin-bottom: .65rem; line-height: 1.13; }
  .article--editorial .article__standfirst { font-size: 1rem; line-height: 1.55; }
  .article--editorial .byline, .article--editorial .disclosure-note { margin-top: .9rem; }
  .article--editorial .product-figure__surface { padding: .75rem; }
  .article--editorial .product-figure__surface > .product-image { height: 200px; }
}
@media (min-width: 600px) and (max-width: 1019px) {
  .product-figure__surface > .product-image { height: 280px; }
  .comparison-product__link > .product-image { height: 180px; }
}
@media (min-width: 1020px) {
  .article--review .article-head-grid { grid-template-areas: 'heading product' 'summary product'; row-gap: 1.4rem; }
  .product-figure__surface > .product-image { height: 340px; }
  .comparison-product__link > .product-image { height: 145px; }
}

/* Landscape product photos fill the panel without a tall, empty white frame. */
.product-figure--landscape .product-figure__surface { padding: 0; border: 0; background: transparent; }
.product-figure--landscape .product-figure__surface > .product-image { height: auto; border-radius: 16px; }

/* Give the homepage house room to breathe without covering its image caption. */
.home-hero-visual { position: relative; min-width: 0; align-self: center; padding-top: .75rem; }
.home-hero-visual::before { content: ''; position: absolute; top: -.45rem; right: 1.5rem; width: 84px; height: 30px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 30'%3E%3Cpath d='M2 28 42 3 82 28' fill='none' stroke='%23A8762B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.home-hero-visual > .home-editorial { margin: 0; }
.home-hero-visual > .home-editorial > img { height: auto; aspect-ratio: 4 / 3; border-radius: 70px 16px 16px 16px; object-position: center; box-shadow: var(--shadow-md); }
.home-hero-visual .home-editorial figcaption { padding-inline: .25rem; }
.home-fieldnote { position: relative; margin: 1.1rem 0 0 auto; max-width: 28rem; padding: 1.05rem 1.25rem; border: 1px solid #D8C5A4; border-left: 3px solid var(--brass); border-radius: 2px 12px 12px 2px; background: var(--brass-soft); }
.home-fieldnote__eyebrow { margin-bottom: .45rem; font-size: .6875rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; color: var(--brass-deep); line-height: 1.5; }
.home-fieldnote > strong, .home-fieldnote > h2 { display: block; margin: 0; color: var(--ink); font: 600 1.2rem / 1.25 var(--font-display); letter-spacing: -.015em; }
.home-fieldnote > p:last-child { margin-top: .55rem; font-size: .875rem; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 599px) {
  .home-hero-visual { padding-top: .45rem; }
  .home-hero-visual::before { width: 64px; height: 24px; right: 1rem; }
  .home-hero-visual > .home-editorial > img { border-top-left-radius: 48px; aspect-ratio: 3 / 2; }
  .home-fieldnote { margin-top: .9rem; padding: .9rem 1rem; }
}
@media print {
  .article-visual, .comparison-visual, .home-editorial, .city-editorial, .card-visual, .hub-head-grid > .editorial-figure { display: none; }
  .article-head-grid, .hub-head-grid { display: block; }
}
