/* A person's page and Edit my page, and the shared pieces (cards, buttons, inputs, banners) the community, listings and directory pages build on. See DESIGN.md. */

:root {
  --pv-hero: linear-gradient(155deg, #0A2A0A 0%, var(--secondary) 55%, var(--secondary-dark) 100%);
  --pv-pattern: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/svg%3E');
  --pv-action: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --pv-forest: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  --pv-on-hero: rgba(255,255,255,0.84);
  --pv-tint: rgba(27,94,32,0.09);
  --pv-tint-line: rgba(27,94,32,0.3);
  --pv-err-bg: rgba(200,100,10,0.08);
  --pv-err-line: rgba(200,100,10,0.32);
  --pv-ease: cubic-bezier(0.25,1,0.5,1);
}

/* Everything members write, and long translated words, must wrap rather than widen the page */
.pv, .dir-main { overflow-wrap: anywhere; }

.pv-sr {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ---- Shared pieces ---- */
.pv-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  min-width: 0;
  padding: 28px;
}
.pv-label {
  align-items: center;
  color: var(--secondary);
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.pv-label::before {
  background: var(--secondary);
  border-radius: 50%;
  content: '';
  flex: none;
  height: 6px;
  width: 6px;
}
.pv-title { color: var(--secondary-dark); font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.pv-text { color: var(--gray-800); font-size: 1.02rem; line-height: 1.7; white-space: pre-wrap; }
.pv-empty { color: var(--gray-600); font-size: 0.98rem; line-height: 1.6; }

.pv-inline-link {
  align-items: center;
  color: var(--secondary);
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pv-inline-link:hover { color: var(--secondary-dark); }

.pv-verified {
  align-items: center;
  background: var(--pv-tint);
  border: 1px solid var(--pv-tint-line);
  border-radius: var(--radius-full);
  color: var(--secondary-dark);
  display: inline-flex;
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 5px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  max-width: 100%;
  padding: 4px 12px 4px 9px;
  text-transform: uppercase;
}
.pv-verified svg { flex: none; height: 13px; width: 13px; }

.pv-btn {
  align-items: center;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  line-height: 1.3;
  min-height: 48px;
  padding: 10px 24px;
  position: relative;
  text-align: center;
  transition: transform var(--transition-fast) var(--pv-ease), box-shadow var(--transition-fast), background-color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.pv-btn:hover { transform: translateY(-2px); }
/* Covers the gap the lift leaves, or a pointer on the bottom edge makes the button jump up and down */
.pv-btn:hover::after { bottom: -6px; content: ''; height: 6px; left: 0; position: absolute; right: 0; }
.pv-btn svg { flex: none; height: 17px; width: 17px; }
.pv-btn-action { background: var(--pv-action); box-shadow: var(--shadow-colored); color: var(--white); }
.pv-btn-action:hover { box-shadow: 0 10px 34px rgba(200,100,10,0.38); color: var(--white); }
.pv-btn-forest { background: var(--pv-forest); box-shadow: var(--shadow-green); color: var(--white); }
.pv-btn-forest:hover { box-shadow: 0 10px 34px rgba(27,94,32,0.38); color: var(--white); }
.pv-btn-ghost { background: var(--white); border-color: var(--secondary); color: var(--secondary); }
.pv-btn-ghost:hover { background: var(--pv-tint); }

/* ---- Profile: banners ---- */
.pv-banners { padding-top: 20px; }
.pv-banner {
  border: 1px solid;
  border-radius: var(--radius-lg);
  font-size: 0.97rem;
  line-height: 1.55;
  margin-bottom: 14px;
  padding: 13px 18px;
}
.pv-banner.is-ok { background: var(--pv-tint); border-color: var(--pv-tint-line); color: var(--secondary-dark); }
.pv-banner.is-err { background: var(--pv-err-bg); border-color: var(--pv-err-line); color: var(--primary-dark); }
.pv-banner.is-preview { background: var(--sandal-cream); border: 2px solid var(--sandal); color: var(--gray-800); padding: 16px 20px; }
.pv-banner-title { color: var(--gray-900); display: block; font-size: 1.15rem; line-height: 1.35; margin-bottom: 4px; }
.pv-preview-status { margin-top: 4px; }

.pv-note {
  background: var(--sandal-cream);
  border-radius: var(--radius-md);
  color: var(--gray-800);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 18px;
  padding: 10px 14px;
}
.pv-signin { text-align: center; }
.pv-signin-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* Share my farm details */
.pv-share-details summary {
  align-items: center;
  color: var(--secondary-dark);
  cursor: pointer;
  display: flex;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
  line-height: 1.35;
  list-style: none;
  min-height: 44px;
}
.pv-share-details summary::-webkit-details-marker { display: none; }
.pv-share-details summary::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: '';
  flex: none;
  height: 9px;
  margin-right: 4px;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
  width: 9px;
}
.pv-share-details[open] summary::after { transform: rotate(225deg); }
.pv-share-body { color: var(--gray-700); font-size: 0.98rem; line-height: 1.65; margin: 10px 0 16px; }
.pv-share-status { color: var(--secondary-dark); font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.pv-quiet-inline { color: var(--gray-600); font-size: 0.94rem; line-height: 1.55; margin: 6px 0 14px; }

/* ---- A person's page and Edit my page (owner's request of 2026-11-09) ----
   A white band holds the cover, the round photo, name and buttons, and the tabs; the cards sit below it on the page's
   cream. Icons come from dash_icon(), whose .dash-svg has no size of its own when css/dashboard.css isn't loaded
   (signed-out visitors), so every one is sized here. */
.pf { --pf-avatar: 176px; --pf-max: 1180px; padding-bottom: 64px; }
.pf .dash-svg { flex: none; height: 18px; width: 18px; }
.pf-wrap { margin: 0 auto; max-width: var(--pf-max); min-width: 0; }
.pf-band { background: var(--white); box-shadow: 0 1px 0 var(--gray-200), 0 8px 20px rgba(26,22,16,0.04); }
.pf-band .pv-banners { padding-top: 16px; }

/* Cover */
.pf-cover-box { position: relative; }
.pf-cover {
  aspect-ratio: 2.7 / 1;
  background: var(--pv-pattern), var(--pv-hero);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  max-height: 440px;
  min-height: 150px;
  overflow: hidden;
}
.pv-banners + .pf-cover-box .pf-cover { border-radius: var(--radius-xl); }
.pf-cover img { display: block; height: 100%; object-fit: cover; width: 100%; }

/* The owner's image menus */
.pf-imgmenu { position: relative; }
.pf-imgmenu > summary { list-style: none; }
.pf-imgmenu > summary::-webkit-details-marker { display: none; }
.pf-imgbtn {
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  color: var(--gray-900);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  transition: background-color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.pf-imgbtn:hover { background: var(--gray-100); }
.pf-imgbtn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.pf-imgmenu.is-cover { bottom: 18px; position: absolute; right: 20px; }
/* The photo's camera button sits on the photo; its panel opens from the photo's left edge, so it fits a phone */
.pf-imgmenu.is-photo { position: static; }
.pf-imgmenu.is-photo > .pf-imgbtn { border: 3px solid var(--white); bottom: 10px; padding: 0; position: absolute; right: 6px; background: var(--gray-100); }
.pf-imgmenu.is-photo > .pf-imgbtn:hover { background: var(--gray-200); }
.pf-imgpanel, .pf-more-panel {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--gray-800);
  padding: 8px;
  position: absolute;
  text-align: left;
  width: min(340px, calc(100vw - 32px));
  z-index: 40;
}
.pf-imgmenu.is-cover .pf-imgpanel { right: 0; top: calc(100% + 8px); }
.pf-imgmenu.is-photo .pf-imgpanel { left: 0; top: calc(100% + 8px); }
.pf-menu-item {
  align-items: center;
  background: none;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  gap: 12px;
  line-height: 1.35;
  min-height: 44px;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
}
.pf-menu-item:hover { background: var(--gray-100); color: var(--gray-900); }
.pf-menu-item .dash-svg { color: var(--gray-700); height: 20px; width: 20px; }
.pf-menu-item.is-danger, .pf-menu-item.is-danger .dash-svg { color: var(--red-sandal); }
.pf-upload:focus-within .pf-file-pick { outline: 3px solid var(--secondary); outline-offset: -3px; }
.pf-file {
  border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px;
}
.pf-file-name { color: var(--gray-900); font-size: 0.9rem; font-weight: 700; padding: 0 12px 4px; }
.pf-menu-hint { color: var(--gray-600); font-size: 0.86rem; line-height: 1.5; padding: 0 12px 8px; }
.pf-menu-hint.is-err { color: var(--primary-dark); padding-top: 8px; }
.pf-upload-go { margin: 0 12px 8px; min-height: 44px; padding: 8px 18px; }
.pf-upload.is-auto .pf-upload-go { display: none; }
.pf-uploading { color: var(--secondary-dark); font-size: 0.92rem; font-weight: 700; padding: 0 12px 8px; }
.pf-menu-note {
  background: var(--sandal-cream);
  border-radius: var(--radius-md);
  color: var(--gray-800);
  display: flex;
  font-size: 0.86rem;
  gap: 10px;
  line-height: 1.5;
  margin: 6px 4px 4px;
  padding: 10px 12px;
}
.pf-menu-note .dash-svg { color: var(--sandal-dark); height: 16px; margin-top: 2px; width: 16px; }
.pf-menu-warn {
  background: var(--pv-err-bg);
  border: 1px solid var(--pv-err-line);
  border-radius: var(--radius-md);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 6px 4px 4px;
  padding: 10px 12px;
}

/* Photo, name and buttons */
.pf-head {
  align-items: end;
  display: grid;
  gap: 0 24px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0 28px 22px;
}
.pf-avatar-box { margin-top: calc(var(--pf-avatar) * -0.42); position: relative; width: fit-content; z-index: 2; }
.pf-avatar {
  align-items: center;
  background: var(--secondary);
  border: 5px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--sandal-light);
  display: flex;
  font-family: var(--font-serif);
  font-size: calc(var(--pf-avatar) * 0.42);
  font-weight: 800;
  height: var(--pf-avatar);
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  width: var(--pf-avatar);
}
.pf-avatar img { display: block; height: 100%; object-fit: cover; width: 100%; }
.pf-id { min-width: 0; padding-bottom: 6px; padding-top: 14px; }
.pf-name-line { align-items: center; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pf-name { color: var(--gray-900); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.15; min-width: 0; }
.pf-username { color: var(--gray-600); font-size: 1rem; line-height: 1.4; margin-top: 2px; }
.pf-meta { color: var(--gray-700); display: flex; flex-wrap: wrap; font-size: 0.98rem; gap: 4px 18px; line-height: 1.45; margin-top: 8px; }
.pf-meta-bit { align-items: center; display: inline-flex; gap: 6px; min-width: 0; }
.pf-meta-bit .dash-svg { color: var(--secondary); height: 17px; width: 17px; }
.pf-intro { color: var(--gray-800); font-size: 1.04rem; line-height: 1.55; margin-top: 8px; max-width: 620px; }
.pf-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 470px;
  padding-bottom: 8px;
  position: relative;
}
.pf-btn { font-size: 0.95rem; min-height: 44px; padding: 8px 18px; }
.pf-btn .dash-svg { height: 17px; width: 17px; }
.pf-actions .pv-share-msg { order: 6; text-align: right; }
/* Connect sits in the row beside Share and ⋯: its form's box steps aside (the form still sends its fields), and
   "Add a note" takes its own line under the buttons. More specific than css/inbox.css, which loads after this file. */
.pf-actions .ib-connect { display: contents; }
.pf-actions .ib-connect-note { flex-basis: 100%; order: 5; }

/* The ⋯ menu */
.pf-more { position: relative; }
.pf-more > summary { list-style: none; }
.pf-more > summary::-webkit-details-marker { display: none; }
.pf-more-btn {
  align-items: center;
  background: var(--gray-100);
  border-radius: 50%;
  color: var(--gray-900);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: background-color var(--transition-fast);
  width: 44px;
}
.pf-more-btn:hover, .pf-more[open] > .pf-more-btn { background: var(--gray-200); }
.pf-more-btn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.pf-more-panel { right: 0; top: calc(100% + 8px); }
.pf-sub > summary { list-style: none; }
.pf-sub > summary::-webkit-details-marker { display: none; }
.pf-sub[open] > summary { background: var(--gray-100); }
.pf-sub-body { padding: 6px 12px 12px; }
.pf-sub-body .cm-tool-form { margin: 0; }

/* Tabs: real links, one address each */
.pf-tabs { border-top: 1px solid var(--gray-200); display: flex; gap: 4px; margin: 0 4px; overflow-x: auto; scrollbar-width: none; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tab {
  align-items: center;
  border-bottom: 3px solid transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: var(--gray-700);
  display: inline-flex;
  flex: none;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 52px;
  padding: 4px 18px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.pf-tab:hover { background: var(--pv-tint); color: var(--secondary); }
.pf-tab[aria-current="page"] { border-bottom-color: var(--secondary); color: var(--secondary); }

/* Below the band */
.pf-body { padding-top: 20px; }
.pf-cols { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pf-side, .pf-main, .pf-single, .pf-posts { align-content: start; display: grid; gap: 16px; min-width: 0; }
.pf-single { margin: 0 auto; max-width: 820px; }
.pf-single.is-photos { max-width: none; }
.pf-posts { scroll-margin-top: 80px; }
.pf-main > .mk-profile-card, .pf-main > .dash-composer { margin: 0; }
.pf-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  padding: 18px 20px;
}
.pf-card-head { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; margin-bottom: 12px; min-height: 44px; }
/* Break long translated words only when a word alone is wider than the card, so a long link wraps under the title
   rather than squeezing it to a letter a line (.pv breaks anywhere, which lets flex items shrink to nothing) */
.pf-card-head > *, .pf-tab { overflow-wrap: break-word; }
.pf-card-title { align-items: center; color: var(--gray-900); display: flex; font-size: 1.28rem; font-weight: 800; gap: 10px; line-height: 1.3; min-width: 0; }
.pf-title-ico {
  align-items: center;
  background: var(--pv-tint);
  border-radius: 50%;
  color: var(--secondary);
  display: inline-flex;
  flex: none;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.pf-title-ico .dash-svg { height: 17px; width: 17px; }
.pf-pencil {
  align-items: center;
  background: var(--gray-100);
  border-radius: 50%;
  color: var(--gray-700);
  display: inline-flex;
  flex: none;
  height: 44px;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  width: 44px;
}
.pf-pencil:hover { background: var(--pv-tint); color: var(--secondary); }
.pf-head-link { align-items: center; color: var(--secondary); display: inline-flex; flex: 0 1 auto; font-weight: 700; min-height: 44px; }
.pf-head-link:hover { color: var(--secondary-dark); text-decoration: underline; text-underline-offset: 3px; }
.pf-card-sub { color: var(--gray-600); font-size: 0.95rem; line-height: 1.5; margin: -4px 0 14px; }
.pf-about { color: var(--gray-800); font-size: 1.02rem; line-height: 1.65; margin-bottom: 12px; white-space: pre-wrap; }
.pf-empty { color: var(--gray-600); font-size: 0.98rem; line-height: 1.6; }
.pf-empty .pv-inline-link { min-height: 44px; }
.pf-facts { display: grid; gap: 2px; list-style: none; }
.pf-facts li { align-items: center; display: flex; gap: 12px; min-height: 48px; padding: 4px 0; }
.pf-fact-ico {
  align-items: center;
  background: var(--gray-100);
  border-radius: 50%;
  color: var(--secondary);
  display: inline-flex;
  flex: none;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.pf-fact-text { display: flex; flex-direction: column; min-width: 0; }
.pf-fact-text small { color: var(--gray-600); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1.4; }
.pf-fact-value { color: var(--gray-900); font-size: 1rem; line-height: 1.45; }
/* A 44px tap area without making the row taller: the padding reaches into the space around the line */
.pf-fact-value a { color: var(--secondary); display: inline-block; margin: -10px 0; padding: 10px 0; text-decoration: underline; text-underline-offset: 2px; }
.pf-fact-value a:hover { color: var(--secondary-dark); }
.pf-pre { white-space: pre-wrap; }
.pf-quiet { color: var(--gray-600); display: flex; font-size: 0.9rem; gap: 8px; line-height: 1.5; margin-top: 12px; }
.pf-quiet .dash-svg { height: 16px; margin-top: 2px; width: 16px; }
.pf-farm .pv-note { margin-bottom: 10px; }

/* Photos */
.pf-photo-grid { border-radius: var(--radius-lg); display: grid; gap: 4px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; overflow: hidden; }
.pf-photo-grid.is-big { border-radius: var(--radius-md); gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.pf-photo-grid li { min-width: 0; }
.pf-photo-grid a { aspect-ratio: 1; background: var(--gray-100); display: block; overflow: hidden; position: relative; }
.pf-photo-grid img { display: block; height: 100%; object-fit: cover; transition: opacity var(--transition-fast); width: 100%; }
.pf-photo-grid a:hover img { opacity: 0.88; }
.pf-photo-grid a:focus-visible { outline: 3px solid var(--secondary); outline-offset: -3px; }

/* Posts */
.pf-posts-head { padding: 12px 20px; }
.pf-posts-head .pf-card-title { min-height: 44px; }
.pf-posts-empty { align-items: center; display: flex; flex-direction: column; gap: 8px; padding: 30px 20px; text-align: center; }
.pf-empty-ico { font-size: 2rem; line-height: 1; }
.pf .dash-more-wrap { display: flex; justify-content: center; margin-top: 0; }
.pf .dash-more-wrap:empty { display: none; }
.pf .pv-signin { padding: 28px 20px; }
.pf-signin-ico {
  align-items: center;
  background: var(--pv-tint);
  border-radius: 50%;
  color: var(--secondary);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 10px;
  width: 52px;
}
.pf-signin-ico .dash-svg { height: 22px; width: 22px; }
.pf .pv-share-card { margin: 0; }
/* Before sharing farm details with an organisation nobody has verified */
.pf-share-warn {
  background: var(--pv-err-bg);
  border: 1px solid var(--pv-err-line);
  border-radius: var(--radius-md);
  color: var(--primary-dark);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 10px;
  padding: 10px 14px;
}

/* Edit my page: the same header under a title, then the forms in two columns */
.pf-edit-top { padding: 22px 4px 16px; }
.pf-edit-title { color: var(--gray-900); font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; line-height: 1.2; }
.pf-edit-sub { color: var(--gray-600); font-size: 1rem; line-height: 1.55; margin-top: 4px; }
.pf-edit .pf-cover { border-radius: var(--radius-xl); }
.pf-edit .pf-name { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pf-edit .portal-page-banners:empty { display: none; }
.pf-edit-cols { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pf-edit-cols .pf-side, .pf-edit-cols .pf-main { gap: 20px; }
.pf-edit .portal-card h2 { align-items: center; display: flex; gap: 10px; }

/* ---- The page wrapper the dashboard, inbox, notifications and search pages use (the directory has its own layout since 2026-11-09) ---- */
.dir-main { padding: 32px 0 72px; }

.pv-field-label {
  color: var(--gray-600);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.pv-input {
  background: var(--cream);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-900);
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  min-height: 48px;
  padding: 11px 14px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  width: 100%;
}
.pv-input:focus { background: var(--white); border-color: var(--secondary); outline: none; }
select.pv-input { cursor: pointer; max-width: 100%; }

/* ---- Smaller screens ---- */
@media (max-width: 1100px) {
  .pf-head { grid-template-columns: auto minmax(0, 1fr); }
  .pf-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; padding-top: 14px; }
  .pf-actions .pv-share-msg { text-align: left; }
  .pf-actions .ib-connect-note summary { text-align: left; }
  /* The buttons now start at the left, so the ⋯ panel opens from the row's left edge, where it always fits */
  .pf-more { position: static; }
  .pf-more-panel { left: 0; right: auto; top: calc(100% + 4px); }
}
@media (max-width: 960px) {
  .pf-cols, .pf-edit-cols { grid-template-columns: minmax(0, 1fr); margin: 0 auto; max-width: 720px; }
}
@media (max-width: 760px) {
  .pv-btn { width: 100%; }
  .pv-card { padding: 22px 18px; }
  .pf { --pf-avatar: 128px; }
  .pf-head { display: block; padding: 0 2px 14px; }
  .pf-avatar-box { margin-left: 8px; }
  .pf-avatar { border-width: 4px; }
  .pf-id { padding-top: 10px; }
  .pf-cover { aspect-ratio: 2 / 1; border-radius: 0 0 var(--radius-lg) var(--radius-lg); min-height: 130px; }
  .pf-edit .pf-cover, .pv-banners + .pf-cover-box .pf-cover { border-radius: var(--radius-lg); }
  .pf-imgmenu.is-cover { bottom: 12px; right: 12px; }
  .pf-imgbtn { font-size: 0.9rem; padding: 6px 14px; }
  .pf-actions { padding-top: 14px; }
  .pf .pv-btn { flex: 1 1 auto; width: auto; }
  .pf-tab { flex: 1 1 0; font-size: 0.92rem; justify-content: center; min-width: 0; padding: 4px 6px; text-align: center; white-space: normal; }
  .pf-card { padding: 16px; }
  .pf-body { padding-top: 16px; }
  .pf-edit-top { padding: 16px 2px 12px; }
  .dir-main { padding: 24px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .pv-btn:hover{ transform: none; }
  .pv-btn, .pv-share-details summary::after { transition: none; }
  .pf-tab, .pf-pencil, .pf-imgbtn, .pf-more-btn, .pf-photo-grid img { transition: none; }
}
