/* =====================================================================
   HOMEPAGE — light, border-based visual system.
   Loaded only by resources/views/home.blade.php (via @push('head')) as a
   plain stylesheet — no Tailwind/Vite build needed to change it — and
   every rule is scoped to .wt-home / .wt-* classes, so no other page or
   the admin panel is affected. Fonts come from the Inter import already
   in app.css.
   ===================================================================== */

.wt-home {
    /* Colors come from Admin Panel → Site Settings → Appearance, printed as
       :root variables by partials/theme-tokens.blade.php (App\Support\ThemeTokens). */
    --wt-radius: 8px;
    --wt-radius-lg: 10px;
    --wt-shadow-sm: 0 1px 2px rgb(14 34 51 / 0.04);
    --wt-shadow-md: 0 6px 16px -8px rgb(14 34 51 / 0.14);
    --wt-ease: cubic-bezier(.2, .7, .2, 1);
    --wt-header-h: 68px;
}

/* Beat the dark theme's body background ([data-theme] body + admin overrides). */
html body.wt-home {
    background: var(--wt-bg) !important;
    color: var(--wt-text);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    overflow-x: hidden;
}

.wt-home ::selection { background: var(--wt-accent-border); color: var(--wt-navy); }

.wt-home a:focus-visible,
.wt-home button:focus-visible,
.wt-home input:focus-visible {
    outline: 2px solid var(--wt-teal);
    outline-offset: 2px;
}

.wt-container {
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 768px) { .wt-container { padding: 0 32px; } }

.wt-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wt-ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------
   Brand mark (used only when no logo image is uploaded)
   --------------------------------------------------------------------- */
.wt-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--wt-navy); text-decoration: none; flex-shrink: 0;
}
.wt-brand-logo { height: 50px; width: auto; display: block; }
.wt-brand-name { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.wt-mark {
    width: 26px; height: 26px; border-radius: 7px;
    background: linear-gradient(135deg, var(--wt-teal) 0 50%, var(--wt-navy-2) 50% 100%);
    display: inline-block; flex-shrink: 0;
}
.wt-mark-light { background: linear-gradient(135deg, var(--wt-accent-muted) 0 50%, #FFFFFF 50% 100%); }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
html body.wt-home header.wt-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--wt-bg) 94%, transparent) !important;
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--wt-border) !important;
}
.wt-header-inner {
    height: var(--wt-header-h);
    display: flex; align-items: center; gap: 24px;
}
.wt-nav {
    display: none; align-items: center; gap: 4px;
    margin-left: 20px; flex: 1; min-width: 0;
}
@media (min-width: 1024px) { .wt-nav { display: flex; } }

.wt-nav-item { position: relative; }
.wt-nav-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 6px;
    font-size: 0.875rem; font-weight: 500; color: var(--wt-text-2);
    text-decoration: none; white-space: nowrap;
    transition: color .15s var(--wt-ease), background-color .15s var(--wt-ease);
}
.wt-nav-link:hover { color: var(--wt-navy); background: var(--wt-bg-soft); }
.wt-nav-caret { width: 14px; height: 14px; color: var(--wt-muted-2); transition: transform .2s var(--wt-ease); }
.wt-nav-link[aria-expanded="true"] .wt-nav-caret { transform: rotate(180deg); }

.wt-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
    width: 290px; padding: 10px;
    background: var(--wt-card); border: 1px solid var(--wt-border); border-radius: var(--wt-radius-lg);
    box-shadow: 0 16px 32px -16px rgb(14 34 51 / 0.22);
}
.wt-dropdown::before { /* hover bridge between link and panel */
    content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
}
.wt-dropdown-label {
    padding: 4px 10px 8px; font-size: 0.6875rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--wt-muted-2);
}
.wt-dropdown-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 6px;
    font-size: 0.8125rem; font-weight: 500; color: var(--wt-text-2); text-decoration: none;
}
.wt-dropdown-link:hover { background: var(--wt-bg-soft); color: var(--wt-navy); }
.wt-dropdown-icon { width: 16px; height: 16px; color: var(--wt-teal); flex-shrink: 0; }
.wt-dropdown-all {
    display: flex; align-items: center; gap: 6px;
    margin-top: 6px; padding: 10px 10px 4px; border-top: 1px solid var(--wt-border);
    font-size: 0.8125rem; font-weight: 600; color: var(--wt-teal-strong); text-decoration: none;
}
.wt-dropdown-all:hover .wt-link-more-icon { transform: translateX(3px); }

