
/* ============================================================
   THSINVESTOR - Indian Weekly Wrap v3
   Responsive pattern: identical to crypto-weekly-wrap.php
   Accent: amber var(--warn)  |  Gradient: dark → rust
   ============================================================ */


/* ── SECTION LABEL ── */
.article-content .ind-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ind-primary);
    margin: 52px 0 8px;
}
.article-content .ind-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,.08);
}

/* ── GRID ITEM FIX ──
   CSS grid tracks expand to fit child min-content by default.
   ind-table has min-width:480px - without this it blows out the grid
   and causes horizontal scroll on the entire page.
   min-width:0 lets the grid item shrink, allowing overflow-x:auto to work.
── */
.article-content { min-width: 0 !important; }

/* ── INTRO BLOCK ── */
.article-content .ind-intro-block { margin-bottom: 40px; }
.article-content .ind-intro-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ind-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.article-content .ind-intro-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--ind-primary);
    border-radius: 2px;
    flex-shrink: 0;
}
.article-content .ind-intro-text {
    font-size: 17px;
    margin: 0;
}

/* ── SCOREBOARD ── */
.article-content .ind-scoreboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: var(--ind-dark);
    border-radius: 18px;
    overflow: hidden;
    margin: 32px 0;
    border: 2px solid var(--ind-dark);
}
.article-content .ind-score-cell { background: var(--paper); padding: 18px 16px; overflow: hidden; }
.article-content .ind-s-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ind-muted);
    margin-bottom: 7px;
}
.article-content .ind-s-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--ind-dark);
    line-height: 1.1;
    word-break: break-word;
}
.article-content .ind-s-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    font-family: monospace;
}
.article-content .ind-up   { color: var(--up); }
.article-content .ind-down { color: var(--down); }
.article-content .ind-neu  { color: var(--warn); }

/* ── CHART CARD ── */
.article-content .ind-chart-card {
    background: var(--paper);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 18px;
    padding: 24px 22px 18px;
    margin: 36px 0;
    box-shadow: 0 4px 24px -8px rgba(0,0,0,.09);
    overflow: hidden;
}
.article-content .ind-cc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}
.article-content .ind-cc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ind-dark);
    margin: 0;
}
.article-content .ind-cc-sub {
    font-size: 12px;
    color: var(--ind-muted);
    font-family: monospace;
    margin-top: 3px;
}
.article-content .ind-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.article-content .ind-badge.bear { background: rgba(220,38,38,.08);  color: var(--down); }
.article-content .ind-badge.bull { background: rgba(9, 152, 149, .08);  color: var(--up); }
.article-content .ind-badge.mix  { background: rgba(217,119,6,.08);  color: var(--warn); }
.article-content .ind-chart-card canvas { width: 100% !important; display: block; }


/* ── STAT GRIDS ── */
.article-content .ind-stat-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0;
}
.article-content .ind-stat-box {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 14px;
    padding: 16px 18px;
    background: var(--paper);
    box-shadow: 0 2px 12px -4px rgba(0,0,0,.07);
}
.article-content .ind-sb-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ind-muted);
    margin-bottom: 7px;
}
.article-content .ind-sb-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--ind-dark);
    line-height: 1.1;
    font-family: monospace;
}
.article-content .ind-sb-sub {
    font-size: 12px;
    color: var(--ind-muted);
    margin-top: 5px;
}

/* ── CALLOUT ── */
.article-content .ind-callout {
    background: rgba(217,119,6,.06);
    border-left: 4px solid var(--ind-primary);
    border-radius: 0 12px 12px 0;
    padding: 15px 10px;
    margin: 28px 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ind-slate);
}
.article-content .ind-callout strong { color: #b45309 !important; }

/* ── TICKER ── */
.article-content .ind-ticker {
    background: linear-gradient(135deg, var(--ind-dark) 0%, var(--ind-secondary) 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 32px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    overflow: hidden;
}
.article-content .ind-ticker-item {
    flex: 1;
    min-width: 80px;
    padding: 6px 12px;
    border-right: 1px solid rgba(255,255,255,.09);
}
.article-content .ind-ticker-item:first-child { padding-left: 0; }
.article-content .ind-ticker-item:last-child  { border-right: none; }
.article-content .ind-t-name {
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 4px;
}
.article-content .ind-t-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--paper);
    font-family: monospace;
}

