/* Compact mobile header — Dr Aslam */
@media (max-width: 781px) {
	#masthead.site-header {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 14px;
		padding: 18px 22px;
	}

	#masthead .site-branding {
		flex: 1 1 auto !important;
		width: auto !important;
		max-width: calc(100% - 58px) !important;
		margin: 0 !important;
		min-width: 
			0;
		text-align: left;
	}

	#masthead .site-title {
		margin: 0;
		font-size: 24px;
		line-height: 1.15;
		white-space: normal;
	}

	#masthead .site-description {
		margin: 5px 0 0;
		font-size: 13px;
		line-height: 1.35;
	}

	#site-navigation.main-navigation {
		position: relative;
		flex: 0 0 44px !important;
		width: 44px !important;
		max-width: 44px !important;
		margin: 0 !important;
		align-self: center !important;
	}

	#site-navigation #toggle-menu {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		padding: 0;
		background: transparent !important;
		color: #17324a !important;
		border: 0 !important;
		border-radius: 0;
		box-shadow: none !important;
		font-size: 0;
	}

	#site-navigation .menu-main-menu-container {
		display: none;
		position: absolute;
		top: calc(100% + 10px);
		right: 0;
		width: min(280px, calc(100vw - 32px));
		padding: 8px;
		background: #ffffff;
		border: 1px solid #d7e1e7;
		border-radius: 10px;
		box-shadow: 0 12px 30px rgba(11,38,58,0.14);
		z-index: 9999;
		text-align: left;
	}

	#site-navigation #toggle:checked ~ .menu-main-menu-container {
		display: block;
	}

	#site-navigation .main-menu {
		display: block;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	#site-navigation .main-menu li {
		display: block;
		margin: 0;
	}

	#site-navigation .main-menu li > a {
		display: block;
		min-height: 44px;
		padding: 11px 12px;
		border-radius: 7px;
		color: #17324a;
	}

	.wp-block-button__link {
		min-height: 48px;
	}

	#colophon .footer-navigation a {
		display: inline-block;
		min-height: 44px;
		padding-top: 10px;
		padding-bottom: 10px;
	}
}

/* Shared left-side mobile navigation — Dr Aslam, 29 September 2026 */
@media (max-width: 781px) {
  body #masthead.site-header {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 22px 18px 68px !important;
    box-sizing: border-box !important;
  }
  body #masthead .site-branding {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  body #masthead .site-title {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.15 !important;
  }
  body #masthead .site-description {
    margin: 5px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
  body #masthead #site-navigation.main-navigation {
    position: absolute !important;
    left: 14px !important;
    right: auto !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body #masthead #site-navigation #toggle-menu {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #17324a !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }
  body #masthead #site-navigation .menu-main-menu-container {
    display: none !important;
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 2px) !important;
    width: min(280px, calc(100vw - 28px)) !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 180px);
    max-height: calc(100dvh - 180px);
    overflow-y: auto;
    z-index: 9999 !important;
  }
  body #masthead #site-navigation #toggle:checked ~ .menu-main-menu-container {
    display: block !important;
  }
  body #masthead #site-navigation #toggle:focus-visible + #toggle-menu {
    outline: 2px solid #167d8d;
    outline-offset: 4px;
  }
}

/* Remove the floating visitor toolbar */
#actionbar {
	display: none !important;
}

/* Centered mobile menu icon */
@media (max-width: 781px) {
	#site-navigation #toggle-menu {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: relative;
		line-height: 1;
	}

	#site-navigation #toggle-menu::before,
	#site-navigation #toggle-menu::after {
		content: "" !important;
		position: absolute;
		left: 50%;
		top: 50%;
		width: 20px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transform-origin: center;
	}

	#site-navigation #toggle-menu::before {
		transform: translate(-50%, -50%);
		box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
	}

	#site-navigation #toggle-menu::after {
		display: none;
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	#site-navigation #toggle-menu .dropdown-icon.open,
	#site-navigation #toggle-menu .dropdown-icon.close {
		display: none !important;
	}

	#site-navigation #toggle:checked + #toggle-menu::before {
		box-shadow: none;
		transform: translate(-50%, -50%) rotate(45deg);
	}

	#site-navigation #toggle:checked + #toggle-menu::after {
		display: block;
	}
}

