:root {
    --tph-accent: #0d9ca6;
    --tph-accent-dark: #077d86;
    --tph-accent-light: #e1f7f8;
    --tph-text: #1e293b;
    --tph-muted: #5b6b7f;
    --tph-border: #9edfe5;
    --tph-surface: #ffffff;
    --tph-background: #f3f6f7;
    --tph-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --tph-radius: 16px;
    --tph-radius-sm: 10px;
    --tph-max: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--tph-background);
    color: var(--tph-text);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--tph-accent-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input,
textarea,
select,
button {
    font: inherit;
}

button,
.button-primary,
.button-secondary,
.wp-block-button__link {
    cursor: pointer;
}

.container {
    width: min(100% - 32px, var(--tph-max));
    margin-inline: auto;
}

.narrow-container {
    width: min(100% - 32px, 860px);
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    z-index: 99999;
    padding: 10px 14px;
    background: #fff;
    color: #000;
    border-radius: 6px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(13, 156, 166, 0.2);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}

.site-title,
.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--tph-accent);
    letter-spacing: -0.03em;
}

.site-branding img {
    max-height: 56px;
    width: auto;
}

.main-navigation .menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .menu li {
    position: relative;
}

.main-navigation .menu a {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--tph-text);
}

.main-navigation .menu a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--tph-accent);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: transparent;
    border: 1px solid rgba(13, 156, 166, 0.25);
    border-radius: 12px;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
    width: 20px;
    height: 2px;
    background: var(--tph-text);
    display: block;
    border-radius: 999px;
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle__icon::before {
    top: -6px;
}

.menu-toggle__icon::after {
    top: 6px;
}

.menu-open .menu-toggle__icon {
    background: transparent;
}

.menu-open .menu-toggle__icon::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle__icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.hero-section,
.page-hero {
    padding: 74px 0 30px;
    text-align: center;
}

.page-hero--small {
    padding-top: 56px;
}

.page-hero--single-tool {
    padding-bottom: 12px;
}

.hero-section__inner,
.page-hero .container {
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--tph-accent);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
}

.hero-section h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.hero-section p,
.page-hero p {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--tph-muted);
    font-size: 1.06rem;
}

.tools-section,
.blog-strip,
.single-tool__content-wrap,
.page-template-default-wrap,
.not-found-wrap {
    padding: 28px 0 56px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.2vw, 2.3rem);
    line-height: 1.18;
}

.section-heading p {
    margin: 0;
    color: var(--tph-muted);
}

.section-link {
    font-weight: 700;
    color: var(--tph-accent);
    white-space: nowrap;
}

.tool-grid,
.blog-grid {
    display: grid;
    gap: 24px;
}

.tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.tool-card,
.post-card,
.content-card,
.widget,
.search-card,
.empty-state {
    background: var(--tph-surface);
    border: 1.5px solid var(--tph-border);
    border-radius: var(--tph-radius);
    box-shadow: var(--tph-shadow);
}

.tool-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    border-color: var(--tph-accent);
}

.tool-card__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 16px;
}

.tool-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    margin-bottom: 8px;
}

.tool-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--tph-accent);
    color: #fff;
    font-size: 18px;
}

.tool-card__badge {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--tph-accent-dark);
    background: var(--tph-accent-light);
    border-radius: 999px;
    padding: 4px 10px;
}

.tool-card__title {
    margin: 6px 0 8px;
    font-size: 1.28rem;
    line-height: 1.25;
}

.tool-card__text {
    margin: 0;
    color: var(--tph-muted);
    font-size: 0.98rem;
}

.tool-card__note {
    margin-top: 14px;
    color: #8291a7;
    font-size: 0.82rem;
    font-weight: 600;
}

.tool-card__button,
.button-primary,
.button-secondary,
.tool-calculator__actions button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tool-card__button,
.button-primary,
.tool-calculator__actions button:not(.secondary),
.wp-block-button__link {
    margin-top: auto;
    background: var(--tph-accent);
    color: #fff;
}

