/* TechReel Directory v4 — public styles */
.tr-directory,
.tr-single {
    --tr-ink: #0f172a;
    --tr-text: #475569;
    --tr-muted: #64748b;
    --tr-line: #e2e8f0;
    --tr-soft: #f8fafc;
    --tr-card: #ffffff;
    --tr-success: #15803d;
    --tr-success-bg: #dcfce7;
    color: var(--tr-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
}
.tr-directory *, .tr-directory *::before, .tr-directory *::after,
.tr-single *, .tr-single *::before, .tr-single *::after { box-sizing: inherit; }
.tr-directory { width: min(calc(100% - 32px), var(--tr-container, 1320px)); margin: 34px auto 72px; }
.tr-directory a, .tr-single a { text-decoration: none; }
.tr-directory button, .tr-directory input, .tr-directory select { font: inherit; }
.tr-directory .screen-reader-text { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

.tr-directory__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 22px;
    padding: 0 2px;
}
.tr-directory__eyebrow { margin: 0 0 5px; color: var(--tr-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tr-directory__heading { margin: 0; color: var(--tr-ink); font-size: clamp(30px, 3.2vw, 44px); font-weight: 850; line-height: 1.08; letter-spacing: -.04em; }
.tr-directory__subtitle { max-width: 760px; margin: 9px 0 0; color: var(--tr-muted); font-size: 15px; }
.tr-directory__term-description { max-width: 820px; margin-top: 12px; font-size: 14px; }
.tr-directory__term-description p { margin: 0; }
.tr-directory__count { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 5px; color: var(--tr-muted); font-size: 13px; white-space: nowrap; }
.tr-directory__count strong { color: var(--tr-ink); font-size: 22px; }

.tr-directory__toolbar {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    padding: 12px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--tr-line);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15,23,42,.06);
    backdrop-filter: blur(14px);
}
.tr-directory__search { position: relative; display: flex; align-items: center; min-width: 0; }
.tr-directory__search svg { position: absolute; left: 15px; width: 20px; height: 20px; color: #94a3b8; pointer-events: none; }
.tr-directory__search input {
    width: 100%; height: 50px; margin: 0; padding: 0 45px 0 45px;
    color: var(--tr-ink); background: var(--tr-soft); border: 1px solid transparent; border-radius: 13px;
    outline: none; box-shadow: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.tr-directory__search input:focus { background: #fff; border-color: color-mix(in srgb, var(--tr-accent) 46%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tr-accent) 12%, transparent); }
.tr-directory__clear-search { position: absolute; right: 8px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; color: #64748b; background: transparent; cursor: pointer; font-size: 24px; line-height: 1; }
.tr-directory__clear-search:hover { color: var(--tr-ink); background: #e2e8f0; }
.tr-directory__sort select {
    min-width: 190px; height: 50px; margin: 0; padding: 0 38px 0 14px;
    color: var(--tr-ink); background-color: #fff; border: 1px solid var(--tr-line); border-radius: 13px;
    box-shadow: none; cursor: pointer;
}
.tr-toolbar-button { height: 50px; padding: 0 16px; color: var(--tr-ink); background: #fff; border: 1px solid var(--tr-line); border-radius: 13px; font-weight: 750; cursor: pointer; }
.tr-toolbar-button--mobile { display: none; }

.tr-directory__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.tr-directory__sidebar {
    position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow: auto;
    padding: 13px; background: var(--tr-card); border: 1px solid var(--tr-line); border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,.045); scrollbar-width: thin;
}
.tr-sidebar__header { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px 12px; }
.tr-sidebar__header strong { display: block; color: var(--tr-ink); font-size: 16px; }
.tr-sidebar__header span { display: block; margin-top: 1px; color: var(--tr-muted); font-size: 12px; }
.tr-sidebar__header button { display: none; width: 36px; height: 36px; padding: 0; color: var(--tr-muted); background: #f1f5f9; border: 0; border-radius: 10px; font-size: 24px; cursor: pointer; }
.tr-directory__sidebar nav { display: grid; gap: 3px; }
.tr-category-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 8px 10px; color: #475569; border-radius: 11px; font-size: 13.5px; font-weight: 650; transition: color .18s, background .18s, transform .18s; }
.tr-category-link b { min-width: 24px; padding: 2px 6px; color: #64748b; background: #f1f5f9; border-radius: 99px; font-size: 11px; font-weight: 750; text-align: center; }
.tr-category-link:hover { color: var(--tr-ink); background: #f8fafc; transform: translateX(2px); }
.tr-category-link.is-active { color: var(--tr-accent); background: color-mix(in srgb, var(--tr-accent) 9%, #fff); font-weight: 800; }
.tr-category-link.is-active b { color: #fff; background: var(--tr-accent); }
.tr-directory__backdrop { display: none; }

.tr-directory__results { min-width: 0; }
.tr-directory__status { min-height: 0; margin: 0 0 10px; color: var(--tr-muted); font-size: 13px; }
.tr-directory__status:empty { display: none; }
.tr-directory__results.is-loading .tr-tool-grid { opacity: .45; pointer-events: none; }
.tr-directory__results.is-loading::before { content: ""; position: absolute; }

.tr-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tr-tool-grid--single { max-width: 430px; grid-template-columns: 1fr; }
.tr-tool-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 265px; padding: 20px;
    background: var(--tr-card); border: 1px solid var(--tr-line); border-radius: var(--tr-card-radius, 18px);
    box-shadow: 0 9px 28px rgba(15,23,42,.04); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tr-tool-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tr-accent) 28%, var(--tr-line)); box-shadow: 0 18px 42px rgba(15,23,42,.09); }
.tr-tool-card__top { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; align-items: start; }
.tr-tool-card__logo { display: grid; place-items: center; width: 54px; height: 54px; overflow: hidden; color: var(--tr-accent); background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; box-shadow: 0 6px 16px rgba(15,23,42,.055); font-size: 26px; }
.tr-tool-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.tr-tool-card__identity { min-width: 0; padding-top: 2px; }
.tr-tool-card__identity h3 { margin: 0; color: var(--tr-ink); font-size: 17px; font-weight: 820; line-height: 1.25; letter-spacing: -.02em; }
.tr-tool-card__identity h3 a { color: inherit; }
.tr-tool-card__identity h3 a:hover { color: var(--tr-accent); }
.tr-tool-card__category { display: inline-block; max-width: 100%; margin-top: 5px; overflow: hidden; color: var(--tr-muted); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.tr-tool-card__category:hover { color: var(--tr-accent); }
.tr-tool-card__badge { align-self: start; padding: 5px 8px; color: var(--tr-success); background: var(--tr-success-bg); border-radius: 999px; font-size: 10px; font-weight: 850; line-height: 1.2; white-space: nowrap; }
.tr-tool-card__description { display: -webkit-box; min-height: 67px; margin: 17px 0 10px; overflow: hidden; color: var(--tr-text); font-size: 14px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tr-tool-card__best { margin: auto 0 16px; overflow: hidden; color: var(--tr-muted); font-size: 12.5px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.tr-tool-card__best span { color: var(--tr-ink); font-weight: 750; }
.tr-tool-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; }
.tr-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 8px 13px; border: 1px solid transparent; border-radius: 11px; font-size: 12.5px; font-weight: 800; line-height: 1.2; text-align: center; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.tr-button:hover { transform: translateY(-1px); }
.tr-button--primary { color: #fff !important; background: var(--tr-accent); border-color: var(--tr-accent); }
.tr-button--primary:hover { color: #fff !important; background: var(--tr-accent-hover); border-color: var(--tr-accent-hover); }
.tr-button--secondary { color: var(--tr-ink) !important; background: #fff; border-color: var(--tr-line); }
.tr-button--secondary:hover { color: var(--tr-accent) !important; border-color: color-mix(in srgb, var(--tr-accent) 35%, var(--tr-line)); background: color-mix(in srgb, var(--tr-accent) 4%, #fff); }

.tr-directory-empty { grid-column: 1 / -1; display: grid; justify-items: center; min-height: 340px; padding: 70px 25px; color: var(--tr-muted); background: #fff; border: 1px dashed #cbd5e1; border-radius: 18px; text-align: center; }
.tr-directory-empty > svg { width: 48px; height: 48px; color: #94a3b8; }
.tr-directory-empty h3 { margin: 15px 0 4px; color: var(--tr-ink); font-size: 20px; }
.tr-directory-empty p { margin: 0; }

.tr-directory__pagination { margin-top: 28px; }
.tr-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; }
.tr-pagination a, .tr-pagination > span:not(.tr-pagination__dots) { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 11px; color: var(--tr-text); background: #fff; border: 1px solid var(--tr-line); border-radius: 10px; font-size: 13px; font-weight: 750; }
.tr-pagination a:hover { color: var(--tr-accent); border-color: color-mix(in srgb, var(--tr-accent) 35%, var(--tr-line)); }
.tr-pagination .is-current { color: #fff !important; background: var(--tr-accent) !important; border-color: var(--tr-accent) !important; }
.tr-pagination__dots { color: var(--tr-muted); }

/* Single listing */
.tr-single { width: min(calc(100% - 32px), var(--tr-container,1320px)); margin: 28px auto 72px; }
.tr-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 18px; color: var(--tr-muted); font-size: 12.5px; }
.tr-breadcrumbs a { color: var(--tr-muted); }
.tr-breadcrumbs a:hover { color: var(--tr-accent); }
.tr-single__header { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 22px; align-items: center; padding: 27px; background: #fff; border: 1px solid var(--tr-line); border-radius: 22px; box-shadow: 0 14px 40px rgba(15,23,42,.055); }
.tr-single__logo { display: grid; place-items: center; width: 82px; height: 82px; overflow: hidden; color: var(--tr-accent); background: #fff; border: 1px solid var(--tr-line); border-radius: 20px; box-shadow: 0 7px 20px rgba(15,23,42,.07); font-size: 38px; }
.tr-single__logo img { width: 100%; height: 100%; object-fit: contain; padding: 9px; }
.tr-single__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 5px; }
.tr-single__labels a { color: var(--tr-muted); font-size: 12px; font-weight: 700; }
.tr-single__free-badge { padding: 4px 8px; color: var(--tr-success); background: var(--tr-success-bg); border-radius: 999px; font-size: 10px; font-weight: 850; }
.tr-single__identity h1 { margin: 0; color: var(--tr-ink); font-size: clamp(30px,4vw,46px); font-weight: 880; line-height: 1.06; letter-spacing: -.045em; }
.tr-single__identity p { max-width: 760px; margin: 10px 0 0; color: var(--tr-text); font-size: 15px; }
.tr-single__visit { min-width: 150px; }
.tr-single__layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 28px; align-items: start; margin-top: 28px; }
.tr-single__content { min-width: 0; }
.tr-content-section { margin-bottom: 20px; padding: 25px; background: #fff; border: 1px solid var(--tr-line); border-radius: 18px; }
.tr-content-section h2 { margin: 0 0 13px; color: var(--tr-ink); font-size: 21px; font-weight: 830; letter-spacing: -.025em; }
.tr-content-section p:last-child { margin-bottom: 0; }
.tr-content-section ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.tr-content-section li { position: relative; padding-left: 22px; }
.tr-content-section li::before { content: "✓"; position: absolute; left: 0; color: var(--tr-success); font-weight: 850; }
.tr-content-section.is-negative li::before { content: "–"; color: #b45309; }
.tr-single__pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tr-single__pros-cons .tr-content-section { height: calc(100% - 20px); }
.tr-single__facts { position: sticky; top: 94px; padding: 22px; background: #fff; border: 1px solid var(--tr-line); border-radius: 18px; box-shadow: 0 12px 32px rgba(15,23,42,.05); }
.tr-single__facts h2 { margin: 0 0 12px; color: var(--tr-ink); font-size: 19px; }
.tr-fact-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.tr-fact-row span { color: var(--tr-muted); }
.tr-fact-row strong { max-width: 58%; color: var(--tr-ink); text-align: right; }
.tr-single__facts-button { width: 100%; margin-top: 18px; }
.tr-related { margin-top: 28px; }
.tr-related__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tr-related__heading h2 { margin: 0; color: var(--tr-ink); font-size: 24px; }
.tr-related__heading a { color: var(--tr-accent); font-size: 13px; font-weight: 750; }

@media (max-width: 1180px) {
    .tr-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tr-directory__layout { grid-template-columns: 225px minmax(0,1fr); gap: 20px; }
}
@media (max-width: 900px) {
    .tr-directory { width: min(calc(100% - 24px), var(--tr-container,1320px)); margin-top: 22px; }
    .tr-directory__intro { align-items: flex-start; }
    .tr-directory__toolbar { grid-template-columns: minmax(0,1fr) auto auto; }
    .tr-toolbar-button--mobile { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
    .tr-directory__sort select { min-width: 150px; }
    .tr-directory__layout { display: block; }
    .tr-directory__sidebar { position: fixed; z-index: 100002; top: 0; bottom: 0; left: 0; width: min(86vw,340px); max-height: none; padding: 16px; border: 0; border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .25s ease; }
    .tr-directory.is-categories-open .tr-directory__sidebar { transform: translateX(0); }
    .tr-sidebar__header button { display: grid; place-items: center; }
    .tr-directory__backdrop { position: fixed; z-index: 100001; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(15,23,42,.48); border: 0; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
    .tr-directory.is-categories-open .tr-directory__backdrop { display: block; opacity: 1; visibility: visible; }
    body.tr-directory-lock { overflow: hidden; }
    .tr-single__layout { grid-template-columns: 1fr; }
    .tr-single__facts { position: static; order: -1; }
}
@media (max-width: 680px) {
    .tr-directory { width: calc(100% - 20px); margin: 16px auto 48px; }
    .tr-directory__intro { display: block; margin-bottom: 17px; }
    .tr-directory__heading { font-size: 30px; }
    .tr-directory__subtitle { margin-top: 7px; font-size: 14px; }
    .tr-directory__count { margin-top: 9px; }
    .tr-directory__toolbar { grid-template-columns: 1fr 1fr; gap: 9px; padding: 9px; border-radius: 15px; }
    .tr-directory__search { grid-column: 1 / -1; }
    .tr-directory__search input { height: 48px; }
    .tr-toolbar-button, .tr-directory__sort select { width: 100%; min-width: 0; height: 46px; }
    .tr-tool-grid { grid-template-columns: 1fr; gap: 13px; }
    .tr-tool-card { min-height: 0; padding: 17px; }
    .tr-tool-card__top { grid-template-columns: 50px minmax(0,1fr) auto; gap: 10px; }
    .tr-tool-card__logo { width: 50px; height: 50px; border-radius: 13px; }
    .tr-tool-card__badge { padding: 4px 6px; font-size: 9px; }
    .tr-tool-card__description { min-height: 0; margin: 14px 0 9px; -webkit-line-clamp: 2; }
    .tr-tool-card__actions { gap: 8px; }
    .tr-button { min-height: 45px; }
    .tr-pagination a span { display: none; }
    .tr-single { width: calc(100% - 20px); margin-top: 16px; }
    .tr-breadcrumbs { overflow: hidden; flex-wrap: nowrap; white-space: nowrap; }
    .tr-single__header { grid-template-columns: 64px minmax(0,1fr); gap: 14px; padding: 18px; border-radius: 18px; }
    .tr-single__logo { width: 64px; height: 64px; border-radius: 16px; }
    .tr-single__identity h1 { font-size: 29px; }
    .tr-single__identity p { font-size: 14px; }
    .tr-single__visit { grid-column: 1 / -1; width: 100%; }
    .tr-single__layout { gap: 18px; margin-top: 18px; }
    .tr-content-section, .tr-single__facts { padding: 19px; border-radius: 16px; }
    .tr-single__pros-cons { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 390px) {
    .tr-tool-card__top { grid-template-columns: 48px minmax(0,1fr); }
    .tr-tool-card__badge { grid-column: 2; justify-self: start; margin-top: -3px; }
    .tr-tool-card__actions { grid-template-columns: 1fr; }
}
.tr-tool-card--skeleton { overflow: hidden; pointer-events: none; }
.tr-skeleton { position: relative; overflow: hidden; background: #e9eef5; border-radius: 10px; }
.tr-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: tr-skeleton 1.15s infinite; }
.tr-skeleton--head { width: 72%; height: 54px; }
.tr-skeleton--line { width: 100%; height: 14px; margin-top: 22px; }
.tr-skeleton--short { width: 68%; margin-top: 9px; }
.tr-skeleton--buttons { width: 100%; height: 43px; margin-top: auto; }
@keyframes tr-skeleton { to { transform: translateX(100%); } }

/* =========================================================
   Server-rendered homepage Useful Websites section
   Shortcode: [techreel_latest_websites count="3"]
   ========================================================= */
.tr-home-websites,
.tr-home-websites * {
    box-sizing: border-box;
}

.tr-home-websites {
    --tr-home-websites-primary: var(--tr-accent, #5b5cf0);
    --tr-home-websites-primary-dark: var(--tr-accent-hover, #4849d8);
    width: 100%;
    padding: 62px 20px;
    color: #475569;
    background:
        radial-gradient(circle at 92% 8%, rgba(91, 92, 240, .12), transparent 31%),
        linear-gradient(180deg, #f8f8ff 0%, #f5f6ff 100%);
    font-family: Inter, Arial, sans-serif;
}

.tr-home-websites__inner {
    width: min(100%, var(--tr-container, 1320px));
    margin: 0 auto;
}

.tr-home-websites__header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
}

.tr-home-websites__heading-copy {
    max-width: 720px;
}

.tr-home-websites__kicker {
    margin: 0 0 7px;
    color: var(--tr-home-websites-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.tr-home-websites__title {
    margin: 0;
    color: #0f172a;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-size: clamp(27px, 2.7vw, 36px);
    font-weight: 850;
    line-height: 1.16;
    letter-spacing: -.04em;
}

.tr-home-websites__description {
    max-width: 680px;
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.tr-home-websites__link {
    flex: 0 0 auto;
    min-height: 43px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9dcf0;
    border-radius: 11px;
    color: var(--tr-home-websites-primary);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 7px 20px rgba(42, 46, 95, .05);
    font-size: 13px;
    font-weight: 780;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.tr-home-websites__link:hover,
.tr-home-websites__link:focus-visible {
    color: var(--tr-home-websites-primary-dark);
    border-color: #c5c6f8;
    background: #fff;
    transform: translateY(-1px);
    outline: none;
}

.tr-home-websites__grid {
    --tr-home-websites-count: 3;
    display: grid;
    grid-template-columns: repeat(var(--tr-home-websites-count), minmax(0, 1fr));
    gap: 16px;
}

.tr-home-site-card {
    position: relative;
    min-width: 0;
    min-height: 238px;
    padding: 19px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(216, 219, 237, .96);
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 32px rgba(42, 46, 95, .065);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tr-home-site-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tr-home-websites-primary), #8b8df8);
    opacity: .86;
}

.tr-home-site-card:hover {
    border-color: #c5c6f8;
    box-shadow: 0 18px 42px rgba(42, 46, 95, .105);
    transform: translateY(-3px);
}

.tr-home-site-card__top {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
}

.tr-home-site-card__logo {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: var(--tr-home-websites-primary);
    background: #fff;
    box-shadow: 0 6px 15px rgba(15, 23, 42, .055);
    font-size: 22px;
    text-decoration: none;
}

.tr-home-site-card__logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.tr-home-site-card__identity {
    min-width: 0;
}

.tr-home-site-card__category {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    color: #7c7fdc;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tr-home-site-card__identity h3 {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 820;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tr-home-site-card__identity h3 a {
    color: inherit;
    text-decoration: none;
}

.tr-home-site-card__identity h3 a:hover,
.tr-home-site-card__identity h3 a:focus-visible {
    color: var(--tr-home-websites-primary);
    outline: none;
}

.tr-home-site-card__details {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e4ee;
    border-radius: 10px;
    color: #64748b;
    background: #f8fafc;
    font-size: 16px;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.tr-home-site-card__details:hover,
.tr-home-site-card__details:focus-visible {
    color: var(--tr-home-websites-primary);
    border-color: #c7c8fb;
    background: #eeeeff;
    outline: none;
}

.tr-home-site-card__description {
    display: -webkit-box;
    margin: 17px 0 18px;
    overflow: hidden;
    color: #566176;
    font-size: 12.5px;
    line-height: 1.62;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tr-home-site-card__footer {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf0f5;
}

.tr-home-site-card__badge {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #16803d;
    font-size: 10.5px;
    font-weight: 760;
    white-space: nowrap;
}

.tr-home-site-card__visit {
    flex: 0 0 auto;
    color: var(--tr-home-websites-primary);
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
}

.tr-home-site-card__visit:hover,
.tr-home-site-card__visit:focus-visible {
    color: var(--tr-home-websites-primary-dark);
    outline: none;
}

.tr-home-websites__empty {
    min-height: 150px;
    padding: 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px dashed #c8cce1;
    border-radius: 16px;
    color: #64748b;
    background: rgba(255, 255, 255, .76);
}

.tr-home-websites__empty > span {
    font-size: 28px;
}

.tr-home-websites__empty strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 14px;
}

.tr-home-websites__empty p {
    margin: 0;
    font-size: 12.5px;
}

.tr-home-websites__empty a {
    color: var(--tr-home-websites-primary);
    font-size: 12.5px;
    font-weight: 780;
    text-decoration: none;
}

@media (max-width: 1020px) {
    .tr-home-websites__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tr-home-websites__grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 620px;
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .tr-home-websites {
        padding: 38px 12px;
    }

    .tr-home-websites__header {
        margin-bottom: 18px;
        display: grid;
        align-items: start;
        gap: 14px;
    }

    .tr-home-websites__link {
        width: fit-content;
    }

    .tr-home-websites__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tr-home-websites__grid > :last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
    }

    .tr-home-site-card {
        min-height: 220px;
        padding: 17px;
        border-radius: 15px;
    }

    .tr-home-site-card__description {
        margin: 15px 0 16px;
        -webkit-line-clamp: 2;
    }

    .tr-home-websites__empty {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* =========================================================
   Focused competitor-style AI Tool category archive v4.0.7
   Automatic on /ai-tool-category/{slug}/
   ========================================================= */
#trc47-category-page,
#trc47-category-page * {
    box-sizing: border-box;
}

#trc47-category-page {
    width: min(calc(100% - 36px), var(--tr-container, 1320px));
    margin: 46px auto 76px;
}

#trc47-category-page .trc47-intro {
    max-width: 900px;
    margin: 0 0 26px;
    padding: 0 2px;
}

#trc47-category-page .trc47-eyebrow {
    margin: 0 0 7px;
    color: var(--tr-accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#trc47-category-page .trc47-intro h1 {
    margin: 0;
    color: var(--tr-ink);
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 880;
    line-height: 1.06;
    letter-spacing: -.045em;
}

#trc47-category-page .trc47-description {
    max-width: 820px;
    margin: 12px 0 0;
    color: var(--tr-text);
    font-size: 15px;
    line-height: 1.7;
}

#trc47-category-page .trc47-range {
    margin: 14px 0 0;
    color: var(--tr-muted);
    font-size: 13px;
    font-weight: 650;
}

#trc47-category-page .trc47-toolbar {
    grid-template-columns: minmax(0, 1fr) 210px;
    margin: 0 0 24px;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}

#trc47-category-page .trc47-search input,
#trc47-category-page .trc47-sort select {
    height: 48px;
}

#trc47-category-page .trc47-sort select {
    width: 100%;
    min-width: 0;
}

#trc47-category-page .trc47-results {
    min-width: 0;
}

#trc47-category-page .trc47-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

#trc47-category-page .trc47-pagination {
    margin-top: 30px;
}

#trc47-category-page .trc47-info {
    margin-top: 64px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: 52px;
    align-items: start;
    border: 1px solid var(--tr-line);
    border-radius: 20px;
    background: #f8fafc;
}

#trc47-category-page .trc47-info-copy h2 {
    margin: 0;
    color: var(--tr-ink);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -.035em;
}

#trc47-category-page .trc47-info-copy > p:last-child {
    margin: 12px 0 0;
    color: var(--tr-text);
    font-size: 14px;
    line-height: 1.72;
}

#trc47-category-page .trc47-faq {
    border-top: 1px solid var(--tr-line);
}

#trc47-category-page .trc47-faq details {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--tr-line);
}

#trc47-category-page .trc47-faq summary {
    position: relative;
    min-height: 62px;
    padding: 19px 48px 19px 0;
    display: flex;
    align-items: center;
    color: var(--tr-ink);
    font-size: 14px;
    font-weight: 780;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

#trc47-category-page .trc47-faq summary::-webkit-details-marker {
    display: none;
}

#trc47-category-page .trc47-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--tr-accent);
    background: color-mix(in srgb, var(--tr-accent) 9%, #fff);
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
}

#trc47-category-page .trc47-faq details[open] summary::after {
    content: "\2212";
}

#trc47-category-page .trc47-faq details p {
    margin: -5px 48px 20px 0;
    color: var(--tr-muted);
    font-size: 13.5px;
    line-height: 1.7;
}

@media (max-width: 1050px) {
    #trc47-category-page .trc47-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #trc47-category-page .trc47-info {
        gap: 34px;
    }
}

@media (max-width: 680px) {
    #trc47-category-page {
        width: calc(100% - 20px);
        margin: 25px auto 52px;
    }

    #trc47-category-page .trc47-intro {
        margin-bottom: 19px;
    }

    #trc47-category-page .trc47-intro h1 {
        font-size: 31px;
    }

    #trc47-category-page .trc47-description {
        margin-top: 9px;
        font-size: 14px;
        line-height: 1.65;
    }

    #trc47-category-page .trc47-range {
        margin-top: 10px;
        font-size: 12.5px;
    }

    #trc47-category-page .trc47-toolbar {
        grid-template-columns: minmax(0, 1fr) 128px;
        gap: 8px;
        padding: 8px;
        border-radius: 14px;
    }

    #trc47-category-page .trc47-toolbar .tr-directory__search {
        grid-column: auto;
    }

    #trc47-category-page .trc47-search input,
    #trc47-category-page .trc47-sort select {
        height: 46px;
        font-size: 13px;
    }

    #trc47-category-page .trc47-search input {
        padding-left: 40px;
        padding-right: 34px;
    }

    #trc47-category-page .trc47-search svg {
        left: 13px;
        width: 18px;
        height: 18px;
    }

    #trc47-category-page .trc47-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    #trc47-category-page .trc47-info {
        margin-top: 44px;
        padding: 22px 18px;
        grid-template-columns: 1fr;
        gap: 22px;
        border-radius: 17px;
    }

    #trc47-category-page .trc47-faq summary {
        min-height: 58px;
        padding-right: 43px;
        font-size: 13.5px;
    }

    #trc47-category-page .trc47-faq details p {
        margin-right: 0;
    }
}

@media (max-width: 390px) {
    #trc47-category-page .trc47-toolbar {
        grid-template-columns: 1fr;
    }

    #trc47-category-page .trc47-toolbar .tr-directory__search {
        grid-column: 1;
    }
}