/* --- WPWriter addition --- */

/* Asthma article featured image — keep social image, reduce desktop display size */
@media (min-width: 782px) {
  body.postid-535 .post-thumbnail,
  body.postid-535 figure.post-thumbnail,
  body.postid-535 .wp-block-post-featured-image {
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.postid-535 .post-thumbnail img,
  body.postid-535 figure.post-thumbnail img,
  body.postid-535 .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 781px) {
  body.postid-535 .post-thumbnail,
  body.postid-535 figure.post-thumbnail,
  body.postid-535 .wp-block-post-featured-image {
    max-width: 100% !important;
  }
}


/* --- WPWriter addition --- */

/* Sleep Apnea article featured image — reduce desktop display size */
@media (min-width: 782px) {
  body.postid-643 .post-thumbnail,
  body.postid-643 figure.post-thumbnail,
  body.postid-643 .wp-block-post-featured-image {
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.postid-643 .post-thumbnail img,
  body.postid-643 figure.post-thumbnail img,
  body.postid-643 .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 781px) {
  body.postid-643 .post-thumbnail,
  body.postid-643 figure.post-thumbnail,
  body.postid-643 .wp-block-post-featured-image {
    max-width: 100% !important;
  }
}


/* --- WPWriter addition --- */

/* Pneumonia article featured image — reduce desktop display size */
@media (min-width: 782px) {
  body.postid-664 .post-thumbnail,
  body.postid-664 figure.post-thumbnail,
  body.postid-664 .wp-block-post-featured-image {
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.postid-664 .post-thumbnail img,
  body.postid-664 figure.post-thumbnail img,
  body.postid-664 .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 781px) {
  body.postid-664 .post-thumbnail,
  body.postid-664 figure.post-thumbnail,
  body.postid-664 .wp-block-post-featured-image {
    max-width: 100% !important;
  }
}


/* --- WPWriter addition --- */

/* Blog landing page — consistent article thumbnails */
@media (min-width: 782px) {
  body.page-id-259 .wp-block-post-featured-image {
    max-width: 560px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body.page-id-259 .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 781px) {
  body.page-id-259 .wp-block-post-featured-image {
    max-width: 100% !important;
  }

  body.page-id-259 .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
  }
}


/* --- WPWriter addition --- */


/* --- WPWriter addition --- */

/* Chronic Cough article featured image — match other respiratory articles */
@media (min-width: 782px) {
  body.postid-1038 .post-thumbnail,
  body.postid-1038 figure.post-thumbnail,
  body.postid-1038 .wp-block-post-featured-image {
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.postid-1038 .post-thumbnail img,
  body.postid-1038 figure.post-thumbnail img,
  body.postid-1038 .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 781px) {
  body.postid-1038 .post-thumbnail,
  body.postid-1038 figure.post-thumbnail,
  body.postid-1038 .wp-block-post-featured-image {
    max-width: 100% !important;
  }
}


/* --- WPWriter addition --- */
/* Media coverage: landscape display crops; original files preserved */
body.page-id-266 .wp-block-image:has(> a > img.wp-image-328),
body.page-id-266 .wp-block-image:has(> a > img.wp-image-345),
body.page-id-266 .wp-block-image:has(> a > img.wp-image-968) {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.page-id-266 .wp-block-image a:has(> img.wp-image-328),
body.page-id-266 .wp-block-image a:has(> img.wp-image-345),
body.page-id-266 .wp-block-image a:has(> img.wp-image-968) { display: block; width: 100%; }
body.page-id-266 img.wp-image-328,
body.page-id-266 img.wp-image-345,
body.page-id-266 img.wp-image-968 {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
body.page-id-266 img.wp-image-328 { object-position: 50% 96%; }
body.page-id-266 img.wp-image-345 { object-position: 50% 60%; }
body.page-id-266 img.wp-image-968 { object-position: 50% 100%; }


/* --- WPWriter addition --- */
/* Sleep study draft 1116: match respiratory article image sizing */
body.postid-1116 .post-thumbnail,
body.postid-1116 .wp-block-post-featured-image {
  width: 100% !important;
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.postid-1116 .post-thumbnail img,
body.postid-1116 .wp-block-post-featured-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}


/* --- WPWriter addition --- */
/* PFT article: match respiratory guide image sizing */
body.postid-1106 .post-thumbnail,
body.postid-1106 .wp-block-post-featured-image {
  width: 100% !important;
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.postid-1106 .post-thumbnail img,
body.postid-1106 .wp-block-post-featured-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* --- WPWriter addition --- */
/* Adult asthma article: consistent featured image size */
body.postid-998 .post-thumbnail,
body.postid-998 .wp-block-post-featured-image {
  width: 100% !important;
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.postid-998 .post-thumbnail img,
body.postid-998 .wp-block-post-featured-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* --- WPWriter addition --- */
/* FeNO guide: consistent responsive featured image */
body.postid-1151 .post-thumbnail,
body.postid-1151 .wp-block-post-featured-image {
 width:100% !important;
 max-width:680px !important;
 margin-left:auto !important;
 margin-right:auto !important;
}
body.postid-1151 .post-thumbnail img,
body.postid-1151 .wp-block-post-featured-image img {
 display:block !important;
 width:100% !important;
 max-width:100% !important;
 height:auto !important;
 object-fit:contain !important;
}

/* --- WPWriter addition --- */
/* All blog articles: consistent responsive featured images */
body.single-post .post-thumbnail,
body.single-post .wp-block-post-featured-image {
 width:100% !important;
 max-width:680px !important;
 margin-left:auto !important;
 margin-right:auto !important;
}
body.single-post .post-thumbnail img,
body.single-post .wp-block-post-featured-image img {
 display:block !important;
 width:100% !important;
 max-width:100% !important;
 height:auto !important;
 object-fit:contain !important;
}
/* Blog listing and post archives: matching landscape cards */
body.page-id-259 .wp-block-post-featured-image img,
body.blog .post-thumbnail img,
body.archive .post-thumbnail img {
 display:block !important;
 width:100% !important;
 max-width:100% !important;
 height:auto !important;
 aspect-ratio:3 / 2;
 object-fit:cover !important;
 object-position:center;
}


/* --- WPWriter addition --- */
/* Override editor-set card proportions consistently */
body.page-id-259 .wp-block-post-featured-image img,
body.blog .post-thumbnail img,
body.archive .post-thumbnail img {
 aspect-ratio:3 / 2 !important;
}

/* --- WPWriter addition --- */
/* Blog article titles: navy, with existing green body links retained */
body.page-id-259 .wp-block-post-title,
body.page-id-259 .wp-block-post-title a,
body.blog .entry-title,
body.blog .entry-title a,
body.archive .entry-title,
body.archive .entry-title a,
body.single-post .entry-header .entry-title {
 color:#17324A !important;
}
body.page-id-259 .wp-block-post-title a:hover,
body.page-id-259 .wp-block-post-title a:focus-visible,
body.blog .entry-title a:hover,
body.blog .entry-title a:focus-visible,
body.archive .entry-title a:hover,
body.archive .entry-title a:focus-visible {
 color:#17324A !important;
 text-decoration:underline;
}

/* --- WPWriter addition --- */

/* ===== Global header & footer refresh — Oct 2026 ===== */

/* Header */
body #masthead.site-header{
  background:#fff !important;
  border-bottom:1px solid #e4ecef;
  box-shadow:0 4px 18px rgba(23,50,74,.05);
}
@media (min-width:782px){
  body #masthead.site-header{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:32px;
    padding:20px 30px !important;
  }
  body #masthead .site-branding{
    flex:0 1 auto !important;
    margin:0 !important;
    text-align:left !important;
  }
  body #masthead .site-title{
    margin:0 !important;
    font-family:system-ui,-apple-system,Segoe UI,sans-serif;
    font-size:29px !important;
    font-weight:800 !important;
    line-height:1.08 !important;
    letter-spacing:-.02em;
  }
  body #masthead .site-title a{
    color:#17324a !important;
    text-decoration:none !important;
  }
  body #masthead .site-description{
    margin:6px 0 0 !important;
    color:#687987 !important;
    font-family:system-ui,-apple-system,Segoe UI,sans-serif;
    font-size:13.5px !important;
    font-weight:600;
    line-height:1.35 !important;
  }
  body #masthead #site-navigation.main-navigation{
    flex:0 0 auto !important;
    width:auto !important;
    margin:0 !important;
  }
  body #site-navigation .main-menu{
    display:flex !important;
    align-items:center;
    gap:4px;
    margin:0 !important;
  }
  body #site-navigation .main-menu > li > a{
    padding:10px 13px !important;
    border-radius:9px;
    color:#17324a !important;
    font-weight:700;
    text-decoration:none !important;
    transition:background .18s ease,color .18s ease;
  }
  body #site-navigation .main-menu > li > a:hover,
  body #site-navigation .main-menu > li > a:focus-visible,
  body #site-navigation .main-menu > li.current-menu-item > a,
  body #site-navigation .main-menu > li.current_page_item > a{
    background:#eef7f8 !important;
    color:#0f6f78 !important;
  }
  body #site-navigation .sub-menu{
    min-width:240px;
    padding:8px !important;
    background:#fff !important;
    border:1px solid #d8e5e9;
    border-radius:12px;
    box-shadow:0 14px 34px rgba(23,50,74,.12);
  }
  body #site-navigation .sub-menu a{
    padding:10px 12px !important;
    border-radius:8px;
    color:#17324a !important;
  }
  body #site-navigation .sub-menu a:hover,
  body #site-navigation .sub-menu a:focus-visible{
    background:#f4f9fa !important;
    color:#0f6f78 !important;
  }
}