.tool-card__button:hover,
.button-primary:hover,
.tool-calculator__actions button:not(.secondary):hover,
.wp-block-button__link:hover {
    background: var(--tph-accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

.button-secondary,
.tool-calculator__actions .secondary {
    background: rgba(13, 156, 166, 0.08);
    color: var(--tph-accent-dark);
}

.post-card {
    overflow: hidden;
}

.post-card__image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.post-card__content {
    padding: 18px;
}

.post-card__meta {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--tph-accent-dark);
}

.post-card h2,
.post-card h3,
.search-card h2 {
    margin: 0 0 10px;
    line-height: 1.3;
}

.post-card p,
.search-card p {
    margin: 0;
    color: var(--tph-muted);
}

.content-grid,
.single-tool__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.single-tool__grid {
    align-items: start;
}

.content-card,
.widget,
.search-card,
.empty-state {
    padding: 24px;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    line-height: 1.22;
    margin-top: 1.7em;
    margin-bottom: 0.7em;
}

.entry-content p,
.entry-content li,
.entry-content blockquote,
.entry-content figcaption,
.widget,
.footer-column p,
.footer-column li {
    color: var(--tph-muted);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.15rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
}

.entry-content th,
.entry-content td {
    padding: 12px 14px;
    border: 1px solid #dbe7ec;
}

.entry-content th {
    background: #f5fbfb;
    text-align: left;
}


.tool-custom-content {
    overflow-x: hidden;
}

.single-tool .tool-custom-content,
.single-tool .tool-custom-content * {
    box-sizing: border-box;
}

.tool-custom-content > section,
.tool-custom-content > div,
.tool-custom-content > article {
    max-width: 100%;
}

.tool-custom-content h1:first-child,
.tool-custom-content h2:first-child,
.tool-custom-content h3:first-child,
.tool-custom-content h4:first-child {
    margin-top: 0 !important;
}

.tool-custom-content p,
.tool-custom-content li,
.tool-custom-content td,
.tool-custom-content th {
    overflow-wrap: anywhere;
}

.tool-custom-content iframe,
.tool-custom-content img,
.tool-custom-content svg,
.tool-custom-content canvas,
.tool-custom-content table {
    max-width: 100%;
}

.tool-custom-content ul,
.tool-custom-content ol {
    padding-left: 1.35rem;
}

.tool-custom-content .tool-box,
.tool-custom-content .custom-tool-box,
.tool-custom-content .faq-box,
.tool-custom-content .info-box,
.tool-custom-content .guide-box,
.tool-custom-content .content-box,
.tool-custom-content .result-box {
    padding: clamp(18px, 2.4vw, 30px);
    border-radius: 18px;
    overflow: hidden;
}



.single-tool__grid--embed {
    grid-template-columns: 1fr;
}

.content-card--tool-embed {
    padding: 0;
    overflow: hidden;
}

.tool-sidebar--below {
    position: static;
}

.tool-embed {
    display: grid;
    gap: 14px;
}


.tool-embed__frame {
    width: 100%;
    min-height: 640px;
    border: 0;
    display: block;
    background: #fff;
}

.tool-embed__document {
    display: none;
}

.featured-image-wrap {
    margin-bottom: 22px;
    border-radius: 18px;
    overflow: hidden;
}

.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.tool-sidebar__block h2,
.widget-title {
    margin: 0 0 12px;
    font-size: 1.18rem;
}

.related-tools-list,
.footer-contact-list,
.footer-menu,
.taxonomy-chips,
.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-tools-list li + li,
.footer-contact-list li + li,
.footer-menu li + li {
    margin-top: 10px;
}

.related-tools-list a,
.footer-menu a {
    font-weight: 600;
}

.taxonomy-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.taxonomy-chips a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--tph-border);
    font-size: 0.92rem;
    font-weight: 700;
}

.sidebar-area,
.widget {
    display: grid;
    gap: 20px;
}

