/* SindhTools Core - shared styles. Palette from the logo: crimson, navy, cream. */
:root {
	--st-maroon: #b11e2e;
	--st-maroon-dark: #8f1624;
	--st-indigo: #0b2545;
	--st-cream: #f8f1e4;
	--st-paper: #fffdf8;
	--st-charcoal: #2b2b2b;
	--st-muted: #6b6560;
	--st-line: #e6dccb;
	--st-radius: 12px;
}

.st-body {
	margin: 0;
	background: var(--st-cream);
	color: var(--st-charcoal);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

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

.st-body a {
	color: var(--st-maroon);
}

.st-body [hidden] {
	display: none !important;
}

.st-wrap {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Ajrak-inspired band: crimson, indigo and white stripes. Kept thin on purpose. */
.st-band {
	height: 10px;
	background: repeating-linear-gradient(
		90deg,
		var(--st-maroon) 0 14px,
		var(--st-cream) 14px 16px,
		var(--st-indigo) 16px 30px,
		var(--st-cream) 30px 32px
	);
}

.st-header {
	background: var(--st-paper);
	border-bottom: 1px solid var(--st-line);
}

.st-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}

.st-body a.st-logo {
	display: inline-block;
	color: var(--st-charcoal);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-decoration: none;
	font-size: 20px;
	line-height: 0;
}

.st-logo-img {
	display: block;
	width: 170px;
	max-width: 60vw;
	height: auto;
}


.st-logo span {
	color: var(--st-maroon);
}

.st-header-inner {
	gap: 12px;
	flex-wrap: wrap;
}

.st-nav {
	display: flex;
	gap: 18px;
}

.st-body .st-nav a {
	color: var(--st-charcoal);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}

.st-body .st-nav a:hover {
	color: var(--st-maroon);
}

.st-main {
	padding: 24px 0 48px;
}

.st-crumbs {
	font-size: 14px;
	color: var(--st-muted);
	margin-bottom: 12px;
}

.st-h1 {
	font-size: clamp(28px, 5vw, 40px);
	line-height: 1.15;
	margin: 0 0 8px;
	color: var(--st-charcoal);
}

.st-lead {
	font-size: 18px;
	color: var(--st-muted);
	margin: 0 0 24px;
}

.st-card {
	background: var(--st-paper);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	padding: 20px;
}

.st-drop {
	border: 2px dashed var(--st-maroon);
	border-radius: var(--st-radius);
	background: #fbf4ea;
	text-align: center;
	padding: 36px 16px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.st-drop:hover,
.st-drop:focus-visible,
.st-drop.is-over {
	background: #f4e6d2;
	outline: none;
}

.st-drop:focus-visible {
	box-shadow: 0 0 0 3px rgba(177, 30, 46, 0.35);
}

.st-drop-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px;
}

.st-drop-sub {
	margin: 0 0 12px;
	color: var(--st-muted);
}

.st-btn {
	display: inline-block;
	background: var(--st-maroon);
	color: #fff !important;
	border: 0;
	border-radius: 8px;
	padding: 11px 20px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	font-family: inherit;
}

.st-btn:hover {
	background: var(--st-maroon-dark);
}

.st-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.st-btn-light {
	background: #fff;
	color: var(--st-maroon) !important;
	border: 2px solid var(--st-maroon);
	padding: 9px 18px;
}

.st-btn-light:hover {
	background: #f4e6d2;
}

.st-btn-small {
	padding: 8px 14px;
	font-size: 14px;
}

.st-msg {
	min-height: 1.4em;
	margin: 12px 0 0;
	color: var(--st-muted);
	font-size: 14px;
}

.st-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.st-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--st-line);
}

.st-item-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.st-item-name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.st-item-meta {
	font-size: 14px;
	color: var(--st-muted);
}

.st-item-error .st-item-meta {
	color: #b3261e;
}