/* Mobile header */
@media (max-width:781px){
  body #masthead.site-header{
    min-height:78px;
    padding:15px 18px 15px 64px !important;
  }
  body #masthead .site-title{
    font-size:22px !important;
    font-weight:800 !important;
    letter-spacing:-.02em;
  }
  body #masthead .site-title a{
    color:#17324a !important;
    text-decoration:none !important;
  }
  body #masthead .site-description{
    margin-top:4px !important;
    color:#687987 !important;
    font-size:12.5px !important;
    font-weight:600;
  }
  body #masthead #site-navigation.main-navigation{
    left:12px !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
  }
  body #masthead #site-navigation #toggle-menu{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    border:1px solid #d8e5e9 !important;
    border-radius:10px !important;
    background:#f7fbfc !important;
    color:#17324a !important;
  }
  body #masthead #site-navigation .menu-main-menu-container{
    top:calc(100% + 8px) !important;
    width:min(300px,calc(100vw - 24px)) !important;
    padding:10px !important;
    border:1px solid #d8e5e9 !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 16px 36px rgba(23,50,74,.16) !important;
  }
  body #site-navigation .main-menu li > a{
    min-height:46px;
    padding:12px 13px !important;
    border-radius:9px !important;
    color:#17324a !important;
    font-weight:700;
  }
  body #site-navigation .main-menu li > a:hover,
  body #site-navigation .main-menu li > a:focus-visible{
    background:#eef7f8 !important;
    color:#0f6f78 !important;
  }
  body #site-navigation .sub-menu{
    margin-left:10px !important;
    padding-left:10px !important;
    border-left:2px solid #d8e5e9;
  }
}

