/* GMH Free Tools. Loads after 'gmh' and only adds what is new. */

/* ---------- Layout ---------- */
/* clip (not hidden) keeps the glows clipped without breaking position: sticky. */
.gmh.gmhft .gmh-hero { overflow: hidden; overflow: clip; }
.gmh.gmhft .gmhft-left,
.gmh.gmhft .gmhft-right { min-width: 0; }
.gmh.gmhft .gmhft-right { align-self: start; }

/* ---------- Form fields ---------- */
.gmh.gmhft .gmhft-form { text-align: left; }
.gmh.gmhft .gmhft-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; min-width: 0; }
.gmh.gmhft .gmh-row .gmhft-field { margin-bottom: 0; }
.gmh.gmhft .gmh-row { margin-bottom: 12px; }
.gmh.gmhft .gmhft-label { font-size: 13px; font-weight: 700; color: var(--ink2); line-height: 1.3; }
.gmh.gmhft .gmhft-req { color: var(--blue); }
.gmh.gmhft .gmhft-opt { color: var(--muted); font-weight: 500; }

.gmh.gmhft .gmh-form textarea,
.gmh.gmhft .gmh-form select,
.gmh.gmhft .gmh-form input[type=url],
.gmh.gmhft .gmh-form input[type=tel],
.gmh.gmhft .gmh-form input[type=time],
.gmh.gmhft .gmhft-minput {
	width: 100%;
	box-sizing: border-box;
	background: var(--soft);
	border: 0;
	border-radius: 12px;
	padding: 15px 16px;
	font: inherit;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ink);
	outline: none;
	transition: box-shadow .15s ease, background .15s ease;
}
.gmh.gmhft .gmh-form textarea { resize: vertical; min-height: 84px; }
.gmh.gmhft .gmh-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%233b4668' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.gmh.gmhft .gmh-form textarea:focus,
.gmh.gmhft .gmh-form select:focus,
.gmh.gmhft .gmh-form input:focus,
.gmh.gmhft .gmhft-minput:focus { box-shadow: 0 0 0 3px rgba(31, 91, 255, .22); background-color: #fff; }
.gmh.gmhft .gmh-form [aria-invalid="true"] { box-shadow: 0 0 0 2px var(--bad); background-color: #fff6f6; }
.gmh.gmhft .gmh-form ::placeholder { color: #8a93ad; opacity: 1; }

/* Honeypot, hidden from people and screen readers. */
.gmh.gmhft .gmhft-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.gmh.gmhft .gmhft-ts { margin: 4px 0 12px; min-height: 0; }
.gmh.gmhft .gmh-msg { margin: 0 0 12px; }

.gmh.gmhft .gmh-btn { position: relative; }
.gmh.gmhft .gmh-btn.is-busy { opacity: .85; cursor: progress; color: transparent; }
.gmh.gmhft .gmh-btn.is-busy::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
	border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
	animation: gmhft-spin .7s linear infinite;
}
.gmh.gmhft .gmh-trust .gmhft-check { color: var(--good); flex: 0 0 auto; vertical-align: -3px; margin-right: 4px; }

/* ---------- Result card ---------- */
.gmh.gmhft .gmhft-card { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.gmh.gmhft .gmhft-card[data-state="result"],
.gmh.gmhft .gmhft-card[data-state="loading"] { transform: none; }
.gmh.gmhft .gmhft-card-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.gmh.gmhft .gmhft-card-title { font-weight: 800; color: var(--ink); font-size: 16px; }
.gmh.gmhft .gmhft-tag {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	background: #fff4dc; color: #a26a00; white-space: nowrap; flex: 0 0 auto;
}
.gmh.gmhft .gmhft-tag.is-live { background: #e3f7ee; color: var(--good); }

/* Headline list */
.gmh.gmhft .gmhft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gmh.gmhft .gmhft-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.gmh.gmhft .gmhft-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gmh.gmhft .gmhft-num {
	display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px;
	background: var(--soft); color: var(--blue); font-size: 12px; font-weight: 800;
}
.gmh.gmhft .gmhft-h { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.gmh.gmhft .gmhft-subh { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.gmh.gmhft .gmhft-why { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.gmh.gmhft .gmhft-why strong { color: var(--good); font-weight: 700; }

/* Copy buttons */
.gmh.gmhft .gmhft-copy {
	-webkit-appearance: none; appearance: none; border: 1px solid var(--line); background: #fff; color: var(--blue);
	font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1; padding: 7px 12px; border-radius: 999px;
	cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
}
.gmh.gmhft .gmhft-copy:hover { background: var(--soft); border-color: transparent; }
.gmh.gmhft .gmhft-copy:focus-visible,
.gmh.gmhft .gmhft-ghost:focus-visible,
.gmh.gmhft .gmhft-hrm:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gmh.gmhft .gmhft-copy.is-copied { background: var(--good); border-color: var(--good); color: #fff; }
.gmh.gmhft .gmhft-copy--soft { background: var(--soft); border-color: transparent; }
.gmh.gmhft .gmhft-copy--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.gmh.gmhft .gmhft-copy--dark:hover { background: rgba(255, 255, 255, .16); }

/* Meta options */
.gmh.gmhft .gmhft-meta-list { display: grid; gap: 14px; }
.gmh.gmhft .gmhft-mopt { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.gmh.gmhft .gmhft-mopt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gmh.gmhft .gmhft-mopt-name { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gmh.gmhft .gmhft-mfield { margin-bottom: 10px; }
.gmh.gmhft .gmhft-mlabel { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-bottom: 5px; }
.gmh.gmhft .gmhft-minput { padding: 11px 13px; font-size: 14.5px; }
.gmh.gmhft textarea.gmhft-minput { resize: vertical; min-height: 70px; overflow: hidden; }
.gmh.gmhft .gmhft-mfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.gmh.gmhft .gmhft-count { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.gmh.gmhft .gmhft-count.is-good { background: #e3f7ee; color: var(--good); }
.gmh.gmhft .gmhft-count.is-mid { background: #fff4dc; color: #a26a00; }
.gmh.gmhft .gmhft-count.is-bad { background: #fde8e8; color: var(--bad); }

/* Google style snippet preview */
.gmh.gmhft .gmhft-serp {
	margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px dashed rgba(15, 27, 61, .14);
	font-family: Arial, Helvetica, sans-serif; text-align: left;
}
.gmh.gmhft .gmhft-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.gmh.gmhft .gmhft-serp-fav {
	width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; color: #4d5156; display: grid; place-items: center;
	font-size: 12px; font-weight: 700; flex: 0 0 auto;
}
.gmh.gmhft .gmhft-serp-sitetext { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.gmh.gmhft .gmhft-serp-name { font-size: 14px; color: #202124; }
.gmh.gmhft .gmhft-serp-url { font-size: 12px; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmh.gmhft .gmhft-serp-title { font-size: 19px; line-height: 1.3; color: #1a0dab; margin: 2px 0 3px; overflow-wrap: anywhere; }
.gmh.gmhft .gmhft-serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }

/* Loading state */
.gmh.gmhft .gmhft-loading-row { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink2); margin-bottom: 14px; }
.gmh.gmhft .gmhft-spinner { width: 18px; height: 18px; border: 2.5px solid var(--soft); border-top-color: var(--blue); border-radius: 50%; animation: gmhft-spin .7s linear infinite; }
.gmh.gmhft .gmhft-skel { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.gmh.gmhft .gmhft-skel i {
	display: block; height: 11px; border-radius: 6px; margin: 0 0 9px;
	background: linear-gradient(90deg, #eef2fb 0%, #f7f9fe 50%, #eef2fb 100%); background-size: 200% 100%;
	animation: gmhft-shimmer 1.2s ease-in-out infinite;
}
.gmh.gmhft .gmhft-skel i:last-child { margin-bottom: 0; }
.gmh.gmhft .gmhft-skel .w100 { width: 100%; }
.gmh.gmhft .gmhft-skel .w80 { width: 80%; height: 15px; }
.gmh.gmhft .gmhft-skel .w60 { width: 60%; }
@keyframes gmhft-spin { to { transform: rotate(360deg); } }
@keyframes gmhft-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Next step box */
.gmh.gmhft .gmhft-next {
	margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--soft);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
}
.gmh.gmhft .gmhft-next p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.gmh.gmhft .gmhft-next p strong { color: var(--ink); }
.gmh.gmhft .gmhft-next a { color: var(--blue); font-weight: 700; text-decoration: none; }
.gmh.gmhft .gmhft-next a:hover { text-decoration: underline; }
.gmh.gmhft .gmhft-next .gmhft-next-alt { font-size: 13px; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Schema generator ---------- */
.gmh.gmhft .gmhft-fs { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.gmh.gmhft .gmhft-fs[hidden], .gmh.gmhft .gmhft-field[hidden] { display: none; }
.gmh.gmhft .gmhft-fs legend {
	padding: 0; margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--blue);
}
.gmh.gmhft .gmhft-fs + .gmhft-fs { border-top: 1px solid var(--line); padding-top: 16px; }
.gmh.gmhft .gmhft-hours { display: grid; gap: 8px; margin-bottom: 10px; }
.gmh.gmhft .gmhft-hrow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.gmh.gmhft .gmhft-hrow select,
.gmh.gmhft .gmhft-hrow input[type=time] { padding: 12px 12px; font-size: 14px; }
.gmh.gmhft .gmhft-hrow select { padding-right: 34px; background-position: right 12px center; }
.gmh.gmhft .gmhft-hto { font-size: 13px; color: var(--muted); }
.gmh.gmhft .gmhft-hrm {
	width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted);
	font-size: 18px; line-height: 1; cursor: pointer;
}
.gmh.gmhft .gmhft-hrm:hover { color: var(--bad); border-color: var(--bad); }
.gmh.gmhft .gmhft-ghost {
	-webkit-appearance: none; appearance: none; border: 1.5px dashed rgba(31, 91, 255, .35); background: transparent; color: var(--blue);
	font: inherit; font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 12px; cursor: pointer; width: 100%;
}
.gmh.gmhft .gmhft-ghost:hover { background: var(--soft); }

.gmh.gmhft .gmhft-code-wrap { background: #0d1530; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.gmh.gmhft .gmhft-code-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #0a1128; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.gmh.gmhft .gmhft-dots { display: inline-flex; gap: 6px; }
.gmh.gmhft .gmhft-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3558; display: block; }
.gmh.gmhft .gmhft-dots i:first-child { background: #e5484d; }
.gmh.gmhft .gmhft-dots i:nth-child(2) { background: #f2a516; }
.gmh.gmhft .gmhft-dots i:nth-child(3) { background: #12a36b; }
.gmh.gmhft .gmhft-code-name { color: #8f9bc4; font-size: 12px; font-weight: 700; letter-spacing: .06em; flex: 1; }
.gmh.gmhft .gmhft-code {
	margin: 0; padding: 14px 16px; max-height: 460px; overflow: auto; color: #d7def5; background: transparent; border: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 12.5px; line-height: 1.6;
	white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; text-align: left;
}
.gmh.gmhft .gmhft-code:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.gmh.gmhft .gmhft-code .k { color: #8fb3ff; }
.gmh.gmhft .gmhft-code .s { color: #7ee0b0; }
.gmh.gmhft .gmhft-code .p { color: #9aa5c8; }
.gmh.gmhft .gmhft-code .tag { color: #f2a516; }

.gmh.gmhft .gmhft-checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.gmh.gmhft .gmhft-checks[hidden] { display: none; }
.gmh.gmhft .gmhft-chk { position: relative; padding: 8px 12px 8px 32px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; }
.gmh.gmhft .gmhft-chk::before { position: absolute; left: 12px; top: 8px; font-weight: 800; }
.gmh.gmhft .gmhft-chk.is-bad { background: #fde8e8; color: #a3262a; }
.gmh.gmhft .gmhft-chk.is-bad::before { content: "!"; color: var(--bad); }
.gmh.gmhft .gmhft-chk.is-warn { background: #fff4dc; color: #7a5200; }
.gmh.gmhft .gmhft-chk.is-warn::before { content: "i"; color: var(--mid); }
.gmh.gmhft .gmhft-chk.is-good { background: #e3f7ee; color: #0b6f49; }
.gmh.gmhft .gmhft-chk.is-good::before { content: "\2713"; color: var(--good); }
.gmh.gmhft .gmhft-chk.is-note { background: var(--soft); color: var(--ink2); }
.gmh.gmhft .gmhft-chk.is-note::before { content: "i"; color: var(--blue); }
.gmh.gmhft .gmhft-test { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--blue); text-decoration: none; }
.gmh.gmhft .gmhft-test:hover { text-decoration: underline; }

/* Keep the code visible while typing a long form on desktop. */
@media (min-width: 961px) {
	.gmh.gmhft .gmh-hero .gmh-wrap { align-items: start; }
	.gmh.gmhft--schema .gmhft-right { position: sticky; top: 24px; }
	.gmh.gmhft--headline .gmhft-left,
	.gmh.gmhft--meta .gmhft-left { position: sticky; top: 24px; padding-top: 24px; }
}

/* ---------- Free Tools Grid ---------- */
.gmh.gmhft .gmhft-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gmh.gmhft a.gmhft-tool-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.gmh.gmhft a.gmhft-tool-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(31, 91, 255, .35); }
.gmh.gmhft a.gmhft-tool-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.gmh.gmhft .gmhft-tool-top { display: flex; align-items: center; justify-content: space-between; }
.gmh.gmhft .gmhft-tool-icon {
	width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff;
	background: linear-gradient(135deg, var(--blue), var(--violet));
}
.gmh.gmhft .gmhft-live {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
	background: #e3f7ee; color: var(--good); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.gmh.gmhft .gmhft-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(18, 163, 107, .18); }
.gmh.gmhft .gmhft-tool-name { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.gmh.gmhft .gmhft-tool-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink2); flex: 1; }
.gmh.gmhft .gmhft-tool-cta { font-size: 14px; font-weight: 700; color: var(--blue); }

/* ---------- Breakpoints ---------- */
@media (max-width: 960px) {
	.gmh.gmhft .gmhft-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gmh.gmhft .gmhft-card { transform: none; }
}
@media (max-width: 620px) {
	.gmh.gmhft .gmhft-grid4 { grid-template-columns: 1fr; }
	.gmh.gmhft .gmhft-hrow { grid-template-columns: 1fr 1fr auto; }
	.gmh.gmhft .gmhft-hrow select { grid-column: 1 / -1; }
	.gmh.gmhft .gmhft-hto { display: none; }
	.gmh.gmhft .gmhft-h { font-size: 17px; }
	.gmh.gmhft .gmhft-item, .gmh.gmhft .gmhft-mopt { padding: 13px 14px; }
	.gmh.gmhft .gmhft-next { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.gmh.gmhft .gmhft-card, .gmh.gmhft a.gmhft-tool-card { transition: none; }
	.gmh.gmhft .gmhft-spinner, .gmh.gmhft .gmhft-skel i, .gmh.gmhft .gmh-btn.is-busy::after { animation: none; }
}
