/**
 * Arizona Arts People — Module Styles
 *
 * Arizona brand tokens:
 *   Azurite:       #1e5288
 *   Arizona Blue:  #0c234b
 *   Arizona Red:   #ab0520
 *   Bloom:         #ef4056
 *   Warm gray:     #f4f4f4
 *   Border gray:   #d0d0d0
 *   Text:          #1a1a1a
 *
 * Display modes: flat_cards, flat_list, flat_table, branched.
 * Branched depth levels use .azarts-people__branch--depth-N classes
 * for per-level styling (background, heading size, indent, etc.)
 */

/* =========================================================================
   Base / shared
   ========================================================================= */

.azarts-people {
    font-family: 'Proxima Nova', 'Proxima Nova Condensed', Arial, sans-serif;
    color: #1a1a1a;
    width: 100%;
}

.azarts-people__notice {
    font-style: italic;
    color: #666;
}

/* Screen-reader only utility (mirrors WP .screen-reader-text) */
.azarts-people .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* =========================================================================
   Filters bar (cards mode)
   ========================================================================= */

.azarts-people__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.azarts-people__filter-search {
    flex: 1 1 calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
}

.azarts-people__filter-branch {
    flex: 1 1 calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
}

.azarts-people__search-input,
.azarts-people__branch-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s ease;
}

.azarts-people__search-input:focus,
.azarts-people__branch-select:focus {
    outline: 2px solid #1e5288;
    outline-offset: 1px;
    border-color: #1e5288;
}

.azarts-people__results-count {
    width: 100%;
    font-size: 0.875rem;
    color: #555;
    margin: 0 0 0.5rem;
    min-height: 1.25em;
}

.azarts-people__no-results {
    font-style: italic;
    color: #666;
    padding: 1rem 0;
}

/* =========================================================================
   Card grid
   ========================================================================= */

.azarts-people--cards .azarts-people__grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
    gap: 1.5rem;
}

.azarts-people__card {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-top: 3px solid #1e5288;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.azarts-people__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

/* Ensure filtered cards are hidden — Divi overrides [hidden] without this */
.azarts-people__card[hidden] {
    display: none !important;
}

/* =========================================================================
   Thumbnails in list modes
   ========================================================================= */

.azarts-people__list-item--has-thumb {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 1rem;
}

/* Flat list: compact 60x84 thumb, name+titles inline */
.azarts-people__list-thumb--flat {
    flex: 0 0 60px;
    width: 60px;
    height: 84px;
    overflow: hidden;
    border-radius: 11px;
    background: #f4f4f4;
}

/* Branched list: portrait 80x112 thumb, name+titles stacked */
.azarts-people__list-thumb--branched {
    flex: 0 0 80px;
    width: 80px;
    height: 112px;
    overflow: hidden;
    border-radius: 11px;
    background: #f4f4f4;
}

.azarts-people__list-thumb--flat img,
.azarts-people__list-thumb--branched img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.azarts-people__list-thumb--flat a,
.azarts-people__list-thumb--branched a {
    display: block;
    width: 100%;
    height: 100%;
}

.azarts-people__list-body {
    flex: 1;
    min-width: 0;
    padding-top: 1rem;
}

/* Flat list item: name and titles on same line */
.azarts-people__list-item--flat .azarts-people__list-body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.75rem;
    padding-top: 1rem;
}

/* Branched list item: name on one line, titles below */
.azarts-people--branched .azarts-people__list-item .azarts-people__list-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* =========================================================================
   Photo (card)
   ========================================================================= */

.azarts-people__card-photo {
    background: #f4f4f4;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.azarts-people__card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.azarts-people__card-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Placeholder initials */
.azarts-people__card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c234b;
}

.azarts-people__photo-initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Card body */
.azarts-people__card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.azarts-people__card-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.azarts-people__card-name a {
    color: #ef4056;
    font-family: 'Proxima Nova Bold', Helvetica, Arial, Lucida, sans-serif;
    text-decoration: none;
}

.azarts-people__card-name a:hover,
.azarts-people__card-name a:focus {
    text-decoration: underline;
}

