/* ============================================================
   INSIGHTS — listing bar, featured item, reading layout
   (Tiles, cells, quote band and CTA live in content.css)
============================================================ */

/* ── Listing bar ── */
.ins-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.ins-tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--line-dark); background: var(--white); }
.ins-tab {
  display: inline-flex; align-items: center; height: var(--control-h); padding: 0 20px;
  font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border-right: 1px solid var(--line-dark);
  transition: color .25s, background .25s;
}
.ins-tab:last-child { border-right: 0; }
.ins-tab:hover { color: var(--accent); }
.ins-tab.is-current { background: var(--ink); color: var(--white); box-shadow: inset 0 -3px 0 var(--accent-blue); }

.ins-search {
  display: flex; align-items: center; gap: 10px; height: var(--control-h); padding: 0 14px;
  min-width: min(320px, 100%); background: var(--white);
  border: 1px solid var(--field-border); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s;
}
.ins-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.ins-search .material-icons-round { font-size: 20px; color: var(--subtle); }
.ins-search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font: 400 14.5px var(--font-body); color: var(--text); }
.ins-search input::placeholder { color: var(--placeholder); }
.ins-count { margin-bottom: 24px; font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); }
.ins-empty { padding: 48px 0; font-size: 16px; color: var(--muted); }

/* ── Featured item ── */
.ins-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 0;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--line-dark); border-top: 3px solid var(--accent-blue);
}
.ins-featured__media { min-height: 340px; overflow: hidden; background: var(--ink-2); }
.ins-featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ins-featured:hover .ins-featured__media img { transform: scale(1.03); }
.ins-featured__body { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: clamp(28px, 4vw, 56px); }
.ins-featured__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--white-rgb), .55); }
.ins-featured h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; line-height: 1.18; letter-spacing: -.03em; }
.ins-featured h3 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color .25s; }
.ins-featured h3 a:hover, .ins-featured h3 a:focus-visible { text-decoration-color: var(--accent-soft); }
.ins-featured p { max-width: 520px; font-size: 15.5px; line-height: 1.8; color: rgba(var(--white-rgb), .7); }
.ins-featured .link-arrow { align-self: flex-start; }
.ins-grid { margin-top: 0; border-top: 0; }

.tile__date { font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); transition: color .3s; }
.tile:hover .tile__date, .tile:focus-within .tile__date { color: rgba(var(--white-rgb), .5); }

/* ── Reading progress ── */
.art-progress { position: fixed; z-index: 250; top: 0; left: 0; right: 0; height: 3px; background: transparent; pointer-events: none; }
.art-progress__fill { width: 0; height: 100%; background: var(--gradient-brand); }

/* ── Article layout ── */
.art-section { padding-top: clamp(48px, 6vw, 88px); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: clamp(36px, 5vw, 64px); padding-bottom: 24px; border-bottom: 1px solid var(--line-dark); }
.art-meta__item { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--font-mono); letter-spacing: .08em; color: var(--muted); }
.art-meta__item .material-icons-round { font-size: 18px; color: var(--accent); }
.art-meta__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.art-body { min-width: 0; max-width: 760px; }

.art-takeaways { position: relative; margin-bottom: 40px; padding: 32px clamp(24px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line-dark); }
.art-takeaways::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); }
.art-takeaways__title, .art-toc__title { margin-bottom: 18px; font: 500 11px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.art-takeaways ul { display: flex; flex-direction: column; gap: 12px; }
.art-takeaways li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.art-takeaways li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--accent); }

.art-note { margin-bottom: 40px; padding: 16px 20px; font-size: 14px; line-height: 1.7; color: var(--muted); border-left: 3px solid var(--accent-blue); background: rgba(var(--accent-rgb), .05); }
.art-note strong { color: var(--text); }

.art-prose h2 { margin: 56px 0 18px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; scroll-margin-top: 24px; }
.art-prose h2:first-child { margin-top: 0; }
.art-prose p { margin-bottom: 20px; font-size: 17px; line-height: 1.85; color: rgba(var(--navy-rgb), .86); }
.art-prose ul { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 24px; }
.art-prose li { position: relative; padding-left: 24px; font-size: 16.5px; line-height: 1.75; color: rgba(var(--navy-rgb), .86); }
.art-prose li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--accent); }
.art-prose a:not(.link-arrow) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.art-quote { margin: 36px 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--accent-blue); font-size: clamp(21px, 2.2vw, 28px); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; color: var(--text); }
.art-callout { margin: 32px 0; padding: 24px 28px; background: var(--paper); border: 1px solid var(--line-dark); border-left: 3px solid var(--accent-blue); }
.art-callout__label { margin-bottom: 10px !important; font: 500 11px/1 var(--font-mono) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--accent) !important; }
.art-callout p:last-child { margin-bottom: 0; font-size: 15.5px; }

.art-table-wrap { margin: 28px 0 32px; overflow-x: auto; border: 1px solid var(--line-dark); }
.art-table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
.art-table th { padding: 14px 18px; background: var(--ink); color: var(--white); font: 500 11px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.art-table td { padding: 16px 18px; vertical-align: top; font-size: 14.5px; line-height: 1.7; color: var(--muted); border-top: 1px solid var(--line-dark); }
.art-table td.art-table__lead { width: 22%; font-weight: 600; color: var(--text); }

.art-foot { display: flex; align-items: center; gap: 10px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.art-foot__label { margin-right: 8px; font: 500 11px var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.art-share { color: var(--text); border-color: var(--line-dark); }
.art-share:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.art-share__txt { font: 700 14px var(--font-body); }
.art-foot__status { font: 500 12px var(--font-mono); color: var(--accent); }

/* ── Sidebar ── */
.art-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.art-toc { padding: 24px; border: 1px solid var(--line-dark); background: var(--white); }
.art-toc ul { display: flex; flex-direction: column; }
.art-toc a { display: block; padding: 10px 0 10px 14px; border-left: 2px solid var(--line-dark); font-size: 14px; line-height: 1.45; color: var(--muted); transition: color .2s, border-color .2s; }
.art-toc a:hover { color: var(--text); }
.art-toc a.is-active { color: var(--accent); border-left-color: var(--accent-blue); font-weight: 600; }
.art-side__cta { padding: 24px; background: var(--ink); color: var(--white); border-top: 3px solid var(--accent-blue); }
.art-side__cta .art-toc__title { color: var(--accent-soft); }
.art-side__cta p:not(.art-toc__title) { margin-bottom: 20px; font-size: 14px; line-height: 1.7; color: rgba(var(--white-rgb), .68); }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-body { max-width: none; }
  .art-side { position: static; order: -1; }
  .art-toc { display: none; }
  .art-meta__tags { margin-left: 0; }
}
@media (max-width: 900px) {
  .ins-featured { grid-template-columns: 1fr; }
  .ins-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .ins-tabs { width: 100%; }
  .ins-tab { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .ins-search { width: 100%; }
  .art-prose p, .art-prose li { font-size: 16px; }
}