/* WebTechyTools Calculators v1.2.2 */
.wtt {
	--wtt-ink: #0f172a;
	--wtt-text: #334155;
	--wtt-muted: #64748b;
	--wtt-line: #e2e8f0;
	--wtt-bg: #f6f7fb;
	--wtt-card: #ffffff;
	--wtt-brand: #4f46e5;
	--wtt-brand-dark: #4338ca;
	--wtt-brand-soft: #eef0ff;
	--wtt-navy: #1e2a6b;
	--wtt-ok: #047857;
	--wtt-ok-bg: #ecfdf5;
	--wtt-bad: #b91c1c;
	--wtt-bad-bg: #fef2f2;
	--wtt-radius: 18px;
	color: var(--wtt-text);
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}
.wtt *, .wtt *::before, .wtt *::after { box-sizing: border-box; }
.wtt [hidden] { display: none !important; }
.wtt .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wtt h2 { color: var(--wtt-ink); }

/* ------------------------------------------------------------------ Hub */
.wtt-hub-top { margin: 0 0 28px; }
.wtt-search-wrap { display: block; max-width: 640px; margin: 0 auto 16px; }
.wtt-search {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--wtt-line);
	border-radius: 14px;
	font-size: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.wtt-search:focus { outline: 2px solid var(--wtt-brand); outline-offset: 1px; }
