/*
 * Safety (C26, C46 to C49, A50): the blur over a post's pictures and clips, the settings
 * sections for quiet hours, Club levels, text size and your data, and
 * the quiet "Delete account" row. Loaded last, after polish.css. Nothing in this sheet moves:
 * a cover and a size change are states.
 */

/* ------------------------------------------------------------- text size (C49)
   text-size.js sets data-text-size and --pk-text-scale on the root, and copies the px
   sizes in the other sheets. The type tokens are custom properties, so they scale here.
   rem sizes follow the root. */
:root[data-text-size] {
  --pk-type-caption: calc(11px * var(--pk-text-scale, 1));
  --pk-type-meta: calc(12px * var(--pk-text-scale, 1));
  --pk-type-ui: calc(13px * var(--pk-text-scale, 1));
  --pk-type-body: calc(15px * var(--pk-text-scale, 1));
  --pk-type-lead: calc(17px * var(--pk-text-scale, 1));
  --pk-type-title: calc(22px * var(--pk-text-scale, 1));
  --pk-type-display: calc(clamp(26px, 1.25vw + 18px, 36px) * var(--pk-text-scale, 1));
  font-size: calc(100% * var(--pk-text-scale, 1));
}

/* ------------------------------------------------- sensitive pictures (C47) */
.pk-sensitive { position: relative; overflow: hidden; border-radius: inherit; }
.pk-sensitive[data-covered="1"] .pk-sensitive-media { filter: blur(34px) saturate(.75); transform: scale(1.1); pointer-events: none; user-select: none; }
.pk-sensitive-cover {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 16px; text-align: center; background: color-mix(in srgb, var(--pk-canvas) 52%, transparent);
}
.pk-sensitive-cover[hidden], .pk-sensitive-bar[hidden] { display: none; }
.pk-sensitive-title { margin: 0; color: var(--pk-ink); font: var(--pk-weight-semibold) var(--pk-type-lead)/1.3 var(--fs-font); overflow-wrap: anywhere; }
.pk-sensitive-note { margin: 0; color: var(--pk-muted); font-size: var(--pk-type-meta); line-height: 1.4; }
.pk-sensitive-bar {
  position: absolute; z-index: 2; top: 8px; left: 8px; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 16px);
  margin: 0; padding: 2px 2px 2px 12px; border: 1px solid var(--pk-line); border-radius: 999px;
  background: color-mix(in srgb, var(--pk-surface) 84%, transparent); color: var(--pk-ink); font-size: var(--pk-type-meta); line-height: 1.3;
}
.pk-sensitive-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-sensitive-hide {
  min-height: 32px; padding: 4px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--pk-accent-ink);
  font: inherit; cursor: pointer;
}
@media (forced-colors: active) {
  .pk-sensitive-cover { background: Canvas; }
  .pk-sensitive-bar { border-color: CanvasText; background: Canvas; color: CanvasText; }
}

