/* =========================================================
   UNR Public Profile – Layout Shell
   ========================================================= */

.unr-profile-shell {
    max-width: 90%;
    margin: 0 auto;
    padding: 3rem 0;
    box-sizing: border-box;
}

/* Core profile container */
.unr-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* Header */
.unr-profile__header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1.5rem;
}

.unr-profile__name {
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.unr-profile__headline {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 0.75rem;
}

.unr-profile__location {
    font-size: 0.95rem;
    color: #777;
}

/* Sections */
.unr-profile__section h2,
.unr-profile__section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.unr-profile__bio-text {
    max-width: 60ch;
}

/* =========================================================
   Responsive behaviour
   ========================================================= */

@media (min-width: 768px) {
    .unr-profile {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .unr-profile > .unr-profile__section,
    .unr-profile > .unr-profile__portfolio {
        grid-column: 1 / -1;
    }

    .unr-profile__header {
        grid-column: 1 / -1;
    }

    .unr-profile__sidebar {
        grid-column: 1 / -1;
    }

    .unr-profile__bio {
        grid-column: 1 / 2;
    }
}
/* =========================================================
   Portfolio slider (UNR)
   - Mobile: 1 image visible
   - Desktop: 2 images visible
   ========================================================= */

.unr-profile__portfolio {
    margin-top: 1.5rem;
}

.unr-portfolio {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    gap: 0.75rem;
    align-items: center;
}

.unr-portfolio__nav {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    background: #000 !important;
    cursor: pointer !important;
    font-size: 10px !important;
    line-height: 0 !important;
    color: #fff !important;
}

@media (max-width: 480px) {
    .unr-portfolio {
        gap: 0.5rem;
    }
}

.unr-portfolio__viewport {
    overflow: hidden;
}

.unr-portfolio__track {
    display: flex;
    gap: 0.75rem;
    scroll-behavior: smooth;
}

.unr-portfolio__slide {
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .unr-portfolio__slide {
        flex: 0 0 calc((100% - 0.75rem) / 2);
    }
}

.unr-portfolio__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: contain;
    object-position: center center;
    background: #f8f8f8;
}

/* If attachment missing */
.unr-portfolio__missing {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    border: 1px dashed rgba(0,0,0,0.2);
    display: grid;
    place-items: center;
    color: #666;
    font-size: 0.95rem;
}
.unr-portfolio--empty {
    grid-template-columns: 1fr;
}

.unr-portfolio__empty {
    border: 1px dashed rgba(0,0,0,0.25);
    border-radius: 14px;
    padding: 1.25rem;
    color: #666;
    font-size: 0.95rem;
}
/* Portfolio should always span full width */
.unr-profile__portfolio {
    grid-column: 1 / -1;
}
/* =========================================================
   Header: brand logo + text
   ========================================================= */

.unr-profile__header-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .unr-profile__header-grid {
        grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
        align-items: start;
    }
}

.unr-profile__logo {
    width: 140px;
    max-width: 100%;
}

.unr-profile__logo-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: contain;
    object-position: center center;
    background: #f8f8f8;
}

.unr-profile__website a {
    text-decoration: none;
    font-weight: 600;
}

.unr-profile__website a:hover {
    text-decoration: underline;
}
/* =========================================================
   UNR Badges slider
   ========================================================= */

.unr-profile__badges-section {
    grid-column: 1 / -1;
}

.unr-profile__badges-title {
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
}

.unr-badges-slider__slide {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    min-height: 180px;
    display: grid;
    place-items: center;
}

.unr-badges-slider__img {
    width: auto;
    max-width: 100%;
    max-height: 180px;
    height: auto;
    display: block;
    object-fit: contain;
}

.unr-badges-slider__missing {
    width: 100%;
    border: 1px dashed rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 0.75rem;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

@media (min-width: 768px) {
    .unr-badges-slider__slide {
        min-height: 220px;
    }

    .unr-badges-slider__img {
        max-height: 240px;
    }
}

/* =========================================================
   Member accreditations (public profile)
   ========================================================= */

.unr-profile__member-accreditations {
    grid-column: 1 / -1;
}

.unr-profile__member-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .unr-profile__member-grid {
        grid-template-columns: 1fr;
    }
}

.unr-profile__member-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 14px;
    background: #fff;
}