.wt-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wt-search-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px; border-radius: 8px;
    background: var(--wt-teal-soft); color: var(--wt-teal-strong);
    border: 1px solid var(--wt-accent-border);
    font-size: 0.8125rem; font-weight: 600; cursor: pointer;
    transition: background-color .15s var(--wt-ease), border-color .15s var(--wt-ease);
}
.wt-search-btn:hover { background: var(--wt-accent-hover); border-color: var(--wt-accent-border-strong); }
.wt-search-btn .wt-ico { width: 16px; height: 16px; }
@media (max-width: 479px) {
    .wt-search-btn { width: 40px; padding: 0; justify-content: center; }
    .wt-search-btn-text { display: none; }
}
.wt-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    color: var(--wt-navy); border: 1px solid var(--wt-border); background: var(--wt-card); cursor: pointer;
}
.wt-burger .wt-ico { width: 20px; height: 20px; }
@media (min-width: 1024px) { .wt-burger { display: none; } }

.wt-mobile-nav {
    border-top: 1px solid var(--wt-border); background: var(--wt-bg);
    padding: 8px 0 16px;
    max-height: calc(100vh - var(--wt-header-h)); overflow-y: auto;
}
@media (min-width: 1024px) { .wt-mobile-nav { display: none !important; } }
.wt-mobile-link {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--wt-divider);
    font-size: 0.9375rem; font-weight: 500; color: var(--wt-text); text-decoration: none;
}
.wt-mobile-link:last-child { border-bottom: 0; }
.wt-mobile-caret { width: 16px; height: 16px; color: var(--wt-muted-2); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.wt-hero {
    background:
        linear-gradient(180deg, var(--wt-section-deep) 0%, var(--wt-section-light) 70%, #FFFFFF 100%);
    border-bottom: 1px solid var(--wt-border);
    padding: 48px 0 44px;
}
@media (min-width: 1024px) { .wt-hero { padding: 72px 0 64px; } }

.wt-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
    .wt-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; }
}

.wt-eyebrow {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--wt-teal); margin-bottom: 16px;
}
.wt-hero-title {
    font-size: clamp(2.1rem, 1.35rem + 3vw, 3.35rem);
    line-height: 1.08; letter-spacing: -0.035em; font-weight: 700;
    color: var(--wt-navy); margin-bottom: 20px;
}
.wt-hero-line { display: block; }
.wt-hero-highlight { color: var(--wt-teal); }
.wt-hero-sub {
    font-size: 1.0625rem; line-height: 1.65; color: var(--wt-muted);
    max-width: 34rem; margin-bottom: 28px;
}
@media (max-width: 479px) { .wt-hero-sub { font-size: 1rem; } }

/* Search */
.wt-search {
    position: relative; display: flex; align-items: center;
    max-width: 38rem; height: 56px;
    background: var(--wt-card); border: 1px solid var(--wt-border-strong); border-radius: 10px;
    box-shadow: var(--wt-shadow-sm);
    transition: border-color .15s var(--wt-ease), box-shadow .15s var(--wt-ease);
}
.wt-search:focus-within {
    border-color: var(--wt-teal);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--wt-teal) 12%, transparent);
}
.wt-search-icon { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--wt-teal); pointer-events: none; }
.wt-home .wt-search-input {
    flex: 1; min-width: 0; height: 100%;
    padding: 0 12px 0 50px; border: 0; background: transparent; border-radius: 10px;
    font-size: 0.9875rem; color: var(--wt-text); outline: none; box-shadow: none;
    -webkit-appearance: none; appearance: none;
}
.wt-home .wt-search-input:focus { outline: none; box-shadow: none; }
.wt-search-input::placeholder { color: var(--wt-muted-2); }
.wt-search-input::-webkit-search-cancel-button { display: none; }
.wt-kbd {
    display: none; align-items: center; gap: 3px;
    margin-right: 12px; padding: 4px 8px;
    font-family: inherit; font-size: 0.75rem; font-weight: 500; color: var(--wt-muted);
    background: var(--wt-bg-soft); border: 1px solid var(--wt-border); border-radius: 6px;
    white-space: nowrap;
}
.wt-kbd-plus { color: var(--wt-muted-2); padding: 0 1px; }
@media (min-width: 768px) and (hover: hover) { .wt-kbd { display: inline-flex; } }
.wt-search-clear {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-right: 8px; border-radius: 8px;
    color: var(--wt-muted); background: transparent; border: 0; cursor: pointer;
}
.wt-search-clear:hover { background: var(--wt-bg-soft); color: var(--wt-navy); }