/* ── F&O GRID ── */
.article-content .ind-fo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}
/* A single card (the usual case) runs the full width, like every other box. */
body.ths-weekly-wrap .article-content .ind-fo-grid > .ind-fo-card:only-child {
    grid-column: 1 / -1;
}

/* Same box treatment as the chart cards: hairline rule, 12px corner, no shadow. */
body.ths-weekly-wrap .article-content .ind-fo-card {
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
body.ths-weekly-wrap .article-content .ind-fo-card-title {
    border-bottom-color: var(--rule) !important;
}
body.ths-weekly-wrap .article-content .ind-fo-row {
    border-bottom-color: var(--rule) !important;
}
.article-content .ind-fo-card {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 16px;
    padding: 16px 16px;
    background: var(--paper);
    box-shadow: 0 2px 12px -4px rgba(0,0,0,.06);
    overflow: hidden;
}
.article-content .ind-fo-card-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ind-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.article-content .ind-fo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
    font-size: 13px;
    gap: 8px;
}
.article-content .ind-fo-row:last-child { border-bottom: none; }
.article-content .ind-fo-key { color: var(--ind-muted); font-weight: 500; flex-shrink: 0; }
.article-content .ind-fo-val { font-weight: 700; color: var(--ind-dark); font-family: monospace; font-size: 12px; text-align: right; }

/* ── TABLE ── */
.article-content .ind-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 2px 12px -4px rgba(0,0,0,.06);
}
.article-content .ind-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--paper);
}
/* The wrapper already scrolls on phones, so the table itself can be a real
   table and fill the box end to end on a wide screen. */
body.ths-weekly-wrap .article-content .ind-table {
    display: table !important;
    width: 100% !important;
    border: 0 !important;
}

/* One box: the wrapper draws the hairline, the table sits inside it. */
body.ths-weekly-wrap .article-content .ind-table-wrap {
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
.article-content .ind-table thead tr { background: var(--ind-dark); }
.article-content .ind-table thead th {
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}
.article-content .ind-table tbody tr { border-bottom: 1px solid rgba(0,0,0,.05); transition: background .15s; }
.article-content .ind-table tbody tr:last-child { border-bottom: none; }
.article-content .ind-table tbody tr:hover { background: rgba(217,119,6,.03); }
.article-content .ind-table tbody td { padding: 11px 14px; color: var(--ind-slate); vertical-align: middle; }
.article-content .ind-table tbody td:first-child { font-weight: 600; color: var(--ind-dark); }
.article-content .ind-sub-badge { display: inline-block; padding: 2px 8px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.article-content .ind-sub-hot  { background: rgba(9, 152, 149, .10);  color: var(--up); }
.article-content .ind-sub-cold { background: rgba(220,38,38,.08); color: var(--down); }
.article-content .ind-sub-neu  { background: rgba(217,119,6,.08); color: var(--warn); }

/* ── NEWS CARDS ── */
.article-content .ind-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px 0;
}
.article-content .ind-news-card {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 16px;
    padding: 20px;
    background: var(--paper);
    box-shadow: 0 2px 12px -4px rgba(0,0,0,.06);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.article-content .ind-news-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.article-content .ind-news-icon.red   { background: rgba(220,38,38,.08); }
.article-content .ind-news-icon.amber { background: rgba(217,119,6,.08); }
.article-content .ind-news-icon.green { background: rgba(9, 152, 149, .08); }
.article-content .ind-news-body h3 { font-size: 14px; font-weight: 700; color: var(--ind-dark); margin: 0 0 6px; line-height: 1.4; }
.article-content .ind-news-body p  { font-size: 13.5px !important; color: var(--ind-muted) !important; margin: 0 !important; line-height: 1.65 !important; }

/* ── OUTLOOK ── */
.article-content .ind-outlook {
    background: linear-gradient(135deg, var(--ind-dark) 0%, var(--ind-secondary) 100%);
    border-radius: 22px;
    padding: 32px 30px;
    margin-top: 52px;
    position: relative;
    overflow: visible;
}
.article-content .ind-outlook::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 85% 15%, rgba(217,119,6,.25) 0%, transparent 55%);
    pointer-events: none;
}
.article-content .ind-outlook .ind-ob-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--warn);
    margin-bottom: 10px;
}
.article-content .ind-outlook h2 { color: var(--paper) !important; margin-top: 0 !important; }
.article-content .ind-outlook > p {
    color: rgba(255,255,255,.72) !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    position: relative;
}
.article-content .ind-key-levels {
    display: flex;
    gap: 0;
    margin-top: 24px;
    flex-wrap: wrap;
    background: rgba(255,255,255,.07);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}