.pk-sensitive-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* A quiet text button: "Report this Club" under a Club's header. */
.pk-house-safety { margin: 6px 0 0; }
.pk-link-button {
  min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--pk-muted);
  font: inherit; font-size: var(--pk-type-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
@media (hover: hover) { .pk-link-button:is(:hover, :focus-visible) { filter: brightness(1.08); } }

/* Menus that hold buttons (a profile's ⋯): the same row as the links beside them. */
.pk-creator-more nav button {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent;
  color: #e9ebea; font: inherit; font-size: var(--pk-type-ui); font-weight: var(--pk-weight-semibold); text-align: left; cursor: pointer;
}
@media (hover: hover) { .pk-creator-more nav button:is(:hover, :focus-visible) { filter: brightness(1.08); } }

/* A Discover wall item has no card around it: its ⋯ sits over the corner of the picture. */
.pk-wall-item { position: relative; }
.pk-wall-item.pk-post-menu-open { z-index: 20; }
.pk-wall-item > .pk-post-menu { top: 6px; right: 6px; }
.pk-wall-item > .pk-post-menu .pk-post-menu-button { background: color-mix(in srgb, var(--pk-canvas) 62%, transparent); color: var(--pk-ink); }
.pk-wall-item > .pk-post-menu .pk-post-menu-list { min-width: 0; width: max-content; max-width: calc(100vw - 32px); }
/* A wall tile is short: its cover keeps the title and Show, and its bar stays clear of the ⋯. */
.pk-wall-item .pk-sensitive-cover { gap: 6px; padding: 8px 48px 8px 8px; }
.pk-wall-item .pk-sensitive-note { display: none; }
.pk-wall-item .pk-sensitive-title { font-size: var(--pk-type-ui); }
.pk-wall-item .pk-sensitive-actions .fs-button { min-height: 32px; padding: 4px 12px; font-size: var(--pk-type-meta); }
.pk-wall-item .pk-sensitive-bar { top: 6px; left: 6px; max-width: calc(100% - 56px); }

/* ----------------------------------------------- settings sections (C46 to C49) */
.pk-safety-section { display: grid; gap: 10px; margin: 28px 0 0; padding: 22px 16px 0; border-top: 1px solid var(--pk-border); }
.pk-safety-section h2 { margin: 0; font-size: var(--pk-type-lead); }
.pk-safety-section h3 { margin: 6px 0 0; font-size: var(--pk-type-body); }
.pk-safety-section p { margin: 0; }
.pk-safety-section .pk-fine { color: var(--pk-muted); font-size: var(--pk-type-ui); line-height: 1.5; }
.pk-safety-choice { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; }
.pk-safety-choice label { display: flex; min-height: 44px; align-items: center; gap: 10px; }
.pk-quiet-times { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.pk-quiet-times label { display: grid; gap: 4px; font-size: var(--pk-type-ui); }
.pk-quiet-times .pk-control { width: auto; min-width: 140px; }
.pk-pause-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-pause-actions [hidden] { display: none; }
.pk-club-levels { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pk-club-level { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 8px 0; border-bottom: 1px solid var(--pk-border); }
.pk-club-level-name { min-width: 0; overflow-wrap: anywhere; font-weight: var(--pk-weight-medium); }
.pk-club-level .pk-control { width: auto; min-width: 190px; }
.pk-club-level .pk-row-status { grid-column: 1 / -1; }
.pk-row-status { min-height: 1.3em; color: var(--pk-muted); font-size: var(--pk-type-meta); line-height: 1.3; }
.pk-notification-fixed { color: var(--pk-muted); font-size: var(--pk-type-ui); }
.pk-text-sample { padding: 14px 16px; border: 1px solid var(--pk-line); border-radius: var(--fs-radius, 16px); color: var(--pk-ink); font-size: var(--pk-type-body); line-height: 1.5; }
.pk-activity { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pk-activity li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pk-border); font-size: var(--pk-type-ui); line-height: 1.45; }
.pk-activity time { color: var(--pk-muted); }
.pk-activity a { color: var(--pk-ink); overflow-wrap: anywhere; }
.pk-activity span { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .pk-club-level { grid-template-columns: minmax(0, 1fr); }
  .pk-club-level .pk-control { width: 100%; }
}

/* Delete account: last in Settings, and quiet. */
.pk-settings-hub .pk-settings-quiet { margin-top: 10px; opacity: .72; }
.pk-settings-hub .pk-settings-quiet strong { font-weight: var(--pk-weight-regular); }
@media (hover: hover) { .pk-settings-hub .pk-settings-quiet:is(:hover, :focus-within) { opacity: 1; } }

/* "I am 18 or older" (NEW-08): the same box on the Join card, the sign-in dialog and the claim sheet. */
.pk-adult { display: flex; flex: 1 1 100%; align-items: flex-start; gap: 10px; min-width: 0; margin: 8px 0 0; color: var(--pk-muted); font-size: var(--pk-type-ui); line-height: 1.45; cursor: pointer; }
.pk-adult input { flex: none; margin-top: 3px; accent-color: var(--pk-accent); }
