/* Startup Quarters Directory — public styles */

.sq-directory,
.sq-profile-edit,
.sq-request-mentor {
    font-family: inherit;
    color: inherit;
    max-width: 1140px;
    margin: 0 auto;
}

.sq-directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    /* Toolbar label color is configurable via Settings → Directory appearance.
       Falls back to the surrounding theme's color when unset. */
    color: var(--sq-toolbar-text, inherit);
}
.sq-directory-toolbar .sq-filter-mentor,
.sq-directory-toolbar .sq-search,
.sq-directory-toolbar label {
    color: inherit;
}
.sq-directory-toolbar input[type="search"],
.sq-directory-toolbar select {
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    min-width: 220px;
}
.sq-filter-mentor {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 14px;
}
.sq-expertise-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.sq-expertise-filter .sq-directory-expertise-input {
    padding-right: 32px; /* space for the × button */
}
.sq-expertise-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: #98a2b3;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
}
.sq-expertise-clear:hover { color: #475467; background: #f3f4f6; }

.sq-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
/* Fixed-column layouts via layout="1col".."5col" */
.sq-directory-grid--1col { grid-template-columns: minmax(0, 1fr); }
.sq-directory-grid--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sq-directory-grid--3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sq-directory-grid--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sq-directory-grid--5col { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) {
    .sq-directory-grid--4col,
    .sq-directory-grid--5col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .sq-directory-grid--3col,
    .sq-directory-grid--4col,
    .sq-directory-grid--5col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .sq-directory-grid--2col,
    .sq-directory-grid--3col,
    .sq-directory-grid--4col,
    .sq-directory-grid--5col { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------------ */
/* Directory card — horizontal layout, dark gradient, photo right, text left */
/* Static (no flip, no container queries). Click anywhere → full profile.    */
/* ------------------------------------------------------------------------ */
.sq-member-card {
    --sq-card-bg-from: #2a1960;
    --sq-card-bg-to:   #1a0b3d;
    position: relative;
    background: linear-gradient(135deg, var(--sq-card-bg-from) 0%, var(--sq-card-bg-to) 100%);
    /* These four pull from CSS custom properties emitted by directory.php
       (Settings → Directory appearance). Defaults match the bare card. */
    border: var(--sq-card-border, 0 solid transparent);
    border-radius: var(--sq-card-radius, 12px);
    aspect-ratio: var(--sq-card-aspect, 16 / 7);
    box-shadow: var(--sq-card-shadow, 0 1px 2px rgba(0,0,0,0.08), 0 6px 18px rgba(16, 24, 40, 0.12));
    overflow: hidden;
    color: #fff;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.sq-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.10), 0 14px 28px rgba(16, 24, 40, 0.18);
}
.sq-member-card__link {
    display: flex;
    align-items: stretch;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.sq-member-card__body {
    flex: 1 1 55%;
    min-width: 0;
    padding: 22px 22px 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}
.sq-member-card__name {
    margin: 0 0 8px;
    /* Upper bound is settable via Settings → Directory appearance (--sq-card-name-max) */
    font-size: clamp(13px, 1.4vw, var(--sq-card-name-max, 20px));
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
    word-break: break-word;
    hyphens: auto;
}
.sq-member-card__company {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.sq-member-card__photo {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}
.sq-member-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}
/* Soft fade from the card background into the photo so the edge isn't hard */
.sq-member-card__photo::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    background: linear-gradient(to right, var(--sq-card-bg-to) 0%, rgba(26, 11, 61, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 600px) {
    .sq-member-card__name { font-size: 14px; }
    .sq-member-card__body { padding: 16px 14px 16px 18px; }
}
/* Chips (used on the single profile page; card no longer renders them) */
.sq-chip {
    align-self: flex-start;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    background: #f3f4f6;
    color: #475467;
    border-radius: 999px;
}
.sq-member-profile__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.sq-chip-location  { background: #eef4ff; color: #1d4ed8; }
.sq-chip-company   { background: #fef3c7; color: #92400e; }
.sq-chip-expertise { background: #ecfdf5; color: #047857; }
.sq-member-profile__expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sq-member-profile--brand .sq-chip-expertise {
    background: rgba(52, 211, 153, 0.18); color: #a7f3d0;
}

/* Buttons */
.sq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.sq-btn-primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}
.sq-btn-primary:hover { background: #000; color: #fff; }
.sq-btn-secondary {
    background: #fff;
    color: #111827;
    border-color: #d0d5dd;
}
.sq-btn-secondary:hover { background: #f9fafb; }
.sq-btn-linkedin {
    background: #0a66c2;
    color: #fff;
    border-color: #0a66c2;
    gap: 6px;
}
.sq-btn-linkedin:hover { background: #084d92; border-color: #084d92; color: #fff; }
.sq-btn-linkedin .sq-btn__icon { display: inline-block; flex: 0 0 auto; }

/* Notices */
.sq-notice {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.sq-notice-success { background: #ecfdf3; color: #054f31; border: 1px solid #abefc6; }
.sq-notice-error   { background: #fef3f2; color: #912018; border: 1px solid #fecdca; }
.sq-notice-info    { background: #eff4ff; color: #175cd3; border: 1px solid #b2ccff; }

.sq-empty {
    padding: 40px;
    text-align: center;
    color: #667085;
    background: #f9fafb;
    border-radius: 8px;
}

/* Profile edit */
.sq-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.sq-fieldset legend {
    padding: 0 6px;
    font-weight: 600;
    font-size: 15px;
}
.sq-field {
    margin-bottom: 14px;
}
.sq-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}
.sq-field-inline label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 400;
}
.sq-field input[type="text"],
.sq-field input[type="url"],
.sq-field input[type="number"],
.sq-field select,
.sq-field textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}
.sq-help {
    font-size: 12px;
    color: #667085;
    margin: 4px 0 0;
}
.sq-photo-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
    display: block;
}
.sq-cover-preview {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 1;
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a1960, #1a0b3d);
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}
.sq-cover-empty { padding: 6px 10px; }

/* Business logo upload preview on the profile-edit form */
.sq-logo-preview {
    width: 120px;
    height: 120px;
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    background: #fff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 12px;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
}
.sq-logo-empty { display: block; }
.sq-upload-inline {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: #475467;
    margin-left: 10px;
}
.sq-qr-preview {
    width: 180px;
    height: 180px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
}
.sq-qr-code img {
    max-width: 200px;
    height: auto;
}
.sq-form-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ======================================================================== */
/* Public member profile ([sq_member_profile])                              */
/* ======================================================================== */
.sq-member-profile {
    --sq-accent: #6b46ff;
    --sq-accent-soft: rgba(107, 70, 255, 0.08);
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
    color: #1d2939;
}

/* Cover banner */
.sq-member-profile__cover {
    height: 140px;
    background:
        radial-gradient(120% 140% at 0% 0%, var(--sq-accent) 0%, transparent 55%),
        radial-gradient(120% 140% at 100% 0%, #111827 0%, transparent 60%),
        linear-gradient(135deg, var(--sq-accent) 0%, #111827 100%);
}

.sq-member-profile__body {
    padding: 0 32px 32px;
}

/* Header row: photo overlaps the cover */
.sq-member-profile__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px 24px;
    align-items: end;
    padding-top: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #f2f4f7;
    margin-bottom: 24px;
}
.sq-member-profile__photo {
    position: relative;
    margin-top: -72px;
    flex: 0 0 auto;
}
.sq-member-profile__photo img {
    width: 144px;
    height: 144px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid #fff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
    display: block;
    background: #f2f4f7;
}
.sq-member-profile__photo .sq-badge-mentor {
    top: auto;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.sq-member-profile__intro { min-width: 0; padding-bottom: 4px; }
.sq-member-profile__name {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.sq-member-profile__headline {
    margin: 0 0 10px;
    color: #475467;
    font-size: 15px;
    line-height: 1.45;
}
.sq-member-profile__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.sq-member-profile__chips .sq-chip { margin-top: 0; }
.sq-chip__dot { opacity: 0.6; margin-right: 2px; }

.sq-member-profile__header-cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-self: center;
    padding-bottom: 4px;
}
.sq-member-profile__header-cta .sq-btn-primary {
    background: var(--sq-accent);
    border-color: var(--sq-accent);
}
.sq-member-profile__header-cta .sq-btn-primary:hover {
    background: #111827;
    border-color: #111827;
}

/* Content sections */
.sq-member-profile__content {
    display: grid;
    gap: 22px;
}
.sq-member-profile__section {
    background: #fafbfc;
    border: 1px solid #f2f4f7;
    border-radius: 12px;
    padding: 18px 20px;
}
.sq-member-profile__section h2 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sq-accent);
    margin: 0 0 8px;
    font-weight: 700;
}
.sq-member-profile__section p,
.sq-member-profile__bio { color: #344054; font-size: 15px; line-height: 1.6; margin: 0; }
.sq-member-profile__bio p { margin: 0 0 10px; }
.sq-member-profile__bio p:last-child { margin-bottom: 0; }

.sq-member-profile__owner-note {
    margin-top: 22px;
    padding: 10px 14px;
    background: var(--sq-accent-soft);
    color: var(--sq-accent);
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

/* "About the business" section on the public profile */
.sq-member-profile__business {
    /* Inherits .sq-member-profile__section base, but slightly more prominent */
    background: #ffffff;
    border-color: #e5e7eb;
}
.sq-business-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.sq-business-card__logo {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}
.sq-business-card__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.sq-business-card__body { flex: 1 1 auto; min-width: 0; }
.sq-business-card__name {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.25;
    color: #1d2939;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
.sq-business-card__tagline {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #475467;
}
.sq-business-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.sq-business-card__link {
    font-size: 13px;
    color: var(--sq-accent);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.sq-business-card__description {
    color: #344054;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
}
.sq-business-card__description p { margin: 0 0 10px; }
.sq-business-card__description p:last-child { margin-bottom: 0; }
.sq-chip-industry { background: #ede9fe; color: #5b21b6; }

/* Brand theme: invert business card colors so it stays legible on dark bg */
.sq-member-profile--brand .sq-member-profile__business {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}
.sq-member-profile--brand .sq-business-card__logo {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
}
.sq-member-profile--brand .sq-business-card__name { color: #fff; }
.sq-member-profile--brand .sq-business-card__tagline { color: #c4b5fd; }
.sq-member-profile--brand .sq-business-card__description { color: #e9d5ff; }
.sq-member-profile--brand .sq-business-card__description p { color: #e9d5ff; }
.sq-member-profile--brand .sq-chip-industry { background: rgba(167, 139, 250, 0.22); color: #ddd6fe; }
.sq-member-profile--brand .sq-business-card__link { color: var(--sq-accent); }

@media (max-width: 540px) {
    .sq-business-card { flex-direction: column; }
    .sq-business-card__logo { width: 72px; height: 72px; flex-basis: auto; }
}

/* Inquiry form section on public profile */
.sq-member-profile__request {
    margin-top: 28px;
    padding: 22px 24px;
    background: var(--sq-accent-soft);
    border: 1px solid var(--sq-accent);
    border-radius: 12px;
    scroll-margin-top: 20px;
}
.sq-member-profile__request h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--sq-accent);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}
.sq-member-profile__request .sq-field { margin-bottom: 12px; }
.sq-member-profile__request textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}
.sq-member-profile--brand .sq-member-profile__request {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(247, 37, 133, 0.4);
}
.sq-member-profile--brand .sq-member-profile__request textarea {
    background: rgba(0, 0, 0, 0.25);
    color: #f5f3ff;
    border-color: rgba(255, 255, 255, 0.18);
}
.sq-member-profile--brand .sq-member-profile__request textarea::placeholder {
    color: #a78bfa;
}

/* Recent inquiries table on profile-edit */
.sq-incoming-requests {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 14px;
}
.sq-incoming-requests th,
.sq-incoming-requests td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
.sq-incoming-requests th {
    font-weight: 600;
    background: #f9fafb;
}
.sq-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.sq-status-pending   { background: #fef3c7; color: #92400e; }
.sq-status-active    { background: #dbeafe; color: #1e40af; }
.sq-status-completed { background: #d1fae5; color: #065f46; }
.sq-status-cancelled { background: #fee2e2; color: #991b1b; }

/* --- Theme variants --- */

/* banner: same as default, but amplify the cover */
.sq-member-profile--banner .sq-member-profile__cover { height: 180px; }

/* brand: dark indigo background + neon pink accent for dark-themed sites */
.sq-member-profile--brand {
    --sq-accent: #f72585;
    --sq-accent-soft: rgba(247, 37, 133, 0.14);
    background: #1a0b3d;
    border-color: #2a1960;
    color: #f5f3ff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 14px 40px rgba(10, 4, 36, 0.55);
}
.sq-member-profile--brand .sq-member-profile__cover {
    height: 160px;
    background:
        radial-gradient(120% 150% at 0% 0%, var(--sq-accent) 0%, transparent 55%),
        radial-gradient(120% 150% at 100% 0%, #4361ee 0%, transparent 58%),
        radial-gradient(80% 120% at 50% 100%, #7209b7 0%, transparent 60%),
        linear-gradient(135deg, #4a0e7a 0%, #0f0524 100%);
}
.sq-member-profile--brand .sq-member-profile__header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.sq-member-profile--brand .sq-member-profile__photo img {
    border-color: #1a0b3d;
    background: #2a1960;
    box-shadow: 0 4px 18px rgba(247, 37, 133, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.sq-member-profile--brand .sq-member-profile__name { color: #fff; }
.sq-member-profile--brand .sq-member-profile__headline { color: #c4b5fd; }
.sq-member-profile--brand .sq-chip {
    background: rgba(255, 255, 255, 0.08);
    color: #e9d5ff;
}
.sq-member-profile--brand .sq-chip-stage    { background: rgba(247, 37, 133, 0.18); color: #fecdd3; }
.sq-member-profile--brand .sq-chip-location { background: rgba(67, 97, 238, 0.22); color: #bfdbfe; }
.sq-member-profile--brand .sq-chip-company  { background: rgba(250, 204, 21, 0.14); color: #fde68a; }
.sq-member-profile--brand .sq-member-profile__section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.sq-member-profile--brand .sq-member-profile__section h2 {
    color: var(--sq-accent);
    letter-spacing: 0.1em;
}
.sq-member-profile--brand .sq-member-profile__section p,
.sq-member-profile--brand .sq-member-profile__bio { color: #e9d5ff; }
.sq-member-profile--brand .sq-member-profile__bio p { color: #e9d5ff; }
.sq-member-profile--brand .sq-member-profile__owner-note {
    background: var(--sq-accent-soft);
    color: #fce7f3;
}
.sq-member-profile--brand .sq-badge-mentor {
    box-shadow: 0 0 0 2px #1a0b3d, 0 0 12px rgba(247, 37, 133, 0.55);
}
.sq-member-profile--brand .sq-btn-primary {
    background: var(--sq-accent);
    border-color: var(--sq-accent);
    color: #1a0b3d;
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.35);
}
.sq-member-profile--brand .sq-btn-primary:hover {
    background: #ff4d9a;
    border-color: #ff4d9a;
    color: #1a0b3d;
}
.sq-member-profile--brand .sq-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: #f5f3ff;
}
.sq-member-profile--brand .sq-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* minimal: no frame, no banner, flat layout */
.sq-member-profile--minimal {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: 820px;
}
.sq-member-profile--minimal .sq-member-profile__body { padding: 0; }
.sq-member-profile--minimal .sq-member-profile__header {
    grid-template-columns: auto 1fr;
    align-items: center;
    border-bottom: 0;
    padding-bottom: 16px;
}
.sq-member-profile--minimal .sq-member-profile__photo { margin-top: 0; }
.sq-member-profile--minimal .sq-member-profile__photo img {
    width: 96px; height: 96px; border-width: 0; box-shadow: none;
}
.sq-member-profile--minimal .sq-member-profile__header-cta {
    grid-column: 1 / -1;
    margin-top: 8px;
    align-self: start;
}
.sq-member-profile--minimal .sq-member-profile__section {
    background: transparent;
    border: 0;
    border-top: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 16px 0 0;
}

/* compact: tighter spacing, smaller photo, no banner */
.sq-member-profile--compact {
    max-width: 620px;
    padding: 0;
}
.sq-member-profile--compact .sq-member-profile__body { padding: 20px; }
.sq-member-profile--compact .sq-member-profile__header {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    gap: 14px 16px;
}
.sq-member-profile--compact .sq-member-profile__photo { margin-top: 0; }
.sq-member-profile--compact .sq-member-profile__photo img {
    width: 88px; height: 88px; border-width: 2px; border-radius: 12px;
}
.sq-member-profile--compact .sq-member-profile__name { font-size: 20px; }
.sq-member-profile--compact .sq-member-profile__header-cta {
    grid-column: 1 / -1;
    margin-top: 8px;
    align-self: start;
}
.sq-member-profile--compact .sq-member-profile__section {
    padding: 14px 16px;
}

/* Mobile */
@media (max-width: 640px) {
    .sq-member-profile__body { padding: 0 20px 24px; }
    .sq-member-profile__header {
        grid-template-columns: auto 1fr;
        gap: 14px 16px;
    }
    .sq-member-profile__photo { margin-top: -56px; }
    .sq-member-profile__photo img { width: 112px; height: 112px; }
    .sq-member-profile__name { font-size: 22px; }
    .sq-member-profile__header-cta {
        grid-column: 1 / -1;
        align-self: start;
    }
}

/* Mentor picker (shown by [sq_request_mentor] when no mentor is selected) */
.sq-mentor-picker {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sq-mentor-picker li { margin: 0; }
.sq-mentor-picker .sq-btn { width: 100%; justify-content: flex-start; }
.sq-picker-company { color: #667085; margin-left: 6px; font-weight: 400; }

/* Mentor summary */
.sq-mentor-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 18px;
}
.sq-mentor-summary h2 { margin: 0 0 6px; }
.sq-mentor-company { margin: 0 0 10px; color: #475467; }
.sq-mentor-bio { color: #344054; }

/* ------------------------------------------------------------------------ */
/* Company logos — [sq_company_logos] carousel + grid                       */
/* ------------------------------------------------------------------------ */
.sq-logo-carousel,
.sq-logo-grid {
    --sq-logo-size: 60px;
    --sq-logo-speed: 40s;
    --sq-logo-gap: 48px;
    width: 100%;
    margin: 0 auto;
}
.sq-logo-carousel {
    overflow: hidden;
    /* Soft-fade edges so logos enter and leave gracefully */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.sq-logo-track {
    display: flex;
    gap: var(--sq-logo-gap);
    width: max-content;
    align-items: center;
    animation: sq-logo-marquee var(--sq-logo-speed) linear infinite;
}
.sq-logo-pause-on-hover:hover .sq-logo-track {
    animation-play-state: paused;
}
.sq-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sq-logo-gap);
    align-items: center;
    justify-content: center;
}
.sq-logo-item {
    flex: 0 0 auto;
    height: var(--sq-logo-size);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 160ms ease;
}
.sq-logo-item:hover { opacity: 0.7; }
.sq-logo-item img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

@keyframes sq-logo-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .sq-logo-track {
        animation: none;
        /* Show the first copy only, allow horizontal scroll if needed */
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .sq-directory-toolbar { flex-direction: column; align-items: stretch; }
    .sq-directory-toolbar input[type="search"],
    .sq-directory-toolbar select { min-width: 0; width: 100%; }
    .sq-logo-carousel,
    .sq-logo-grid { --sq-logo-gap: 32px; }
}
