:root {
  --tp-primary: #0f172a;
  --tp-secondary: #2563eb;
  --tp-accent: #06b6d4;
  --tp-bg: #ffffff;
  --tp-surface: #f8fafc;
  --tp-muted: #64748b;
  --tp-text: #111827;
  --tp-border: #e5e7eb;
  --tp-ring: rgba(37, 99, 235, 0.22);
  --tp-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

[data-theme="dark"] {
  --tp-bg: #0b1220;
  --tp-surface: #111827;
  --tp-text: #f8fafc;
  --tp-muted: #94a3b8;
  --tp-border: #263244;
  --tp-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
img { display: block; height: auto; max-width: 100%; }
input, textarea, button { font: inherit; max-width: 100%; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.skip-link:focus {
  clip: auto;
  height: auto;
  left: 1rem;
  padding: .75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 999;
  background: var(--tp-bg);
}

.tp-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.tp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--tp-border), transparent 35%);
  background: color-mix(in srgb, var(--tp-bg), transparent 8%);
  backdrop-filter: blur(18px);
}

.tp-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  min-height: 76px;
}

.tp-header__menu {
  display: contents;
}

.tp-logo {
  display: inline-flex;
  align-items: center;
  color: var(--tp-text);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.tp-logo span::before {
  content: "";
  display: inline-block;
  width: .8rem;
  height: .8rem;
  margin-right: .55rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--tp-secondary), var(--tp-accent));
}

.tp-nav__list {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-nav__list .children,
.tp-nav__list .sub-menu {
  display: none;
}

.tp-nav a {
  display: inline-flex;
  padding: .55rem .8rem;
  border-radius: 7px;
  color: var(--tp-muted);
  font-size: .94rem;
  font-weight: 650;
  white-space: nowrap;
}

.tp-nav a:hover,
.tp-nav a:focus-visible {
  background: var(--tp-surface);
  color: var(--tp-text);
}

.tp-header__actions {
  display: flex;
  gap: .65rem;
  align-items: center;
}

.tp-search input,
.tp-search-form input,
.tp-newsletter input,
.tp-form input,
.tp-form textarea {
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  background: var(--tp-bg);
  color: var(--tp-text);
  outline: none;
}

.tp-search input {
  width: 150px;
  padding: .55rem .75rem;
}

.tp-search input:focus,
.tp-newsletter input:focus,
.tp-form input:focus,
.tp-form textarea:focus {
  border-color: var(--tp-secondary);
  box-shadow: 0 0 0 4px var(--tp-ring);
}

.tp-button,
.tp-icon-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.tp-button { padding: .72rem 1rem; }
.tp-button--small { min-height: 36px; padding: .5rem .85rem; }
.tp-button--primary { border-color: var(--tp-secondary); background: var(--tp-secondary); color: #fff; }
.tp-button--ghost { background: var(--tp-bg); color: var(--tp-text); }
.tp-button:hover, .tp-icon-button:hover { transform: translateY(-1px); }
.tp-icon-button { width: 40px; background: var(--tp-bg); color: var(--tp-text); }
.tp-theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tp-theme-toggle__sun { display: none; }
[data-theme="dark"] .tp-theme-toggle__sun { display: block; }
[data-theme="dark"] .tp-theme-toggle__moon { display: none; }
.tp-menu-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}
.tp-menu-toggle span {
  position: absolute;
  left: 50%;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: top .18s ease, transform .18s ease, opacity .14s ease;
}
.tp-menu-toggle span:nth-child(1) { top: 14px; }
.tp-menu-toggle span:nth-child(2) { top: 20px; }
.tp-menu-toggle span:nth-child(3) { top: 26px; }
.tp-header.is-menu-open .tp-menu-toggle span:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}
.tp-header.is-menu-open .tp-menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(.4);
}
.tp-header.is-menu-open .tp-menu-toggle span:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

.tp-hero {
  overflow: hidden;
  padding: 76px 0 44px;
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--tp-accent), transparent 78%), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--tp-surface), transparent 42%), var(--tp-bg));
}

