/*
 * imadhariri-fse custom styles
 * For small interactive/behavioral CSS not achievable via theme.json
 * or block editor controls (hover states, transitions, etc).
 */
 
 /* Header navigation — hover / focus state uses the gold accent color */
.wp-block-navigation a:hover,
.wp-block-navigation a:focus {
	color: var(--wp--preset--color--gold) !important;
	transition: color 0.2s ease;
}



/* Sticky header — the actual template-part wrapper needs the sticky rule,
   not the inner styled header, since WordPress nests an extra <header> around it */
header.wp-block-template-part:has(header.wp-block-group) {
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* Mobile Layout: Stack Library Card Image on Top */
@media (max-width: 782px) {
    .library-card-row {
        flex-direction: column !important;
    }
    
    .library-card-thumb {
        flex: 0 0 auto !important; /* Overrides the fixed 160px width */
        width: 100% !important;    /* Stretches the image container full width */
        height: 220px !important;  /* Provides a consistent height for the image */
    }
}

/* Make the main WordPress wrapper take up at least the full screen height */
.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Force whatever content is between the Header and Footer to stretch and push the footer down */
.wp-site-blocks > *:not(header):not(footer) {
    flex-grow: 1;
}

/* Remove default gap WordPress inserts between top-level blocks
   (header / main / footer) so sections can sit flush against each other */
.wp-site-blocks > * {
	margin-top: 0;
}

/* Clinical study archive — taxonomy tag pills on grid cards */
.is-style-pill {
	display: inline-block;
	background: var(--wp--preset--color--ivory);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 40%, transparent);
	border-radius: 6px;
	padding: 0.2rem 0.6rem;
	margin: 0;
}
.is-style-pill a {
	text-decoration: none;
}

/* Library search bar — placeholder text color (separate from typed text color) */
.library-search-input::placeholder {
	color: var(--wp--preset--color--mist);
	opacity: 0.7;
}

.library-card-title-link {
	transition: color 0.2s ease;
}
.library-card-title-link:hover,
.library-card-title-link:focus {
	color: var(--wp--preset--color--gold) !important;
}

.library-hero-search-btn {
	background-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--teal);
	border: none;
	border-radius: 0px;
	padding: 0.5rem;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	flex-shrink: 0;
	white-space: nowrap;
}

/* ============================================================
   Library filter sidebar (Figma spec values, RTL-first)
   ============================================================ */
 
.library-filter-card {
	width: 100%;
	box-sizing: border-box;
	margin: 0; /* zeroes out the ~24px default gap WordPress's block spacing adds above the first child in a column — see earlier diagnosis */
	background-color: var(--wp--preset--color--ivory);
	border: 2px solid var(--wp--preset--color--gold);
	padding: 1.5rem 0; /* top/bottom only — sides are 0 so headers can go edge-to-edge */
	font-family: inherit;
	position: sticky;
	top: 6rem; /* distance from the top of the viewport while scrolling — adjust if it feels too close/far from your header */
	max-height: calc(100vh - 4rem); /* keeps the whole card within the viewport (2rem top offset + 2rem breathing room at the bottom) so it can never grow taller than the screen */
	overflow-y: auto; /* lets you scroll inside the card itself when several groups are expanded and the content is taller than max-height, so the Search/Clear buttons stay reachable */
	box-shadow: 0 0 11px 2px rgba(0, 0, 0, 0.15); /* Black at 25% opacity, blur 11, spread 5 */
}

.library-filter-title {
	margin: 0 0 1rem;
	padding: 0 1.5rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--wp--preset--color--teal);
	text-align: center;
}

.library-filter-group {
	border: none;
	margin: 0 0 10px;
}
.library-filter-group:last-of-type {
	margin-bottom: 0; /* the gap to the button is controlled by .library-filter-actions margin-top instead, so it's identical whether this group is open or closed */
}
.library-filter-group summary {
	list-style: none;
}
.library-filter-group summary::-webkit-details-marker,
.library-filter-group summary::marker {
	display: none;
	content: '';
}

.library-filter-header {
	direction: rtl;
	display: flex;
	align-items: center;
	background-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--gold);
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.65rem 1.5rem;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
	border-top: 2px solid var(--wp--preset--color--gold);
	border-bottom: 2px solid var(--wp--preset--color--gold);
	border-left: none;
	border-right: none;
	border-radius: 0;
	cursor: pointer;
	white-space: nowrap; /* keeps the row single-line/short at all times, matching the badge-shown height */
}

.library-filter-badge {
	background-color: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--teal);
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 7px;
	font-size: 0.75rem;
	font-weight: 700;
	min-width: 1.4rem;
	text-align: center;
	padding: 0.05rem 0.4rem;
	line-height: 1.4;
	visibility: hidden; /* space is always reserved, even at 0, so the header never resizes */
	margin-inline-start: auto; /* claims all remaining space, forcing the badge flush to the true far edge regardless of any invisible marker spacing left behind by the <summary> element */
}
.library-filter-badge.is-visible {
	visibility: visible;
}

.library-filter-options {
	background-color: rgba(0, 0, 0, 0.2);
	margin: 0 -3px; /* bleeds past the card's own border on both sides, matching the new 2px border width */
	padding: 0.15rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0;
	max-height: 238px; /* ~7 rows, then scrolls */
	overflow-y: auto;
}