/* Titles list */
.azarts-people .azarts-people__card-titles,
.azarts-people .azarts-people__card-titles li {
    list-style: none !important;
    list-style-type: none !important;
}

.azarts-people__card-titles {
    font-family: 'Proxima Nova Condensed Regular', 'Proxima Nova Condensed', Helvetica, Arial, Lucida, sans-serif;
    font-size: 0.875rem;
    color: #333;
    margin: 0 0 0.75rem 0;
    padding: 0;          /* no left indent on the container */
    list-style: none;
    line-height: 1;
}

.azarts-people__card-titles li {
    line-height: 1.2;
    margin-bottom: 0.35em;
    padding-left: 1em;
    text-indent: -1em;   /* hanging indent for wrapping long titles */
}

.azarts-people__card-titles li:last-child {
    margin-bottom: 0;
}

.azarts-people .azarts-people__card-titles:not(.has-background) {
    padding-bottom: 0 !important;
}

/* Branch labels */
.azarts-people__card-branches {
    font-size: 0.8rem;
	font-family: 'Proxima Nova Light Italic', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

/* Override Divi's p padding on card branches */
.azarts-people .azarts-people__card-branches:not(.has-background) {
    padding-bottom: 0 !important;
}

/* Contact — email only */
.azarts-people__card-contact {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.85rem;
}

.azarts-people__email {
    color: #ef4056;
    font-family: 'Proxima Nova Bold', Helvetica, Arial, Lucida, sans-serif;
    text-decoration: none;
    word-break: break-all;
    font-size: 0.85rem;
}

.azarts-people__email:hover,
.azarts-people__email:focus {
    text-decoration: underline;
}

/* =========================================================================
   Simple list
   ========================================================================= */

.azarts-people--list .azarts-people__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.azarts-people__list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d0d0d0;
}

.azarts-people__list-item:first-child {
    border-top: 1px solid #d0d0d0;
}

