/* HPC-05 profiles, the verified tick, galleries and the directory. Colours only from tokens.css. */
.pf-wrap { padding-top: var(--s-5); padding-bottom: var(--s-8); }  /* HPC-16: the shorthand zeroed the container's side gutter (text touched the phone's edge) */
.pf-cover { height: 160px; border-radius: var(--r-card); background: var(--sky-tint); overflow: hidden; }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-head { display: flex; gap: var(--s-4); align-items: flex-end; margin-top: -48px; padding: 0 var(--s-4); flex-wrap: wrap; }
.pf-photo { width: 104px; height: 104px; border-radius: 50%; border: 4px solid var(--bg); background: var(--sky-tint); display: grid; place-items: center;
  font-size: var(--fs-28); font-weight: 700; color: var(--sky-ink); overflow: hidden; flex: none; }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { flex: 1 1 260px; min-width: 0; padding-bottom: var(--s-2); }
.pf-name h1 { margin: 0; font-size: var(--fs-28); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.pf-name .handle { color: var(--ink-2); font-size: var(--fs-14); }
.pf-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; padding-bottom: var(--s-2); }
.pf-actions form { display: inline; }
.tick { display: inline-flex; align-items: center; gap: 4px; color: var(--sky-ink); font-size: var(--fs-14); font-weight: 700; background: var(--sky-tint);
  border-radius: var(--r-pill); padding: 2px 10px 2px 6px; text-decoration: none; }
.tick svg { width: 18px; height: 18px; }
.pf-grid { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 960px) { .pf-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.pf-section h2 { font-size: var(--fs-18); margin: 0 0 var(--s-2); }
.pf-meta { display: flex; gap: var(--s-3); flex-wrap: wrap; color: var(--ink-2); font-size: var(--fs-14); margin-top: var(--s-2); }
.pf-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pf-tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.pf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.pf-card { max-width: 520px; margin: var(--s-6) auto; text-align: center; }
.pf-card .pf-photo { margin: 0 auto var(--s-3); }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.yt-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s-2); color: var(--ink); text-decoration: none; background: var(--sky-tint); }
.yt-play:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: -3px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wall-post { border-top: var(--bw) solid var(--line); padding: var(--s-3) 0; }
.wall-post:first-of-type { border-top: 0; }
.wall-post .by { font-size: var(--fs-14); color: var(--ink-2); }
.wall-post .acts { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-1); flex-wrap: wrap; }
.wall-post .acts form { display: inline; }
.wall-comments { margin: var(--s-2) 0 0 var(--s-4); display: grid; gap: var(--s-1); font-size: var(--fs-14); }
.edit-grid { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .edit-grid { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.check-list { display: grid; gap: var(--s-2); }
.cat-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px var(--s-3); max-height: 320px; overflow-y: auto;
  border: var(--bw) solid var(--line); border-radius: var(--r-ctl); padding: var(--s-2) var(--s-3); }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.order-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); border: var(--bw) solid var(--line);
  border-radius: var(--r-ctl); padding: 4px var(--s-2); background: var(--bg); }
.who-sees { width: 100%; border-collapse: collapse; }
.who-sees td, .who-sees th { text-align: left; padding: var(--s-2); border-top: var(--bw) solid var(--line); vertical-align: top; }
.dm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.dm { max-width: 80%; padding: var(--s-2) var(--s-3); border-radius: var(--r-card); background: var(--surface); }
.dm.mine { margin-left: auto; background: var(--sky-tint); }
.dm .t { font-size: var(--fs-13); color: var(--ink-2); }
/* the tick */
.steps-v { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.steps-v > li { border: var(--bw) solid var(--line); border-radius: var(--r-card); padding: var(--s-3) var(--s-4); background: var(--bg); }
.steps-v .st { font-size: var(--fs-13); font-weight: 700; }
.st-done { color: var(--leaf-ink); } .st-wait { color: var(--sky-ink); } .st-todo { color: var(--ink-2); } .st-no { color: var(--rose-ink); }
.price-row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .price-row { grid-template-columns: repeat(2, 1fr); } }
/* galleries */
.g-albums { display: grid; gap: var(--s-5); }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); }

.g-cell { display: grid; gap: 4px; align-content: start; }
.g-cell form { justify-self: start; }
.g-item { width: 100%; position: relative; border-radius: var(--r-ctl); overflow: hidden; background: var(--surface); aspect-ratio: 1; display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer; color: var(--ink); text-align: center; font-size: var(--fs-13); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item .g-kind { display: grid; gap: 4px; place-items: center; padding: var(--s-2); }
.g-item:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.g-likes { position: absolute; right: 6px; bottom: 6px; background: var(--bg); border-radius: var(--r-pill); padding: 0 8px; font-size: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--ink) 88%, transparent); display: none; place-items: center; padding: var(--s-4); }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: var(--s-2); color: var(--bg); text-align: center; }
.lightbox img, .lightbox iframe, .lightbox video { max-width: 100%; max-height: 78vh; border-radius: var(--r-ctl); background: var(--ink); }
.lightbox iframe { width: min(960px, 92vw); aspect-ratio: 16 / 9; border: 0; }
.lightbox .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; }
.lightbox .lb-prev { left: var(--s-3); } .lightbox .lb-next { right: var(--s-3); }
.lightbox .lb-close { position: absolute; top: var(--s-3); right: var(--s-3); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; }
.meter-store { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.meter-store span { display: block; height: 100%; background: var(--sky-deep); }
/* the directory */
.dir-grid { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .dir-grid { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
.dir-cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dir-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-3); align-items: start; color: var(--ink); text-decoration: none; }
.dir-card .pf-photo { width: 56px; height: 56px; border-width: 0; font-size: var(--fs-18); }
.dir-card h3 { margin: 0; font-size: var(--fs-16); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dir-card p { margin: 2px 0 0; color: var(--ink-2); font-size: var(--fs-14); }
.dir-filters .field { margin-bottom: var(--s-3); }
.dir-cats { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* links inside text are underlined, not told apart by colour alone (axe link-in-text-block) */
.pf-list a:not(.btn):not(.tag):not(.tick), .pf-section p a:not(.btn), section.card h3 a, .small a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