.widget_search form,
.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-field,
.tool-calculator__form input,
.tool-calculator__form select,
.comment-form input,
.comment-form textarea,
.comment-form select,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 14px 14px;
    border: 1px solid #cfdee6;
    border-radius: 12px;
    background: #fff;
    color: var(--tph-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-submit,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0;
    background: var(--tph-accent);
    color: #fff;
    font-weight: 700;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
    border-color: var(--tph-accent);
    box-shadow: 0 0 0 4px rgba(13, 156, 166, 0.14);
}

.tool-calculator {
    margin-bottom: 26px;
}

.tool-calculator__box {
    padding: 24px;
    border: 1px solid #d7e6eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

.tool-calculator__box h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.tool-calculator__intro {
    margin: 0 0 18px;
    color: var(--tph-muted);
}

.tool-calculator__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tool-calculator__form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
}

.tool-calculator__form label span {
    font-size: 0.95rem;
}

.tool-calculator__actions,
.tool-calculator__result {
    grid-column: 1 / -1;
}

.tool-calculator__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-calculator__result {
    min-height: 60px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--tph-accent-light);
    color: var(--tph-accent-dark);
    font-weight: 700;
}

.tool-calculator__result:empty {
    display: none;
}

.empty-state {
    text-align: center;
}

.empty-state h3,
.empty-state h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.empty-state p {
    margin: 0;
    color: var(--tph-muted);
}

.empty-state--large {
    padding: 56px 28px;
}

.not-found-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.site-footer {
    margin-top: 30px;
    background: #ffffff;
    border-top: 1px solid rgba(13, 156, 166, 0.18);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 32px;
    padding: 52px 0 34px;
}

.footer-column h2 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--tph-accent);
    color: #fff;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-list .dashicons {
    color: var(--tph-accent);
    margin-top: 2px;
}

.site-footer__bottom {
    background: var(--tph-accent);
    color: #fff;
}

.site-footer__bottom .container {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-footer__bottom p {
    margin: 0;
    color: inherit;
    font-weight: 700;
}

.pagination-wrap {
    margin-top: 26px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--tph-border);
    font-weight: 700;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--tph-accent);
    color: #fff;
}

.alignwide {
    width: min(100%, 1100px);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
}

.wp-caption,
.gallery-caption {
    color: var(--tph-muted);
    font-size: 0.92rem;
}

blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--tph-accent);
    background: #f8fbfc;
    border-radius: 0 12px 12px 0;
}

@media (max-width: 1100px) {
    .tool-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .content-grid,
    .single-tool__grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        position: static;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid rgba(13, 156, 166, 0.18);
        box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
        padding: 0 16px;
        display: none;
    }

    .menu-open .main-navigation {
        display: block;
    }

    .main-navigation .menu {
        padding: 12px 0 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .site-header__inner {
        min-height: 72px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .tool-grid,
    .blog-grid,
    .blog-grid--archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-calculator__form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container,
    .narrow-container {
        width: min(100% - 22px, var(--tph-max));
    }

    .hero-section,
    .page-hero {
        padding-top: 42px;
    }

    .tool-grid,
    .blog-grid,
    .blog-grid--archive {
        grid-template-columns: 1fr;
    }

    .content-card,
    .widget,
    .search-card,
    .empty-state,
    .tool-card__inner,
    .post-card__content,
    .tool-calculator__box {
        padding: 18px;
    }

    .tool-card__title {
        font-size: 1.18rem;
    }

    .site-title,
    .site-branding .custom-logo-link {
        font-size: 1.4rem;
    }

    .tool-calculator__actions,
    .not-found-actions {
        flex-direction: column;
    }

    .tool-card__button,
    .button-primary,
    .button-secondary,
    .tool-calculator__actions button,
    .wp-block-button__link {
        width: 100%;
    }

    .site-footer__grid {
        padding-top: 40px;
        gap: 24px;
    }
}


.hero-section--enhanced {
    padding-bottom: 18px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 860px;
    margin-top: 30px;
}

.hero-stat-card,
.category-card {
    background: #ffffff;
    border: 1.5px solid var(--tph-border);
    border-radius: var(--tph-radius);
    box-shadow: var(--tph-shadow);
}

.hero-stat-card {
    padding: 18px 20px;
    text-align: left;
}

.hero-stat-card strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1;
    color: var(--tph-accent-dark);
}