.azarts-people__list-name {
    font-weight: 700;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.azarts-people__list-name a {
    color: #ef4056;
    text-decoration: none;
  	font-family: 'Proxima Nova Bold', Helvetica, Arial, Lucida, sans-serif;
}

.azarts-people__list-name a:hover,
.azarts-people__list-name a:focus {
    text-decoration: underline;
}

.azarts-people__list-titles {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: #444;
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.4rem;
}

.azarts-people__list-titles li + li::before {
    content: '·';
    margin-right: 0.4rem;
    color: #999;
}

.azarts-people__list-branches {
    font-size: 0.8rem;
    color: #1e5288;
    font-weight: 600;
    width: 100%;
    margin-top: 0.1rem;
}

/* =========================================================================
   Compact table
   ========================================================================= */

.azarts-people--table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.azarts-people__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.azarts-people__table thead tr {
    background: #0c234b;
    color: #fff;
}

.azarts-people__table th {
    padding: 0.6rem 0.875rem;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}

.azarts-people__table tbody tr {
    border-bottom: 1px solid #d0d0d0;
}

.azarts-people__table tbody tr:nth-child(even) {
    background: #f4f4f4;
}

.azarts-people__table tbody tr:hover {
    background: #eaf0f7;
}

.azarts-people__table td {
    padding: 0.5rem 0.875rem;
    vertical-align: top;
    line-height: 1.4;
}

.azarts-people__table-name a {
    color: #ef4056;
    font-family: 'Proxima Nova Bold', Helvetica, Arial, Lucida, sans-serif;
    text-decoration: none;
}

.azarts-people__table-name a:hover,
.azarts-people__table-name a:focus {
    text-decoration: underline;
}

.azarts-people__table-branches {
    color: #1e5288;
    font-size: 0.85rem;
}

.azarts-people__table-phone a,
.azarts-people__table-email a {
    color: #ef4056;
    text-decoration: none;
  	font-family: 'Proxima Nova Bold', Helvetica, Arial, Lucida, sans-serif;
    white-space: nowrap;
}

.azarts-people__table-phone a:hover,
.azarts-people__table-email a:hover,
.azarts-people__table-phone a:focus,
.azarts-people__table-email a:focus {
    text-decoration: underline;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media ( max-width: 600px ) {
    .azarts-people--flat_cards .azarts-people__grid {
        grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
        gap: 1rem;
    }

    .azarts-people__filters {
        flex-direction: column;
    }

    .azarts-people__filter-branch {
        flex: 1 1 100%;
    }

    .azarts-people__list-item {
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* =========================================================================
   Flat cards grid class fix (display mode value used directly as class)
   ========================================================================= */

.azarts-people--flat_cards .azarts-people__grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
    gap: 1.5rem;
}

/* =========================================================================
   Branched mode
   ========================================================================= */

.azarts-people--branched {
    width: 100%;
}

.azarts-people__branch {
    margin-bottom: 1rem;
}

/* Heading bar for each branch level.
   Depth classes allow per-level customization via CSS or child theme overrides.
   depth-0 = selected root (heading suppressed by default in render)
   depth-1 = direct children
   depth-2 = grandchildren, etc. */

.azarts-people__branch-heading {
    font-family: 'Proxima Nova Condensed Bold', 'Proxima Nova', Arial, sans-serif;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    margin: 0 0 0.5rem;
    background: #0c234b;
    color: #fff;
    line-height: 1.3;
}

.azarts-people__branch--depth-1 > .azarts-people__branch-heading {
    font-size: 1.1rem;
    background: #0c234b;
}

.azarts-people__branch--depth-2 > .azarts-people__branch-heading {
    font-size: 1rem;
    background: #1e5288;
}

.azarts-people__branch--depth-3 > .azarts-people__branch-heading {
    font-size: 0.95rem;
    background: #4a7fad;
}

.azarts-people__branch--depth-4 > .azarts-people__branch-heading,
.azarts-people__branch--depth-5 > .azarts-people__branch-heading,
.azarts-people__branch--depth-6 > .azarts-people__branch-heading {
    font-size: 0.9rem;
    background: #f4f4f4;
    color: #0c234b;
    border-left: 3px solid #1e5288;
}

/* Indent child branches */
.azarts-people__branch--depth-1 { padding-left: 0; }
.azarts-people__branch--depth-2 { padding-left: 1rem; }
.azarts-people__branch--depth-3 { padding-left: 1.5rem; }
.azarts-people__branch--depth-4 { padding-left: 2rem; }
.azarts-people__branch--depth-5 { padding-left: 2.5rem; }

/* Branched list items are simpler — no wrapping flex row needed */
.azarts-people--branched .azarts-people__list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.azarts-people--branched .azarts-people__list-item {
    padding: 0.35rem 0;
    border-bottom: 1px solid #e8e8e8;
    flex-direction: column;
    gap: 1rem;
}

.azarts-people--branched .azarts-people__list-item:first-child {
    border-top: none;
}

/* Branch head line */
.azarts-people__branch-head {
    margin: 0 0 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    background: #f4f4f4;
    border-left: 3px solid #1e5288;
}

/* Override Divi's p:not(.has-background):last-of-type padding */
.azarts-people .azarts-people__branch-head:not(.has-background) {
    padding-bottom: 0.25rem !important;
}

.azarts-people__branch-head a {
    color: #ef4056;
  	font-family: 'Proxima Nova Bold', Helvetica, Arial, Lucida, sans-serif;
    text-decoration: none;
}

.azarts-people__branch-head a:hover,
.azarts-people__branch-head a:focus {
    text-decoration: underline;
}

/* =========================================================================
   List titles — suppress native markers and separator spacing
   ========================================================================= */

.azarts-people__list-titles li + li::before {
    content: '·';
    margin: 0 0.4rem;
    color: #999;
}

.azarts-people__list-titles li + li::marker {
    margin: 0 0.4rem;
    color: #999;
}

.azarts-people__list-titles,
.azarts-people__list-titles li {
    list-style: none;
    list-style-type: none;
}

.azarts-people__list-titles li::marker {
    display: none;
    content: '';
}
.azarts-branch-sep {
    color: #AB0520; /* UA Red */
}
