/* Hisab Custom Header Footer v1.0.4 — header / drawer / footer styles.
   Ported byte-identical from the inline <style id="hisab-hf-style"> block
   of the served homepage (reference/homepage-live-2026-11-09.html, 9 Nov 2026).
   The #masthead / #colophon / #mobile-drawer hide rules are kept verbatim;
   those Kadence elements are not rendered by the PHP templates, so the
   rules are inert here. Loaded by templates/layout.php after the Design
   System CSS. */
/* [Hisab Custom Header Footer] v1.0.4 */
		#masthead,
		#colophon,
		#mobile-drawer {
			display: none !important;
		}
		.hisab-hf-header,
		.hisab-hf-header *,
		.hisab-hf-footer,
		.hisab-hf-footer *,
		.hisab-hf-drawer,
		.hisab-hf-drawer *,
		.hisab-hf-backdrop {
			box-sizing: border-box;
		}
		.hisab-hf-header :focus-visible,
		.hisab-hf-footer :focus-visible,
		.hisab-hf-drawer :focus-visible {
			outline: 2px solid #2B6CB0;
			outline-offset: 2px;
		}
		.hisab-hf-no-scroll {
			overflow: hidden;
		}
		.hisab-hf-drawer-checkbox {
			position: absolute;
			opacity: 0;
			pointer-events: none;
		}
		body:has(> #hisab-hf-drawer-toggle:checked) {
			overflow: hidden;
		}
		.hisab-hf-header {
			position: sticky;
			top: 0;
			z-index: 900;
			background: #ffffff;
		}
		body.admin-bar .hisab-hf-header {
			top: 32px;
		}
		.hisab-hf-header-inner {
			max-width: 1290px;
			margin: 0 auto;
			padding: 0 20px;
			min-height: 80px;
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 1em;
		}
		.hisab-hf-logo {
			flex-shrink: 0;
			flex-grow: 0;
		}
		.hisab-hf-logo a {
			display: block;
		}
		.hisab-hf-logo img {
			display: block;
			max-width: 200px;
			height: auto;
		}
		.hisab-hf-nav {
			display: block;
		}
		.hisab-hf-menu {
			display: flex;
			align-items: center;
			list-style: none;
			margin: 0;
			padding: 0;
		}
		.hisab-hf-menu > .hisab-hf-item {
			position: relative;
			display: flex;
			align-items: center;
		}
		.hisab-hf-link {
			display: block;
			padding: 0.6em;
			color: #4A5568;
			text-decoration: none;
		}
		a.hisab-hf-link:hover {
			color: #2B6CB0;
		}
		a.hisab-hf-link.hisab-hf-current {
			color: #1A202C;
		}
		.hisab-hf-toggle, .hisab-hf-toggle:hover, .hisab-hf-toggle:focus, .hisab-hf-toggle:active, .hisab-hf-toggle:focus-visible {
			background: transparent !important;
			background-color: transparent !important;
			-webkit-tap-highlight-color: transparent;
		}