.article-content .ind-kl-item {
    flex: 1;
    min-width: 80px;
    padding: 14px 16px;
    border-right: 1px solid rgba(255,255,255,.08);
    text-align: center;
}
.article-content .ind-kl-item:last-child { border-right: none; }
.article-content .ind-kl-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--warn);
    margin-bottom: 5px;
}
.article-content .ind-kl-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--paper);
    font-family: monospace;
    line-height: 1.2;
}

/* ── RELATED ── */
.article-content .ind-related {
    background: rgba(124,45,18,.04);
    border: 1px solid rgba(124,45,18,.12);
    border-radius: 14px;
    padding: 18px 22px;
    margin: 40px 0;
}
.article-content .ind-related .ind-rb-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ind-muted);
    margin-bottom: 12px;
}
.article-content .ind-related a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ind-dark) !important;
    text-decoration: none !important;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-weight: 500;
    transition: color .2s;
}
.article-content .ind-related a::before { content: '→'; color: var(--ind-primary); font-size: 13px; flex-shrink: 0; }
.article-content .ind-related a:last-child { border-bottom: none; }
.article-content .ind-related a:hover { color: var(--ind-primary) !important; }

/* ══════════════════════════════
   RESPONSIVE
   Theme adds 10px+16px=26px padding each side on mobile
   Theme adds 20px+28px=48px padding each side at 480px+
   Theme adds 24px+36px=60px padding each side at 640px+
   So actual content width = screen - (total padding × 2)
   360px → 308px | 480px → 384px | 640px → 520px | 768px → 640px
══════════════════════════════ */

/* Ticker: 7 items × 80px = 560px needed. Content < 560px until 768px. Stack early. */
@media (max-width: 767px) {
    .article-content .ind-ticker          { flex-direction: column; padding: 16px 18px; }
    .article-content .ind-ticker-item     { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px 0; min-width: 100%; }
    .article-content .ind-ticker-item:last-child  { border-bottom: none; }
    .article-content .ind-ticker-item:first-child { padding-left: 0; }
}