.tp-hero__grid,
.tp-split,
.tp-article__layout {
  display: grid;
  gap: 2rem;
}

.tp-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr); align-items: center; }
.tp-hero h1,
.tp-page-header h1,
.tp-article__header h1,
.tp-tool-hero h1,
.tp-404 h1 {
  margin: .6rem 0 1rem;
  max-width: 920px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.tp-hero p,
.tp-page-header p,
.tp-article__header p,
.tp-tool-hero p {
  max-width: 680px;
  color: var(--tp-muted);
  font-size: 1.12rem;
}

.tp-kicker,
.tp-badge,
.tp-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--tp-secondary), transparent 70%);
  border-radius: 999px;
  color: var(--tp-secondary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.tp-kicker { padding: .38rem .7rem; background: color-mix(in srgb, var(--tp-secondary), transparent 92%); }
.tp-badge { padding: .25rem .55rem; }
.tp-pill { padding: .65rem .9rem; background: var(--tp-bg); color: var(--tp-text); }
.tp-pill:hover { border-color: var(--tp-secondary); color: var(--tp-secondary); }

.tp-newsletter {
  display: flex;
  gap: .65rem;
  max-width: 520px;
  margin-top: 1.4rem;
}

.tp-newsletter input { min-width: 0; flex: 1; padding: .8rem .95rem; }
.tp-form-notice {
  max-width: 520px;
  margin: 1rem 0 -.45rem;
  padding: .75rem .9rem;
  border: 1px solid color-mix(in srgb, var(--tp-secondary), transparent 60%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--tp-secondary), transparent 92%);
  color: var(--tp-text);
  font-size: .94rem;
  font-weight: 650;
}
.tp-form-notice--invalid {
  border-color: color-mix(in srgb, #dc2626, transparent 55%);
  background: color-mix(in srgb, #dc2626, transparent 92%);
}
.tp-hero__buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

.tp-section { padding: 64px 0; }
.tp-section--tint { background: var(--tp-surface); }
.tp-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.tp-section__heading h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
}
.tp-section__heading a { color: var(--tp-secondary); font-weight: 800; }

.tp-grid { display: grid; gap: 1.1rem; }
.tp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tp-card,
.tp-tool-card,
.tp-trend,
.tp-tool-panel,
.tp-empty-panel {
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  background: var(--tp-bg);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tp-card:hover,
.tp-tool-card:hover,
.tp-trend:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tp-secondary), var(--tp-border) 55%);
  box-shadow: var(--tp-shadow);
}
.tp-empty-panel {
  min-height: 360px;
  padding: 1.5rem;
  display: grid;
  align-content: end;
  background: linear-gradient(135deg, #0f172a, #2563eb 58%, #06b6d4);
  color: #fff;
}
.tp-empty-panel h2 { margin: 0 0 .5rem; font-family: "Plus Jakarta Sans", Inter, sans-serif; line-height: 1.1; }
.tp-empty-panel p { margin: 0; color: rgba(255,255,255,.76); }

.tp-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.55;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #0f172a, #2563eb 58%, #06b6d4);
}
.tp-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tp-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #0f172a, #2563eb 58%, #06b6d4); }
.tp-card__body { padding: 1.05rem; }
.tp-card h3 { margin: .7rem 0 .45rem; font-size: 1.12rem; line-height: 1.25; }
.tp-card p { margin: 0 0 .9rem; color: var(--tp-muted); font-size: .95rem; }
.tp-card--text-only .tp-card__body { padding: 1rem; }
.tp-card--text-only h3 { margin-top: .75rem; }
.tp-card--hero .tp-card__body { padding: 1.35rem; }
.tp-card--hero h3 { font-size: 1.55rem; }

.tp-meta,
.tp-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  color: var(--tp-muted);
  font-size: .86rem;
}
.tp-article__meta img { flex: 0 0 auto; border-radius: 50%; }
.tp-author-link { color: var(--tp-text); font-weight: 800; }

