/* Share nudges + the shared share sheet (app/share.php, share.js). Deliberately quiet:
   buttons read as secondary actions; the sheet only appears on click. */
.shr{display:inline-flex;align-items:center;gap:6px;border:0;background:none;font:inherit;cursor:pointer;color:var(--muted);text-decoration:none}
.shr .shr-ic{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.shr:hover{color:var(--green)}
.shr:focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* The standard Share action — the same quiet chip as a post card's footer actions (.post .p-act).
   Used in page heads, card heads and stat cards; heroes on photos use .shr-pill instead. */
.shr-inline,.shr-head,.shr-corner{height:30px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:600;color:var(--muted);gap:7px}
.shr-inline .shr-ic,.shr-head .shr-ic,.shr-corner .shr-ic{width:16px;height:16px}
.shr-inline:hover,.shr-head:hover,.shr-corner:hover{background:var(--surface-2);color:var(--text)}
.shr-inline{flex:none;margin-left:auto}

/* Page heads: top right, on the kicker line. */
.page-head:has(>.shr-head),.pp-head:has(>.shr-head),.gx-head>div:has(>.shr-head){position:relative}
.page-head:has(>.shr-head)>.kicker,.pp-head:has(>.shr-head)>.st-k,.gx-head>div:has(>.shr-head)>.gx-k{padding-right:92px}
.shr-head{position:absolute;top:-7px;right:-4px}

/* Photo heroes (town home, history): a white pill like Save / Compare. */
.home-hero .shr-pill{position:absolute;z-index:4;top:100px;right:16px;background:rgba(255,255,255,.95);color:var(--text);border-radius:999px;padding:7px 14px 7px 11px;font-size:13px;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.home-hero .shr-pill:hover{background:#fff;color:var(--green)}
.st-hero:has(>.shr-pill){position:relative}
.st-hero>.shr-pill{position:absolute;z-index:4;top:16px;right:16px;background:rgba(255,255,255,.95);color:#2a2c22;border-radius:999px;padding:7px 14px 7px 11px;font-size:13px;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.st-hero>.shr-pill:hover{background:#fff;color:#0b7f45}

/* Stat cards: top right corner. */
.hs-card:has(>.shr-corner){position:relative}
.hs-card:has(>.shr-corner)>.kicker{padding-right:84px}
.shr-corner{position:absolute;top:12px;right:12px}

/* Compare page: sits next to the existing actions. */
.cmp-actions .shr{height:36px;padding:0 14px;border:1px solid var(--line-2);border-radius:999px;background:var(--surface);font-size:13.5px;font-weight:700;color:var(--text)}
.cmp-actions .shr:hover{border-color:var(--green-line);color:var(--green)}

/* ---------- The sheet ---------- */
.shs{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px}
.shs[hidden]{display:none}
.shs-back{position:absolute;inset:0;background:rgba(20,22,18,.42)}
.shs-card{position:relative;width:100%;max-width:420px;max-height:calc(100vh - 32px);overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.22);padding:18px 18px 16px}
.shs-x{position:absolute;top:10px;right:10px;width:32px;height:32px;border:0;border-radius:9px;background:none;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}
.shs-x:hover{background:var(--surface-2);color:var(--text)}
.shs-k{margin:0 40px 3px 0;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--green)}
.shs-h{margin:0 40px 2px 0;font-family:var(--display);font-size:18px;font-weight:800;letter-spacing:-.01em;line-height:1.25}
.shs-card .shs-sub{margin:0 0 14px;padding:0;color:var(--muted);font-size:13px}
.shs-msg{display:block;width:100%;min-height:96px;resize:vertical;border:1px solid var(--line-2);border-radius:12px;background:var(--surface-2);color:var(--text);padding:10px 12px;font:14px/1.45 var(--sans)}
.shs-msg:focus{outline:2px solid var(--green-line);border-color:var(--green)}
.shs-ch{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px;margin-top:12px}
.shs-ch button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px 9px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:600 12.5px var(--sans);cursor:pointer}
.shs-ch button:hover{border-color:var(--green-line);background:var(--green-bg)}
.shs-ch button:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.shs-ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#fff}
.shs-ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.shs-ic.fb{background:#1877f2}.shs-ic.fb svg{fill:#fff;stroke:none}
.shs-ic.sms{background:#2fb35a}
.shs-ic.mail{background:#5c6674}
.shs-ic.copy{background:var(--green)}
.shs-ic.more{background:var(--surface-2);color:var(--text);border:1px solid var(--line-2)}
.shs-note{margin:10px 0 0;min-height:18px;font-size:12.5px;color:var(--green);font-weight:600}
.shs-link{display:flex;gap:6px;align-items:center;margin-top:8px;font-size:12px;color:var(--faint);overflow:hidden}
.shs-link span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:640px){
  /* Phones: the hero title sits higher, so Share becomes a round icon beside Compare. */
  .home-hero .shr-pill{top:58px;right:126px;width:33px;height:33px;padding:0;justify-content:center}
  .home-hero .shr-pill span{display:none}
}
@media (max-width:480px){ .post .shr-post span{display:none} }
@media (max-width:560px){
  .shs{align-items:flex-end;padding:0}
  .shs-card{max-width:none;border-radius:18px 18px 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:no-preference){
  .shs:not([hidden]) .shs-card{animation:shs-in .16s ease-out}
  @keyframes shs-in{from{transform:translateY(10px);opacity:.6}to{transform:none;opacity:1}}
}

/* In-content placements (2026-09-27, round 2). */
.shr-icon.shr-inline{width:30px;padding:0;justify-content:center}
.home3 .h3-ch .shr-inline+.h3-more,.card .ch .shr-inline+.yr,.st-ch .shr-inline+.st-more,.gd2 .sec-h .shr-inline+*{margin-left:0}
.card .ch .shr-inline{margin-right:8px}
.st-acts .shr-inline,.st-hacts .shr-inline,.gp-acts .shr-inline{margin-left:0}
.exp-foot .shr-inline{margin-left:auto;margin-right:-4px}
.sch-head .shr-inline{margin-top:4px}
.rk-meta .shr-inline{margin:-6px 0 -6px auto}
.cmp-so-h{display:flex;align-items:flex-start;gap:12px}
.cmp-so-h h2{flex:1;min-width:0}
/* On the green weekly bar. */
.shr-onbrand{color:rgba(255,255,255,.9)}
.shr-onbrand:hover{background:rgba(255,255,255,.16);color:#fff}
.tw2-head .tw2-more+.shr-onbrand{margin-left:2px}
/* Ranking focus banner: our sheet button sits among the existing .rk-sbtn links. */
.rk-share .shr.rk-sbtn .shr-ic{display:none}
/* Schools: Share rides with the state-rank line, not the section head (it competed with the count). */
.rk-context .shr-inline{margin-left:10px;height:26px;vertical-align:middle}
.home3 .h3-sch-top .shr-inline{align-self:center}