.wtt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wtt-chip {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--wtt-brand-soft);
	color: var(--wtt-brand-dark);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
	transition: background .15s;
}
.wtt-chip:hover { background: #e0e3ff; }

.wtt-section { margin: 0 0 44px; scroll-margin-top: 90px; }
.wtt-section-head { margin-bottom: 16px; }
.wtt-section-title { font-size: 26px; line-height: 1.25; margin: 0 0 4px; }
.wtt-section-desc { margin: 0; color: var(--wtt-muted); }

.wtt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.wtt-tcard {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	background: var(--wtt-card);
	border: 1px solid var(--wtt-line);
	border-radius: var(--wtt-radius);
	text-decoration: none !important;
	color: var(--wtt-text);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.wtt-tcard:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .08); border-color: #c7cbf7; }
.wtt-ticon { font-size: 26px; line-height: 1; }
.wtt-ttitle { font-weight: 700; color: var(--wtt-ink); font-size: 17px; line-height: 1.3; }
.wtt-tdesc { font-size: 14px; color: var(--wtt-muted); flex: 1; }
.wtt-topen { font-weight: 700; color: var(--wtt-brand); font-size: 14px; margin-top: 4px; }
.wtt-noresults { text-align: center; color: var(--wtt-muted); padding: 24px 0; }

/* ----------------------------------------------------------- Tool page */
.wtt-crumbs { font-size: 14px; color: var(--wtt-muted); margin: 0 0 10px; }
.wtt-crumbs a { color: var(--wtt-brand); text-decoration: none; }
.wtt-crumbs a:hover { text-decoration: underline; }
.wtt-lead { font-size: 18px; color: var(--wtt-text); margin: 0 0 22px; max-width: 760px; }

.wtt-tool { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; margin-bottom: 22px; }
.wtt-tool.wtt-wide { grid-template-columns: minmax(0, 1fr); }
.wtt-card { background: var(--wtt-card); border: 1px solid var(--wtt-line); border-radius: var(--wtt-radius); padding: 22px; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.wtt-output { background: linear-gradient(180deg, #f8f8ff 0%, #ffffff 60%); position: sticky; top: 90px; }
.wtt-wide .wtt-output { position: static; }
.wtt-out-title { font-size: 15px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--wtt-muted) !important; margin: 0 0 10px !important; font-weight: 700; }

.wtt-fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 14px; }
.wtt-field { grid-column: span 12; min-width: 0; }
@media (min-width: 600px) {
	.wtt-field.wtt-cols-2 { grid-column: span 6; }
	.wtt-field.wtt-cols-3 { grid-column: span 4; }
	.wtt-field.wtt-cols-4 { grid-column: span 3; }
}
@media (max-width: 599px) {
	.wtt-field.wtt-cols-2, .wtt-field.wtt-cols-3, .wtt-field.wtt-cols-4 { grid-column: span 6; }
}
.wtt-label { display: block; font-weight: 600; color: var(--wtt-ink); font-size: 14px; margin-bottom: 6px; }
.wtt-subhead { display: block; font-weight: 700; color: var(--wtt-navy); font-size: 14px; padding-top: 6px; border-top: 1px dashed var(--wtt-line); margin-top: 2px; }
.wtt-fields > .wtt-field.wtt-type-heading:first-child .wtt-subhead { border-top: 0; padding-top: 0; }
.wtt-help { display: block; color: var(--wtt-muted); font-size: 13px; margin-top: 5px; }

.wtt-input { display: flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.wtt-input:focus-within { border-color: var(--wtt-brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.wtt-input input { flex: 1; min-width: 0; border: 0 !important; outline: 0; padding: 11px 12px; font-size: 16px; background: transparent; box-shadow: none !important; color: var(--wtt-ink); margin: 0; height: auto; }
.wtt-affix { display: flex; align-items: center; padding: 0 12px; background: #f8fafc; color: var(--wtt-muted); font-size: 14px; white-space: nowrap; }
.wtt-affix:first-child { border-right: 1px solid var(--wtt-line); }
.wtt-affix:last-child { border-left: 1px solid var(--wtt-line); }
.wtt select, .wtt textarea, .wtt input[type="file"] {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 11px 12px;
	font-size: 16px;
	background: #fff;
	color: var(--wtt-ink);
	margin: 0;
	height: auto;
}
.wtt select:focus, .wtt textarea:focus { border-color: var(--wtt-brand); outline: 0; box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.wtt textarea { font-family: inherit; line-height: 1.5; resize: vertical; }
.wtt textarea[readonly] { background: #f8fafc; }
.wtt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--wtt-ink); cursor: pointer; }
.wtt-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--wtt-brand); flex: none; }

/* Results */
.wtt-rows { margin: 0; }
.wtt-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--wtt-line); align-items: baseline; }
.wtt-row:last-child { border-bottom: 0; }
.wtt-row dt { color: var(--wtt-muted); font-size: 14px; margin: 0; font-weight: 500; }
.wtt-row dd { margin: 0; font-weight: 700; color: var(--wtt-ink); text-align: right; font-variant-numeric: tabular-nums; }
.wtt-row.wtt-main { flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 0 14px; }
.wtt-row.wtt-main dt { font-size: 14px; color: var(--wtt-brand-dark); font-weight: 700; }
.wtt-row.wtt-main dd { font-size: 32px; line-height: 1.15; text-align: left; color: var(--wtt-navy); word-break: break-word; }
.wtt-placeholder { color: var(--wtt-muted); margin: 0; }
.wtt-flag { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.wtt-flag.wtt-ok { background: var(--wtt-ok-bg); color: var(--wtt-ok); }
.wtt-flag.wtt-bad { background: var(--wtt-bad-bg); color: var(--wtt-bad); }
.wtt-note { margin: 10px 0 0; font-size: 14px; color: var(--wtt-muted); padding-left: 12px; border-left: 3px solid var(--wtt-line); }
.wtt-list { margin-top: 12px; font-size: 14px; }
.wtt-list summary { cursor: pointer; font-weight: 600; color: var(--wtt-ink); }
.wtt-list ul { margin: 8px 0 0 18px; padding: 0; }

/* Buttons */
.wtt-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 18px;
	border-radius: 12px;
	border: 0;
	background: var(--wtt-brand-soft);
	color: var(--wtt-brand-dark);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none !important;
	line-height: 1.3;
}
.wtt-btn:hover { background: #e0e3ff; }
.wtt-btn-primary { background: var(--wtt-brand); color: #fff !important; margin-top: 0; white-space: nowrap; }
.wtt-btn-primary:hover { background: var(--wtt-brand-dark); }
.wtt-copy.wtt-copied { background: var(--wtt-ok-bg); color: var(--wtt-ok); }

/* CTA */
.wtt-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	margin: 0 0 30px;
	border-radius: var(--wtt-radius);
	background: linear-gradient(135deg, #eef0ff 0%, #f5f3ff 100%);
	border: 1px solid #dfe2fb;
}
.wtt-cta-text { display: flex; flex-direction: column; gap: 2px; }
.wtt-cta-text strong { color: var(--wtt-navy); font-size: 17px; }
.wtt-cta-text span { color: var(--wtt-text); font-size: 15px; }

/* Content */
.wtt-content { max-width: 780px; margin-bottom: 30px; }
.wtt-content h2, .wtt-related h2 { font-size: 22px; margin: 26px 0 10px; }
.wtt-content p { margin: 0 0 12px; }
.wtt-faq details { border: 1px solid var(--wtt-line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.wtt-faq summary { cursor: pointer; font-weight: 700; color: var(--wtt-ink); }
.wtt-faq details p { margin: 8px 0 0; }
.wtt-related { margin-bottom: 20px; }
.wtt-all { margin-top: 14px; }
.wtt-all a { font-weight: 700; color: var(--wtt-brand); text-decoration: none; }
.wtt-disclaimer { font-size: 13px; color: var(--wtt-muted); margin-top: 24px; }

@media (max-width: 860px) {
	.wtt-tool { grid-template-columns: minmax(0, 1fr); }
	.wtt-output { position: static; }
}
@media (max-width: 600px) {
	.wtt-card { padding: 16px; }
	.wtt-cta { flex-direction: column; align-items: flex-start; }
	.wtt-row.wtt-main dd { font-size: 26px; }
	.wtt-section-title { font-size: 22px; }
}

/* File tools */
.wtt-filelist { margin: 10px 0 0 20px; padding: 0; font-size: 14px; color: var(--wtt-ink); }
.wtt-filelist li { margin: 2px 0; }
.wtt-filelist span { color: var(--wtt-muted); }
.wtt-action { margin-top: 4px; padding: 12px 22px; font-size: 16px; }
.wtt-action[disabled] { opacity: .6; cursor: wait; }
.wtt input[type="file"] { padding: 14px; border-style: dashed; background: #fafbff; cursor: pointer; }

/* Ad slots */
.wtt-ad { margin: 18px auto; text-align: center; min-height: 0; overflow: hidden; }
.wtt-ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 4px; }
.wtt-ad-placeholder { padding: 22px; border: 2px dashed #c7cbf7; border-radius: 14px; color: #4338ca; background: #f8f8ff; font-size: 14px; }

/* Blog grid */
.wtt-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.wtt-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--wtt-line); border-radius: var(--wtt-radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.wtt-post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.wtt-post-thumb img { display: block; width: 100%; height: 190px; object-fit: cover; }
.wtt-post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wtt-post-cat { font-size: 12px; font-weight: 700; color: var(--wtt-brand-dark); text-transform: uppercase; letter-spacing: .05em; }
.wtt-post-title { font-size: 19px !important; line-height: 1.3; margin: 0 !important; }
.wtt-post-title a { color: var(--wtt-ink); text-decoration: none; }
.wtt-post-title a:hover { color: var(--wtt-brand); }
.wtt-post-excerpt { margin: 0; color: var(--wtt-muted); font-size: 15px; flex: 1; }
.wtt-post-meta { font-size: 13px; color: #94a3b8; }
.wtt-pagination { margin-top: 28px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wtt-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--wtt-line); text-decoration: none; color: var(--wtt-ink); }
.wtt-pagination .current { background: var(--wtt-brand); color: #fff; border-color: var(--wtt-brand); }
