/* The free town, neighborhood and trade pages (lib/places.js). Loaded after why.css, so the colors,
   top bar, buttons and light mode come from there; this file only adds what these pages need. */
.acct { display: flex; gap: 8px; align-items: center; }
.place-hero { padding-bottom: 40px; }
.place-hero h1 { font-size: clamp(32px, 4.6vw, 54px); max-width: 940px; }
.crumbs { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.lede { font-size: 18px; color: var(--text-2); max-width: 720px; margin: 20px 0 26px; }
.lede b { color: var(--text); font-weight: 600; }
.lede a { color: var(--amber-tx); }

.counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 760px; }
.count { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ink-2); text-decoration: none; color: var(--text); transition: border-color .15s, transform .08s; }
.count:hover { border-color: var(--teal); }
.count:active { transform: translateY(1px); }
.count:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.count b { font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--teal); line-height: 1.1; }
.count span { font-size: 13px; color: var(--text-2); }
.counts-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.place-jobs { padding-top: 24px; }
.place-jobs h2, .place-more h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 22px; }
.place-more h2 small { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.place-more h2 + .place-list { margin-bottom: 44px; }
.jobs { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.job { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-2); }
.job p { margin: 0; }
.job-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.job-value { font-family: var(--mono); color: var(--amber-tx); font-weight: 600; }
.job-where { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.job-where a { color: var(--teal); text-decoration: none; font-weight: 600; }
.job-where a:hover { text-decoration: underline; }
.job-kind { color: var(--text-2); font-size: 14.5px; }
.job-size { color: var(--muted); font-size: 13.5px; font-family: var(--mono); }
.job-needs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px !important; font-size: 13px; color: var(--muted); }
.job-needs span { margin-right: 2px; }
.chip { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.chip:hover { text-decoration: underline; }
.chip:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.job-lock { display: flex; gap: 8px; align-items: flex-start; margin-top: auto !important; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.job-lock svg { flex: none; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.job-lock a { color: var(--amber-tx); font-weight: 600; }

.place-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.place-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.place-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.place-list a:hover { color: var(--teal); text-decoration: underline; }
.place-list span { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.more-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.more-links a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.more-links a:hover { border-color: rgba(var(--fg), .4); color: var(--text); }
.more-links a:focus-visible, .place-list a:focus-visible, .crumbs a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

@media (max-width: 760px) {
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .place-hero { padding-top: 36px; padding-bottom: 24px; }
  .lede { font-size: 16.5px; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .count b { font-size: 21px; }
  .jobs { grid-template-columns: 1fr; }
  .acct .btn.ghost { display: none; }
}