.hero-stat-card span {
    display: inline-block;
    margin-top: 8px;
    color: var(--tph-muted);
    font-weight: 600;
}

.category-overview-section {
    padding: 26px 0 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--tph-accent);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.category-card a {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 22px;
}

.category-card__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--tph-accent-light);
    color: var(--tph-accent-dark);
    font-size: 24px;
}

.category-card__content {
    flex: 1 1 auto;
}

.category-card__content h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.category-card__content p {
    margin: 0;
    color: var(--tph-muted);
    font-size: 0.95rem;
}

.category-card__count {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--tph-accent-light);
    color: var(--tph-accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.tools-section--featured {
    padding-top: 18px;
}

.tools-section--grouped {
    padding-top: 12px;
}

.category-tool-section + .category-tool-section {
    margin-top: 30px;
}

.category-tool-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.category-tool-section__header h3 {
    margin: 4px 0 8px;
    font-size: clamp(1.4rem, 2vw, 1.95rem);
    line-height: 1.2;
}

.category-tool-section__header p {
    margin: 0;
    color: var(--tph-muted);
}

.category-tool-section__eyebrow {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--tph-accent-light);
    color: var(--tph-accent-dark);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tool-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.taxonomy-chips a[aria-current="page"] {
    background: var(--tph-accent);
    color: #fff;
    border-color: var(--tph-accent);
}

@media (max-width: 1100px) {
    .category-grid,
    .tool-grid--compact,
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .category-tool-section__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero-stats,
    .category-grid,
    .tool-grid--compact {
        grid-template-columns: 1fr;
    }

    .category-card a {
        flex-direction: column;
    }

    .category-card__count {
        align-self: flex-start;
    }
}

[hidden] {
    display: none !important;
}

.section-heading--stack-mobile {
    align-items: center;
}

.tool-finder-section {
    padding: 8px 0 56px;
}

.tool-finder {
    padding: 22px;
    background: linear-gradient(180deg, rgba(13, 156, 166, 0.06), rgba(13, 156, 166, 0.02));
    border: 1.5px solid rgba(13, 156, 166, 0.18);
    border-radius: calc(var(--tph-radius) + 6px);
}

.tool-finder__controls {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.tool-finder__search {
    position: relative;
    display: flex;
    align-items: center;
}

.tool-finder__search .dashicons {
    position: absolute;
    left: 16px;
    color: var(--tph-muted);
}

.tool-finder__search input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px 0 48px;
    border-radius: 14px;
    border: 1.5px solid rgba(13, 156, 166, 0.22);
    background: #fff;
    color: var(--tph-text);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tool-finder__search input:focus {
    border-color: var(--tph-accent);
    box-shadow: 0 0 0 4px rgba(13, 156, 166, 0.12);
}

.tool-finder__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-filter-chip {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(13, 156, 166, 0.22);
    background: #fff;
    color: var(--tph-text);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tool-filter-chip:hover,
.tool-filter-chip:focus-visible {
    border-color: var(--tph-accent);
    color: var(--tph-accent-dark);
    transform: translateY(-1px);
}

.tool-filter-chip.is-active {
    background: var(--tph-accent);
    color: #fff;
    border-color: var(--tph-accent);
}

.tool-finder-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(13, 156, 166, 0.08);
    color: var(--tph-accent-dark);
}

.tool-finder-summary strong {
    font-size: 1.25rem;
    line-height: 1;
}

.tool-finder-summary__label {
    font-size: 0.9rem;
    font-weight: 700;
}

.tool-finder-summary--filtered {
    background: rgba(13, 156, 166, 0.14);
}

.tool-directory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-card.is-hidden {
    display: none;
}

.tool-finder-empty {
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .tool-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .section-heading--stack-mobile {
        flex-direction: column;
        align-items: flex-start;
    }

    .tool-finder {
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .tool-directory-grid {
        grid-template-columns: 1fr;
    }

    .tool-finder__chips {
        gap: 10px;
    }

    .tool-filter-chip {
        width: 100%;
        justify-content: center;
    }

    .tool-finder-summary {
        width: 100%;
        justify-content: center;
    }
}

/* Modern sidebar widgets */
.sidebar-area {
    align-content: start;
}

@media (min-width: 1101px) {
    .sidebar-area {
        position: sticky;
        top: 96px;
    }
}

.sidebar-area .widget {
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

.sidebar-area .widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--tph-dark);
    font-size: 1.08rem;
    line-height: 1.25;
}

.sidebar-area .widget-title::before {
    content: "";
    width: 9px;
    height: 28px;
    border-radius: 999px;
    background: var(--tph-accent);
    box-shadow: 0 8px 18px rgba(13, 156, 166, 0.24);
}

.sidebar-area .widget ul,
.tph-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tph-widget-posts,
.tph-tool-category-list,
.tph-tool-list {
    display: grid;
    gap: 12px;
}

.tph-widget-post,
.tph-tool-category,
.tph-tool-item,
.tph-category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(13, 156, 166, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--tph-dark);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tph-widget-post:hover,
.tph-tool-category:hover,
.tph-tool-item:hover,
.tph-category-link:hover,
.tph-category-link.is-current {
    transform: translateY(-2px);
    border-color: var(--tph-accent);
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.tph-widget-post__thumb,
.tph-tool-category__icon,
.tph-tool-item__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--tph-accent-light);
    color: var(--tph-accent-dark);
    overflow: hidden;
}

.tph-widget-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tph-widget-post__thumb--placeholder .dashicons,
.tph-tool-category__icon,
.tph-tool-item__icon {
    font-size: 22px;
    line-height: 1;
}

.tph-widget-post__body,
.tph-tool-category__body,
.tph-tool-item__body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.tph-widget-post__body strong,
.tph-tool-category__body strong,
.tph-tool-item__body strong,
.tph-category-link span {
    color: var(--tph-dark);
    font-size: 0.98rem;
    line-height: 1.25;
}

.tph-widget-post__body em,
.tph-tool-category__body em,
.tph-tool-item__body em {
    color: var(--tph-muted);
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.35;
}

.tph-category-list {
    display: grid;
    gap: 10px;
}

.tph-category-link {
    justify-content: space-between;
}

.tph-category-link b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--tph-accent-light);
    color: var(--tph-accent-dark);
    font-size: 0.82rem;
}

