/* AOJ 1.8.2 member profiles: compact, consistent and theme-aware. */
.aoj-profile-route-content,
.aoj-profile-route-content > .content-area,
.aoj-profile-route-content .aoj-member-profile,
.aoj-member-profile.grid-container,
.aoj-member-profile--edit.grid-container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
  box-sizing: border-box;
}
.aoj-member-profile {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit;
  font: inherit;
}
.aoj-member-profile__card {
  width: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.aoj-member-profile__cover {
  width: 100%;
  min-height: clamp(160px,22vw,220px);
  border-radius: 14px 14px 0 0;
  background-color: var(--contrast,#24282d);
  background-image: linear-gradient(135deg,var(--contrast,#24282d),var(--accent,#2271b1));
  background-position: center;
  background-size: cover;
}
.aoj-member-profile__header {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  gap: 1rem;
  align-items: end;
  margin-top: -46px;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid color-mix(in srgb,currentColor 16%,transparent);
}
.aoj-member-profile__avatar {
  display: block;
  width: 128px;
  height: 128px;
  border: 4px solid var(--base-3,#fff);
  border-radius: 50%;
  background: var(--base-3,#fff);
  object-fit: cover;
}
.aoj-member-profile__identity { min-width: 0; padding-top: 3.1rem; }
.aoj-member-profile__eyebrow {
  margin: 0 0 .15rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .68;
}
.aoj-member-profile__title-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.aoj-member-profile__title-line h1 { margin: 0; font-size: clamp(1.55rem,3vw,2.1rem); line-height: 1.1; }
.aoj-member-profile__name { margin: .2rem 0 0; font-size: .9rem; opacity: .7; }
.aoj-member-profile__meta-line { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.aoj-member-profile__meta-line span {
  padding: .22rem .55rem;
  border-radius: 999px;
  background: color-mix(in srgb,currentColor 8%,transparent);
  font-size: .76rem;
  line-height: 1.25;
}
.aoj-member-profile__social-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; margin: 0; }
.aoj-member-profile__social-actions .button { white-space: nowrap; }
.aoj-button-primary { background: var(--accent,#2271b1) !important; border-color: var(--accent,#2271b1) !important; color: #fff !important; }
.aoj-member-profile__layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(250px,.8fr); gap: clamp(1.25rem,3vw,2.4rem); align-items: start; }
.aoj-member-profile__main { min-width: 0; }
.aoj-member-profile__tabs {
  display: flex;
  gap: .15rem;
  overflow-x: auto;
  padding-top: .65rem;
  border-bottom: 1px solid color-mix(in srgb,currentColor 16%,transparent);
  scrollbar-width: thin;
}
.aoj-member-profile__tabs button {
  flex: 0 0 auto;
  padding: .7rem .85rem .6rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.aoj-member-profile__tabs button[aria-selected="true"] { border-bottom-color: var(--accent,#2271b1); color: var(--accent,#2271b1); }
.aoj-member-profile__panel { min-width: 0; padding: 1.1rem 0 1.5rem; }
.aoj-member-profile__panel h2,
.aoj-member-profile__sidebar h2 { margin: 0 0 .85rem; font-size: 1.15rem; }
.aoj-member-profile__biography { margin: 0; line-height: 1.7; white-space: normal; }
.aoj-member-profile__sidebar {
  min-width: 0;
  margin-top: 1rem;
  padding-left: 1.25rem;
  border-left: 1px solid color-mix(in srgb,currentColor 16%,transparent);
}
.aoj-member-profile__facts { margin: 0; }
.aoj-member-profile__facts > div {
  display: grid;
  grid-template-columns: minmax(74px,.65fr) minmax(0,1.35fr);
  gap: .75rem;
  padding: .58rem 0;
  border-bottom: 1px solid color-mix(in srgb,currentColor 11%,transparent);
}
.aoj-member-profile__facts dt { font-size: .78rem; font-weight: 700; opacity: .66; }
.aoj-member-profile__facts dd { margin: 0; overflow-wrap: anywhere; }
.aoj-member-profile__facts dd small { display: block; margin-top: .1rem; opacity: .65; }
.aoj-member-profile__social-links { padding-top: .85rem; border-top: 1px solid color-mix(in srgb,currentColor 13%,transparent); }
.aoj-member-profile__social-links h3 { margin: 0 0 .6rem; font-size: .86rem; }
.aoj-member-profile__social-links > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.aoj-social-link {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid color-mix(in srgb,currentColor 18%,transparent);
  border-radius: 50%;
  color: inherit;
  background: transparent;
  transition: transform .15s ease,background-color .15s ease,color .15s ease;
}
.aoj-social-link:hover,
.aoj-social-link:focus { color: #fff; background: var(--accent,#2271b1); transform: translateY(-1px); }
.aoj-social-link svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.aoj-social-link--facebook:hover,.aoj-social-link--facebook:focus { background: #1877f2; }
.aoj-social-link--x:hover,.aoj-social-link--x:focus { background: #111; }
.aoj-social-link--instagram:hover,.aoj-social-link--instagram:focus { background: #c13584; }
.aoj-social-link--line:hover,.aoj-social-link--line:focus { background: #06c755; }
.aoj-social-link--youtube:hover,.aoj-social-link--youtube:focus { background: #f00; }
.aoj-social-link--tiktok:hover,.aoj-social-link--tiktok:focus { background: #111; }
.aoj-profile-activity-list { display: grid; }
.aoj-profile-activity-item { padding: .85rem 0; border-bottom: 1px solid color-mix(in srgb,currentColor 13%,transparent); }
.aoj-profile-activity-item:first-child { padding-top: 0; }
.aoj-profile-activity-item p { margin: .28rem 0 0; line-height: 1.5; opacity: .82; }
.aoj-empty-state { padding: 1.4rem; border: 1px dashed color-mix(in srgb,currentColor 24%,transparent); border-radius: 10px; text-align: center; opacity: .76; }
.aoj-empty-state p { margin: .35rem 0 0; }
.aoj-member-profile__events { margin: 0; padding: 0; list-style: none; }
.aoj-member-profile__events li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid color-mix(in srgb,currentColor 13%,transparent); }
.aoj-member-profile__events time { white-space: nowrap; font-size: .82rem; opacity: .65; }
.aoj-member-profile__event-archive { margin-top: .75rem; }
.aoj-member-profile__event-archive summary { color: var(--accent,#2271b1); font-weight: 600; cursor: pointer; }
.aoj-member-profile__badges { display: grid; grid-template-columns: repeat(auto-fill,minmax(155px,1fr)); gap: .6rem; }
.aoj-member-profile__badge { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .65rem; border-bottom: 1px solid color-mix(in srgb,currentColor 13%,transparent); }
.aoj-member-profile__badge img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.aoj-member-profile__members-only-notice,
.aoj-member-profile__system-note { padding: .75rem; border-left: 3px solid var(--accent,#2271b1); background: color-mix(in srgb,var(--accent,#2271b1) 7%,transparent); font-size: .86rem; }
.aoj-member-profile__unavailable { padding: 1rem; border-left: 4px solid #d63638; background: #fcf0f1; }
.aoj-member-profile__card--embedded > .aoj-member-profile__header { margin-top: 0; padding: .75rem 0 1rem; }
.aoj-member-profile__card--embedded > .aoj-member-profile__header .aoj-member-profile__identity { padding-top: 0; }
.aoj-member-profile__card--embedded .aoj-member-profile__section { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid color-mix(in srgb,currentColor 14%,transparent); }
.aoj-member-profile__card--embedded .aoj-member-profile__section h3 { margin: 0 0 .55rem; font-size: 1.05rem; }
.aoj-member-profile__card--embedded .aoj-member-profile__details { display: grid; gap: .4rem; margin: 0; }
.aoj-member-profile__card--embedded .aoj-member-profile__details > div { display: grid; grid-template-columns: minmax(90px,.7fr) minmax(0,1.3fr); gap: .65rem; }
.aoj-member-profile__card--embedded .aoj-member-profile__details dd { margin: 0; }

/* Profile editor */
.aoj-member-profile__edit-header { margin-bottom: 1rem; }
.aoj-member-profile__edit-header h1 { margin: 0; }
.aoj-member-profile__form { display: grid; gap: 1rem; }
.aoj-member-profile__form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem 1rem; }
.aoj-member-profile__form label { display: grid; gap: .35rem; min-width: 0; font-weight: 600; }
.aoj-member-profile__form input[type="text"],
.aoj-member-profile__form input[type="url"],
.aoj-member-profile__form input:not([type]),
.aoj-member-profile__form select,
.aoj-member-profile__form textarea { width: 100%; max-width: 100%; box-sizing: border-box; font: inherit; }
.aoj-member-profile__form fieldset { display: grid; gap: .65rem; padding: 1rem; border: 1px solid color-mix(in srgb,currentColor 20%,transparent); border-radius: 8px; }
.aoj-member-profile__privacy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem 1rem; }
.aoj-member-profile__social-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem 1rem; }
.aoj-member-profile__social-field-label { display: flex; align-items: center; gap: .4rem; }
.aoj-member-profile__social-field-label svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.aoj-member-profile__social-editor > p { margin: 0; opacity: .72; }
.aoj-member-profile__checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; font-weight: 400 !important; }
.aoj-member-profile__image-editor,
.aoj-member-profile__cover-editor { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 1rem; align-items: center; padding: 1rem; border: 1px solid color-mix(in srgb,currentColor 18%,transparent); border-radius: 10px; }
.aoj-member-profile__cover-editor { grid-template-columns: minmax(220px,1.3fr) minmax(220px,1fr); }
.aoj-member-profile__image-preview img { display: block; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.aoj-member-profile__cover-preview { min-height: 150px; border-radius: 8px; background: linear-gradient(135deg,#24282d,#2271b1) center/cover; }
.aoj-member-profile__image-controls h2,
.aoj-member-profile__cover-controls h2 { margin: 0 0 .35rem; }
.aoj-member-profile__image-controls p,
.aoj-member-profile__cover-controls p { margin: 0 0 .65rem; opacity: .72; }
.aoj-member-profile__image-actions,
.aoj-member-profile__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.aoj-member-profile__image-actions .button-link-delete { color: #b32d2e; }

/* Directories and compact profile widgets */
.aoj-member-directory { width: 100%; max-width: none; margin-inline: auto; box-sizing: border-box; }
.aoj-member-directory__header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.aoj-member-directory__header form label { display: block; font-weight: 700; }
.aoj-member-directory__header form div { display: flex; gap: .45rem; }
.aoj-member-directory__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: .75rem; }
.aoj-member-directory__card { padding: .85rem; border: 1px solid color-mix(in srgb,currentColor 16%,transparent); border-radius: 10px; text-align: center; }
.aoj-member-directory__card img,
.aoj-profile-widget img { border-radius: 50%; object-fit: cover; }
.aoj-member-directory__card h2 { margin: .55rem 0 .2rem; font-size: 1rem; }
.aoj-member-directory__pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.aoj-profile-widget { display: flex; align-items: center; gap: .7rem; }
.aoj-profile-widget p { margin: .15rem 0 0; }
.aoj-profile-widget__rank,
.aoj-member-sidebar__rank,
.aoj-my-page__rank { display: block; margin: .15rem 0; font-size: .78rem; font-weight: 700; opacity: .68; }

/* Context sidebar */
.aoj-member-sidebar { overflow: hidden; border: 1px solid color-mix(in srgb,currentColor 16%,transparent); border-radius: 12px; background: var(--base-3,#fff); }
.aoj-member-sidebar__cover { height: 66px; background: linear-gradient(135deg,var(--contrast,#1d2327),var(--accent,#2271b1)); }
.aoj-member-sidebar__identity { padding: 0 .9rem .9rem; text-align: center; }
.aoj-member-sidebar__avatar { display: block; width: 84px; height: 84px; margin: -42px auto .45rem; border: 3px solid var(--base-3,#fff); border-radius: 50%; object-fit: cover; }
.aoj-member-sidebar__identity h3 { margin: 0; font-size: 1.08rem; }
.aoj-member-sidebar__real-name,
.aoj-member-sidebar__style { margin: .15rem 0; font-size: .82rem; opacity: .68; }
.aoj-member-sidebar__team { display: grid; gap: .1rem; padding: .7rem .9rem; border-top: 1px solid color-mix(in srgb,currentColor 12%,transparent); }
.aoj-member-sidebar__team span,
.aoj-member-sidebar__team small { font-size: .75rem; opacity: .65; }
.aoj-member-sidebar__links { display: grid; }
.aoj-member-sidebar__links a { padding: .65rem .9rem; border-top: 1px solid color-mix(in srgb,currentColor 12%,transparent); text-decoration: none; }

/* My Page and team hub */
.aoj-my-page { width: 100%; max-width: none; margin: 0; padding: 0; }
.aoj-my-page__title { grid-column: 1/-1; }
.aoj-my-page__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; align-items: start; grid-auto-rows: max-content; }
.aoj-my-page--columns-1 .aoj-my-page__grid { grid-template-columns: 1fr; }
.aoj-my-page--columns-3 .aoj-my-page__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.aoj-my-page__panel { min-width: 0; align-self: start; padding: 1rem; border: 1px solid color-mix(in srgb,currentColor 16%,transparent); border-radius: 10px; background: var(--base-3,#fff); }
.aoj-my-page__panel h2 { margin-top: 0; }
.aoj-my-page__profile { display: flex; align-items: center; gap: .8rem; }
.aoj-my-page__profile img { border-radius: 50%; }
.aoj-my-page__links { display: grid; align-content: start; gap: .3rem; }
.aoj-my-page__links a { padding: .5rem 0; border-bottom: 1px solid color-mix(in srgb,currentColor 12%,transparent); }
.aoj-my-page__list { margin: 0; padding-left: 1.2rem; }
.aoj-my-page__list li { margin-bottom: .45rem; overflow-wrap: anywhere; }
.aoj-my-page__full-width,
.aoj-my-team-hub { grid-column: 1/-1; min-width: 0; width: 100%; }
.aoj-upcoming-events > ul { margin: 0; padding: 0; list-style: none; }
.aoj-upcoming-events > ul > li { display: grid !important; grid-template-columns: minmax(220px,.9fr) minmax(0,1.2fr); gap: 1rem !important; padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb,currentColor 13%,transparent); }
.aoj-upcoming-events__tickets { margin: 0 !important; }
.aoj-my-team-hub { display: grid; gap: 1rem; }
.aoj-my-team-hub__header,
.aoj-my-team-hub__section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.aoj-my-team-hub__header { padding-bottom: .8rem; border-bottom: 1px solid color-mix(in srgb,currentColor 14%,transparent); border-top: 3px solid var(--aoj-team-accent,currentColor); }
.aoj-my-team-hub__header h2,
.aoj-my-team-hub__section-heading h3 { margin: .1rem 0; }
.aoj-my-team-hub__eyebrow { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.aoj-my-team-hub__summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: .6rem; }
.aoj-my-team-hub__summary > div { padding: .7rem; border-left: 3px solid var(--aoj-team-accent,currentColor); background: color-mix(in srgb,currentColor 5%,transparent); }
.aoj-my-team-hub__summary strong,
.aoj-my-team-hub__summary span { display: block; }
.aoj-my-team-hub__summary span { font-size: .78rem; opacity: .68; }
.aoj-my-team-hub__announcement { padding: .9rem; border-left: 4px solid var(--aoj-team-accent,currentColor); background: color-mix(in srgb,currentColor 4%,transparent); }
.aoj-my-team-hub__announcement-editor form { display: grid; gap: .6rem; margin-top: .6rem; }
.aoj-my-team-hub__announcement-editor textarea { width: 100%; box-sizing: border-box; }
.aoj-my-team-hub__member-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: .4rem .8rem; }
.aoj-my-team-hub__member { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .55rem 0; border-bottom: 1px solid color-mix(in srgb,currentColor 12%,transparent); }
.aoj-my-team-hub__member img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.aoj-my-team-hub__member div { display: flex; flex-direction: column; min-width: 0; }
.aoj-my-team-hub__member span { font-size: .76rem; opacity: .65; }
.aoj-my-team-hub__membership { display: grid; grid-template-columns: minmax(200px,.7fr) minmax(0,1.3fr); gap: 1rem; }
.aoj-my-team-hub__board .aoj-team-board-v2,
.aoj-my-team-hub__membership .aoj-team-selector { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.aoj-my-team-hub__board .aoj-team-board-v2 > h2 { display: none; }

/* Toast feedback */
.aoj-toast-region { position: fixed; z-index: 100000; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; pointer-events: none; }
.aoj-toast { max-width: min(360px,calc(100vw - 2rem)); padding: .75rem 1rem; border-radius: 8px; background: #1d2327; color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.aoj-toast.is-error { background: #b32d2e; }

.aoj-site-content { display: flex; align-items: flex-start; gap: 30px; padding-top: 24px; padding-bottom: 24px; }
.aoj-site-content .aoj-content-area { flex: 1 1 auto; min-width: 0; }

@media (max-width: 900px) {
  .aoj-member-profile__layout { grid-template-columns: minmax(0,1fr); }
  .aoj-member-profile__sidebar { margin-top: 0; padding: 0 0 1rem; border-left: 0; }
  .aoj-my-page__grid,
  .aoj-my-page--columns-3 .aoj-my-page__grid,
  .aoj-upcoming-events > ul > li { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .aoj-member-profile__cover { min-height: 150px; }
  .aoj-member-profile__header { grid-template-columns: 96px minmax(0,1fr); margin-top: -36px; padding-inline: .5rem; }
  .aoj-member-profile__avatar { width: 96px; height: 96px; }
  .aoj-member-profile__identity { padding-top: 2.4rem; }
  .aoj-member-profile__title-line { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .aoj-member-profile__social-actions { justify-content: flex-start; }
  .aoj-member-profile__form-grid,
  .aoj-member-profile__social-grid,
  .aoj-member-profile__privacy-grid,
  .aoj-member-profile__image-editor,
  .aoj-member-profile__cover-editor,
  .aoj-my-team-hub__membership { grid-template-columns: minmax(0,1fr); }
  .aoj-member-profile__events li { grid-template-columns: minmax(0,1fr); gap: .15rem; }
  .aoj-member-directory__header,
  .aoj-my-team-hub__header,
  .aoj-my-team-hub__section-heading { align-items: stretch; flex-direction: column; }
  .aoj-member-directory__header form div { flex-direction: column; }
  .aoj-site-content { display: block; padding-top: 16px; padding-bottom: 16px; }
}
@media (max-width: 430px) {
  .aoj-member-profile__header { grid-template-columns: 78px minmax(0,1fr); }
  .aoj-member-profile__avatar { width: 78px; height: 78px; }
  .aoj-member-profile__identity { padding-top: 2rem; }
  .aoj-member-profile__meta-line span { font-size: .68rem; }
  .aoj-member-profile__tabs button { padding-inline: .65rem; font-size: .85rem; }
}