.library-filter-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
	color: var(--wp--preset--color--teal);
	cursor: pointer;
	margin: 0;
	padding: 1px 0;
	line-height: 1.3;
}

.library-filter-option input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--wp--preset--color--teal);
	border: 1.5px solid var(--wp--preset--color--teal);
	cursor: pointer;
	flex-shrink: 0;
}

.library-filter-actions {
	display: flex;
	gap: 0.6rem;
	margin-top: 1rem;
	padding: 0 1.5rem;
}

.library-filter-btn {
	flex: 1;
	background-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--teal);
	border: none;
	padding: 0.7rem 1rem;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	box-shadow: 0 0 15px 3px color-mix(in srgb, var(--wp--preset--color--gold) 25%, transparent); /* C9A968 @ 25% opacity, blur 15, spread 3 */
}
.library-filter-btn-secondary {
	flex: 0 0 auto;
}

/* Mobile: FAB + bottom drawer */
.library-filter-fab {
	display: none;
}
.library-filter-overlay {
	display: none;
}

@media (max-width: 768px) {
	.library-filter-fab {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		position: fixed;
		bottom: 24px;
		left: 20px;
		z-index: 999999;
		background-color: var(--wp--preset--color--teal);
		color: var(--wp--preset--color--gold);
		border: 2px solid var(--wp--preset--color--gold);
		border-radius: 50px;
		padding: 0.8rem 1.2rem;
		font-weight: 700;
		font-size: 0.9rem;
		cursor: pointer;
		box-shadow: 0 6px 20px rgba(0,0,0,0.3);
	}

	.library-filter-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.45);
		z-index: 999998;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s;
		display: flex;
		align-items: flex-end;
	}
	.library-filter-overlay.is-open {
		opacity: 1;
		visibility: visible;
	}

	.library-filter-overlay .library-filter-card {
		border-radius: 16px 16px 0 0;
		max-height: 85vh;
		overflow-y: auto;
		margin: 0;
	}
}

.library-card-meta {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0rem;
    direction: ltr;
    box-sizing: border-box;
}

.library-card-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.4rem;
    direction: ltr;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.library-card-pills .is-style-pill {
    transition: color 0.2s ease;
}

.library-card-pills .is-style-pill:hover {
    color: var(--wp--preset--color--gold) !important;
}

.library-card-date {
    flex: 0 0 auto;
    margin: 0 0 0 1rem;
    font-size: 0.9rem;
    direction: rtl;
    white-space: nowrap;
}

.library-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   Single post hero image
   ============================================================ */

.single-hero-image img {
	height: 400px;
	max-height: 400px;
	width: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/*
 * for-patients article hero (Updated)
 *
 * Modified to integrate typography from the old cs-hero and 
 * media sizing from the old fp-hero, while maintaining the new 
 * theme's exact class names (.fpe-hero__*) and theme.json tokens.
 */

.fpe-hero {
  background-color: var(--wp--preset--color--linen);
  padding: 2rem 0.9rem;
}

.fpe-hero__inner {
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center; /* Changed from 'stretch' to center the image properly */
  justify-content: space-between;
  gap: 4.5em;
}
/* Force Flexbox to ignore WordPress injected empty paragraphs and line breaks */
.fpe-hero__inner > p,
.fpe-hero__inner > br {
  display: none !important;
}


.fpe-hero__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: right;
  min-height: 420px; /* Added from old cs-hero to push meta to the bottom */
}

/* Eyebrow remains untouched from new theme */
.fpe-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wp--preset--color--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.fpe-hero__eyebrow-arrow {
  display: inline-flex;
  align-items: center;
  width: 16px;
  height: 13px;
}

.fpe-hero__eyebrow-arrow svg {
  display: block;
}

/* Typography heavily updated to match old cs-hero weight/sizing */
.fpe-hero__title {
  color: var(--wp--preset--color--deep-navy);
  font-size: 2.6rem;
  font-weight: 700; /* Increased to match old cs-hero */
  max-width: 60rem; /* Added from old cs-hero */
  line-height: 1.35; /* Adjusted from 1.3 */
  margin: 0 0 1rem; /* Increased spacing */
}

.fpe-hero__subtitle {
  color: var(--wp--preset--color--tealy);
  font-size: 0.95rem; /* Increased from 0.95rem */
  font-weight: 400;
  margin: 0 0 1.5rem; /* Increased spacing */
  line-height: 1.6;
}

.fpe-hero__description {
  color: var(--wp--preset--color--teal);
  font-size: 1rem; /* Increased from 1rem */
  line-height: 1.5;
  max-width: 55rem; /* Added from old cs-hero */
  margin: 0 0 1.5rem; /* Increased spacing */
}

/* Meta/Author block updated with old cs-hero border and sizing */
.fpe-hero__meta {
  width: 100%;
  margin-top: auto;
  padding-top: 0.75rem; /* Increased from 0.75rem */
  border-top: 1px solid var(--wp--preset--color--gold); /* Replaced gold border with subtle old border */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem; /* Increased from 0.75rem */
}

.fpe-hero__author {
  color: var(--wp--preset--color--gold);
  font-weight: 700;
}

.fpe-hero__author-role {
  color: var(--wp--preset--color--gold); /* Changed to mist to match old contrast */
  font-weight: 400;
}

