/* Bradford County FaceBoard — modern light production stylesheet
   Layout, navigation, version header, gallery and edition badges live here.
   Edition config files provide data/limits only and do not control layout. */

* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --fb-bg: #f5f4f1;
  --fb-bg-deep: #ece9e4;
  --fb-panel: rgba(255,255,255,.82);
  --fb-panel-strong: #ffffff;
  --fb-panel-soft: #faf9f7;
  --fb-ink: #242326;
  --fb-muted: #6b6870;
  --fb-line: rgba(36,35,38,.16);
  --fb-line-strong: rgba(36,35,38,.28);
  --fb-accent: #7853a6;
  --fb-accent-strong: #65438f;
  --fb-accent-soft: rgba(120,83,166,.10);
  --fb-shadow: 0 12px 34px rgba(29,24,36,.08);
  --fb-shadow-soft: 0 7px 22px rgba(29,24,36,.055);
  --fb-prank: #cf3156;
  --fb-prank-soft: #fff1f4;
  --fb-private: #3f805a;
  --fb-private-soft: #f0f8f3;

  /* Compatibility aliases used by existing FaceBoard markup/JS. */
  --bg: var(--fb-bg);
  --panel: var(--fb-panel);
  --panel-solid: var(--fb-panel-strong);
  --panel-hover: #ffffff;
  --text: var(--fb-ink);
  --muted: var(--fb-muted);
  --line: var(--fb-line);
  --accent: var(--fb-accent);
  --accent-soft: var(--fb-accent-soft);
  --shadow: rgba(29,24,36,.10);
}

html {
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--fb-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fb-ink);
  background:
    radial-gradient(circle at 10% -5%, rgba(120,83,166,.085), transparent 31rem),
    radial-gradient(circle at 92% 2%, rgba(202,151,113,.08), transparent 27rem),
    linear-gradient(180deg, #fbfaf8 0, var(--fb-bg) 28rem, var(--fb-bg-deep) 100%);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

/* =========================================================
   PROFILE PAGES
   ========================================================= */

.profile-page .wrap {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 58px;
}

.profile-page .profile-utility-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  margin: 0 0 20px;
}