.tp-trending,
.tp-pills,
.tp-tool-directory {
  display: grid;
  gap: .85rem;
}
.tp-trending { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-trend { padding: 1rem; }
.tp-trend strong { display: block; margin: .7rem 0 .35rem; line-height: 1.25; }
.tp-pills { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tp-split { grid-template-columns: 1fr 1fr; }
.tp-tool-list,
.tp-resource-stack { display: grid; gap: .85rem; }

.tp-tool-card__link {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: .85rem;
  align-items: center;
  padding: .95rem;
}
.tp-tool-card__logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tp-secondary), var(--tp-accent));
  color: #fff;
  font-weight: 900;
}
.tp-tool-card em { display: block; color: var(--tp-muted); font-size: .86rem; font-style: normal; }
.tp-rating { color: var(--tp-secondary); font-weight: 900; }

.tp-newsletter-band {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--tp-primary), #1d4ed8);
  color: #fff;
}
.tp-newsletter-band h2,
.tp-newsletter-band h1 {
  margin: 0 0 .8rem;
  max-width: 850px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.06;
}
.tp-newsletter-band p { max-width: 620px; color: rgba(255,255,255,.78); }
.tp-newsletter-band .tp-newsletter input { background: rgba(255,255,255,.96); color: #111827; }

.tp-sponsors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}
.tp-sponsors span {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  color: var(--tp-muted);
  font-weight: 850;
}

.tp-footer { border-top: 1px solid var(--tp-border); background: var(--tp-surface); }
.tp-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding: 56px 0 32px;
}
.tp-footer h2 { margin: 0 0 .75rem; font-size: .95rem; }
.tp-footer ul { margin: 0; padding: 0; list-style: none; }
.tp-footer li + li { margin-top: .45rem; }
.tp-footer p,
.tp-footer a { color: var(--tp-muted); }
.tp-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 0;
  border-top: 1px solid var(--tp-border);
  color: var(--tp-muted);
  font-size: .9rem;
}

.tp-archive,
.tp-page,
.tp-single,
.tp-404 { padding: 56px 0; }
.tp-page-header { margin-bottom: 2rem; }
.tp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 2rem; }
.tp-sidebar { display: grid; align-content: start; gap: 1rem; }
.tp-author { display: flex; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.tp-author img { border-radius: 50%; }

.tp-article__header { max-width: 920px; }
.tp-article__image { margin-top: 2rem; }
.tp-article__image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 8px; }
.tp-article__layout { grid-template-columns: 190px minmax(0, 760px) 260px; align-items: start; margin-top: 2rem; }
.tp-article__layout--no-rail { grid-template-columns: 190px minmax(0, 820px); justify-content: center; }
.tp-toc { position: sticky; top: 96px; color: var(--tp-muted); font-size: .9rem; }
.tp-toc a { display: block; margin-top: .45rem; color: var(--tp-muted); }
.tp-share { display: flex; gap: .5rem; margin-top: 1rem; }
.tp-share a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--tp-border); border-radius: 50%; }

