/*
 * Scotty 2026 JomSocial integration.
 * Loaded only for com_community so these application styles do not leak into
 * the homepage or unrelated Joomla components.
 */

body.com_community {
  --community-canvas: #050505;
  --community-surface: #141414;
  --community-surface-raised: #1b1b1b;
  --community-surface-muted: #232323;
  --community-control: #202020;
  --community-border: #3b3b3b;
  --community-border-strong: #585858;
  --community-text: #f2f2f2;
  --community-text-muted: #ababab;
  --community-text-subtle: #858585;
  --community-link: #f3a064;
  --community-ink: #1a1a1a;
  --community-muted: #686868;
  --community-paper: #f7f5f2;
  --community-paper-raised: #fff;
  --community-line: #d8d3ce;
  --community-dark: #111;
  --community-dark-raised: #1b1b1b;
  --community-dark-line: #3b3b3b;
  --community-orange-soft: #fff0e5;
}

body.com_community .jomsocial-wrapper {
  color: var(--community-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
}

body.com_community .jomsocial-wrapper .jomsocial {
  padding: 0 !important;
  color: var(--community-text);
  background: transparent !important;
}

body.com_community .jomsocial :where(h1, h2, h3, h4, h5, h6) {
  color: var(--community-text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

body.com_community .joms-page__title {
  margin: 0 0 var(--space-5);
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-transform: uppercase;
}

body.com_community .jomsocial a {
  color: var(--community-link);
  text-underline-offset: 0.16em;
}

body.com_community .jomsocial a:hover,
body.com_community .jomsocial a:focus-visible,
body.com_community .jomsocial a.liked,
body.com_community .jomsocial button.liked {
  color: #ffc196;
}

body.com_community .jomsocial :where(a, button, input, select, textarea, [tabindex]):focus-visible,
body.com_community .joms-popup :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Buttons and application controls */
body.com_community .jomsocial :is(
  .joms-button--primary,
  .joms-button--login,
  .joms-button--signup,
  .joms-button__next,
  .joms-button__approve,
  .joms-button--add
) {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  color: #151515 !important;
  background: var(--brand-orange) !important;
  border: 1px solid var(--brand-orange) !important;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
}

body.com_community .jomsocial :is(
  .joms-button--primary,
  .joms-button--login,
  .joms-button--signup,
  .joms-button__next,
  .joms-button__approve,
  .joms-button--add
):hover,
body.com_community .jomsocial :is(
  .joms-button--primary,
  .joms-button--login,
  .joms-button--signup,
  .joms-button__next,
  .joms-button__approve,
  .joms-button--add
):focus-visible {
  color: #111 !important;
  background: var(--brand-orange-hover) !important;
  border-color: var(--brand-orange-hover) !important;
}

body.com_community .jomsocial :is(
  .joms-button--neutral,
  .joms-button--secondary,
  .joms-button--privacy,
  .joms-button--more,
  .joms-button--comment,
  .joms-focus__button--message,
  .joms-focus__button--options
) {
  min-height: 2.5rem;
  color: var(--community-text) !important;
  background: var(--community-control) !important;
  border: 1px solid var(--community-border-strong) !important;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 650;
}

body.com_community .jomsocial :is(
  .joms-button--neutral,
  .joms-button--secondary,
  .joms-button--privacy,
  .joms-button--more,
  .joms-button--comment,
  .joms-focus__button--message,
  .joms-focus__button--options
):hover,
body.com_community .jomsocial :is(
  .joms-button--neutral,
  .joms-button--secondary,
  .joms-button--privacy,
  .joms-button--more,
  .joms-button--comment,
  .joms-focus__button--message,
  .joms-focus__button--options
):focus-visible {
  color: #111 !important;
  background: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
}

/* Toolbar and subnavigation */
body.com_community .jomsocial :is(.joms-toolbar, .joms-toolbar--desktop, .joms-toolbar--mobile, .joms-module--toolbar) {
  color: var(--text);
  background: var(--community-dark);
  border: 1px solid var(--community-dark-line);
  border-radius: var(--radius-md);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
}

body.com_community .jomsocial :is(.joms-toolbar, .joms-toolbar--desktop, .joms-toolbar--mobile, .joms-module--toolbar) a,
body.com_community .jomsocial :is(.joms-toolbar, .joms-toolbar--desktop, .joms-toolbar--mobile, .joms-module--toolbar) button {
  color: #f4f4f4;
}

body.com_community .jomsocial :is(.joms-toolbar, .joms-toolbar--desktop, .joms-toolbar--mobile, .joms-module--toolbar) a:hover,
body.com_community .jomsocial :is(.joms-toolbar, .joms-toolbar--desktop, .joms-toolbar--mobile, .joms-module--toolbar) a:focus-visible,
body.com_community .jomsocial :is(.joms-toolbar, .joms-toolbar--desktop, .joms-toolbar--mobile, .joms-module--toolbar) .active > a {
  color: #111;
  background: var(--brand-orange);
}

body.com_community .jomsocial :is(.joms-toolbar, .joms-toolbar--desktop, .joms-toolbar--mobile, .joms-module--toolbar) .joms-icon {
  fill: currentColor;
}

body.com_community .jomsocial :is(.joms-toolbar--desktop, .joms-toolbar--mobile) > ul > li:hover,
body.com_community .jomsocial :is(.joms-toolbar--desktop, .joms-toolbar--mobile) > ul > li.active {
  background: var(--brand-orange);
}

body.com_community .jomsocial :is(.joms-menu, .joms-menu--user) {
  color: var(--community-text);
  background: var(--community-surface-raised);
  border-color: var(--community-border);
}

body.com_community .jomsocial :is(.joms-dropdown, .joms-popover) {
  color: var(--community-text);
  background: var(--community-surface-raised);
  border-color: var(--community-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.24);
}

body.com_community .jomsocial :is(.joms-dropdown, .joms-popover) a:hover,
body.com_community .jomsocial :is(.joms-dropdown, .joms-popover) a:focus-visible {
  color: #111;
  background: var(--brand-orange);
}

/* Toolbar pulldowns stay visually attached to the dark application bar. */
body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown {
  color: #f4f4f4;
  background: #171717;
  border-color: #444;
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.42);
}

body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown > li {
  color: #f4f4f4;
  background: transparent;
}

body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown > li > a {
  color: #f4f4f4;
  background: transparent;
}

body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown > li:is(:hover, :focus-within, .active),
body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown > li:has(> a.active) {
  color: #111;
  background: var(--brand-orange);
}

body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown > li:is(:hover, :focus-within, .active) > a,
body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown > li > a.active {
  color: #111;
  background: transparent;
}

body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown > li.separator {
  border-color: #444;
}

body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown.joms-arrow--top-left::after {
  border-bottom-color: #171717;
}

body.com_community .jomsocial :is(
  .joms-toolbar,
  .joms-toolbar--desktop,
  .joms-toolbar--mobile,
  .joms-module--toolbar
) .joms-dropdown.joms-arrow--top-left::before {
  border-bottom-color: #444;
}

body.com_community .joms-subnav {
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--community-border);
}

body.com_community .joms-subnav a,
body.com_community .joms-tab__bar a {
  color: var(--community-text-muted);
  font-weight: 650;
}

body.com_community .joms-subnav a:hover,
body.com_community .joms-subnav a:focus-visible,
body.com_community .joms-subnav a.active,
body.com_community .joms-tab__bar a:hover,
body.com_community .joms-tab__bar a:focus-visible,
body.com_community .joms-tab__bar a.active {
  color: var(--community-text);
  border-color: var(--brand-orange);
}

/* Authenticated application surfaces */
body.com_community .jomsocial :is(
  .joms-page,
  .joms-stream,
  .joms-postbox,
  .joms-tab__content,
  .joms-list--card,
  .joms-list__item
) {
  color: var(--community-text);
}

body.com_community .joms-page {
  background: transparent;
}

body.com_community :is(.joms-js--form-preferences, .view-search) .joms-page,
body.com_community.view-search .joms-page {
  padding: clamp(1rem, 3vw, 1.75rem);
  color: var(--community-text);
  background: var(--community-surface);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-md);
}

