/*
 * Art for Education — starter stylesheet for mpjprojects.org
 * Adapted from the This Photo Journey CSS supplied Nov 10, 2026.
 * Scope: apply 'afe-page' to one OUTER Elementor container wrapping the
 * full fundraiser page. Retain the existing tpj-* classes on child widgets.
 *
 * This is a deliberately reduced starter set, not an exact page clone.
 * Page layout, typography, and Loop Grid settings are still configured in Elementor.
 */

.afe-page {
  --tpj-charcoal: #2A241F;
  --tpj-charcoal-soft: #3A342F;
  --tpj-ivory: #F5F1E8;
  --tpj-cream: #E4D7BF;
  --tpj-body-light: #F3EEE6;
  --tpj-sand: #D8C29B;
  --tpj-slate: #334A63;
  --tpj-slate-hover: #26384C;
  --tpj-olive: #55624E;
  --tpj-text-dark: #4A4540;
  --tpj-card-border: rgba(42, 36, 31, .08);
  --tpj-card-shadow: 0 8px 24px rgba(30, 24, 20, .06);
  color: var(--tpj-text-dark);
}

/* Page sections and clean showroom hero */
.afe-page .tpj-section-light {
  background: var(--tpj-ivory);
  color: var(--tpj-text-dark);
}
.afe-page .tpj-section-light h2,
.afe-page .tpj-section-light h3 { color: var(--tpj-charcoal); }
.afe-page .tpj-section-dark {
  background: var(--tpj-charcoal);
  color: var(--tpj-body-light);
}
.afe-page .tpj-section-dark h2,
.afe-page .tpj-section-dark h3 { color: var(--tpj-cream); }
.afe-page .tpj-section-tight { padding-top: 50px; padding-bottom: 50px; }
.afe-page .tpj-text-narrow { max-width: 760px; }
.afe-page .tpj-text-editorial { max-width: 680px; }