.fpe-hero__date {
  color: var(--wp--preset--color--gold);
}
/* Instantly destroy any empty paragraph tags injected by WordPress */
.fpe-hero p:empty {
  display: none !important;
}

/* Media settings matched exactly to old fp-hero */
.fpe-hero__media {
  flex: 0 0 auto;
  width: 420px; /* Increased from 320px */
  max-width: 45%; /* Increased from 40% */
  
}

.fpe-hero__image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Breakpoint mapping */
@media (max-width: 782px) {
  .fpe-hero__inner {
    flex-direction: column;
  }
  
  .fpe-hero__content {
    min-height: auto; /* Reset the 420px minimum on mobile */
    align-items: flex-start;
    text-align: right;
  }

  .fpe-hero__media {
    width: 100%;
    max-width: 100%;
  }
}

/*
 * clinical-study article hero
 * Mirrors the exact layout and tokens of the for-patients hero,
 * adapted for conditional transparent logos (EBM, SOP, CPG).
 */

.cs-hero {
  background-color: var(--wp--preset--color--teal);
  padding: 2rem 0.9rem;
}

.cs-hero__inner {
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center; 
  justify-content: space-between;
  gap: 4.5em; /* Updated to your final live version */
}

/* Force Flexbox to ignore WordPress injected empty paragraphs and line breaks */
.cs-hero__inner > p,
.cs-hero__inner > br {
  display: none !important;
}

.cs-hero__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: right;
  min-height: 420px; 
}

.cs-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wp--preset--color--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cs-hero__eyebrow-arrow {
  display: inline-flex;
  align-items: center;
  width: 16px;
  height: 13px;
}

.cs-hero__eyebrow-arrow svg {
  display: block;
}

.cs-hero__title {
  color: var(--wp--preset--color--base);
  font-size: 2.6rem;
  font-weight: 700; 
  max-width: 60rem; 
  line-height: 1.35; 
  margin: 0 0 1rem; 
}

.cs-hero__subtitle {
  color: var(--wp--preset--color--mist);
  font-size: 0.95rem; 
  font-weight: 400;
  margin: 0 0 1.5rem; 
  line-height: 1.6;
}

.cs-hero__description {
  color: var(--wp--preset--color--mist);
  font-size: 1rem; 
  line-height: 1.5;
  max-width: 55rem; 
  margin: 0 0 1.5rem; 
}

.cs-hero__meta {
  width: 100%;
  margin-top: auto;
  padding-top: 0.75rem; 
  border-top: 1px solid var(--wp--preset--color--gold); 
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem; 
}

.cs-hero__author {
  color: var(--wp--preset--color--gold);
  font-weight: 700;
}

.cs-hero__author-role {
  color: var(--wp--preset--color--gold); 
  font-weight: 400;
}

.cs-hero__date {
  color: var(--wp--preset--color--gold);
}

/* Instantly destroy any empty paragraph tags injected by WordPress */
.cs-hero p:empty {
  display: none !important;
}

.cs-hero__media {
  flex: 0 0 auto;
  width: 420px; 
  max-width: 45%; 
}

.cs-hero__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Modifier specifically for the EBM/SOP transparent PNG logos */
.cs-hero__image--transparent {
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
  object-fit: contain;
}

.cs-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin: 0 auto 1.5rem;
}

.cs-hero__pills .is-style-pill {
  transition: color 0.2s ease;
}

.cs-hero__pills .is-style-pill:hover {
  color: var(--wp--preset--color--gold) !important;
}

