/* Pharmacally site-wide layout polish (loaded on every front-end page). */

/* 1. One heading scale for every page: page titles (.pc-h1) and section headings (.pc-h2). */
html body .pc-h1.pc-h1.pc-h1{font-size:56px!important;line-height:1.08!important;font-weight:600!important;letter-spacing:-.02em!important}
html body .pc-h2.pc-h2.pc-h2{font-size:40px!important;line-height:1.14!important;font-weight:600!important;letter-spacing:-.015em!important}
@media (max-width:991px){html body .pc-h1.pc-h1.pc-h1{font-size:44px!important}html body .pc-h2.pc-h2.pc-h2{font-size:34px!important}}
@media (max-width:767px){html body .pc-h1.pc-h1.pc-h1{font-size:34px!important;line-height:1.12!important}html body .pc-h2.pc-h2.pc-h2{font-size:28px!important;line-height:1.18!important}}

/* 2. Category archive list: image on top, text below on phones. */
@media (max-width:767px){
	.brxe-x3wo4e{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:14px!important}
	.brxe-x3wo4e>.brxe-g58hsv,.brxe-x3wo4e .brxe-g58hsv{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:cover;border-radius:14px!important;flex:none!important}
	.brxe-x3wo4e>.brxe-g6hcrb{width:100%!important;min-width:0}
	.brxe-x3wo4e .brxe-x4k3ig{font-size:21px!important;line-height:1.25!important}
	.brxe-x3wo4e .brxe-iqswmp{font-size:15px!important;line-height:1.55!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
	#pc-cat-filters,.brxe-xul36g{width:100%}
	.brxe-xul36g{flex-direction:column!important;align-items:stretch!important;gap:14px!important}
}

/* 3. Footer bottom bar on phones: centred, evenly spaced legal links. */
#pc-legal-slot ul,#pc-legal-slot .bricks-nav-menu{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;padding:0;list-style:none}
#pc-legal-slot li{margin:0!important;padding:0!important}
@media (max-width:767px){
	#pc-footer-bottom-in{align-items:center!important;text-align:center;gap:10px!important}
	#pc-footer-bottom-in>*{max-width:100%}
	#pc-legal-slot{width:100%!important;margin:6px 0 0!important;padding-top:14px;border-top:1px solid #ECEAF2}
	#pc-legal-slot ul,#pc-legal-slot .bricks-nav-menu{justify-content:center!important;gap:4px 0;width:100%}
	#pc-legal-slot>*,#pc-legal-slot nav,#pc-legal-slot .bricks-nav-menu-wrapper{width:100%!important;display:flex;justify-content:center}
	#pc-legal-slot li+li::before{content:"·";color:#B7B1C9;margin:0 12px}
	#pc-legal-slot li{display:inline-flex;align-items:center}
	#pc-legal-slot a{padding:4px 0!important;font-size:13.5px}
}

/* 4. Never allow sideways page scroll on phones (clip keeps the sticky header working). */
html,body{overflow-x:clip}

/* 5. Social links: real brand logos (header top bar + footer). */
.pc-soc{font-size:0!important;line-height:0!important;color:transparent!important;display:inline-flex!important;align-items:center;justify-content:center;transition:background-color .15s,border-color .15s,transform .15s}
.pc-soc::before{content:"";width:16px;height:16px;background:var(--pc-soc-c,#1E1740);-webkit-mask:var(--pc-ico) no-repeat center/contain;mask:var(--pc-ico) no-repeat center/contain;transition:background-color .15s}
.pc-soc--li{--pc-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z'/%3E%3C/svg%3E");--pc-brand:#0A66C2}
.pc-soc--x{--pc-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.9 1.15h3.68l-8.04 9.19L24 22.85h-7.41l-5.8-7.58-6.64 7.58H.47l8.6-9.83L0 1.15h7.6l5.24 6.93 6.06-6.93zm-1.29 19.5h2.04L6.48 3.24H4.3l13.31 17.41z'/%3E%3C/svg%3E");--pc-brand:#111111}
.pc-soc--ig{--pc-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.16c3.2 0 3.58.01 4.85.07 3.25.15 4.77 1.69 4.92 4.92.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.15 3.23-1.66 4.77-4.92 4.92-1.27.06-1.64.07-4.85.07s-3.58-.01-4.85-.07c-3.26-.15-4.77-1.7-4.92-4.92-.06-1.27-.07-1.64-.07-4.85s.01-3.58.07-4.85C2.38 3.92 3.9 2.38 7.15 2.23 8.42 2.17 8.8 2.16 12 2.16zM12 0C8.74 0 8.33.01 7.05.07 2.7.27.27 2.69.07 7.05.01 8.33 0 8.74 0 12s.01 3.67.07 4.95c.2 4.36 2.62 6.78 6.98 6.98C8.33 23.99 8.74 24 12 24s3.67-.01 4.95-.07c4.35-.2 6.78-2.62 6.98-6.98.06-1.28.07-1.69.07-4.95s-.01-3.67-.07-4.95c-.2-4.35-2.62-6.78-6.98-6.98C15.67.01 15.26 0 12 0zm0 5.84a6.16 6.16 0 1 0 0 12.32 6.16 6.16 0 0 0 0-12.32zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.41-11.85a1.44 1.44 0 1 0 0 2.88 1.44 1.44 0 0 0 0-2.88z'/%3E%3C/svg%3E");--pc-brand:#E1306C}
.pc-soc--wa{--pc-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.07-.3-.15-1.26-.46-2.39-1.47-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.08-.15-.67-1.61-.92-2.21-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.07 2.88 1.21 3.07.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.69.63.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2.01-1.41.25-.69.25-1.29.17-1.41-.07-.12-.27-.2-.57-.35M12.05 21.78h-.01a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.68 1.45h.01c6.55 0 11.89-5.34 11.89-11.89 0-3.18-1.24-6.17-3.48-8.41z'/%3E%3C/svg%3E");--pc-brand:#25D366}
#brx-header .pc-soc{--pc-soc-c:#fff;width:28px;height:28px;border-radius:8px}
#brx-header .pc-soc::before{width:14px;height:14px}
#brx-header .pc-soc:hover{background:rgba(255,255,255,.14)}
#brx-footer .pc-soc{--pc-soc-c:#1E1740}
#brx-footer .pc-soc::before{width:17px;height:17px}
#brx-footer .pc-soc:hover{background:var(--pc-brand)!important;border-color:var(--pc-brand)!important;transform:translateY(-2px)}
#brx-footer .pc-soc:hover::before{background:#fff}

/* 6. Form result messages: readable on light and dark sections. */
html body .brxe-form .message{display:flex!important;align-items:center;justify-content:flex-start!important;gap:10px;margin:8px 0 0!important;padding:13px 16px!important;border-radius:12px!important;font-size:14.5px!important;font-weight:500;line-height:1.5;text-align:left;grid-column:1/-1;flex:1 1 100%;box-shadow:0 8px 20px -14px rgba(30,23,64,.4)}
html body .brxe-form .message::before{content:"";flex:none;width:20px;height:20px;margin-top:1px;-webkit-mask:var(--pc-msg-ico) no-repeat center/contain;mask:var(--pc-msg-ico) no-repeat center/contain;background:currentColor}
html body .brxe-form .message .text{color:inherit!important;margin:0!important;padding:0!important;text-align:left!important;flex:1;min-width:0;width:auto!important;background:none!important}
html body .brxe-form .message.success{--pc-msg-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 17.2-5-5 1.7-1.7 3.3 3.3 7.3-7.3 1.7 1.7-9 9z'/%3E%3C/svg%3E");background:#ECFAF1!important;color:#14532D!important;border:1px solid #B7E4C7!important}
html body .brxe-form .message.error,html body .brxe-form .message.danger{--pc-msg-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm1.2 18h-2.4v-2.4h2.4V18zm0-4.8h-2.4V6h2.4v7.2z'/%3E%3C/svg%3E");background:#FDEEEE!important;color:#8A1C1C!important;border:1px solid #F3C4C4!important}
html body .brxe-form .message.info{--pc-msg-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm1.2 18h-2.4v-2.4h2.4V18zm0-4.8h-2.4V6h2.4v7.2z'/%3E%3C/svg%3E");background:#F1EBFF!important;color:#3B1F8A!important;border:1px solid #DCCEFF!important}

/* 7. "This week in history" heading: small week chip on the same row. */
.pc-hweek{display:inline-flex;align-items:center;gap:7px;vertical-align:middle;position:relative;top:-4px;margin-left:14px;padding:7px 14px 7px 12px;border-radius:999px;background:#fff;border:1px solid #E4DAFF;box-shadow:0 6px 16px -10px rgba(91,43,217,.45);font:600 13px/1 Inter,sans-serif;letter-spacing:0;color:#5B2BD9;white-space:nowrap}
.pc-hweek::before{content:"";width:7px;height:7px;border-radius:50%;background:#8544FF;box-shadow:0 0 0 3px #EFE8FF}
@media (max-width:767px){.pc-hweek{display:flex;width:max-content;margin:12px 0 0;top:0;font-size:12.5px}}

/* 8. Phone polish across pages. */
@media (max-width:767px){
	/* Article body: 16px reading text on phones */
	#pc-article-body p,#pc-article-body li,#pc-article-body td,#pc-article-body th{font-size:16px!important;line-height:1.7!important}
	#pc-article-body h2{font-size:22px!important;line-height:1.3!important}
	#pc-article-body h3{font-size:19px!important;line-height:1.3!important}
	#pc-article-body blockquote{font-size:18px!important}
	/* Boxes with desktop-sized inner padding */
	#brxe-wfkgzc,#brxe-hg8qmk,#brxe-g2tb7n{padding:22px!important}
	#brxe-ra8v25,#brxe-io4rxu,#brxe-8moskm,#brxe-bj6lx4,#brxe-54vydh,#brxe-3yif4p,#brxe-o5d763,#brxe-k3ykg4,#brxe-eqz9li{padding:22px!important}
	/* Value / feature cards: one per row instead of two squeezed columns */
	#brxe-rqngcs,#brxe-yp874q{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
	#brxe-rqngcs>*,#brxe-yp874q>*{padding:22px!important}
	/* About Us: stats card and quote */
	#brxe-aibh8f{padding:20px 18px!important;gap:20px 0!important}
	#brxe-aibh8f>*{padding:4px 14px!important;border-left:1px solid #ECE8F4!important;min-width:0}
	#brxe-aibh8f>*:nth-child(odd){border-left:0!important;padding-left:2px!important}
	#brxe-f30xhc,#brxe-pnfwmc,#brxe-l1tm8t,#brxe-bzx5xk{font-size:34px!important;line-height:1.05!important;white-space:nowrap}
	#brxe-ng2dhh,#brxe-s2p9ae,#brxe-nx3ct9,#brxe-x6inqz{font-size:13px!important;line-height:1.35!important;margin-top:6px}
	#brxe-p6255r{font-size:21px!important;line-height:1.38!important}
	/* Profile hero: no stretched empty space; badge fits */
	#brxe-u0vswz{flex:none!important;height:auto!important;min-height:0!important}
	#brxe-rr448z,#brxe-fvoifv,#brxe-p9zo1w{min-height:0!important;height:auto!important}
	#brxe-gtl8gc{width:max-content!important;max-width:none!important}
	/* "More from our experts": centre the name next to the avatar */
	.brxe-15q7u9{grid-template-rows:1fr auto auto 1fr!important}
	.brxe-15q7u9 .brxe-alstgq{grid-row:1/5!important}
	.brxe-15q7u9 .brxe-uzj6ae{grid-row:2!important}
	.brxe-15q7u9 .brxe-jbygnp{grid-row:3!important}
}

/* 9. Grids whose cards span 2 columns on desktop: one clean column on phones. */
@media (max-width:767px){
	#brxe-n108og,#brxe-dmwlfq{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
	#brxe-n108og>*,#brxe-dmwlfq>*{grid-column:1/-1!important;width:auto!important;min-width:0}
	#brxe-n108og>*{padding:22px!important}
	/* Advertise: ad placements table becomes stacked rows */
	#brxe-o4nc0p table,#brxe-o4nc0p tbody{display:block;width:100%}
	#brxe-o4nc0p thead{display:none}
	#brxe-o4nc0p tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:16px 18px!important;border-bottom:1px solid #EEEBF5}
	#brxe-o4nc0p tr:last-child{border-bottom:0}
	#brxe-o4nc0p td{display:block;padding:0!important;border:0!important;min-width:0}
	#brxe-o4nc0p td:nth-child(1){font-size:15.5px!important;font-weight:700}
	#brxe-o4nc0p td:nth-child(2){justify-self:end;text-align:right}
	#brxe-o4nc0p td:nth-child(2) *{white-space:nowrap}
	#brxe-o4nc0p td:nth-child(3){grid-column:1/-1;font-size:14px!important;line-height:1.5;color:#5A5572}
}

/* 10. Phone audit fixes. */
@media (max-width:767px){
	/* Big quote/statement text inside dark highlight cards */
	#brxe-wyto4b{font-size:21px!important;line-height:1.38!important}
	#brxe-4x60qi,#brxe-qbh1cg{font-size:20px!important;line-height:1.4!important}
	/* Advisory Panel: two compact doctor cards per row */
	#brxe-dzabsf{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
	#brxe-dzabsf .av-pc{padding:8px 8px 14px!important;border-radius:16px!important;gap:10px!important}
	#brxe-dzabsf .av-pc img{height:150px!important;width:100%!important;aspect-ratio:auto!important;object-fit:cover;object-position:center top;border-radius:12px!important}
	#brxe-dzabsf .av-pc>div{padding:0 4px!important;gap:4px!important}
	#brxe-dzabsf .av-pc span,#brxe-dzabsf .av-pc p,#brxe-dzabsf .av-pc div{font-size:11.5px!important;line-height:1.35!important}
	#brxe-dzabsf .av-pc .av-serif{font-size:15.5px!important;line-height:1.25!important}
	#brxe-dzabsf .av-pc a{font-size:12.5px!important}
	#brxe-dzabsf .av-pc .av-kick{font-size:10px!important;letter-spacing:.06em!important;overflow-wrap:anywhere}
	/* Our Team: shorter leader photos */
	#brxe-z7ctbn .tm-pc img{height:260px!important;aspect-ratio:auto!important;object-fit:cover;object-position:center top}
	#brxe-z7ctbn .tm-pc .tm-serif{font-size:22px!important}
	/* History story: keep the main picture to a sensible height */
	.hs-img{max-height:240px!important}
	#brxe-n108og .mk-serif,#brxe-dmwlfq .in-serif,#brxe-rqngcs .ab-serif{font-size:22px!important;line-height:1.25!important}
	.hs-body{padding-top:20px!important}
	/* Doctor profile: badge sits under the photo instead of overlapping it */
	#brxe-gtl8gc{position:static!important;transform:none!important;margin-top:10px!important;display:inline-flex!important}
}