.wt-hero-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 24px; max-width: 38rem; margin-top: 16px;
}
.wt-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 0.8125rem; }
.wt-quick-label { color: var(--wt-teal-strong); font-weight: 600; margin-right: 8px; }
.wt-quick-link {
    color: var(--wt-muted); text-decoration: none;
    transition: color .15s var(--wt-ease);
}
.wt-quick-link:hover { color: var(--wt-navy); text-decoration: underline; text-underline-offset: 3px; }
.wt-quick-link + .wt-quick-link::before {
    content: '•'; color: var(--wt-border-strong); margin: 0 8px; display: inline-block; text-decoration: none;
}
.wt-hero-actions { display: flex; align-items: center; gap: 16px; }
.wt-hero-action {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8125rem; font-weight: 600; color: var(--wt-navy); text-decoration: none;
}
.wt-hero-action:hover .wt-link-more-icon { transform: translateX(3px); }
.wt-hero-action-muted { color: var(--wt-muted); font-weight: 500; }

/* Showcase panels */
.wt-showcase {
    display: grid; gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wt-panel {
    background: var(--wt-card); border: 1px solid var(--wt-border); border-radius: var(--wt-radius-lg);
    padding: 18px 20px; box-shadow: var(--wt-shadow-sm); min-width: 0;
    container-type: inline-size;
}
/* Narrow panel: drop the decorative browser sketch so the list keeps its room. */
@container (max-width: 330px) {
    .wt-browser { display: none; }
}
.wt-panel-label { font-size: 0.8125rem; font-weight: 600; color: var(--wt-navy); margin-bottom: 14px; }

.wt-library-figure { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wt-library-count {
    font-size: 2.6rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--wt-navy);
}
.wt-library-caption { font-size: 0.75rem; line-height: 1.45; color: var(--wt-muted); }
.wt-dist { display: flex; gap: 3px; height: 8px; }
.wt-dist span { display: block; border-radius: 2px; min-width: 6px; }

.wt-cats-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.wt-cats-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; min-width: 0; flex: 1; }
.wt-cats-list li { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--wt-text-2); }
.wt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wt-teal); flex-shrink: 0; }
.wt-cats-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wt-cats-num { margin-left: auto; font-weight: 600; color: var(--wt-navy); font-variant-numeric: tabular-nums; }
.wt-bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; flex-shrink: 0; }
.wt-bars span { width: 8px; border-radius: 2px 2px 0 0; background: var(--wt-teal); opacity: .85; }
.wt-bars span:nth-child(odd) { background: var(--wt-navy-2); }

.wt-checks-body { display: flex; align-items: center; gap: 16px; }
.wt-checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; flex: 1; min-width: 0; }
.wt-checks li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 0.75rem; color: var(--wt-text-2);
}
.wt-checks li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-check-icon { width: 15px; height: 15px; color: var(--wt-teal); flex-shrink: 0; stroke-width: 2.2; }
.wt-browser {
    position: relative; flex-shrink: 0; width: 76px; height: 58px;
    border: 1.5px solid var(--wt-navy-2); border-radius: 6px; padding: 16px 8px 0;
}
.wt-browser-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 11px;
    border-bottom: 1.5px solid var(--wt-navy-2); display: flex; gap: 3px; align-items: center; padding-left: 5px;
}
.wt-browser-bar i { width: 3px; height: 3px; border-radius: 50%; background: var(--wt-navy-2); display: block; }
.wt-browser-line { display: block; height: 5px; border-radius: 2px; background: var(--wt-skeleton); margin-bottom: 5px; }
.wt-browser-line.wt-short { width: 60%; }
.wt-browser-badge {
    position: absolute; right: -9px; bottom: -9px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--wt-teal); color: #fff; border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
}
.wt-browser-badge .wt-ico { width: 13px; height: 13px; stroke-width: 2.5; }

