/* Manved theme – provisional look. Colours are WordPress palette variables, so
 * Site Editor › Styles changes them; dark values are set here. */
:root,:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}
/* Dark colours: used when the visitor picks Dark (Manved Hospital Core sets data-theme). */
:root[data-theme=dark]{
	--wp--preset--color--base:#0B1220;--wp--preset--color--surface:#121B2E;--wp--preset--color--tint:#16264A;--wp--preset--color--line:#26344F;
	--wp--preset--color--contrast:#E8EEF7;--wp--preset--color--muted:#A9B6C8;--wp--preset--color--primary:#7AB0F7;--wp--preset--color--secondary:#07162F;
	--wp--preset--color--accent:#F28A3B;--wp--preset--color--accent-contrast:#1A0D00;--wp--preset--color--emergency:#FF6B7D;--wp--preset--color--success:#4CC9A0
}
body{overflow-x:clip;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.manved-hi,:lang(hi){font-family:var(--wp--preset--font-family--hindi)}
body.manved-hi{line-height:1.7}
img{max-width:100%;height:auto}
a{text-underline-offset:.15em}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid var(--wp--preset--color--primary);outline-offset:2px}
.skip-link:focus{z-index:100000}

/* Header: top bar scrolls away, main header stays */
header.wp-block-template-part{position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) - 38px);z-index:40}
.mh-header{background:var(--wp--preset--color--base);border-bottom:1px solid var(--wp--preset--color--line);padding-top:.625rem;padding-bottom:.625rem}
.mh-header__row{gap:12px}
.mh-header__actions{gap:clamp(.5rem,2vw,1.75rem)}
.mh-header .wp-block-navigation__responsive-container-open{width:44px;height:44px;border:1px solid var(--wp--preset--color--line);border-radius:10px;align-items:center;justify-content:center}
/* Menu collapses below 900px (WordPress's own switch is at 600px, too narrow for this menu) */
@media (min-width:900px){
	.mh-header .wp-block-navigation__responsive-container-open{display:none!important}
	.mh-header .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open){display:block;position:relative;width:100%;z-index:auto;background-color:inherit}
	.mh-header .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}
}
@media (max-width:899px){.mh-header__actions .mh-book{order:-1}}
.mh-header .wp-block-navigation a:hover{color:var(--wp--preset--color--primary);text-decoration:none}
.mh-header .wp-block-navigation__responsive-container.is-menu-open{padding:24px var(--wp--custom--gutter);background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast)}
.mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{font-size:1.25rem;gap:1rem}
@media (max-width:899px){.mh-header .mh-brand__name{font-size:1rem}}
@media (min-width:900px){.mh-header{padding-top:.875rem;padding-bottom:.875rem}}

/* Mode switch in top bar */
.manved-mode{display:inline-flex;align-items:center;gap:6px;background:none;border:0;color:inherit;font:inherit;cursor:pointer;min-height:32px;padding:0 4px}
.manved-mode__text{display:none}
@media (min-width:600px){.manved-mode__text{display:inline}}

/* Main content spacing */
main.wp-block-group{margin-top:0}
.manved-page-header{padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--30)}
.manved-entry{padding-bottom:var(--wp--preset--spacing--60)}
.wp-site-blocks>*+*{margin-block-start:0}
.is-layout-constrained>.mh.alignfull,.entry-content>.alignfull{margin-block-start:0}
.entry-content>.mh+.mh{margin-block-start:0}

/* Footer */
.mh-footer{background:var(--wp--preset--color--secondary);color:#C9D6EA;padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--40);font-size:.9375rem}
.mh-footer a{color:#fff}
.mh-footer h2{color:#fff;font-size:1rem;margin:0 0 .75rem}
.mh-footer .mh-brand a,.mh-footer .mh-brand__alt{color:#fff}
.mh-footer .mh-brand__mark rect{fill:#fff}
.mh-footer .mh-brand__mark path{fill:var(--wp--preset--color--secondary)}
.mh-footer .wp-block-navigation{font-weight:500;font-size:.9375rem}
.mh-footer__bottom{border-top:1px solid rgba(255,255,255,.15);padding-top:1rem;margin-top:var(--wp--preset--spacing--40);font-size:.875rem}

/* Posts */
.wp-block-post-template.is-flex-container{gap:20px}
.manved-card{border:1px solid var(--wp--preset--color--line);border-radius:14px;overflow:hidden;height:100%;background:var(--wp--preset--color--base)}
.manved-card .wp-block-post-featured-image{margin:0}
.manved-card__body{padding:16px 18px 18px}
.manved-card .wp-block-post-title{font-size:1.0625rem;line-height:1.3;margin:0}
.manved-card .wp-block-post-title a{color:var(--wp--preset--color--contrast);text-decoration:none}
.manved-card .wp-block-post-terms{font-size:.8125rem;font-weight:700}

/* Mobile menu overlay follows Light/Dark (theme 0.2.1). */
html .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open,
html .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
html .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
html .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: inherit;
}