.tp-content {
  color: color-mix(in srgb, var(--tp-text), var(--tp-muted) 12%);
  font-size: 1.05rem;
  min-width: 0;
  overflow-wrap: break-word;
}
.tp-entry-content { min-width: 0; }
.tp-content > *,
.tp-entry-content > * { max-width: 100%; }
.tp-content > * + * { margin-top: 1.1rem; }
.tp-content h2,
.tp-content h3 {
  color: var(--tp-text);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  line-height: 1.18;
}
.tp-content h2 { margin-top: 2rem; font-size: 1.85rem; }
.tp-content h3 { margin-top: 1.6rem; font-size: 1.35rem; }
.tp-content a { color: var(--tp-secondary); text-decoration: underline; text-underline-offset: 3px; }
.tp-content pre,
.tp-content code {
  border-radius: 7px;
  background: var(--tp-surface);
}
.tp-content pre { overflow-x: auto; padding: 1rem; white-space: pre; }
.tp-content table { border-collapse: collapse; width: 100%; }
.tp-content th,
.tp-content td { overflow-wrap: break-word; vertical-align: top; }
.tp-content .wp-block-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.tp-code-block {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  background: #0f172a;
}
.tp-code-block::before {
  content: attr(data-language);
  position: absolute;
  top: .65rem;
  left: .85rem;
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 900;
}
.tp-code-block pre {
  margin: 0;
  min-width: max-content;
  padding: 2.45rem 1rem 1rem;
  background: transparent;
  color: #e5e7eb;
}
.tp-code-block code { background: transparent; color: inherit; }
.tp-token-keyword { color: #7dd3fc; }
.tp-token-string { color: #bef264; }
.tp-token-comment { color: #94a3b8; }
.tp-copy-code {
  position: absolute;
  top: .5rem;
  right: .5rem;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
}
.tp-callout,
.tp-tip,
.tp-warning {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--tp-border);
  background: var(--tp-surface);
}
.tp-tip { border-color: color-mix(in srgb, var(--tp-accent), transparent 45%); }
.tp-warning { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b, transparent 90%); }
.tp-faq details {
  border-top: 1px solid var(--tp-border);
  padding: .9rem 0;
}
.tp-faq summary { cursor: pointer; font-weight: 850; }
.tp-sources ol { padding-left: 1.2rem; }
.tp-filter-bar,
.tp-search-terms,
.tp-hub__pills {
  margin-bottom: 1.5rem;
}
.tp-filter-bar { display: flex; flex-wrap: wrap; gap: .65rem; }
.tp-empty { color: var(--tp-muted); }

.tp-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
  color: var(--tp-muted);
  font-size: .85rem;
}

.tp-inline-cta,
.tp-comments,
.tp-related {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tp-border);
}

.tp-comments h2,
.comment-reply-title {
  margin: 0 0 1rem;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.comment-form {
  display: grid;
  gap: 1rem;
}

.comment-form p { margin: 0; }

.comment-form label {
  display: block;
  margin-bottom: .35rem;
  color: var(--tp-text);
  font-weight: 800;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  background: var(--tp-bg);
  color: var(--tp-text);
  padding: .8rem .95rem;
}

.comment-form textarea:focus,
.comment-form input:focus {
  border-color: var(--tp-secondary);
  box-shadow: 0 0 0 4px var(--tp-ring);
  outline: none;
}

.comment-form-cookies-consent {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  color: var(--tp-muted);
}

.comment-form-cookies-consent input {
  width: 18px;
  height: 18px;
  margin-top: .2rem;
}

.form-submit .submit {
  min-height: 42px;
  border: 1px solid var(--tp-secondary);
  border-radius: 8px;
  background: var(--tp-secondary);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  padding: .7rem 1rem;
}

.tp-tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: center;
}
.tp-tool-panel { padding: 1.25rem; }
.tp-tool-panel img { width: 84px; height: 84px; margin-bottom: 1rem; border-radius: 8px; object-fit: cover; }
.tp-tool-panel dt { color: var(--tp-muted); font-size: .82rem; font-weight: 800; }
.tp-tool-panel dd { margin: .2rem 0 1rem; }