/* Footer */
body #colophon.site-footer{
  margin-top:52px;
  padding:38px 24px 24px !important;
  background:#17324a !important;
  color:#dce8ed !important;
  border-top:0 !important;
}
body #colophon .footer-navigation{
  max-width:980px;
  margin:0 auto 22px !important;
}
body #colophon .footer-navigation .menu{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:8px 10px;
  margin:0 !important;
  padding:0 !important;
  list-style:none;
}
body #colophon .footer-navigation li{
  margin:0 !important;
}
body #colophon .footer-navigation a{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 12px !important;
  border-radius:9px;
  color:#eef6f8 !important;
  font-weight:650;
  text-decoration:none !important;
}
body #colophon .footer-navigation a:hover,
body #colophon .footer-navigation a:focus-visible{
  background:rgba(255,255,255,.09);
  color:#fff !important;
}
body #colophon .footer-navigation a[href^="tel:"],
body #colophon .footer-navigation a[href*="wa.me"]{
  background:#0f6f78 !important;
  color:#fff !important;
  font-weight:750;
}
body #colophon .footer-navigation a[href^="tel:"]:hover,
body #colophon .footer-navigation a[href*="wa.me"]:hover{
  background:#0c5d65 !important;
}
body #colophon .site-info{
  max-width:980px;
  margin:0 auto !important;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.14);
  color:#b9cbd2 !important;
  text-align:center;
  font-size:13px;
  line-height:1.6;
}
body #colophon .site-info a{
  color:#fff !important;
  text-decoration:none !important;
}
body #colophon .powered-by-wordpress,
body #colophon a[href*="wordpress.org"]{
  display:none !important;
}
body #colophon .site-info::after{
  content:"Specialist Pulmonologist · Dubai";
  display:block;
  margin-top:4px;
  color:#9fb6bf;
  font-size:12.5px;
  font-weight:600;
}