.unr-profile__member-logo {
    width: 72px;
    height: 72px;
}

.unr-profile__member-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.unr-profile__member-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px dashed rgba(0,0,0,0.2);
    display: grid;
    place-items: center;
    color: #777;
    font-size: 0.8rem;
}

.unr-profile__member-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.unr-profile__member-message {
    margin: 0 0 0.5rem;
    color: #555;
}

.unr-profile__member-by {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

/* =========================================================
   Member accreditations admin page (shortcode)
   ========================================================= */

.unr-accreditations-admin {
    margin-top: 2rem;
}

.unr-accreditations-admin__block {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    background: #fafafa;
}

.unr-accreditations-admin__form {
    display: grid;
    gap: 0.75rem;
}

.unr-accreditations-admin__form input,
.unr-accreditations-admin__form textarea,
.unr-accreditations-admin__form select {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
}

.unr-accreditations-admin__table-wrap {
    overflow-x: auto;
}

.unr-accreditations-admin__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.unr-accreditations-admin__table th,
.unr-accreditations-admin__table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    text-align: left;
    vertical-align: top;
}

.unr-accreditations-admin__row-note td {
    background: #fff;
}

.unr-accreditations-admin__respond textarea {
    width: 100%;
    margin-bottom: 0.5rem;
}

.unr-accreditations-admin__actions {
    display: flex;
    gap: 0.5rem;
}

.unr-accreditations-admin__approve,
.unr-accreditations-admin__deny,
.unr-accreditations-admin__link {
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
}

.unr-profile__logo-slot {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.unr-profile__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.unr-profile__logo-placeholder {
    color: #666;
}

.unr-portfolio__slide {
    aspect-ratio: 1 / 1;
}

.unr-portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f7f7f7;
}

.unr-profile__member-name {
    margin: 0 0 .25rem;
    color: #666;
}

.unr-profile__field {
    margin: 0.4rem 0;
}

.unr-profile__video-embed iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 12px;
}

.unr-profile__video-placeholder {
    border: 1px dashed rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
    color: #666;
}

.unr-profile__admin-form fieldset {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: .75rem;
    margin-bottom: 1rem;
}

.unr-profile__admin-form label {
    display: block;
    margin-bottom: .45rem;
}

.unr-profile__admin-form input[type="url"] {
    width: 100%;
    margin-bottom: .75rem;
}


.unr-media-upload {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.unr-media-upload__tip {
    background: #fffbe6;
    border-left: 4px solid #cc9b00;
    padding: 0.75rem;
}

.unr-media-upload__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.unr-media-upload__preview {
    width: 120px;
    height: 120px;
    border: 1px dashed rgba(0,0,0,0.2);
    border-radius: 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8f8f8;
    text-align: center;
    padding: 0.5rem;
}

.unr-media-upload__preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.unr-media-upload__controls input[type="file"] {
    display: block;
    margin: 0.25rem 0 0.5rem;
}

.unr-media-upload__notice {
    color: #0a7a0a;
    font-weight: 600;
}

.unr-media-upload__error {
    color: #b00020;
    font-weight: 600;
}

.unr-profile__sidebar {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

.unr-profile__cta-card {
    text-align: center;
}


.unr-profile__cta-card h4 {
    margin: 0 0 0.75rem;
}

.unr-profile__member-reviews-placeholder {
    width: 100%;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

.unr-profile__member-reviews-box {
    width: 100%;
    padding: 0.75rem;
    box-sizing: border-box;
    background: transparent !important;
}

.unr-profile__member-reviews-box h3 {
    margin: 0;
    text-align: left;
}

.unr-profile__cta-button {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #000;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    color: #fff;
    padding: 0.65rem 1rem;
}

.unr-profile__cta-button:hover,
.unr-profile__cta-button:focus {
    background: #666;
    border-color: #666;
    color: #fff;
}

@media (max-width: 767px) {
    .unr-profile__sidebar {
        grid-column: 1 / -1;
        order: 90;
    }

    .unr-profile__member-accreditations {
        order: 80;
    }
}

.unr-profile__member-review {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 12px;
}

.unr-profile__member-review-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.unr-profile__member-review-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}

.unr-profile__member-review-body {
  border-top: 1px solid #eee;
  padding-top: 8px;
}
