/* Market Pulse — mirrors pulse.zerodha.com (cream bg, 3-col cards, wordcloud). Scoped under .pulse-wrap. */
.pulse-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.pulse-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 0.5rem; }
.pulse-head h1 { font-size: 1.75rem; font-weight: 900; margin: 0; }
.pulse-head .intro { margin: 0.25rem 0 0; font-size: 0.8rem; line-height: 1.5; color: #999; max-width: 460px; }
.pulse-search { display: flex; gap: 0.5rem; align-items: center; }
.pulse-search input {
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 8px 50%;
  padding: 6px 8px 6px 28px; font-size: 0.85rem; border: 1px solid #ccc; border-radius: 6px; width: 220px;
}
.pulse-search input:focus { border-color: var(--primary); outline: none; }
.pulse-updated { font-size: 0.75rem; color: #999; }

.pulse-cloud { margin: 1rem 0 1.25rem; font-size: 0.95rem; }
.pulse-cloud label { color: var(--primary); margin-right: 12px; font-weight: 700; }
.pulse-cloud a { margin-right: 8px; color: var(--foreground); text-decoration: none; }
.pulse-cloud a:hover { color: var(--primary); }

.pulse-grid { columns: 3; column-gap: 2rem; }
.pulse-card { min-width: 0; break-inside: avoid; margin-bottom: 1.75rem; }
.pulse-card h2 { font-weight: 900; font-size: 1.15rem; line-height: 1.35; margin: 0 0 0.5rem; }
.pulse-card h2 a { color: var(--foreground); text-decoration: none; }
.pulse-card h2 a:hover { color: var(--primary); }
.pulse-card .desc { font-size: 0.85rem; line-height: 1.5; color: #333; margin-bottom: 0.35rem; }
.pulse-card .meta { font-size: 0.78rem; color: #777; }
.pulse-card .similar { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed #aaa; font-size: 0.82rem; font-weight: 900; line-height: 1.35; }
.pulse-card .similar li { margin-bottom: 0.6rem; list-style: none; }
.pulse-card .similar ul { margin: 0; padding: 0; }
.pulse-card .similar .title2 { display: block; color: #666; font-weight: 900; text-decoration: none; }
.pulse-card .similar .title2:hover { color: var(--primary); }
.pulse-card .similar .meta { font-weight: 400; }

/* 250x250 ad units woven between cards — fixed box so layout never shifts */
.pulse-grid .ad-slot { width: 250px !important; max-width: 100%; min-height: 250px; margin: 0 auto 1.75rem !important; break-inside: avoid; }

.pulse-loading, .pulse-empty { column-span: all; text-align: center; color: #777; padding: 2rem 0; }
.pulse-more { text-align: center; font-size: 0.82rem; color: #777; padding: 1.25rem 0 0.5rem; cursor: pointer; }
.pulse-more:empty { display: none; }

@media (max-width: 1024px) { .pulse-grid { columns: 2; } }
@media (max-width: 640px) {
  .pulse-wrap { padding: 1rem; }
  .pulse-grid { columns: 1; }
  .pulse-card { box-shadow: 2px 2px 0 #f3f3f3; border: 1px solid #ddd; padding: 15px; background: #fff; }
}

/* ---- Layout: main takes full width (no sidebar) ---- */
.layout-container { display: flex; align-items: flex-start; }
.layout-container > main { flex: 1 1 0%; min-width: 0; }