/*=================== Home page editor ===================*/
.hp-tabs {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 6px;
    margin-bottom: 22px;
    background: var(--dash-surface);
    border: 1px solid var(--dash-line);
    border-radius: 12px;
}
.hp-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #b7b7c3;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}
.hp-tab:hover { color: #fff; background: var(--dash-surface-2); }
.hp-tab.active { background: var(--dash-gold-soft); color: var(--dash-gold); }

/*=================== section cards ===================*/
.hp-section { transition: opacity .25s ease; }
.hp-section.is-off { opacity: .5; }
.hp-switch-inline { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dash-muted); margin: 0; }
.hp-head-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-card-sub b { color: var(--dash-gold); }

.hp-sub  { min-height: 78px; }
.hp-copy { min-height: 120px; }
.hp-narrow { max-width: 220px; }
.hp-upload-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.hp-path { font-family: monospace; font-size: 12px; padding: 8px 11px; }
.hp-side {
    margin-left: 6px;
    font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none;
    color: var(--dash-muted);
}
.hp-edit-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap;
    margin: 22px 0 12px;
    padding-top: 16px;
    border-top: 1px dashed var(--dash-line-soft);
}
.hp-edit-note { margin: 0; font-size: 12.5px; font-weight: 700; color: #d5d5de; }
.hp-source {
    display: inline-flex; align-items: center; gap: 5px;
    margin-left: 8px;
    font-size: 11.5px; font-weight: 400;
    color: var(--dash-gold);
}
.hp-source:hover { color: #fff; }

/*=================== mini repeat rows ===================*/
.hp-rows { display: flex; flex-direction: column; gap: 10px; }
.hp-mini {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    border-radius: 10px;
}
.hp-mini-no {
    flex: 0 0 24px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    margin-top: 5px;
    background: var(--dash-gold-soft);
    border-radius: 7px;
    font-size: 11.5px; font-weight: 700;
    color: var(--dash-gold);
}
.hp-mini-fields { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hp-mini-fields .dash-input { padding: 8px 11px; font-size: 12.5px; }
.hp-mini-fields .hp-t { font-weight: 700; }
.hp-mini-fields .hp-i { font-family: monospace; font-size: 11.5px; }
.hp-mini-tools { display: flex; gap: 5px; margin-top: 3px; }

/*=================== logos / photos / stats ===================*/
.hp-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.hp-logo, .hp-photo {
    position: relative;
    margin: 0;
    background: #000;
    border: 1px solid var(--dash-line);
    border-radius: 10px;
    overflow: hidden;
}
.hp-logo img { width: 100%; height: 52px; object-fit: contain; padding: 8px; display: block; }
.hp-logo figcaption, .hp-photo figcaption {
    padding: 6px 9px;
    font-size: 11px;
    font-family: monospace;
    color: var(--dash-muted);
    word-break: break-all;
}
.hp-logo .dash-act, .hp-photo .dash-act {
    position: absolute; top: 5px; right: 5px;
    width: 22px; height: 22px; font-size: 10px;
    background: rgba(0, 0, 0, .75);
}
.hp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.hp-photo img { width: 100%; height: 90px; object-fit: cover; display: block; }

.hp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hp-stat {
    position: relative;
    display: flex; flex-direction: column; gap: 7px;
    padding: 14px 12px 12px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    border-radius: 10px;
}
.hp-stat .dash-act { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; font-size: 10px; }
.hp-stat .dash-input { padding: 8px 11px; font-size: 12.5px; }
.hp-stat-value { font-family: 'Arial Black', Arial, sans-serif; color: var(--dash-gold); }
.hp-stat-title { font-weight: 700; }

/*=================== recap cards ===================*/
.hp-recaps {
    margin-top: 20px;
    padding: 16px;
    background: rgba(147, 128, 72, .05);
    border: 1px dashed var(--dash-line);
    border-radius: var(--dash-radius);
}
.hp-recaps-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.hp-recaps-head p { margin: 0; font-size: 12.5px; color: #c6c6d1; }
.hp-recaps-head .bi-info-circle { color: var(--dash-gold); margin-right: 6px; }
.hp-recaps-head b { color: var(--dash-gold); }
.hp-recap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hp-recap { margin: 0; background: #000; border: 1px solid var(--dash-line); border-radius: 10px; overflow: hidden; }
.hp-recap img { width: 100%; height: 80px; object-fit: cover; display: block; }
.hp-recap figcaption { padding: 9px 10px; }
.hp-recap-date {
    display: block; margin-bottom: 4px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    color: var(--dash-gold);
}
.hp-recap p { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.3; }
.hp-recap small { font-size: 11.5px; color: var(--dash-muted); }

/*=================== sidebar ===================*/
.hp-preview { margin: 0; padding-left: 18px; }
.hp-preview li {
    list-style: decimal;
    padding: 7px 0;
    border-bottom: 1px dashed var(--dash-line-soft);
    font-size: 13px;
    color: #cfcfd8;
    cursor: pointer;
}
.hp-preview li:last-child { border-bottom: 0; }
.hp-preview li:hover { color: var(--dash-gold); }
.hp-preview li.is-off { text-decoration: line-through; color: #55555f; }
.hp-quick { display: flex; flex-direction: column; gap: 10px; }
.hp-save  { display: flex; flex-direction: column; gap: 10px; }
.hp-note { margin: 0 0 14px; font-size: 12.5px; color: var(--dash-muted); line-height: 1.55; }

@media (max-width: 1199.98px) { .hp-recap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) { .hp-stats { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
    .hp-tab { flex: 1 1 100%; justify-content: center; }
    .hp-recap-grid { grid-template-columns: 1fr; }
}

/*=================== testimonial quotes ===================*/
.hp-switch-field {
    height: 43px;
    padding: 0 14px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    border-radius: 9px;
    justify-content: space-between;
}
.hp-count {
    margin-left: 8px;
    padding: 1px 9px;
    background: var(--dash-gold-soft);
    border-radius: 999px;
    font-size: 11px;
    color: var(--dash-gold);
}

.hp-quotes { display: flex; flex-direction: column; gap: 14px; }
.hp-quote {
    padding: 14px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
    transition: border-color .25s ease;
}
.hp-quote:hover { border-color: rgba(147, 128, 72, .45); }
.hp-quote-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }

.hp-quote-avatar { position: relative; flex: 0 0 64px; width: 64px; height: 64px; }
.hp-quote-avatar img {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: 50%;
    background: #000;
    border: 1px solid var(--dash-line);
}
.hp-quote-upload {
    position: absolute; right: -3px; bottom: -3px;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dash-gold);
    border-radius: 50%;
    color: #000;
    font-size: 11px;
    cursor: pointer;
    transition: background .2s ease;
}
.hp-quote-upload:hover { background: #a8944f; }

.hp-quote-fields { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hp-quote-row { display: flex; gap: 7px; }
.hp-quote-row .hp-q-name { flex: 1 1 auto; font-weight: 700; }
.hp-quote-row .hp-q-order { flex: 0 0 78px; text-align: center; color: var(--dash-gold); font-weight: 700; }
.hp-quote-fields .dash-input { padding: 8px 11px; font-size: 12.5px; }
.hp-quote-tools { display: flex; flex-direction: column; gap: 5px; }

.hp-q-text { min-height: 84px; font-size: 13px; margin-bottom: 8px; }
.hp-q-img { width: 100%; }

@media (max-width: 575.98px) {
    .hp-quote-top { flex-wrap: wrap; }
    .hp-quote-tools { flex-direction: row; width: 100%; justify-content: flex-end; }
}

/*=================== event cards (Latest Episodes card look) ===================*/
.hp-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 14px;
    align-items: stretch;
}
.hp-event {
    display: flex; flex-direction: column;
    height: 100%;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease;
}
.hp-event:hover { border-color: var(--dash-gold); transform: translateY(-2px); }

/* poster on top, the way the spotlight cards read */
.hp-event-thumb { position: relative; flex: 0 0 auto; height: 140px; background: #000; overflow: hidden; }
.hp-event-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-event-thumb .js-go-upload {
    position: absolute; left: 8px; bottom: 8px;
    width: 26px; height: 26px;
    font-size: 11px;
    background: rgba(0, 0, 0, .7);
}

/* the body reads like a spotlight card - see dashboard.css */

/* actions sit in their own bar along the bottom */
.hp-event-tools {
    flex: 0 0 auto; margin-top: auto;
    display: flex; flex-direction: row; gap: 6px; justify-content: flex-end;
    padding: 10px 14px;
    border-top: 1px solid var(--dash-line-soft);
}
.hp-event-tools .dash-act { width: 28px; height: 28px; font-size: 12px; }

/* the add tile */
.hp-add-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 150px;
    padding: 12px;
    background: transparent;
    border: 1px dashed var(--dash-line);
    color: var(--dash-muted);
    font-size: 12.5px; font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
.hp-add-card:hover { border-color: var(--dash-gold); color: var(--dash-gold); background: var(--dash-gold-soft); }
.hp-add-card .bi { font-size: 20px; }

/*=================== the add picker ===================*/
.hp-pick-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 4px;
}
.hp-pick {
    display: flex; align-items: center; gap: 11px;
    padding: 11px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    cursor: pointer;
    transition: all .2s ease;
}
.hp-pick:hover { border-color: var(--dash-gold); }
.hp-pick.is-on { border-color: var(--dash-gold); background: var(--dash-gold-soft); }
.hp-pick-check { flex: 0 0 auto; margin: 0; accent-color: var(--dash-gold); cursor: pointer; }
.hp-pick-check:disabled { cursor: not-allowed; opacity: .4; }
.hp-pick-thumb { flex: 0 0 58px; height: 58px; overflow: hidden; background: #000; }
.hp-pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-pick-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hp-pick-city { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dash-gold); }
.hp-pick-title { font-size: 13px; font-weight: 700; color: #fff; }
.hp-pick-meta { font-size: 11.5px; color: var(--dash-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/*=================== partner logo row (Where Performance Meets Partnership) ===================*/
.hp-plogos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 12px; }
.hp-plogo {
    display: flex; align-items: center; gap: 11px;
    padding: 11px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    transition: border-color .2s ease;
}
.hp-plogo:hover { border-color: var(--dash-gold); }
.hp-plogo-thumb {
    position: relative;
    flex: 0 0 76px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--dash-line);
    overflow: hidden;
}
.hp-plogo-thumb img { max-width: 84%; max-height: 72%; width: auto; height: auto; object-fit: contain; display: block; padding: 0; }
.hp-plogo-thumb .js-logo-upload {
    position: absolute; right: 3px; bottom: 3px;
    width: 22px; height: 22px;
    font-size: 10px;
    background: rgba(0, 0, 0, .72);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}
.hp-plogo-fields { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hp-plogo-fields .dash-input { padding: 7px 10px; font-size: 12.5px; }
.hp-plogo-fields .hp-plogo-alt { font-weight: 700; }
.hp-plogo-fields .hp-plogo-path { font-family: monospace; font-size: 11px; }
.hp-plogo-tools { flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; }
.hp-plogo-tools .dash-act { width: 26px; height: 26px; font-size: 11px; }

/*=================== AdMedia intro paragraphs ===================*/
.am-paras .am-para { align-items: flex-start; }
.am-paras .hp-mini-no { margin-top: 6px; }
.am-para-text { min-height: 92px; width: 100%; }
.am-paras .hp-mini-tools { margin-top: 2px; }

/*=================== AdMedia team row (same card as the CMORoom page) ===================*/
.am-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    align-items: stretch;
}
.am-card {
    display: flex; align-items: center; gap: 11px;
    padding: 10px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    transition: border-color .2s ease;
}
.am-card:hover { border-color: var(--dash-gold); }
.am-team-photo { position: relative; flex: 0 0 54px; width: 54px; height: 54px; overflow: hidden; background: #000; }
.am-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-team-order {
    position: absolute; left: 0; bottom: 0;
    padding: 1px 5px;
    background: rgba(0, 0, 0, .72);
    font-size: 9.5px; font-weight: 700;
    color: var(--dash-gold);
}
.am-team-info { flex: 1 1 auto; min-width: 0; }
.am-team-name { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: #fff; }
.am-team-role { margin: 0; font-size: 11.5px; color: var(--dash-muted); }
.am-team-flag { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 10.5px; color: #6d6d78; }
.am-team-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; }
.am-team-actions .dash-act { width: 26px; height: 26px; font-size: 11px; }
.am-add-card {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 76px;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--dash-line);
    color: var(--dash-muted);
    font-size: 12.5px; font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
.am-add-card:hover { border-color: var(--dash-gold); color: var(--dash-gold); background: var(--dash-gold-soft); }
.am-add-card .bi { font-size: 16px; }