/* ---- BATCH A P1-4 (13 Nov 2026) — desktop nav toggles >=44px ---- */
/* Measured live (Playwright, desktop): .hisab-hf-nav .hisab-hf-toggle was
   14.4x35.2px. Same 44px treatment as the drawer fix (AUDIT FIX 2, 12 Nov).
   min-width/min-height on the base rule also covers the nested
   .hisab-hf-submenu .hisab-hf-toggle (padding 1em 0.5em), which does not
   set its own min size. Drawer rule untouched. */
		.hisab-hf-toggle {
			border: none;
			cursor: pointer;
			padding: 10px 12px;
			min-width: 44px;
			min-height: 44px;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			color: #4A5568;
			line-height: 1;
		}
		.hisab-hf-toggle:focus-visible {
			outline: 2px solid #2B6CB0;
			outline-offset: 2px;
		}
		.hisab-hf-toggle-icon {
			display: inline-block;
		}
		.hisab-hf-has-children.hisab-hf-submenu-open > .hisab-hf-toggle .hisab-hf-toggle-icon {
			transform: rotate(180deg);
		}
		.hisab-hf-submenu {
			display: none;
			position: absolute;
			top: 100%;
			inset-inline-start: 0;
			min-width: 200px;
			list-style: none;
			margin: 0;
			padding: 0;
			background: #1A202C;
			box-shadow: 0px 2px 13px 0px rgba(0, 0, 0, 0.1);
			z-index: 100;
		}
		.hisab-hf-nav .hisab-hf-has-children:hover > .hisab-hf-submenu,
		.hisab-hf-nav .hisab-hf-has-children:focus-within > .hisab-hf-submenu,
		.hisab-hf-has-children.hisab-hf-submenu-open > .hisab-hf-submenu {
			display: block;
		}
		.hisab-hf-submenu .hisab-hf-item {
			position: relative;
			display: flex;
			align-items: center;
			border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		}
		.hisab-hf-submenu .hisab-hf-link {
			flex: 1;
			width: 200px;
			padding: 1em;
			color: #F7FAFC;
			font-size: 12px;
		}
		.hisab-hf-submenu a.hisab-hf-link:hover,
		.hisab-hf-submenu a.hisab-hf-link.hisab-hf-current {
			color: #ffffff;
			background: #2D3748;
		}
		.hisab-hf-submenu .hisab-hf-toggle {
			color: #F7FAFC;
			padding: 1em 0.5em;
		}
		.hisab-hf-submenu .hisab-hf-submenu {
			top: 0;
			right: 100%;
		}
		.hisab-hf-hamburger {
			display: none;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			gap: 5px;
			background: none;
			border: none;
			cursor: pointer;
			padding: 0.6em;
			touch-action: manipulation;
			-webkit-tap-highlight-color: transparent;
			min-width: 44px;
			min-height: 44px;
			position: relative;
			z-index: 20;
			pointer-events: auto;
			flex-shrink: 0;
		}
		.hisab-hf-hamburger-bar {
			display: block;
			width: 24px;
			height: 2px;
			background: #2D3748;
		}
		.hisab-hf-backdrop {
			position: fixed;
			inset: 0;
			background: rgba(26, 32, 44, 0.5);
			z-index: 1000;
			display: none;
			cursor: pointer;
		}
		.hisab-hf-drawer {
			position: fixed;
			top: 0;
			bottom: 0;
			left: 0;
			width: min(320px, 85vw);
			max-width: 100%;
			background: #ffffff;
			z-index: 1001;
			overflow-y: auto;
			transform: translateX(-100%);
			visibility: hidden;
		}
		#hisab-hf-drawer-toggle:checked ~ .hisab-hf-drawer {
			transform: translateX(0);
			visibility: visible;
		}
		#hisab-hf-drawer-toggle:checked ~ .hisab-hf-backdrop {
			display: block;
		}
		.hisab-hf-drawer-head {
			display: flex;
			justify-content: flex-start;
			padding: 1em;
		}
		.hisab-hf-drawer-close {
			background: none;
			border: none;
			cursor: pointer;
			font-size: 28px;
			line-height: 1;
			color: #2D3748;
			padding: 0 0.2em;
			-webkit-tap-highlight-color: transparent;
		}
		.hisab-hf-drawer-nav .hisab-hf-menu {
			display: block;
		}
		.hisab-hf-drawer-nav .hisab-hf-item {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			border-bottom: 1px solid #EDF2F7;
		}
		.hisab-hf-drawer-nav .hisab-hf-link {
			flex: 1;
			color: #4A5568;
			-webkit-tap-highlight-color: transparent;
		}
		.hisab-hf-drawer-nav .hisab-hf-submenu {
			position: static;
			display: none;
			width: 100%;
			margin: 0;
			padding: 0;
			box-sizing: border-box;
			background: #F7FAFC;
			box-shadow: none;
		}
		.hisab-hf-drawer-nav .hisab-hf-submenu .hisab-hf-item {
			width: 100%;
			box-sizing: border-box;
			border-bottom: 1px solid #EDF2F7;
		}
		.hisab-hf-drawer-nav .hisab-hf-submenu .hisab-hf-link {
			display: block;
			width: 100%;
			box-sizing: border-box;
			color: #2D3748;
			font-size: 14px;
		}
		.hisab-hf-drawer-nav .hisab-hf-submenu a.hisab-hf-link:hover,
		.hisab-hf-drawer-nav .hisab-hf-submenu a.hisab-hf-link.hisab-hf-current {
			color: #2B6CB0;
			background: transparent;
		}
		.hisab-hf-drawer-nav .hisab-hf-toggle {
			color: #4A5568;
		}
		.hisab-hf-footer {
			background: #1A202C;
			color: #EDF2F7;
			padding: 3em 20px 1.5em;
		}
		.hisab-hf-footer-inner {
			max-width: 1290px;
			margin: 0 auto;
			display: flex;
			flex-direction: column;
			gap: 2em;
		}
		.hisab-hf-footer-columns {
			display: grid;
			grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
			gap: 2em;
			width: 100%;
		}
		.hisab-hf-footer-brand {
			min-width: 0;
		}
		.hisab-hf-footer-logo a {
			display: inline-block;
		}
		.hisab-hf-footer-logo img {
			display: block;
			max-width: 160px;
			height: auto;
		}
		.hisab-hf-footer-about {
			color: #A0AEC0;
			line-height: 1.7;
			margin: 1em 0;
		}
		.hisab-hf-footer-heading {
			color: #ffffff;
			font-weight: 700;
			font-size: 15px;
			letter-spacing: 0.02em;
			margin: 0 0 1em;
		}
		.hisab-hf-footer-col {
			min-width: 0;
		}
		.hisab-hf-footer-menu {
			list-style: none;
			margin: 0;
			padding: 0;
			display: flex;
			flex-direction: column;
			gap: 0.5em;
		}
		.hisab-hf-footer-menu li {
			display: block;
		}
		.hisab-hf-footer-menu a {
			display: block;
			padding: 0.25em 0;
			color: #A0AEC0;
			text-decoration: none;
		}
		.hisab-hf-footer-menu a:hover {
			color: #ffffff;
		}
		.hisab-hf-footer-menu a.hisab-hf-current {
			color: #ffffff;
		}
		.hisab-hf-facebook {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 40px;
			height: 40px;
			border-radius: 8px;
			background: rgba(255, 255, 255, 0.1);
			color: #EDF2F7;
			text-decoration: none;
		}
		.hisab-hf-facebook:hover {
			color: #ffffff;
			background: rgba(255, 255, 255, 0.2);
		}
		.hisab-hf-facebook svg {
			display: block;
			width: 20px;
			height: 20px;
		}
		.hisab-hf-footer-bottom {
			width: 100%;
			border-top: 1px solid rgba(255, 255, 255, 0.1);
			padding-top: 1.25em;
			text-align: center;
		}
		.hisab-hf-copyright {
			color: #A0AEC0;
		}
		@media (max-width: 1024px) {
			.hisab-hf-nav {
				display: none;
			}
			.hisab-hf-hamburger {
				display: inline-flex;
			}
			.hisab-hf-header-inner {
				padding: 0 16px;
			}
			.hisab-hf-footer-columns {
				grid-template-columns: repeat(2, minmax(0, 1fr));
			}
		}
		@media (max-width: 767px) {
			.hisab-hf-header-inner {
				padding: 0 12px;
				min-height: 72px;
			}
			.hisab-hf-logo img {
				max-width: 160px;
			}
			.hisab-hf-footer {
				padding: 2em 12px 1.25em;
			}
			.hisab-hf-footer-columns {
				grid-template-columns: minmax(0, 1fr);
			}
		}
		@media (max-width: 782px) {
			body.admin-bar .hisab-hf-header {
				top: 46px;
			}
		}
/* ---- AUDIT FIX 2 (12 Nov 2026) — D-03: drawer submenu toggles >=44px ---- */
/* Measured live (Playwright, mobile 390px): .hisab-hf-drawer-nav
   .hisab-hf-toggle was 14x35px. Padding around the chevron (icon
   unchanged) so the hit area is at least 44x44px. */
.hisab-hf-drawer-nav .hisab-hf-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