@media (max-width:700px){
  body #colophon.site-footer{
    margin-top:40px;
    padding:30px 18px 22px !important;
  }
  body #colophon .footer-navigation .menu{
    gap:7px;
  }
  body #colophon .footer-navigation li{
    flex:1 1 calc(50% - 7px);
  }
  body #colophon .footer-navigation a{
    width:100%;
    min-height:44px;
    padding:10px 9px !important;
    background:rgba(255,255,255,.055);
    text-align:center;
  }
  body #colophon .footer-navigation a[href^="tel:"],
  body #colophon .footer-navigation a[href*="wa.me"]{
    flex-basis:100%;
  }
}


/* --- WPWriter addition --- */

/* Footer mobile refinement — Oct 2026 */
body #colophon.site-footer{
  margin-top:24px !important;
}
body #colophon .privacy-policy-link{
  display:none !important;
}
@media (max-width:700px){
  body #colophon.site-footer{
    margin-top:18px !important;
    padding:26px 18px 20px !important;
    border-radius:0 !important;
  }
  body #colophon .footer-navigation{
    margin-bottom:18px !important;
  }
  body #colophon .footer-navigation .menu{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:4px 10px !important;
  }
  body #colophon .footer-navigation li{
    flex:0 0 auto !important;
    width:auto !important;
  }
  body #colophon .footer-navigation a{
    width:auto !important;
    min-height:auto !important;
    padding:7px 6px !important;
    background:transparent !important;
    border-radius:7px !important;
    font-size:14px !important;
    line-height:1.25 !important;
  }
  body #colophon .footer-navigation li:has(a[href^="tel:"]),
  body #colophon .footer-navigation li:has(a[href*="wa.me"]){
    flex:1 1 calc(50% - 6px) !important;
    margin-top:8px !important;
  }
  body #colophon .footer-navigation a[href^="tel:"],
  body #colophon .footer-navigation a[href*="wa.me"]{
    width:100% !important;
    min-height:44px !important;
    padding:10px 12px !important;
    background:#0f6f78 !important;
    border-radius:10px !important;
    font-size:15px !important;
  }
  body #colophon .site-info{
    padding-top:14px !important;
    font-size:12.5px !important;
  }
  body #colophon .site-info::after{
    margin-top:3px !important;
    font-size:12px !important;
  }
}


/* --- WPWriter addition --- */

/* Footer final mobile layout refinement */
body #colophon .site-info{
  font-size:0 !important;
  color:transparent !important;
}
body #colophon .site-info > *{
  display:none !important;
}
body #colophon .site-info::before{
  content:none !important;
}
body #colophon .site-info > a.site-name{
  display:inline-block !important;
  color:#ffffff !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:1.35 !important;
  text-decoration:none !important;
  padding:8px 12px;
  cursor:pointer;
  pointer-events:auto !important;
}
body #colophon .site-info > a.site-name:hover{
  text-decoration:underline !important;
  text-underline-offset:4px;
}
body #colophon .site-info > a.site-name:focus-visible{
  outline:2px solid #8bd9df;
  outline-offset:4px;
  border-radius:4px;
}
body #colophon .site-info::after{
  content:"Specialist Pulmonologist · Dubai";
  display:block;
  margin-top:5px;
  color:#9fb6bf;
  font-size:12.5px;
  font-weight:600;
  line-height:1.4;
}

