/* ==========================================================
   ANTI MUSE ISOLATED EDITORIAL CASTINGS ENGINE
   ========================================================== */

/* Page Background Overhaul for Structural Contrast */
.editorial-body-bg {
  background-color: #f7f7f7; /* Very subtle off-white to make pure white cards pop crisp */
}

/* Hero Section */
.castings-hero-header {
  padding: 80px 0 40px 0;
}

.castings-context-label {
  font-size: var(--fs-meta, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted, #777);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}

.castings-main-title {
  font-size: clamp(2.6rem, 6vw, 4.8rem) !important;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.03em;
}

/* --- Crisp Structural Filter Row --- */
.castings-filter-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--text-dark, #111);
  margin-bottom: 50px;
  background-color: var(--bg-white, #fff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.filter-group-node {
  display: flex;
  flex-direction: column;
  padding: 25px 30px;
  border-right: 1px solid var(--text-dark, #111);
}

.filter-group-node:last-child {
  border-right: none;
}

.filter-group-node label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--text-muted, #666);
  margin-bottom: 10px;
}

.select-wrapper {
  position: relative;
  width: 100%;
}
.select-wrapper::after {
  content: "↓";
  font-size: 0.8rem;
  color: var(--text-dark, #111);
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.filter-select-engine {
  width: 100%;
  padding: 8px 24px 8px 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  font-family: inherit;
  font-size: var(--fs-body, 1rem);
  color: var(--text-dark, #111);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.filter-select-engine:focus {
  outline: none;
}

/* --- Isolated Architectural Card Track --- */
.castings-deck-track {
  display: flex;
  flex-direction: column;
  gap: 40px; /* Strong uniform structural separation */
  padding-bottom: 120px;
}

/* The Isolated Block Box */
.casting-editorial-card {
  display: grid;
  grid-template-columns: 7.5fr 4.5fr; /* Twin-column asymmetrical split */
  gap: 0;
  background-color: var(--bg-white, #fff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 2px;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Structural Interaction Focus states */
.casting-editorial-card:hover {
  border-color: var(--text-dark, #111);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

/* Left Panel: Primary Content Context */
.card-primary-content {
  padding: 50px;
  display: flex;
  flex-direction: column;
}

.card-identity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.casting-brand-tag {
  font-size: var(--fs-meta, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--text-muted, #666);
}

/* Premium Technical Status Shield */
.status-architectural-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border: 1px solid var(--text-dark, #111);
  background-color: transparent;
  color: var(--text-dark, #111);
}
.status-architectural-badge.active {
  background-color: var(--text-dark, #111);
  color: var(--bg-white, #fff);
}
.status-architectural-badge.closing {
  border-color: #c2410c;
  color: #c2410c;
}

/* Typography Scale Inner */
.casting-display-title {
  margin: 0 0 20px 0;
  line-height: 1.15;
}
.casting-display-title a {
  font-family: var(--font-serif, serif);
  font-size: var(--fs-h1, 2.2rem);
  font-weight: 400;
  color: var(--text-dark, #111);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.casting-display-title a:hover {
  opacity: 0.6;
}

.casting-editorial-brief {
  color: #444;
  line-height: 1.7;
  font-size: calc(var(--fs-body) * 1.05);
  margin: 0 0 40px 0;
  text-align: justify;
  max-width: 90%;
}

/* Action Trigger Baseline Layout */
.card-action-baseline {
  margin-top: auto; /* Aligns layout action smoothly to card floor */
}

.prestige-card-btn {
  display: inline-block;
  font-size: var(--fs-meta, 0.75rem);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-white, #fff);
  background-color: var(--text-dark, #111);
  text-decoration: none;
  padding: 14px 28px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
.prestige-card-btn:hover {
  background-color: transparent;
  color: var(--text-dark, #111);
  box-shadow: inset 0 0 0 1px var(--text-dark, #111);
}
.prestige-card-btn .arrow-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  margin-left: 6px;
}
.prestige-card-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* Right Panel: Clean Hard-Edged Info Sidebar Layout */
.card-spec-sidebar {
  background-color: #fafafa;
  border-left: 1px solid var(--border-color, #e0e0e0);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Smooth border color synchronization when parent card triggers focus */
.casting-editorial-card:hover .card-spec-sidebar {
  border-left-color: var(--text-dark, #111);
}

.sidebar-spec-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 40px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}
.sidebar-spec-node:last-child {
  border-bottom: none;
}

/* Synchronize interior line shifts on hover */
.casting-editorial-card:hover .sidebar-spec-node {
  border-bottom-color: #e5e5e5;
}

.node-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted, #888);
  margin-bottom: 6px;
}

.node-value {
  font-size: var(--fs-body, 1rem);
  color: var(--text-dark, #111);
  font-weight: 500;
}

/* Specialized Budget Focus Block Node */
.highlight-node {
  background-color: #f3f3f3;
}
.financial-text {
  font-family: var(--font-serif, serif);
  font-size: var(--fs-h2, 1.5rem);
  font-weight: 400;
  color: var(--text-dark, #111);
}

/* ==========================================================
   FLUID RESPONSIVE VIEWPORT BREAKPOINT CONFIGURATION
   ========================================================== */

@media (max-width: 1100px) {
  .casting-editorial-card {
    grid-template-columns: 1fr; /* Convert block to stacked layer matrix */
  }

  .card-spec-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-color, #e0e0e0);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-spec-node {
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    border-right: 1px solid var(--border-color, #e0e0e0);
    padding: 25px 30px;
  }

  .sidebar-spec-node:nth-child(2n) {
    border-right: none;
  }

  .sidebar-spec-node:nth-child(3),
  .sidebar-spec-node:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .castings-filter-matrix {
    grid-template-columns: 1fr;
    border-bottom: none;
  }

  .filter-group-node {
    border-right: none;
    border-bottom: 1px solid var(--text-dark, #111);
    padding: 20px;
  }

  .card-primary-content {
    padding: 35px;
  }

  .casting-display-title a {
    font-size: 1.8rem;
  }

  .casting-editorial-brief {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 550px) {
  .card-spec-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-spec-node {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color, #e0e0e0) !important;
    padding: 20px 35px;
  }

  .sidebar-spec-node:last-child {
    border-bottom: none !important;
  }
}
