/*
Theme Name:   ToolMystery
Theme URI:    https://toolmystery.com/
Description:  ToolMystery child theme for GeneratePress
Author:       ToolMystery
Template:     generatepress
Version:      1.3.7
Text Domain:  toolmystery
*/

:root {
	--tm-accent: #38BDF8;
	--tm-btn: #0369A1;
	--tm-btn-hover: #075985;
	--tm-sky-wash: #F0F9FF;
	--tm-sky-panel: #E0F2FE;
	--tm-sky-line: #BAE6FD;
	--tm-ink: #0F172A;
	--tm-ink-2: #1E293B;
	--tm-body: #334155;
	--tm-muted: #475569;
	--tm-faint: #94A3B8;
	--tm-line: #E2E8F0;
	--tm-soft: #F8FAFC;
	--tm-font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tm-wrap: 1240px;
}

body { font-family: var(--tm-font); color: var(--tm-ink); background: #FFFFFF; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--tm-font); color: var(--tm-ink); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
a { color: var(--tm-btn); text-decoration: none; }
a:hover { color: var(--tm-btn-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #7DD3FC; outline-offset: 2px; }
.tm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-wrap { max-width: var(--tm-wrap); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.tm-btn:hover { text-decoration: none; }
.tm-btn--primary { background: var(--tm-btn); color: #FFFFFF; }
.tm-btn--primary:hover { background: var(--tm-btn-hover); color: #FFFFFF; }
.tm-btn--dark { background: var(--tm-ink); color: #FFFFFF; }
.tm-btn--dark:hover { background: var(--tm-ink-2); color: #FFFFFF; }
.tm-btn--light { background: #FFFFFF; color: var(--tm-ink); border-color: var(--tm-line); }
.tm-btn--light:hover { color: var(--tm-ink); border-color: var(--tm-accent); }

/* Pills */
.tm-pill { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px; color: #0C4A6E; background: var(--tm-sky-panel); }
.tm-pill--grey { color: var(--tm-body); background: #F1F5F9; }

/* Logo tile (favicon or initial) */
.tm-logo { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--tm-sky-wash); color: var(--tm-btn); display: grid; place-items: center; font-weight: 800; font-size: 18px; overflow: hidden; }
.tm-logo img { width: 28px; height: 28px; object-fit: contain; }

/* ===== Site header ===== */
.tm-header { background: #FFFFFF; position: relative; z-index: 20; }
.tm-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 16px; padding-bottom: 16px; }
.tm-brand { display: flex; align-items: center; gap: 10px; color: var(--tm-ink); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.tm-brand:hover { color: var(--tm-ink); text-decoration: none; }
.tm-brand__mark { width: 36px; height: 36px; border-radius: 11px; background: var(--tm-accent); display: grid; place-items: center; }
.tm-header__search { flex: 1 1 320px; display: flex; justify-content: center; }
.tm-header__search input { width: 100%; max-width: 460px; height: 44px; box-sizing: border-box; padding: 0 18px; border: 1px solid var(--tm-line); border-radius: 999px; background: var(--tm-soft); font: inherit; font-size: 15px; color: var(--tm-ink); }
.tm-header__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tm-header__link { color: var(--tm-ink); font-weight: 500; font-size: 15px; padding: 10px 12px; }
.tm-rail { border-top: 1px solid #F1F5F9; border-bottom: 1px solid var(--tm-line); }
.tm-rail__list { display: flex; gap: 6px; overflow-x: auto; list-style: none; margin: 0 auto; scrollbar-width: none; }
.tm-rail__list a { display: block; padding: 13px 12px; font-size: 14px; font-weight: 500; color: var(--tm-body); white-space: nowrap; }

/* ===== Site footer ===== */
.tm-footer { background: var(--tm-soft); border-top: 1px solid var(--tm-line); padding: 56px 0 28px; }
.tm-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.tm-footer__about { flex: 1 1 260px; max-width: 340px; }
.tm-footer__about p { margin: 10px 0 0; font-size: 14px; color: var(--tm-muted); }
.tm-footer__cols { flex: 3 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.tm-footer h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.tm-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tm-footer ul a { color: var(--tm-muted); }
.tm-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--tm-line); font-size: 13px; color: var(--tm-muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Full width templates (homepage, tool pages) inside GeneratePress */
.tm-full .site.grid-container, .tm-full #page { max-width: none; padding: 0; }
.tm-full .site-content { display: block; padding: 0; }
.tm-full .site-main { margin: 0; }
.tm-pill--green { color: #166534; background: #DCFCE7; }
