/* ---------------------------------------------------------------------------
   Free tools (free-tools.html and the tool pages built by
   tools/pages/free-tools.mjs). Same tokens as the main page (css/home.css):
   neutral surfaces, the red accent, green/amber/red only for results.
   Everything is `ft-` prefixed because the pages also carry Webflow,
   Tailwind and Geist class names.
   --------------------------------------------------------------------------- */

.ft {
    --ft-bg: #0b0b0b;
    --ft-raised: hsla(0, 0%, 100%, 0.024);
    --ft-raised-2: hsla(0, 0%, 100%, 0.05);
    --ft-border: hsla(0, 0%, 100%, 0.12);
    --ft-border-soft: hsla(0, 0%, 100%, 0.07);
    --ft-border-strong: hsla(0, 0%, 100%, 0.22);
    --ft-fg: #ededed;
    --ft-muted: #a1a1a1;
    --ft-faint: #7d7d7d;
    --ft-accent: #cf362d;
    --ft-accent-hover: #e0473d;
    --ft-accent-text: #f0786f;
    --ft-good: #4ade80;
    --ft-warn: #fbbf24;
    --ft-bad: #f87171;
    --ft-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 16px 40px;
    box-sizing: border-box;
    color: var(--ft-fg);
    text-align: left;
}

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

.ft [hidden] {
    display: none !important;
}

/* ---- hero ----------------------------------------------------------------- */
.ft-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--ft-faint);
}

.ft-crumbs li + li::before {
    content: '/';
    margin-right: 6px;
    color: var(--ft-border-strong);
}

.ft-crumbs a {
    color: var(--ft-muted);
    text-decoration: none;
}

.ft-crumbs a:hover {
    color: var(--ft-fg);
}

.ft-hero {
    max-width: 760px;
    margin-bottom: 28px;
}

.ft-hero-center {
    margin: 0 auto 40px;
    text-align: center;
}

.ft-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ft-accent-text);
}

.ft-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ft-hero p {
    margin: 14px 0 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ft-muted);
}

.ft-hero-center p {
    margin-left: auto;
    margin-right: auto;
}

.ft-private {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 12px;
    border: 1px solid var(--ft-border);
    border-radius: 999px;
    background: var(--ft-raised);
    font-size: 13px;
    color: var(--ft-muted);
}

.ft-private svg {
    flex: none;
    color: var(--ft-good);
}

/* ---- panels, fields, buttons ------------------------------------------------ */
.ft-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--ft-border);
    border-radius: 16px;
    background:
        linear-gradient(180deg, hsla(0, 0%, 100%, 0.035), hsla(0, 0%, 100%, 0.01)),
        var(--ft-bg);
}

.ft-panel + .ft-panel,
.ft-panel + .ft-results,
.ft-results + .ft-panel {
    margin-top: 16px;
}

.ft-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.ft-panel-head h2,
.ft-panel-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.ft-panel-head p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--ft-faint);
}

.ft-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ft-muted);
}

.ft .ft-input,
.ft .ft-textarea,
.ft .ft-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ft-border);
    border-radius: 10px;
    background: #050505;
    color: var(--ft-fg);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.ft-textarea {
    min-height: 220px;
    resize: vertical;
    font-family: var(--ft-mono);
    font-size: 12.5px;
    line-height: 1.55;
}

.ft .ft-input:focus,
.ft .ft-textarea:focus,
.ft .ft-select:focus {
    border-color: var(--ft-border-strong);
    box-shadow: 0 0 0 3px hsla(0, 0%, 100%, 0.06);
}

.ft .ft-input::placeholder,
.ft .ft-textarea::placeholder {
    color: #5c5c5c;
    font-family: inherit;
    font-weight: 400;
}

.ft-select {
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.ft-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ft-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ft-border);
    border-radius: 10px;
    background: var(--ft-raised-2);
    color: var(--ft-fg);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s;
}

.ft-btn:hover {
    border-color: var(--ft-border-strong);
    background: hsla(0, 0%, 100%, 0.09);
}

.ft-btn:focus-visible,
.ft-tab:focus-visible,
.ft-drop:focus-visible {
    outline: 2px solid var(--ft-accent-text);
    outline-offset: 2px;
}