/* Most Popular Tools — dark card, most-viewed tools from visitor analytics. */
.wt-panel-popular {
    background: var(--wt-navy-2); border-color: var(--wt-navy-2);
    display: flex; flex-direction: column;
}
.wt-popular-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; min-width: 0; }
.wt-panel-popular .wt-panel-label { color: #fff; margin-bottom: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-popular-period { font-size: 0.6875rem; color: var(--wt-on-primary-muted); white-space: nowrap; }
.wt-popular-list { display: grid; gap: 4px; }
.wt-popular-link {
    display: flex; align-items: center; gap: 10px;
    margin: 0 -8px; padding: 5px 8px; border-radius: 6px;
    font-size: 0.75rem; color: #fff; text-decoration: none;
    transition: background-color .15s var(--wt-ease);
}
.wt-popular-link:hover { background: color-mix(in srgb, #FFFFFF 10%, transparent); }
.wt-popular-link:focus-visible { outline: 2px solid var(--wt-on-primary-dot); outline-offset: 1px; }
.wt-popular-rank {
    width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.6875rem; font-weight: 700; color: var(--wt-navy-2); background: var(--wt-on-primary-dot);
}
.wt-popular-name { min-width: 0; flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-popular-views { flex-shrink: 0; font-weight: 600; color: var(--wt-on-primary-muted); font-variant-numeric: tabular-nums; }
.wt-popular-go { width: 13px; height: 13px; flex-shrink: 0; color: var(--wt-on-primary-muted); transition: transform .15s var(--wt-ease); }
.wt-popular-link:hover .wt-popular-go { transform: translate(2px, -2px); color: #fff; }

/* No cards switched on: the copy uses the full width. */
@media (min-width: 1024px) { .wt-hero-grid.is-single { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 639px) {
    .wt-showcase { grid-template-columns: minmax(0, 1fr); }
    .wt-panel-checks { display: none; }
}

/* ---------------------------------------------------------------------
   Category navigation
   --------------------------------------------------------------------- */
.wt-catnav { border-bottom: 1px solid var(--wt-border); background: var(--wt-bg); }
.wt-catnav-track {
    display: flex; gap: 4px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 -20px; padding: 0 20px;
    scroll-snap-type: x proximity;
}
.wt-catnav-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .wt-catnav-track { margin: 0; padding: 0; } }
@media (min-width: 1200px) { .wt-catnav-track { justify-content: space-between; } }
.wt-catnav-item {
    position: relative; flex-shrink: 0; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: 10px;
    height: 60px; padding: 0 14px;
    font-size: 0.875rem; font-weight: 500; color: var(--wt-muted); text-decoration: none; white-space: nowrap;
    transition: color .15s var(--wt-ease);
}
.wt-catnav-item::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
    background: var(--wt-teal); border-radius: 2px; transform: scaleX(0);
    transition: transform .2s var(--wt-ease);
}
.wt-catnav-item:hover { color: var(--wt-navy); }
.wt-catnav-item.is-active { color: var(--wt-navy); }
.wt-catnav-item.is-active::after { transform: scaleX(1); }
.wt-catnav-icon { width: 20px; height: 20px; color: var(--wt-navy-2); }
.wt-catnav-item.is-active .wt-catnav-icon { color: var(--wt-teal); }

/* ---------------------------------------------------------------------
   Sections — shared
   --------------------------------------------------------------------- */
.wt-section { padding: 48px 0 0; }
@media (min-width: 768px) { .wt-section { padding-top: 56px; } }
.wt-section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px;
}
.wt-h2 { font-size: 1.625rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; color: var(--wt-navy); }
@media (min-width: 768px) { .wt-h2 { font-size: 1.875rem; } }
.wt-h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--wt-navy); }
.wt-section-sub { margin-top: 6px; font-size: 0.9375rem; color: var(--wt-muted); }

.wt-link-more {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    font-size: 0.8125rem; font-weight: 600; color: var(--wt-teal-strong);
    background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none;
}
.wt-link-more:hover { color: var(--wt-navy); }
.wt-link-more-icon { width: 15px; height: 15px; transition: transform .2s var(--wt-ease); }
.wt-link-more:hover .wt-link-more-icon { transform: translateX(3px); }
.wt-chevron { display: inline-flex; transition: transform .2s var(--wt-ease); }
.wt-chevron.is-open { transform: rotate(180deg); }
.wt-link-more:hover .wt-chevron .wt-link-more-icon { transform: none; }

.wt-badge {
    display: inline-flex; align-items: center;
    padding: 3px 8px; border-radius: 5px;
    font-size: 0.6875rem; font-weight: 600; color: var(--wt-teal-strong);
    background: var(--wt-teal-soft);
    max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Featured tools
   --------------------------------------------------------------------- */
.wt-featured-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .wt-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wt-featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.wt-feature-card {
    position: relative; display: flex; flex-direction: column;
    padding: 20px 20px 22px; min-height: 180px;
    background: var(--wt-card); border: 1px solid var(--wt-border); border-radius: var(--wt-radius-lg);
    text-decoration: none;
    transition: border-color .2s var(--wt-ease), box-shadow .2s var(--wt-ease), transform .2s var(--wt-ease);
}
.wt-feature-card:hover {
    border-color: var(--wt-border-strong); box-shadow: var(--wt-shadow-md); transform: translateY(-2px);
}
.wt-feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.wt-feature-icon {
    width: 44px; height: 44px; border-radius: 9px;
    background: var(--wt-navy-2); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background-color .2s var(--wt-ease);
}
.wt-feature-icon .wt-ico { width: 22px; height: 22px; }
.wt-feature-card:hover .wt-feature-icon { background: var(--wt-teal); }
.wt-feature-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--wt-navy); margin-bottom: 6px; }
.wt-feature-desc {
    font-size: 0.8125rem; line-height: 1.55; color: var(--wt-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wt-feature-arrow {
    position: absolute; right: 18px; bottom: 18px;
    width: 16px; height: 16px; color: var(--wt-navy);
    transition: transform .2s var(--wt-ease), color .2s var(--wt-ease);
}
.wt-feature-card:hover .wt-feature-arrow { transform: translateX(3px); color: var(--wt-teal); }

@media (max-width: 639px) {
    .wt-feature-card { min-height: 0; padding: 16px 16px 18px; }
    .wt-feature-top { margin-bottom: 12px; }
    .wt-feature-icon { width: 40px; height: 40px; }
    .wt-section-head { flex-wrap: wrap; align-items: flex-start; }
    .wt-tool { padding: 14px; }
}

.wt-ad { margin-top: 40px; }
.wt-ad img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------------
   All tools directory
   --------------------------------------------------------------------- */
.wt-directory { padding-top: 56px; }
@media (min-width: 768px) { .wt-directory { padding-top: 64px; } }
.wt-directory-head { padding-bottom: 24px; border-bottom: 1px solid var(--wt-border); margin-bottom: 8px; }

.wt-cat { padding-top: 28px; scroll-margin-top: calc(var(--wt-header-h) + 16px); }
.wt-cat-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.wt-cat-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wt-cat-icon { width: 22px; height: 22px; color: var(--wt-teal); flex-shrink: 0; }
.wt-count {
    font-size: 0.75rem; font-weight: 600; color: var(--wt-muted);
    background: var(--wt-bg-soft); border: 1px solid var(--wt-border);
    border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums;
}

.wt-tool-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .wt-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wt-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .wt-tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.wt-tool {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 16px 16px 16px; min-height: 84px;
    background: var(--wt-card); border: 1px solid var(--wt-border); border-radius: var(--wt-radius);
    text-decoration: none;
    transition: border-color .18s var(--wt-ease), box-shadow .18s var(--wt-ease), transform .18s var(--wt-ease);
}
.wt-tool:hover { border-color: var(--wt-border-strong); box-shadow: var(--wt-shadow-md); transform: translateY(-1px); }
.wt-tool-icon {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--wt-bg-soft); color: var(--wt-navy-2); border: 1px solid var(--wt-border);
    transition: background-color .18s var(--wt-ease), color .18s var(--wt-ease), border-color .18s var(--wt-ease);
}
.wt-tool-icon .wt-ico { width: 19px; height: 19px; }
.wt-tool:hover .wt-tool-icon { background: var(--wt-teal-soft); color: var(--wt-teal); border-color: var(--wt-accent-border); }
.wt-tool-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; padding-top: 1px; }
.wt-tool-name {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--wt-navy);
}
.wt-tool-desc {
    font-size: 0.78rem; line-height: 1.5; color: var(--wt-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wt-tool-arrow {
    width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: var(--wt-muted-2);
    transition: transform .18s var(--wt-ease), color .18s var(--wt-ease);
}
.wt-tool:hover .wt-tool-arrow { transform: translateX(3px); color: var(--wt-teal); }

.wt-tool:not(:has(.wt-tool-desc)) { align-items: center; min-height: 68px; }
.wt-tool:not(:has(.wt-tool-desc)) .wt-tool-arrow { margin-top: 0; }
.wt-tool.is-soon { cursor: default; background: var(--wt-card-soft); }
.wt-tool.is-soon:hover { transform: none; box-shadow: none; border-color: var(--wt-border); }
.wt-tool.is-soon .wt-tool-arrow { visibility: hidden; }
.wt-soon {
    font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--tp-warning); background: var(--tp-warning-bg); border-radius: 4px; padding: 2px 6px;
}

.wt-empty { text-align: center; padding: 56px 0 24px; }
.wt-empty-icon { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--wt-border-strong); }
.wt-empty-title { font-weight: 600; color: var(--wt-navy); margin-bottom: 4px; }
.wt-empty-text { font-size: 0.875rem; color: var(--wt-muted); }
.wt-text-btn { color: var(--wt-teal-strong); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; }
.wt-text-btn:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   Value strip
   --------------------------------------------------------------------- */