.afe-page .tpj-hero-clean {
  position: relative;
  background: var(--tpj-ivory);
  min-height: auto;
  padding: 70px 5% 50px;
}
.afe-page .tpj-hero-clean.tpj-hero-cream {
  background: linear-gradient(180deg, var(--tpj-ivory), #efe6d8);
}
.afe-page .tpj-hero-clean h1,
.afe-page .tpj-hero-clean .tpj-hero-title { color: var(--tpj-charcoal); text-shadow: none; }
.afe-page .tpj-hero-clean p,
.afe-page .tpj-hero-clean .tpj-hero-text {
  color: var(--tpj-text-dark);
  text-shadow: none;
  max-width: 680px;
}

/* Eyebrow headings: class goes on the Elementor heading widget */
.afe-page .tpj-eyebrow .elementor-heading-title {
  color: var(--tpj-olive);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.afe-page .tpj-hero-clean .tpj-eyebrow .elementor-heading-title {
  color: var(--tpj-slate);
}
.afe-page .tpj-section-dark .tpj-eyebrow .elementor-heading-title {
  color: var(--tpj-sand);
}

/* Existing navy Elementor buttons */
.afe-page .tpj-btn .elementor-button,
.afe-page .tpj-btn-primary .elementor-button {
  background: var(--tpj-slate);
  color: #fff;
  border-radius: 8px;
  padding: 17px 30px;
  transition: background-color .25s ease;
}
.afe-page .tpj-btn .elementor-button:hover,
.afe-page .tpj-btn-primary .elementor-button:hover {
  background: var(--tpj-slate-hover);
  color: #fff;
}
.afe-page .tpj-btn-secondary .elementor-button {
  background: transparent;
  color: var(--tpj-slate);
  border: 1.5px solid var(--tpj-slate);
  border-radius: 8px;
  padding: 17px 30px;
  transition: background-color .25s ease, color .25s ease;
}
.afe-page .tpj-btn-secondary .elementor-button:hover {
  background: var(--tpj-slate);
  color: #fff;
}

/* Four quick-info pills */
.afe-page .tpj-info-strip {
  background: #efe6d8;
  border-top: 1px solid rgba(42, 36, 31, .06);
  border-bottom: 1px solid rgba(42, 36, 31, .06);
  padding: 18px 5%;
}
.afe-page .tpj-info-strip > .e-con-inner,
.afe-page .tpj-info-strip > .e-con {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.afe-page .tpj-info-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-height: 72px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(42, 36, 31, .06);
  text-align: center;
}
.afe-page .tpj-info-chip p,
.afe-page .tpj-info-chip .elementor-heading-title {
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

/* Card styles — the class tpj-sale-card is applied to each card container. */
.afe-page .tpj-card,
.afe-page .tpj-sale-card,
.afe-page .tpj-inventory-card {
  background: #fff;
  border: 1px solid var(--tpj-card-border);
  border-radius: 14px;
  box-shadow: var(--tpj-card-shadow);
  padding: 24px;
  min-width: 0;
  overflow: hidden;
}
.afe-page .tpj-card h3,
.afe-page .tpj-sale-card h3,
.afe-page .tpj-inventory-card h3 {
  color: var(--tpj-charcoal);
  margin-bottom: 8px;
}
.afe-page .tpj-card p,
.afe-page .tpj-sale-card p,
.afe-page .tpj-inventory-card p {
  color: var(--tpj-text-dark);
}
.afe-page .tpj-sale-meta,
.afe-page .tpj-inventory-meta {
  font-size: 15px;
  line-height: 1.5;
  color: var(--tpj-text-dark);
}
.afe-page .tpj-sale-status,
.afe-page .tpj-availability {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--tpj-olive);
}

/* Artwork image: protects portrait and panorama framing from forced cropping. */
.afe-page .afe-artwork-image img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: #f6f5f2;
}

/* Additional fields for the fundraising version of the existing card */
.afe-page .afe-original-price {
  color: #746d66;
  font-size: 14px;
  text-decoration: line-through;
}
.afe-page .afe-minimum-price,
.afe-page .afe-minimum-price .elementor-heading-title {
  color: var(--tpj-slate);
  font-size: 22px;
  font-weight: 700;
}
.afe-page .afe-inventory-number { color: #77716b; font-size: 13px; }
.afe-page .afe-status-available { color: #3f6c46; }
.afe-page .afe-status-reserved { color: #996b20; }
.afe-page .afe-status-sold { color: #666; }

/* Only use this class for a MANUAL grid of Elementor card containers.
 * For an Elementor Loop Grid, configure columns/spacing in the widget instead.
 */
.afe-page .tpj-inventory-grid,
.afe-page .tpj-inventory-grid > .e-con-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .afe-page .tpj-inventory-grid,
  .afe-page .tpj-inventory-grid > .e-con-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .afe-page .tpj-hero-clean { padding: 46px 24px 30px; }
  .afe-page .tpj-inventory-grid,
  .afe-page .tpj-inventory-grid > .e-con-inner { grid-template-columns: 1fr; gap: 22px; }
  .afe-page .tpj-info-strip { padding: 16px 24px; }
  .afe-page .tpj-info-chip { width: 100%; }
  .afe-page .tpj-sale-card,
  .afe-page .tpj-card,
  .afe-page .tpj-inventory-card { padding: 22px; }
  .afe-page .tpj-btn .elementor-button,
  .afe-page .tpj-btn-primary .elementor-button,
  .afe-page .tpj-btn-secondary .elementor-button { width: 100%; max-width: 320px; }
}

/* === Art for Education: inventory shortcode === */
.afe-page {width:100%;}
.afe-page > .e-con { width:100%; }
.afe-page .tpj-button-row {display:flex;gap:18px;flex-wrap:wrap;}
.afe-page .tpj-button-row > .elementor-element {flex:0 1 auto;}
.afe-page .tpj-section-dark { padding:54px 5%; }
.afe-page .tpj-card {padding:28px;}
.afe-page .tpj-section-tight {padding-left:5%; padding-right:5%;}
.afe-page .tpj-hero-clean {padding-left:5%;padding-right:5%;}

.afe-gallery {width:100%;max-width:1250px;margin:0 auto;color:#4A4540;}
.afe-gallery * {box-sizing:border-box;}
.afe-filter {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 28px;}
.afe-filter label {font-weight:600;}
.afe-filter select {border:1px solid #cfc6ba;border-radius:8px;padding:10px 12px;background:white;max-width:100%;}
.afe-filter button {border:0;border-radius:8px;background:#334A63;color:#fff;padding:11px 18px;cursor:pointer;}
.afe-filter button:hover {background:#26384C;}
.afe-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;align-items:stretch;}
.afe-gallery .afe-art-card {display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;background:#fff;border:1px solid rgba(42,36,31,.1);border-radius:14px;box-shadow:0 8px 24px rgba(30,24,20,.06);}
.afe-gallery .afe-artwork-image,.afe-gallery .afe-art-noimage {height:238px;display:flex;align-items:center;justify-content:center;background:#f5f1e8;padding:10px;}
.afe-gallery .afe-artwork-image img {display:block;width:100%;height:100%;object-fit:contain;object-position:center;}
.afe-gallery .afe-art-noimage {color:#6b655f;font-size:14px;text-align:center;}
.afe-gallery .afe-art-body {padding:22px 24px 24px;display:flex;flex-direction:column;flex:1;}
.afe-gallery .afe-art-body h3 {font-size:21px;line-height:1.25;margin:0 0 6px;color:#2A241F;}
.afe-gallery .afe-location {font-size:14px;color:#726961;margin-bottom:12px;}
.afe-gallery .afe-description {margin:0 0 12px;font-size:15px;line-height:1.45;}
.afe-gallery .afe-details {font-size:14px;line-height:1.5;margin-bottom:12px;}
.afe-gallery .afe-original-price {font-size:14px;color:#746d66;margin-top:auto;padding-top:8px;}
.afe-gallery .afe-minimum-price {font-size:19px;line-height:1.35;font-weight:700;color:#334A63;margin:4px 0 8px;}
.afe-gallery .afe-inventory-number {font-size:12px;color:#77716b;letter-spacing:.02em;}
.afe-gallery .tpj-sale-status {font-size:14px;font-weight:700;margin:12px 0 14px;}
.afe-gallery .afe-status-available {color:#3f6c46;}
.afe-gallery .afe-status-reserved {color:#996b20;}
.afe-gallery .afe-status-sold {color:#666;}
.afe-gallery .afe-claim-btn {display:inline-block;text-align:center;text-decoration:none;background:#334A63;color:#fff;border:0;border-radius:8px;padding:14px 20px;font:600 15px/1.3 inherit;cursor:pointer;}
.afe-gallery .afe-claim-btn:hover,.afe-gallery .afe-claim-btn:focus-visible {background:#26384C;color:#fff;}
.afe-gallery .afe-unavailable {color:#77716b;font-size:13px;margin-top:auto;}
.afe-gallery .afe-pagination {display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:28px 0 32px;}
.afe-gallery .afe-pagination a,.afe-gallery .afe-pagination span {min-width:38px;display:inline-block;padding:9px 12px;border:1px solid #ccc2b4;border-radius:6px;text-align:center;text-decoration:none;color:#334A63;}
.afe-gallery .afe-pagination [aria-current="page"] {background:#334A63;color:#fff;border-color:#334A63;}
.afe-gallery .afe-form-wrap,.afe-gallery .afe-notice,.afe-gallery .afe-empty {background:#fff;border:1px solid #e4d7bf;border-radius:14px;padding:24px;margin:26px 0;box-shadow:0 8px 24px rgba(30,24,20,.05);}
.afe-gallery .afe-form-wrap h3 {margin-top:0;color:#2A241F;}
.afe-gallery .afe-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.afe-gallery .afe-form-wrap label {display:block;font-size:14px;font-weight:600;margin:14px 0;}
.afe-gallery .afe-form-wrap input:not([type=checkbox]),.afe-gallery .afe-form-wrap select,.afe-gallery .afe-form-wrap textarea {display:block;width:100%;padding:12px;border:1px solid #bcb3a8;border-radius:7px;background:#fff;margin-top:5px;font:inherit;color:#2A241F;}
.afe-gallery .afe-form-wrap .afe-confirm {display:flex;gap:10px;align-items:flex-start;font-weight:400;}
.afe-gallery .afe-form-wrap .afe-confirm input {margin-top:3px;}
.afe-gallery .afe-smallprint {font-size:13px;color:#776e65;margin-bottom:0;}
.afe-gallery .afe-error {color:#9c2222;font-weight:600;}
.afe-gallery .afe-hp {position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
@media (max-width:1024px){.afe-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:767px){.afe-grid{grid-template-columns:1fr;gap:22px}.afe-gallery .afe-fields{grid-template-columns:1fr}.afe-gallery .afe-art-body{padding:20px}.afe-page .tpj-section-tight{padding-left:24px;padding-right:24px}.afe-page .tpj-section-dark{padding:42px 24px}}

/* v0.1.1: explicit contrast corrections for MPJ's theme (Elementor Free). */
.afe-page .tpj-section-dark .elementor-widget-heading .elementor-heading-title,
.afe-page .tpj-section-dark h1,
.afe-page .tpj-section-dark h2,
.afe-page .tpj-section-dark h3 { color: #e4d7bf !important; }
.afe-page .tpj-section-dark .elementor-widget-text-editor,
.afe-page .tpj-section-dark .elementor-widget-text-editor p { color: #f3eee6 !important; }
.afe-page .tpj-btn .elementor-button,
.afe-page .tpj-btn-primary .elementor-button { background: #334A63 !important; color: #fff !important; border-color:#334A63 !important; }
.afe-page .tpj-btn .elementor-button:hover,
.afe-page .tpj-btn-primary .elementor-button:hover { background:#26384C !important; color:#fff !important; }
.afe-page .tpj-btn-secondary .elementor-button { background: transparent !important; color:#334A63 !important; border:1.5px solid #334A63 !important; }
.afe-page .tpj-btn-secondary .elementor-button:hover { background:#334A63 !important;color:#fff !important; }
.afe-page .tpj-section-dark .tpj-btn-secondary .elementor-button { color:#f3eee6 !important; border-color:#d8c29b !important; }
.afe-page .tpj-section-dark .tpj-btn-secondary .elementor-button:hover {background:#e4d7bf !important;color:#2A241F !important;}
.afe-gallery .afe-question-link { display:block; text-align:center; color:#334A63; margin-top:12px; padding:8px; text-decoration:underline; font-size:14px; font-weight:600; }
.afe-gallery .afe-question-link:hover, .afe-gallery .afe-question-link:focus-visible {color:#26384C;}
.afe-gallery .afe-updates-choice {font-weight:400; background:#f5f1e8; border-radius:8px; padding:12px;}


/* v0.1.2: category filter and final-theme contrast polish. */
.afe-gallery .afe-filter { align-items:end; }
.afe-gallery .afe-filter label { flex: 0 0 100%; margin: 0; }
.afe-gallery .afe-filter select {
  display:inline-block; flex: 0 1 360px; width: min(100%,360px) !important;
  max-width:360px; min-width:0; margin:0;
}
.afe-gallery .afe-filter button { flex: 0 0 auto; margin:0; }
/* The original gallery-price caption stays readable; only the dollar figure is crossed out. */
.afe-gallery .afe-original-price { text-decoration: none !important; }
.afe-gallery .afe-original-price s { text-decoration: line-through; }
/* Stronger theme-independent text overrides inside this specific section. */
body .tpj-section-dark .elementor-widget-text-editor,
body .tpj-section-dark .elementor-widget-text-editor .elementor-widget-container,
body .tpj-section-dark .elementor-widget-text-editor p,
body .tpj-section-dark .elementor-widget-text-editor p span,
body .tpj-section-dark .elementor-widget-text-editor strong {
  color: #f3eee6 !important;
  opacity: 1 !important;
}
body .tpj-section-dark .elementor-heading-title { color: #e4d7bf !important; }
@media (max-width:767px) {
  .afe-gallery .afe-filter select { flex-basis:100%; max-width:100%; width:100% !important; }
}

/* 0.1.3: AJAX subject browse; compact explanatory pickup note. */
.afe-gallery .afe-filter button:disabled { opacity: .65; cursor: progress; }
.afe-gallery .afe-filter-error { color: #9c2222; font-weight: 600; }
.afe-gallery .afe-fulfillment-note { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: #635a50; margin: 0; }