.ft-btn-primary {
    border-color: var(--ft-accent);
    background: var(--ft-accent);
    color: #fff;
}

.ft-btn-primary:hover {
    border-color: var(--ft-accent-hover);
    background: var(--ft-accent-hover);
}

.ft-btn-ghost {
    border-color: transparent;
    background: transparent;
    color: var(--ft-muted);
}

.ft-btn-ghost:hover {
    color: var(--ft-fg);
}

.ft-btn-sm {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
}

.ft-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---- tabs ------------------------------------------------------------------- */
.ft-tabs {
    display: flex;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid var(--ft-border);
    border-radius: 12px;
    background: var(--ft-raised);
}

.ft-tab {
    flex: none;
    padding: 7px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ft-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.ft-tab:hover {
    color: var(--ft-fg);
}

.ft-tab[aria-selected='true'] {
    background: hsla(0, 0%, 100%, 0.1);
    color: var(--ft-fg);
}

/* ---- drop zone ---------------------------------------------------------------- */
.ft-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 28px 16px;
    border: 1.5px dashed var(--ft-border-strong);
    border-radius: 14px;
    background: hsla(0, 0%, 100%, 0.015);
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s;
}

.ft-drop:hover,
.ft-drop.is-over {
    border-color: var(--ft-accent-text);
    background: rgba(207, 54, 45, 0.05);
}

.ft-drop svg {
    color: var(--ft-muted);
}

.ft-drop strong {
    font-size: 15px;
    font-weight: 600;
}

.ft-drop span {
    font-size: 13px;
    color: var(--ft-faint);
}

.ft-drop input {
    display: none;
}

/* ---- results ---------------------------------------------------------------- */
.ft-results {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.ft-empty {
    padding: 28px 16px;
    border: 1px dashed var(--ft-border);
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    color: var(--ft-faint);
}

.ft-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.ft-stat {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
    background: var(--ft-raised);
}

.ft-stat dt {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--ft-faint);
}

.ft-stat dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 500;
}

.ft-findings {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft-finding {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 14px;
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
    background: var(--ft-raised);
    font-size: 14px;
    line-height: 1.5;
}

.ft-finding b {
    display: block;
    font-weight: 600;
}

.ft-finding span {
    color: var(--ft-muted);
    overflow-wrap: anywhere;
}

.ft-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ft-good .ft-dot {
    background: rgba(74, 222, 128, 0.14);
    color: var(--ft-good);
}

.ft-warn .ft-dot {
    background: rgba(251, 191, 36, 0.14);
    color: var(--ft-warn);
}

.ft-bad .ft-dot {
    background: rgba(248, 113, 113, 0.14);
    color: var(--ft-bad);
}

.ft-info .ft-dot {
    background: hsla(0, 0%, 100%, 0.08);
    color: var(--ft-muted);
}

.ft-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ft-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--ft-border);
    border-radius: 999px;
    background: var(--ft-raised);
    font-size: 12px;
    font-weight: 500;
    color: var(--ft-muted);
    white-space: nowrap;
}

.ft-chip.ft-good {
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--ft-good);
}

.ft-chip.ft-warn {
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--ft-warn);
}

.ft-chip.ft-bad {
    border-color: rgba(248, 113, 113, 0.32);
    color: var(--ft-bad);
}

/* Key/value tables (headers, metadata, hashes). */
.ft-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
}

.ft-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ft-table th,
.ft-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--ft-border-soft);
    vertical-align: top;
    text-align: left;
}

.ft-table tr:last-child th,
.ft-table tr:last-child td {
    border-bottom: 0;
}

.ft-table th {
    width: 30%;
    min-width: 140px;
    font-weight: 500;
    color: var(--ft-muted);
}

.ft-table thead th {
    width: auto;
    background: var(--ft-raised);
    font-size: 12px;
    color: var(--ft-faint);
}

.ft-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ft-table .ft-sens th {
    color: var(--ft-warn);
}

.ft-mono {
    font-family: var(--ft-mono);
    font-size: 12.5px;
}

.ft-muted {
    color: var(--ft-muted);
}

.ft-faint {
    color: var(--ft-faint);
}

.ft-section-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ft-faint);
}