.st-item-side {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.st-remove {
	background: none;
	border: 0;
	font-size: 24px;
	line-height: 1;
	color: var(--st-muted);
	cursor: pointer;
	padding: 4px 8px;
}

.st-remove:hover {
	color: var(--st-maroon);
}

.st-options {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	align-items: center;
	margin-top: 16px;
	padding: 14px 16px;
	background: #fbf4ea;
	border: 1px solid var(--st-line);
	border-radius: 8px;
}

.st-options label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 15px;
}

.st-options input[type="color"] {
	width: 44px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--st-line);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.st-options input[type="range"] {
	accent-color: var(--st-maroon);
}

.st-options output {
	min-width: 3.2em;
	font-variant-numeric: tabular-nums;
}

.st-thumb {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--st-line);
	flex-shrink: 0;
	background: #fff;
}

.st-item .st-item-info {
	flex: 1;
}

.st-move {
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: 6px;
	width: 34px;
	height: 34px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--st-charcoal);
}

.st-move:hover:not(:disabled) {
	border-color: var(--st-maroon);
	color: var(--st-maroon);
}

.st-move:disabled,
.st-remove:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.st-options select,
.st-options input[type="text"] {
	font: inherit;
	font-weight: 500;
	padding: 8px 10px;
	border: 1px solid var(--st-line);
	border-radius: 6px;
	background: #fff;
	color: var(--st-charcoal);
	max-width: 100%;
}

.st-options input[type="text"] {
	min-width: 220px;
}

.st-options .st-hint {
	flex-basis: 100%;
	margin: 0;
	font-weight: 400;
	font-size: 14px;
	color: var(--st-muted);
}

.st-results {
	margin-top: 16px;
}

.st-item-all {
	justify-content: flex-start;
	border-bottom: 0;
}

.st-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.st-privacy {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--st-muted);
}

.st-section {
	margin-top: 36px;
}

.st-section h2 {
	font-size: 22px;
	margin: 0 0 12px;
}

.st-steps {
	margin: 0;
	padding-left: 22px;
}

.st-faq {
	background: var(--st-paper);
	border: 1px solid var(--st-line);
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 8px;
}

.st-faq summary {
	cursor: pointer;
	font-weight: 600;
}

.st-faq p {
	margin: 8px 0 0;
	color: var(--st-muted);
}