.wt-values-wrap { padding-top: 64px; padding-bottom: 56px; }
@media (max-width: 639px) { .wt-values-wrap { padding-bottom: 40px; } }
.wt-values {
    display: grid; grid-template-columns: minmax(0, 1fr);
    background: var(--wt-bg-soft); border: 1px solid var(--wt-border); border-radius: var(--wt-radius-lg);
}
@media (min-width: 640px) { .wt-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wt-values { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wt-value { display: flex; align-items: center; gap: 14px; padding: 20px 24px; min-width: 0; }
.wt-value + .wt-value { border-top: 1px solid var(--wt-border); }
@media (min-width: 640px) {
    .wt-value + .wt-value { border-top: 0; }
    .wt-value:nth-child(n+3) { border-top: 1px solid var(--wt-border); }
    .wt-value:nth-child(even) { border-left: 1px solid var(--wt-border); }
}
@media (min-width: 1024px) {
    .wt-value:nth-child(n+3) { border-top: 0; }
    .wt-value + .wt-value { border-left: 1px solid var(--wt-border); }
}
.wt-value-icon { width: 24px; height: 24px; color: var(--wt-navy-2); flex-shrink: 0; }
.wt-value-title { font-size: 0.875rem; font-weight: 600; color: var(--wt-navy); }
.wt-value-text { font-size: 0.75rem; color: var(--wt-muted); margin-top: 2px; }
/* Fewer than four highlights: the row still fills the width on desktop. */
@media (min-width: 1024px) {
    .wt-values.is-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wt-values.is-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wt-values.is-count-1 { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) { .wt-values.is-count-1 { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.wt-footer { margin-top: 72px; border-top: 1px solid var(--wt-border); background: var(--wt-bg); }
.wt-footer-grid {
    display: grid; gap: 32px; padding: 48px 0 36px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .wt-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wt-footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 48px; } }
.wt-footer-about .wt-brand-logo { height: 52px; }
.wt-footer-text { margin-top: -6px; max-width: 22rem; font-size: 0.8125rem; line-height: 1.65; color: var(--wt-muted); }
.wt-footer-text a { color: var(--wt-teal-strong); }
.wt-footer-heading {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--wt-navy); margin-bottom: 14px;
}
.wt-footer-list { display: grid; gap: 10px; font-size: 0.8125rem; color: var(--wt-muted); }
.wt-footer-list a { color: var(--wt-muted); text-decoration: none; transition: color .15s var(--wt-ease); }
.wt-footer-list a:hover { color: var(--wt-navy); }
.wt-footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.wt-footer-contact i { width: 14px; margin-top: 3px; font-size: 0.75rem; color: var(--wt-teal); text-align: center; }
.wt-footer-list a.wt-footer-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--wt-teal-strong); }
.wt-footer-list a.wt-footer-cta:hover .wt-link-more-icon { transform: translateX(3px); }
.wt-social { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-social a {
    width: 36px; height: 36px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--wt-border); color: var(--wt-navy-2); font-size: 0.875rem; text-decoration: none;
    transition: border-color .15s var(--wt-ease), color .15s var(--wt-ease), background-color .15s var(--wt-ease);
}
.wt-social a:hover { border-color: var(--wt-teal); color: var(--wt-teal); background: var(--wt-teal-soft); }
.wt-footer-ad { padding-bottom: 24px; }
.wt-footer-bottom {
    border-top: 1px solid var(--wt-border); padding: 20px 0 28px;
    font-size: 0.75rem; color: var(--wt-muted-2);
}

/* Sponsor banners (AdRenderer markup) — every redesigned page: a framed
   card with a small "Sponsored" label in the Appearance colors. */
.wt-home .sponsor-slot {
    position: relative; display: block; overflow: hidden;
    border: 1px solid var(--wt-border); border-radius: var(--wt-radius-lg);
    background: var(--wt-card); line-height: 0;
    transition: border-color .15s var(--wt-ease), box-shadow .15s var(--wt-ease);
}
.wt-home .sponsor-slot:hover { border-color: var(--wt-border-strong); box-shadow: var(--wt-shadow-sm); }
.wt-home .sponsor-slot img { display: block; width: 100%; height: auto; border-radius: 0; }
.wt-home .sponsor-tag {
    position: absolute; top: 8px; right: 8px; line-height: 1.4;
    padding: 2px 8px; border-radius: 999px;
    font-family: inherit; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--wt-muted); background: color-mix(in srgb, var(--wt-card) 92%, transparent);
    border: 1px solid var(--wt-border); box-shadow: 0 1px 2px rgba(14, 34, 51, .06);
}
.wt-home .sponsor-picture { display: block; }
/* Phones: the label moves to its own line above the banner so it never
   covers the banner's text or button. */