body.com_community .joms-js--form-preferences .joms-page__title,
body.com_community.view-search .joms-page__title {
  color: var(--community-text);
}

body.com_community .joms-stream,
body.com_community .joms-postbox,
body.com_community .joms-tab__content {
  color: var(--community-text);
  background: var(--community-surface);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-md);
  box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.24);
}

body.com_community .joms-stream {
  margin-bottom: var(--space-4);
  overflow: clip;
}

body.com_community .joms-stream__header,
body.com_community .joms-stream__body,
body.com_community .joms-stream__actions,
body.com_community .joms-comment {
  border-color: var(--community-border);
}

body.com_community .joms-stream__user,
body.com_community .joms-comment__user {
  color: var(--community-text);
  font-weight: 700;
}

body.com_community :is(.joms-stream__time, .joms-stream__meta, .joms-comment__time, .joms-gallery__meta, .joms-help) {
  color: var(--community-text-muted);
}

body.com_community .joms-stream__actions a,
body.com_community .joms-stream__actions button,
body.com_community .joms-comment__actions a {
  color: var(--community-link);
  font-weight: 650;
}

body.com_community .joms-stream__status,
body.com_community .joms-comment {
  color: var(--community-text);
  background: var(--community-surface-muted);
}

body.com_community .joms-stream__header,
body.com_community .joms-stream__body,
body.com_community .joms-stream__actions {
  color: var(--community-text);
  background: transparent;
}

