/* SnackDragon location register — readable technical layout, v3 2026-07-22 */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.location-page .score-toolbar{align-items:center;gap:24px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #29292f}
.location-page .score-toolbar h2{letter-spacing:-.025em}
.location-page .loc-count{color:#8f8f97;font-size:.85rem;font-weight:650;white-space:nowrap}
.location-page .filterbar{gap:6px}
.location-page .filter-btn{padding:8px 12px;border-color:#3a3a42;border-radius:2px;background:#111114;color:#b8b8c0;transition:border-color .14s ease,background .14s ease,color .14s ease}
.location-page .filter-btn:hover{border-color:#65656e;background:#17171b;color:#f4f4f6}
.location-page .filter-btn[aria-pressed="true"]{border-color:var(--sd-red);background:#ae1d2a;box-shadow:none;color:#fff}

.location-page .rank-list{display:grid;grid-auto-rows:auto;gap:0;border-top:1px solid #303037;border-left:2px solid #791f28}
.location-page .group-title{display:flex;align-items:center;gap:10px;margin:28px 0 10px;color:#dedee2;font-size:.9rem;font-weight:720;line-height:1.3;letter-spacing:.025em}
.location-page .group-title::before{content:"";width:18px;height:1px;background:#c52a38}
.location-page .loc-group:first-child .group-title{margin-top:0}

.location-page .cols-head{display:grid;grid-template-columns:minmax(260px,.95fr) minmax(0,1.55fr);gap:0;margin:0;border-left:2px solid transparent;color:#73737c;font-size:.68rem;font-weight:750;letter-spacing:.09em;text-transform:uppercase}
.location-page .cols-head .ch-name{padding:0 18px 7px}
.location-page .cols-head .ch-reason{display:grid;grid-template-columns:1fr 1fr}
.location-page .cols-head .ch-reason span{padding:0 14px 7px 32px}

.location-page .rank-card{position:relative;display:grid;grid-template-columns:minmax(260px,.95fr) minmax(0,1.55fr);align-items:stretch;gap:0;height:auto;min-height:60px;padding:0;border:0;border-bottom:1px solid #303037;border-radius:0;background:#0f0f12;box-shadow:none;transform:none;transition:background .14s ease,border-color .14s ease}
.location-page .rank-card::before{content:none}
.location-page .rank-card:hover{border-color:#484850;background:var(--sd-industrial-panel-soft);box-shadow:none;transform:none}
.location-page .rank-name{display:flex;align-items:center;min-width:0;padding:9px 18px}
.location-page .rank-name strong{color:#ececef;font-size:.97rem;font-weight:680;line-height:1.3;letter-spacing:-.008em}
.location-page .rank-reason{display:grid;grid-template-columns:1fr 1fr;gap:0;min-width:0;color:#a9a9b2;font-size:.84rem;line-height:1.38}
.location-page .rank-reason span{position:relative;display:flex;align-items:center;min-width:0;padding:8px 14px 8px 32px;border-left:1px solid #2d2d34}
.location-page .rank-reason span::before{position:absolute;left:14px;top:50%;width:auto;height:auto;border:0;border-radius:0;background:transparent;font:800 .74rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;transform:translateY(-50%)}
.location-page .rank-reason .plus::before{content:"+";color:#63b77a}
.location-page .rank-reason .check::before{content:"→";color:#d3a244}
.location-page .rank-reason span.sr-only{position:absolute;display:block;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.location-page .next-steps{margin-top:34px;padding:24px 26px;border:1px solid #303037;border-left:2px solid #b8202f;background:#0f0f12}
.location-page .next-steps h2{margin:0 0 6px;color:#f1f1f3;font-size:1.15rem;letter-spacing:-.02em}
.location-page .next-steps p{margin:0 0 16px;color:#9d9da6;font-size:.88rem;line-height:1.55}
.location-page .ns-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.location-page .ns-btn{display:inline-block;padding:11px 18px;border:1px solid transparent;border-radius:var(--sd-radius-2);font-size:.85rem;font-weight:700;text-decoration:none;transition:background .15s ease,border-color .15s ease,color .15s ease}
.location-page .ns-btn-primary{background:var(--sd-red);border-color:var(--sd-red);color:#fff}
.location-page .ns-btn-primary:hover,.location-page .ns-btn-primary:focus-visible{background:var(--sd-red-bright);border-color:var(--sd-red-bright)}
.location-page .ns-btn-ghost{background:#111114;border-color:#3a3a42;color:#c9c9d0}
.location-page .ns-btn-ghost:hover,.location-page .ns-btn-ghost:focus-visible{border-color:#65656e;color:#fff}
.location-page .ns-link{color:#b8b8bf;font-size:.85rem;font-weight:700;text-decoration:none}
.location-page .ns-link::after{content:" →";color:#e14351}
.location-page .ns-link:hover{color:#fff}
.location-page .ns-btn:focus-visible,.location-page .ns-link:focus-visible{outline:2px solid #fff;outline-offset:3px}

@media (max-width: 1180px) and (min-width: 961px) {
  .location-page .rank-card,
  .location-page .cols-head{grid-template-columns:minmax(230px,.9fr) minmax(0,1.65fr)}
  .location-page .rank-name{padding-right:12px;padding-left:14px}
  .location-page .cols-head .ch-name{padding-left:14px}
  .location-page .rank-name strong{font-size:.9rem}
  .location-page .rank-reason{font-size:.78rem;line-height:1.3}
  .location-page .rank-reason span{padding-right:9px;padding-left:25px}
  .location-page .cols-head .ch-reason span{padding-left:25px}
  .location-page .rank-reason span::before{left:10px;font-size:.68rem}
}

@media (max-width: 960px) {
  .location-page .cols-head{display:none}
  .location-page .rank-list{grid-auto-rows:auto}
  .location-page .rank-card{grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);height:auto;min-height:72px}
  .location-page .rank-name{padding:13px 18px}
  .location-page .rank-reason{grid-template-columns:1fr}
  .location-page .rank-reason span{min-height:36px;padding:8px 14px 8px 31px}
  .location-page .rank-reason span + span{border-top:1px solid #292930}
  .location-page .score-toolbar{align-items:flex-start}
}

@media (max-width: 680px) {
  .location-page .score-toolbar{padding-bottom:13px}
  .location-page .filter-btn{padding:8px 5px;border-radius:2px;font-size:.78rem}
  .location-page .group-title{margin-top:24px}
  .location-page .rank-card{grid-template-columns:1fr;min-height:0}
  .location-page .rank-name{min-height:44px;padding:11px 15px 3px}
  .location-page .rank-name strong{font-size:.97rem}
  .location-page .rank-reason span{min-height:30px;padding:4px 13px 4px 30px;border-left:0}
  .location-page .rank-reason span + span{border-top:0}
  .location-page .rank-reason span:last-child{padding-bottom:12px}
  .location-page .rank-reason span::before{left:13px}
  .location-page .next-steps{padding:20px 16px}
  .location-page .ns-actions{display:grid;width:100%}
  .location-page .ns-btn{text-align:center}
  .location-page .ns-link{justify-self:center;padding:6px 0}
}

@media (prefers-reduced-motion: reduce) {
  .location-page .rank-card,
  .location-page .filter-btn,
  .location-page .ns-btn{transition:none}
}