/* Breakpoint mapping */
@media (max-width: 782px) {
  .cs-hero__inner {
    flex-direction: column;
  }
  
  .cs-hero__content {
    min-height: auto; 
    align-items: flex-start;
    text-align: right;
  }

  .cs-hero__media {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================================
 * FOR-PATIENTS and : Tabbed Content UI
 * ============================================================ */

.fp-article-tabs {
  margin: 3rem auto;
  max-width: var(--wp--style--global--wide-size, 1200px);
  padding: 0 0.9rem;
}

/* Horizontal Navigation Bar */
.fp-tabs-nav {
  display: flex;
  overflow-x: auto; /* Allows scrolling on mobile */
  background-color: #f3f0e9; /* Light mockup background */
  border: 1px solid #e0ddd5;
  margin-bottom: 1rem;
  scrollbar-width: none; /* Hide scrollbar for clean look */
}
.fp-tabs-nav::-webkit-scrollbar {
  display: none;
}

.fp-tab-btn {
  flex: 1 0 auto;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  border-left: 1px solid #e0ddd5; /* Divider between tabs */
  color: var(--wp--preset--color--navy-deep);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fp-tab-btn:last-child {
  border-left: none;
}
.fp-tab-btn:hover {
  background-color: rgba(0,0,0,0.03);
}

/* Active State (Gold highlight from mockup) */
.fp-tab-btn.active {
  background-color: var(--wp--preset--color--base); /* White */
  color: var(--wp--preset--color--gold);
  border-bottom: 3px solid var(--wp--preset--color--gold);
}

/* Panel Layouts */
.fp-panel {
  display: none; /* Hide all by default */
  animation: fadeIn 0.4s ease forwards;
}
.fp-panel.active {
  display: flex; /* Show only active */
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Split Layout (Has Image) */
.fp-panel--split {
  gap: 3rem;
  align-items: flex-start;
  flex-direction: row-reverse;
}
.fp-panel__media {
  flex: 0 0 45%; /* Left column width */
}
.fp-panel__media img,
.fp-panel__media figure {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0;
}
.fp-panel__text {
  flex: 1 1 auto;
}

/* Full Width (No Image) */
.fp-panel--full .fp-panel__text {
  width: 100%;
}

/* Ensure the re-injected H2 sits flush at the top of the text column */
.fp-panel__text h2:first-child {
  margin-top: 0;
  color: var(--wp--preset--color--navy-deep); 
  margin-bottom: 1rem;
}

/* Typography inside the text column */
.fp-panel__text h3 {
  color: var(--wp--preset--color--navy-deep);
  margin-top: 0;
}
.fp-panel__text p {
  line-height: 1.8;
  color: #4a5568;
}

/* Mobile Breakpoint */
@media (max-width: 782px) {
  /* NEW: Makes the navigation bar sticky on top */
  .fp-tabs-nav {
    position: sticky;
    top: 80px; /* Adjust based on your header height */
    z-index: 100;
  }

  .fp-panel.active {
    flex-direction: column;
  }
  .fp-panel__media {
    flex: 0 0 100%;
    width: 100%;
  }
}
/* Panel Next/Prev Pagination Base */
.fp-panel-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Top Pagination Specifics */
.fp-panel-pagination--top {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

/* Bottom Pagination Specifics */
.fp-panel-pagination--bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.fp-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--wp--preset--color--gold);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: opacity 0.2s;
}

.fp-step-btn:hover {
  opacity: 0.7;
}

/* In RTL, margin-right auto pushes the Next button all the way to the left if there is no Previous button */
.fp-step-next {
  margin-right: auto; 
}

/* ============================================================
 * Anatomy Navigator (Interactive Image Map)
 * ============================================================ */
 
/* 1. Remove max-width from the main wrapper */
.anatomy-navigator {
    position: relative;
    width: 100%;
}

/* 2. Add margin auto so the individual views stay centered */
.anatomy-view {
    display: none; 
    position: relative;
    width: 100%;
    margin: 0 auto; 
    animation: fadeIn 0.4s ease forwards;
}

.anatomy-view.active {
    display: block; 
}

/* 3. INDEPENDENT SIZING (Tweak these numbers independently!) */
#view-full {
    max-width: 350px; /* Your current full body size */
    left: -10%;
}

#view-upper {
    max-width: 288px; /* Adjust Arm size */
}

#view-lower {
    max-width: 283px; /* Adjust Leg size */
}

.anatomy-view.active {
    display: block; 
}

.anatomy-img {
    width: 100%;
    height: auto; /* This guarantees the image and container shrink at the exact same ratio */
    display: block;
}

/* Gold Interactive Buttons */
.anatomy-btn {
    position: absolute;
    background-color: var(--wp--preset--color--gold); 
    color: var(--wp--preset--color--navy-deep); /* Dark text for contrast */
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(201, 169, 104, 0.4); /* Soft gold glow */
    transform: translate(-50%, -50%); 
    transition: all 0.2s ease;
    white-space: nowrap;
}

.anatomy-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background-color: var(--wp--preset--color--navy-deep);
    color: var(--wp--preset--color--gold);
    box-shadow: 0 6px 15px rgba(15, 36, 56, 0.3);
}

/* Reset View Button */
.anatomy-back-btn {
    position: absolute;
    top: 2%;
    left: -135px; /* Adjusted to sit outside the image */
    background: rgba(253, 252, 250, 0.9); /* Ivory background for readability */
    color: var(--wp--preset--color--navy-deep);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--wp--preset--color--gold);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    z-index: 10;
    transition: all 0.2s ease;
}

.anatomy-back-btn:hover {
    background: var(--wp--preset--color--navy-deep);
    color: var(--wp--preset--color--gold);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 782px) {
    .anatomy-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Sub-library hero — [library_term_cards] taxonomy card grid.
   Fixed max-width per card (not 1fr) so a single card stays compact
   instead of stretching to fill the whole row. */
.library-term-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
	gap: 0.75rem;
	justify-content: center;
  margin: 0 auto;
}

.library-term-card {
	display: block;
	background: color-mix(in srgb, var(--wp--preset--color--base) 6%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 12%, transparent);
	border-radius: 0px;
	padding: 1.25rem;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.library-term-card-name,
.library-term-card-desc,
.library-term-card-count {
	text-align: center;
}

.library-term-card:hover {
	background: color-mix(in srgb, var(--wp--preset--color--base) 10%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--base) 25%, transparent);
}

.library-term-card-name {
	display: block;
	color: var(--wp--preset--color--base);
	font-weight: 700;
	font-size: 1rem;
}

.library-term-card-desc {
	display: block;
	color: var(--wp--preset--color--mist);
	font-size: 0.85rem;
	margin-top: 0.4rem;
	line-height: 1.5;
}

.library-term-card-count {
	display: block;
	color: var(--wp--preset--color--gold);
	font-size: 0.75rem;
	margin-top: 0.6rem;
}

