.layout {
    gap: 40px;
}

.subMainTitle {
    background-color: #fdfdfd; 
    padding: 8px 0;
    font-size: 32px;                 
    font-weight: 900;
    text-align: center;
    color: #0f172a;                  
    font-family: 'Georgia', 'Times New Roman', serif;  
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 0 14px 0;
}

.stay-up {
    min-height: 30px;
}

/*Content for Left Column*/

.market-title {
    width: 100%;
    position: relative;
    margin: 0 auto;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;    
}

#sp500-chart {
    min-height: 245px;
}

/*CNBC Article Card*/
.article-card-leftcol {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.article-card-leftcol:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.left-card-thumb {
    background-size: cover;
    background-position: center;
    height: 140px;
}

.left-card-info {
    padding: 12px 10px;
}

.left-card-source {
    font-size: 0.75rem;
    color: #64748b; /* muted slate */
}

.left-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}


/*Mortgage Tool*/
.tool-mortgage-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 100%;
}

.tool-mortgage-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tool-mortgage-icon {
  font-size: 1.8rem;
  /*border: 1px solid #94a3b8;*/
  padding: 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at top,
    #fde68a 0%,        
    #fcd34d 15%,       
    #bae6fd 35%,
    #bae6fd 50%,       
    #86efac 70%,      
    #22c55e 100%    
  );
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.4),
              0 2px 6px rgba(0, 0, 0, 0.1);
}

.tool-mortgage-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.tool-mortgage-sub {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.tool-mortgage-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-mortgage-launch {
  display: inline-flex;
  align-self: flex-start;
  align-self: center;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  width: auto;
  max-width: 100%;
  padding: 8px 20px;
  border: 2px solid #1a202c;
  border-radius: 10px;
  background-color: #eef2f6;
  color: #1a202c;
  text-decoration: none;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tool-mortgage-launch:hover {
  background-color: #1a202c;
  color: #eef2ff;
  border-color: #1a202c;
}

.tool-mortgage-launch svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/*Redfin Article Card*/
.housing-external-card {
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 0 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}

.housing-external-card:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.housing-ext-img {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 140px;
}

.housing-ext-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px 12px;
}

.housing-ext-meta-wrap {
  font-size: 13px;
  color: #6b7280;
}

.housing-ext-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.housing-ext-summary {
  font-size: 0.9rem;
  line-height: 1.35;
  color: #374151;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}