body.com_community .joms-stream__body :is(p, span, div):not([class*="joms-text--"]),
body.com_community .joms-comment__body {
  border-color: var(--community-border);
}

body.com_community .joms-comment__item,
body.com_community .joms-comment__reply {
  color: var(--community-text);
  background: var(--community-surface-muted);
  border-color: var(--community-border);
}

body.com_community .joms-comment__reply {
  padding: var(--space-3);
}

body.com_community .joms-textarea__wrapper,
body.com_community .joms-textarea__beautifier {
  color: var(--community-text);
  background: var(--community-control);
  border-color: var(--community-border-strong);
}

body.com_community .jomsocial :is(.joms-textarea__limit, .joms-location__description) {
  color: var(--community-text-muted);
  background: var(--community-surface-muted);
  border-color: var(--community-border);
}

body.com_community .joms-postbox {
  margin-bottom: var(--space-5);
}

body.com_community .joms-postbox-content {
  color: var(--community-text);
  background: var(--community-surface-raised);
  border-color: var(--community-border);
}

body.com_community .joms-postbox-tab,
body.com_community .joms-postbox-inner-panel {
  color: var(--community-text-muted);
  background: var(--community-surface-muted);
  border-color: var(--community-border);
}

body.com_community .joms-postbox-tab li.active,
body.com_community .joms-postbox-tab li:hover {
  color: #111;
  background: var(--brand-orange);
}

body.com_community .joms-postbox :is(.j-textarea, textarea),
body.com_community .joms-postbox :is(.j-textarea, textarea):focus {
  color: var(--community-text);
  background: var(--community-surface-raised);
  border-color: transparent;
  box-shadow: none;
}

body.com_community .joms-postbox :is(.joms-postbox-input, .joms-postbox-dropdown, .joms-postbox-photo-upload, .joms-postbox-video-upload) {
  color: var(--community-text);
  background: var(--community-surface-raised);
  border-color: var(--community-border);
}

body.com_community .joms-activity-filter {
  color: var(--community-text-muted);
  background: var(--community-surface-raised);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-sm);
}

body.com_community .joms-activity-filter :is(a, span, svg) {
  color: inherit;
  fill: currentColor;
}

