/* tempmap2/3/4 chrome. Every value is copied from tm234/ref/Map Page.dc.html (inline styles turned into classes).
   Deviations from the design, on purpose: map panes flex to fill a taller phone (the design's heights are the minimum);
   every sheet has an X, a Cancel button and closes on an outside tap or Esc (owner modal rule). */
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#FAF8F3}
body{font-family:'Public Sans',sans-serif;color:#1B1D22;-webkit-tap-highlight-color:transparent}
a{color:#1B1D22}a:hover{color:#8A6F22}
button{font-family:inherit;cursor:pointer;color:#1B1D22}
.app{position:relative;max-width:480px;height:100%;height:100dvh;margin:0 auto;display:flex;flex-direction:column;background:#FAF8F3;overflow:hidden}
.num{font-variant-numeric:tabular-nums}
.cond{font-family:'Barlow Condensed',sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.02em}
.ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* header */
.hdr{flex:none;display:flex;align-items:center;gap:8px;padding:5px 8px 5px 14px;border-bottom:1px solid #DDD7C8;background:#fff}
.hdr .who{flex:1;min-width:0;cursor:pointer}
.hdr .fname{font:600 21px/1.1 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdr .practice{margin-top:2px;padding:0;border:0;background:none;font-size:12px;color:#5E6068;display:flex;align-items:center;gap:5px;height:20px}
.hdr .practice span{font-size:9px}
.btn-plain{height:44px;padding:0 12px;border:1px solid #DDD7C8;border-radius:6px;background:#FAF8F3;font-size:12px;font-weight:600;color:#1B1D22}
.btn-gold{height:44px;border:1px solid #B8973A;border-radius:6px;background:#EFE6CC;font-size:12px;font-weight:600;color:#1B1D22}
.btn-arrow{width:44px;height:44px;border:1px solid #B8973A;border-radius:6px;background:#EFE6CC;font-size:18px;color:#1B1D22}
.btn-gold:hover,.btn-arrow:hover{background:#E6D9B3}
.btn-plain:hover{background:#F3EFE5}

/* map panes */
.pane{position:relative;overflow:hidden;flex:1 1 auto}
.pane .map{position:absolute;inset:0}
.pane .map.hide{visibility:hidden}
.settings{position:absolute;right:8px;bottom:8px;z-index:3;height:32px;padding:0 12px;border:1px solid #DDD7C8;border-radius:16px;background:#fff;font-size:11px;font-weight:600;color:#1B1D22}
.settings:hover{background:#FAF8F3}
.home-pin{width:12px;height:12px;border-radius:50%;background:#1B1D22;border:2.5px solid #fff;box-sizing:content-box}
.mapboxgl-ctrl-logo{opacity:.5}

/* stat strip (1a) */
.strip{position:absolute;left:0;right:0;top:0;z-index:2;height:46px;display:flex;align-items:center;gap:10px;padding:0 8px 0 12px;background:#fff;border-bottom:1px solid #DDD7C8}
.strip .big{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}
.strip .tx{flex:1;min-width:0;white-space:nowrap}
.cap{font-size:11px;color:#5E6068}
.chg{font-size:12px;font-weight:500}
.strip .btn-gold{height:44px;padding:0 10px;font-size:11px;line-height:1.2}
.tally{display:grid;grid-template-columns:8px auto;gap:1px 5px;align-items:center;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%}
.dot.g{background:#1E9E5A}.dot.a{background:#E9A21B}.dot.r{background:#D4432F}.dot.x{background:#7D8087}
.dot.n{width:6px;height:6px;border:1px solid #7D8087;background:#fff}
.up{color:#15803D;font-weight:600}.down{color:#C0392B;font-weight:600}.flat{color:#5E6068;font-weight:600}

/* competitor bar (1a) */
.compbar{flex:none;display:flex;align-items:stretch;gap:4px;height:44px;padding:0 4px;background:#1B1D22}
.compbar .arr{width:44px;border:0;background:none;color:#D9BE6A;font-size:18px}
.compbar .arr:hover{color:#fff}
.compbar .chip{flex:1;min-width:0;margin:5px 0;padding:0 10px;display:flex;align-items:center;gap:8px;background:#B8973A;border-radius:4px;white-space:nowrap;overflow:hidden;cursor:pointer;color:#1B1D22}
.compbar .chip .n{font-size:12px;font-weight:700}
.compbar .chip .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font:600 16px 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.02em}
.compbar .chip .of{font-size:11px;font-weight:500}

/* showing tag (1b) */
.showing{position:absolute;left:8px;top:8px;z-index:2;max-width:calc(100% - 16px);padding:5px 9px;background:#fff;border:1px solid #DDD7C8;border-radius:6px;font-size:11px;color:#5E6068;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.showing b{font-weight:600;color:#1B1D22}

/* firm rows (1b) */
.frow{flex:none;position:relative;display:flex;align-items:center;gap:10px;padding:8px 12px;min-height:48px;border-top:1px solid #DDD7C8;background:#fff;cursor:pointer}
.frow.on{background:#EFE6CC}
.frow .who{flex:1;min-width:0}
.frow .lab{font-size:10.5px;color:#5E6068}
.frow .nm{font:600 17px/1.15 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.frow .val{text-align:right}
.frow .val .big{font-size:20px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.frow .val .chg{font-size:11px;font-weight:500}
.navrow{flex:none;display:flex;align-items:center;gap:6px;padding:6px 8px;border-top:1px solid #DDD7C8;background:#fff}
.navrow .btn-gold{flex:1}

/* headline card (1c) */
.card1c{position:absolute;left:8px;right:8px;top:8px;z-index:2;display:flex;align-items:center;gap:10px;padding:6px 12px;background:#fff;border:1px solid #DDD7C8;border-radius:6px}
.card1c .big{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}
.card1c .tx{flex:1;min-width:0}
.card1c .nm{font:600 15px/1.15 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insetrow{flex:none;display:flex;gap:10px;padding:10px 8px 10px 10px;border-top:1px solid #DDD7C8;background:#fff}
.inset{position:relative;flex:none;width:96px;height:96px;align-self:center;padding:0;border:1px solid #B8973A;border-radius:6px;overflow:hidden;background:#FAF8F3}
.inset .map{position:absolute;inset:0}
.inset .tapper{position:absolute;inset:0;z-index:2;cursor:pointer}
.insetrow .info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.insetrow .lab{font-size:10.5px;color:#5E6068}
.insetrow .nm{font:600 17px/1.15 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insetrow .line{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.insetrow .line .big{font-size:17px;font-weight:700}
.insetrow .line .chg{font-weight:500;margin-right:4px}
.insetrow .line .dot+b+.dot{margin-left:4px}
.insetrow .ctl{display:flex;gap:6px;margin-top:auto}
.insetrow .ctl .btn-gold{flex:1;font-size:11px}

/* legend + months */
.legend{flex:none;padding:5px 12px 6px;border-top:1px solid #DDD7C8;background:#fff}
.legend .cap{margin-bottom:5px}
.legend .keys{display:flex;justify-content:space-between;font-size:10.5px;font-weight:500}
.legend .keys span{display:flex;align-items:center;gap:4px}
.months{flex:none;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:4px 8px 4px;padding-bottom:max(4px,env(safe-area-inset-bottom));background:#fff}
.months button{height:44px;border:1px solid #DDD7C8;border-radius:6px;background:#FAF8F3;font-size:13px;font-weight:500;color:#1B1D22}
.months button:hover{background:#F3EFE5}
.months button.on{border:1px solid #B8973A;background:#B8973A;font-weight:700;cursor:default}

/* sheets (competitors, firm picker, menu, settings, firms at a point) */
.sheet{position:absolute;inset:0;z-index:20;background:rgba(27,29,34,.5);display:none;flex-direction:column;justify-content:flex-end}
.sheet.open{display:flex}
.sheet .panel{display:flex;flex-direction:column;max-height:85%;background:#fff;border-radius:10px 10px 0 0;padding:6px 14px 12px}
.sheet .shd{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px}
.sheet .ttl{font-size:15px;font-weight:700}
.sheet .sub{font-size:11px;color:#5E6068}
.sheet .x{flex:none;width:44px;height:44px;padding:0;border:1px solid #DDD7C8;border-radius:6px;background:#FAF8F3;font-size:16px;font-weight:600;color:#1B1D22}
.sheet .x:hover,.sheet .cancel:hover{background:#F3EFE5}
.sheet .rows{flex:1 1 auto;min-height:0;overflow-y:auto}
.sheet .cancel{flex:none;width:100%;height:44px;margin-top:8px;border:1px solid #DDD7C8;border-radius:6px;background:#FAF8F3;font-size:12px;font-weight:600;color:#1B1D22}
.crow{width:100%;height:48px;padding:0;border:0;border-top:1px solid #DDD7C8;background:none;display:flex;align-items:center;gap:10px;text-align:left;color:#1B1D22;text-decoration:none}
.crow:hover{background:#FAF8F3;color:#1B1D22}
.crow.on{background:#EFE6CC}
.crow .n{width:16px;font-size:12px;font-weight:700;color:#5E6068}
.crow .nm{flex:1;min-width:0;font:600 17px 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crow .v{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.crow .sq{flex:none;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}
.crow .tag{font-size:10.5px;font-weight:700;color:#5E6068}
.crow .addr{display:block;font:400 11px 'Public Sans',sans-serif;color:#5E6068;text-transform:none;letter-spacing:0}
.crow.tall{height:auto;min-height:48px;padding:6px 0}
.sheet .q{flex:none;width:100%;height:44px;margin:0 0 8px;padding:0 12px;border:1px solid #DDD7C8;border-radius:6px;background:#FAF8F3;font:400 14px 'Public Sans',sans-serif;color:#1B1D22}
.sheet .note{padding:14px 0;font-size:12px;color:#5E6068}
.chk{display:flex;align-items:center;gap:10px;min-height:48px;border-top:1px solid #DDD7C8;font-size:13px;font-weight:500;cursor:pointer}
.chk input{width:20px;height:20px;accent-color:#B8973A}
.chk small{color:#5E6068;font-weight:400}

/* desktop: the phone column sits on the design canvas as its card (.dv-card), with the layout label (.dv-olabel/.dv-oid)
   and links to the other two layouts (.dv-next; the current one highlighted as .dv-opt:target). Hidden on phones. */
.dv-olabel,.dv-next{display:none}
@media (min-width:600px){
  html,body{background:#f0eee9}
  body{padding:24px 0}
  .dv-olabel{display:flex;max-width:480px;margin:0 auto 9px;align-items:baseline;gap:8px;font:400 11px/1.3 system-ui,sans-serif;color:rgba(0,0,0,.55)}
  .dv-oid{font:600 10.5px ui-monospace,Menlo,monospace;padding:3px 7px;background:rgba(0,0,0,.08);color:#1a1a1a;border-radius:5px;text-decoration:none}
  .dv-oid.on{background:#2a78d6;color:#fff}
  .dv-oid:hover{color:#1a1a1a}.dv-oid.on:hover{color:#fff}
  .app{height:calc(100dvh - 120px);min-height:760px;border:1px solid rgba(0,0,0,.08);border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
  .dv-next{display:block;max-width:480px;margin:22px auto 0;font:12px/1.5 system-ui,sans-serif;color:rgba(0,0,0,.5)}
}

/* first-visit tour, restyled */
.tour{position:fixed;inset:0;z-index:50;display:none;pointer-events:none}
.tour.open{display:block}
.tour .tb{position:fixed;background:rgba(27,29,34,.5);pointer-events:auto}
.tour .tspot{position:fixed;outline:2px solid #B8973A;outline-offset:2px;border-radius:6px;pointer-events:none}
.tour.center .tspot{display:none}
.tour .tip{position:fixed;pointer-events:auto;background:#fff;border:1px solid #DDD7C8;border-radius:10px;padding:12px 14px;box-shadow:0 6px 24px rgba(27,29,34,.25)}
.tour .tt{margin:0 0 10px;font-size:14px;line-height:1.4}
.tour .tft{display:flex;align-items:center;gap:8px}
.tour .tn{flex:1;font-size:11px;color:#5E6068}
.tour .tskip{height:36px;padding:0 12px;border:1px solid #DDD7C8;border-radius:6px;background:#FAF8F3;font-size:12px;font-weight:600}
.tour .tnext{height:36px;padding:0 14px;border:1px solid #B8973A;border-radius:6px;background:#B8973A;font-size:12px;font-weight:700}
.tour .tarr{position:absolute;width:12px;height:12px;background:#fff;transform:translateX(-50%) rotate(45deg);display:none}
.tour .tarr.up{display:block;top:-7px;border-left:1px solid #DDD7C8;border-top:1px solid #DDD7C8}
.tour .tarr.down{display:block;bottom:-7px;border-right:1px solid #DDD7C8;border-bottom:1px solid #DDD7C8}