/* Sub-Library block — patients-theme term card variant (navy-deep based,
   matching the real for-patients hero's specialty cards). Same structure
   as .library-term-card, different palette; toggled per-instance based
   on the block's Post Type setting. */
.library-term-card--patients {
	background: color-mix(in srgb, var(--wp--preset--color--navy-deep) 3%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--navy-deep) 12%, transparent);
}
.library-term-card--patients:hover {
	background: color-mix(in srgb, var(--wp--preset--color--navy-deep) 8%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--navy-deep) 25%, transparent);
}
.library-term-card--patients .library-term-card-name {
	color: var(--wp--preset--color--navy-deep);
}
.library-term-card--patients .library-term-card-desc {
	color: color-mix(in srgb, var(--wp--preset--color--navy-deep) 70%, transparent);
}
.library-term-card--patients .library-term-card-count {
	color: var(--wp--preset--color--gold);
}


/* INDEPENDENT Taxonomy Router Grid */
.taxonomy-route-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    margin: 2rem auto;
}

/* Base Card (Unified Light Theme for both CS and Patients) */
.taxonomy-route-card {
    width: calc(33.333% - 1.5rem); 
    max-width: 320px; 
    flex: 0 0 auto; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--wp--preset--color--base);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--navy-deep) 15%, transparent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-decoration: none !important;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.taxonomy-route-card:hover {
    background: var(--wp--preset--color--base);
    border-color: var(--wp--preset--color--gold);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.taxonomy-route-card-name {
    color: var(--wp--preset--color--navy-deep) !important;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    width: 100%;
    word-wrap: break-word;
}

.taxonomy-route-card-count {
    color: var(--wp--preset--color--navy-deep) !important;
    background: color-mix(in srgb, var(--wp--preset--color--gold) 15%, transparent);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}


/* Responsive: Tablets (2 Columns) */
@media (max-width: 900px) {
    .taxonomy-route-card {
        width: calc(50% - 1.5rem);
        max-width: none;
    }
}

/* Responsive: Mobile (1 Column) */
@media (max-width: 600px) {
    .taxonomy-route-card {
        width: 100%;
    }
}


/* ==========================================
   Ultimate Member - Login Form
   ========================================== */

/* Login Form Input Fields */
.um-login .um-form input[type="text"],
.um-login .um-form input[type="password"] {
    background-color: var(--wp--preset--color--ivory) !important; 
    border: 1px solid var(--wp--preset--color--navy-deep) !important; 
    color: var(--wp--preset--color--navy-deep) !important; 
    border-radius: 4px !important;
    padding: 12px 15px !important;
}

/* Input Fields on Focus */
.um-login .um-form input[type="text"]:focus,
.um-login .um-form input[type="password"]:focus {
    border-color: var(--wp--preset--color--gold) !important; 
    box-shadow: 0 0 5px color-mix(in srgb, var(--wp--preset--color--gold) 40%, transparent) !important;
    outline: none !important;
}

/* Form Labels */
.um-login .um-form .um-field-label label {
    color: var(--wp--preset--color--navy-deep) !important; 
    font-weight: 600 !important;
    font-size: 1.05rem !important;
}

/* The Login Button */
.um-login .um-form .um-button {
    background-color: var(--wp--preset--color--gold) !important; 
    color: var(--wp--preset--color--ivory) !important; 
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 14px 20px !important;
    transition: background-color 0.3s ease !important;
}

/* Login Button Hover State */
.um-login .um-form .um-button:hover {
    background-color: var(--wp--preset--color--navy-deep) !important; 
    color: var(--wp--preset--color--ivory) !important;
}

/* ==========================================
   Ultimate Member - Registration Forms
   ========================================== */

/* Registration Input Fields & Dropdowns */
.um-register .um-form input[type="text"],
.um-register .um-form input[type="password"],
.um-register .um-form input[type="email"],
.um-register .um-form select,
.um-register .um-form textarea {
    background-color: var(--wp--preset--color--ivory) !important; 
    border: 1px solid var(--wp--preset--color--navy-deep) !important; 
    color: var(--wp--preset--color--navy-deep) !important; 
    border-radius: 4px !important;
    padding: 12px 15px !important;
}

/* Input Fields on Focus */
.um-register .um-form input[type="text"]:focus,
.um-register .um-form input[type="password"]:focus,
.um-register .um-form input[type="email"]:focus,
.um-register .um-form select:focus,
.um-register .um-form textarea:focus {
    border-color: var(--wp--preset--color--gold) !important; 
    box-shadow: 0 0 5px color-mix(in srgb, var(--wp--preset--color--gold) 40%, transparent) !important;
    outline: none !important;
}

/* Registration Form Labels */
.um-register .um-form .um-field-label label {
    color: var(--wp--preset--color--navy-deep) !important; 
    font-weight: 600 !important;
    font-size: 1.05rem !important;
}

/* File Upload Field Styling */
.um-register .um-form .um-field-image,
.um-register .um-form .um-field-file {
    background-color: var(--wp--preset--color--ivory) !important;
    border: 1px dashed var(--wp--preset--color--gold) !important;
    border-radius: 4px !important;
    padding: 15px !important;
}

/* The Registration Submit Button */
.um-register .um-form .um-button {
    background-color: var(--wp--preset--color--gold) !important; 
    color: var(--wp--preset--color--ivory) !important; 
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 14px 20px !important;
    transition: background-color 0.3s ease !important;
}

/* Registration Button Hover State */
.um-register .um-form .um-button:hover {
    background-color: var(--wp--preset--color--navy-deep) !important; 
    color: var(--wp--preset--color--ivory) !important;
}

/* ==========================================
   Refined Ultimate Member Datepicker (Pickadate)
   ========================================== */

/* Main popup wrapper container */
.um .picker__holder,
.picker__holder {
    background: color-mix(in srgb, var(--wp--preset--color--navy-deep) 40%, transparent) !important; /* Soft backdrop blur effect */
}

.um .picker__frame,
.picker__frame {
    background: var(--wp--preset--color--ivory) !important; /* Ivory body */
    border: 1px solid var(--wp--preset--color--gold) !important; /* Subtle gold frame border */
    border-radius: 8px !important;
    box-shadow: 0 15px 35px color-mix(in srgb, var(--wp--preset--color--navy-deep) 15%, transparent) !important;
}

/* Header (Month and Year selectors) - Clean Light Style */
.um .picker__header, 
.picker__header {
    background-color: var(--wp--preset--color--linen) !important; /* Soft Linen header */
    color: var(--wp--preset--color--navy-deep) !important;
    padding: 12px !important;
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 30%, transparent) !important;
}