.st-related {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.st-related a {
	display: block;
	height: 100%;
	background: var(--st-paper);
	border: 1px solid var(--st-line);
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none;
	color: var(--st-charcoal);
}

.st-related a:hover {
	border-color: var(--st-maroon);
}

.st-related strong {
	display: block;
}

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







@media (max-width: 520px) {
	.st-logo-img {
		width: 130px;
	}
	.st-nav {
		gap: 14px;
	}
	.st-body .st-nav a {
		font-size: 14px;
	}
	.st-item {
		flex-direction: column;
		align-items: flex-start;
	}
	.st-item-info {
		width: 100%;
	}
}

/* Compress PDF options */
.st-compress-options { display: grid; gap: 10px; margin: 18px 0; }
.st-compress-options label { display: block; margin: 4px 0; }
.st-compress-options .st-input { display: block; width: 100%; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #e6dccb; border-radius: 8px; background: #fffdf8; color: #2b2b2b; font: inherit; box-sizing: border-box; }
.st-compress-options [hidden] { display: none !important; }


/* Compare PDF: two independent file selection panels */
.st-compare-pdf-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-compare-drop { min-width: 0; padding: 28px 16px; }
.st-compare-file-name { margin: 14px 0 0; font-size: 14px; color: var(--st-muted); overflow-wrap: anywhere; }
.st-compare-pdf-inputs .st-btn { max-width: 100%; }
@media (max-width: 640px) { .st-compare-pdf-inputs { grid-template-columns: 1fr; } .st-compare-drop { padding: 24px 12px; } }

/* SindhTools shared footer (v0.6.2.5): one footer for tool pages and every WordPress block-theme page. */
.st-footer { background: #0b2545; color: #e9e2d6; padding: 40px 0 22px; text-align: left; clear: both; border-top: 3px solid #b11e2e; }
.st-footer p { margin: 0; }
.st-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.st-footer-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.st-footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.st-footer-brand { display: inline-flex; align-items: center; margin: 0 0 10px; padding: 8px 12px; background: #fffdf8; border: 1px solid #e6dccb; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.st-footer-logo { display: block; width: 150px; max-width: 45vw; height: auto; object-fit: contain; background: #fffdf8; }
.st-footer-line { color: #e9e2d6; }
.st-footer-small { font-size: 14px; color: #b9b1a3; }
.st-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.st-footer-heading { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.st-footer-links ul { list-style: none; margin: 0; padding: 0; }
.st-footer-links li { margin: 0 0 8px; }
.st-footer-links a { color: #e9e2d6; font-size: 15px; text-decoration: none; text-underline-offset: 3px; }
.st-footer-links a:hover, .st-footer-links a:focus-visible { color: #fff; text-decoration: underline; }
.st-footer-social { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.st-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; text-decoration: none; box-sizing: border-box; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.st-footer-social a:hover { background: #b11e2e; border-color: #b11e2e; transform: translateY(-2px); }
.st-footer-social a:focus-visible { background: #b11e2e; border-color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.st-footer-social svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .st-footer-social a { transition: none; } .st-footer-social a:hover { transform: none; } }
.st-footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.st-footer-credit { font-size: 14px; color: #b9b1a3; }
.st-footer-credit a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid #b11e2e; }
.st-footer-credit a:hover, .st-footer-credit a:focus-visible { border-bottom-color: #fff; }

@media (max-width: 860px) {
  .st-footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .st-footer-brand-col { grid-column: 1 / -1; }
  .st-footer-follow { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .st-footer { padding: 32px 0 20px; }
  .st-footer-main { grid-template-columns: 1fr; gap: 26px; }
  .st-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Block themes add a gap above direct children of .wp-site-blocks; keep the footer flush. */
.wp-site-blocks > .st-footer { margin-block-start: 0; }


/* Shared live-site header actions: preserve the theme template-part and the real translator shortcode. */
.st-ref-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto;margin-left:12px;position:relative;min-width:0;}
.st-ref-search-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#0b2545;cursor:pointer;}
.st-ref-search-icon:hover,.st-ref-search-icon:focus-visible{background:#f3e8e2;color:#0b2545;}
.st-ref-search-icon:focus-visible{outline:2px solid #b11e2e;outline-offset:2px;}
.st-ref-header-search{display:flex;align-items:center;gap:5px;min-width:0;margin:0;}
.st-ref-header-search[hidden]{display:none!important;}
.st-ref-header-search input[type=search]{box-sizing:border-box;width:clamp(130px,18vw,230px);height:34px;margin:0;padding:6px 10px;border:1px solid #e6dccb;border-radius:8px;background:#fffdf8;color:#0b2545;font:inherit;font-size:13px;}
.st-ref-header-search button[type=submit]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:7px;background:#0b2545;color:#fff;cursor:pointer;}
.st-ref-header-search button[type=submit]:hover,.st-ref-header-search button[type=submit]:focus-visible{background:#b11e2e;}
.st-ref-lang-wrap{display:flex;align-items:center;justify-content:center;min-height:30px;margin:0;padding-left:7px;border-left:1px solid #e6dccb;position:relative;overflow:visible;}
.st-ref-lang-wrap .auto_translate_button_wrapper{display:flex!important;align-items:center!important;margin:0!important;padding:0!important;max-width:none!important;overflow:visible!important;}
.st-ref-lang-wrap .auto_translate_minimalist{display:block!important;visibility:visible!important;opacity:1!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;}
.st-ref-lang-wrap .wpat_lang_selected{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-height:30px!important;width:auto!important;min-width:0!important;margin:0!important;padding:3px 5px!important;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;color:#0b2545!important;font:inherit!important;font-size:11px!important;line-height:1!important;cursor:pointer!important;white-space:nowrap!important;}
.st-ref-lang-wrap .wpat_lang_selected:hover,.st-ref-lang-wrap .wpat_lang_selected:focus-visible{background:#f7eee5!important;outline-offset:2px;}
.st-ref-lang-wrap .wpat_lang_selected .wpat_lang_name,.st-ref-lang-wrap .wpat_lang_selected .wpat_lang_name_code{display:none!important;}
.st-ref-lang-wrap .wpat_lang_selected .wpat_flag_wrapper{display:inline-flex!important;align-items:center!important;gap:4px!important;}
.st-ref-lang-wrap .wpat_lang_selected .wpat_flag{width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;background-color:transparent!important;font-size:15px!important;line-height:16px!important;}
.st-ref-lang-wrap .wpat_lang_selected .wpat_lang_code{display:inline-block!important;margin:0!important;padding:0!important;color:#0b2545!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1!important;}
.st-ref-lang-wrap .wpat_chevron{font-size:12px!important;width:12px!important;height:12px!important;line-height:12px!important;margin-left:0!important;color:#0b2545!important;}
.st-ref-lang-wrap .wpat_minimalist_dropdown{position:absolute!important;top:calc(100% + 5px)!important;right:0!important;left:auto!important;min-width:180px!important;max-width:min(280px,calc(100vw - 24px))!important;max-height:min(65vh,360px)!important;overflow:auto!important;z-index:10050!important;border:1px solid #e6dccb!important;border-radius:10px!important;background:#fffdf8!important;box-shadow:0 12px 30px rgba(11,37,69,.17)!important;}
.st-ref-lang-wrap .wpat_minimalist_dropdown .wpat_lang_item{font-size:12px!important;}
.st-ref-lang-wrap .wpat_minimalist_dropdown .wpat_lang_item:hover,.st-ref-lang-wrap .wpat_minimalist_dropdown .wpat_lang_item:focus{background:#f7eee5!important;color:#a51f35!important;}
@media(max-width:760px){.st-ref-actions{gap:5px;margin-left:6px;}.st-ref-search-icon{width:32px;height:32px;min-width:32px;}.st-ref-lang-wrap{padding-left:5px;}.st-ref-header-search input[type=search]{width:clamp(105px,30vw,160px);}.st-ref-lang-wrap .wpat_minimalist_dropdown{right:0!important;min-width:165px!important;}}
@media(max-width:380px){.st-ref-header-search input[type=search]{width:100px;padding-left:7px;padding-right:7px;font-size:12px;}.st-ref-actions{gap:3px;margin-left:3px;}}

/* v0.6.2.5 mobile header parity: keep the same homepage top row on every tool/page.
   Desktop rules are intentionally untouched. */
@media (max-width: 760px) {
  .st-ref-header .st-ref-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .st-ref-header .st-ref-brand {
    order: 1 !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .st-ref-header .st-ref-actions {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin: 0 0 0 auto !important;
    gap: 5px !important;
  }
  .st-ref-header .st-ref-mobile-toggle {
    order: 3 !important;
    flex: 0 0 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  .st-ref-header .st-ref-links {
    order: 4 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 8px 0 0 !important;
    padding: 8px 16px !important;
    border: 1px solid #e8dfd2 !important;
    border-radius: 22px !important;
    background: #fffdf8 !important;
    box-shadow: 0 8px 24px rgba(11,37,69,.07) !important;
  }
  .st-ref-header .st-ref-mobile-toggle[aria-expanded="true"] + .st-ref-links {
    display: flex !important;
  }
  .st-ref-header .st-ref-links > a,
  .st-ref-header .st-ref-menu-group,
  .st-ref-header .st-ref-menu-toggle {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .st-ref-header .st-ref-links > a,
  .st-ref-header .st-ref-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 48px !important;
    padding: 12px 4px !important;
    margin: 0 !important;
    white-space: normal !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(232,223,210,.7) !important;
  }
  .st-ref-header .st-ref-links > a:last-child { border-bottom: 0 !important; }
  .st-ref-header .st-ref-submenu {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
}
@media (max-width: 380px) {
  .st-ref-header .st-ref-nav { column-gap: 5px !important; }
  .st-ref-header .st-ref-brand img { max-width: 96px !important; }
  .st-ref-header .st-ref-actions { gap: 2px !important; }
  .st-ref-header .st-ref-mobile-toggle { flex-basis: 38px !important; width: 38px !important; }
}
