/* nofeesecuritycameras.com on top of the factory's Material 3 house style (assets/factory/material.css).
   Palette and rules: DESIGN.md. Colour roles are the factory baseline green, so nothing is overridden here. */

main { padding-top: 8px; padding-bottom: 24px; }
.intro { max-width: 780px; padding: 32px 0 8px; }
.lede { font-size: 16px; line-height: 24px; letter-spacing: .5px; }
.meta { color: var(--md-sys-color-on-surface-variant); font-size: 14px; line-height: 20px; }

/* Citations: present on every fact, quiet by design */
.src { color: var(--md-sys-color-on-surface-variant); font-size: 13px; line-height: 18px; }
.src a { color: inherit; text-decoration-color: var(--md-sys-color-outline-variant); }
.src a:hover { color: var(--md-sys-color-primary); }

/* Status: badge = assist chip with an icon dot */
/* Status label: assist-chip shape (32dp, small corner, label large) without the hover state, since it isn't a control */
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: var(--md-sys-shape-sm);
  font: 500 14px/20px var(--md-ref-typeface-plain); letter-spacing: .1px; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.r-full { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.r-partial { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.r-live_only { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.r-unconfirmed { background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); }
.unconf { display: inline-block; font: 500 11px/16px var(--md-ref-typeface-plain); letter-spacing: .03em; color: var(--md-sys-color-on-warning-container);
  background: var(--md-sys-color-warning-container); border-radius: var(--md-sys-shape-xs); padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.unconf-note, .conflict { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); padding: 12px 16px; border-radius: var(--md-sys-shape-md); font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 32px; align-items: start; padding: 40px 0 16px; }
.hero .body-lg { font-size: 16px; color: var(--md-sys-color-on-surface-variant); max-width: 640px; margin: 0 0 24px; }
.stats { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { border-radius: var(--md-sys-shape-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-n { font: 400 45px/52px var(--md-ref-typeface-brand); letter-spacing: 0; }   /* display medium */
.stat-l { font: 500 14px/20px var(--md-ref-typeface-plain); letter-spacing: .1px; }
.s-full { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.s-partial { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.s-live { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.teaser { padding: 24px; border-radius: var(--md-sys-shape-xl); display: flex; flex-direction: column; gap: 12px; }
.teaser .label-md, .teaser h2 { margin: 0; }
.vs { display: flex; flex-direction: column; gap: 8px; }
.vs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--md-sys-shape-md); background: var(--md-sys-color-surface-container-lowest); }
.vs-name { font: 500 15px/20px var(--md-ref-typeface-plain); display: flex; flex-direction: column; }
.vs-name small { font-weight: 400; font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
.vs-total { font: 400 24px/32px var(--md-ref-typeface-brand); white-space: nowrap; }   /* headline small */
.vs-row.good .vs-total { color: var(--md-sys-color-primary); }
.vs-row.bad .vs-total { color: var(--md-sys-color-error); }
.teaser .body-sm { margin: 0; }
.teaser .btn { align-self: flex-start; }
.prices-note { margin: 8px 0 0; max-width: 860px; }

/* Finder */
.finder-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.finder-head h2 { margin: 0; }
.finder-head .count { margin: 0; color: var(--md-sys-color-on-surface-variant); }
.filter-toggle { margin-left: auto; align-self: center; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px 28px; background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-lg); padding: 20px; margin: 16px 0 20px; }
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend { margin-bottom: 8px; color: var(--md-sys-color-on-surface-variant); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .range label { display: flex; flex-direction: column; gap: 4px; }
.filters output { font-weight: 500; color: var(--md-sys-color-on-surface); }
.filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: -8px; }

.cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.cam { display: flex; flex-direction: column; gap: 10px; padding: 20px; transition: box-shadow .2s var(--md-motion-standard); }
.cam:hover { box-shadow: var(--md-sys-elevation-1); }
.cam[hidden] { display: none; }
.cam-head { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; align-items: start; }
.cam-media { grid-column: 1; grid-row: 1 / span 3; width: 72px; margin: 0; }
.cam-media.ph { height: 72px; border-radius: var(--md-sys-shape-md); background: var(--md-sys-color-surface-container); display: grid; place-items: center; }
.cam-media.ph svg { width: 40px; height: 40px; fill: none; stroke: var(--md-sys-color-on-surface-variant); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.cam-media.photo img { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: var(--md-sys-shape-md); background: #fff; border: 1px solid var(--md-sys-color-outline-variant); }
.cam-media figcaption { font-size: 10px; line-height: 13px; color: var(--md-sys-color-on-surface-variant); margin-top: 3px; text-align: center; }
.cam-brand { grid-column: 2; margin: 0; color: var(--md-sys-color-on-surface-variant); text-transform: uppercase; }
.cam-name { grid-column: 2; margin: 2px 0 8px; font: 400 22px/28px var(--md-ref-typeface-brand); }   /* title large */
.cam-head .badge { grid-column: 2; justify-self: start; }
.cam-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price { font: 400 28px/36px var(--md-ref-typeface-brand); }   /* headline medium */
.price.none { font: 500 16px/24px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.at, .per { color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.was { color: var(--md-sys-color-on-surface-variant); font-size: 14px; text-decoration: line-through; }
.cam-specs { margin: 0; display: grid; gap: 4px; font-size: 15px; line-height: 22px; padding: 12px 0; border-top: 1px solid var(--md-sys-color-outline-variant); border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.cam-specs div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.cam-specs dt { color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.cam-specs dd { margin: 0; }
.cam-note { margin: 0; font-size: 14px; line-height: 20px; background: var(--md-sys-color-surface-container); border-radius: var(--md-sys-shape-sm); padding: 8px 12px; }
.cam-more { font-size: 14px; line-height: 20px; color: var(--md-sys-color-on-surface-variant); }
.cam-more summary { cursor: pointer; color: var(--md-sys-color-primary); font-weight: 500; }
.cam-more ul { margin: 8px 0 0; padding-left: 18px; }
.cam-more .caveat { color: var(--md-sys-color-on-warning-container); }
.cam-src { margin: 0; color: var(--md-sys-color-on-surface-variant); }
.cam-src .src { font-size: inherit; }
.cam-buy { margin: auto 0 0; padding-top: 4px; }
.buy { display: flex; flex-wrap: wrap; gap: 8px; }
.none-match { margin-top: 16px; }

/* Calculator */
.calc-section > p { max-width: 780px; color: var(--md-sys-color-on-surface-variant); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--md-sys-color-surface-container-low); border-radius: var(--md-sys-shape-xl); padding: 20px; }
.setup { border: 0; border-radius: var(--md-sys-shape-lg); background: var(--md-sys-color-surface-container-lowest); padding: 16px 20px; margin: 0; min-width: 0; }
.setup legend { font: 500 16px/24px var(--md-ref-typeface-plain); letter-spacing: .15px; float: left; width: 100%; margin-bottom: 4px; }
.setup legend + * { clear: both; }
.plan-note { font-size: 13px; line-height: 18px; color: var(--md-sys-color-on-surface-variant); margin: 8px 0 0; }
.years { grid-column: 1 / -1; font: 500 14px/20px var(--md-ref-typeface-plain); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 4px 4px 0; }
.years input { flex: 1; min-width: 160px; }
.years output { min-width: 64px; }
.result { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.res { background: var(--md-sys-color-surface-container-lowest); border-radius: var(--md-sys-shape-lg); padding: 16px 20px; }
.res h3 { margin: 0; font: 500 14px/20px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.res .big { font: 400 36px/44px var(--md-ref-typeface-brand); margin: 4px 0; }   /* display small */
.res p { margin: 0; font-size: 14px; }
.verdict { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: var(--md-sys-shape-md); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font: 500 16px/24px var(--md-ref-typeface-plain); }

/* Articles */
.toc { background: var(--md-sys-color-surface-container-low); border-radius: var(--md-sys-shape-lg); padding: 12px 24px; max-width: 780px; }
.pick { margin-top: 48px; }
.pick > h2 { margin-top: 0; }
.pick .cam { max-width: 600px; margin: 16px 0; }
.rule { color: var(--md-sys-color-on-surface-variant); }
.brand-section { margin-top: 56px; }
.answer { font-size: 18px; }
.cams.compact { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; background: var(--md-sys-color-outline); }
.d-yes { background: var(--md-sys-color-primary); } .d-partial { background: #c08a00; } .d-no { background: var(--md-sys-color-error); }
.page-sources { margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--md-sys-color-outline-variant); font-size: 14px; color: var(--md-sys-color-on-surface-variant); }
.page-sources h2 { font: 500 16px/24px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface); margin-top: 24px; }
.page-sources ul { columns: 2 280px; padding-left: 18px; }
.sources small { color: var(--md-sys-color-on-surface-variant); word-break: break-all; }
.site-footer .fine { font-size: 13px; }

/* Phones */
@media (max-width: 599px) {   /* compact */
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 20px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; border-radius: var(--md-sys-shape-md); }
  .stat-n { font-size: 36px; line-height: 44px; }
  .stat-l { font-size: 13px; line-height: 18px; }
  .teaser { padding: 20px; border-radius: var(--md-sys-shape-lg); }
  .finder-head { margin-top: 28px; }
  .cams { grid-template-columns: 1fr; }
  .cam { padding: 16px; }
  .calc, .result { grid-template-columns: 1fr; }
  .calc { padding: 12px; border-radius: var(--md-sys-shape-lg); }
  table { font-size: 14px; }
  .sources td:nth-child(2), .sources th:nth-child(2) { display: none; }
  /* Filters as a modal bottom sheet */
  .filters.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; max-height: 82vh; overflow-y: auto;
    border-radius: var(--md-sys-shape-xl) var(--md-sys-shape-xl) 0 0; background: var(--md-sys-color-surface-container-low); box-shadow: var(--md-sys-elevation-3);
    transform: translateY(105%); transition: transform .3s var(--md-motion-standard); padding: 28px 20px 20px; grid-template-columns: 1fr; visibility: hidden; }
  .filters.sheet::before { content: ""; position: absolute; top: 10px; left: 50%; width: 32px; height: 4px; margin-left: -16px; border-radius: 2px; background: var(--md-sys-color-outline); }
  .filters.sheet.open { transform: none; visibility: visible; }
  .filters.sheet .filter-actions { position: sticky; bottom: -20px; background: var(--md-sys-color-surface-container-low); padding: 12px 0 4px; margin: 0; justify-content: space-between; }
  body.sheet-open { overflow: hidden; }
  body.sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 15; }
}