@media (max-width: 639px) {
    .wt-home .sponsor-slot { display: flex; flex-direction: column; }
    .wt-home .sponsor-tag {
        position: static; order: -1; align-self: stretch;
        padding: 5px 10px; border: 0; border-bottom: 1px solid var(--wt-border); border-radius: 0;
        background: var(--wt-bg-soft); box-shadow: none; font-size: 0.5625rem; text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wt-home *, .wt-home *::before, .wt-home *::after {
        transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important;
    }
}

/* ---------------------------------------------------------------------
   Homepage FAQ (Admin → Site Settings → General → Homepage FAQ)
   --------------------------------------------------------------------- */
.wt-faq { border-top: 1px solid var(--wt-border); }
.wt-faq-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .wt-faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }
.wt-faq-intro .wt-eyebrow { margin-bottom: 10px; }
.wt-faq-intro .wt-section-sub { margin-top: 10px; max-width: 26rem; }
.wt-faq-contact { margin-top: 18px; }
.wt-faq-list { display: grid; gap: 10px; min-width: 0; }
.wt-faq-item {
    background: var(--wt-card); border: 1px solid var(--wt-border); border-radius: var(--wt-radius-lg);
    transition: border-color .15s var(--wt-ease), box-shadow .15s var(--wt-ease);
}
.wt-faq-item.is-open { border-color: var(--wt-accent-border); box-shadow: var(--wt-shadow-sm); }
.wt-faq-q { margin: 0; font-size: 1rem; }
.wt-faq-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
    padding: 16px 18px; border: 0; background: transparent; cursor: pointer; text-align: left;
    font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; color: var(--wt-navy);
}
.wt-faq-btn:hover { color: var(--wt-teal-strong); }
.wt-faq-btn:focus-visible { outline: 2px solid var(--wt-teal); outline-offset: -2px; border-radius: var(--wt-radius-lg); }
.wt-faq-caret { width: 18px; height: 18px; flex-shrink: 0; color: var(--wt-muted); transition: transform .2s var(--wt-ease); }
.wt-faq-item.is-open .wt-faq-caret { transform: rotate(180deg); color: var(--wt-teal); }
.wt-faq-a { padding: 0 18px 16px; }
.wt-faq-a p { margin: 0; font-size: 0.875rem; line-height: 1.7; color: var(--wt-muted); }