/* Forms and utilities */
body.com_community .jomsocial :is(.joms-input, .joms-textarea, .joms-select--wrapper, input[type="text"], input[type="password"], input[type="email"], select, textarea) {
  min-height: 2.75rem;
  color: var(--community-text);
  background: var(--community-control);
  border: 1px solid var(--community-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  box-shadow: none;
}

body.com_community .jomsocial :is(.joms-input, .joms-textarea, .joms-select--wrapper, input, select, textarea):focus {
  color: var(--community-text);
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(246, 130, 44, 0.22);
}

body.com_community .jomsocial :is(input, textarea)::placeholder {
  color: var(--community-text-subtle);
  opacity: 1;
}

body.com_community .jomsocial :is(select, .joms-select) option {
  color: var(--community-text);
  background: var(--community-control);
}

body.com_community .jomsocial :is(input[type="checkbox"], input[type="radio"]) {
  width: 1.1rem;
  min-height: 1.1rem;
  height: 1.1rem;
  margin: 0 0.35rem 0 0;
  accent-color: var(--brand-orange);
}

body.com_community .jomsocial :is(button, input, select, textarea):disabled,
body.com_community .jomsocial [aria-disabled="true"] {
  color: var(--community-text-subtle) !important;
  background: var(--community-surface-muted) !important;
  border-color: var(--community-border) !important;
  cursor: not-allowed;
  opacity: 0.72;
}

body.com_community .joms-form__group {
  margin-bottom: var(--space-4);
  color: var(--community-text-muted);
}

body.com_community .joms-form__group > span:first-child,
body.com_community .joms-form__legend,
body.com_community .joms-form label {
  color: var(--community-text);
  font-weight: 650;
}

body.com_community .joms-form__group .joms-required {
  color: #ff7a70;
}

body.com_community .joms-tab__bar {
  margin-bottom: 0;
  color: var(--community-text-muted);
  background: var(--community-surface-raised);
  border-color: var(--community-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

body.com_community .joms-tab__bar > a,
body.com_community .joms-tab__bar > li > a {
  color: var(--community-text-muted);
  background: transparent;
  border-color: var(--community-border);
}

body.com_community .joms-tab__bar > a:is(:hover, :focus-visible, .active),
body.com_community .joms-tab__bar > li.active > a,
body.com_community .joms-tab__bar > li > a:is(:hover, :focus-visible, .active) {
  color: var(--community-text);
  background: var(--community-surface-muted);
  border-bottom-color: var(--brand-orange);
}

body.com_community .joms-tab__content {
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

body.com_community .joms-alert {
  border-radius: var(--radius-sm);
}

body.com_community .joms-alert--info {
  color: #d8efff;
  background: #152934;
  border-color: #477f9d;
}

body.com_community .joms-alert--success {
  color: #d8f4e0;
  background: #173023;
  border-color: #477e58;
}

body.com_community .joms-alert--warning {
  color: #ffe9a8;
  background: #352b11;
  border-color: #8c7328;
}

body.com_community .joms-alert--danger {
  color: #ffd5d1;
  background: #351b1a;
  border-color: #914b46;
}

/* Profiles */
body.com_community .joms-focus {
  overflow: hidden;
  background: var(--community-dark);
  border: 1px solid var(--community-dark-line);
  border-radius: var(--radius-md);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.25);
}

body.com_community .joms-focus__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 58%);
}

body.com_community .joms-focus :is(.joms-focus__title h2, .joms-focus__info, .joms-focus__info a, .joms-focus__link, .joms-focus__date) {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

body.com_community .joms-focus .joms-avatar img {
  background: var(--community-surface-muted);
  border: 4px solid #d6d6d6;
  box-shadow: 0 0 0 2px var(--brand-orange), 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
}

body.com_community .joms-focus__actions {
  border-color: var(--community-dark-line);
}

/* Friends, photos, videos, lists, empty states, and pagination */
body.com_community .joms-list__utilities form {
  display: flex !important;
  align-items: stretch;
  gap: var(--space-2);
}

body.com_community .joms-list__utilities form > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
}

body.com_community .joms-list__utilities form > span:last-of-type {
  flex: 0 0 auto;
  width: auto !important;
}

body.com_community .joms-list__utilities .joms-input--search {
  width: 100% !important;
  margin: 0;
}

body.com_community .joms-list__utilities form .joms-button--neutral {
  min-width: 3.25rem;
  height: 100%;
  white-space: nowrap;
}

body.com_community .joms-subnav--desktop,
body.com_community .joms-subnav__menu {
  color: var(--community-text-muted);
  background: var(--community-surface-raised);
  border-color: var(--community-border);
}

body.com_community .joms-subnav--desktop > ul > li,
body.com_community .joms-subnav--desktop > ul > li > a {
  color: var(--community-text-muted);
  background: transparent;
  border-color: var(--community-border);
}

body.com_community .joms-subnav--desktop > ul > li:is(:hover, .active) > a,
body.com_community .joms-subnav--desktop > ul > li > a:is(:hover, :focus-visible, .active) {
  color: #111;
  background: var(--brand-orange);
}

body.com_community .joms-sortings,
body.com_community .joms-list--friend,
body.com_community .joms-list--friends,
body.com_community .joms-blankslate {
  color: var(--community-text-muted);
  background: var(--community-surface);
  border-color: var(--community-border);
}

body.com_community .joms-blankslate {
  padding: var(--space-5);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-sm);
}