.ft-note {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ft-faint);
}

.ft-note a,
.ft-prose a,
.ft-finding a,
.ft-table a {
    color: var(--ft-accent-text);
    text-decoration: none;
}

.ft-note a:hover,
.ft-prose a:hover,
.ft-finding a:hover,
.ft-table a:hover {
    text-decoration: underline;
}

/* ---- email header analyzer: the hop timeline ---------------------------------- */
.ft-hops {
    position: relative;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft-hop {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
    background: var(--ft-raised);
}

.ft-hop-n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--ft-border);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: var(--ft-muted);
}

.ft-hop-main {
    min-width: 0;
    font-size: 13px;
    line-height: 1.55;
}

.ft-hop-main b {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ft-hop-main div {
    color: var(--ft-muted);
    overflow-wrap: anywhere;
}

.ft-hop-time {
    text-align: right;
    font-size: 12px;
    color: var(--ft-faint);
    white-space: nowrap;
}

.ft-hop-time strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ft-fg);
}

.ft-hop-time .ft-slow {
    color: var(--ft-warn);
}

/* ---- metadata viewer ------------------------------------------------------------ */
.ft-file {
    display: grid;
    gap: 16px;
}

.ft-file-head {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.ft-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
    background: #050505;
    color: var(--ft-faint);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ft-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ft-file-name {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 600;
}

.ft-file-meta {
    margin: 4px 0 10px;
    font-size: 13px;
    color: var(--ft-faint);
}

.ft-map {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 12px;
    background: rgba(248, 113, 113, 0.06);
    font-size: 14px;
}

.ft-map b {
    color: var(--ft-bad);
}

.ft-clean-ok {
    padding: 10px 14px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    background: rgba(74, 222, 128, 0.06);
    font-size: 14px;
    color: var(--ft-good);
}

/* ---- dork generator --------------------------------------------------------------- */
.ft-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.ft-type-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.ft-dork-group + .ft-dork-group {
    margin-top: 18px;
}

.ft-dorks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft-dork {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
    background: var(--ft-raised);
}

.ft-dork-text {
    min-width: 0;
}

.ft-dork-text b {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 600;
}

.ft-dork-text code {
    display: block;
    overflow-wrap: anywhere;
    font-family: var(--ft-mono);
    font-size: 12.5px;
    color: var(--ft-accent-text);
}

.ft-query {
    padding: 12px 14px;
    border: 1px solid var(--ft-border);
    border-radius: 12px;
    background: #050505;
    overflow-wrap: anywhere;
    font-family: var(--ft-mono);
    font-size: 13.5px;
    color: var(--ft-accent-text);
}

.ft-query:empty::before {
    content: 'Fill in a field to build a query';
    color: var(--ft-faint);
}

/* ---- hash toolkit ------------------------------------------------------------------- */
.ft-hash-row td:first-child {
    width: 110px;
    font-weight: 500;
    color: var(--ft-muted);
    white-space: nowrap;
}

.ft-hash-row td:last-child {
    width: 1%;
    white-space: nowrap;
}

.ft-hash-row.is-match td {
    background: rgba(74, 222, 128, 0.07);
}

.ft-hash-row.is-match td:first-child {
    color: var(--ft-good);
}

.ft-entropy {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 64px;
    padding: 8px;
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
    background: #050505;
}

.ft-entropy i {
    flex: 1 1 0;
    min-width: 1px;
    border-radius: 2px 2px 0 0;
    background: var(--ft-muted);
}

.ft-entropy i.ft-hi {
    background: var(--ft-warn);
}

.ft-strings {
    max-height: 280px;
    margin: 0;
    padding: 12px 14px;
    overflow: auto;
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
    background: #050505;
    font-family: var(--ft-mono);
    font-size: 12px;
    line-height: 1.6;
    color: var(--ft-muted);
    white-space: pre-wrap;
    word-break: break-all;
}

.ft-candidates {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft-candidate {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 11px 14px;
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
    background: var(--ft-raised);
    font-size: 14px;
}

.ft-candidate b {
    font-weight: 600;
}

.ft-candidate span {
    font-size: 13px;
    color: var(--ft-faint);
}

/* ---- hub ------------------------------------------------------------------------------ */
.ft-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ft-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--ft-border-soft);
    border-radius: 16px;
    background: var(--ft-raised);
    color: var(--ft-fg);
    text-decoration: none;
    transition:
        border-color 0.15s,
        background 0.15s,
        transform 0.15s;
}