/* Everything else: collapse at 620px */
@media (max-width: 620px) {
    .article-content .ind-scoreboard      { grid-template-columns: 1fr; }
    .article-content .ind-s-val           { font-size: 20px; }
    .article-content .ind-stat-grid-2     { grid-template-columns: 1fr; }
    .article-content .ind-fo-grid         { grid-template-columns: 1fr; }
    .article-content .ind-key-levels      { flex-direction: column; }
    .article-content .ind-kl-item         { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
    .article-content .ind-kl-item:last-child { border-bottom: none; }
    .article-content .ind-outlook         { padding: 22px 14px; }
    .article-content .ind-news-card       { flex-direction: row; gap: 10px; padding: 12px; align-items: flex-start; }
    .article-content .ind-news-icon       { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
    .article-content .ind-news-body h3    { font-size: 13.5px; margin-bottom: 4px; }
    .article-content .ind-related         { padding: 14px 10px; }

    .article-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .article-content .ind-chart-card {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .article-content .ind-fo-card,
    .article-content .ind-stat-box {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
        .article-content .ind-outlook {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    
    /* ── FIELD TEXT SIZE REDUCTIONS - mobile ── */
    .article-content .ind-intro-text            { font-size: 15px; line-height: 1.65; }
    .article-content .ind-callout               { font-size: 15px; line-height: 1.65; }
    .article-content .ind-news-body p           { font-size: 14px !important; line-height: 1.6 !important; }
    .article-content .ind-outlook > p           { font-size: 14px !important; line-height: 1.75 !important; }
    .article-content .ind-chart-card + p,
    .article-content .ind-label + h2 + p,
    .article-content h2 + p                     { font-size: 15px; line-height: 1.65; }

 
}
@media (max-width: 480px) {
}
@media (min-width: 901px) {
    .article-content .ind-news-grid { grid-template-columns: 1fr 1fr; }
    .article-content .ind-news-grid .ind-news-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}



/* === LEARN THE BASICS === */
.article-content .ind-learn-basics {
    margin: 40px 0 32px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(217, 119, 6, .18);
    background: linear-gradient(135deg, rgba(217, 119, 6, .06), rgba(124, 45, 18, .04));
}
.article-content .ind-learn-basics-title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ind-secondary, var(--ink-2));
}
.article-content .ind-learn-basics p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ind-slate, var(--ink-2));
}
.article-content .ind-learn-basics ul {
    margin: 0 0 12px;
    padding-left: 18px;
}
.article-content .ind-learn-basics li {
    margin-bottom: 4px;
    font-size: 14px;
}
.article-content .ind-learn-basics a {
    color: var(--ind-primary, var(--warn));
    font-weight: 600;
    text-decoration: none;
}
.article-content .ind-learn-basics a:hover {
    text-decoration: underline;
}
.article-content .ind-learn-basics-all {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
}


/* === SERIES NAVIGATION === */
.article-content .ind-series-nav {
    margin: 32px 0;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(217, 119, 6, .15);
    background: rgba(217, 119, 6, .04);
}
.article-content .ind-series-title {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ind-primary, var(--warn));
}
.article-content .ind-series-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.article-content .ind-series-links a,
.article-content .ind-series-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--ind-secondary, var(--ink-2));
    text-decoration: none;
}
.article-content .ind-series-links a:hover,
.article-content .ind-series-all:hover {
    color: var(--ind-primary, var(--warn));
}
.article-content .ind-series-all {
    font-size: 13px;
    font-weight: 700;
}

/* === ARCHIVE READS === */
.article-content .ind-archive-reads {
    margin: 28px 0 32px;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: var(--paper);
}
.article-content .ind-archive-title {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ind-muted, var(--ink-3));
}
.article-content .ind-archive-reads ul {
    margin: 0;
    padding-left: 18px;
}
.article-content .ind-archive-reads li {
    margin-bottom: 4px;
    font-size: 14px;
}
.article-content .ind-archive-reads a {
    color: var(--ind-secondary, var(--ink-2));
    font-weight: 600;
    text-decoration: none;
}
.article-content .ind-archive-reads a:hover {
    color: var(--ind-primary, var(--warn));
}

/* === INTRO PARAGRAPH SPACING === */
.article-content .ind-intro-text p {
    margin: 0 0 0.7em !important;
}
.article-content .ind-intro-text p:last-child {
    margin-bottom: 0 !important;
}

/* === CONTROLLED PARAGRAPH GAP (replaces double <br>) === */
/* Rules that replace the inline style attributes that used to live in
   indian-weekly-wrap.php, same approach as the crypto template. */
.article-content .ind-s-val.ind-s-val-compact { font-size: 17px; }

.chart-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 28px 0;
}

.chart-figure { margin: 0; }

.article-content .ind-chart-card.chart-card-tight { padding: 12px 12px 8px; }

.article-content .ind-chart-card .chart-canvas {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.article-content .ind-callout.callout-tight {
    margin-top: 10px;
    border-radius: 12px;
}

.ind-nowrap { white-space: nowrap; }

/* ── Responsive guards ─────────────────────────────────────────
   Chart images are 1200px wide. Without a max-width they push the
   whole article past the viewport on phones and on narrow columns. */
.article-content .research-figure {
    max-width: 100%;
    margin: 24px 0;
}
.article-content .research-figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.article-content .research-figure figcaption {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--ind-muted);
}

