/* Percentiva Tools Hub - teal (#00c9a7) + navy accents */
:root {
    --pth-teal: #00c9a7;
    --pth-teal-dark: #00a98a;
    --pth-navy: #0d2b45;
    --pth-navy-deep: #0a2540;
    --pth-navy-soft: #164a73;
    --pth-bg: #f6faf9;
    --pth-border: #d9e6e2;
    --pth-text: #1c2b33;
}

.pth-wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 48px; color: var(--pth-text); }
/* Wide layout for the hub, category and tool pages: use the theme's full
   content area up to 1280px instead of the narrow 880px column. */
.pth-wrap.pth-wide { max-width: 1280px; width: 100%; box-sizing: border-box; padding: 28px 20px 56px; }
.pth-wrap a { color: var(--pth-navy-soft); }
.pth-breadcrumb { font-size: 0.9rem; color: #5a6d75; margin: 0 0 8px; }
.pth-title { color: var(--pth-navy); font-size: 2.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.pth-wrap h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: var(--pth-navy); }
.pth-intro { font-size: 1.06rem; line-height: 1.6; margin: 0 0 20px; }
.pth-assumptions { background: #fff8e6; border: 1px solid #f0dfae; border-radius: 8px; padding: 12px 14px; font-size: 0.95rem; line-height: 1.55; }
.pth-how p, .pth-faq p { line-height: 1.65; }
.pth-faq h3 { color: var(--pth-navy); margin: 18px 0 6px; font-size: 1.05rem; }
.pth-more { margin-top: 36px; }

/* Tool UI */
.pth-tool { background: var(--pth-bg); border: 1px solid var(--pth-border); border-radius: 12px; padding: 20px; margin: 20px 0; }
.pth-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.pth-field { display: flex; flex-direction: column; gap: 6px; }
.pth-field-label { font-weight: 600; font-size: 0.92rem; color: var(--pth-navy); }
.pth-input, .pth-field select, .pth-field textarea {
    width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 1rem;
    border: 1px solid var(--pth-border); border-radius: 8px; background: #fff; color: var(--pth-text);
}
.pth-field textarea { grid-column: 1 / -1; }
.pth-field:has(textarea) { grid-column: 1 / -1; }
.pth-input:focus, .pth-field select:focus, .pth-field textarea:focus { outline: 2px solid var(--pth-teal); outline-offset: 0; border-color: var(--pth-teal); }
.pth-input-wrap { display: flex; align-items: center; gap: 6px; }
.pth-affix { color: #5a6d75; font-size: 0.95rem; }
.pth-help { margin: 0; font-size: 0.85rem; color: #5a6d75; }
.pth-check { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.pth-range-value { font-weight: 700; color: var(--pth-navy); min-width: 2ch; }
.pth-field-button { justify-content: flex-end; }
.pth-btn {
    display: inline-block; background: var(--pth-teal); color: #fff; border: 0; cursor: pointer;
    font-size: 1rem; font-weight: 700; padding: 11px 18px; border-radius: 8px; text-decoration: none;
}
.pth-btn:hover { background: var(--pth-teal-dark); }
.pth-canvas { background: #fff; border: 1px solid var(--pth-border); border-radius: 8px; max-width: 100%; height: auto; }
.pth-download { margin-top: 8px; align-self: flex-start; }

.pth-results { margin-top: 20px; background: #fff; border: 1px solid var(--pth-border); border-top: 4px solid var(--pth-teal); border-radius: 10px; padding: 16px 18px; }
.pth-results-title { margin: 0 0 10px; color: var(--pth-navy); font-size: 1.1rem; }
.pth-out { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--pth-border); }
.pth-out:last-child { border-bottom: 0; }
.pth-out-label { color: #43565f; font-size: 0.97rem; }
.pth-out-value { font-weight: 700; color: var(--pth-navy); font-size: 1.05rem; text-align: right; word-break: break-word; }
.pth-out-html, .pth-out-pre { flex-direction: column; align-items: stretch; }
.pth-code { background: #0d2b45; color: #d7f5ee; padding: 14px; border-radius: 8px; overflow: auto; font-size: 0.88rem; max-height: 380px; white-space: pre-wrap; word-break: break-word; }
.pth-out-html-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pth-out-html-body th, .pth-out-html-body td { border: 1px solid var(--pth-border); padding: 6px 8px; text-align: right; }
.pth-out-html-body th { background: var(--pth-bg); color: var(--pth-navy); }
.pth-meter { display: inline-block; width: 180px; height: 12px; background: #e5efec; border-radius: 999px; overflow: hidden; vertical-align: middle; }
.pth-meter-fill { display: block; height: 100%; background: var(--pth-teal); transition: width 0.25s ease; }

/* Hub */
.pth-hub-search { margin: 18px 0 26px; }
.pth-hub-search-input { width: 100%; box-sizing: border-box; padding: 13px 16px; font-size: 1.05rem; border: 1px solid var(--pth-border); border-radius: 10px; }
.pth-hub-search-input:focus { outline: 2px solid var(--pth-teal); border-color: var(--pth-teal); }
.pth-hub-group { margin-bottom: 34px; }
.pth-hub-group-title { color: var(--pth-navy); font-size: 1.5rem; font-weight: 700; margin: 0 0 14px; }
.pth-count { background: var(--pth-teal); color: #fff; font-size: 0.8rem; border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.pth-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 641px) {
    .pth-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .pth-grid { grid-template-columns: repeat(3, 1fr); }
}
.pth-card { display: block; background: #fff; border: 1px solid var(--pth-border); border-top: 3px solid var(--pth-teal); border-radius: 14px; padding: 20px; text-decoration: none; box-shadow: 0 1px 3px rgba(13, 43, 69, 0.06); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.pth-card:hover { border-color: var(--pth-teal); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13, 43, 69, 0.12); }
.pth-card-title { display: block; font-weight: 800; font-size: 1.05rem; color: var(--pth-navy); margin-bottom: 5px; }
.pth-card-desc { display: block; color: #43565f; font-size: 0.92rem; line-height: 1.45; }
.pth-hub-empty { color: #5a6d75; font-style: italic; }

/* Hub hero (wide navy block at the top of /tools/: title, subtext, search) */
.pth-hero { background: linear-gradient(135deg, var(--pth-navy-deep) 0%, var(--pth-navy-soft) 100%); border-radius: 16px; padding: 44px 32px 36px; margin: 4px 0 34px; text-align: center; }
.pth-hero .pth-title { color: #fff; font-size: 2.4rem; margin: 0 0 10px; }
.pth-hero-sub { color: #cfe6df; font-size: 1.12rem; line-height: 1.55; margin: 0 auto 24px; max-width: 640px; }
.pth-hero .pth-hub-search { max-width: 640px; margin: 0 auto; }
.pth-hero .pth-hub-search-input { padding: 15px 18px; font-size: 1.1rem; border: 0; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }

/* Category pages */
.pth-category-all { margin-top: 26px; font-weight: 600; }

/* Bulk DR checker results */
.pth-dr-summary { margin: 0 0 10px; font-size: 0.97rem; color: var(--pth-text); }
.pth-dr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pth-dr-table th, .pth-dr-table td { border: 1px solid var(--pth-border); padding: 6px 8px; text-align: left; vertical-align: middle; }
.pth-dr-table th { background: var(--pth-bg); color: var(--pth-navy); }
.pth-dr-table tbody tr:nth-child(even) { background: #fbfdfc; }
.pth-dr-domain { font-weight: 600; color: var(--pth-navy); word-break: break-all; }
.pth-dr-cached { font-weight: 400; font-size: 0.8rem; color: #5a6d75; }
.pth-dr-num { font-weight: 700; color: var(--pth-navy); font-size: 1.02rem; }
.pth-dr-meter { width: 84px; height: 8px; margin-left: 4px; }
.pth-dr-error { color: #9a3b2e; }
.pth-dr-attribution { margin: 10px 0 0; font-size: 0.85rem; color: #5a6d75; }
.pth-age-note { margin: 10px 0 0; font-size: 0.85rem; color: #5a6d75; }
.pth-dr-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.pth-btn-alt { background: #fff; color: var(--pth-navy); border: 1px solid var(--pth-teal); font-size: 0.92rem; padding: 9px 14px; }
.pth-btn-alt:hover { background: var(--pth-bg); color: var(--pth-navy); }

/* Email finder & verifier results */
.pth-ef-email { display: block; margin: 2px 0; word-break: break-all; }
.pth-ef-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.pth-ef-chip-verified { background: #e0f2e4; color: #1d6b34; }
.pth-ef-chip-risky { background: #fdf0d3; color: #8a5a00; }
.pth-ef-chip-invalid { background: #fbe3de; color: #9a3b2e; }
.pth-ef-chip-unknown { background: #e8edef; color: #5a6d75; }
.pth-ef-chip-pattern { background: #e8edef; color: #5a6d75; border: 1px dashed #93a8b1; }
.pth-ef-best { font-weight: 600; color: var(--pth-navy); word-break: break-all; }
.pth-ef-note { margin: 0 0 10px; font-size: 0.9rem; color: #8a5a00; }
.pth-ef-note2 { margin: 10px 0 0; font-size: 0.85rem; color: #5a6d75; }
.pth-ef-socials { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 400; color: #5a6d75; }
.pth-ef-socials a { margin-right: 6px; }
.pth-ef-enrich { display: block; margin-top: 6px; }
.pth-ef-enrich-label { display: block; font-size: 0.78rem; font-weight: 700; color: #5a6d75; margin-bottom: 2px; }
.pth-ef-chip-social { background: #e3ecfb; color: #274b8f; }
.pth-ef-chip-web { background: #e6f0e4; color: #33691e; }
.pth-ef-chip-enriched { background: #e3ecfb; color: #274b8f; white-space: normal; }
.pth-ef-source { font-size: 0.8rem; }

@media (max-width: 560px) {
    .pth-title { font-size: 1.8rem; }
    .pth-hero { padding: 30px 18px 24px; }
    .pth-hero .pth-title { font-size: 1.9rem; }
    .pth-wrap.pth-wide { padding: 20px 14px 44px; }
    .pth-tool { padding: 15px; }
    .pth-meter { width: 120px; }
    .pth-dr-table { font-size: 0.82rem; }
    .pth-dr-meter { display: none; }
}
