/* Free tools and open data hub. Builds on studio-luxury.css tokens and the guides.css hero. */

/* Arial scaled to Plus Jakarta Sans (same measured values as ecommerce-platform-migrations), and the
   title capped in em rather than ch, so nothing moves when the web font arrives. */
@font-face { font-family: 'Jakarta Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 100 550; size-adjust: 105.5%; ascent-override: 98.58%; descent-override: 20.85%; line-gap-override: 0%; }
@font-face { font-family: 'Jakarta Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 551 750; size-adjust: 101%; ascent-override: 102.97%; descent-override: 21.78%; line-gap-override: 0%; }
@font-face { font-family: 'Jakarta Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 751 1000; size-adjust: 88.8%; ascent-override: 117.12%; descent-override: 24.77%; line-gap-override: 0%; }
:root { --font-sans: 'Plus Jakarta Sans', 'Jakarta Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.gd-title { max-width: 14em; }

.tl-hero { padding-bottom: 28px; }
.tl-counts { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 30px 0 0; padding: 0; }
.tl-counts li { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; border: 1px solid var(--border-light); border-radius: 14px; background: rgba(15, 37, 33, 0.6); }
.tl-counts strong { font: 700 24px var(--font-mono); color: var(--emerald-accent); }
.tl-counts span { font-size: 14px; color: var(--text-muted); }

.tl-section { padding: 36px 0; }
.tl-head { display: grid; gap: 8px; margin-bottom: 22px; max-width: 760px; }
.tl-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.02em; color: #fff; }
.tl-head p { margin: 0; color: var(--text-muted); line-height: 1.6; }

.tl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tl-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-dark); text-decoration: none; overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease; }
.tl-card:hover { border-color: rgba(45, 226, 166, 0.45); transform: translateY(-3px); }
.tl-card:focus-visible { outline: 2px solid var(--emerald-accent); outline-offset: 3px; }
.tl-card::after { content: "↗"; position: absolute; top: 20px; right: 22px; font-size: 18px; color: var(--text-dim); transition: color 0.2s ease; }
.tl-card:hover::after { color: var(--emerald-accent); }
.tl-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald-accent); padding-right: 28px; }
.tl-title { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.3; }
.tl-text { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.tl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tl-meta i { font: 600 11px var(--font-mono); font-style: normal; letter-spacing: 0.04em; color: var(--text-main); border: 1px solid var(--border-light); border-radius: 100px; padding: 4px 10px; }

/* Data cards lead with their headline figure. */
.tl-data { background: linear-gradient(160deg, rgba(45, 226, 166, 0.09), transparent 55%), var(--bg-card); }
.tl-stat { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); margin: 6px 0 2px; }
.tl-stat b { font: 700 34px/1 var(--font-mono); color: #fff; letter-spacing: -0.02em; }

.tl-note { padding: 28px; border-radius: 20px; border: 1px solid var(--border-light); background: #071714; max-width: 860px; }
.tl-note h2 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.tl-note p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.tl-cite { padding-bottom: 72px; }

@media (max-width: 1000px) { .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tl-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-card { padding: 20px; }
  .tl-counts li { padding: 10px 14px; }
  .tl-counts strong { font-size: 20px; }
  .tl-head h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .tl-card { transition: none; } .tl-card:hover { transform: none; } }