.um .picker__month, 
.um .picker__year,
.picker__month, 
.picker__year {
    color: var(--wp--preset--color--navy-deep) !important;
    font-weight: 700 !important;
}

/* Navigation arrows */
.um .picker__nav--prev, 
.um .picker__nav--next,
.picker__nav--prev, 
.picker__nav--next {
    background: transparent !important;
}

.um .picker__nav--prev:hover, 
.um .picker__nav--next:hover,
.picker__nav--prev:hover, 
.picker__nav--next:hover {
    background-color: var(--wp--preset--color--gold) !important; /* Gold on hover */
    color: var(--wp--preset--color--ivory) !important;
}

/* Weekday labels bar */
.um .picker__weekday,
.picker__weekday {
    background-color: var(--wp--preset--color--ivory) !important;
    color: var(--wp--preset--color--navy-deep) !important; /* Navy-deep text */
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* Calendar table and days */
.um .picker__table,
.picker__table {
    background-color: var(--wp--preset--color--ivory) !important;
}

.um .picker__day,
.picker__day {
    color: var(--wp--preset--color--navy-deep) !important;
    border-radius: 4px !important;
}

/* Hover state for days */
.um .picker__day--infocus:hover, 
.um .picker__day--outfocus:hover,
.picker__day--infocus:hover, 
.picker__day--outfocus:hover {
    background-color: var(--wp--preset--color--linen) !important; /* Linen hover */
    color: var(--wp--preset--color--navy-deep) !important;
}

/* Selected Date */
.um .picker__day--selected, 
.um .picker__day--selected:hover, 
.picker__day--selected, 
.picker__day--selected:hover {
    background-color: var(--wp--preset--color--gold) !important; /* Gold selection */
    color: var(--wp--preset--color--ivory) !important; /* Ivory text */
}

/* Today indicator */
.um .picker__day--today,
.picker__day--today {
    border: 1px solid var(--wp--preset--color--navy-deep) !important;
}

/* Footer (Today / Clear buttons) */
.um .picker__footer,
.picker__footer {
    background-color: var(--wp--preset--color--linen) !important; /* Linen footer */
    padding: 10px !important;
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 30%, transparent) !important;
}

.um .picker__button--today, 
.um .picker__button--clear, 
.um .picker__button--close,
.picker__button--today, 
.picker__button--clear, 
.picker__button--close {
    color: var(--wp--preset--color--navy-deep) !important;
    background: transparent !important;
    font-weight: 600 !important;
}

.um .picker__button--today:hover,
.picker__button--today:hover {
    color: var(--wp--preset--color--gold) !important;
}

/* ==========================================
   Ultimate Member - User Profile Styling
   ========================================== */

/* Profile Navigation Bar */
.um-profile .um-profile-nav {
    background-color: var(--wp--preset--color--linen) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--navy-deep) 10%, transparent) !important;
}

/* Default Tab Links */
.um-profile .um-profile-nav-item a {
    color: var(--wp--preset--color--navy-deep) !important;
    font-weight: 700 !important;
}

/* Active Tab Highlight */
.um-profile .um-profile-nav-item.active a {
    background-color: var(--wp--preset--color--gold) !important;
    color: var(--wp--preset--color--ivory) !important;
    border-radius: 4px !important;
}

/* Edit Profile Button */
.um-profile .um-profile-edit-a.um-button {
    background-color: var(--wp--preset--color--gold) !important;
    color: var(--wp--preset--color--ivory) !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    transition: background-color 0.3s ease !important;
}

/* Edit Profile Button Hover */
.um-profile .um-profile-edit-a.um-button:hover {
    background-color: var(--wp--preset--color--navy-deep) !important;
}

/* Profile Meta Text */
.um-profile .um-profile-meta {
    color: var(--wp--preset--color--navy-deep) !important;
}