body.com_community .joms-gallery__item {
  margin-bottom: var(--space-4);
}

body.com_community .joms-gallery__thumbnail {
  overflow: hidden;
  background: var(--community-surface-muted);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

body.com_community .joms-gallery__thumbnail img {
  transition: transform 180ms ease;
}

body.com_community .joms-gallery__item:hover .joms-gallery__thumbnail img {
  transform: scale(1.02);
}

body.com_community .joms-gallery__body {
  padding: var(--space-3);
  color: var(--community-text-muted);
  background: var(--community-surface-raised);
  border: 1px solid var(--community-border);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

body.com_community .joms-gallery__title,
body.com_community .joms-gallery__title a,
body.com_community a.joms-gallery__title {
  color: var(--community-text);
  font-weight: 700;
}

body.com_community .joms-list__item,
body.com_community .joms-list--card > li {
  color: var(--community-text);
  background: var(--community-surface-raised);
  border-color: var(--community-border);
}

body.com_community .joms-list--videos .joms-list__item,
body.com_community .joms-list--video .joms-list__item {
  overflow: hidden;
  background: var(--community-surface-raised);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-sm);
}

body.com_community .joms-list--videos :is(.joms-list__title, .joms-list__title a),
body.com_community .joms-list--video :is(.joms-list__title, .joms-list__title a) {
  color: var(--community-text) !important;
}

body.com_community .joms-list--videos :is(.joms-list__content, .joms-list__footer, .joms-list__permission),
body.com_community .joms-list--video :is(.joms-list__content, .joms-list__footer, .joms-list__permission) {
  color: var(--community-text-muted);
  background: var(--community-surface-raised);
  border-color: var(--community-border);
}

body.com_community .joms-pagination a,
body.com_community .joms-pagination span,
body.com_community .joms-pagination .page-link {
  color: var(--community-text) !important;
  background: var(--community-surface-raised) !important;
  border-color: var(--community-border) !important;
}

body.com_community .joms-pagination :is(.active, .pagination-active) a,
body.com_community .joms-pagination :is(.active, .pagination-active) span,
body.com_community .joms-pagination a:hover,
body.com_community .joms-pagination a:focus-visible {
  color: #111;
  background: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
}

/* JomSocial modules inside the site-owned sidebar */
body.com_community .site-sidebar .joms-module {
  color: var(--text);
  background: transparent;
}

body.com_community .site-sidebar .joms-module__header {
  margin-bottom: var(--space-3);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.com_community .site-sidebar .joms-module__body,
body.com_community .site-sidebar .joms-module__footer {
  color: var(--text-muted);
  border-color: var(--border);
}

body.com_community .site-sidebar .joms-module__footer a {
  color: var(--brand-orange);
  font-weight: 650;
}

body.com_community .site-sidebar .joms-avatar img,
body.com_community .site-sidebar .joms-module img {
  border-radius: var(--radius-sm);
}

body.com_community .site-sidebar :is(
  .joms-list--thumbnail,
  .joms-list--half,
  .js-row-fluid,
  .app-box-content,
  .joms-module__body
) {
  color: var(--community-text-muted);
  background: transparent;
  border-color: var(--community-border);
}

body.com_community .site-sidebar .joms-list--thumbnail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0;
}

body.com_community .site-sidebar .joms-list--thumbnail .joms-list__item {
  width: 100% !important;
  padding: 0.2rem;
  background: var(--community-surface-muted);
  border: 1px solid var(--community-border-strong);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

body.com_community .site-sidebar .joms-list--thumbnail .joms-avatar {
  background: var(--community-surface-muted);
}

body.com_community .site-sidebar .joms-list--thumbnail .joms-avatar img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--community-surface-muted);
  border: 0;
}