.tp-form {
  display: grid;
  max-width: 680px;
  gap: 1rem;
}
.tp-form label { display: grid; gap: .35rem; font-weight: 750; }
.tp-form input,
.tp-form textarea { padding: .85rem 1rem; }
.tp-notice {
  max-width: 680px;
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--tp-secondary), transparent 65%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--tp-secondary), transparent 92%);
}
.tp-notice--error {
  border-color: #ef4444;
  background: color-mix(in srgb, #ef4444, transparent 92%);
}
.tp-search-form { display: flex; gap: .7rem; max-width: 620px; }
.tp-search-form input { flex: 1; padding: .85rem 1rem; }

.tp-ad {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--tp-muted), transparent 45%);
  border-radius: 8px;
  color: var(--tp-muted);
  font-size: .82rem;
  text-align: center;
}
.tp-header > .tp-ad { width: min(1180px, calc(100% - 40px)); min-height: 56px; margin: 0 auto 12px; }
.tp-ad--in-content { margin: 2rem 0; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1120px) {
  .tp-header__inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    min-height: 68px;
  }
  .tp-logo { min-width: 0; }
  .tp-logo span {
    display: inline-block;
    max-width: calc(100vw - 96px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tp-menu-toggle { display: inline-flex; }
  .tp-header__menu {
    display: none;
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    right: 0;
    z-index: 70;
    max-height: min(72vh, 440px);
    overflow-y: auto;
    padding: .75rem;
    border: 1px solid color-mix(in srgb, var(--tp-border), transparent 18%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--tp-bg), transparent 2%);
    box-shadow: var(--tp-shadow);
    backdrop-filter: blur(18px);
  }
  .tp-header.is-menu-open .tp-header__menu {
    display: grid;
    gap: .75rem;
  }
  .tp-nav.is-open {
    justify-content: flex-start;
  }
  .tp-nav__list,
  .tp-header__actions { flex-wrap: wrap; }
  .tp-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem .55rem;
    justify-content: flex-start;
    width: 100%;
  }
  .tp-nav a {
    width: 100%;
    padding: .55rem .65rem;
    background: var(--tp-surface);
  }
  .tp-header__actions {
    gap: .5rem;
  }
  .tp-header__actions .tp-search { flex: 1 1 220px; min-width: 0; }
  .tp-header__actions .tp-search input { width: 100%; }
  .tp-header__actions .tp-button--small { flex: 0 0 auto; }
  .tp-hero__grid,
  .tp-split,
  .tp-layout,
  .tp-tool-hero,
  .tp-article__layout { grid-template-columns: 1fr; }
  .tp-article__layout--no-rail { grid-template-columns: 1fr; justify-content: stretch; }
  .tp-toc { position: static; }
  .tp-grid--3,
  .tp-trending,
  .tp-pills,
  .tp-sponsors,
  .tp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .tp-container { width: min(100% - 28px, 1180px); }
  .tp-header__inner { min-height: 64px; }
  .tp-header__menu {
    top: calc(100% + .5rem);
    padding: .65rem;
  }
  .tp-nav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-nav a {
    min-height: 42px;
    align-items: center;
    font-size: .9rem;
  }
  .tp-header__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tp-header__actions .tp-search { grid-column: 1; }
  .tp-header__actions .tp-theme-toggle { grid-column: 2; }
  .tp-header__actions .tp-button--small {
    grid-column: 1 / -1;
    min-height: 42px;
  }
  .tp-hero { padding-top: 34px; }
  .tp-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
    line-height: 1.06;
  }
  .tp-hero p { font-size: 1rem; }
  .tp-kicker {
    max-width: 100%;
    font-size: .74rem;
    line-height: 1.25;
    white-space: normal;
  }
  .tp-grid--2,
  .tp-grid--3,
  .tp-trending,
  .tp-pills,
  .tp-sponsors,
  .tp-footer__grid { grid-template-columns: 1fr; }
  .tp-newsletter,
  .tp-search-form,
  .tp-footer__bottom { flex-direction: column; }
  .tp-button,
  .tp-newsletter input,
  .tp-newsletter button,
  .tp-search-form input,
  .tp-search-form button { width: 100%; }
  .tp-tool-card__link { grid-template-columns: 42px minmax(0, 1fr); }
  .tp-tool-card__link .tp-rating { grid-column: 2; }
  .tp-search input { width: 100%; }
  .tp-header__actions { align-items: stretch; }
  .tp-content {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
  .tp-content h2 { font-size: 1.55rem; }
  .tp-content h3 { font-size: 1.22rem; }
  .tp-content .wp-block-table table {
    min-width: 560px;
    width: max-content;
  }
  .tp-code-block {
    margin-inline: -2px;
    max-width: calc(100vw - 28px);
  }
  .tp-copy-code {
    position: sticky;
    right: .5rem;
    float: right;
  }
}
