/* Tools hub (tools.html): card grid and the "use it your way" blocks. Every rule is scoped to .th-* so no other page changes.
   One column at 320px, two from 768px, three from 1280px. Light colours first, then body.dark-mode. No script is needed. */
.th-section { margin: 0 0 28px; }
.th-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    .th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .th-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the page's own ".publisher-content ul" rule adds a left margin; the grids start at the content edge */
.publisher-content ul.th-grid {
    margin: 14px 0 0;
    padding: 0;
    max-width: none;
    list-style: none;
}
.th-grid--most { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
    .th-grid--most { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .th-grid--most { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.publisher-content .th-card {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 16px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
}
.publisher-content .th-card--most {
    background: #eff6ff;
    border-color: #93c5fd;
}
.publisher-content .th-card:hover { border-color: #1d4ed8; }
.publisher-content .th-card:focus-within { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.publisher-content .th-card h3 {
    margin: 0 0 4px;
    padding: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    color: #0f172a;
}
.publisher-content .th-card h3 a {
    display: block;
    min-height: 44px;
    padding: 9px 0 0;
    color: #1d4ed8;
    text-decoration: none;
}
.publisher-content .th-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}
.publisher-content .th-card h3 a:hover { text-decoration: underline; }
.publisher-content .th-card h3 a:focus-visible { outline: none; text-decoration: underline; }
.publisher-content .th-card p {
    margin: 0;
    max-width: none;
    font-size: 14.5px;
    line-height: 1.55;
    color: #334155;
}
.publisher-content .th-card--most p { color: #1e293b; }

.publisher-content .th-way {
    margin: 0 0 16px;
    padding: 14px 16px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}
.publisher-content .th-way h3 { margin: 0 0 6px; font-size: 18px; }
.publisher-content .th-way p { max-width: none; }
.publisher-content .th-way a { font-weight: 600; }
.publisher-content .th-way a.th-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 2px 12px 10px 0;
    padding: 8px 16px;
    border: 2px solid #1d4ed8;
    border-radius: 8px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}
.publisher-content .th-way a.th-btn--ghost { background: #ffffff; color: #1d4ed8; }
.publisher-content .th-way a.th-btn:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; }
.publisher-content .th-trust {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    background: #f0fdf4;
    color: #14532d;
    max-width: none;
}

/* ---- dark theme ---- */
body.dark-mode .publisher-content .th-card {
    background: #1e2433;
    border-color: #404040;
    color: #f1f5f9;
}
body.dark-mode .publisher-content .th-card--most {
    background: #1a2a44;
    border-color: #3b5b8a;
}
body.dark-mode .publisher-content .th-card:hover { border-color: #93c5fd; }
body.dark-mode .publisher-content .th-card:focus-within { outline-color: #93c5fd; }
body.dark-mode .publisher-content .th-card h3 { color: #f1f5f9; }
body.dark-mode .publisher-content .th-card h3 a { color: #8ecbff; }
body.dark-mode .publisher-content .th-card p { color: #cbd5e1; }
body.dark-mode .publisher-content .th-card--most p { color: #dbe7f5; }
body.dark-mode .publisher-content .th-way {
    background: #1e2433;
    border-color: #404040;
}
body.dark-mode .publisher-content .th-way a:not(.th-btn) { color: #8ecbff; }
body.dark-mode .publisher-content .th-way a.th-btn { background: #2563eb; border-color: #2563eb; color: #ffffff; }
body.dark-mode .publisher-content .th-way a.th-btn--ghost { background: transparent; color: #93c5fd; border-color: #93c5fd; }
body.dark-mode .publisher-content .th-way a.th-btn:focus-visible { outline-color: #f1f5f9; }
body.dark-mode .publisher-content .th-trust {
    background: #0f2a1a;
    border-left-color: #22c55e;
    color: #bbf7d0;
}

/* ================= polish pass ================= */

/* 1. Tool cards carry no underline in any state (the site's content-link rule adds one with !important, so it is answered with !important).
      The hover cue is the border, a soft ring and the title colour; keyboard focus keeps the 3px ring on the whole card. */
.publisher-content .th-card a,
.publisher-content .th-card a:hover,
.publisher-content .th-card a:focus,
.publisher-content .th-card a:focus-visible,
.publisher-content .th-card h3 a,
.publisher-content .th-card h3 a:hover,
.publisher-content .th-card h3 a:focus,
.publisher-content .th-card h3 a:focus-visible {
    text-decoration: none !important;
}
.publisher-content .th-card { transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.publisher-content .th-card:hover {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 1px #1d4ed8;
    background: #f8fbff;
}
.publisher-content .th-card--most:hover { background: #e3efff; }
.publisher-content .th-card:hover h3 a { color: #1e3a8a; }
body.dark-mode .publisher-content .th-card:hover {
    border-color: #8ecbff;
    box-shadow: 0 0 0 1px #8ecbff;
    background: #232b3d;
}
body.dark-mode .publisher-content .th-card--most:hover { background: #1f3354; }
body.dark-mode .publisher-content .th-card:hover h3 a { color: #cfe8ff; }
@media (prefers-reduced-motion: reduce) {
    .publisher-content .th-card { transition: none; }
}

/* 4. Card head: icon tile + title on one row, so the description never moves down by more than the 44px row it already had */
.publisher-content .th-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0 0 6px;
}
.publisher-content .th-card h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}
.publisher-content .th-card h3 a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
}
.publisher-content .th-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
}
.publisher-content .th-card--most .th-icon {
    background: #dbeafe;
    color: #1e40af;
}
.publisher-content .th-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}
body.dark-mode .publisher-content .th-icon {
    background: #26324a;
    color: #8ecbff;
}
body.dark-mode .publisher-content .th-card--most .th-icon {
    background: #24456f;
    color: #b9dcff;
}

/* 3. "Last updated" line now closes the page content, just above the footer */
.publisher-content .th-updated {
    margin: 30px 0 0;
    padding: 14px 0 0;
    border-bottom: 0;
    border-top: 1px solid #e5e7eb;
}
body.dark-mode .publisher-content .th-updated {
    border-bottom: 0;
    border-top-color: #404040;
}

/* ================= second polish (page class: tools-hub-page, set on <body>) ================= */

/* A. No underline on any link in the page content, in any state.
      The site's accessibility rule ".publisher-content p a { text-decoration: underline !important }" is itself !important, so only a more specific
      !important rule can answer it. Scope: .publisher-content only; header, sidebar and footer links keep the site's styling. */
body.tools-hub-page .publisher-content a,
body.tools-hub-page .publisher-content a:link,
body.tools-hub-page .publisher-content a:visited,
body.tools-hub-page .publisher-content a:hover,
body.tools-hub-page .publisher-content a:active,
body.tools-hub-page .publisher-content a:focus,
body.tools-hub-page .publisher-content a:focus-visible,
body.tools-hub-page .publisher-content p a,
body.tools-hub-page .publisher-content p a:hover,
body.tools-hub-page .publisher-content p a:focus,
body.tools-hub-page .publisher-content li a,
body.tools-hub-page .publisher-content li a:hover,
body.tools-hub-page .publisher-content li a:focus,
body.tools-hub-page .publisher-content .article-meta a,
body.tools-hub-page .publisher-content .article-meta a:hover,
body.tools-hub-page .publisher-content .article-meta a:focus {
    text-decoration: none !important;
}

/* B. Link cue without underline (WCAG 1.4.1): colour at least 3:1 against the body text and 4.5:1 against the background, plus weight 600.
      Body text inside the content is set to near-black (light) / near-white (dark) so the ratio is guaranteed. */
body.tools-hub-page .publisher-content > p,
body.tools-hub-page .publisher-content .th-privacy p,
body.tools-hub-page .publisher-content .th-way p {
    color: #0f172a;
}
body.tools-hub-page .publisher-content p a:not(.th-btn),
body.tools-hub-page .publisher-content p a:not(.th-btn):link,
body.tools-hub-page .publisher-content p a:not(.th-btn):visited {
    color: #2563eb;
    font-weight: 600;
    border-radius: 3px;
}
body.tools-hub-page .publisher-content p a:not(.th-btn):hover,
body.tools-hub-page .publisher-content p a:not(.th-btn):focus {
    color: #1e3a8a;
    background-color: #dbeafe;
}
body.tools-hub-page .publisher-content a:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
    border-radius: 3px;
}
body.tools-hub-page.dark-mode .publisher-content > p,
body.tools-hub-page.dark-mode .publisher-content .th-privacy p,
body.tools-hub-page.dark-mode .publisher-content .th-way p {
    color: #f8fafc;
}
body.tools-hub-page.dark-mode .publisher-content p a:not(.th-btn),
body.tools-hub-page.dark-mode .publisher-content p a:not(.th-btn):link,
body.tools-hub-page.dark-mode .publisher-content p a:not(.th-btn):visited {
    color: #4a8df7;
}
body.tools-hub-page.dark-mode .publisher-content p a:not(.th-btn):hover,
body.tools-hub-page.dark-mode .publisher-content p a:not(.th-btn):focus {
    color: #bfdbfe;
    background-color: #1e3a6e;
}
body.tools-hub-page.dark-mode .publisher-content a:focus-visible {
    outline-color: #8ecbff;
}

/* B2. Button-style links keep a visible shape (fill or border), 44px tall, no underline */
body.tools-hub-page .publisher-content .th-way a.th-btn,
body.tools-hub-page .publisher-content .th-way a.th-btn:link,
body.tools-hub-page .publisher-content .th-way a.th-btn:visited {
    min-height: 44px;
    border: 2px solid #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
}
body.tools-hub-page .publisher-content .th-way a.th-btn--ghost,
body.tools-hub-page .publisher-content .th-way a.th-btn--ghost:link,
body.tools-hub-page .publisher-content .th-way a.th-btn--ghost:visited {
    background: #ffffff;
    color: #1d4ed8;
}
body.tools-hub-page .publisher-content .th-way a.th-btn:hover,
body.tools-hub-page .publisher-content .th-way a.th-btn:focus {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
}
body.tools-hub-page .publisher-content .th-way a.th-btn--ghost:hover,
body.tools-hub-page .publisher-content .th-way a.th-btn--ghost:focus {
    background: #dbeafe;
    border-color: #1e3a8a;
    color: #1e3a8a;
}
body.tools-hub-page .publisher-content .th-way a.th-btn:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn,
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn:link,
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn:visited {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn--ghost,
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn--ghost:link,
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn--ghost:visited {
    background: transparent;
    border-color: #93c5fd;
    color: #93c5fd;
}
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn:hover,
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn:focus {
    background: #1d4ed8;
    border-color: #bfdbfe;
    color: #ffffff;
}
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn--ghost:hover,
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn--ghost:focus {
    background: #1e3a6e;
    border-color: #bfdbfe;
    color: #dbeafe;
}
body.tools-hub-page.dark-mode .publisher-content .th-way a.th-btn:focus-visible {
    outline-color: #f8fafc;
}

/* "Last updated" line: near-black text so its link meets the 3:1 rule too */
body.tools-hub-page .publisher-content .th-updated { color: #0f172a; }
body.tools-hub-page.dark-mode .publisher-content .th-updated { color: #f8fafc; }

/* C. Privacy panel: teal/green trust theme, 4px accent bar, shield, four badges, 2x2 point cards, lighter strip at the bottom */
body.tools-hub-page .publisher-content .th-privacy {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    margin: 14px 0 22px;
    padding: 16px 20px 0;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 55%, #f5fffb 100%);
    border: 1px solid #99dcc0;
    border-left: 4px solid #0f766e;
    border-radius: 14px;
    color: #0f172a;
}
body.tools-hub-page .publisher-content .th-priv-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 8px;
}
body.tools-hub-page .publisher-content .th-shield {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #15803d, #0f766e);
    color: #ffffff;
}
body.tools-hub-page .publisher-content .th-shield svg { display: block; width: 30px; height: 30px; }
body.tools-hub-page .publisher-content .th-privacy h2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    color: #064e3b;
}
@media (min-width: 768px) {
    body.tools-hub-page .publisher-content .th-privacy h2 { font-size: 28px; }
}
body.tools-hub-page .publisher-content .th-privacy > p { max-width: none; margin: 0 0 10px; }

/* badges */
body.tools-hub-page .publisher-content ul.th-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    max-width: none;
    list-style: none;
}
body.tools-hub-page .publisher-content .th-badges li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 12px 5px 8px;
    background: #ffffff;
    border: 1px solid #5fbf97;
    border-radius: 999px;
    font-size: 13.5px;
    line-height: 1.3;
    font-weight: 600;
    color: #064e3b;
}
body.tools-hub-page .publisher-content .th-badges svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #047857;
}

/* four point cards, 2x2 */
body.tools-hub-page .publisher-content ul.th-points {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    max-width: none;
    list-style: none;
}
@media (min-width: 600px) {
    body.tools-hub-page .publisher-content ul.th-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.tools-hub-page .publisher-content .th-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #b7e4cf;
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #0f172a;
}
body.tools-hub-page .publisher-content .th-pt-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #d1fae5;
    color: #065f46;
}
body.tools-hub-page .publisher-content .th-pt-icon svg { display: block; width: 22px; height: 22px; }
body.tools-hub-page .publisher-content .th-pt-icon--warn { background: #fef3c7; color: #92400e; }
body.tools-hub-page .publisher-content .th-pt-text { flex: 1 1 auto; min-width: 0; }

/* lighter strip at the bottom: what we do collect + policy links */
body.tools-hub-page .publisher-content .th-strip {
    margin: 0 -20px;
    padding: 10px 20px 2px;
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid #b7e4cf;
}
body.tools-hub-page .publisher-content .th-strip p { max-width: none; margin: 0 0 8px; }
body.tools-hub-page .publisher-content .th-strip .th-trust {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    color: #0f172a;
}
body.tools-hub-page .publisher-content .th-strip .th-privacy-links { font-size: 14px; }

/* dark theme */
body.tools-hub-page.dark-mode .publisher-content .th-privacy {
    background: linear-gradient(135deg, #0c2a20 0%, #0b2927 55%, #0e211f 100%);
    border-color: #1f6b4c;
    border-left-color: #2dd4bf;
    color: #f8fafc;
}
body.tools-hub-page.dark-mode .publisher-content .th-shield { background: linear-gradient(145deg, #15803d, #0f766e); color: #ffffff; }
body.tools-hub-page.dark-mode .publisher-content .th-privacy h2 { color: #ecfdf5; }
body.tools-hub-page.dark-mode .publisher-content .th-badges li {
    background: #0f2f26;
    border-color: #2f8f68;
    color: #d1fae5;
}
body.tools-hub-page.dark-mode .publisher-content .th-badges svg { color: #4ade80; }
body.tools-hub-page.dark-mode .publisher-content .th-points li {
    background: #112a20;
    border-color: #2a6a4b;
    color: #f8fafc;
}
body.tools-hub-page.dark-mode .publisher-content .th-pt-icon { background: #14532d; color: #bbf7d0; }
body.tools-hub-page.dark-mode .publisher-content .th-pt-icon--warn { background: #5b3a06; color: #fde68a; }
/* dark strip is deeper, not lighter: a link that is 3:1 against white-ish text and 4.5:1 against its background needs a background this dark */
body.tools-hub-page.dark-mode .publisher-content .th-strip {
    background: rgba(0, 0, 0, 0.32);
    border-top-color: #2a6a4b;
}
body.tools-hub-page.dark-mode .publisher-content .th-strip .th-trust { color: #f8fafc; background: transparent; }

/* ================= category colours and four-per-row grid ================= */
/* Each category sets --c (accent), --c-tint (icon tile / hover wash) and --c-deep (hover title). The category name stays in the heading, so colour is never the only cue. */
body.tools-hub-page .th-cat--most     { --c: #1d4ed8; --c-tint: #dbeafe; --c-deep: #1e3a8a; }
body.tools-hub-page .th-cat--format   { --c: #15803d; --c-tint: #dcfce7; --c-deep: #14532d; }
body.tools-hub-page .th-cat--convert  { --c: #6d28d9; --c-tint: #ede9fe; --c-deep: #4c1d95; }
body.tools-hub-page .th-cat--query    { --c: #0f766e; --c-tint: #ccfbf1; --c-deep: #134e4a; }
body.tools-hub-page .th-cat--generate { --c: #b45309; --c-tint: #ffedd5; --c-deep: #7c2d12; }
body.tools-hub-page .th-cat--encode   { --c: #be123c; --c-tint: #ffe4e6; --c-deep: #881337; }
body.tools-hub-page .th-cat--ai       { --c: #a21caf; --c-tint: #fae8ff; --c-deep: #701a75; }
body.tools-hub-page.dark-mode .th-cat--most     { --c: #8ecbff; --c-tint: #24456f; --c-deep: #cfe8ff; }
body.tools-hub-page.dark-mode .th-cat--format   { --c: #4ade80; --c-tint: #14532d; --c-deep: #bbf7d0; }
body.tools-hub-page.dark-mode .th-cat--convert  { --c: #a78bfa; --c-tint: #3b2a72; --c-deep: #ddd6fe; }
body.tools-hub-page.dark-mode .th-cat--query    { --c: #2dd4bf; --c-tint: #134e4a; --c-deep: #99f6e4; }
body.tools-hub-page.dark-mode .th-cat--generate { --c: #fb923c; --c-tint: #5c2a0c; --c-deep: #fed7aa; }
body.tools-hub-page.dark-mode .th-cat--encode   { --c: #fb7185; --c-tint: #5f1228; --c-deep: #fecdd3; }
body.tools-hub-page.dark-mode .th-cat--ai       { --c: #e879f9; --c-tint: #581c63; --c-deep: #f5d0fe; }

body.tools-hub-page .publisher-content h2.th-cat {
    padding-left: 12px;
    border-left: 6px solid var(--c);
    color: var(--c);
    /* the site paints h2 text with an animated blue gradient; category headings use the plain category colour */
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--c);
    animation: none;
}
body.tools-hub-page .publisher-content .th-card {
    border-top: 4px solid var(--c);
}
body.tools-hub-page .publisher-content .th-card h3 a,
body.tools-hub-page .publisher-content .th-card h3 a:link,
body.tools-hub-page .publisher-content .th-card h3 a:visited { color: var(--c); }
body.tools-hub-page .publisher-content .th-card:hover { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); background: #ffffff; }
body.tools-hub-page .publisher-content .th-card:hover h3 a { color: var(--c-deep); }
body.tools-hub-page .publisher-content .th-card:focus-within { outline-color: var(--c); }
body.tools-hub-page .publisher-content .th-card .th-icon,
body.tools-hub-page .publisher-content .th-card--most .th-icon { background: var(--c-tint); color: var(--c); }
body.tools-hub-page.dark-mode .publisher-content .th-card h3 a,
body.tools-hub-page.dark-mode .publisher-content .th-card h3 a:link,
body.tools-hub-page.dark-mode .publisher-content .th-card h3 a:visited { color: var(--c); }
body.tools-hub-page.dark-mode .publisher-content .th-card:hover { background: #232b3d; }
body.tools-hub-page.dark-mode .publisher-content .th-card:hover h3 a { color: var(--c-deep); }
body.tools-hub-page.dark-mode .publisher-content .th-card .th-icon,
body.tools-hub-page.dark-mode .publisher-content .th-card--most .th-icon { background: var(--c-tint); color: var(--c); }

/* 1 column on phones, 2 from 600px, 3 from 900px, 4 from 1100px (the two "most used" cards stay at two) */
body.tools-hub-page .publisher-content ul.th-grid:not(.th-grid--most) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
    body.tools-hub-page .publisher-content ul.th-grid:not(.th-grid--most) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    body.tools-hub-page .publisher-content ul.th-grid:not(.th-grid--most) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    body.tools-hub-page .publisher-content ul.th-grid:not(.th-grid--most) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