.sidebar-area .search-form,
.sidebar-area .widget_search form {
    display: grid;
    gap: 10px;
}

.sidebar-area .search-field {
    width: 100%;
}

.sidebar-area .search-submit,
.sidebar-area input[type="submit"] {
    width: 100%;
}

.is-disabled-field {
    opacity: 0.45;
}

.is-disabled-field input {
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .sidebar-area {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 700px) {
    .sidebar-area {
        grid-template-columns: 1fr;
    }

    .tph-widget-post,
    .tph-tool-category,
    .tph-tool-item,
    .tph-category-link {
        padding: 10px;
    }

    .tph-widget-post__thumb,
    .tph-tool-category__icon,
    .tph-tool-item__icon {
        width: 44px;
        height: 44px;
    }
}

.post-navigation-wrap {
    margin-top: 22px;
}

.post-navigation-wrap .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.post-navigation-wrap .nav-previous,
.post-navigation-wrap .nav-next {
    padding: 18px;
    border: 1.5px solid var(--tph-border);
    border-radius: var(--tph-radius-sm);
    background: #fff;
    box-shadow: var(--tph-shadow);
}

.post-navigation-wrap .nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    color: var(--tph-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-title {
    display: block;
    margin-top: 4px;
    color: var(--tph-dark);
    font-weight: 800;
}

.comments-card {
    margin-top: 22px;
}

@media (max-width: 700px) {
    .post-navigation-wrap .nav-links {
        grid-template-columns: 1fr;
    }

    .post-navigation-wrap .nav-next {
        text-align: left;
    }
}
