/*
 * Module: explore-peer-intelligence / content-explorer, with the
 * ld-insights-card and ld-benchmark-card parts. Measured from the logged-out
 * home mockup at 1440: two pill rows, then per-Community panels of white cards.
 * Panels take their colour from data-area; the section itself stays neutral.
 */

.content-explorer{padding-block:48px}
.tab-buttons{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0 0 40px;padding-bottom:32px;border-bottom:1px solid var(--line)}
.topic-row{display:flex;flex-wrap:wrap;gap:10px}
.topic-row[hidden]{display:none}
.tab-btn{min-height:44px;padding:11px 22px;border:1px solid var(--line);border-radius:var(--r-pill);background:transparent;color:var(--ink-700);font:500 .875rem/1.7 var(--font-body);transition:background var(--motion),border-color var(--motion)}
.tab-btn-primary{background:var(--surface-sunken)}
.tab-btn:hover{border-color:var(--ink-300);color:var(--ink-900)}
.tab-btn[aria-pressed="true"]{background:var(--ink-900);border-color:var(--ink-900);color:var(--surface)}
/* Practice-area pills in their area's colour; the Community row follows its area. */
.tab-btn-primary[data-area]{background:color-mix(in srgb,var(--accent-soft) 42%,#fff);border-color:var(--accent-mid);color:var(--accent-ink)}
.tab-btn-primary[data-area]:hover{background:color-mix(in srgb,var(--accent-soft) 75%,#fff);border-color:var(--accent);color:var(--accent-ink)}
.tab-btn-primary[data-area][aria-pressed="true"],.topic-row-secondary[data-area] .tab-btn[aria-pressed="true"]{background:var(--accent-ink);border-color:var(--accent-ink);color:var(--surface)}
.tab-panel[hidden]{display:none}

.ld-topic-shell{display:flex;flex-direction:column;gap:18px}
.ld-topic-intro-row{display:grid;grid-template-columns:1.05fr 1.35fr;gap:24px;align-items:stretch}
.ld-topic-intro-row.is-single{grid-template-columns:1fr}
.ld-topic-intro{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:28px 28px 26px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
.ld-topic-intro h3{margin:0 0 12px}
.ld-topic-intro p{max-width:60ch;margin:0;line-height:1.65}
.ld-topic-intro .link-arrow{margin-top:16px;font-size:.875rem}

.ld-card-grid{display:grid;grid-template-columns:1.5fr 1fr .95fr;gap:18px;align-items:start}
.ld-card-grid--two{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:stretch}
.ld-card-grid--one{grid-template-columns:1fr}
.ld-card{min-width:0;padding:24px 24px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
.ld-card-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}
.ld-card-title{margin:0;font:500 1.5625rem/1.2 var(--font-text);letter-spacing:-.012em}
.ld-card-footer{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.ld-card-footer .link-arrow{font-size:.875rem}
.ld-card .empty-state{margin:0;font-size:.875rem;line-height:1.6}
.ld-card .empty-state+.ld-more-label{margin-top:15px}

/* ld-insights-card. Stretches to the side column's height, footer pinned to the bottom. */
.ld-insights-card{display:flex;flex-direction:column}
.ld-insights-card .ld-card-footer{margin-top:auto}
.ld-insights-card .ld-insight-list{margin-bottom:14px}
.ld-insights-card .ld-insight-list:has(+.ld-more-label){margin-bottom:0}
.ld-more-label{margin:0;padding:15px 0 4px;border-top:1px solid var(--line);font-weight:500}
.ld-insight-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.ld-insight-item{display:grid;grid-template-columns:160px minmax(0,1fr);gap:18px;align-items:center;padding:15px 0;border-top:1px solid var(--line)}
.ld-insight-item:first-child{padding-top:4px;border-top:0}
.ld-insight-item:last-child{padding-bottom:6px}
.hedcut-thumb{width:160px;height:90px;border:1px solid var(--line)}
/* A chart hero is unreadable this small: zoom into its top left, where the question and the top number sit (IMAGE-STYLE-SPEC §1). */
.hedcut-thumb>img.is-chart{object-position:left top;transform:scale(1.3);transform-origin:6% 0}
.ld-insight-item .tag{margin-bottom:10px}
.ld-insight-item h5{margin:0 0 10px;font:500 1.25rem/1.25 var(--font-text);letter-spacing:-.012em}
.ld-insight-item h5 a{color:inherit;text-decoration:none}
.ld-insight-item h5 a:hover{text-decoration:underline;text-decoration-thickness:1px}
.ld-person{margin:0;line-height:1.45}

/* ld-benchmark-card */
.ld-side-stack{display:grid;gap:18px}
.ld-benchmark-body{display:flex;flex-direction:column;gap:14px}
.status-pill{display:inline-block;margin-bottom:12px;padding:6px 10px;border-radius:var(--r-pill);background:var(--accent-soft);color:var(--accent-ink);font:400 .75rem/1.7 var(--font-body);letter-spacing:.07em;text-transform:uppercase}
.ld-benchmark-body h5{margin:0;font:500 1.25rem/1.18 var(--font-text);letter-spacing:-.012em}
.ld-benchmark-body p{margin:0;font-size:.875rem;line-height:1.65}
.benchmark-bars{display:flex;align-items:flex-end;gap:8px;height:84px;padding:8px 0 2px}
.benchmark-bars span{display:block;width:20px;border:1px solid rgba(38,37,31,.3);border-radius:2px 2px 0 0;background:rgba(38,37,31,.16)}
.benchmark-bars span:nth-child(1){height:48px}
.benchmark-bars span:nth-child(2){height:76px;background:rgba(38,37,31,.38)}
.benchmark-bars span:nth-child(3){height:36px;background:rgba(38,37,31,.62)}
.ld-cta-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}

/* ld-summit-card (Next Summit). The mockup's visual is a photo placeholder; with
 * no summit photography it holds the summit's colour logo on a sunken 16:9 frame. */
.ld-summit-body{display:flex;flex-direction:column;gap:14px}
.ld-summit-body h5{margin:0;font:500 1.25rem/1.18 var(--font-text);letter-spacing:-.012em}
.ld-summit-body p{margin:0;color:var(--ink-700);font-size:.875rem;line-height:1.65}
.ld-summit-visual{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;padding:12%;background:var(--surface-sunken);border-radius:var(--r-sm)}
.ld-summit-visual img{display:block;width:100%;height:100%;object-fit:contain}

@media (max-width:1180px){
	.ld-card-grid,.ld-card-grid--two,.ld-topic-intro-row{grid-template-columns:1fr}
	.ld-insight-item:nth-child(n+4),.ld-more-label,.ld-more-label+.ld-insight-list{display:none}
}

@media (max-width:640px){
	/* Pills swipe on one line each instead of wrapping (David's review, Cale 2026-11-17). */
	.tab-buttons{max-width:100%;min-width:0}
	.topic-row-secondary-wrap{max-width:100%;min-width:0}
	.topic-row{flex-wrap:nowrap;max-width:100%;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
	.topic-row::-webkit-scrollbar{display:none}
	.topic-row .tab-btn{flex:0 0 auto;white-space:nowrap}
	.content-explorer{padding-block:32px}
	.tab-buttons{margin-bottom:28px;padding-bottom:24px}
	.tab-btn{padding:10px 16px}
	.ld-topic-intro{padding:22px 20px}
	.ld-topic-intro h3{font-size:2.125rem}
	.ld-card{padding:20px 18px 16px}
	.ld-insight-item{grid-template-columns:96px minmax(0,1fr);gap:14px}
	.hedcut-thumb{width:96px;height:54px}
	.ld-insight-item h5{font-size:1.125rem}
}