body.com_community .site-sidebar :is(.js-mod-photos, .joms-js--video-module) img {
  display: block;
  background: var(--community-surface-muted);
  border: 1px solid var(--community-border);
  border-radius: 0;
}

body.com_community .site-sidebar .js-mod-photos :is(.js-col4, .bottom-gap),
body.com_community .site-sidebar .joms-js--video-module .joms-list__item {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.com_community .site-sidebar .joms-online a::after {
  border-color: var(--community-surface-raised);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Guest Fan Club landing */
body.com_community .scotty-community-landing {
  color: #fff;
}

body.com_community .scotty-community-landing__cover {
  position: relative;
  min-height: clamp(36rem, 58vw, 43rem);
  overflow: hidden;
  background: #181818;
  border: 1px solid var(--community-dark-line);
  border-radius: var(--radius-md);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

/* JomSocial's base cover uses a ratio-box pseudo-element; this site-owned
   composition has an explicit responsive minimum height instead. */
body.com_community .scotty-community-landing__cover::before {
  display: none !important;
  padding-top: 0 !important;
}

body.com_community .scotty-community-landing__image,
body.com_community .scotty-community-landing__overlay {
  position: absolute;
  inset: 0;
}

body.com_community .scotty-community-landing__image {
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.com_community .scotty-community-landing__overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.25) 52%, rgba(0, 0, 0, 0.66) 100%);
}

body.com_community .scotty-community-landing.no-image .scotty-community-landing__overlay {
  background: radial-gradient(circle at 25% 20%, #2b2b2b, #101010 68%);
}

body.com_community .scotty-community-landing__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: inherit;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

body.com_community .scotty-community-landing__intro {
  display: block !important;
  align-self: end;
  max-width: 36rem;
  padding-bottom: clamp(1rem, 4vw, 3rem);
}

body.com_community .scotty-community-landing__intro h1 {
  margin: 0 0 var(--space-4);
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 0.98;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.65);
  text-transform: uppercase;
}

body.com_community .scotty-community-landing__intro > p:last-child {
  max-width: 32rem;
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

body.com_community .scotty-community-landing__eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--brand-orange);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.com_community .scotty-community-login {
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--community-ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.38);
}

body.com_community .scotty-community-login__header h2 {
  margin: 0 0 var(--space-2);
  color: var(--community-ink);
  font-size: 1.65rem;
  text-transform: uppercase;
}

body.com_community .scotty-community-login__header p {
  margin: 0 0 var(--space-4);
  color: var(--community-muted);
  font-size: 0.9rem;
}

body.com_community .scotty-community-login__field {
  margin-bottom: var(--space-3);
}

body.com_community .scotty-community-login__field > label {
  display: block;
  margin-bottom: var(--space-1);
  color: #303030;
  font-size: 0.82rem;
  font-weight: 700;
}

body.com_community .jomsocial .scotty-community-login .joms-input {
  width: 100%;
  margin: 0;
  padding-block: 0.7rem;
  color: #202020;
  background: #fff !important;
  border-color: #aaa39c !important;
}