/* Profile Save Button (Primary) */
.um-profile .um-form .um-button {
    background-color: var(--wp--preset--color--gold) !important;
    color: var(--wp--preset--color--ivory) !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.um-profile .um-form .um-button:hover {
    background-color: var(--wp--preset--color--navy-deep) !important;
    color: var(--wp--preset--color--ivory) !important;
}

/* Profile Cancel Button (Alternate) */
.um-profile .um-form .um-button.um-alt {
    background-color: var(--wp--preset--color--linen) !important;
    color: var(--wp--preset--color--navy-deep) !important;
    border: 1px solid var(--wp--preset--color--navy-deep) !important;
}

.um-profile .um-form .um-button.um-alt:hover {
    background-color: var(--wp--preset--color--navy-deep) !important;
    color: var(--wp--preset--color--ivory) !important;
}

/* ==========================================
   Ultimate Member - Account Links in Header
   ========================================== */

.site-header-account-link {
    color: var(--wp--preset--color--ivory) !important;
    font-size: 0.95rem;
    text-decoration: none !important;
    font-weight: 400;
    padding-inline: 0.5rem;
    display: flex;
    align-items: center;
}

.site-header-account-link:hover {
    color: var(--wp--preset--color--gold) !important;
}

.site-header-account {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--wp--preset--color--ivory);
    font-size: 0.95rem;
    padding-inline: 0.5rem;
}

.site-header-account__menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--wp--preset--color--ivory);
    min-width: 180px;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 100;
}

.site-header-account:hover .site-header-account__menu {
    display: block;
}

.site-header-account__menu li {
    margin: 0;
}

.site-header-account__menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--wp--preset--color--navy-deep);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: right;
}

.site-header-account__menu li a:hover {
    background: var(--wp--preset--color--linen);
    color: var(--wp--preset--color--gold);
}

/* ==========================================
   Ultimate Member - Account Page Styling
   ========================================== */

/* Main Account Container (Restored native block structure) */
.um-account {
    background-color: var(--wp--preset--color--ivory) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--navy-deep) 10%, transparent) !important;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--wp--preset--color--navy-deep) 5%, transparent) !important;
    display: block !important; 
}

/* Clearfix for UM native column floats */
.um-account::after {
    content: "";
    display: table;
    clear: both;
}

/* Account Sidebar / Tab Navigation */
.um-account-side {
    border-color: color-mix(in srgb, var(--wp--preset--color--navy-deep) 15%, transparent) !important;
}

.um-account-side li a {
    color: var(--wp--preset--color--navy-deep) !important;
    font-weight: 600 !important;
    background-color: var(--wp--preset--color--linen) !important;
    border-radius: 4px !important;
    margin-bottom: 6px !important;
    transition: all 0.2s ease !important;
}

.um-account-side li a:hover {
    background-color: color-mix(in srgb, var(--wp--preset--color--navy-deep) 10%, var(--wp--preset--color--linen)) !important;
    color: var(--wp--preset--color--navy-deep) !important;
}

/* Active Navigation Tab */
.um-account-side li a.current,
.um-account-side li a.current:hover {
    background-color: var(--wp--preset--color--gold) !important;
    color: var(--wp--preset--color--ivory) !important;
}

.um-account-side li a span.um-account-icon {
    color: inherit !important;
}

/* Account Main Content Area (Adding the RTL layout gap) */
.um-account-main {
    background: transparent !important;
    padding-inline-start: 4rem !important; /* Safely creates the gap between menu and form */
}

.um-account-heading {
    color: var(--wp--preset--color--navy-deep) !important;
    font-size: 1.4rem !important;
    border-bottom: 2px solid color-mix(in srgb, var(--wp--preset--color--gold) 30%, transparent) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 2rem !important;
    font-weight: 700 !important;
}

/* Apply Sub-Card Styling to ALL Tabs (General, Password, Privacy, etc.) */
.um-account-main form > div[class^="um-account-tab-"] {
    background-color: var(--wp--preset--color--linen) !important;
    padding: 2.5rem !important;
    border-radius: 8px !important;
    margin-top: 1rem !important;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--navy-deep) 10%, transparent) !important;
}

/* Keep Account Deletion Area Distinct (Red Warning Style) */
.um-account-main form > .um-account-tab-delete {
    background-color: color-mix(in srgb, #d9534f 8%, transparent) !important;
    border: 1px dashed color-mix(in srgb, #d9534f 40%, transparent) !important;
}

/* Field Spacing & Separation Lines */
.um-account .um-field {
    padding: 1.25rem 0 !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--navy-deep) 8%, transparent) !important;
}

.um-account .um-field:last-of-type {
    border-bottom: none !important;
}