.ft-card:hover {
    border-color: var(--ft-border-strong);
    background: var(--ft-raised-2);
    transform: translateY(-2px);
}

.ft-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border: 1px solid var(--ft-border);
    border-radius: 10px;
    background: var(--ft-raised-2);
    color: var(--ft-accent-text);
}

.ft-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ft-card p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ft-muted);
}

.ft-card ul {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--ft-muted);
}

.ft-card li {
    display: flex;
    gap: 8px;
}

.ft-card li::before {
    content: '';
    flex: none;
    width: 5px;
    height: 5px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--ft-accent-text);
}

.ft-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.ft-card-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ft-fg);
}

.ft-card:hover .ft-card-go {
    color: var(--ft-accent-text);
}

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

.ft-cards-sm .ft-card {
    padding: 18px;
}

.ft-cards-sm .ft-card p {
    margin-bottom: 12px;
}

.ft-block {
    margin-top: 56px;
}

.ft-block-head {
    margin-bottom: 18px;
}

.ft-block-head h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ft-block-head p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--ft-muted);
}

/* ---- explainer + FAQ under each tool ---------------------------------------------------- */
.ft-prose {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ft-muted);
}

.ft-prose h2 {
    margin: 0 0 10px;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ft-fg);
}

.ft-prose h3 {
    margin: 22px 0 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ft-fg);
}

.ft-prose p {
    margin: 0 0 12px;
}

.ft-prose ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.ft-prose li {
    margin-bottom: 4px;
}

.ft-prose code {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--ft-raised-2);
    font-family: var(--ft-mono);
    font-size: 0.85em;
    color: var(--ft-fg);
}

.ft-faq {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.ft-faq details {
    border: 1px solid var(--ft-border-soft);
    border-radius: 12px;
    background: var(--ft-raised);
}

.ft-faq summary {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.ft-faq summary::-webkit-details-marker {
    display: none;
}

.ft-faq summary::after {
    content: '+';
    float: right;
    color: var(--ft-faint);
}

.ft-faq details[open] summary::after {
    content: '\2212';
}

.ft-faq details p {
    margin: 0;
    padding: 0 16px 14px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ft-muted);
}

.ft-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding: 22px 24px;
    border: 1px solid var(--ft-border);
    border-radius: 16px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(207, 54, 45, 0.12), transparent 60%),
        var(--ft-bg);
}

.ft-cta strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 600;
}

.ft-cta span {
    font-size: 14px;
    color: var(--ft-muted);
}

/* ---- narrow screens ------------------------------------------------------------------- */
@media (max-width: 900px) {
    .ft-cards-sm {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ft {
        padding-top: 32px;
    }

    /* 16px stops iOS zooming into a focused field. */
    .ft .ft-input,
    .ft .ft-textarea,
    .ft .ft-select {
        font-size: 16px;
    }

    .ft-panel {
        padding: 14px;
    }

    .ft-cards,
    .ft-cards-sm,
    .ft-grid-2,
    .ft-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .ft-type-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .ft-hop {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .ft-hop-n {
        width: 28px;
        height: 28px;
    }

    .ft-hop-time {
        grid-column: 2;
        text-align: left;
    }

    .ft-hop-time strong {
        display: inline;
        margin-right: 6px;
    }

    .ft-dork {
        grid-template-columns: minmax(0, 1fr);
    }

    .ft-file-head {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .ft-thumb {
        width: 64px;
        height: 64px;
    }

    .ft-table th {
        width: 38%;
        min-width: 110px;
    }

    .ft-cta {
        padding: 18px;
    }
}

/* Inline code in the small notes keeps the 12px floor (audit 2026-11-10). */
.ft-note code {
    font-size: max(12px, 0.9em);
}

/* ---- network / OSINT tools (js/ft-net.js) --------------------------------- */
.ft-net-summary {
    margin: 4px 0 18px;
    padding: 12px 16px;
    border: 1px solid var(--ft-border);
    border-left: 3px solid var(--ft-accent);
    border-radius: 10px;
    background: var(--ft-raised);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ft-fg);
}

.ft-net-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ft-net-form .ft-label {
    margin-bottom: 0;
}

.ft-net-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ft-net-row .ft-input {
    flex: 1 1 auto;
    min-width: 0;
}

.ft-net-row .ft-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* main.css pins every button[type=submit] absolutely (the site's search
   arrows), which threw the tool's Search button to the far right. */
.ft button[type='submit'].ft-btn {
    position: static;
    width: auto;
    height: auto;
    border: 1px solid var(--ft-border);
    transform: none;
}

.ft button[type='submit'].ft-btn-primary {
    border-color: var(--ft-accent);
    background: var(--ft-accent);
}

.ft button[type='submit'].ft-btn-primary:hover {
    border-color: var(--ft-accent-hover);
    background: var(--ft-accent-hover);
}

.ft button[type='submit'].ft-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

#ft-net-example {
    align-self: flex-start;
}

@media (max-width: 560px) {
    .ft-net-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ft-net-row .ft-btn,
    #ft-net-example {
        width: 100%;
        align-self: stretch;
    }
}

