/* ================================================================
   TOOLS ARCHIVE (archive-tcn_tool.php)
   Styles moved out of the template (no inline <style>). Tokens: tcn-base.css §0.
   ================================================================ */
/* Light theme — same one-line scoped override every other .dpt-page
   uses (Channels/Departments/Gain Access), not the global dark canvas.
   See CLAUDE.md "Light theme on Channels/Departments/Gain Access/Home/
   My Account" for why this is a local override, not a :root change. */
.dpt-page.tools-page { --clr-bg: var(--paper); --clr-invert-text: var(--ink); --clr-invert-text-muted: var(--muted); background: var(--clr-bg); min-height: 100vh; }
/* ...except the hero banner itself — same exception Channels/Departments/
   Gain Access all make (dark gradient + white text is a deliberate brand
   statement, not "dark theme"), so the light cascade above never reaches
   it. */
.dpt-page.tools-page .dpt2-detail-hero { --clr-bg: #151516; --clr-invert-text: #ffffff; --clr-invert-text-muted: rgba(255,255,255,.65); }

/* ── Hero (badge/title/subtitle/CTA) — same .dpt2-hero-title2 family
   Channels/Departments/Gain Access each carry their own copy of. ── */
.dpt2-hero-title2 { font-family:var(--dp-serif); font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 0 0 14px; color: var(--ink); text-transform: uppercase; }
.dpt2-hero-title2-accent { color: var(--dept-color, #475569); }
.dpt2-hero-sub2 { font-size: .95rem; color: var(--muted); max-width: 560px; margin: 0 0 22px; line-height: 1.6; }
.dpt2-hero-ctas2 { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.dpt2-hero-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 10px 18px; border-radius: 999px; border: none; cursor: pointer; text-decoration: none; transition: transform .15s, filter .15s; }
.dpt2-hero-cta--access { background: rgba(var(--dept-rgb,71,85,105),.10); color: var(--dept-color, #475569); border: 1px solid rgba(var(--dept-rgb,71,85,105),.28); }
.dpt2-hero-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.dpt2-stat { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ── Stats band — same .dpt2-stats-band family, 3 cards instead of 4
   since Tools only has 3 real stats to show. ── */
.dpt2-stats-band { background: rgba(var(--dept-rgb,71,85,105),.06); border-top: 1px solid rgba(var(--dept-rgb,71,85,105),.15); border-bottom: 1px solid rgba(var(--dept-rgb,71,85,105),.15); }
.dpt2-stats-band-inner { max-width: 1280px; margin: 0 auto; padding: 28px var(--sp-lg, 24px); display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.dpt2-stat-card { display: flex; align-items: center; gap: 12px; }
.dpt2-stat-card-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(var(--dept-rgb,71,85,105),.14); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.dpt2-stat-card-num { display: block; font-family:var(--dp-serif); font-size: 1.3rem; color: var(--ink); line-height: 1.1; text-transform: uppercase; }
.dpt2-stat-card-label { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .dpt2-stats-band-inner { grid-template-columns: repeat(1,1fr); } }

.tools-body { padding: 48px var(--sp-lg, 24px) 96px; background: var(--clr-bg); }
.tools-panel { max-width: 1000px; margin: 0 auto; background: var(--panel); color: var(--clr-text-main); border-radius: var(--radius-lg, 14px); padding: 36px; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.tools-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tools-panel-head h2 { margin: 0; font-size: 1.1rem; }
.tools-panel-substat { font-size: 12px; color: #6b7280; font-weight: 600; }

/* Same feed-row table styling as /channels/ and /departments/
   (inc/tcn-dpt2-showcase.php, page-channels.php) — duplicated here
   rather than shared, matching this codebase's existing per-page
   convention for this CSS block; keep all three in sync if the row
   design ever changes. */
.dpt2-row { display: grid; grid-template-columns: 110px 170px 1fr 110px 150px; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; transition: background .15s ease, box-shadow .15s ease; }
.dpt2-row--header { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--clr-text-muted); padding: 0 16px 10px; border-bottom: 1px solid var(--clr-border); cursor: default; }
.dpt2-row:not(.dpt2-row--header) { background: var(--clr-surface); color: var(--clr-text-main); margin-bottom: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.dpt2-row:not(.dpt2-row--header):hover { background: var(--clr-surface-light); box-shadow: 0 8px 24px rgba(var(--dept-rgb,71,85,105),.22); }
.dpt2-col-type { display: flex; align-items: center; }
.dpt2-type-badge { display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; color: #ffffff; white-space: nowrap; }
.dpt2-col-channel { display: flex; align-items: center; min-width: 0; }
.dpt2-row-channel-pill { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; background: rgba(var(--dept-rgb,71,85,105),.10); border-radius: 999px; padding: 3px 12px 3px 3px; font-size: 12px; font-weight: 700; color: var(--dept-color, #475569); }
a.dpt2-row-channel-pill { text-decoration: none; }
.dpt2-row-channel-pill:hover .dpt2-row-channel-name { text-decoration: underline; }
.dpt2-row-avatar { width: 20px; height: 20px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.dpt2-row-avatar-ph { background: var(--dept-color, #475569); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.dpt2-row-channel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpt2-col-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.dpt2-col-title::before { content: '\25CF'; font-size: 8px; color: var(--dept-color, #475569); margin-right: 9px; vertical-align: middle; }
.dpt2-license-pill { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.dpt2-license-pill--locked { color: #dc2626; background: rgba(220,38,38,.10); }
.dpt2-license-pill--members { color: #7c3aed; background: rgba(124,58,237,.10); }
.dpt2-license-pill--free { color: var(--dept-color, #475569); background: rgba(var(--dept-rgb,71,85,105),.10); }
.dpt2-col-price { font-size: 13px; font-weight: 700; color: var(--clr-text-main); }
.dpt2-col-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.dpt2-row-btn { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; padding: 7px 12px; border-radius: 8px; color: #ffffff; background: var(--dept-color, #475569); text-decoration: none; }
.dpt2-row-btn--buy { background: var(--panel-2); }
.dpt2-feed-empty { padding: 3rem 1rem; color: #6b7280; text-align: center; }

@media (max-width: 960px) {
	.dpt2-row { grid-template-columns: 90px 1fr 80px; }
	.dpt2-col-channel, .dpt2-col-price { display: none; }
	.tools-panel { padding: 20px; }
}