.profile-page .backlink,
.profile-page .profile-nav-link {
  border: 1px solid var(--fb-line);
  background: rgba(255,255,255,.58);
  color: var(--fb-muted);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(29,24,36,.025);
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.profile-page .backlink {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 680;
}

.profile-page .backlink:hover,
.profile-page .profile-nav-link:hover {
  color: var(--fb-ink);
  border-color: var(--fb-line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.profile-page .profile-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(760px, 100%);
  margin: 0;
  font-size: 13px;
}

.profile-page .profile-nav-link {
  display: block;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 680;
}

.profile-page .profile-nav-previous { text-align: left; }
.profile-page .profile-nav-next { text-align: right; }
.profile-page .profile-nav-index {
  color: var(--fb-accent-strong);
  border-color: rgba(120,83,166,.27);
  background: var(--fb-accent-soft);
  text-align: center;
  font-weight: 760;
}

/* Edition / connection header. It occupies the exact same right column as
   Banner and Contact, so all three elements remain perfectly aligned. */
.faceboard-version-tag {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(120,83,166,.24);
  border-radius: 13px;
  background: rgba(255,255,255,.73);
  box-shadow: var(--fb-shadow-soft);
  color: var(--fb-muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.faceboard-version-edition {
  color: var(--fb-accent-strong);
  font-weight: 850;
}
.faceboard-version-divider { color: rgba(36,35,38,.30); }
.faceboard-version-connection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.faceboard-version-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #aaa5ad;
  box-shadow: 0 0 0 3px rgba(107,104,112,.09);
}

.faceboard-version-tag[data-state="preview"] {
  border-color: rgba(120,83,166,.34);
  background: #f7f2fc;
}
.faceboard-version-tag[data-state="preview"] .faceboard-version-connection {
  color: #75559a;
}
.faceboard-version-tag[data-state="preview"] .faceboard-version-dot {
  background: #8d67ba;
  box-shadow: 0 0 0 3px rgba(120,83,166,.12);
}

.faceboard-version-tag[data-state="connected"] {
  border-color: rgba(207,49,86,.28);
  background: var(--fb-prank-soft);
}
.faceboard-version-tag[data-state="connected"] .faceboard-version-connection {
  color: #b62649;
}
.faceboard-version-tag[data-state="connected"] .faceboard-version-dot {
  background: var(--fb-prank);
  box-shadow: 0 0 0 3px rgba(207,49,86,.10), 0 0 9px rgba(207,49,86,.22);
}
.faceboard-version-tag[data-edition="private"] {
  background: linear-gradient(90deg, var(--fb-private-soft), var(--fb-prank-soft));
  border-color: rgba(63,128,90,.26);
}
.faceboard-version-tag[data-edition="private"] .faceboard-version-edition {
  color: var(--fb-private);
}

.profile-page .header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  align-items: start;
  gap: clamp(28px, 4vw, 58px);
  margin: 0 0 24px;
}

.profile-page .profile-main { min-width: 0; }

.profile-page h1 {
  margin: 0 0 15px;
  color: var(--fb-ink);
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  font-weight: 790;
  line-height: .92;
  letter-spacing: -.047em;
}

.profile-page .intro {
  max-width: 860px;
  margin: 0;
  color: var(--fb-muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.profile-page .profile-tagline {
  display: inline-block;
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--fb-accent);
  color: var(--fb-ink);
  font-size: .92rem;
  font-weight: 720;
  line-height: 1.45;
  letter-spacing: .005em;
}

.profile-page .tag {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(120,83,166,.25);
  border-radius: 999px;
  background: var(--fb-accent-soft);
  color: var(--fb-accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.profile-page .profile-side {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 14px;
}

.profile-page .profile-banner {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--fb-line);
  border-radius: 13px;
  background: var(--fb-panel);
  box-shadow: var(--fb-shadow-soft);
}

.profile-page .profile-banner-item {
  min-width: 0;
  padding: 10px 10px 9px;
  text-align: center;
}
.profile-page .profile-banner-item + .profile-banner-item { border-left: 1px solid var(--fb-line); }
.profile-page .profile-banner-icon {
  display: block;
  margin-bottom: 2px;
  font-size: 1.05rem;
  line-height: 1.15;
}
.profile-page .profile-banner-label {
  display: block;
  color: var(--fb-muted);
  font-size: .60rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.profile-page .profile-banner-value {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--fb-ink);
  font-size: .76rem;
  font-weight: 740;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page .contact-box {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 16px 16px;
  border: 1px solid var(--fb-line-strong);
  border-radius: 16px;
  background: var(--fb-panel);
  box-shadow: var(--fb-shadow);
}
.profile-page .contact-box > legend {
  margin-left: 8px;
  padding: 0 10px;
  color: var(--fb-muted);
  background: transparent;
  font-size: .66rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.profile-page .contact-body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-top: 3px;
}
.profile-page .contact-personal-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(120,83,166,.20);
  border-radius: 50%;
  background: var(--fb-accent-soft);
  font-size: 1.8rem;
  user-select: none;
}
.profile-page .contact-message {
  margin: 2px 0 13px;
  color: var(--fb-ink);
  font-size: .92rem;
  line-height: 1.54;
  text-wrap: pretty;
}
.profile-page .contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.profile-page .contact-channel {
  display: inline-flex;
  height: 24px;
  align-items: center;
  gap: 5px;
  padding: 0 9px 0 8px;
  border: 1px solid var(--fb-line);
  border-radius: 999px;
  background: var(--fb-panel-strong);
  color: var(--fb-ink);
  font-size: .71rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

/* Gallery: three columns by default. faceboard-nav.js only changes the custom
   property to four when the rendered count would otherwise leave a lone card. */
.profile-page .gallery {
  --faceboard-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--faceboard-columns), minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--fb-line);
}

.profile-page .card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--fb-line);
  border-radius: 14px;
  background: var(--fb-panel);
  box-shadow: var(--fb-shadow-soft);
  color: var(--fb-ink);
  text-align: left;
  cursor: zoom-in;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.profile-page .card:hover {
  transform: translateY(-2px);
  border-color: var(--fb-line-strong);
  background: var(--fb-panel-strong);
  box-shadow: 0 14px 34px rgba(29,24,36,.10);
}
.profile-page .card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(145deg, var(--fb-accent-soft), var(--fb-panel-strong));
  transition: transform .22s ease, filter .22s ease;
}
.profile-page .card:hover img { transform: scale(1.018); filter: saturate(1.025) contrast(1.015); }

/* Captions intentionally sit below images — never as overlays. */
.profile-page .caption {
  position: static;
  display: block;
  flex: 1 1 auto;
  min-height: 68px;
  padding: 11px 13px 13px;
  border-top: 1px solid var(--fb-line);
  background: rgba(255,255,255,.52);
  color: var(--fb-muted);
  font-size: .79rem;
  line-height: 1.45;
  text-shadow: none;
  text-wrap: pretty;
}

.profile-page .card.pranktok {
  border: 2px solid rgba(207,49,86,.72);
  box-shadow: 0 8px 24px rgba(207,49,86,.08), var(--fb-shadow-soft);
}
.profile-page .card.pranktok::before {
  content: "PrankTok";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 999px;
  background: rgba(197,32,72,.93);
  box-shadow: 0 3px 12px rgba(82,11,29,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .035em;
  pointer-events: none;
}
.profile-page .card.private-only {
  border-color: rgba(63,128,90,.72);
}
.profile-page .card.private-only::after {
  content: "PRIVATE";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(55,119,79,.94);
  box-shadow: 0 3px 12px rgba(20,75,40,.14);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .035em;
  pointer-events: none;
}


/* Work-in-progress images are PRIVATE-only and carry their own neutral marker.
   faceboard-nav.js adds the .work-in-progress class from the -WIP filename marker. */
.profile-page .card.work-in-progress {
  border-color: rgba(105,105,110,.72);
}

.profile-page .card.work-in-progress::after,
.profile-page .card.private-only.work-in-progress::after {
  content: "WIP";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(96,96,102,.94);
  box-shadow: 0 3px 12px rgba(35,35,40,.16);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .035em;
  pointer-events: none;
}

/* Lightbox remains deliberately dark so the photograph itself dominates. */
.profile-page .lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  overflow: hidden;
  background: rgba(18,17,21,.965);
  color: #f4f1f6;
}
.profile-page .lightbox.open { display: block; }
.profile-page .stage {
  position: absolute;
  inset: 58px 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}
.profile-page .stage.grabbing { cursor: grabbing; }
.profile-page .stage img {
  max-width: 94vw;
  max-height: 82vh;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 18px 60px rgba(0,0,0,.42);
}
.profile-page .topbar,
.profile-page .bottombar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.profile-page .topbar { top: 0; background: linear-gradient(to bottom, rgba(0,0,0,.68), transparent); }
.profile-page .bottombar { bottom: 0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); color: #c7c1ca; }
.profile-page #title {
  max-width: min(800px, calc(100vw - 190px));
  overflow: hidden;
  color: #f4f1f6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-page button.control,
.profile-page .nav {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #f4f1f6;
  cursor: pointer;
}
.profile-page button.control { padding: 9px 12px; }
.profile-page button.control:hover,
.profile-page .nav:hover { background: rgba(255,255,255,.16); }
.profile-page .nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  font-size: 30px;
}
.profile-page .prev { left: 16px; }
.profile-page .next { right: 16px; }
.profile-page .counter { color: #c6a9e7; white-space: nowrap; }

/* =========================================================
   INDEX PAGE
   ========================================================= */

.index-page .wrap {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
  column-gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

/* On the index there is no profile navigation. Use the otherwise empty left
   side of the top row for the FaceBoard title badge, keeping the edition /
   PrankTok header aligned with it instead of giving the header its own row. */
.index-page .faceboard-version-tag {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0;
  align-self: start;
}

.index-page .kicker {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(120,83,166,.23);
  border-radius: 999px;
  background: var(--fb-accent-soft);
  color: var(--fb-accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
/* Shared left FaceBoard badge. Public editions keep the classic PREVIEW
   appearance; PRIVATE expands the same badge into the board switcher. */

.index-page .faceboard-board-bar {
  max-width: 100%;
  white-space: nowrap;
}

.index-page .faceboard-board-public-label {
  display: inline-flex;
  align-items: center;
}

.index-page .faceboard-board-private-content {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.index-page .faceboard-board-private-content[hidden],
.index-page .faceboard-board-public-label[hidden] {
  display: none;
}

.index-page .faceboard-board-bar.has-board-switcher {
  text-transform: none;
  letter-spacing: .01em;
}

.index-page .faceboard-board-brand {
  flex: 0 0 auto;
  color: var(--fb-accent-strong);
  font-weight: 900;
  letter-spacing: .025em;
}
.index-page .faceboard-board-switch {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}
.index-page .faceboard-board-current,
.index-page .faceboard-board-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 790;
  line-height: 1.2;
  letter-spacing: .015em;
}
.index-page .faceboard-board-current {
  background: var(--fb-accent);
  color: #fff;
  box-shadow: 0 2px 7px rgba(120,83,166,.16);
}
.index-page .faceboard-board-link {
  color: var(--fb-accent-strong);
  text-decoration: none;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.index-page .faceboard-board-link:hover {
  background: rgba(255,255,255,.72);
  color: var(--fb-ink);
  transform: translateY(-1px);
}
.index-page .faceboard-board-separator {
  color: rgba(36,35,38,.34);
  font-weight: 750;
}

.index-page h1 {
  grid-column: 1 / -1;
  margin: 22px 0 11px;
  color: var(--fb-ink);
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  font-weight: 790;
  line-height: .94;
  letter-spacing: -.045em;
}
.index-page .sub {
  grid-column: 1 / -1;
  max-width: 820px;
  margin: 0 0 25px;
  color: var(--fb-muted);
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  line-height: 1.55;
}
.index-page .toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 17px;
  flex-wrap: wrap;
}
.index-page .page-status { color: var(--fb-muted); font-size: 13px; }
.index-page .pager { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.index-page .page-btn {
  padding: 7px 11px;
  border: 1px solid var(--fb-line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--fb-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
}
.index-page .page-btn:hover { border-color: rgba(120,83,166,.34); background: #fff; }
.index-page .page-btn[aria-current="page"] {
  border-color: var(--fb-accent);
  background: var(--fb-accent);
  color: #fff;
}
.index-page .page-btn:disabled { opacity: .38; cursor: default; }

.index-page .list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 15px;
}
.index-page .card {
  display: grid;
  min-height: 116px;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--fb-line);
  border-radius: 18px;
  background: var(--fb-panel);
  box-shadow: var(--fb-shadow-soft);
  color: var(--fb-ink);
  text-decoration: none;
  transition: transform .17s ease, border-color .17s ease, background .17s ease, box-shadow .17s ease;
}
.index-page .card:hover {
  transform: translateY(-2px);
  border-color: rgba(120,83,166,.30);
  background: #fff;
  box-shadow: var(--fb-shadow);
}
.index-page .thumb-wrap {
  position: relative;
  display: block;
  width: 86px;
  height: 86px;
}
.index-page .thumb {
  width: 86px;
  height: 86px;
  border: 1px solid var(--fb-line);
  border-radius: 15px;
  background: var(--fb-panel-soft);
  object-fit: cover;
}
.index-page .name {
  display: block;
  margin-bottom: 5px;
  color: var(--fb-accent-strong);
  font-size: 1.25rem;
  font-weight: 760;
  line-height: 1.05;
}
.index-page .info { display: block; color: var(--fb-muted); font-size: .78rem; line-height: 1.4; }
.index-page .empty {
  padding: 18px;
  border: 1px dashed var(--fb-line-strong);
  border-radius: 15px;
  color: var(--fb-muted);
}

.index-page .pranktok-mini-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 3;
  display: inline-flex;
  min-width: 24px;
  height: 19px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid rgba(75,71,79,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 7px rgba(29,24,36,.15);
  color: #6d6870;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .055em;
  pointer-events: none;
}
.index-page .pranktok-mini-badge[data-edition="basic"] {
  border-color: rgba(120,83,166,.36);
  background: #eee5f8;
  color: #6b4594;
}
.index-page .pranktok-mini-badge[data-edition="member"],
.index-page .pranktok-mini-badge[data-edition="members"] {
  border-color: rgba(207,49,86,.34);
  background: #d9345c;
  color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .profile-page .gallery { --faceboard-columns: 3 !important; }
}

@media (max-width: 980px) {
  .profile-page .wrap { width: min(100% - 30px, 820px); padding-top: 22px; }
  .profile-page .profile-utility-row,
  .profile-page .header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .profile-page .profile-utility-row { margin-bottom: 22px; }
  .profile-page .profile-navigation { width: 100%; }
  .profile-page .faceboard-version-tag { width: 100%; }
  .profile-page .profile-side { width: 100%; gap: 14px; }
  .profile-page .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
}


@media (max-width: 760px) {
  .index-page .wrap {
    display: block;
    padding-top: 24px;
  }
  .index-page .faceboard-version-tag {
    margin: 0 0 13px;
    width: 100%;
  }
  .index-page .kicker { margin: 0 0 13px; }
  .index-page .faceboard-board-bar {
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    white-space: normal;
  }
  .index-page h1 { margin-top: 0; }
}

@media (max-width: 560px) {
  .profile-page .wrap,
  .index-page .wrap { width: min(100% - 22px, 760px); }

  .profile-page .profile-navigation { grid-template-columns: 1fr 1fr; gap: 7px; }
  .profile-page .profile-nav-index { grid-column: 1 / -1; grid-row: 1; }
  .profile-page .profile-nav-previous { grid-column: 1; grid-row: 2; }
  .profile-page .profile-nav-next { grid-column: 2; grid-row: 2; }

  .faceboard-version-tag {
    gap: 5px 7px;
    flex-wrap: wrap;
    padding: 9px 10px;
    font-size: 10px;
    white-space: normal;
  }

  .profile-page h1 { font-size: 2.75rem; }
  .profile-page .intro { font-size: .96rem; line-height: 1.62; }
  .profile-page .profile-tagline { margin-top: 14px; font-size: .88rem; }
  .profile-page .profile-banner-item { padding: 8px 5px; }
  .profile-page .profile-banner-label { font-size: .53rem; letter-spacing: .09em; }
  .profile-page .profile-banner-value { font-size: .65rem; }
  .profile-page .contact-box { padding: 9px 12px 13px; border-radius: 14px; }
  .profile-page .contact-body { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .profile-page .contact-personal-icon { width: 46px; height: 46px; font-size: 1.5rem; }
  .profile-page .contact-message { font-size: .86rem; line-height: 1.48; }
  .profile-page .contact-channel { font-size: .67rem; }
  .profile-page .gallery { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; }
  .profile-page .caption { min-height: 0; font-size: .78rem; }
  .profile-page .nav { width: 42px; height: 42px; }
  .profile-page .prev { left: 8px; }
  .profile-page .next { right: 8px; }
  .profile-page .bottombar .hint { display: none; }

  .index-page .list { grid-template-columns: 1fr; }
  .index-page .card { grid-template-columns: 76px 1fr; min-height: 104px; }
  .index-page .thumb-wrap,
  .index-page .thumb { width: 76px; height: 76px; }
  .index-page .toolbar { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Standard FaceBoard app marks — LinkedIn / HarborLink / CivicWire.
   Keep these compact so every contact pill has the same 24px height. */
.contact-app-icon {
  display: inline-flex;
  width: .82rem;
  height: .82rem;
  flex: 0 0 .82rem;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  border-radius: .20rem;
  color: #fff;
  font: 700 .48rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: -.02em;
  vertical-align: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.app-linkedin { background: #0a66c2; letter-spacing: -.08em; }
.app-harborlink { background: #167c80; }
.app-civicwire { background: #4a556f; font-size: .41rem; }
