/* Profiles hero — one editorial composition, one right-hand illustration.
   No second art row under the buttons; real profiles and type rail follow. */
.profiles-page--v6{background:linear-gradient(180deg,#eaf6fa 0%,#f7fbfd 46%,#fff 100%);padding:0 0 55px}
.profiles-page--v6 .profiles-portal{margin:0;min-width:0}
.profiles-story__visual{min-width:0;position:relative;z-index:1}
.profiles-story__visual-heading{display:flex;gap:8px;align-items:center;margin:0 0 12px;color:#142844;font-size:13px;font-weight:850}
.profiles-story__visual-heading span{color:#f00443;font-size:19px}
.profiles-story__mosaic{display:flex;gap:10px;min-width:0;overflow-x:auto;overflow-y:hidden;padding:5px 3px 10px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#bfd5df transparent}
.profiles-story__tile{position:relative;display:block;flex:0 0 168px;width:168px;height:126px;min-width:0;margin:0;overflow:hidden;border-radius:12px;background:#accbd6;scroll-snap-align:start}
.profiles-story__tile img{display:block;width:100%;height:100%;object-fit:cover}
.profiles-story__tile::after{content:"";position:absolute;inset:35% 0 0;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(5,19,35,.72))}
.profiles-story__tile-label{position:absolute;z-index:1;bottom:0;left:0;width:100%;padding:10px 28px 9px 9px;color:#fff;text-align:left;font-size:12px;font-weight:850;line-height:1.2;text-shadow:0 1px 5px #102b43;overflow-wrap:break-word}
.profiles-story__visual-note{display:block;margin-top:7px;text-align:left;font-size:11px;color:#577183}
/* Canonical profile browser: compact audience segments and filters in
   one aligned surface. Replaces old large tiles and duplicated type select. */
.profiles-page--v6 .profiles-portal__browser{
 display:grid;grid-template-columns:minmax(0,1.18fr) minmax(275px,.82fr);
 align-items:center;gap:12px;min-width:0;
 margin:16px 0 24px;padding:10px;
 border:1px solid #d3e3eb;border-radius:16px;background:#fff;
}
.profiles-page--v6 .profiles-portal .efyp-directory{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:5px;align-items:stretch;grid-auto-rows:auto;
 width:100%;min-width:0;margin:0;padding:4px;
 border-radius:12px;background:#edf3f7;
}
.profiles-page--v6 .profiles-portal .efyp-directory__choice{
 display:flex;align-items:center;justify-content:center;
 min-width:0;min-height:43px;margin:0;padding:9px 8px;
 border:1px solid transparent;border-radius:9px;
 background:transparent;color:#243c55;text-align:center;
 box-shadow:none;transform:none;text-decoration:none;
}
.profiles-page--v6 .profiles-portal .efyp-directory__choice strong{
 font-size:12px;line-height:1.25;font-weight:800;overflow-wrap:normal;
}
.profiles-page--v6 .profiles-portal .efyp-directory__choice:hover:not([aria-current="page"]){
 border-color:#c9e1e7;background:#fff;color:#142844;
}
.profiles-page--v6 .profiles-portal .efyp-directory__choice[aria-current="page"]{
 border-color:#142844;background:#142844;color:#fff;
 box-shadow:0 2px 7px #14284420;transform:none;
}
.profiles-page--v6 .profiles-portal .efyp-directory__choice:focus-visible{
 outline:3px solid #0a9995;outline-offset:2px;
}
.profiles-page--v6 .profiles-portal .profiles-portal__filters,
.profiles-page--v6 .profiles-portal .profiles-portal__filters.directory-browser__filters--no-search{
 display:grid;grid-template-columns:minmax(0,1fr) 94px;
 align-items:center;gap:9px;min-width:0;width:100%;
 margin:0;padding:0;border:0;border-radius:0;
 background:transparent;box-shadow:none;
}
.profiles-page--v6 .profiles-portal__filters .directory-browser__field{
 min-width:0;margin:0;
}
.profiles-page--v6 .profiles-portal__filters .directory-browser__field input,
.profiles-page--v6 .profiles-portal__filters .directory-browser__field select{
 display:block;box-sizing:border-box;width:100%;height:45px;min-height:45px;
 margin:0;border:1px solid #ccdde6;border-radius:10px;
 background:#fff;color:#142844;font-size:12px;
}
.profiles-page--v6 .profiles-portal__filters .directory-browser__submit{
 display:flex;align-items:center;justify-content:center;gap:7px;
 box-sizing:border-box;width:100%;height:45px;min-height:45px;
 margin:0;padding:7px 11px;border:1px solid #0b918d;
 border-radius:10px;background:#0b918d;color:#fff;
 font-size:12px;font-weight:850;
}
.profiles-page--v6 .profiles-portal__filters .directory-browser__submit:hover{
 background:#067b77;border-color:#067b77;color:#fff;
}
.profiles-page--v6 .profiles-portal__browser--searchable{
 grid-template-columns:minmax(0,1fr);gap:10px;
}
.profiles-page--v6 .profiles-portal__browser--searchable .profiles-portal__filters{
 grid-template-columns:minmax(0,1.5fr) minmax(155px,.75fr) 94px;
}
.profiles-page--v6 .profiles-results{scroll-margin-top:90px}
.profiles-page--v6 .profiles-result-head{margin:0 0 17px;padding:0 0 14px}
.profiles-page--v6 .profile-grid{gap:15px}
.profiles-page--v6 .profiles-portal__join{
 display:flex;align-items:center;justify-content:space-between;gap:24px;
 margin:32px 0 12px;padding:25px clamp(20px,3vw,34px);
 border:1px solid #c9e4e5;border-radius:20px;
 background:linear-gradient(115deg,#f1fcfb 0%,#e5f6f9 100%);
}
.profiles-portal__join-eyebrow{display:block;color:#07827f;font-size:11px;letter-spacing:.08em;font-weight:850}
.profiles-portal__join h2{margin:7px 0 6px;color:#142844;font-size:clamp(19px,2.2vw,28px);line-height:1.28}
.profiles-portal__join p{max-width:650px;margin:0;color:#4c6577;font-size:13px;line-height:1.6}
.profiles-portal__join>a{
 display:inline-flex;align-items:center;justify-content:center;gap:14px;
 flex:none;min-height:45px;padding:11px 17px;border-radius:12px;
 background:#f00443;color:#fff;font-size:12px;font-weight:850;text-decoration:none;
}
.profiles-portal__join>a:hover{background:#d9003b;color:#fff}
@media(max-width:980px){
 .profiles-page--v6 .profiles-portal__browser{
  grid-template-columns:minmax(0,1fr);gap:10px;
 }
 .profiles-page--v6 .profiles-portal .profiles-portal__filters{
  grid-template-columns:minmax(0,1fr) 96px;
 }
}
@media(max-width:760px){
 .profiles-page--v6{padding-bottom:35px}
 .profiles-page--v6 .profiles-portal__browser{
  margin:12px 0 18px;padding:8px;gap:9px;border-radius:14px;
 }
 .profiles-page--v6 .profiles-portal .efyp-directory{
  grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;
  margin:0;padding:3px;border-radius:10px;
 }
 .profiles-page--v6 .profiles-portal .efyp-directory__choice{
  min-height:42px;padding:7px 4px;border-radius:8px;
 }
 .profiles-page--v6 .profiles-portal .efyp-directory__choice strong{font-size:11px}
 .profiles-page--v6 .profiles-portal .profiles-portal__filters,
 .profiles-page--v6 .profiles-portal .profiles-portal__filters.directory-browser__filters--no-search{
  grid-template-columns:minmax(0,1fr) 84px;
  gap:7px;margin:0;padding:0;
 }
 .profiles-page--v6 .profiles-portal__browser--searchable .profiles-portal__filters{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 }
 .profiles-page--v6 .profiles-portal__browser--searchable .profiles-portal__filters .directory-browser__field:first-of-type{
  grid-column:1/-1;
 }
 .profiles-page--v6 .profiles-portal__browser--searchable .profiles-portal__filters .directory-browser__submit{
  grid-column:auto;
 }
 .profiles-page--v6 .profiles-portal__filters .directory-browser__field input,
 .profiles-page--v6 .profiles-portal__filters .directory-browser__field select,
 .profiles-page--v6 .profiles-portal__filters .directory-browser__submit{
  height:44px;min-height:44px;font-size:12px;
 }
 .profiles-page--v6 .profiles-result-head{margin:0 0 13px;padding-bottom:12px}
 .profiles-page--v6 .profile-grid{gap:10px}
 .profiles-page--v6 .profiles-portal__join{
  flex-direction:column;align-items:stretch;gap:13px;
  margin:26px 0 8px;padding:19px;border-radius:16px;
 }
 .profiles-page--v6 .profiles-portal__join>a{width:100%}
}
@media(max-width:390px){
 .profiles-page--v6 .profiles-portal .efyp-directory__choice strong{font-size:10px}
 .profiles-page--v6 .profiles-portal .profiles-portal__filters,
 .profiles-page--v6 .profiles-portal .profiles-portal__filters.directory-browser__filters--no-search{
  grid-template-columns:minmax(0,1fr) 78px;
 }
}

.profiles-story__tile{display:block;text-decoration:none;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.profiles-story__tile:hover{transform:translateY(-3px);box-shadow:0 9px 18px #051a3470}
.profiles-story__tile:focus-visible{outline:3px solid #33e4df;outline-offset:3px}
.profiles-story__tile-arrow{position:absolute;z-index:2;right:6px;bottom:7px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#fff;color:#142844;font-size:17px;font-weight:900;line-height:1}
.profiles-story__tile-label{padding-right:28px}
@media(prefers-reduced-motion:reduce){
}
:is(html[data-theme="dark"],body.theme-dark) .profiles-story__visual-heading{color:#142844}
:is(html[data-theme="dark"],body.theme-dark) .profiles-portal__join h2{color:#142844}

/* Mobile: image tells the profile/publication story on the RIGHT.
   Never stack a second visual row; copy stays readable in front. */
@media(max-width:760px){
}
@media(max-width:380px){
}
/* One results component across all 16 kinds; topic stays metadata. */
.profiles-page .profiles-result-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 20px}
.profiles-page .profiles-result-head__heading{flex:1 1 280px;min-width:0}
.profiles-page .profiles-results__context{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.profiles-page .profiles-results__context-label{color:#078b86;font-size:11px;letter-spacing:.085em;font-weight:850;line-height:1.6}
.profiles-page .profiles-results__context-topic{display:inline-flex;align-items:center;min-height:24px;padding:3px 10px;border:1px solid #cbe4e7;border-radius:999px;background:#f0fbfb;color:#142844;font-size:12px;line-height:1.2;font-weight:850}
.profiles-page .profiles-result-head__heading h2{margin:0;font-size:clamp(22px,2vw,27px);line-height:1.22;letter-spacing:-.025em}
.profiles-page .profiles-results__interest-note{margin:7px 0 0;max-width:790px;color:#536777;font-size:13px;line-height:1.55}
.profiles-page .profiles-result-head__actions{margin-left:auto}
.profiles-page .profile-directory-empty a{color:#087e7c;font-weight:800}
.profiles-page .profile-directory-empty__actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 22px;margin-top:16px}
.profiles-page .profile-directory-empty__actions a{display:inline-flex;padding:4px 0}
.profiles-page .profile-directory-empty__actions a:focus-visible{outline:3px solid #0a9995;outline-offset:3px}
@media(max-width:760px){
 .profiles-page .profiles-result-head{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 .profiles-page .profiles-result-head__heading{flex:none;width:100%}
 .profiles-page .profiles-result-head__actions{margin:0;width:100%;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
 .profiles-page .profiles-results__interest-note{font-size:13px}
 .profiles-page .profiles-results__context{gap:6px}
}

/* Compact single-row content worlds. Shared across desktop, mobile and PWA. */
.profiles-page--v6 .profiles-worlds{scroll-margin-top:90px;display:block;position:relative;z-index:1;width:100%;margin:15px 0 18px;padding:15px 16px 11px;border:1px solid #d5e6ec;border-radius:19px;background:#fff;box-shadow:0 10px 28px -25px #14284466}
.profiles-page--v6 .profiles-worlds__header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:8px}
.profiles-page--v6 .profiles-worlds .profiles-story__visual-heading{display:flex;align-items:center;gap:8px;margin:0;color:#142844;font-size:clamp(14px,1.4vw,17px);font-weight:850;line-height:1.35}
.profiles-page--v6 .profiles-worlds .profiles-story__visual-heading small{color:#6d8191;font-size:11px;font-weight:700;white-space:nowrap}
.profiles-page--v6 .profiles-worlds__controls{display:flex;align-items:center;gap:7px}
.profiles-page--v6 .profiles-worlds__controls[hidden]{display:none}
.profiles-page--v6 .profiles-worlds__controls button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #cfe0e8;border-radius:50%;background:#f6fafc;color:#142844;font-size:18px;font-weight:850;cursor:pointer}
.profiles-page--v6 .profiles-worlds__controls button:disabled{opacity:.32;cursor:default}
.profiles-page--v6 .profiles-worlds__controls button:not(:disabled):hover{background:#e6f7f6;border-color:#12a69d}
.profiles-page--v6 .profiles-worlds__controls button:focus-visible{outline:3px solid #0a9995;outline-offset:2px}
.profiles-page--v6 .profiles-worlds .profiles-story__mosaic{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:10px;max-height:146px;padding:4px 3px 10px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#c9dbe3 transparent}
.profiles-page--v6 .profiles-worlds .profiles-story__tile{display:block;flex:0 0 168px;width:168px;height:126px;min-width:0;aspect-ratio:auto;scroll-snap-align:start;border-radius:12px}
.profiles-page--v6 .profiles-worlds .profiles-story__tile:hover{transform:translateY(-2px);box-shadow:0 8px 18px #14284435}
.profiles-page--v6 .profiles-worlds .profiles-story__tile[aria-current="true"]{outline:3px solid #f00443;outline-offset:-3px}
.profiles-page--v6 .profiles-worlds .profiles-story__tile:focus-visible{outline:3px solid #0a9995;outline-offset:-3px}
.profiles-page--v6 .profiles-worlds .profiles-story__visual-note{color:#607887;text-align:left;font-size:11px;margin-top:5px}
@media(max-width:760px){
 .profiles-page--v6 .profiles-worlds{margin:12px 0 17px;padding:12px 12px 9px;border-radius:16px}
 .profiles-page--v6 .profiles-worlds__header{margin-bottom:5px}
 .profiles-page--v6 .profiles-worlds .profiles-story__mosaic{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;max-height:126px;padding:4px 2px 9px;scroll-snap-type:x proximity;touch-action:auto}
 .profiles-page--v6 .profiles-worlds .profiles-story__tile{flex:0 0 136px;width:136px;height:106px;aspect-ratio:auto}
 .profiles-page--v6 .profiles-worlds .profiles-story__tile-label{font-size:11px}
 .profiles-page--v6 .profiles-worlds__controls{display:none}
 .profiles-page--v6 .profiles-worlds .profiles-story__visual-note{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.profiles-page--v6 .profiles-worlds .profiles-story__mosaic{scroll-behavior:auto}}