@media (max-width:700px){
  body #colophon .footer-navigation .menu{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:7px 8px !important;
    align-items:stretch !important;
  }
  body #colophon .footer-navigation li{
    grid-column:span 2 !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
  }
  body #colophon .footer-navigation li:has(a[href^="tel:"]),
  body #colophon .footer-navigation li:has(a[href*="wa.me"]){
    grid-column:span 3 !important;
    width:auto !important;
    min-width:0 !important;
    margin-top:5px !important;
  }
  body #colophon .footer-navigation a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-height:38px !important;
    padding:7px 5px !important;
    background:rgba(255,255,255,.055) !important;
    border-radius:8px !important;
    font-size:13px !important;
    line-height:1.2 !important;
    text-align:center !important;
  }
  body #colophon .footer-navigation a[href^="tel:"],
  body #colophon .footer-navigation a[href*="wa.me"]{
    min-height:44px !important;
    padding:10px 8px !important;
    background:#0f6f78 !important;
    border-radius:10px !important;
    font-size:14.5px !important;
  }
  body #colophon .site-info{
    padding-top:14px !important;
  }
}


/* --- WPWriter addition --- */

/* Footer navigation cleanup — Home restored, legal links last */
body #colophon .footer-navigation ul,
body #colophon .footer-navigation .menu{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px 16px !important;
}
body #colophon .footer-navigation li{
  flex:0 0 auto !important;
  width:auto !important;
  margin:0 !important;
}
body #colophon .footer-navigation a{
  width:auto !important;
  min-height:auto !important;
  padding:6px 4px !important;
  background:transparent !important;
  border-radius:0 !important;
  color:#eef6f8 !important;
  font-size:14px !important;
  font-weight:700 !important;
}
body #colophon .footer-navigation li:has(a[href*="/disclaimer/"]){
  order:98 !important;
}
body #colophon .footer-navigation li:has(a[href*="/privacy-policy/"]){
  order:99 !important;
}
body #colophon .footer-navigation li:has(a[href*="/disclaimer/"]) a,
body #colophon .footer-navigation li:has(a[href*="/privacy-policy/"]) a{
  color:#9fb6bf !important;
  font-size:12.5px !important;
  font-weight:600 !important;
}

@media (max-width:700px){
  body #colophon .footer-navigation ul,
  body #colophon .footer-navigation .menu{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:8px 6px !important;
  }
  body #colophon .footer-navigation li{
    grid-column:span 2 !important;
    width:auto !important;
    min-width:0 !important;
  }
  body #colophon .footer-navigation li:has(a[href$="/blog/"]){
    grid-column:3 / span 2 !important;
  }
  body #colophon .footer-navigation li:has(a[href*="/disclaimer/"]),
  body #colophon .footer-navigation li:has(a[href*="/privacy-policy/"]){
    grid-column:span 3 !important;
    margin-top:8px !important;
    padding-top:8px !important;
    border-top:1px solid rgba(255,255,255,.12);
  }
  body #colophon .footer-navigation a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:36px !important;
    padding:6px 4px !important;
    background:transparent !important;
    font-size:13.5px !important;
    text-align:center !important;
  }
  body #colophon .footer-navigation li:has(a[href*="/disclaimer/"]) a,
  body #colophon .footer-navigation li:has(a[href*="/privacy-policy/"]) a{
    min-height:30px !important;
    font-size:12px !important;
  }
}


/* --- WPWriter addition --- */

/* Mobile header branding centered */
@media (max-width:781px){
  body #masthead.site-header{
    position:relative !important;
    padding-left:64px !important;
    padding-right:18px !important;
  }
  body #masthead .site-branding{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 48px 0 0 !important;
    text-align:center !important;
  }
  body #masthead .site-title,
  body #masthead .site-description{
    text-align:center !important;
  }
}


/* --- WPWriter addition --- */

