/*
Theme Name: Sparkter GeneratePress
Theme URI: https://sparkter.com
Author: Skycode
Description: GeneratePress child theme for sparkter.com 2026 design.
Template: generatepress
Version: 1.0.0
Text Domain: tekoaly-generatepress
*/

:root {
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ink: #1c1e21;
  --paper: #fafaf8;
  --surface: #ffffff;
  --accent: #ff5a1f;
  --accent-soft: #ffe9df;
  --accent-ink: #c23b0a;
  --muted: #6a6f78;
  --soft: #e9ebee;
  --hairline: #dde0e4;
  --dark: #14181f;
  --accent-hover: #e04b12;
  --blue: #0ba5ec;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.ta-site {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: 0;
}

.ta-site a {
  color: inherit;
}

.ta-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f7f6f2;
  border-bottom: 1px solid var(--hairline);
}

.ta-topbar,
.ta-nav {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.ta-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  color: #7a7f88;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ta-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 56px;
  border-top: 1px solid var(--hairline);
}

.ta-logo,
.ta-footer__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  text-decoration: none;
}

.ta-logo strong,
.ta-footer__brand strong {
  color: var(--accent);
}

.ta-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 8px;
}

.ta-menu a {
  color: #33373e;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}

.ta-menu a:hover,
.ta-menu a:focus-visible {
  color: var(--accent);
}

.ta-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 230px;
  margin-left: auto;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: #9a9ea6;
}

.ta-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  outline: none;
}

.ta-search svg {
  flex-shrink: 0;
}

.ta-searchbtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: #33373e;
  text-decoration: none;
}

.ta-main {
  background: var(--paper);
}

.ta-section,
.ta-archive-hero,
.ta-article,
.ta-related,
.ta-page {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.ta-kicker {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ta-article h1 {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.06;
}

.ta-archive-hero h1 {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
}

.ta-page h1 {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.ta-archive-hero p,
.ta-article__lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: #3a3f47;
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.5;
}

.ta-hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ta-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ta-button--dark {
  background: var(--dark);
  color: #fff !important;
}

.ta-button--dark:hover,
.ta-button--dark:focus-visible {
  background: #000;
}

.ta-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
}

.ta-article__figure figcaption {
  margin: 8px 0 0;
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
}

.ta-image-placeholder,
.ta-post-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #dcdfe4;
  border-radius: 6px;
  background: var(--soft);
}

.ta-image-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #adb3bd;
}

.ta-image-placeholder span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  color: #a9afb9;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ta-post-image {
  height: auto;
  object-fit: cover;
}

