/* Security Companies section: page-specific structures, layered on guide.css */
.s-rec { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.g .s-rec { min-width: 0; }
.s-rec tbody th { min-width: 9rem; }
.s-rec .s-tag { margin-top: .25rem; font-family: "DM Sans", system-ui, sans-serif; }
.s-tag { display: inline-block; padding: .0625rem .4375rem; border-radius: 3px; background: #e8fbf5; color: #07503e; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.s-tag--far { background: #eef1f8; color: var(--n); }
.s-svc { color: var(--mut); font-size: .875rem; }
.s-q { margin: .25rem 0 0; color: var(--mut); font-size: .875rem; font-style: italic; }
.g .s-grid { display: grid; gap: 1rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.g .s-grid > li { margin: 0; }
.s-co { height: 100%; padding: 1rem 1.125rem; border: 1px solid var(--ln); border-radius: 4px; background: #fff; }
.s-co h3 { margin: 0 0 .25rem; font-size: 1.125rem; }
.s-co p { margin: .25rem 0; font-size: .9375rem; }
.s-co--bar { border-left: 4px solid var(--m); }
.s-co--top { border-top: 4px solid var(--n); }
.s-two { display: grid; gap: 1rem; margin: 1.25rem 0; }
.s-two > div { padding: 1.125rem; border-radius: 4px; background: var(--off); }
.s-two > div > :last-child { margin-bottom: 0; }
.s-two h3 { margin: 0 0 .5rem; }
.s-dark { padding: 1.25rem; border-radius: 4px; background: var(--n); color: #fff; }
.s-dark h2, .s-dark h3, .s-dark a { color: #fff; }
.s-dark p:last-child { margin-bottom: 0; }
.s-notice { margin: 1rem 0 1.5rem; padding: 1.25rem; border: 2px solid var(--n); border-radius: 4px; background: #fff; }
.s-notice > :last-child { margin-bottom: 0; }
.s-notice h2 { margin-bottom: .75rem; font-size: 1.375rem; }
.s-routes { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; }
.s-route { display: block; padding: 1.5rem; border-radius: 4px; background: var(--n); color: #fff !important; text-decoration: none !important; }
.s-route:hover { background: #162c86; }
.s-route strong { display: block; color: #fff; font: 700 1.625rem/1.15 "Source Serif 4", Georgia, serif; }
.s-route span { display: block; margin-top: .375rem; color: #d5dbf0; }
.g .s-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1.25rem; padding: 0; list-style: none; }
.g .s-chips li { margin: 0; }
.s-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .875rem; border: 1px solid var(--n); border-radius: 22px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.s-chips a:hover { background: var(--m); }
.s-states { columns: 1; margin: 1rem 0; }
.s-states > div { break-inside: avoid; margin-bottom: 1rem; }
.s-states h3 { margin: 0 0 .25rem; font-size: 1.0625rem; }
.s-states ul { margin: 0; padding: 0; list-style: none; }
.s-matrix td, .s-matrix th { text-align: center; }
.s-matrix th:first-child, .s-matrix td:first-child { text-align: left; }
.s-doc { margin: 1.25rem 0; padding: 1.5rem; border: 1px solid #c9cfdf; background: #fff; box-shadow: 4px 4px 0 var(--off); font-size: .9375rem; }
.s-doc h3 { margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--n); }
.s-doc dl { display: grid; grid-template-columns: minmax(6.5rem, 30%) 1fr; gap: .375rem .75rem; margin: 0; }
.s-doc dt { font-weight: 700; color: var(--n); }
.s-doc dd { margin: 0; }
.g .s-phase { display: grid; gap: 0; margin: 1.25rem 0; padding: 0; list-style: none; }
.s-phase li { margin: 0; padding: .875rem 1rem; border-left: 4px solid var(--m); background: var(--off); }
.s-phase li + li { margin-top: .5rem; }
.s-phase strong { display: block; color: var(--n); font-family: "Source Serif 4", Georgia, serif; font-size: 1.125rem; }
.s-diagram { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--ln); border-radius: 4px; background: var(--off); }
.s-diagram svg { display: block; width: 100%; height: auto; }
.s-diagram figcaption { margin-top: .5rem; color: var(--mut); font-size: .875rem; }
.s-license { display: grid; gap: .75rem; margin: 1rem 0 1.5rem; }
.s-license > div { padding: 1rem; border: 1px solid var(--ln); border-top: 4px solid var(--m); border-radius: 4px; }
.s-license strong { display: block; color: var(--n); font: 700 1.5rem/1.1 "Source Serif 4", Georgia, serif; }
.s-boro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0; }
.s-boro > div { padding: .75rem; border-radius: 4px; background: var(--n); color: #fff; font-size: .875rem; }
.s-boro strong { display: block; font: 700 1.0625rem/1.2 "Source Serif 4", Georgia, serif; }
.s-rings { display: grid; gap: .5rem; margin: 1rem 0; }
.s-rings > div { padding: .875rem 1rem; border-radius: 4px; color: #fff; }
.s-rings > div:nth-child(1) { background: #071a5e; }
.s-rings > div:nth-child(2) { background: #27408f; }
.s-rings > div:nth-child(3) { background: #e8fbf5; color: var(--ink); }
.s-rings strong { display: block; }
.s-filter { margin: 1rem 0 0; padding: 0; border: 0; }
.s-filter legend { padding: 0; color: var(--n); font-weight: 700; }
.s-filter input { position: absolute; opacity: 0; }
.s-filter label { display: inline-flex; align-items: center; min-height: 44px; margin: .375rem .375rem 0 0; padding: 0 .875rem; border: 1px solid var(--n); border-radius: 22px; color: var(--n); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.s-filter input:checked + label { background: var(--n); color: #fff; }
.s-filter input:focus-visible + label { outline: 3px solid var(--n); outline-offset: 2px; }
#f-event:checked ~ .s-grid > li:not(.x-event), #f-venue:checked ~ .s-grid > li:not(.x-venue), #f-property:checked ~ .s-grid > li:not(.x-property), #f-guard:checked ~ .s-grid > li:not(.x-guard) { display: none; }
.s-fields { display: grid; gap: .5rem; margin: 1rem 0; }
.s-fields > div { padding: .625rem .75rem; border: 1px dashed #8089a5; border-radius: 3px; font-size: .9375rem; }
.s-fields strong { display: block; color: var(--n); }
.s-job { display: grid; gap: .25rem; padding: 1rem 1.125rem; border: 1px solid var(--ln); border-left: 4px solid var(--m); border-radius: 4px; }
.s-job h3 { margin: 0; font-size: 1.125rem; }
.s-job p { margin: 0; font-size: .9375rem; }
.s-wide { max-width: 760px; }
.s-pagehead { padding-block: .5rem 1rem; }
.s-pagehead p { max-width: 68ch; margin: .625rem 0 0; font-size: 1.125rem; line-height: 1.5; }
.s-pagehead .g-meta { font-size: .875rem; }
.s-sec { padding-block: 1.5rem; border-top: 1px solid var(--ln); }
.s-sec > h2 { margin-bottom: 1rem; }
.s-sec > p { max-width: 74ch; }
.s-foot { padding-block: 1.25rem 2.5rem; border-top: 3px solid var(--m); }
/* Tables become readable cards on phones */
@media (max-width: 1199.98px) {
  .g .s-rec caption { display: block; width: 100%; box-sizing: border-box; }
  .s-rec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .s-rec, .s-rec tbody, .s-rec tr, .s-rec td, .s-rec tbody th { display: block; width: 100%; }
  .g .s-rec tr { padding: .75rem .875rem; border-top: 1px solid var(--ln); }
  .g .s-rec td, .g .s-rec tbody th { padding: .1875rem 0; border: 0; }
  .g .s-rec td[data-l]::before { content: attr(data-l) ": "; color: var(--n); font-weight: 700; }
  .g .g-table.s-stack { overflow: visible; }
}
@media (min-width: 640px) {
  .g .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-two, .s-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-license { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-states { columns: 3; column-gap: 2rem; }
  .s-boro { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .s-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-rings { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .g .s-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g .s-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: start; }
  .s-split-r { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem; align-items: start; }
  .s-phase--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
  .s-phase--row li + li { margin-top: 0; }
}

.g .s-grid.s-grid--1 { grid-template-columns: minmax(0, 1fr); }
/* Reviews column: BBB grade + Yelp score */
.s-rev { display: grid; gap: .375rem; font-size: .875rem; line-height: 1.3; }
.s-co .s-rev { margin: .5rem 0; }
.s-rev--none { color: var(--mut); font-size: .8125rem; }
.s-rev-i { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; }
.s-rev-l { flex: none; min-width: 2rem; color: var(--n); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.s-rev small { color: var(--mut); font-size: .75rem; }
.g .s-rev a { display: inline-flex; align-items: center; gap: .25rem; min-height: 24px; white-space: nowrap; }
.s-grade { display: inline-block; min-width: 1.75rem; padding: .0625rem .375rem; border-radius: 3px; background: var(--n); color: #fff; font-size: .8125rem; font-weight: 700; text-align: center; }
.s-grade--nr { background: #eef1f8; color: var(--n); font-weight: 600; font-size: .75rem; }
.g .s-rev a:hover .s-grade { background: #162c86; }
.g .s-rev a:hover .s-grade--nr { background: #dfe4f2; }
.s-stars { color: #0a7559; font-size: .875rem; letter-spacing: .03em; }
.s-score { color: var(--n); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.s-more { margin-top: .5rem; font-family: "DM Sans", system-ui, sans-serif; font-size: .8125rem; font-weight: 400; }
.s-more summary { display: inline-flex; align-items: center; min-height: 24px; color: var(--n); font-weight: 600; text-decoration: underline; text-decoration-color: var(--m); text-underline-offset: 2px; cursor: pointer; }
.s-more summary:focus-visible { outline: 2px solid var(--n); outline-offset: 2px; }
.g .s-more ul { margin: .375rem 0 0; padding-left: 1rem; }
.g .s-more li { margin: .25rem 0; color: var(--ink); }
.s-rec tbody th { min-width: 10rem; max-width: 14rem; }
.s-rec .s-rev { min-width: 10.5rem; }
.s-rev-i small { flex-basis: 100%; padding-left: 2.375rem; }
.s-rev-i small + small { margin-top: -.125rem; }
.s-rec .s-rev--none { min-width: 8rem; }