/* Form Input Fields */
.um-account input[type="text"],
.um-account input[type="password"],
.um-account input[type="email"],
.um-account select {
    background-color: var(--wp--preset--color--ivory) !important;
    border: 1px solid var(--wp--preset--color--navy-deep) !important;
    color: var(--wp--preset--color--navy-deep) !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.um-account input[type="text"]:focus,
.um-account input[type="password"]:focus,
.um-account input[type="email"]:focus,
.um-account select:focus {
    border-color: var(--wp--preset--color--gold) !important;
    box-shadow: 0 0 5px color-mix(in srgb, var(--wp--preset--color--gold) 40%, transparent) !important;
    outline: none !important;
}

/* Form Labels */
.um-account .um-field-label label {
    color: var(--wp--preset--color--navy-deep) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

/* Radio Buttons & Checkboxes */
.um-account input[type="radio"],
.um-account input[type="checkbox"] {
    accent-color: var(--wp--preset--color--gold) !important;
    cursor: pointer !important;
    transform: scale(1.15);
    margin-inline-start: 6px !important;
}

.um-account .um-field-radio.active i,
.um-account .um-field-checkbox.active i,
.um-account .um-field-radio.active:not(.nested) i {
    color: var(--wp--preset--color--gold) !important;
}

/* Neutralizing All Blue Action Buttons (Export, Erase, Links) */
.um-account .um-button,
.um-account a.um-button,
.um-account input[type="button"].um-button,
.um-account .um-field-area a.um-button,
.um-account a.um-request-button {
    background-color: var(--wp--preset--color--navy-deep) !important;
    color: var(--wp--preset--color--ivory) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    display: inline-block !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    text-decoration: none !important;
    border: none !important;
    transition: background-color 0.25s ease !important;
}

.um-account .um-button:hover,
.um-account a.um-button:hover,
.um-account input[type="button"].um-button:hover,
.um-account .um-field-area a.um-button:hover,
.um-account a.um-request-button:hover {
    background-color: var(--wp--preset--color--gold) !important;
    color: var(--wp--preset--color--ivory) !important;
}

/* Primary Action / Save Account Button */
.um-account .um-form input[type="submit"],
.um-account .um-form input[type="submit"].um-button {
    background-color: var(--wp--preset--color--gold) !important;
    color: var(--wp--preset--color--ivory) !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 14px 32px !important;
    margin-top: 2rem !important;
    cursor: pointer !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

.um-account .um-form input[type="submit"]:hover,
.um-account .um-form input[type="submit"].um-button:hover {
    background-color: var(--wp--preset--color--navy-deep) !important;
    color: var(--wp--preset--color--ivory) !important;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .um-account-main {
        padding-inline-start: 0 !important;
        margin-top: 2rem !important;
    }
}


/* ==========================================
   Ultimate Member - Profile Page Styling
   ========================================== */

.um-profile.um-viewing .um-col-1 {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 10px !important;
}

.um-profile.um-viewing .um-field {
	background: var(--wp--preset--color--linen) !important;
	padding: 12px 14px !important;
	border-radius: 8px !important;
}

.um-profile.um-viewing .um-field-label {
	display: block !important;
	margin: 0 0 4px 0 !important;
	border-bottom: none !important;
	padding-bottom: 0 !important;
	font-size: 12px !important;
	color: var(--wp--preset--color--navy-deep) !important;
	font-weight: 700 !important;
}

.um-profile.um-viewing .um-field-value {
	font-size: 14px !important;
	color: var(--wp--preset--color--navy-deep) !important;
}

.um-profile.um-editing .um-col-1 {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 16px !important;
}

.um-profile.um-editing .um-field-textarea,
.um-profile.um-editing .um-field-radio,
.um-profile.um-editing .um-field-checkbox {
	grid-column: 1 / -1 !important;
}

.um-profile.um-editing .um-form-field {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--navy-deep) 20%, transparent) !important;
	border-radius: 4px !important;
	padding: 10px 12px !important;
	background: var(--wp--preset--color--ivory) !important;
	color: var(--wp--preset--color--navy-deep) !important;
}

.um-profile.um-editing .um-form-field:focus {
	border-color: var(--wp--preset--color--gold) !important;
	outline: none !important;
}

.um-profile .um-profile-edit-a.um-button,
a.um-button {
	background-color: var(--wp--preset--color--gold) !important;
	color: var(--wp--preset--color--ivory) !important;
	border-radius: 4px !important;
	font-weight: 700 !important;
	padding: 8px 16px !important;
	display: inline-block !important;
}

a.um-button:hover {
	background-color: var(--wp--preset--color--navy-deep) !important;
}

.um-profile .um-profile-photo {
	position: absolute !important;
	top: -90px !important;
	right: 24px !important;
	left: auto !important;
	float: none !important;
	width: 160px !important;
	height: 160px !important;
	margin: 0 !important;
	z-index: 5 !important;
}

.um-profile .um-profile-photo a.um-profile-photo-img {
	position: static !important;
	top: auto !important;
	left: auto !important;
	width: 160px !important;
	height: 160px !important;
	border-radius: 50% !important;
	border: 4px solid var(--wp--preset--color--ivory) !important;
	overflow: hidden !important;
	display: block !important;
}

.um-profile .um-profile-photo a.um-profile-photo-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

@media screen and (max-width: 767px) {

	.um-profile .um-header {
		padding-top: 70px !important;
	}

	.um-profile .um-header::before {
		height: 70px !important;
	}

	.um-profile .um-profile-photo {
		top: -55px !important;
		right: 0px !important;
		width: 64px !important;
		height: 64px !important;
	}

	.um-profile .um-profile-photo a.um-profile-photo-img {
		width: 64px !important;
		height: 64px !important;
		border-width: 3px !important;
	}

	.um-profile .um-main-meta {
    padding-right: 0px !important;
	}

	.um-profile .um-name a {
		top: 0px !important;
    font-size: 15px !important;
	}

	.um-profile .um-meta {
		font-size: 12px !important;
	}

}