.ta-topics {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.ta-topics > span {
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ta-topics div,
.ta-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ta-topics a,
.ta-topic-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ta-topics a:hover,
.ta-topic-row a:hover {
  border-color: var(--accent);
}

.ta-section {
  padding: 42px 0 18px;
}

.ta-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.ta-section__head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.ta-section__head a,
.ta-section__head span {
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ta-section__head span {
  color: #a7acb5;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ta-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
}

.ta-card {
  min-width: 0;
}

.ta-card__media {
  display: block;
  margin-bottom: 16px;
  color: inherit;
  text-decoration: none;
}

.ta-card__title {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.ta-card__title a {
  color: inherit;
  text-decoration: none;
}

.ta-card__title a:hover,
.ta-card__title a:focus-visible {
  color: var(--accent);
}

.ta-card__excerpt {
  margin: 10px 0 0;
  color: #52575f;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

.ta-footer {
  margin-top: 36px;
  background: var(--dark);
  color: #fff;
}

.ta-footer__inner {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 54px 0 26px;
}

.ta-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.ta-footer__brand {
  color: #fff;
}

.ta-footer p {
  max-width: 34ch;
  margin: 14px 0 0;
  color: #a3a8b1;
  font-size: 16px;
  line-height: 1.5;
}

.ta-footer h2 {
  margin: 0 0 14px;
  color: #717784;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ta-footer a {
  display: block;
  padding: 6px 0;
  color: #c7ccd4;
  font-family: var(--font-display);
  font-size: 15px;
  text-decoration: none;
}

.ta-footer a:hover,
.ta-footer a:focus-visible {
  color: #fff;
}

.ta-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #8b919c;
  font-family: var(--font-mono);
  font-size: 12px;
}

.ta-footer__bottom span:last-child {
  display: flex;
  gap: 22px;
}

.ta-footer__bottom a {
  padding: 0;
  color: #8b919c;
  font-size: 12px;
}

.ta-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.ta-breadcrumb a {
  color: #9a9ea6;
  text-decoration: none;
}

.ta-article {
  padding: 54px 0 12px;
}

.ta-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: clamp(34px, 7vw, 84px);
  align-items: start;
}

.ta-article__main {
  min-width: 0;
}

.ta-byline {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}

.ta-avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.ta-avatar--image {
  background: var(--soft);
  color: transparent;
}

.ta-avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ta-byline strong,
.ta-author-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.ta-byline span,
.ta-author-card span {
  display: block;
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
}

.ta-share {
  display: flex;
  gap: 9px;
  margin-left: auto;
}

.ta-share a,
.ta-share button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  background: var(--surface);
  color: #52575f;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.ta-share a:hover,
.ta-share button:hover,
.ta-share a:focus-visible,
.ta-share button:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.ta-article__figure {
  margin: 26px 0 28px;
}

.ta-article__content {
  color: #3a3f47;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.68;
}

.ta-article__content > *:first-child {
  margin-top: 0;
}

.ta-article__content h2,
.ta-article__content h3 {
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -.02em;
  line-height: 1.16;
}

.ta-article__content h2 {
  margin: 1.65em 0 .55em;
  font-size: 30px;
  font-weight: 800;
}

.ta-article__content h3 {
  margin: 1.35em 0 .45em;
  font-size: 23px;
  font-weight: 800;
}

.ta-article__content p,
.ta-article__content ul,
.ta-article__content ol,
.ta-article__content blockquote,
.ta-article__content figure {
  margin: 0 0 1.05em;
}

.ta-article__content a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ta-article__content ul,
.ta-article__content ol {
  padding-left: 1.25em;
}

.ta-article__content li {
  margin: .35em 0;
}

.ta-summary-box,
.ta-callout,
.ta-checklist {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #f3f4f6;
}

.ta-summary-box__label,
.ta-callout strong,
.ta-callout__label,
.ta-checklist__label {
  display: block;
  margin: 0 0 10px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ta-summary-box ul,
.ta-checklist ul {
  margin: 0;
  padding-left: 20px;
}

.ta-callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.ta-callout p {
  margin: 0;
}

.ta-article__content blockquote {
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.ta-article__content .ta-pullquote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--blue);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.ta-article__content pre {
  overflow: auto;
  padding: 18px;
  border-radius: 6px;
  background: var(--dark);
  color: #e6e8ec;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.ta-article__content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.ta-article__content th,
.ta-article__content td {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  vertical-align: top;
}

.ta-article__content img,
.ta-article__content iframe {
  max-width: 100%;
}

.ta-article__content .ta-inline-figure,
.ta-article__content figure {
  margin: 32px 0;
}

.ta-article__content .ta-inline-figure img,
.ta-article__content figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.ta-article__content .ta-inline-figure figcaption,
.ta-article__content figure figcaption {
  margin-top: 8px;
  color: #8b919c;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.4;
}

.ta-button-wrap {
  margin: 28px 0;
}

.ta-button-wrap--center {
  text-align: center;
}

.ta-button-wrap--right {
  text-align: right;
}

.ta-cta-box,
.ta-shortcode-section,
.ta-shortcode-topics,
.ta-steps,
.ta-compare {
  margin: 36px 0;
}

.ta-cta-box {
  padding: 26px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
}

.ta-cta-box__label,
.ta-steps__label,
.ta-compare__label {
  margin: 0 0 10px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ta-cta-box h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.ta-cta-box p {
  max-width: 640px;
}

.ta-cta-box .ta-button {
  margin-top: 12px;
}

.ta-shortcode-section {
  padding-top: 2px;
}

.ta-shortcode-section .ta-section__head {
  margin-bottom: 18px;
}

.ta-shortcode-section .ta-section__head h2 {
  font-size: 27px;
}

.ta-shortcode-section__content > :last-child,
.ta-cta-box > :last-child,
.ta-steps > :last-child,
.ta-compare > :last-child {
  margin-bottom: 0;
}

.ta-shortcode-cards .ta-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.ta-article__content .ta-card__title a {
  color: inherit;
}

.ta-shortcode-topics {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.ta-shortcode-topics > span {
  display: block;
  margin: 0 0 12px;
  color: #8b919c;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ta-shortcode-topics .ta-topic-row {
  margin-top: 0;
}

.ta-steps {
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #f3f4f6;
}

.ta-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ta-step;
}

.ta-steps li {
  position: relative;
  min-height: 38px;
  margin: 18px 0 0;
  padding-left: 52px;
  counter-increment: ta-step;
}

.ta-steps li:first-child {
  margin-top: 0;
}

.ta-steps li::before {
  content: counter(ta-step);
  position: absolute;
  left: 0;
  top: -.1em;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.ta-steps li strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
}

.ta-compare {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
}

.ta-compare table {
  margin: 0;
  min-width: 560px;
  border: 0;
  border-collapse: collapse;
}

.ta-compare th,
.ta-compare td {
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
}

.ta-compare th {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.ta-compare td {
  color: #52575f;
  font-size: 15.5px;
}

.ta-compare tr:last-child td {
  border-bottom: 0;
}

.ta-toc {
  position: sticky;
  top: 22px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.ta-toc h2 {
  margin: 0 0 10px;
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ta-toc a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid #e4e7eb;
  color: #52575f;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.ta-toc--inline {
  display: none;
}

.ta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.ta-tags a {
  display: inline-flex;
  padding: 6px 11px;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  background: #f3f4f6;
  color: #52575f;
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.ta-author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.ta-author-card .ta-avatar {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.ta-author-card p {
  margin: 5px 0 0;
  color: #52575f;
  font-size: 15px;
  line-height: 1.5;
}

.ta-author-card > a {
  margin-left: auto;
  padding: 8px 15px;
  border: 1.5px solid #c6cbd2;
  border-radius: 7px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ta-related {
  padding-top: 42px;
  border-top: 1px solid var(--hairline);
}

.ta-archive-hero {
  padding: 54px 0 34px;
}

.ta-topic-row {
  margin-top: 26px;
}

.ta-page {
  max-width: 840px;
  padding: 54px 0;
}

.ta-empty {
  margin: 0;
  color: #6a6f78;
  font-size: 18px;
}

.ta-pagination {
  margin-top: 34px;
}

.ta-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ta-pagination a,
.ta-pagination span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  color: #33373e;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
}

.ta-pagination .current {
  border-color: var(--ink);
  background: var(--dark);
  color: #fff;
}

@media (max-width: 920px) {
  .ta-topbar,
  .ta-nav,
  .ta-section,
  .ta-archive-hero,
  .ta-article,
  .ta-related,
  .ta-page,
  .ta-footer__inner {
    width: min(100% - 32px, 760px);
  }

  .ta-menu {
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .ta-search {
    width: 100%;
  }

  .ta-article__layout {
    /* minmax(0, 1fr): 1fr:n minimi on auto, jolloin pitkä yhdyssana
       otsikossa levittää sarakkeen viewportia leveämmäksi */
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .ta-article h1 {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .ta-toc {
    position: static;
  }

  .ta-toc--aside {
    display: none;
  }

  .ta-toc--inline {
    display: block;
    margin: 24px 0 30px;
  }

  .ta-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ta-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.ta-site {
    font-size: 16px;
  }

  .ta-topbar {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }

  .ta-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px 16px;
  }

  .ta-menu {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 20px;
    overflow-x: auto;
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }

  .ta-search {
    display: none !important;
  }

  .ta-searchbtn {
    display: flex !important;
  }

  .r-datebar-tag {
    display: none !important;
  }

  .ta-article h1 {
    font-size: 34px;
  }

  .ta-archive-hero h1 {
    font-size: 36px;
  }

  .ta-page h1 {
    font-size: 32px;
  }

  .ta-topics {
    align-items: flex-start;
    flex-direction: column;
  }

  .ta-card-grid,
  .ta-shortcode-cards .ta-card-grid {
    grid-template-columns: 1fr;
  }

  .ta-cta-box,
  .ta-steps,
  .ta-compare {
    padding: 18px;
  }

  .ta-cta-box h2,
  .ta-shortcode-section .ta-section__head h2 {
    font-size: 24px;
  }

  .ta-button-wrap--right {
    text-align: left;
  }

  .ta-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ta-byline,
  .ta-author-card,
  .ta-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .ta-share,
  .ta-author-card > a {
    margin-left: 0;
  }

  .ta-article__content {
    font-size: 18px;
  }

  .ta-article__content table {
    display: block;
    border: 0;
  }

  .ta-article__content thead {
    display: none;
  }

  .ta-article__content tbody,
  .ta-article__content tr,
  .ta-article__content th,
  .ta-article__content td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .ta-article__content tr {
    margin: 0 0 14px;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    background: #f3f4f6;
    overflow: hidden;
  }

  .ta-article__content th,
  .ta-article__content td {
    border: 0;
    border-top: 1px solid var(--hairline);
  }

  .ta-article__content td:first-child {
    border-top: 0;
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
  }

  .ta-article__content .ta-compare table {
    display: table;
    min-width: 560px;
    border-collapse: collapse;
  }

  .ta-article__content .ta-compare thead {
    display: table-header-group;
  }

  .ta-article__content .ta-compare tbody {
    display: table-row-group;
  }

  .ta-article__content .ta-compare tr {
    display: table-row;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .ta-article__content .ta-compare th,
  .ta-article__content .ta-compare td {
    display: table-cell;
    width: auto;
    min-width: 0;
    border-top: 0;
    border-bottom: 1px solid #e4e7eb;
  }

  .ta-article__content .ta-compare td:first-child {
    border-top: 0;
    color: #52575f;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 400;
  }

  .ta-footer__bottom span:last-child {
    flex-wrap: wrap;
  }
}

/* ============================================================
   FRONT PAGE (Design v3) — ported from tekoaly.com, tokens use
   Sparkter's --accent (#ff5a1f) instead of tekoaly's blue.
   Sections: ticker, lead, leadstrip, topics, main+aside, evergreen.
   ============================================================ */

.ta-ticker {
  background: var(--dark);
  color: #fff;
}

.ta-ticker__inner {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 44px;
  overflow: hidden;
}

.ta-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ta-ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d3d;
  box-shadow: 0 0 0 3px rgba(255, 77, 61, .25);
}

.ta-ticker__scroll {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.ta-ticker__scroll::-webkit-scrollbar {
  display: none;
}

.ta-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 20px;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, .13);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.ta-ticker__item:hover,
.ta-ticker__item:focus-visible {
  opacity: .72;
}

.ta-ticker__time {
  color: #ffb599;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.ta-ticker__text {
  color: #e7e9ee;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
}

.ta-lead-section {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 42px 0 30px;
}

.ta-lead {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
}

.ta-lead__kicker {
  margin: 0;
}

.ta-lead__h1-wrap {
  margin: 14px 0 0;
}

.ta-lead__h1 {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -.025em;
  text-decoration: none;
}

.ta-lead__h1:hover,
.ta-lead__h1:focus-visible {
  color: var(--accent-ink);
}

.ta-lead__excerpt {
  max-width: 46ch;
  margin: 18px 0 0;
  color: #3a3f47;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
}

.ta-lead__byline {
  margin-top: 18px;
  color: #6a6f78;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
}

.ta-lead__figure {
  margin: 0;
}

.ta-leadstrip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid var(--hairline);
}

.ta-leadstrip__label {
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ta-leadstrip__all {
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.ta-leadstrip__all:hover,
.ta-leadstrip__all:focus-visible {
  text-decoration: underline;
}

.ta-leadstrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 36px;
  margin-top: 14px;
}

.ta-leadstrip__item {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.ta-leadstrip__item:hover,
.ta-leadstrip__item:focus-visible {
  opacity: .72;
}

.ta-leadstrip__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ta-leadstrip__kicker {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ta-leadstrip__time {
  color: #b3b8c0;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.ta-leadstrip__title {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.28;
  letter-spacing: -.005em;
}

.ta-topics-section {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.ta-topics-section .r-topics,
.ta-topics-section .ta-topics {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  width: auto;
}

.ta-topics-section .ta-topics__label {
  margin-right: 2px;
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ta-topics-section .ta-topics__chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 7px 13px;
  color: #33373e;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.ta-topics-section .ta-topics__chip:hover,
.ta-topics-section .ta-topics__chip:focus-visible {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.ta-main-section {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 38px 0 8px;
}

.ta-main-section .ta-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 52px;
  align-items: start;
}

.ta-main__col {
  min-width: 0;
}

.ta-main__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.ta-main__heading {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.7vw, 32px);
  letter-spacing: -.02em;
}

.ta-main__all {
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.ta-main__all:hover,
.ta-main__all:focus-visible {
  text-decoration: underline;
}

.ta-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 34px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}

.ta-feature__media {
  position: relative;
}

.ta-feature__media .ta-post-image,
.ta-feature__media .ta-image-placeholder {
  aspect-ratio: 4 / 3;
}

.ta-feature__kicker {
  margin: 0;
}

.ta-feature__title {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.16;
  letter-spacing: -.015em;
  text-decoration: none;
}

.ta-feature__title:hover,
.ta-feature__title:focus-visible {
  color: var(--accent-ink);
}

.ta-feature__excerpt {
  margin: 10px 0 0;
  color: #52575f;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.5;
}

.ta-feature__byline {
  margin-top: 12px;
  color: #8a8f98;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
}

.ta-cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 26px;
  padding-bottom: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.ta-cards3__item {
  display: flex;
  flex-direction: column;
}

.ta-cards3__media .ta-post-image,
.ta-cards3__media .ta-image-placeholder {
  aspect-ratio: 16 / 10;
}

.ta-cards3__kicker {
  margin-top: 13px;
}

.ta-cards3__title {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.24;
  letter-spacing: -.005em;
  text-decoration: none;
}

.ta-cards3__title:hover,
.ta-cards3__title:focus-visible {
  color: var(--accent-ink);
}

.ta-cards3__meta {
  margin-top: 10px;
  color: #8a8f98;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
}

.ta-river {
  min-width: 0;
}

.ta-river__list {
  display: block;
}

.ta-river__row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #e4e7eb;
  text-decoration: none;
}

.ta-river__row:hover,
.ta-river__row:focus-visible {
  opacity: .72;
}

.ta-river__body {
  flex: 1;
  min-width: 0;
}

.ta-river__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ta-river__kicker {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ta-river__time {
  color: #b3b8c0;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.ta-river__title {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -.01em;
}

.ta-river__author {
  margin-top: 8px;
  color: #8a8f98;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
}

.ta-river__thumb {
  width: 118px;
  height: 82px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

.ta-river__thumb .ta-post-image,
.ta-river__thumb .ta-image-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.ta-river__more {
  width: 100%;
  margin-top: 26px;
  padding: 15px;
  border: 1.5px solid #c6cbd2;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.ta-river__more:hover,
.ta-river__more:focus-visible {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.ta-aside {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-width: 0;
}

.ta-popular__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 2px;
  border-bottom: 2px solid var(--ink);
}

.ta-popular__heading {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
}

.ta-popular__period {
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ta-aside .ta-popular__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #e4e7eb;
  text-decoration: none;
}

.ta-aside .ta-popular__item:hover,
.ta-aside .ta-popular__item:focus-visible {
  opacity: .66;
}

.ta-popular__n {
  flex-shrink: 0;
  width: 22px;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.02em;
}

.ta-popular__body {
  min-width: 0;
}

.ta-popular__title {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.ta-popular__meta {
  display: block;
  margin-top: 6px;
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ta-evergreen-section {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  margin-top: 44px;
}

.ta-evergreen {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 52px 0 56px;
}

.ta-evergreen__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.ta-evergreen__kicker {
  margin: 0;
}

.ta-evergreen__heading {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.7vw, 32px);
  letter-spacing: -.02em;
}

.ta-evergreen__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 26px;
}

.ta-evergreen__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid #e4e7eb;
  text-decoration: none;
}

.ta-evergreen__item:hover,
.ta-evergreen__item:focus-visible {
  opacity: .68;
}

.ta-evergreen__n {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.ta-evergreen__body {
  min-width: 0;
}

.ta-evergreen__title {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.005em;
}

.ta-evergreen__meta {
  display: block;
  margin-top: 7px;
  color: #9a9ea6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 1150px) {
  .ta-search {
    min-width: 150px;
  }
}

@media (max-width: 1000px) {
  .ta-lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .ta-main-section .ta-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .ta-aside {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  .ta-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .ta-cards3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ta-leadstrip {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .ta-lead__h1 {
    font-size: 33px;
  }

  .ta-cards3,
  .ta-evergreen__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