body.com_community .jomsocial .scotty-community-login .joms-input:focus {
  color: #111;
  background: #fff !important;
  border-color: var(--brand-orange) !important;
}

body.com_community .scotty-community-login .joms-input::placeholder {
  color: #686868;
}

body.com_community .jomsocial .scotty-community-login .joms-input--append {
  display: block;
  width: 100% !important;
  margin: 0 !important;
}

body.com_community .scotty-community-login__remember {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

body.com_community .scotty-community-login__remember input {
  position: static;
  width: 1.15rem;
  min-height: 1.15rem;
  margin: 0;
  accent-color: var(--brand-orange);
}

body.com_community .scotty-community-login__remember label {
  margin: 0;
  color: #393939;
  font-size: 0.82rem;
}

body.com_community .scotty-community-login__submit,
body.com_community .scotty-community-login__signup {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  text-align: center;
}

body.com_community .jomsocial .scotty-community-login .scotty-community-login__signup {
  color: #272727 !important;
  background: #fff !important;
  border-color: #8d8781 !important;
}

body.com_community .jomsocial .scotty-community-login .scotty-community-login__signup:hover,
body.com_community .jomsocial .scotty-community-login .scotty-community-login__signup:focus-visible {
  background: var(--community-orange-soft) !important;
  border-color: var(--brand-orange) !important;
}

body.com_community .scotty-community-login__recovery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-2);
}

body.com_community .scotty-community-login__recovery a {
  color: #6c3008;
  font-size: 0.78rem;
  font-weight: 650;
}

body.com_community .scotty-community-login__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Change Profile Picture: the base layout is sufficient with modern CSS. */
body.com_community .joms-page:has(.joms-choose--avatar) {
  padding: clamp(1rem, 3vw, 1.75rem);
  color: var(--community-text);
  background: var(--community-surface);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-md);
}

body.com_community .joms-page:has(.joms-choose--avatar) .joms-page__title {
  color: var(--community-text);
}

body.com_community .joms-page:has(.joms-choose--avatar) .joms-text--title {
  margin-top: var(--space-4);
  padding-bottom: var(--space-2);
  color: var(--community-text);
  border-bottom: 1px solid var(--community-border);
  font-size: 1rem;
}

body.com_community .joms-choose--avatar {
  display: grid;
  min-height: 12rem;
  place-items: center;
  padding: var(--space-4);
  background: var(--community-surface-raised);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-sm);
}

body.com_community .joms-choose--avatar img {
  width: min(100%, 12rem);
  border: 4px solid #d6d6d6;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brand-orange), 0 0.7rem 1.5rem rgba(0, 0, 0, 0.18);
}

