/**
 * ACCRF Global Styles
 *
 * Typography, colors, and fonts are controlled by Avada Theme Options.
 * DO NOT add !important overrides here — they prevent builder editing.
 * This file is ONLY for structural layout CSS that Avada can't handle natively.
 */

/* ============================================================
   Patient Champions Card Grid (shortcode output)
   ============================================================ */
.accrf-champions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.accrf-champion-card {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}

.accrf-champion-image img {
    width: 100%;
    height: auto;
    display: block;
}

.accrf-champion-content {
    padding: 15px 0;
}

.accrf-champion-name {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 12px 0;
}

.accrf-champion-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.accrf-champion-link {
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 8px 20px;
    display: inline-block;
    transition: all 0.2s;
}

.accrf-champion-link:hover {
    border-color: #336db3;
    color: #336db3;
}

@media (max-width: 768px) {
    .accrf-champion-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ============================================================
   Patient Events Table (shortcode output)
   ============================================================ */
.table-1 table {
    width: 100%;
    border-collapse: collapse;
}

.table-1 th {
    background: #f5f5f5;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.table-1 td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

/* ============================================================
   Email Updates Archive (shortcode output)
   ============================================================ */
.accrf-updates-list {
    max-width: 800px;
}

.accrf-update-item {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.accrf-update-date {
    min-width: 100px;
    font-size: 14px;
}

.accrf-update-link {
    font-size: 15px;
}

/* ============================================================
   Research Champions Card Grid (shortcode output)
   ============================================================ */
.accrf-research-champions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.accrf-research-champion-card {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    background: #fff;
    overflow: hidden;
}

.accrf-research-champion-image img {
    width: 100%;
    height: auto;
    display: block;
}

.accrf-research-champion-content {
    padding: 15px 0;
}

.accrf-research-champion-name {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 12px 0;
}

.accrf-research-champion-name a {
    text-decoration: none;
}

.accrf-research-champion-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.accrf-research-champion-link {
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 8px 20px;
    display: inline-block;
    transition: all 0.2s;
}

.accrf-research-champion-link:hover {
    border-color: #336db3;
    color: #336db3;
}

@media (max-width: 768px) {
    .accrf-research-champion-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ============================================================
   Leadership Bio Layout (float clearfix for inline HTML bios)
   ============================================================ */
div#leadership {
    overflow: hidden;
    clear: both;
    margin-bottom: 20px;
}


/* ============================================================
   Footer CTA Box (email signup box used across many pages)
   ============================================================ */
.footer-bloc {
    width: 100%;
    max-width: 800px;
    padding: 25px 35px;
    background: #f5f5f5;
    border: 10px solid #e4e4e4;
    font-size: 1.2em;
    margin: 20px auto;
    color: #5f727f;
    text-align: center;
    line-height: 1.5;
}

/* ============================================================
   Hide the DataTables "Showing 1 to N of N entries" bar.
   Client request, 2026-08-23. Applies to the physician list,
   clinical trial tables and published article table.
   ============================================================ */
.dataTables_wrapper .dataTables_info {
    display: none;
}



/* ============================================================
   LEADERSHIP PAGE - one headshot per entry
   Matches accrf.org. Each name/title paragraph contains its own
   floated photo, so the next entry starts below it instead of
   the photos stepping diagonally across the page.
   ============================================================ */
.page-id-19497 #main p:has(img) {
    overflow: hidden;
}

@media (max-width: 640px) {
    .page-id-19497 #main img.alignleft {
        float: none;
        display: block;
        margin: 0 0 12px 0;
    }
}


/* ------------------------------------------------------------------
   PATIENT CHAMPION CARD TITLES — client review 21 Aug 2026:
   landing-card titles should match the site's heading blue.
   The h4s are output by the accrf_patient_champions shortcode and
   otherwise inherit Avada's global H4 (dark). Scoped to the card only.
   ------------------------------------------------------------------ */
.accrf-champion-content h4.accrf-champion-name {
  color: #336db3 !important;
}


/* ------------------------------------------------------------------
   MOBILE FIXES — Murray, 31 Aug 2026
   1) Floated content images have no bottom margin (Avada default), so
      on phones text wraps under them with no gap. Below 640px, give
      them one. Mobile-only at Murray's choice — desktop unchanged.
   2) TablePress tables (Second Opinions) render wider than the phone
      viewport inside a clipping wrapper — allow sideways scroll,
      matching the physician and trials tables.
   ------------------------------------------------------------------ */
@media (max-width: 640px) {
  #main img.alignleft,
  #main img.alignright {
    margin-bottom: 19px !important;
  }
}
.dt-layout-cell.dt-layout-full { overflow-x: auto; }


/* ------------------------------------------------------------------
   CLIENT FINAL REVIEW FIXES — 14 Oct 2026
   ------------------------------------------------------------------ */

/* Monitoring: table cell lines and spacing, matching accrf.org */
.monitoring-framework {
  border-collapse: collapse;
  width: 100%;
}
.monitoring-framework td {
  border: 1px solid #dfe5e8;
  padding: 5px 10px;
  vertical-align: middle;
}

/* Advanced Disease: on phones the 4-column treatment table is wider
   than the screen. Let it scroll sideways instead of running off the edge. */
@media (max-width: 640px) {
  .treatment-framework {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Kara Gelb Memorial Grant: on phones, stack each recipient photo above
   the name instead of squeezing the name beside it (same as Leadership). */
@media (max-width: 640px) {
  .page-id-2961 #main img.alignleft {
    float: none;
    display: block;
    margin: 0 0 12px 0;
  }
}

/* Physician list and clinical trial tables: tighter cell padding so the
   full table fits on normal desktop screens, and an always-visible
   sideways scrollbar (Mac hides scrollbars by default, so columns past
   the edge looked cut off). */
table.dataTable.accrf-physician-list-table thead th,
table.dataTable.accrf-physician-list-table tbody td,
table.dataTable.accrf-clinical-trial-table thead th,
table.dataTable.accrf-clinical-trial-table tbody td {
  padding-left: 8px;
  padding-right: 8px;
}
.dataTables_scrollBody::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}
.dataTables_scrollBody::-webkit-scrollbar-track {
  background: #eef1f3;
}
.dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: #9aa8b2;
  border-radius: 6px;
}