/* ── One heading per section, intro style ───────────────────── */
.article-content .ind-section-h2 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ind-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 38px 0 16px;
}
.article-content .ind-section-h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--ind-primary);
    border-radius: 2px;
}

/* ── Chart header: sub and badge on one line ────────────────── */
.article-content .ind-cc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

/* ── Weekly high and low: plain black, no colour ────────────── */
.article-content .ind-stat-box {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
.article-content .ind-sb-label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ind-muted);
}
.article-content .ind-sb-val,
.article-content .ind-sb-val.ind-up,
.article-content .ind-sb-val.ind-down {
    color: var(--ink) !important;
    font-size: 18px;
}

/* ── Flows: four values, compact ────────────────────────────── */
.article-content .ind-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 18px 0 6px;
}
.article-content .ind-flow-cell span {
    display: block;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ind-muted);
    margin-bottom: 4px;
}
.article-content .ind-flow-cell strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    font-family: monospace;
}

@media (max-width: 620px) {
    .article-content .ind-stat-grid-2 { grid-template-columns: 1fr 1fr; }
    .article-content .ind-cc-head .ind-badge { font-size: 9px; padding: 2px 7px; letter-spacing: .06em; }
    .article-content .ind-section-h2 { font-size: 11px; letter-spacing: .1em; line-height: 1.6; margin: 30px 0 12px; }
    .article-content .ind-flow-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .article-content .weekly-snapshot .snap-value { font-size: 15px; }
    .article-content .weekly-snapshot .snap-cell { padding: 10px 8px; }
}

/* ── Heading fixes: one bar, ink text ──────────────────────── */
.article-content h2.ind-section-h2 {
    border-left: 0 !important;
    padding-left: 0 !important;
    color: var(--ink) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 38px 0 16px;
    line-height: 1.4;
}
.article-content h2.ind-section-h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--ink);
    border-radius: 2px;
    flex: 0 0 auto;
}
.article-content .ind-intro-heading { color: var(--ink); }

/* ── Light key-levels box, same shape as the conclusion ─────── */
.article-content .ind-key-levels--light {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 14px;
    margin: 24px 0;
}
.article-content .ind-key-levels--light .ind-kl-item {
    border-right: 1px solid var(--rule);
}
.article-content .ind-key-levels--light .ind-kl-item:last-child { border-right: 0; }
.article-content .ind-key-levels--light .ind-kl-tag { color: var(--ink-3); }
.article-content .ind-key-levels--light .ind-kl-val { color: var(--ink); }