#ft-net-out .ft-section-title {
    margin-top: 22px;
}

#ft-net-out .ft-table td a,
#ft-net-out .ft-chip {
    word-break: break-word;
}

.ft-sources {
    margin-top: 22px;
    border: 1px solid var(--ft-border-soft);
    border-radius: 10px;
    background: var(--ft-raised);
    padding: 0 14px;
}

.ft-sources > summary {
    cursor: pointer;
    padding: 12px 2px;
    font-size: 13px;
    color: var(--ft-muted);
    list-style-position: inside;
}

.ft-sources[open] > summary {
    border-bottom: 1px solid var(--ft-border-soft);
    margin-bottom: 10px;
}

.ft-sources .ft-findings {
    padding-bottom: 12px;
}

.ft-spin {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 9px;
    vertical-align: -2px;
    border: 2px solid var(--ft-border-strong);
    border-top-color: var(--ft-accent);
    border-radius: 50%;
    animation: ft-spin 0.7s linear infinite;
}

@keyframes ft-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft-spin {
        animation-duration: 2s;
    }
}

/* ---- Tools-style layout (shared classes from css/tf-tools.css) ------------- */
.ft.tt {
    --tt-surface: var(--tt-raised);
}

.ft-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin-bottom: 16px;
}

.ft-group-head .tt-h2 {
    margin: 0;
}

.ft-group-head p {
    margin: 0;
    font-size: 14px;
    color: var(--tt-muted);
}

.ft-cats .tt-cat {
    text-decoration: none;
    color: inherit;
}

.ft-cats .tt-cat-count {
    line-height: 1.45;
}

.ft-cats .tt-cat-text {
    padding-right: 20px;
}

.ft-logo {
    color: var(--tt-accent-text);
}

.ft .tt-tool-title .ft-private {
    margin-top: 10px;
}

.ft-box-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--tt-border);
    border-radius: 8px;
    background: var(--tt-raised-2);
    color: var(--tt-accent-text);
}

.ft .ft-net-form {
    margin: 0 0 8px;
}

.ft .tt-example code {
    font-family: var(--tt-mono);
}

.ft-more {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    padding: 16px 44px 16px 16px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 16px;
    background: var(--tt-raised);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.ft-more:hover {
    border-color: var(--tt-border-strong);
    background: var(--tt-raised-2);
}

.ft-more > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ft-more strong {
    font-size: 15px;
    font-weight: 600;
}

.ft-more > span:nth-child(2) span {
    font-size: 13px;
    color: var(--tt-muted);
}

.ft-more .tt-cat-go {
    top: 50%;
    margin-top: -7px;
}

.ft-more:hover .tt-cat-go {
    color: var(--tt-fg);
    transform: translateX(2px);
}

@media (max-width: 900px) {
    .ft .tt-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ft .tt-cats {
        grid-template-columns: 1fr;
    }
    .ft .tt-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .ft .tt-search {
        flex-basis: auto;
    }
}