body.com_community .joms-page:has(.joms-choose--avatar) .clearfix {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

body.com_community .joms-page:has(.joms-choose--avatar) .clearfix > div {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

body.com_community .joms-page:has(.joms-choose--avatar) .clearfix > div:first-child {
  flex: 1 1 16rem;
}

body.com_community .joms-page:has(.joms-choose--avatar) .joms-avatar--focus,
body.com_community .joms-page:has(.joms-choose--avatar) .joms-avatar--stream {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 var(--space-3) var(--space-3) 0;
  padding: var(--space-3) !important;
  background: var(--community-surface-muted);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-sm);
}

body.com_community .joms-page:has(.joms-choose--avatar) .joms-progressbar {
  background: var(--community-surface-muted);
  border: 1px solid var(--community-border);
}

body.com_community .joms-page:has(.joms-choose--avatar) .joms-progressbar__progress {
  background: var(--brand-orange);
}

/* Photo viewer: popup is appended outside the JomSocial wrapper. */
body.com_community .joms-popup--photo {
  background: #050505;
}

body.com_community .joms-popup--photo .joms-popup__commentwrapper {
  padding-right: clamp(18rem, 24vw, 21rem);
}

body.com_community .joms-popup--photo .joms-popup__comment {
  width: clamp(18rem, 24vw, 21rem);
  padding: var(--space-4);
  color: #ededed;
  background: var(--community-dark-raised);
  border-left: 1px solid var(--community-dark-line);
}

body.com_community .joms-popup--photo .joms-popup__comment :is(a, button) {
  color: #ff9b55;
}

body.com_community .joms-popup--photo .joms-popup__comment :is(.joms-stream__user, .joms-comment__user) {
  color: #fff;
}

body.com_community .joms-popup--photo .joms-popup__comment :is(.joms-stream__time, .joms-stream__meta, small) {
  color: #bdbdbd;
}

body.com_community .joms-popup--photo .joms-popup__comment .joms-textarea {
  color: #fff;
  background: #0e0e0e;
  border-color: #646464;
}

body.com_community .joms-popup--photo .joms-popup__comment .joms-comment__reply {
  padding: var(--space-3);
  background: var(--community-surface-muted);
  border: 1px solid var(--community-border);
  border-radius: var(--radius-sm);
}

body.com_community .joms-popup--photo .joms-popup__comment .joms-textarea__wrapper,
body.com_community .joms-popup--photo .joms-popup__comment .joms-textarea__beautifier {
  background: #0e0e0e;
  border-color: #646464;
}

body.com_community .joms-popup--photo .joms-popup__option {
  opacity: 1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

body.com_community .joms-popup--photo .joms-popup__content > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.com_community .joms-popup--photo :is(.mfp-arrow, .mfp-close) {
  display: block !important;
  opacity: 0.9;
}

body.com_community .joms-popup--photo .mfp-arrow {
  top: 50%;
  width: 3.25rem;
  min-width: 3.25rem;
  height: 4.5rem;
  margin-top: -2.25rem;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
}

body.com_community .joms-popup--photo .mfp-arrow::before,
body.com_community .joms-popup--photo .mfp-arrow::after {
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

body.com_community .joms-popup--photo .mfp-close {
  top: var(--space-2);
  right: var(--space-2);
  width: 2.75rem;
  height: 2.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

body.com_community .joms-popup--photo :is(.mfp-arrow, .mfp-close):hover,
body.com_community .joms-popup--photo :is(.mfp-arrow, .mfp-close):focus-visible {
  opacity: 1;
  background-color: #8f3a00;
  border-color: var(--brand-orange);
}

/* Give JomSocial adequate width before its internal tablet breakpoints engage. */
@media (min-width: 48rem) and (max-width: 67.999rem) {
  body.com_community .site-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 52rem) {
  body.com_community .scotty-community-landing__cover {
    min-height: 0;
  }

  body.com_community .scotty-community-landing__content {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  body.com_community .scotty-community-landing__intro {
    align-self: auto;
    padding-bottom: 0;
  }

  body.com_community .scotty-community-login {
    max-width: 28rem;
  }
}

@media (max-width: 40rem) {
  body.com_community .scotty-community-landing__cover {
    margin-inline: calc(var(--space-2) * -1);
    border-radius: 0;
  }

  body.com_community .scotty-community-landing__image {
    height: 17rem;
    background-position: center top;
  }

  body.com_community .scotty-community-landing__overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), #141414 17rem, #141414 100%);
  }

  body.com_community .scotty-community-landing__content {
    padding: 9.5rem var(--space-4) var(--space-5);
  }

  body.com_community .scotty-community-landing.no-image .scotty-community-landing__content {
    padding-top: var(--space-5);
  }

  body.com_community .scotty-community-landing__intro h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  body.com_community .scotty-community-login {
    padding: var(--space-4);
  }

  body.com_community .joms-page__title {
    font-size: 1.5rem;
  }

  body.com_community .joms-gallery__body {
    padding: var(--space-2);
  }
}

@media (max-width: 640px) {
  body.com_community .joms-popup--photo .joms-popup__commentwrapper {
    padding-right: 0;
  }

  body.com_community .joms-popup--photo .joms-popup__comment {
    width: auto;
    border-left: 0;
  }

  body.com_community .joms-popup--photo .mfp-arrow {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 3.75rem;
    margin-top: -1.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.com_community .joms-gallery__thumbnail img {
    transition: none;
  }
}