/* ── Snapshot: green for net buy, red for net sell ──────────── */
.article-content .weekly-snapshot .snap-value.is-up { color: #1a7f4b; }
.article-content .weekly-snapshot .snap-value.is-down { color: #b3261e; }

/* ── News spacing ───────────────────────────────────────────── */
.article-content .ind-news-grid { margin: 16px 0 28px; }

/* ── Flow legend: four coloured markers ─────────────────────── */
.article-content .ind-flow-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 16px 0 8px;
}
.article-content .ind-flow-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b6b6b;
}
.article-content .ind-flow-item b {
    font-size: 14px;
    color: var(--ink);
    font-family: monospace;
    letter-spacing: 0;
}
.article-content .ind-flow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.article-content .ind-flow-dot.is-up { background: #1a7f4b; }
.article-content .ind-flow-dot.is-down { background: #b3261e; }
@media (max-width: 620px) {
    .article-content .ind-flow-legend { gap: 8px 16px; }
    .article-content h2.ind-section-h2 { font-size: 11px; letter-spacing: .1em; margin: 30px 0 12px; }
}

/* Heading bar sits on the first line, badge to the far right */
.article-content h2.ind-section-h2 { align-items: flex-start; }
.article-content h2.ind-section-h2::before { margin-top: 2px; }
.article-content .ind-cc-head > div { width: 100%; }
.article-content .ind-cc-meta { width: 100%; justify-content: space-between; }

/* News: less space above the first card */
.article-content .ind-news-card { padding: 14px 16px; }
.article-content .ind-news-grid { margin: 8px 0 28px; }

/* Net flow colours inside the light box */
.article-content .ind-key-levels--light .ind-kl-val.kl-up { color: #1a7f4b; }
.article-content .ind-key-levels--light .ind-kl-val.kl-down { color: #b3261e; }

/* Beat the theme's !important rules for the news grid and the net box */
body.ths-weekly-wrap .article-content div.ind-news-grid {
    margin-top: 8px !important;
    margin-bottom: 28px !important;
}
body.ths-weekly-wrap .article-content .ind-news-card {
    padding: 13px 16px !important;
}
body.ths-weekly-wrap .article-content .ind-key-levels--light div.ind-kl-val.kl-up {
    color: #1a7f4b !important;
}
body.ths-weekly-wrap .article-content .ind-key-levels--light div.ind-kl-val.kl-down {
    color: #b3261e !important;
}
body.ths-weekly-wrap .article-content .ind-key-levels--light div.ind-kl-val {
    white-space: nowrap;
}
@media (max-width: 620px) {
    /* Every key-levels box uses the same value size on phones: the weekly high
       and low, the FII and DII net box and the Conclusion levels. */
    body.ths-weekly-wrap .article-content .ind-key-levels div.ind-kl-val { font-size: 15px !important; }
}

/* Match the conclusion support and resistance box exactly */
body.ths-weekly-wrap .article-content .ind-key-levels.ind-key-levels--light {
    background: var(--paper) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin: 24px 0 !important;
}
@media (max-width: 767px) {
    body.ths-weekly-wrap .article-content .ind-key-levels.ind-key-levels--light {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1px !important;
        padding: 1px !important;
        background: var(--rule) !important;
    }
}

/* Kill the theme's 24px top margin on news card titles */
body.ths-weekly-wrap .article-content .ind-news-card .ind-news-body h3 {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

/* Badge line: subtitle left, badge right, no wrap to a second row */
body.ths-weekly-wrap .article-content .ind-cc-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
}
body.ths-weekly-wrap .article-content .ind-cc-meta .ind-badge {
    justify-self: end;
    white-space: nowrap;
}
@media (max-width: 620px) {
    body.ths-weekly-wrap .article-content .ind-cc-meta .ind-cc-sub { font-size: 11px; }
    body.ths-weekly-wrap .article-content .ind-cc-meta .ind-badge { font-size: 8px; padding: 2px 6px; letter-spacing: .04em; }
}

/* Charts sit in the same 24px rhythm as every other block */
body.ths-weekly-wrap .article-content .research-figure {
    margin: 24px 0 !important;
}

/* A chart can never spill outside its card */
body.ths-weekly-wrap .article-content .ind-chart-card { overflow: hidden; }


/* Fixed chart boxes: the canvas fills the box and can never grow */
body.ths-weekly-wrap .article-content .ind-chart-box {
    position: relative;
    width: 100%;
    height: 240px;
}
body.ths-weekly-wrap .article-content .ind-chart-box canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    display: block;
}
@media (max-width: 620px) {
    body.ths-weekly-wrap .article-content .ind-chart-box { height: 220px; }
}
@media (min-width: 900px) {
    body.ths-weekly-wrap .article-content .ind-chart-box { height: 320px; }
}

/* ── News: pointwise list, no boxes ────────────────────────── */
body.ths-weekly-wrap .article-content .ind-news-list {
    list-style: none !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    counter-reset: news;
}
body.ths-weekly-wrap .article-content .ind-news-item {
    position: relative;
    padding: 0;
    margin: 0 0 18px;
    border: 0;
}
body.ths-weekly-wrap .article-content .ind-news-item:last-child {
    margin-bottom: 0;
}
body.ths-weekly-wrap .article-content .ind-news-item p.ind-news-head {
    margin: 0 0 5px !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink, #161616) !important;
}
body.ths-weekly-wrap .article-content .ind-news-item p.ind-news-why {
    margin: 0 !important;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink-2, #474747) !important;
}
body.ths-weekly-wrap .article-content .ind-news-item p.ind-news-why span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3, #6b6b6b);
    margin-right: 6px;
}
@media (max-width: 620px) {
    body.ths-weekly-wrap .article-content .ind-news-item { margin-bottom: 16px; }
    body.ths-weekly-wrap .article-content .ind-news-item p.ind-news-head { font-size: 14px; }
    body.ths-weekly-wrap .article-content .ind-news-item p.ind-news-why { font-size: 13px; }
}

/* ── Flow chart colour key ─────────────────────────────────── */
body.ths-weekly-wrap .article-content .ind-flow-key {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0 2px;
}
body.ths-weekly-wrap .article-content .ind-flow-key span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3, #6b6b6b);
}
body.ths-weekly-wrap .article-content .ind-flow-key i {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    display: inline-block;
}
body.ths-weekly-wrap .article-content .ind-flow-key .k-fii-buy  { background: var(--up, #056b66); }
body.ths-weekly-wrap .article-content .ind-flow-key .k-fii-sell { background: var(--down, #a83a33); }
body.ths-weekly-wrap .article-content .ind-flow-key .k-dii-buy  { background: var(--up, #056b66); opacity: .40; }
body.ths-weekly-wrap .article-content .ind-flow-key .k-dii-sell { background: var(--down, #a83a33); opacity: .40; }

@media (max-width: 620px) {
    body.ths-weekly-wrap .article-content .ind-flow-key {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 12px;
        row-gap: 6px;
    }
}

/* ── News: number inline, text stays edge to edge ──────────── */
body.ths-weekly-wrap .article-content .ind-news-item p.ind-news-head .ind-news-num {
    display: inline;
    font-family: monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--ink-3, #6b6b6b);
    margin-right: 8px;
}

/* ── Less side margin on phones, so the text and charts get wider ── */
@media (max-width: 620px) {
    body.ths-weekly-wrap .article-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    body.ths-weekly-wrap .article-content {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    body.ths-weekly-wrap .article-content .ind-chart-card {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}


/* The Conclusion is a section now, so its heading takes the section margin
   from theme.css instead of adding a 32px top margin inside the block. */
body.ths-weekly-wrap .article-content .ind-outlook h2.ind-section-h2 {
    margin-top: 0 !important;
}


/* Snapshot: two by two on phones, four across from 768px. Grid rather than
   flex so the sheet cannot fall to one cell per row when it sits inside
   another block. */
body.ths-weekly-wrap .article-content .weekly-snapshot--india {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (min-width: 768px) {
    body.ths-weekly-wrap .article-content .weekly-snapshot--india {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Air after the levels box when it sits under the Conclusion heading */
body.ths-weekly-wrap .article-content .ind-outlook .ind-key-levels {
    margin: 8px 0 24px !important;
}

/* ── Nifty price plate: old money ──────────────────────────────────────
   One thin ink line, serif labels, a hairline frame and 10px radius, the
   same frame the article images carry. The plate stays white in both themes,
   like the images, so the ink colours are fixed here too. */
body.ths-weekly-wrap .article-content .ind-chart-card.ind-price-card {
    background: #ffffff !important;
    border: 1px solid var(--rule) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
body.ths-weekly-wrap .article-content .ind-price-card .ind-cc-title {
    color: #161616 !important;
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: .01em;
}
body.ths-weekly-wrap .article-content .ind-price-card .ind-cc-sub {
    color: #6b6b6b !important;
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-style: italic;
    letter-spacing: .01em;
}
body.ths-weekly-wrap .article-content .ind-price-card .ind-badge {
    background: transparent !important;
    color: #161616 !important;
    border: 1px solid #161616 !important;
    border-radius: 0 !important;
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: .14em;
    padding: 4px 10px !important;
}
body.ths-weekly-wrap .article-content .ind-price-card .ind-badge.bull {
    color: #1a7f4b !important;
    border-color: #1a7f4b !important;
}
body.ths-weekly-wrap .article-content .ind-price-card .ind-badge.bear {
    color: #b3261e !important;
    border-color: #b3261e !important;
}