/* Contact form mobile width / box fit */
body.page-id-30 .wp-block-jetpack-contact-form,
body.page-id-30 .wp-block-jetpack-contact-form > div,
body.page-id-30 .wp-block-jetpack-contact-form .grunion-field-wrap,
body.page-id-30 .wp-block-jetpack-contact-form .contact-form__input-wrapper{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}
body.page-id-30 .wp-block-jetpack-contact-form input:not([type="submit"]),
body.page-id-30 .wp-block-jetpack-contact-form textarea,
body.page-id-30 .wp-block-jetpack-contact-form select{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}
body.page-id-30 .wp-block-jetpack-contact-form textarea{
  min-height:180px !important;
}
body.page-id-30 .wp-block-jetpack-contact-form button,
body.page-id-30 .wp-block-jetpack-contact-form input[type="submit"],
body.page-id-30 .wp-block-jetpack-contact-form .wp-block-button__link{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
  background:#0f6f78 !important;
  border-color:#0f6f78 !important;
  color:#fff !important;
}
@media(max-width:700px){
  body.page-id-30 .entry-content > .wp-block-columns > .wp-block-column{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  body.page-id-30 .wp-block-jetpack-contact-form{
    gap:16px !important;
  }
}


/* --- WPWriter addition --- */

/* Contact form: force every Jetpack field to occupy the card width */
body.page-id-30 .wp-block-jetpack-contact-form{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  width:100% !important;
  max-width:100% !important;
}
body.page-id-30 .wp-block-jetpack-contact-form > *,
body.page-id-30 .wp-block-jetpack-contact-form .wp-block-jetpack-field-name,
body.page-id-30 .wp-block-jetpack-contact-form .wp-block-jetpack-field-telephone,
body.page-id-30 .wp-block-jetpack-contact-form .wp-block-jetpack-field-email,
body.page-id-30 .wp-block-jetpack-contact-form .wp-block-jetpack-field-textarea,
body.page-id-30 .wp-block-jetpack-contact-form .grunion-field-wrap{
  flex:0 0 100% !important;
  flex-basis:100% !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
body.page-id-30 .wp-block-jetpack-contact-form input[type="text"],
body.page-id-30 .wp-block-jetpack-contact-form input[type="email"],
body.page-id-30 .wp-block-jetpack-contact-form input[type="tel"],
body.page-id-30 .wp-block-jetpack-contact-form input[type="url"],
body.page-id-30 .wp-block-jetpack-contact-form .wp-block-jetpack .grunion-field-textarea-wrap textarea,
body.page-id-30 .wp-block-jetpack-contact-form textarea{
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
body.page-id-30 .wp-block-jetpack-contact-form textarea{
  min-height:170px !important;
}
body.page-id-30 .wp-block-jetpack-contact-form .wp-block-button,
body.page-id-30 .wp-block-jetpack-contact-form .wp-block-button__link,
body.page-id-30 .wp-block-jetpack-contact-form button[type="submit"],
body.page-id-30 .wp-block-jetpack-contact-form input[type="submit"]{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  background:#0f6f78 !important;
  border-color:#0f6f78 !important;
  color:#fff !important;
}
@media(max-width:700px){
  body.page-id-30 .entry-content > .wp-block-columns > .wp-block-column:first-child{
    padding:20px 18px !important;
  }
}


/* --- WPWriter addition --- */
/* Desktop header and homepage refinements — 4 October 2026 */
@media (min-width:1024px) {
  body #masthead.site-header { align-items:center !important; gap:28px !important; }
  body #masthead .site-description { font-size:13px !important; margin-top:4px !important; }
  body #masthead #site-navigation.main-navigation { align-self:center !important; }
  body #site-navigation .main-menu { gap:8px !important; align-items:center !important; }
  body #site-navigation .main-menu > li { margin:0 !important; }
  body #site-navigation .main-menu > li > a { font-family:system-ui,-apple-system,"Segoe UI",sans-serif !important; font-size:16px !important; line-height:1.3 !important; min-height:42px; display:inline-flex !important; align-items:center !important; justify-content:center !important; padding:10px 12px !important; box-sizing:border-box; }
  body #site-navigation .nav-contact-mobile { display:none !important; }
  body #site-navigation .nav-appointment-desktop[hidden] { display:inline !important; }
  body.page-id-266 .entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container { max-width:900px !important; margin-left:auto !important; margin-right:auto !important; }
  body.page-id-266 .entry-content > .wp-block-cover:first-child h1 { font-family:system-ui,-apple-system,"Segoe UI",sans-serif !important; font-size:40px !important; line-height:1.2 !important; margin-bottom:20px !important; }
  body.page-id-266 .entry-content > .wp-block-cover:first-child p { font-family:system-ui,-apple-system,"Segoe UI",sans-serif !important; font-size:18px !important; line-height:1.6 !important; }
  body.page-id-266 .entry-content > .wp-block-cover:first-child p.has-small-font-size { font-size:18px !important; margin-bottom:18px !important; }
  body.page-id-266 .desktop-home-appointment[hidden] { display:flex !important; align-items:center; justify-content:center; width:max-content; max-width:100%; min-height:48px; box-sizing:border-box; margin:22px auto 0; padding:13px 26px; border-radius:9px; background:#167d8d; color:#fff !important; text-decoration:none !important; font:700 16px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif; }
  body.page-id-266 .desktop-home-appointment:hover { background:#126b79; }
  body.page-id-266 .desktop-home-appointment:focus-visible { outline:3px solid #fff; outline-offset:4px; }
  body.page-id-266 .entry-content > .wp-block-cover:first-child + .wp-block-group .wp-block-columns { max-width:980px !important; margin-left:auto !important; margin-right:auto !important; align-items:center !important; gap:40px !important; }
  body.page-id-266 .entry-content > .wp-block-cover:first-child + .wp-block-group .wp-block-column { align-self:center !important; }
  body.page-id-266 .entry-content > .wp-block-cover:first-child + .wp-block-group .wp-block-column > p { font-family:system-ui,-apple-system,"Segoe UI",sans-serif !important; font-size:18px !important; line-height:1.65 !important; max-width:460px; margin:0 auto 18px !important; }
  body.page-id-266 .entry-content > .wp-block-cover:first-child + .wp-block-group h2 { font-family:system-ui,-apple-system,"Segoe UI",sans-serif !important; margin-top:0 !important; margin-bottom:20px !important; }
  body.page-id-266 .entry-content > .wp-block-cover:first-child + .wp-block-group figure { margin-top:0 !important; margin-bottom:0 !important; }
}

/* --- WPWriter addition --- */
/* Desktop homepage finishing touches */
@media (min-width:1024px) {
  body.page-id-266 .entry-content > .wp-block-cover:first-child {
    margin-top:18px !important;
    border-radius:18px;
    overflow:hidden;
  }
  body.page-id-266 .entry-content > .wp-block-cover:first-child + .wp-block-group .wp-block-column > p {
    text-align:center !important;
  }
}

/* Desktop patient feedback: compact button and closer spacing */
@media (min-width:1024px) {
  body.page-id-266 .entry-content > .patient-feedback-card {
    margin-top:24px !important;
  }
  body.page-id-266 .patient-feedback-card .wp-block-buttons {
    justify-content:center !important;
  }
  body.page-id-266 .patient-feedback-card .wp-block-button {
    flex:0 0 auto !important;
    width:auto !important;
    max-width:100% !important;
  }
  body.page-id-266 .patient-feedback-card .wp-block-button__link {
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:auto !important;
    max-width:100%;
    min-height:48px;
    padding:12px 24px !important;
    box-sizing:border-box;
  }
}

/* Desktop homepage banners: align with the 980px main content */
@media (min-width:1024px) {
  body.page-id-266 .entry-content > .wp-block-cover:first-child,
  body.page-id-266 .entry-content > .patient-feedback-card {
    width:calc(100% - 44px) !important;
    max-width:980px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    left:auto !important;
    right:auto !important;
    box-sizing:border-box !important;
  }
}

/* Show homepage appointment button on mobile and tablet — 4 October 2026 */
@media (max-width:1023px) {
  body.page-id-266 .entry-content .desktop-home-appointment[hidden] {
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:max-content;
    max-width:100%;
    min-height:48px;
    box-sizing:border-box;
    margin:20px auto 0;
    padding:13px 22px;
    border-radius:9px;
    background:#167d8d;
    color:#fff !important;
    text-decoration:none !important;
    font:700 16px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;
  }
  body.page-id-266 .entry-content .desktop-home-appointment:hover {background:#126b79;}
  body.page-id-266 .entry-content .desktop-home-appointment:focus-visible {outline:3px solid #fff;outline-offset:4px;}
}